1 2014-09-12 Joseph Myers <joseph@codesourcery.com>
3 * target.def (libgcc_floating_mode_supported_p): New hook.
4 * targhooks.c (default_libgcc_floating_mode_supported_p): New
6 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
7 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
8 (LIBGCC2_HAS_TF_MODE): Remove.
9 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
10 * doc/tm.texi: Regenerate.
11 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
13 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
14 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
15 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
16 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
17 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
19 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
20 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
21 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
22 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
24 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
25 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
26 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
27 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
28 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
29 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
30 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
31 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
32 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
33 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
34 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
35 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
36 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
37 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
39 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
41 (ia64_libgcc_floating_mode_supported_p): New function.
42 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
43 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
44 (IA64_NO_LIBGCC_TFMODE): Define.
45 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
46 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
48 (pdp11_scalar_mode_supported_p): New function.
49 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
50 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
51 2014-09-12 Richard Biener <rguenther@suse.de>
54 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
56 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
58 * tree.c (integer_each_onep): New function.
59 * tree.h (integer_each_onep): Declare it.
60 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
61 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
62 (X & 1) == 0 for vector and complex.
64 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
66 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
68 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
69 cost to spilling from integer to FP registers.
71 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
73 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
75 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
76 are now handled correctly.
78 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
80 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
81 handling of CALLER_SAVE_REGS and POINTER_REGS.
83 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
85 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
86 the number of hard registers.
88 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
89 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
90 Anna Tikhonova <anna.tikhonova@intel.com>
91 Ilya Tocar <ilya.tocar@intel.com>
92 Andrey Turetskiy <andrey.turetskiy@intel.com>
93 Ilya Verbin <ilya.verbin@intel.com>
94 Kirill Yukhin <kirill.yukhin@intel.com>
95 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
98 (define_mode_iterator VI48_AVX512VL): New.
99 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
100 "avx512f_vternlog<mode>_maskz" and update mode iterator.
101 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
102 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
103 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
104 "avx512f_vternlog<mode>_mask" and update mode iterator.
105 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
106 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
108 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
109 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
110 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
111 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
112 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
113 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
115 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
116 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
117 Anna Tikhonova <anna.tikhonova@intel.com>
118 Ilya Tocar <ilya.tocar@intel.com>
119 Andrey Turetskiy <andrey.turetskiy@intel.com>
120 Ilya Verbin <ilya.verbin@intel.com>
121 Kirill Yukhin <kirill.yukhin@intel.com>
122 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
124 * config/i386/sse.md (VI128_256): Delete.
125 (define_mode_iterator VI124_256): New.
126 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
127 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
128 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
129 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
130 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
131 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
132 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
133 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
135 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
136 in presence of AVX-512.
138 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
139 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
140 Anna Tikhonova <anna.tikhonova@intel.com>
141 Ilya Tocar <ilya.tocar@intel.com>
142 Andrey Turetskiy <andrey.turetskiy@intel.com>
143 Ilya Verbin <ilya.verbin@intel.com>
144 Kirill Yukhin <kirill.yukhin@intel.com>
145 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
148 (define_expand "<avx512>_gathersi<mode>"): Rename from
149 "avx512f_gathersi<mode>".
150 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
151 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
152 (define_expand "<avx512>_gatherdi<mode>"): Rename from
153 "avx512f_gatherdi<mode>".
154 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
155 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
157 (define_expand "<avx512>_scattersi<mode>"): Rename from
158 "avx512f_scattersi<mode>".
159 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
160 (define_expand "<avx512>_scatterdi<mode>"): Rename from
161 "avx512f_scatterdi<mode>".
162 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
164 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
166 * ira.h (ira_finish_once): Delete.
167 * ira-int.h (target_ira_int::~target_ira_int): Declare.
168 (target_ira_int::free_ira_costs): Likewise.
169 (target_ira_int::free_register_move_costs): Likewise.
170 (ira_finish_costs_once): Delete.
171 * ira.c (free_register_move_costs): Replace with...
172 (target_ira_int::free_register_move_costs): ...this new function.
173 (target_ira_int::~target_ira_int): Define.
174 (ira_init): Call free_register_move_costs as a member function rather
175 than a global function.
176 (ira_finish_once): Delete.
177 * ira-costs.c (free_ira_costs): Replace with...
178 (target_ira_int::free_ira_costs): ...this new function.
179 (ira_init_costs): Call free_ira_costs as a member function rather
180 than a global function.
181 (ira_finish_costs_once): Delete.
182 * target-globals.c (target_globals::~target_globals): Call the
183 target_ira_int destructor.
184 * toplev.c: Include lra.h.
185 (finalize): Call lra_finish_once rather than ira_finish_once.
187 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
189 * common.opt (flto-odr-type-merging): New flag.
190 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
191 (types_same_for_odr): Likewise.
192 (odr_subtypes_equivalent_p): Likewise.
193 (add_type_duplicate): Do not walk type variants.
194 (register_odr_type): New function.
195 * ipa-utils.h (register_odr_type): Declare.
196 (odr_type_p): New function.
197 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
199 * doc/invoke.texi (-flto-odr-type-merging): Document.
200 * tree.c (need_assembler_name_p): Compute ODR names when asked
202 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
204 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
207 * config/i386/i386.c (ix86_option_override_internal): Also turn
208 off OPTION_MASK_ABI_X32 for -m16.
210 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
212 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
215 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
218 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
219 Directly forward to __*_DENORM_MIN__.
221 2014-09-11 David Malcolm <dmalcolm@redhat.com>
223 * rtl.h (LABEL_REF_LABEL): New macro.
225 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
226 of XEXP (, 0), where we know that we have a LABEL_REF.
227 * cfgbuild.c (make_edges): Likewise.
228 (purge_dead_tablejump_edges): Likewise.
229 * cfgexpand.c (convert_debug_memory_address): Likewise.
230 * cfgrtl.c (patch_jump_insn): Likewise.
231 * combine.c (distribute_notes): Likewise.
232 * cse.c (hash_rtx_cb): Likewise.
233 (exp_equiv_p): Likewise.
234 (fold_rtx): Likewise.
235 (check_for_label_ref): Likewise.
236 * cselib.c (rtx_equal_for_cselib_1): Likewise.
237 (cselib_hash_rtx): Likewise.
238 * emit-rtl.c (mark_label_nuses): Likewise.
239 * explow.c (convert_memory_address_addr_space): Likewise.
240 * final.c (output_asm_label): Likewise.
241 (output_addr_const): Likewise.
242 * gcse.c (add_label_notes): Likewise.
243 * genconfig.c (walk_insn_part): Likewise.
244 * genrecog.c (validate_pattern): Likewise.
245 * ifcvt.c (cond_exec_get_condition): Likewise.
246 (noce_emit_store_flag): Likewise.
247 (noce_get_alt_condition): Likewise.
248 (noce_get_condition): Likewise.
249 * jump.c (maybe_propagate_label_ref): Likewise.
250 (mark_jump_label_1): Likewise.
251 (redirect_exp_1): Likewise.
252 (rtx_renumbered_equal_p): Likewise.
253 * lra-constraints.c (operands_match_p): Likewise.
254 * reload.c (operands_match_p): Likewise.
255 (find_reloads): Likewise.
256 * reload1.c (set_label_offsets): Likewise.
257 * reorg.c (get_branch_condition): Likewise.
258 * rtl.c (rtx_equal_p_cb): Likewise.
259 (rtx_equal_p): Likewise.
260 * rtlanal.c (reg_mentioned_p): Likewise.
261 (rtx_referenced_p): Likewise.
262 (get_condition): Likewise.
263 * sched-vis.c (print_value): Likewise.
264 * varasm.c (const_hash_1): Likewise.
265 (compare_constant): Likewise.
266 (const_rtx_hash_1): Likewise.
267 (output_constant_pool_1): Likewise.
269 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
271 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
272 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
274 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
275 cr6_test_for_lt_reverse): Ditto.
277 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
280 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
282 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
284 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
285 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
286 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
287 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
290 (aarch64_fold_builtin): Remove all reinterpret cases.
292 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
294 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
296 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
297 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
298 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
299 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
300 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
301 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
302 aarch64_reinterpretv2df<mode>): Delete.
304 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
306 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
307 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
308 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
309 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
310 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
311 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
312 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
313 vreinterpret_u32_f64): Use cast.
315 * config/aarch64/iterators.md (VD_RE): Delete.
317 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
319 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
320 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
321 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
322 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
323 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
324 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
325 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
326 Replace inline assembler with __aarch64_vset_lane_any.
328 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
330 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
332 (vmull_high_lane_s32): Likewise.
333 (vmull_high_lane_u16): Likewise.
334 (vmull_high_lane_u32): Likewise.
336 2014-09-11 Jason Merrill <jason@redhat.com>
339 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
341 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
344 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
345 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
346 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
348 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
349 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
350 Anna Tikhonova <anna.tikhonova@intel.com>
351 Ilya Tocar <ilya.tocar@intel.com>
352 Andrey Turetskiy <andrey.turetskiy@intel.com>
353 Ilya Verbin <ilya.verbin@intel.com>
354 Kirill Yukhin <kirill.yukhin@intel.com>
355 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
358 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
359 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
360 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
362 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
363 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
365 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
367 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
368 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
369 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
370 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
371 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
372 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
373 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
374 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
376 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
378 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
379 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
380 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
382 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
384 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
385 to access removed nodes.
387 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
389 PR tree-optimization/63186
390 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
391 (mark_nonssa_use): Likewise.
392 (verify_non_ssa_vars): Verify all header blocks for label
395 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
396 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
397 Anna Tikhonova <anna.tikhonova@intel.com>
398 Ilya Tocar <ilya.tocar@intel.com>
399 Andrey Turetskiy <andrey.turetskiy@intel.com>
400 Ilya Verbin <ilya.verbin@intel.com>
401 Kirill Yukhin <kirill.yukhin@intel.com>
402 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
405 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
406 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
407 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
408 "<avx2_avx512f>_permvar<mode><mask_name>".
409 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
410 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
411 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
412 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
414 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
415 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
416 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
417 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
419 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
421 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
422 V2DF, V4SF, DF, and DI modes.
423 (vsx_fmav2df2): Likewise.
424 (vsx_float_fix_<mode>2): Likewise.
425 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
427 2014-09-10 Xinliang David Li <davidxl@google.com>
430 * config/arm/arm.md (movcond_addsi): Handle case where source
431 and target operands are the same.
433 2014-09-10 David Malcolm <dmalcolm@redhat.com>
435 * final.c (this_is_asm_operands): Strengthen this variable from
436 rtx to const rtx_insn *.
437 * output.h (this_is_asm_operands): Likewise.
438 * rtl-error.c (location_for_asm): Strengthen param "insn" from
439 const_rtx to const rtx_insn *.
440 (diagnostic_for_asm): Likewise.
441 * rtl-error.h (error_for_asm): Likewise.
442 (warning_for_asm): Likewise.
444 2014-09-10 David Malcolm <dmalcolm@redhat.com>
446 * genextract.c (print_header): When writing out insn_extract to
447 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
448 * recog.h (insn_extract): Strengthen the param from rtx to
451 2014-09-10 Mike Stump <mikestump@comcast.net>
453 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
456 2014-09-10 Martin Jambor <mjambor@suse.cz>
458 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
459 (analyze): Do not set analyze flag if expand_thunk returns false;.
460 (create_wrapper): Likewise.
461 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
463 2014-09-10 Martin Jambor <mjambor@suse.cz>
466 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
467 new decl properly. Analyze the new thunk if it is expanded.
469 2014-09-10 Andreas Schwab <schwab@suse.de>
471 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
472 [USED_FOR_TARGET]: Define.
474 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
476 * config/mips/mips.c (mips_secondary_reload_class): Handle
479 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
481 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
484 2014-09-10 Jakub Jelinek <jakub@redhat.com>
486 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
487 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
488 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
489 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
490 flag_delete_null_pointer_checks for them.
491 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
492 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
493 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
494 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
495 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
497 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
498 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
499 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
500 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
501 * doc/invoke.texi (-fsanitize=nonnull-attribute,
502 -fsanitize=returns-nonnull-attribute): Document.
504 * ubsan.h (struct ubsan_mismatch_data): Removed.
505 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
506 * ubsan.c (ubsan_source_location): For unknown locations,
507 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
508 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
509 Allow more than one location and arbitrary extra arguments passed
510 in ... instead of through MISMATCH pointer.
511 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
512 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
513 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
516 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
517 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
518 Anna Tikhonova <anna.tikhonova@intel.com>
519 Ilya Tocar <ilya.tocar@intel.com>
520 Andrey Turetskiy <andrey.turetskiy@intel.com>
521 Ilya Verbin <ilya.verbin@intel.com>
522 Kirill Yukhin <kirill.yukhin@intel.com>
523 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
526 (define_mode_iterator VI48F): New.
527 (define_insn "<avx512>_compress<mode>_mask"): Rename from
528 "avx512f_compress<mode>_mask" and update mode iterator.
529 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
530 "avx512f_compressstore<mode>_mask" and update mode iterator.
531 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
532 "avx512f_expand<mode>_maskz" and update mode iterator.
533 (define_insn "<avx512>_expand<mode>_mask"): Rename from
534 "avx512f_expand<mode>_mask" and update mode iterator.
536 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
537 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
538 Anna Tikhonova <anna.tikhonova@intel.com>
539 Ilya Tocar <ilya.tocar@intel.com>
540 Andrey Turetskiy <andrey.turetskiy@intel.com>
541 Ilya Verbin <ilya.verbin@intel.com>
542 Kirill Yukhin <kirill.yukhin@intel.com>
543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
546 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
547 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
548 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
549 avx512dq_rangepv4sf_mask.
551 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
553 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
554 (define_insn "reduces<mode>"): Ditto.
555 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
557 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
558 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
559 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
561 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
562 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
563 Anna Tikhonova <anna.tikhonova@intel.com>
564 Ilya Tocar <ilya.tocar@intel.com>
565 Andrey Turetskiy <andrey.turetskiy@intel.com>
566 Ilya Verbin <ilya.verbin@intel.com>
567 Kirill Yukhin <kirill.yukhin@intel.com>
568 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
571 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
572 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
573 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
574 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
575 avx512vl_getmantv2df_mask.
576 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
577 avx512f_vgetmantv4sf_round.
579 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
580 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
582 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
583 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
584 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
585 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
587 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
588 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
589 update mode iterator.
591 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
592 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
595 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
596 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
597 update mode iterator.
598 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
599 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
602 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
603 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
605 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
606 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
607 update mode iterator.
608 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
609 "avx512f_getmant<mode><round_saeonly_name>".
611 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
614 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
616 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
617 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
618 Anna Tikhonova <anna.tikhonova@intel.com>
619 Ilya Tocar <ilya.tocar@intel.com>
620 Andrey Turetskiy <andrey.turetskiy@intel.com>
621 Ilya Verbin <ilya.verbin@intel.com>
622 Kirill Yukhin <kirill.yukhin@intel.com>
623 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
625 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
626 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
627 (define_mode_iterator FMAMODE_AVX512): New.
628 (define_mode_iterator FMAMODE): Remove conditions.
629 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
630 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
631 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
633 (define_mode_iterator FMAMODE_NOVF512): Remove.
634 (define_insn "*fma_fmadd_<mode>"): Rename from
635 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
636 FMAMODE mode iterator.
637 (define_mode_iterator VF_SF_AVX512VL): New.
638 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
639 Use VF_SF_AVX512VL mode iterator.
640 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
641 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
643 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
644 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
646 (define_insn "*fma_fmsub_<mode>"): Rename from
647 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
648 FMAMODE mode iterator.
649 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
650 Use VF_SF_AVX512VL mode iterator.
651 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
652 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
654 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
655 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
657 (define_insn "*fma_fnmadd_<mode>"): Rename from
658 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
659 use FMAMODE mode iterator.
660 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
661 Use VF_SF_AVX512VL mode iterator.
662 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
663 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
665 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
666 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
668 (define_insn "*fma_fnmsub_<mode>"): Rename from
669 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
670 FMAMODE mode iterator.
671 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
672 Use VF_SF_AVX512VL mode iterator.
673 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
674 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
676 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
677 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
679 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
680 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
681 use VF_AVX512VL mode iterator.
682 (define_insn "*fma_fmaddsub_<mode>"): Rename from
683 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
685 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
686 Use VF_SF_AVX512VL mode iterator.
687 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
688 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
690 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
691 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
693 (define_insn "*fma_fmsubadd_<mode>"): Rename from
694 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
695 remove usage of subst.
696 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
697 Use VF_SF_AVX512VL mode iterator.
698 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
699 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
701 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
702 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
705 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
708 * calls.c (precompute_arguments): Check
709 promoted_for_signed_and_unsigned_p and set the promoted mode.
710 (promoted_for_signed_and_unsigned_p): New function.
711 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
712 and set the promoted mode.
713 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
714 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
715 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
717 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
719 * opth-gen.awk: Generate mapping from cpp message reasons to the
720 options that enable them.
721 * doc/options.texi (CppReason): Document.
723 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
725 * doc/invoke.texi (Wnormalized=): Update.
727 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
730 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
731 operands. Split off the constant operand alternative to ...
732 (*bool<mode>3_imm): New.
734 2014-09-09 David Malcolm <dmalcolm@redhat.com>
736 * rtl.h (single_set_2): Strengthen first param from const_rtx to
737 const rtx_insn *, and move prototype to above...
738 (single_set): ...this. Convert this from a macro to an inline
739 function, enforcing the requirement that the param is a const
741 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
743 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
744 Strengthen both params from rtx to rtx_insn *.
745 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
746 Likewise; introduce locals "producer_set", "consumer_set", using
747 them in place of "producer" and "consumer" when dealing with SET
749 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
750 when invoking single_set in region guarded by INSN_P.
751 (avr_out_bitop): Likewise.
752 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
753 region guarded by GET_CODE check, using methods to strengthen
754 local "this_insn" from rtx to rtx_insn *, and for clarity.
755 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
756 Strengthen local "insn" from rtx to rtx_insn *.
757 (define_insn_and_split "xload<mode>_A"): Likewise.
758 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
760 (find_load): Likewise for return type.
761 (workaround_speculation): Likewise for both locals named
763 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
765 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
767 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
769 * config/h8300/h8300.c (notice_update_cc): Likewise.
770 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
771 "insn" and "dep_insn".
772 (exact_store_load_dependency): Likewise for both params.
773 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
774 since this now clashes with inline function. Instead, delay
775 calling single_set until the point where its needed, and then
776 assign the result to "compare_set" and rework the conditional that
778 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
779 local "last" from rtx to rtx_insn *.
780 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
782 (mips_store_data_bypass_p): Likewise for both params.
783 * config/mips/mips.c (mips_load_store_insns): Likewise for second
785 (mips_store_data_bypass_p): Likewise for both params.
786 (mips_orphaned_high_part_p): Likewise for param "insn".
787 * config/mn10300/mn10300.c (extract_bundle): Likewise.
788 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
789 Introduce local rtx "insn2_pat".
790 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
792 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
793 Introduce local rtx "set", using it in place of "insn" for the
794 result of single_set. This appears to fix a bug, since the call
795 to find_regno_note on a SET does nothing.
796 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
797 params from rtx to rtx_insn *.
798 (set_to_load_agen): Likewise.
799 * config/s390/s390.c (s390_label_align): Likewise for local
800 "prev_insn". Introduce new rtx locals "set" and "src", using
801 them in place of "prev_insn" for the results of single_set
802 and SET_SRC respectively.
803 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
804 Introduce new rtx local "set" using in place of "jump" for the
805 result of single_set. Use SET_SRC (set) rather than plain
807 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
809 (noncall_uses_reg): Likewise.
810 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
811 guarded by GET_CODE check, using its methods for clarity, and to
812 enable strengthening local "this_insn" from rtx to rtx_insn *.
813 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
814 "insn" from rtx to rtx_insn *.
815 (define_expand "umulhisi3"): Likewise.
816 (define_expand "smulsi3_highpart"): Likewise.
817 (define_expand "umulsi3_highpart"): Likewise.
818 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
819 local "after". Replace GET_CODE check with a dyn_cast,
820 introducing new local rtx_sequence * "seq", using insn method for
823 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
824 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
825 place of "insn" once we're dealing with patterns rather than the
827 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
828 (scan_trace): Likewise for local "elt", updating lookups within
829 sequence to use insn method rather than element method.
830 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
832 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
833 * ifcvt.c (noce_try_abs): Likewise for local "insn".
834 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
836 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
837 "insn" from rtx to rtx_insn *.
838 (skip_usage_debug_insns): Likewise for return type, adding a
840 (check_secondary_memory_needed_p): Likewise for local "insn".
841 (inherit_reload_reg): Likewise.
842 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
843 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
845 (store_data_bypass_p): Likewise for both params.
846 (if_test_bypass_p): Likewise.
847 * recog.h (store_data_bypass_p): Likewise for both params.
848 (if_test_bypass_p): Likewise.
849 * reload.c (find_equiv_reg): Likewise for local "where".
850 * reorg.c (delete_jump): Likewise for param "insn".
851 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
853 * store-motion.c (replace_store_insn): Likewise for param "del".
854 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
855 and use its methods for clarity, and to strengthen local "del"
856 from rtx to rtx_insn *.
857 (build_store_vectors): Use insn method of "st" when calling
858 replace_store_insn for typesafety and clarity.
860 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
862 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
863 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
864 on how to make it legal in future.
866 2014-09-09 David Malcolm <dmalcolm@redhat.com>
868 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
870 (restinsn): Likewise.
871 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
873 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
875 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
877 (arc_hazard): Likewise for both params.
878 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
879 checked casts to rtx_sequence * and uses of the insn method for
881 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
882 (arc_adjust_insn_length): Likewise for param "insn".
883 (struct insn_length_parameters_s): Likewise for first param of
884 "get_variants" callback field.
885 (arc_get_insn_variants): Likewise for first param and local
886 "inner". Replace a check of GET_CODE with a dyn_cast to
887 rtx_sequence *, using methods for type-safety and clarity.
888 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
889 rtx_sequence * and uses of the insn method for type-safety when
890 invoking arc_adjust_insn_length.
891 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
893 (arm_address_offset_is_imm): Likewise.
894 (struct tune_params): Likewise for params 1 and 3 of the
895 "sched_adjust_cost" callback field.
896 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
897 params 1 and 3 ("insn" and "dep").
898 (xscale_sched_adjust_cost): Likewise.
899 (fa726te_sched_adjust_cost): Likewise.
900 (cortexa7_older_only): Likewise for param "insn".
901 (cortexa7_younger): Likewise.
902 (arm_attr_length_move_neon): Likewise.
903 (arm_address_offset_is_imm): Likewise.
904 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
905 * config/avr/avr.c (avr_notice_update_cc): Likewise.
906 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
907 (workaround_speculation): Likewise for local "last_condjump".
908 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
909 (shadow_or_blockage_p): Likewise.
910 (get_unit_reqs): Likewise.
911 (get_unit_operand_masks): Likewise.
912 (c6x_registers_update): Likewise.
913 (returning_call_p): Likewise.
914 (can_use_callp): Likewise.
915 (convert_to_callp): Likewise.
916 (find_last_same_clock): Likwise for local "t".
917 (reorg_split_calls): Likewise for local "shadow".
918 (hwloop_pattern_reg): Likewise for param "insn".
919 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
920 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
921 (frv_extract_membar): Likewise.
922 (frv_optimize_membar_local): Strengthen param "last_membar" from
923 rtx * to rtx_insn **.
924 (frv_optimize_membar_global): Strengthen param "membar" from rtx
926 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
928 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
929 both params from rtx to rtx_insn *.
930 (ia64_ld_address_bypass_p): Likewise.
931 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
933 (ia64_safe_type): Likewise.
934 (group_barrier_needed): Likewise.
935 (safe_group_barrier_needed): Likewise.
936 (ia64_single_set): Likewise.
937 (is_load_p): Likewise.
938 (record_memory_reference): Likewise.
939 (get_mode_no_for_insn): Likewise.
940 (important_for_bundling_p): Likewise.
941 (unknown_for_bundling_p): Likewise.
942 (ia64_st_address_bypass_p): Likewise for both params.
943 (ia64_ld_address_bypass_p): Likewise.
944 (expand_vselect): Introduce new local rtx_insn * "insn", using it
945 in place of rtx "x" after the emit_insn call.
946 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
947 Strengthen param from rtx to rtx_insn *.
948 (ix86_agi_dependent): Likewise for both params.
949 (ix86_attr_length_immediate_default): Likewise for param 1.
950 (ix86_attr_length_address_default): Likewise for param.
951 (ix86_attr_length_vex_default): Likewise for param 1.
952 * config/i386/i386.c (ix86_attr_length_immediate_default):
953 Likewise for param "insn".
954 (ix86_attr_length_address_default): Likewise.
955 (ix86_attr_length_vex_default): Likewise.
956 (ix86_agi_dependent): Likewise for both params.
957 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
958 (vselect_insn): Likewise for this variable.
959 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
961 (m68k_sched_attr_opy_type): Likewise.
962 * config/m68k/m68k.c (sched_get_operand): Likewise.
963 (sched_attr_op_type): Likewise.
964 (m68k_sched_attr_opx_type): Likewise.
965 (m68k_sched_attr_opy_type): Likewise.
966 (sched_get_reg_operand): Likewise.
967 (sched_get_mem_operand): Likewise.
968 (m68k_sched_address_bypass_p): Likewise for both params.
969 (sched_get_indexed_address_scale): Likewise.
970 (m68k_sched_indexed_address_bypass_p): Likewise.
971 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
972 (m68k_sched_indexed_address_bypass_p): Likewise.
973 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
974 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
976 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
977 params from rtx to rtx_insn *.
978 (mips_fmadd_bypass): Likewise.
979 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
980 (mips_linked_madd_p): Likewise.
981 (mips_macc_chains_last_hilo): Likewise for this variable.
982 (mips_macc_chains_record): Likewise for param.
983 (vr4130_last_insn): Likewise for this variable.
984 (vr4130_swap_insns_p): Likewise for both params.
985 (mips_ls2_variable_issue): Likewise for param.
986 (mips_need_noat_wrapper_p): Likewise for param "insn".
987 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
988 in place of "x" after the emit_insn.
989 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
990 params from rtx to rtx_insn *.
991 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
992 (pa_combine_instructions): Introduce local "par" for result of
993 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
995 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
996 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
997 (rl78_alloc_physical_registers_op1): Likewise.
998 (rl78_alloc_physical_registers_op2): Likewise.
999 (rl78_alloc_physical_registers_ro1): Likewise.
1000 (rl78_alloc_physical_registers_cmp): Likewise.
1001 (rl78_alloc_physical_registers_umul): Likewise.
1002 (rl78_alloc_address_registers_macax): Likewise.
1003 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1004 * config/s390/predicates.md (execute_operation): Likewise for
1006 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1008 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1009 (addr_generation_dependency_p): Likewise for param "insn".
1010 (s390_agen_dep_p): Likewise for both params.
1011 (s390_fpload_toreg): Likewise for param "insn".
1012 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1013 * config/sh/sh.c (sh_loop_align): Likewise for param and local
1015 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1016 * config/sh/sh_treg_combine.cc
1017 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1019 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1020 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1021 "and_insn", "load", "shift".
1022 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1024 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1025 for XEXP (note, 0) of the REG_CC_SETTER note.
1026 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1027 rtx_insn *, eliminating a checked cast made redundant by this.
1028 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1030 * genattr.c (main): When writing out the prototype to
1031 const_num_delay_slots, strengthen the param from rtx to
1033 * genattrtab.c (write_const_num_delay_slots): Likewise when
1034 writing out the implementation of const_num_delay_slots.
1035 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1036 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1037 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1038 favor of new rtx locals "src" and "set" and new local rtx_insn *
1040 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1042 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1043 locals "cond", "if_then_else", "set" and new rtx_insn * locals
1045 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1046 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
1047 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
1048 the top-level scope, replacing with new more tightly-scoped rtx
1049 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1050 "new_insn", "copy_of_insn_b", and make local rtx "set" more
1052 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1054 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1056 (ira_setup_alts): Likewise for param "insn".
1057 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1058 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1060 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1061 new more-tightly scoped rtx locals "add3_insn", "insn",
1062 "add2_insn" and rtx_insn * "move_insn".
1063 * postreload-gcse.c (eliminate_partially_redundant_load): Add
1064 checked cast on result of gen_move_insn when invoking
1066 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1068 (verify_changes): Add a checked cast on "object" when invoking
1070 (extract_insn_cached): Strengthen param "insn" from rtx to
1072 (extract_constrain_insn_cached): Likewise.
1073 (extract_insn): Likewise.
1074 * recog.h (insn_invalid_p): Likewise for param 1.
1075 (recog_memoized): Likewise for param.
1076 (extract_insn): Likewise.
1077 (extract_constrain_insn_cached): Likewise.
1078 (extract_insn_cached): Likewise.
1079 * reload.c (can_reload_into): Likewise for local "test_insn".
1080 * reload.h (cleanup_subreg_operands): Likewise for param.
1081 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1082 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1083 result of emit_insn. Remove a checked cast made redundant by this
1085 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1087 * sel-sched.c (get_reg_class): Likewise.
1089 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
1090 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1092 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1093 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1095 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1097 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1099 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1100 const rtx_insn *, and from rtx to rtx_insn * for the other
1102 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1103 INSN_LOCATION, since we know INSN_P holds.
1104 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1105 (insn_file): Likewise.
1106 (insn_scope): Likewise.
1107 (insn_location): Likewise.
1109 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1110 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1111 for the result of gen_load_const_gp.
1112 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1113 param from rtx to rtx_insn *.
1114 * config/rs6000/rs6000.c (output_call): Likewise.
1115 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1116 introducing a checked cast to rtx_sequence * and use of the insn
1118 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1119 from rtx to rtx_insn *.
1120 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1121 (insn_line): Likewise.
1122 (insn_file): Likewise.
1123 (insn_location): Likewise.
1124 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1125 from rtx to rtx_insn *.
1126 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1127 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1128 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1130 * reorg.c (relax_delay_slots): Strengthen locals named "after"
1131 from rtx to rtx_insn *; use methods of "pat" for type-safety.
1133 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1135 * combine.c (try_combine): Eliminate checked cast on result of
1137 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1138 autogenerated one by strengthening the return type and params 2 and 3
1139 from rtx to rtx_insn *, and by naming the params.
1140 * gengenrtl.c (special_rtx): Add INSN to those that are
1142 * rtl.h (gen_rtx_INSN): New prototype.
1144 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1146 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1148 (no_equiv): Likewise.
1149 (update_equiv_regs): Likewise.
1150 (setup_reg_equiv): Likewise. Strengthen locals "elem",
1151 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1152 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
1154 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1155 from rtx to rtx_insn_list *.
1156 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1157 rtx_insn_list * and use methods for clarity and typesafety.
1158 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1160 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
1161 redundant check on INSN_P (insns): this cannot hold, as "insns" is
1162 an INSN_LIST, not an insn.
1163 (reverse_equiv_p): Strengthen local "insns" from rtx to
1164 rtx_insn_list * and use methods for clarity and typesafety.
1165 (contains_reloaded_insn_p): Likewise for local "list".
1167 2014-09-09 Jiong Wang <jiong.wang@arm.com>
1169 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1170 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1171 (arm_builtin_vectorized_function): Likewise.
1172 * config/arm/arm_neon_builtins.def: New macro for copysignf.
1173 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1175 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
1177 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1178 * builtins.h (default_target_builtins): Likewise.
1179 * gcse.h (default_target_gcse): Likewise.
1180 * target-globals.h (target_globals): Add a destructor. Convert
1181 void-pointer fields back to their real type and change from
1182 GTY((atomic)) to GTY((skip)).
1183 (restore_target_globals): Remove casts accordingly.
1184 * target-globals.c (save_target_globals): Use XCNEW rather than
1185 ggc_internal_cleared_alloc to allocate non-GC structures.
1186 Use ggc_cleared_alloc to allocate the target_globals structure
1188 (target_globals::~target_globals): Define.
1190 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1192 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1193 mnemonic instead of fldmfdd.
1194 * config/arm/arm.c (vfp_output_fstmd): Rename to...
1195 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
1196 Output vpush when address register is SP.
1197 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1198 (vfp_output_vstmd): ... This.
1199 * config/arm/vfp.md (push_multi_vfp): Update call to
1202 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1204 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1206 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1208 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1209 (*sqrtdf2_vfp): Likewise.
1210 (*cmpsf_vfp): Likewise.
1211 (*cmpsf_trap_vfp): Likewise.
1212 (*cmpdf_vfp): Likewise.
1213 (*cmpdf_trap_vfp): Likewise.
1215 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1217 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1218 (*truncdfsf2_vfp): Likewise.
1219 (*truncsisf2_vfp): Likewise.
1220 (*truncsidf2_vfp): Likewise.
1221 (fixuns_truncsfsi2): Likewise.
1222 (fixuns_truncdfsi2): Likewise.
1223 (*floatsisf2_vfp): Likewise.
1224 (*floatsidf2_vfp): Likewise.
1225 (floatunssisf2): Likewise.
1226 (floatunssidf2): Likewise.
1228 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1230 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1231 (*muldf3_vfp): Likewise.
1232 (*mulsf3negsf_vfp): Likewise.
1233 (*muldf3negdf_vfp): Likewise.
1234 (*mulsf3addsf_vfp): Likewise.
1235 (*muldf3adddf_vfp): Likewise.
1236 (*mulsf3subsf_vfp): Likewise.
1237 (*muldf3subdf_vfp): Likewise.
1238 (*mulsf3negsfaddsf_vfp): Likewise.
1239 (*fmuldf3negdfadddf_vfp): Likewise.
1240 (*mulsf3negsfsubsf_vfp): Likewise.
1241 (*muldf3negdfsubdf_vfp): Likewise.
1243 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1245 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1246 (*absdf2_vfp): Likewise.
1247 (*negsf2_vfp): Likewise.
1248 (*negdf2_vfp): Likewise.
1249 (*addsf3_vfp): Likewise.
1250 (*adddf3_vfp): Likewise.
1251 (*subsf3_vfp): Likewise.
1252 (*subdf3_vfp): Likewise.
1253 (*divsf3_vfp): Likewise.
1254 (*divdf3_vfp): Likewise.
1256 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1258 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1260 (arm_print_operand): Don't convert real values to decimal
1261 representation in default case.
1262 (fp_immediate_constant): Delete.
1263 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1264 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1266 (*thumb2_movsi_vfp): Likewise.
1267 (*movdi_vfp): Likewise.
1268 (*movdi_vfp_cortexa8): Likewise.
1269 (*movhf_vfp_neon): Likewise.
1270 (*movhf_vfp): Likewise.
1271 (*movsf_vfp): Likewise.
1272 (*thumb2_movsf_vfp): Likewise.
1273 (*movdf_vfp): Likewise.
1274 (*thumb2_movdf_vfp): Likewise.
1275 (*movsfcc_vfp): Likewise.
1276 (*thumb2_movsfcc_vfp): Likewise.
1277 (*movdfcc_vfp): Likewise.
1278 (*thumb2_movdfcc_vfp): Likewise.
1280 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1282 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1286 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1289 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1290 Use qualifier_immediate for last operand. Rename to...
1291 (aarch64_types_ternop_lane_qualifiers): ... This.
1292 (TYPES_QUADOP): Rename to...
1293 (TYPES_TERNOP_LANE): ... This.
1294 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1295 error. Change return of 0 to return of NULL_RTX.
1296 (aarch64_crc32_expand_builtin): Likewise.
1297 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1298 ICE when expanding unknown builtin.
1299 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1300 TERNOP_LANE qualifiers.
1301 (sqdmlsl_lane): Likewise.
1302 (sqdmlal_laneq): Likewise.
1303 (sqdmlsl_laneq): Likewise.
1304 (sqdmlal2_lane): Likewise.
1305 (sqdmlsl2_lane): Likewise.
1306 (sqdmlal2_laneq): Likewise.
1307 (sqdmlsl2_laneq): Likewise.
1309 2014-09-09 Nick Clifton <nickc@redhat.com>
1311 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1313 (S/390 and zSeries Options): Remove superfluous word from the
1314 description of the -mhotpatch option.
1316 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1318 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1319 * ira.c: #include "shrink-wrap.h"
1320 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1321 * ifcvt.c: #include "shrink-wrap.h"
1322 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1324 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1326 * common/config/picochip/picochip-common.c: Remove.
1327 * config.gcc: Remove support for picochip.
1328 * config/picochip/constraints.md: Remove.
1329 * config/picochip/dfa_space.md: Remove.
1330 * config/picochip/dfa_speed.md: Remove.
1331 * config/picochip/picochip-protos.h: Remove.
1332 * config/picochip/picochip.c: Remove.
1333 * config/picochip/picochip.h: Remove.
1334 * config/picochip/picochip.md: Remove.
1335 * config/picochip/picochip.opt: Remove.
1336 * config/picochip/predicates.md: Remove.
1337 * config/picochip/t-picochip: Remove.
1338 * doc/md.texi: Don't document picochi.
1340 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1342 * basic-block.h (control_flow_insn_p): Strengthen param from
1343 const_rtx to const rtx_insn *.
1344 * cfgbuild.c (control_flow_insn_p): Likewise.
1346 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1348 * gcse.c (modify_mem_list): Strengthen this variable from
1349 vec<rtx> * to vec<rtx_insn *> *.
1350 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1352 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1353 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1354 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1356 (record_last_set_info): Likewise for local "last_set_insn".
1358 2014-09-08 DJ Delorie <dj@redhat.com>
1360 * doc/invoke.texi (MSP430 Options): Add -minrt.
1362 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1364 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1365 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1366 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1368 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1370 (adjust_splat): New function.
1371 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1372 (dump_swap_insn_table): Add case for SH_SPLAT.
1374 2014-09-08 Richard Biener <rguenther@suse.de>
1377 * tree-inline.c (copy_loops): The source loop header should
1379 (tree_function_versioning): If loops need fixup after removing
1380 unreachable blocks fix them.
1381 * omp-low.c (simd_clone_adjust): Do not add incr block to
1382 loop under construction.
1384 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1386 * config/aarch64/aarch64-builtins.c
1387 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1389 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1391 * config/i386/cygming.h (TF_SIZE): Remove.
1392 * config/i386/darwin.h (TF_SIZE): Remove.
1393 * config/i386/dragonfly.h (TF_SIZE): Remove.
1394 * config/i386/freebsd.h (TF_SIZE): Remove.
1395 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1396 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1397 * config/i386/sol2.h (TF_SIZE): Remove.
1398 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1399 * config/ia64/linux.h (TF_SIZE): Remove.
1400 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1401 * doc/tm.texi: Regenerate.
1402 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1404 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1406 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1408 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1410 * doc/tm.texi: Regenerate.
1411 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1413 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1414 * config/cris/cris.h (__make_dp): Remove.
1416 2014-09-08 Richard Biener <rguenther@suse.de>
1419 * cfgloop.c (mark_loop_for_removal): Track former header
1421 * cfgloop.h (struct loop): Add former_header member unconditionally.
1422 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1423 diagnostic unconditionally.
1425 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1428 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1429 constraint for operand0 and remove write only modifier from operand3.
1431 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1433 PR rtl-optimization/62208
1434 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1435 rather than const0_rtx in eq/ne-xor simplifications.
1437 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1439 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1440 (arc_output_mi_thunk): Likewise.
1442 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1443 arguments to silence bogus warning.
1445 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1448 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1450 2014-09-06 Tom de Vries <tom@codesourcery.com>
1452 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1453 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1454 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1456 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1459 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1460 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1462 2014-09-05 Easwaran Raman <eraman@google.com>
1464 PR rtl-optimization/62146
1465 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1466 hoisted instruction unconditional.
1468 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1471 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1472 Do not allow any_mask_operand for operands[2].
1473 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1475 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1477 * config/arc/arc.c (arc_print_operand): Use insn method of
1478 final_sequence for type-safety.
1479 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1480 "insn" from rtx to rtx_insn *.
1481 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1482 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1483 Likewise for locals "branch", "label".
1484 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1485 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1486 (same_cmp_following_p): Likewise for locals "i2", "i3".
1487 * config/sh/sh_optimize_sett_clrt.cc
1488 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1489 param "cbranch_insn".
1490 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1491 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1492 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1494 (condjump_p): Likewise.
1495 (condjump_in_parallel_p): Likewise.
1497 (any_uncondjump_p): Likewise.
1498 (any_condjump_p): Likewise.
1499 (condjump_label): Likewise.
1500 (returnjump_p): Strengthen param "insn" from rtx to
1502 (onlyjump_p): Strengthen param "insn" from const_rtx to
1504 (jump_to_label_p): Likewise.
1505 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1506 (invert_jump): Likewise.
1507 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1509 (get_jump_flags): Strengthen param "insn" from rtx to
1511 (get_branch_condition): Likewise.
1512 (condition_dominates_p): Likewise.
1513 (make_return_insns): Move declaration of local "pat" earlier, to
1514 after we've handled NONJUMP_INSN_P and non-sequences, using its
1515 methods to simplify the code and for type-safety.
1516 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1518 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1519 (condjump_p): Strengthen param from const_rtx to
1521 (any_condjump_p): Likewise.
1522 (any_uncondjump_p): Likewise.
1524 (condjump_label): Likewise.
1525 (simplejump_p): Likewise.
1526 (returnjump_p): Likewise.
1527 (onlyjump_p): Likewise.
1528 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1529 (invert_jump): Likewise.
1530 (condjump_in_parallel_p): Strengthen param from const_rtx to
1532 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1533 to const rtx_insn *.
1534 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1535 to const rtx_insn *.
1536 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1538 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1540 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1541 above the conditional, and convert the check on GET_CODE to a
1542 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1543 the conditional. Simplify the conditional by using methods of
1546 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1548 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1549 "link" from rtx to rtx_insn_list *, and use its methods for
1550 clarity and type-safety.
1551 (toggle_cancelled_flags): Likewise.
1552 (restore_last_backtrack_point): Likewise.
1553 (queue_to_ready): Use insn method of "link" in one place.
1554 (schedule_block): Strengthen local "link" from rtx to
1555 rtx_insn_list *, and use its methods for clarity and type-safety.
1557 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1559 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1560 param "insn" from const_rtx to const rtx_insn *.
1561 (sched_get_reverse_condition_uncached): Likewise.
1562 (sched_get_condition_with_rev): Likewise.
1563 (sched_has_condition_p): Likewise.
1564 (sched_insns_conditions_mutex_p): Likewise for both params.
1565 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1566 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1567 (setup_insn_reg_uses): Move local "list" to be more tightly
1568 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1569 its methods for clarity and type-safety.
1570 (sched_analyze_1): Strengthen local "pending" from rtx to
1571 rtx_insn_list *, and local "pending_mem" from rtx to
1572 rtx_expr_list *. Use methods of each for clarity and type-safety.
1573 (sched_analyze_2): Likewise.
1574 (sched_analyze_insn): Likewise.
1576 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1577 param from const_rtx to const rtx_insn *.
1578 (sched_insns_conditions_mutex_p): Likewise for both params.
1579 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1582 * system.h (CONST_CAST_RTX_INSN): New macro.
1584 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1586 * recog.c (peep2_attempt): Strengthen return type from rtx to
1588 (peep2_update_life): Likewise for params "last", "prev", removing
1589 a checked cast made redundant by this.
1590 (peephole2_optimize): Likewise for local "last".
1592 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1594 * basic-block.h (set_block_for_insn): Eliminate this macro in
1596 * rtl.h (set_block_for_insn): New inline function, imposing the
1597 requirement that the "insn" param is an rtx_insn *.
1599 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1601 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1603 * final.c (get_call_reg_set_usage): Likewise for first param,
1604 eliminating a checked cast.
1605 * regs.h (get_call_reg_set_usage): Likewise for first param.
1606 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1607 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1608 cast, replacing references to "x" with "call_insn" where
1610 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1611 rtx_insn *, adding a checked cast.
1613 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1615 * output.h (final_scan_insn): Strengthen first param from rtx to
1618 * final.c (final_scan_insn): Likewise, renaming it back from
1619 "uncast_insn" to "insn", eliminating the checked cast.
1621 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1622 "vec" with an rtx_sequence * "seq", taking a copy of
1623 "final_sequence", and using methods of "seq" for clarity, and for
1624 type-safety in the calls to final_scan_insn.
1625 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1626 of "final_sequence" for clarity, and for type-safety in the call to
1628 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1629 rtx_sequence * and rename from "insn" to "seq".
1631 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1633 * jump.c (delete_related_insns): Introduce a new local "table" by
1634 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1635 get_labels method of "table" to simplify access to the labels in
1638 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1640 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1641 f_minmaxs, f_minmaxd types.
1643 2014-09-05 Richard Biener <rguenther@suse.de>
1645 * cfgloop.c (mark_loop_for_removal): Record former header
1646 when ENABLE_CHECKING.
1647 * cfgloop.h (strut loop): Add former_header member when
1649 * loop-init.c (fix_loop_structure): Sanity check loops
1650 marked for removal if they re-appeared.
1652 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1654 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1655 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1657 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1658 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1659 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1660 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1661 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1662 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1663 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1664 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1665 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1666 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1667 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1668 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1669 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1670 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1671 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1672 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1673 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1674 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1675 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1676 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1677 with int{32,16,8}_t.
1679 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1681 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1682 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1683 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1684 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1685 Remove temporary __asm__ and reimplement.
1687 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1689 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1690 handling cmge, cmgt, cmeq, cmtst.
1692 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1693 cmlt, cmgeu, cmgtu, cmtst): Remove.
1695 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1696 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1697 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1698 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1700 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1702 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1704 (aarch64_fold_builtin): Update pattern for cmtst.
1706 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1709 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1711 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1712 Switch operands, separate out more cases, refactor.
1714 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1716 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1717 argument; rename old version to...
1718 (aarch64_const_vec_all_same_in_range_p): ...this.
1719 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1721 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1723 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1725 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1726 Remove qualifier_const_pointer, update comment.
1728 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1730 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1732 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1734 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1735 varargs with pointer parameter.
1736 (aarch64_simd_expand_builtin): pass pointer into previous.
1738 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1740 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1743 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1745 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1746 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1747 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1748 Replace temporary asm with call to builtin.
1749 (vrbit_p8, vrbitq_p8): New functions.
1751 2014-09-05 Richard Biener <rguenther@suse.de>
1753 * cfgloop.c (mark_loop_for_removal): New function.
1754 * cfgloop.h (mark_loop_for_removal): Declare.
1755 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1756 (merge_blocks): Likewise.
1757 (duplicate_block): Likewise.
1758 * except.c (sjlj_emit_dispatch_table): Likewise.
1759 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1760 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1761 (thread_through_loop_header): Likewise.
1763 2014-09-05 Richard Biener <rguenther@suse.de>
1766 * fold-const.c (try_move_mult_to_index): Remove.
1767 (fold_binary_loc): Do not call it.
1768 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1769 from the base object again.
1771 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1773 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1776 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1779 * config/arm/arm.md (setmem): New pattern.
1780 * config/arm/arm-protos.h (struct tune_params): New fields.
1781 (arm_gen_setmem): New prototype.
1782 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1783 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1784 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1785 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1786 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1787 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1788 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1789 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1790 (arm_const_inline_cost): New function.
1791 (arm_block_set_max_insns): New function.
1792 (arm_block_set_non_vect_profit_p): New function.
1793 (arm_block_set_vect_profit_p): New function.
1794 (arm_block_set_unaligned_vect): New function.
1795 (arm_block_set_aligned_vect): New function.
1796 (arm_block_set_unaligned_non_vect): New function.
1797 (arm_block_set_aligned_non_vect): New function.
1798 (arm_block_set_vect, arm_gen_setmem): New functions.
1800 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1802 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1804 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1806 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1808 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1810 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1812 * valtrack.h: Adjust.
1814 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1816 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1818 (emit_jump_insn_before_noloc): Likewise.
1819 (emit_call_insn_before_noloc): Likewise.
1820 (emit_label_before): Likewise.
1821 (emit_label_after): Likewise.
1822 (emit_insn_before_setloc): Likewise.
1823 (emit_jump_insn_before_setloc): Likewise.
1824 (emit_call_insn_before_setloc): Likewise.
1825 (emit_call_insn_before): Likewise.
1828 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1830 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1831 rtx_insn *, eliminating a checked cast.
1833 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1835 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1836 const_rtx to const rtx_insn *.
1837 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1840 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1842 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1843 fixup_args_size_notes.
1844 * expr.c (fixup_args_size_notes): Strengthen first two params from
1845 rtx to rtx_insn *, eliminating a checked cast.
1846 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1849 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1851 * haifa-sched.c (get_ready_element): Strengthen return type from
1853 * sched-int.h (get_ready_element): Likewise.
1855 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1858 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1859 indexed_or_indirect_operand instead of memory_operand.
1860 (floatsi<mode>2_lfiwzx_mem): Ditto.
1862 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1864 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1865 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1866 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1868 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1870 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1872 (get_last_nonnote_insn): Likewise.
1873 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1874 * resource.c (find_basic_block): Likewise.
1876 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1879 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1881 * genattr.c (main): Within the prototype of insn_latency written
1882 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1883 * genautomata.c (output_internal_maximal_insn_latency_func):
1884 Within the implementation of insn_latency written out to
1885 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1886 eliminating a pair of checked casts.
1888 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1890 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1893 * rtl.h (eh_returnjump_p): Likewise.
1895 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1897 * Makefile.in (TAGS): Handle constructs in timevar.def.
1899 2014-09-04 Guozhi Wei <carrot@google.com>
1902 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1903 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1904 it into two patterns.
1905 (move_lo_quad_internal_be_<mode>): Likewise.
1907 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1909 * doc/options.texi: Document that Var and Init are required if CPP
1911 * optc-gen.awk: Require Var and Init if CPP is given.
1912 * common.opt (Wpedantic): Use Init.
1914 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1916 * config/rs6000/rs6000.c (special_handling_values): Add
1918 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1919 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1920 as swappable with special handling SH_EXTRACT. Remove
1921 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1923 (adjust_extract): New function.
1924 (handle_special_swappables): Add default to case statement; add
1925 case for SH_EXTRACT that calls adjust_extract.
1926 (dump_swap_insn_table): Handle SH_EXTRACT.
1928 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1930 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1931 selection of 0th memory doubleword, regardless of endianness.
1933 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1935 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1937 2014-09-04 Alan Modra <amodra@gmail.com>
1940 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1943 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1945 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1946 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1947 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1948 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1949 * doc/tm.texi: Regenerate.
1950 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1951 selection logic to default_dwarf_frame_reg_mode.
1953 2014-09-03 Marek Polacek <polacek@redhat.com>
1955 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1958 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1960 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1961 the automodified register.
1963 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1965 * output.h (get_some_local_dynamic_name): Declare.
1966 * final.c (some_local_dynamic_name): New variable.
1967 (get_some_local_dynamic_name): New function.
1968 (final_end_function): Clear some_local_dynamic_name.
1969 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1970 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1971 (print_operand): Report an error if '%&' is used inappropriately.
1972 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1973 (get_some_local_dynamic_name_1): Delete.
1974 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1975 (rs6000_get_some_local_dynamic_name): Delete.
1976 (rs6000_get_some_local_dynamic_name_1): Delete.
1977 (print_operand): Report an error if '%&' is used inappropriately.
1978 * config/s390/s390.c (machine_function): Remove some_ld_name.
1979 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1980 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1981 * config/sparc/sparc.c: Include rtl-iter.h.
1982 (machine_function): Remove some_ld_name.
1983 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1984 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1986 2014-09-03 Richard Henderson <rth@redhat.com>
1988 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1989 (aarch64_popwb_pair_reg): Remove.
1990 (aarch64_set_frame_expr): Remove.
1991 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1992 the restore ops performed by the insns generated.
1993 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1994 insn. Perform the calls_eh_return addition later; do not attempt to
1995 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1996 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1997 special markup at all. Load cfun->machine->frame.hard_fp_offset
1998 into a local variable.
1999 (aarch64_frame_pointer_required): Don't check calls_alloca.
2001 2014-09-03 Richard Biener <rguenther@suse.de>
2003 * opts.c (default_options_optimization): Adjust
2004 max-combine-insns to 2 for -Og.
2006 2014-09-03 Martin Jambor <mjambor@suse.cz>
2009 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2010 pass-trough jump functions correctly.
2012 2014-09-03 Martin Jambor <mjambor@suse.cz>
2015 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2016 created replacements in ascending order of offsets.
2017 (known_aggs_to_agg_replacement_list): Likewise.
2019 2014-09-03 Martin Liska <mliska@suse.cz>
2021 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2022 is set to set uninitialized value for vnresult.
2024 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2026 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2027 for TARGET_MUST_PASS_IN_STACK.
2029 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2031 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2032 for TARGET_ARG_PARTIAL_BYTES.
2034 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2036 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2037 instructions for varargs implementation.
2038 (nds32_expand_epilogue): Emit stack adjustment instructions for
2039 varargs implementation.
2041 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2043 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2044 optimization detection.
2046 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2048 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2050 (nds32_function_arg_advance): Deal with nameless arguments.
2051 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2052 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2053 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2055 2014-09-03 Richard Biener <rguenther@suse.de>
2057 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2058 (struct bb_bitmap_sets): Remove deferred member.
2059 (BB_DEFERRED): Remove.
2060 (defer_or_phi_translate_block): Remove.
2061 (compute_antic_aux): Remove deferring of blocks, assert
2062 proper iteration order.
2063 (compute_antic): Do not set BB_DEFERRED.
2064 (eliminate): Allocate el_avail of proper size initially.
2066 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2068 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2069 according to the value of crtl->args.pretend_args_size.
2071 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2073 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2074 varargs information.
2076 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2078 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2079 implementation for TARGET_SETUP_INCOMING_VARARGS.
2080 (nds32_strict_argument_naming): Refine comment.
2081 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2082 Define for future implementation.
2084 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
2086 * config/i386/adxintrin.h (_subborrow_u32): New.
2087 (_addcarry_u32): Ditto.
2088 (_subborrow_u64): Ditto.
2089 (_addcarry_u64): Ditto.
2090 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2092 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2093 __builtin_ia32_sbb_u64
2095 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2097 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2099 (nds32_function_arg_advance): Likewise.
2100 (nds32_init_cumulative_args): Likewise.
2101 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2102 (NDS32_FIRST_GPR_REGNUM): Define.
2103 (NDS32_LAST_GPR_REGNUM): Define.
2104 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2105 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2106 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2107 (machine_function): Use GRP-specific stuff.
2109 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2111 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2112 (nds32_expand_epilogue): Likewise.
2113 (nds32_expand_prologue_v3push): Likewise.
2114 (nds32_expand_epilogue_v3pop): Likewise.
2116 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2118 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2119 v3push/v3pop for variadic function.
2120 * config/nds32/nds32.md (prologue, epilogue): Likewise.
2122 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2124 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2125 Check rtx for varargs implementation.
2126 (nds32_output_stack_pop): Likewise.
2127 * config/nds32/nds32-protos.h: Have a rtx argument for
2128 nds32_output_stack_push and nds32_output_stack_pop.
2129 * config/nds32/nds32.md: Likewise.
2131 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2133 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2134 to check if FUNC is an interrupt service routine.
2135 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2137 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2139 * config/nds32/nds32.h (machine_function): Add some fields for variadic
2140 arguments implementation.
2142 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2144 * config/nds32/nds32-predicates.c
2145 (nds32_valid_stack_push_pop): Rename to ...
2146 (nds32_valid_stack_push_pop_p): ... this.
2147 * config/nds32/nds32-protos.h: Likewise.
2148 * config/nds32/predicates.md: Likewise.
2150 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2152 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2153 (nds32_emit_stack_v3push): ... this.
2154 (nds32_gen_stack_v3pop): Rename to ...
2155 (nds32_emit_stack_v3pop): ... this and consider CFA restore
2158 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2160 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2161 (nds32_emit_stack_push_multiple): ... this.
2162 (nds32_gen_stack_pop_multiple): Rename to ...
2163 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2166 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2169 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2170 and add a second splitter to handle the remaining cases.
2172 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2174 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2176 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2178 * cfgexpand.c (label_rtx_for_bb): Change type to
2179 hash_map<basic_block, rtx_code_label *> *.
2180 (expand_gimple_basic_block): Adjust.
2181 (pass_expand::execute): Likewise.
2183 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2185 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2186 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2187 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2188 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2189 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2190 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2191 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2194 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2196 * alloc-pool.c: Include coretypes.h.
2197 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2198 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2199 hash_set instead of htab.
2200 * ggc-page.c (in_gc): New variable.
2201 (ggc_free): Do nothing if a collection is taking place.
2202 (ggc_collect): Set in_gc appropriately.
2203 * ggc.h (gt_ggc_mx(const char *)): New function.
2204 (gt_pch_nx(const char *)): Likewise.
2205 (gt_ggc_mx(int)): Likewise.
2206 (gt_pch_nx(int)): Likewise.
2207 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2208 (hash_map::hash_entry::pch_nx): Likewise.
2209 (hash_map::hash_entry::pch_nx_helper): Likewise.
2210 (hash_map::hash_map): Adjust.
2211 (hash_map::create_ggc): New function.
2212 (gt_ggc_mx): Likewise.
2213 (gt_pch_nx): Likewise.
2214 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2215 (default_hashset_traits::pch_nx): Likewise.
2216 (hash_set::hash_entry::ggc_mx): Likewise.
2217 (hash_set::hash_entry::pch_nx): Likewise.
2218 (hash_set::hash_entry::pch_nx_helper): Likewise.
2219 (hash_set::hash_set): Adjust.
2220 (hash_set::create_ggc): New function.
2221 (hash_set::elements): Likewise.
2222 (gt_ggc_mx): Likewise.
2223 (gt_pch_nx): Likewise.
2224 * hash-table.h (hash_table::hash_table): Adjust.
2225 (hash_table::m_ggc): New member.
2226 (hash_table::~hash_table): Adjust.
2227 (hash_table::expand): Likewise.
2228 (hash_table::empty): Likewise.
2229 (gt_ggc_mx): New function.
2230 (hashtab_entry_note_pointers): Likewise.
2231 (gt_pch_nx): Likewise.
2233 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2235 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
2236 built-in definition.
2237 (XVCVUXDDP_SCALE): Likewise.
2238 (XVCVDPSXDS_SCALE): Likewise.
2239 (XVCVDPUXDS_SCALE): Likewise.
2240 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2241 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2242 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2243 VSX_BUILTIN_XVCVDPUXDS_SCALE.
2244 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2246 * config/rs6000/rs6000.c (real.h): New include.
2247 (rs6000_scale_v2df): New function.
2248 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2249 (UNSPEC_VSX_XVCVUXDDP): Likewise.
2250 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2251 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2252 (vsx_xvcvsxddp_scale): New define_expand.
2253 (vsx_xvcvsxddp): New define_insn.
2254 (vsx_xvcvuxddp_scale): New define_expand.
2255 (vsx_xvcvuxddp): New define_insn.
2256 (vsx_xvcvdpsxds_scale): New define_expand.
2257 (vsx_xvcvdpsxds): New define_insn.
2258 (vsx_xvcvdpuxds_scale): New define_expand.
2259 (vsx_xvcvdpuxds): New define_insn.
2260 * doc/extend.texi (vec_ctf): Add new prototypes.
2261 (vec_cts): Likewise.
2262 (vec_ctu): Likewise.
2263 (vec_splat): Likewise.
2264 (vec_div): Likewise.
2265 (vec_mul): Likewise.
2267 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2270 * config/arm/neon.md
2271 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2272 <v_cmp_result>): New pattern.
2273 * config/arm/iterators.md (NEON_VCVT): New int iterator.
2274 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2275 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2276 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2277 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2278 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2280 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2283 * config/arm/iterators.md (FIXUORS): New code iterator.
2284 (VCVT): New int iterator.
2285 (su_optab): New code attribute.
2287 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2289 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2291 * config/aarch64/predicates.md (aarch64_comparison_operation):
2292 New special predicate.
2293 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2294 aarch64_comparison_operation instead of matching an operator.
2295 Update operand numbers.
2296 (csinc3<mode>_insn): Likewise.
2297 (*csinv3<mode>_insn): Likewise.
2298 (*csneg3<mode>_insn): Likewise.
2299 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2300 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2301 Return -1 instead of aborting on invalid condition codes.
2302 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2303 to assert that the returned condition code is valid.
2304 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2306 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2308 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2309 tree.def, and gimple.def
2311 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2312 Balaji V. Iyer <balaji.v.iyer@intel.com>
2313 Igor Zamyatin <igor.zamyatin@intel.com>
2315 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2316 (__cilkrts_cilk_for_64): Likewise.
2317 * cilk-common.c (declare_cilk_for_builtin): New function.
2318 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2319 __cilkrts_cilk_for_64 bultins.
2320 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2322 (cilk_for_32_fndecl): New define.
2323 (cilk_for_64_fndecl): Likewise.
2324 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2325 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2326 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2327 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2328 GF_OMP_FOR_COMBINED_INTO.
2329 * gimplify.c (gimplify_scan_omp_clauses): Added
2330 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2331 (gimplify_adjust_omp_clauses): Ditto.
2332 (gimplify_omp_for): Added CILK_FOR case.
2333 (gimplify_expr): Ditto.
2334 * omp-low.c: Include cilk.h.
2335 (extract_omp_for_data): Set appropriate kind for
2336 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2337 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2338 (create_omp_child_function_name): Added second argument to handle
2340 (cilk_for_check_loop_diff_type): New function.
2341 (expand_cilk_for_call): Likewise.
2342 (expand_cilk_for): Likewise.
2343 (create_omp_child_function): Set cilk_for_count; handle the cases when
2344 it is true; call create_omp_child_function_name with second argument.
2345 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2346 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2347 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2348 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2349 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2350 (convert_local_omp_clauses): Ditto.
2351 * tree-pretty-print.c (dump_omp_clause): Added
2352 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2353 (dump_generic_node): Added CILK_FOR case.
2354 * tree.c (omp_clause_num_ops): New element
2355 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2356 (omp_clause_code_name): New element _Cilk_for_count_.
2357 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2358 * tree.def: Add tree code for CILK_FOR.
2360 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2362 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2363 (ppc403-compare): Add "exts with dot" case.
2364 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2365 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2366 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2367 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2368 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2369 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2370 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2371 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2372 cell-cmp-microcoded): Similarly.
2373 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2374 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2375 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2376 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2377 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2378 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2379 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2380 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2381 (power6-compare): Add "exts with dot" case.
2382 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2383 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2384 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2386 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2387 if avoiding Cell microcode.
2388 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2389 (is_cracked_insn): Ditto.
2390 (insn_must_be_first_in_group): Ditto.
2391 * config/rs6000/rs6000.md (dot): Adjust comment.
2392 (cell_micro): Handle exts+dot.
2393 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2394 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2395 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2396 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2397 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2398 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2399 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2401 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2403 * config/rs6000/rs6000.md (QHSI): Delete.
2404 (EXTQI, EXTHI, EXTSI): New mode iterators.
2405 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2406 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2407 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2408 9 anonymous instructions, and 8 splitters): Delete.
2409 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2410 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2411 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2412 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2413 *zero_extendsi<mode>2_dot2): New.
2415 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2417 * config/rs6000/rs6000.md (any_extend): New code iterator.
2418 (u, su): New code attributes.
2419 (dmode, DMODE): New mode attributes.
2420 (<su>mul<mode>3_highpart): New.
2421 (*<su>mul<mode>3_highpart): New.
2422 (<su>mulsi3_highpart_le): New.
2423 (<su>muldi3_highpart_le): New.
2424 (<su>mulsi3_highpart_64): New.
2425 (<u>mul<mode><dmode>3): New.
2426 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2428 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2431 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2433 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2434 *mulsi3_internal2, and two splitters): Delete.
2435 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2437 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2439 2014-09-02 Richard Biener <rguenther@suse.de>
2441 PR tree-optimization/62695
2442 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2445 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2448 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2450 2014-09-01 Andi Kleen <ak@linux.intel.com>
2452 * file-find.c (add_prefix_begin): Add.
2453 (do_add_prefix): Rename from add_prefix with first argument.
2454 (add_prefix): Add new wrapper.
2455 * file-find.h (add_prefix_begin): Add.
2456 * gcc-ar.c (main): Support -B option.
2458 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2460 * genemit.c: Include dumpfile.h.
2461 (gen_split): Print name of splitter function to dump file.
2463 2014-09-01 Richard Biener <rguenther@suse.de>
2465 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2466 Use stack auto_vecs for constraint expressions.
2467 (find_func_aliases_for_call): Likewise.
2468 (find_func_aliases): Likewise.
2469 (find_func_clobbers): Likewise.
2471 2014-09-01 Richard Biener <rguenther@suse.de>
2473 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2474 operands vector in most cases. Remove redundant code.
2476 2014-09-01 Olivier Hainque <hainque@adacore.com>
2478 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2479 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2480 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2482 2014-09-01 Richard Biener <rguenther@suse.de>
2484 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2485 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2486 vn_reference_compute_hash, vn_reference_insert): Remove.
2487 (vn_reference_lookup_call): New function.
2488 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2489 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2490 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2491 (create_reference_ops_from_call): Remove.
2492 (vn_reference_lookup_3): Properly update shared_lookup_references.
2493 (vn_reference_lookup_pieces): Assert that we updated
2494 shared_lookup_references properly.
2495 (vn_reference_lookup): Likewise.
2496 (vn_reference_lookup_call): New function.
2497 (visit_reference_op_call): Use it. Avoid re-building the
2499 (visit_reference_op_load): Remove redundant lookup.
2500 (visit_reference_op_store): Perform special tail-merging work
2501 only when possibly doing tail-merging.
2502 (visit_use): Likewise.
2503 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2505 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2508 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2509 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2510 (find_inc): Revert 2014-08-13 change.
2512 2014-09-01 Marek Polacek <polacek@redhat.com>
2515 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2516 Change the type of V to unsigned HOST_WIDE_INT.
2518 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2520 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2521 the size of byte markers.
2522 (do_shift_rotate): Fix confusion between host, target and marker byte
2524 (verify_symbolic_number_p): Likewise.
2525 (find_bswap_or_nop_1): Likewise.
2526 (find_bswap_or_nop): Likewise.
2528 2014-09-01 Olivier Hainque <hainque@adacore.com>
2530 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2531 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2533 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2535 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2536 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2537 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2539 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2543 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2544 (build_check_stmt): Likewise.
2545 (instrument_strlen_call): Likewise.
2546 (asan_expand_check_ifn): Likewise and fix types.
2547 (maybe_cast_to_ptrmode): New function.
2549 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2551 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2553 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2555 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2557 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2559 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2560 prefix to function labels when generating fast indirect calls.
2562 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2566 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2567 param back from rtx_insn * to rtx. Rename param from "label" to
2568 "label_or_return", reintroducing "label" as an rtx_insn * after
2569 we've ensured it's not a RETURN.
2570 (first_active_target_insn): Likewise for return type and param;
2571 add a checked cast to rtx_insn * once we've ensured "insn" is not
2573 (steal_delay_list_from_target): Convert param "pnew_thread" back
2574 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2576 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2577 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2578 cast once we've established we're not dealing with a RETURN,
2579 renaming subsequent uses of "thread" to "thread_insn".
2580 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2582 (follow_jumps): Convert return type and param "label" from
2583 rtx_insn * back to rtx. Move initialization of "value" to after
2584 the handling for ANY_RETURN_P, adding a checked cast there to
2585 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2586 rename to "this_label_or_return", reintroducing "this_label" as
2587 an rtx_insn * once we've handled the case where it could be an
2589 (fill_slots_from_thread): Rename param "thread" to
2590 "thread_or_return", converting from an rtx_insn * back to an rtx.
2591 Reintroduce name "thread" as an rtx_insn * local with a checked
2592 cast once we've handled the case of it being an ANY_RETURN_P.
2593 Convert local "new_thread" from an rtx_insn * back to an rtx.
2594 Add a checked cast when assigning to "trial" from "new_thread".
2595 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2596 checked cast to rtx_insn * from "new_thread" when invoking
2598 (fill_eager_delay_slots): Convert locals "target_label",
2599 "insn_at_target" from rtx_insn * back to rtx.
2600 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2601 (relax_delay_slots): Convert locals "trial", "target_label" from
2602 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2603 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2604 invoking update_block.
2605 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2606 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2608 * resource.h (mark_target_live_regs): Undo erroneous conversion
2609 of second param of r214693, converting it back from rtx_insn * to
2610 rtx, since it could be a RETURN.
2612 * resource.c (find_dead_or_set_registers): Similarly, convert
2613 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2614 could be writing back a RETURN. Rename local rtx_insn * "next" to
2615 "next_insn", and introduce "lab_or_return" as a local rtx,
2616 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2617 (mark_target_live_regs): Undo erroneous conversion
2618 of second param of r214693, converting it back from rtx_insn * to
2619 rtx, since it could be a RETURN. Rename it from "target" to
2620 "target_maybe_return", reintroducing the name "target" as a local
2621 rtx_insn * with a checked cast, after we've handled the case of
2624 2014-08-29 DJ Delorie <dj@redhat.com>
2626 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2627 pointer size up to a power of two.
2628 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2629 (POINTER_SIZE_UNITS): New, rounded up value.
2630 * dwarf2asm.c (size_of_encoded_value): Use it.
2631 (dw2_output_indirect_constant_1): Likewise.
2632 * expmed.c (init_expmed_one_conv): We now know the sizes of
2634 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2635 * optabs.c (expand_float): Use precision, not size.
2636 (expand_fix): Likewise.
2637 * simplify-rtx (simplify_unary_operation_1): Likewise.
2638 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2639 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2640 (default_assemble_integer) Likewise.
2641 (dump_tm_clone_pairs): Likewise.
2642 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2643 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2644 (prepare_call_arguments): Likewise.
2645 * stor-layout.c (finalize_type_size): Preserve precision.
2646 (layout_type): Use precision, not size.
2648 * expr.c (convert_move): If the target has an explicit converter,
2651 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2653 * gdbinit.in: Skip various inline functions in rtl.h when
2656 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2659 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2661 2014-08-29 Richard Biener <rguenther@suse.de>
2663 PR tree-optimization/62291
2664 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2665 exactly the vector size needed and use quick_push.
2666 (phi_translate_1): Adjust comment.
2667 (valid_in_sets): Remove block argument and remove pointless
2669 (dependent_clean): Adjust for removal of block argument.
2671 (compute_antic_aux): Likewise.
2672 (compute_partial_antic_aux): Likewise.
2674 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2675 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2676 Anna Tikhonova <anna.tikhonova@intel.com>
2677 Ilya Tocar <ilya.tocar@intel.com>
2678 Andrey Turetskiy <andrey.turetskiy@intel.com>
2679 Ilya Verbin <ilya.verbin@intel.com>
2680 Kirill Yukhin <kirill.yukhin@intel.com>
2681 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2683 * config/i386/sse.md
2684 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2685 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2686 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2687 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2689 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2691 Anna Tikhonova <anna.tikhonova@intel.com>
2692 Ilya Tocar <ilya.tocar@intel.com>
2693 Andrey Turetskiy <andrey.turetskiy@intel.com>
2694 Ilya Verbin <ilya.verbin@intel.com>
2695 Kirill Yukhin <kirill.yukhin@intel.com>
2696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2698 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2699 * config/i386/sse.md
2700 (define_mode_iterator VI4_128_8_256): New.
2701 (define_mode_iterator VI2_128_4_256): Ditto.
2702 (define_mode_iterator PMOV_DST_MODE): Rename into
2703 (define_mode_iterator PMOV_DST_MODE_1): this.
2704 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2705 Use PMOV_DST_MODE_1 mode iterator.
2706 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2708 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2710 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2711 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2712 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2713 (define_mode_iterator PMOV_DST_MODE_2): New.
2714 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2715 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2716 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2718 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2719 (define_mode_attr pmov_dst_3): Ditto.
2720 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2721 (define_mode_attr pmov_suff_3): Ditto.
2722 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2723 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2724 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2725 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2726 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2727 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2728 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2729 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2730 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2731 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2732 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2733 (define_mode_attr pmov_dst_4): Ditto.
2734 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2735 (define_mode_attr pmov_suff_4): Ditto.
2736 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2737 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2738 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2739 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2740 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2741 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2742 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2743 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2744 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2745 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2746 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2748 2014-08-29 Richard Biener <rguenther@suse.de>
2750 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2751 NON_LVALUE_EXPR in gimple.
2753 2014-08-29 Richard Biener <rguenther@suse.de>
2756 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2757 from previous refactoring.
2758 (gimple_fold_builtin_strncpy): Likewise.
2760 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2763 * function.c (assign_parm_setup_reg): Remove erroneous checked
2764 cast to rtx_insn * on result of gen_extend_insn in favor of
2765 introducing a new local rtx "pat".
2767 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2769 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2771 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2773 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2775 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2776 (next_insn): Likewise.
2777 * emit-rtl.c (next_insn): Likewise.
2778 (previous_insn): Likewise.
2779 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2780 "insn" and "next" from rtx to rtx_insn *.
2781 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2782 "insn", "insn1", "vliw_start", "prologue_end_note",
2783 "last_insn_in_packet".
2785 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2787 * shrink-wrap.h (active_insn_between): Strengthen both params from
2789 * function.c (active_insn_between): Likewise.
2791 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2793 * genattr.c (main): When writing out insn-attr.h, strengthen param
2794 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2795 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2796 writing out the definition of dfa_clear_single_insn_cache to the
2797 generated insn-automata.c
2799 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2801 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2803 (incr_ticks_for_insn): Likewise.
2804 (init_resource_info): Likewise.
2806 * resource.c (init_resource_info): Likewise.
2807 (clear_hashed_info_for_insn): Likewise.
2808 (incr_ticks_for_insn): Likewise.
2810 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2812 (steal_delay_list_from_target): Use methods of "seq".
2813 (try_merge_delay_insns): Use methods of "merged_insns".
2814 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2815 (reorg_redirect_jump): Likewise for param "jump".
2817 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2819 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2821 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2822 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2824 (s390_mainpool_finish): In three places, split out a local rtx
2825 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2826 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2827 and split another local rtx "insn" out into rtx "pat" and
2829 * config/sh/sh.c (output_branchy_insn): Rather than working
2830 directly on operands[9], introduce local rtx_code_label *
2831 variables named "lab" in two places, working on them, and then
2832 assigning them to operands[9], so that the intervening operations
2833 are known by the type system to be on insns.
2835 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2837 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2840 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2841 in invocation of INSN_HAS_LOCATION.
2843 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2845 * config/rs6000/altivec.h (vec_xl): New #define.
2846 (vec_xst): Likewise.
2847 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2848 (XXSPLTD_V2DI): Likewise.
2849 (DIV_V2DI): Likewise.
2850 (UDIV_V2DI): Likewise.
2851 (MUL_V2DI): Likewise.
2852 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2853 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2854 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2855 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2856 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2857 (UNSPEC_VSX_DIVSD): Likewise.
2858 (UNSPEC_VSX_DIVUD): Likewise.
2859 (UNSPEC_VSX_MULSD): Likewise.
2860 (vsx_mul_v2di): New insn-and-split.
2861 (vsx_div_v2di): Likewise.
2862 (vsx_udiv_v2di): Likewise.
2863 (vsx_xxspltd_<mode>): New insn.
2865 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2867 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2869 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2870 (NEXT_INSN): Likewise.
2871 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2872 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2874 (no_labels_between_p): Likewise for both params.
2876 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2877 cast when using NEXT_INSN on operands[2].
2878 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2879 "insn" from rtx to rtx_insn *, adding a checked cast.
2880 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2882 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2884 (arc_text_label): Likewise for param "insn".
2885 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2887 (arc_ccfsm_record_condition): Likewise for param "jump".
2888 (arc_text_label): Likewise for local "label".
2889 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2890 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2891 a method for typesafety. Add a checked cast.
2892 * config/arc/constraints.md (Clb): Add a checked cast when getting
2893 the CODE_LABEL from a LABEL_REF.
2894 * config/arm/arm.c (require_pic_register): Strengthen locals
2895 "seq", "insn" from rtx to rtx_insn *.
2896 (create_fix_barrier): Likewise for locals "selected", "next".
2897 (thumb1_reorg): Likewise for locals "prev", "insn".
2898 (arm_expand_prologue): Likewise for local "last".
2899 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2901 (thumb2_output_casesi): Likewise for operands[2].
2902 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2903 strengthen local "insn" from rtx to rtx_insn *.
2904 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2905 type and param "insn".
2906 (find_prev_insn_start): Likewise.
2907 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2909 (gen_one_bundle): Likewise for loal "t".
2910 (find_load): Likewise for param "insn".
2911 (workaround_speculation): Likewise for locals "insn", "next",
2912 "target", "next_tgt".
2913 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2914 and for locals "insn", "within", "last".
2915 (count_unit_reqs): Likewise for params "head", "tail" and local
2917 (try_rename_operands): Likewise for params "head", "tail".
2918 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2919 (struct c6x_sched_context): Likewise for fields
2920 "last_scheduled_insn", "last_scheduled_iter0".
2921 (init_sched_state): Replace NULL_RTX with NULL.
2922 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2924 (undo_split_delayed_nonbranch): Likewise for param and for local
2926 (conditionalize_after_sched): Likewise for local "insn".
2927 (bb_earliest_end_cycle): Likewise.
2928 (filter_insns_above): Likewise for locals "insn", "next".
2929 (hwloop_optimize): Remove redundant checked cast.
2930 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2931 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2933 (cris_simple_epilogue): Likewise.
2934 (cris_expand_prologue): Likewise.
2935 (cris_expand_epilogue): Likewise.
2936 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2937 local "insn" from rtx to rtx_insn *.
2938 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2939 (struct frv_packet_group): Likewise for the elements within array
2940 fields "insns", "sorted", and for field "nop".
2941 (frv_packet): Likewise for the elements within array field
2943 (frv_add_insn_to_packet): Likewise for param "insn".
2944 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2946 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2947 (frv_sort_insn_group_1): Likewise for local "insn".
2948 (frv_optimize_membar_local): Likewise.
2949 (frv_align_label): Likewise for locals "x", "last", "barrier",
2951 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2953 (ia64_sched_init): Likewise for local "insn".
2954 (scheduled_good_insn): Likewise for param "last".
2955 (struct _ia64_sched_context): Likewise for field
2956 "last_scheduled_insn".
2957 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2958 (struct bundle_state): Likewise for field "insn".
2959 (issue_nops_and_insn): Likewise for param "insn".
2960 (get_next_important_insn): Likewise for return type and both
2962 (ia64_add_bundle_selector_before): Likewise for param "insn".
2963 (bundling): Likewise for params "prev_head_insn", "tail" and
2964 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2965 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2966 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2967 Strengthen final param from rtx to rtx_insn *.
2968 (iq2000_move_1word): Likewise for second param.
2969 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2970 param "cur_insn" and local "next_insn".
2971 (iq2000_move_1word): Likewise for param "insn".
2972 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2973 casts when using NEXT_INSN on operands[1].
2974 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2975 "insn" from rtx to rtx_insn *.
2976 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2977 "x", introducing local rtx_insn * "insn" for when working with the
2978 CODE_LABEL of the LABEL_REF.
2979 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2981 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2983 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2985 (conditionalize_block): Likewise for return type and param.
2986 (mcore_is_dead): Likewise for param "first" and local "insn".
2987 (emit_new_cond_insn): Likewise for return type.
2988 (conditionalize_block): Likewise for return type, param, and
2989 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2991 (conditionalize_optimization): Likewise for local "insn".
2992 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2994 * config/microblaze/microblaze.md: Add checked casts when using
2996 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2997 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2998 and rtx_insn * "insn".
2999 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3000 checked cast when using NEXT_INSN on operands[2].
3001 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3002 local "insn" from rtx to rtx_insn *.
3003 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3005 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3006 Add a checked cast when using NEXT_INSN on operands[1].
3007 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3009 (pa_output_cbranch): Likewise for final param.
3010 (pa_output_lbranch): Likewise for second param.
3011 (pa_output_bb): Likewise for third param.
3012 (pa_output_bvb): Likewise.
3013 (pa_output_dbra): Likewise for second param.
3014 (pa_output_movb): Likewise.
3015 (pa_output_parallel_movb): Likewise.
3016 (pa_output_parallel_addb): Likewise.
3017 (pa_output_millicode_call): Likewise for first param.
3018 (pa_output_mul_insn): Likewise for second param.
3019 (pa_output_div_insn): Likewise for third param.
3020 (pa_output_mod_insn): Likewise for second param.
3021 (pa_jump_in_call_delay): Likewise for param.
3022 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3023 (pa_output_div_insn): Likewise.
3024 (pa_output_mod_insn): Likewise.
3025 (pa_output_cbranch): Likewise.
3026 (pa_output_lbranch): Likewise.
3027 (pa_output_bb): Likewise.
3028 (pa_output_bvb): Likewise.
3029 (pa_output_dbra): Likewise.
3030 (pa_output_movb): Likewise.
3031 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3032 to simplify and for typesafety.
3033 (pa_output_call): Use method of rtx_sequence *.
3034 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3035 (pa_jump_in_call_delay): Likewise.
3036 (pa_output_parallel_movb): Likewise.
3037 (pa_output_parallel_addb): Likewise.
3038 (pa_following_call): Likewise.
3039 (pa_combine_instructions): Likewise for locals "anchor",
3041 (pa_can_combine_p): Likewise for params "anchor", "floater" and
3042 locals "start", "end".
3043 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3044 param "insn" and local "local_insn".
3045 (picochip_final_prescan_insn): Likewise for local "local_insn".
3046 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3048 (uses_TOC): Likewise.
3049 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3050 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3051 splitting out to more tightly-scoped locals, 3 as rtx and one as
3053 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3055 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3057 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3059 (fixup_addr_diff_vecs): Likewise.
3060 (reg_unused_after): Likewise for param 2.
3061 (sh_can_redirect_branch): Likewise for both params.
3062 (check_use_sfunc_addr): Likewise for param 1.
3063 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3064 (find_barrier): Likewise for local "last_got".
3065 (gen_block_redirect): Likewise for return type, param "jump" and
3066 locals "prev", "scan", "next", "insn".
3067 (struct far_branch): Likewise for fields "near_label",
3068 "insert_place", "far_label".
3069 (gen_far_branch): Likewise for local "jump".
3070 (fixup_addr_diff_vecs): Likewise for param "first" and locals
3072 (barrier_align): Likewise for param and for locals "prev", "x".
3073 Introduce local rtx_sequence * "prev_seq" and use insn method for
3074 typesafety and clarity.
3075 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3076 (get_dest_uid): Likewise for local "dest".
3077 (split_branches): Likewise for locals "next", "beyond", "label",
3078 "block", "far_label". Add checked casts when assigning to
3079 bp->far_label and "far_label".
3080 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3081 (sequence_insn_p): Likewise.
3082 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
3083 more loop-scoped rtx "insn" when walking LABEL_REFS.
3084 (sh_can_redirect_branch): Strengthen both params from rtx to
3086 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
3087 new local rtx_sequence * "seq" via a dyn_cast, and use a method
3088 for clarity and typesafety.
3089 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3090 "insn" from rtx to rtx_insn *.
3091 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3092 when using NEXT_INSN on the CODE_LABEL in operands[2].
3093 (define_insn "casesi_worker_2"): Likewise.
3094 (define_insn "casesi_shift_media"): Likewise.
3095 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3097 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3098 Strengthen field "insn" from rtx to rtx_insn *.
3099 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3100 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3101 param "start_insn" and local "start_insn".
3102 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3104 (find_set_of_reg_bb): Likewise for param "insn".
3105 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3106 (trace_reg_uses): Likewise for param "start_insn".
3107 (sh_treg_combine::cbranch_trace): Likewise for field
3109 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3111 (sh_treg_combine::record_set_of_reg): Likewise for param
3112 "start_insn" and local "i".
3113 (sh_treg_combine::can_remove_cstore): Likewise for local
3115 (sh_treg_combine::try_optimize_cbranch): Likewise for param
3117 (sh_treg_combine::execute): Likewise for local "i".
3118 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3120 (sparc_check_64): Likewise for second param.
3121 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3122 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
3123 dyn_cast, using its insn method for typesafety and clarity.
3124 (empty_delay_slot): Strengthen param "insn" from rtx to
3126 (set_extends): Likewise.
3127 (sparc_check_64): Likewise.
3128 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3129 for locals "seq", "last_insn".
3130 (combine_bnp): Likewise for param "insn".
3131 (xstormy16_reorg): Likewise for local "insn".
3132 * config/v850/v850.c (substitute_ep_register): Likewise for params
3133 "first_insn", "last_insn" and local "insn".
3134 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3135 elements of "regs" array, and local "insn".
3136 * except.c (emit_note_eh_region_end): Likewise for param "insn".
3137 * final.c (final_sequence): Strengthen this global from rtx to
3139 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3141 (final_scan_insn): Update assignment to "final_sequence" to be
3142 from "seq", the cast version of "body", for type-safety.
3143 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3144 "insns" from rtx to rtx_insn *.
3145 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3146 * genattr.c (main): When writing out generated insn-attr.h,
3147 strengthen params 1 and 3 of eligible_for_delay,
3148 eligible_for_annul_true, eligible_for_annul_false from rtx to
3150 * genattrtab.c (write_eligible_delay): Likewise when writing out
3151 generated insn-attrtab.c; also local "insn" the generated
3153 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3155 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3156 "start_label" from rtx to rtx_insn *.
3157 * ira.c (decrease_live_ranges_number): Likewise for local "p".
3158 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3159 "insns" and local "insn".
3160 (validate_equiv_mem): Likewise for param "start" and local "insn".
3161 (memref_used_between_p): Likewise for params "start", "end" and
3163 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3165 * loop-doloop.c (doloop_optimize): Within region guarded by
3166 INSN_P (doloop_pat), introduce a new local rtx_insn *
3167 "doloop_insn" via a checked cast, and use it for typesafety,
3168 eventually writing the value back into doloop_pat.
3169 * output.h (final_sequence): Strengthen this global from rtx to
3171 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3172 reintroducing "insn" as an rtx_insn * via a checked cast.
3173 Strengthen param "attempt" and local "new_insn"from rtx to
3175 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3177 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3178 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3179 "p" in favor of more tightly-scoped replacements, sometimes rtx
3180 and sometimes rtx_insn *, as appropriate.
3181 (delete_output_reload): Eliminate top-level rtx "i1", splitting
3182 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3183 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
3184 local "trial" from rtx to rtx_insn *.
3185 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3186 rtx to rtx_insn *. Strenghten local "pat" from rtx to
3187 rtx_sequence * and use methods for clarity and typesafety.
3188 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3189 rtx to rtx_insn *. Strenghten local "li" from rtx to
3190 rtx_insn_list * and use its methods for clarity and typesafety.
3191 (steal_delay_list_from_target): Strengthen param "insn" from rtx
3193 (steal_delay_list_from_fallthrough): Likewise.
3194 (try_merge_delay_insns): Likewise for param "thread" and locals
3195 "trial", "next_trial", "delay_insn".
3196 (redundant_insn): Likewise for param "target" and local "trial".
3197 (own_thread_p): Likewise for param "thread" and locals
3198 "active_insn", "insn".
3199 (get_label_before): Likewise for param "insn".
3200 (fill_simple_delay_slots): Likewise for local "new_label"; use
3201 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3202 (label_before_next_insn): Strengthen return type and local "insn"
3203 from rtx to rtx_insn *.
3204 (relax_delay_slots): Likewise for locals "other", "tmp".
3205 (make_return_insns): Likewise for param "first" and locals "insn",
3206 "jump_insn", "prev". Move declaration of "pat" to its assignment
3207 and strengthen from rtx to rtx_sequence *. Use its methods for
3208 clarity and typesafety.
3209 * rtlanal.c (no_labels_between_p): Strengthen params from
3210 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
3212 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3213 from const_rtx to const rtx_insn *.
3214 (reg_set_between_p): Rename param "from_insn" to
3215 "uncast_from_insn", and reintroduce "from_insn" as a
3216 const rtx_insn * via a checked cast.
3217 (modified_between_p): Likewise for param "start" as "uncast_start".
3218 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3219 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3220 "tmp", head" from rtx to rtx_insn *.
3221 (recompute_rev_top_order): Likewise for local "insn".
3222 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3223 * store-motion.c (build_store_vectors): Likewise for local "insn".
3224 Strengthen local "st" from rtx to rtx_insn_list * and use methods
3225 for clarity and typesafety.
3226 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3228 (computation_cost): Likewise for local "seq".
3229 (get_address_cost): Likewise.
3231 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3233 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3235 (label_is_jump_target_p): Likewise for second param.
3237 * rtlanal.c (tablejump_p): Likewise for param "insn".
3238 (label_is_jump_target_p): Likewise for param "jump_insn".
3240 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3242 * rtl.h (find_first_parameter_load): Strengthen return type and
3243 both params from rtx to rtx_insn *.
3244 * rtlanal.c (find_first_parameter_load): Strengthen return type,
3245 both params and locals "before", "first_set" from rtx to
3246 rtx_insn *. Remove now-redundant cast.
3247 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3249 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3251 * rtl.h (find_last_value): Delete.
3252 * rtlanal.c (find_last_value): Delete.
3254 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3256 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3257 from rtx to rtx_insn *.
3258 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3259 rtx "note" with new local rtx_insn * "new_head" when calculating
3260 head insn of new basic block.
3261 * combine.c (combine_split_insns): Strengthen return type and local
3262 "ret" from rtx to rtx_insn *.
3263 (likely_spilled_retval_p): Likewise for locals "use" and "p".
3264 (try_combine): Eliminate local "m_split", splitting into new
3265 locals "m_split_insn" and "m_split_pat".
3266 (find_split_point): Strengthen local "seq" from rtx into
3268 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3269 locals "label", "branch".
3270 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3272 (define_expand "umulsi3_highpart"): Likewise for local "insn".
3273 * dse.c (note_add_store_info): Likewise for fields "first",
3275 (note_add_store): Likewise for local "insn".
3276 (emit_inc_dec_insn_before): Likewise for locals "insn",
3278 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3279 (replace_read): Likewise for locals "insns", "this_insn".
3280 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3281 (notice_eh_throw): Likewise for param "insn".
3282 (before_next_cfi_note): Likewise for return type, param, and local
3284 (connect_traces): Likewise for local "note".
3285 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3286 (verify_rtl_sharing): Likewise.
3287 (unshare_all_rtl_in_chain): Likewise for param "insn".
3288 (get_first_nonnote_insn): Likewise for local "insn".
3289 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3290 "seq" and use its methods to clarify things.
3291 (next_insn): Strengthen return type from rtx to rtx_insn *.
3292 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3293 local rtx_insn * using a checked cast, dropping a checked cast
3294 made redundant by this change. Use a cast to and method of
3295 rtx_sequence to clarify the code.
3296 (previous_insn): Rename param "insn" to "uncast_insn" and
3297 reintroduce "insn" as a local rtx_insn * using a checked cast,
3298 dropping a checked cast made redundant by this change. Use a cast
3299 to and method of rtx_sequence to clarify the code.
3300 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3301 reintroduce "insn" as a local rtx_insn * using a checked cast,
3302 dropping a checked cast made redundant by this change.
3303 (next_nonnote_insn_bb): Likewise.
3304 (prev_nonnote_insn): Likewise.
3305 (prev_nonnote_insn_bb): Likewise.
3306 (next_nondebug_insn): Likewise.
3307 (prev_nondebug_insn): Likewise.
3308 (next_nonnote_nondebug_insn): Likewise.
3309 (prev_nonnote_nondebug_insn): Likewise.
3310 (next_real_insn): Likewise.
3311 (prev_real_insn): Likewise.
3312 (next_active_insn): Likewise.
3313 (prev_active_insn): Likewise.
3314 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3316 (prev_cc0_setter): Likewise.
3317 (try_split): Rename param "trial" to "uncast_trial" and
3318 reintroduce "insn" as a local rtx_insn * using a checked cast,
3319 dropping checked casts made redundant by this change.
3320 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3322 (remove_insn): Rename param "insn" to "uncast_insn" and
3323 reintroduce "insn" as a local rtx_insn * using a checked cast.
3324 (emit_pattern_after_setloc): Likewise for param "after", as
3326 (emit_pattern_after): Likewise. Strengthen local "prev" from
3328 (emit_pattern_before_setloc): Rename param "before" to
3329 "uncast_before" and reintroduce "before" as a local rtx_insn *
3330 using a checked cast. Strengthen locals "first", "last" from
3332 (emit_pattern_before): Likewise rename/cast param "before" to
3333 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3334 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3335 "first" and local "insn" from rtx to rtx_insn *.
3336 (copy_reg_eh_region_note_backward): Likewise for param "last"
3338 * expr.c (fixup_args_size_notes): Rename param "last" to
3339 "uncast_last" and reintroduce "last" as a local rtx_insn *
3340 using a checked cast. Strengthen local "insn" from rtx to
3342 * function.c (set_insn_locations): Strengthen param "insn" from
3344 (record_insns): Likewise for param "insns" and local "tmp".
3345 (active_insn_between): Rename param "tail" to
3346 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3347 using a checked cast.
3348 (thread_prologue_and_epilogue_insns): Split out top-level local
3349 rtx "seq" into three different rtx_insn * locals. Strengthen
3350 local "prologue_seq" from rtx to rtx_insn *.
3351 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3352 from rtx to rtx_insn *.
3353 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3354 (priority): Likewise for locals "prev_first", "twin".
3355 (setup_insn_max_reg_pressure): Likewise for param "after".
3356 (sched_setup_bb_reg_pressure_info): Likewise.
3357 (no_real_insns_p): Strengthen params from const_rtx to
3359 (schedule_block): Strengthen local "next_tail" from rtx to
3361 * ifcvt.c (find_active_insn_before): Strengthen return type and
3362 param "insn" from rtx to rtx_insn *.
3363 (find_active_insn_after): Likewise.
3364 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3365 (cond_exec_process_if_block): Likewise for locals "then_start",
3366 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3367 (noce_process_if_block): Likewise for local "jump".
3368 (merge_if_block): Likewise for two locals named "end".
3369 (cond_exec_find_if_block): Likewise for local "last_insn".
3370 * jump.c (delete_related_insns): Rename param "insn" to
3371 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3372 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3373 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3375 (split_reg): Likewise.
3376 * lra.c (lra_process_new_insns): Likewise.
3377 * modulo-sched.c (permute_partial_schedule): Strengthen param
3378 "last" from rtx to rtx_insn *.
3379 * optabs.c (add_equal_note): Likewise for param "insns" and local
3381 (expand_binop_directly): Add checked casts to rtx_insn * within
3382 NEXT_INSN (pat) uses.
3383 (expand_unop_direct): Likewise.
3384 (maybe_emit_unop_insn): Likewise.
3385 * recog.c (peep2_attempt): Strengthen locals "last",
3386 "before_try", "x" from rtx to rtx_insn *.
3387 * reorg.c (optimize_skip): Strengthen return type and local
3388 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3389 and locals "trial", "next_trial" from rtx to rtx_insn *.
3390 * resource.c (next_insn_no_annul): Strengthen return type and
3391 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3392 rtx_sequence to clarify the code.
3393 (mark_referenced_resources): Add a checked cast to rtx_insn *
3394 within PREV_INSN (x).
3395 (find_dead_or_set_registers): Strengthen return type, param
3396 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3397 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3399 (mark_target_live_regs): Strengthen params "insns" and "target",
3400 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3401 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3403 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3404 from rtx to rtx_insn *.
3405 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3406 from rtx to rtx_insn *.
3407 (copy_reg_eh_region_note_backward): Likewise.
3408 (unshare_all_rtl_in_chain): Likewise for sole param.
3409 (dump_rtl_slim): Strengthen second and third params from const_rtx
3410 to const rtx_insn *.
3411 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3412 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3413 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3414 "next_tail" from rtx to rtx_insn *.
3415 (begin_move_insn): Likewise for local "next".
3416 * sched-int.h (sched_free_deps): Likewise for first and second
3418 (no_real_insns_p): Strengthen both params from const_rtx to
3420 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3422 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3424 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3425 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3426 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3428 (debug_rtl_slim): Strengthen params "first" and "last" from
3429 const_rtx to const rtx_insn *.
3430 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3431 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3432 (convert_to_simple_return): Likewise for param "returnjump".
3433 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3435 (convert_to_simple_return): Likewise for param "returnjump".
3436 * valtrack.c (propagate_for_debug): Likewise for params
3438 * valtrack.h (propagate_for_debug): Likewise for second param.
3440 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3442 * output.h (insn_current_reference_address): Strengthen param
3443 from rtx to rtx_insn *.
3444 * final.c (insn_current_reference_address): Likewise.
3446 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3448 * basic-block.h (inside_basic_block_p): Strengthen param from
3449 const_rtx to const rtx_insn *.
3450 * cfgbuild.c (inside_basic_block_p): Likewise.
3452 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3454 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3456 (get_trace_info): Likewise for param "insn".
3457 (save_point_p): Likewise.
3458 (maybe_record_trace_start): Likewise for both params.
3459 (maybe_record_trace_start_abnormal): Likewise.
3460 (create_trace_edges): Likewise for sole param and for three of the
3462 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3463 to rtx_insn *, and update a call to pat->element to pat->insn.
3465 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3467 * function.h (struct expr_status): Convert field "x_forced_labels"
3468 from rtx_expr_list * to rtx_insn_list *.
3470 * cfgbuild.c (make_edges): Convert local "x" from an
3471 rtx_expr_list * to an rtx_insn_list *, replacing use of
3472 "element" method with "insn" method.
3473 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3474 * except.c (sjlj_emit_dispatch_table): Replace use of
3475 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3477 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3478 rtx_expr_list * to an rtx_insn_list *, replacing use of
3479 "element" method with "insn" method.
3480 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3481 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3482 rtx_insn *, adding a checked cast. Replace use of
3483 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3485 (expand_label): Likewise for local "label_r".
3487 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3489 * function.h (struct rtl_data): Convert field
3490 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3492 * rtl.h (remove_node_from_insn_list): New prototype.
3494 * builtins.c (expand_builtin): When prepending to
3495 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3497 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3498 to rtx_insn_list *, and use its "insn" method rather than
3500 * cfgrtl.c (delete_insn): Use new function
3501 remove_node_from_insn_list rather than
3502 remove_node_from_expr_list.
3503 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3504 to rtx_insn_list *, and use its "insn" method rather than
3506 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3507 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3508 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3509 from remove_node_from_expr_list.
3510 * stmt.c (expand_label): When prepending to
3511 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3514 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3516 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3517 and "x_naked_return_label" from rtx to rtx_code_label *.
3519 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3521 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3522 (SET_NEXT_INSN): Likewise.
3523 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3525 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3526 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3527 to split out the SEQUENCE from local "bundle", strengthening the
3528 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3529 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3530 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3531 and the type of the elements of the "slot" array from rtx to
3533 (reorg_split_calls): Likewise for locals "insn" and "next", and
3534 the type of the elements of the "slot" array.
3536 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3538 (frv_function_prologue): Likewise for locals "insn", "next",
3540 (frv_register_nop): Introduce a local "nop_insn" to be the
3541 rtx_insn * containing rtx "nop".
3543 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3544 used as an insn and sometimes as a pattern, so rename it to
3545 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3546 using it where dealing with the core insn.
3548 * config/picochip/picochip.c (reorder_var_tracking_notes):
3549 Strengthen locals "insn", "next", "last_insn", "queue",
3550 "next_queue", "prev" from rtx to rtx_insn *.
3552 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3553 the second param is an rtx_insn ** rather than an rtx **.
3554 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3555 from rtx to rtx_sequence *, and introduce local named "sequence",
3556 using methods of rtx_sequence to clarify the code.
3557 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3559 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3560 Rename param "after" to "uncast_after", reintroducing "after" as a
3561 local rtx_insn * with a checked cast.
3562 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3563 reintroducing "after" as a local rtx_insn * with a checked cast.
3564 Strengthen local "last" from rtx to rtx_insn * and remove the
3565 now-redundant checked casts.
3566 (copy_delay_slot_insn): Strengthen return type and param from rtx
3569 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3570 "last" from rtx to rtx_insn *.
3572 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3574 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3575 param from rtx to rtx_insn *.
3577 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3579 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3580 and local "insn" from rtx to rtx_insn *.
3581 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3582 (unfilled_slots_next): Likewise.
3583 (function_return_label): Strengthen from rtx to rtx_code_label *.
3584 (function_simple_return_label): Likewise.
3585 (first_active_target_insn): Strengthen return type and param from
3587 (find_end_label): Strengthen return type from rtx to
3588 rtx_code_label *; strengthen locals as appropriate.
3589 (emit_delay_sequence): Strengthen return type, param "insn" and
3590 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3591 and local "li" from rtx to rtx_insn_list *, using methods of
3592 rtx_insn_list for clarity and typesafety.
3593 (add_to_delay_list): Strengthen return type and param "insn" from
3594 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3595 rtx_insn_list * and use methods of rtx_insn_list.
3596 (delete_from_delay_slot): Strengthen return type, param "insn",
3597 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3598 Strengthen local "seq" from rtx to rtx_sequence *, and local
3599 "delay_list" from rtx to rtx_insn_list *, using methods of
3600 rtx_sequence for clarity and type-safety.
3601 (delete_scheduled_jump): Add checked cast when invoking
3602 delete_from_delay_slot. Strengthen local "trial" from rtx to
3604 (optimize_skip): Strengthen return type and local "delay_list"
3605 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3607 (steal_delay_list_from_target): Strengthen return type, param
3608 "delay_list" and local "new_delay_list" from rtx to
3609 rtx_insn_list *. Strengthen param "seq" from rtx to
3610 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3612 Split out local "temp" into multiple more-tightly scoped locals:
3613 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3614 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3615 Strengthen locals named "trial" from rtx to rtx_insn *.
3616 (steal_delay_list_from_fallthrough): Strengthen return type and
3617 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3618 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3619 Strengthen local "trial" from rtx to rtx_insn *.
3620 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3621 to rtx_insn_list * and use its methods. Strengthen local "pat"
3622 from rtx to rtx_sequence * and use its methods. Strengthen locals
3623 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3624 (get_label_before): Strengthen return type and local "label" from
3626 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3627 "next_trial", "next", prev". Strengthen local "delay_list" from
3628 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3630 (follow_jumps): Strengthen return type, param "label" and locals
3631 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3632 (fill_slots_from_thread): Strengthen return type, param
3633 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3634 "insn", "thread", "opposite_thread" and locals "new_thread",
3635 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3636 "sequence" from a checked cast to rtx_sequence so that we can call
3637 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3638 with an rtx_sequence *.
3639 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3640 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3641 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3642 (relax_delay_slots): Strengthen param "first" and locals "insn",
3643 "next", "trial", "delay_insn", "target_label" from rtx to
3644 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3645 Introduce a local "trial_seq" for PATTERN (trial) of type
3646 rtx_sequence *, in both cases using methods of rtx_sequence.
3647 (dbr_schedule): Strengthen param "first" and locals "insn",
3648 "next", "epilogue_insn" from rtx to rtx_insn *.
3650 2014-08-28 Richard Biener <rguenther@suse.de>
3652 PR tree-optimization/62283
3653 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3654 Do not peel loops for alignment where the vector loop likely
3655 doesn't run at least VF times.
3657 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3659 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3660 important_candidates. Consider all important candidates if
3661 IVS doesn't give any result. Remove check on ivs->upto.
3662 (try_add_cand_for): Call iv_ca_add_use only once.
3664 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3665 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3666 Anna Tikhonova <anna.tikhonova@intel.com>
3667 Ilya Tocar <ilya.tocar@intel.com>
3668 Andrey Turetskiy <andrey.turetskiy@intel.com>
3669 Ilya Verbin <ilya.verbin@intel.com>
3670 Kirill Yukhin <kirill.yukhin@intel.com>
3671 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3673 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3674 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3676 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3677 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3678 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3679 (define_insn "*mul<mode>3"): Add EVEX version.
3681 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3682 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3683 Anna Tikhonova <anna.tikhonova@intel.com>
3684 Ilya Tocar <ilya.tocar@intel.com>
3685 Andrey Turetskiy <andrey.turetskiy@intel.com>
3686 Ilya Verbin <ilya.verbin@intel.com>
3687 Kirill Yukhin <kirill.yukhin@intel.com>
3688 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3690 * config/i386/sse.md
3691 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3692 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3693 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3694 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3695 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3696 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3697 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3698 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3699 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3700 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3701 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3702 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3703 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3704 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3705 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3706 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3708 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3709 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3710 Anna Tikhonova <anna.tikhonova@intel.com>
3711 Ilya Tocar <ilya.tocar@intel.com>
3712 Andrey Turetskiy <andrey.turetskiy@intel.com>
3713 Ilya Verbin <ilya.verbin@intel.com>
3714 Kirill Yukhin <kirill.yukhin@intel.com>
3715 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3717 * config/i386/sse.md
3718 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3719 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3720 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3722 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3723 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3724 Anna Tikhonova <anna.tikhonova@intel.com>
3725 Ilya Tocar <ilya.tocar@intel.com>
3726 Andrey Turetskiy <andrey.turetskiy@intel.com>
3727 Ilya Verbin <ilya.verbin@intel.com>
3728 Kirill Yukhin <kirill.yukhin@intel.com>
3729 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3731 * config/i386/sse.md
3732 (define_mode_iterator VI128_256): New.
3733 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3735 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3736 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3737 Anna Tikhonova <anna.tikhonova@intel.com>
3738 Ilya Tocar <ilya.tocar@intel.com>
3739 Andrey Turetskiy <andrey.turetskiy@intel.com>
3740 Ilya Verbin <ilya.verbin@intel.com>
3741 Kirill Yukhin <kirill.yukhin@intel.com>
3742 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3744 * config/i386/sse.md
3745 (define_mode_iterator VI8_256_512): New.
3746 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3748 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3749 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3751 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3753 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3755 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3756 pointer to the cumulative reloc value and return the value for
3758 (compute_reloc_for_rtx): Take a const_rtx. Call
3759 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3760 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3761 for_each_rtx for the CONST case.
3763 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3765 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3766 (mark_constants_in_pattern): ...this new function to iterate over
3768 (mark_constants): Update accordingly.
3770 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3772 * varasm.c: Include rtl-iter.h.
3773 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3774 Remove the pointer to the cumulative hashval_t and just return
3775 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3776 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3777 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3779 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3781 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3782 Give real type of data parameter. Remove return value.
3783 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3784 to iterate over subrtxes.
3786 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3788 * var-tracking.c (use_narrower_mode_test): Turn from being a
3789 for_each_rtx callback to being a function that examines each
3791 (adjust_mems): Update accordingly.
3793 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3795 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3796 callback to being a function that examines each subrtx itself.
3797 Remove handling of null rtxes.
3798 (add_uses): Update accordingly.
3800 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3802 * var-tracking.c: Include rtl-iter.h.
3803 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3804 to being a function that examines each subrtx itself.
3805 (use_type): Update accordingly.
3807 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3809 * store-motion.c: Include rtl-iter.h.
3810 (extract_mentioned_regs_1): Delete.
3811 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3812 for_each_rtx to iterate over subrtxes.
3814 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3816 * sel-sched.c: Include rtl-iter.h
3817 (count_occurrences_1): Delete.
3818 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3819 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3821 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3823 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3824 * rtlanal.c (tls_referenced_p_1): Delete.
3825 (tls_referenced_p): Take a const_rtx rather than an rtx.
3826 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3828 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3830 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3831 (for_each_inc_dec): Take an rtx rather than an rtx *.
3832 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3833 (cselib_record_sets): Likewise.
3834 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3835 (check_for_inc_dec): Likewise.
3836 * rtlanal.c (for_each_inc_dec_ops): Delete.
3837 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3838 rather than a pointer to the memory address. Replace
3839 for_each_inc_dec_ops argument with separate function and data
3840 arguments. Abort on non-autoinc addresses.
3841 (for_each_inc_dec_find_mem): Delete.
3842 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3843 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3845 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3847 * rtl.h (find_all_hard_regs): Declare.
3848 * rtlanal.c (find_all_hard_regs): New function.
3849 (record_hard_reg_uses_1): Delete.
3850 (record_hard_reg_uses): Use find_all_hard_regs.
3852 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3854 * rtl.h (replace_label_data): Delete.
3855 (replace_label): Take the old label, new label and update-nuses flag
3856 as direct arguments. Return void.
3857 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3858 * rtlanal.c (replace_label): Update interface as above. Handle
3859 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3860 iterator. Use FOR_EACH_SUBRTX_PTR.
3862 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3864 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3865 with const_rtx parameters.
3866 * varasm.c (get_pool_constant): Likewise.
3867 * rtlanal.c (rtx_referenced_p_1): Delete.
3868 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3869 Assert that the rtx we're looking for is nonnull. Allow searches
3870 for constant pool SYMBOL_REFs.
3872 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3874 * reload1.c: Include rtl-iter.h.
3875 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3876 to being a function that examines each subrtx itself.
3877 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3879 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3881 * regcprop.c (cprop_find_used_regs_1): Delete.
3882 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3884 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3886 * regcprop.c: Include rtl-iter.h.
3887 (kill_value): Take a const_rtx.
3888 (kill_autoinc_value): Turn from being a for_each_rtx callback
3889 to being a function that examines each subrtx itself.
3890 (copyprop_hardreg_forward_1): Update accordingly.
3892 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3894 * reg-stack.c: Include rtl-iter.h.
3895 (subst_stack_regs_in_debug_insn): Delete.
3896 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3897 instead of for_each_rtx.
3899 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3901 * lower-subreg.c (find_decomposable_subregs): Turn from being
3902 a for_each_rtx callback to being a function that examines each
3903 subrtx itself. Remove handling of null rtxes.
3904 (decompose_multiword_subregs): Update accordingly.
3906 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3908 * lower-subreg.c (adjust_decomposed_uses): Delete.
3909 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3910 Remove handling of null rtxes.
3912 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3914 * lower-subreg.c: Include rtl-iter.h.
3915 (resolve_subreg_use): Turn from being a for_each_rtx callback
3916 to being a function that examines each subrtx itself. Remove
3917 handling of null rtxes.
3918 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3919 (decompose_multiword_subregs): Likewise.
3921 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3923 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3924 to being a function that examines each subrtx itself.
3925 (simplify_using_condition, simplify_using_initial_values): Update
3928 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3930 * loop-iv.c: Include rtl-iter.h.
3931 (find_single_def_src): New function.
3932 (replace_single_def_regs): Turn from being a for_each_rtx callback
3933 to being a function that examines each subrtx itself.
3934 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3936 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3938 * jump.c (eh_returnjump_p_1): Delete.
3939 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3940 Remove handling of null rtxes.
3942 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3944 * jump.c: Include rtl-iter.h.
3945 (returnjump_p_1): Delete.
3946 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3947 Remove handling of null rtxes.
3949 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3951 * ira.c: Include rtl-iter.h.
3952 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3953 to being a function that examines each subrtx itself. Remove
3954 handling of null rtxes.
3955 (update_equiv_regs): Update call accordingly.
3957 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3959 * fwprop.c: Include rtl-iter.h.
3960 (varying_mem_p): Turn from being a for_each_rtx callback to being
3961 a function that examines each subrtx itself.
3962 (propagate_rtx): Update accordingly.
3964 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3966 * function.c: Include rtl-iter.h
3967 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3968 callback to being a function that examines each subrtx itself.
3969 Return the changed flag.
3970 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3971 (instantiate_virtual_regs): Update calls accordingly.
3973 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3975 * final.c: Include rtl-iter.h.
3976 (mark_symbol_ref_as_used): Delete.
3977 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3980 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3982 * emit-rtl.c: Include rtl-iter.h.
3983 (find_auto_inc): Turn from being a for_each_rtx callback to being
3984 a function that examines each subrtx itself. Assume the first operand
3985 to an RTX_AUTOINC is the automodified register.
3986 (try_split): Update call accordingly.
3988 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3990 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3991 Return a bool, inverting the result so that 0/false means "not ok".
3992 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3993 subrtxes of a CONST.
3994 (mem_loc_descriptor, add_const_value_attribute)
3995 (resolve_addr_in_expr): Update calls accordingly.
3997 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3999 * dwarf2out.c: Include rtl-iter.h.
4000 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4001 Remove unused data parameter. Return a bool, inverting the result
4002 so that 0/false means "not ok".
4003 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
4004 instead of for_each_rtx.
4006 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4008 * dse.c: Include rtl-iter.h.
4009 (check_mem_read_rtx): Change void * parameter to real type.
4010 Remove return value.
4011 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
4012 for_each_rtx. Don't handle null rtxes.
4014 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4016 * df-problems.c: Include rtl-iter.h.
4017 (find_memory): Turn from being a for_each_rtx callback to being
4018 a function that examines each subrtx itself. Continue to look for
4019 volatile references even after a nonvolatile one has been found.
4020 (can_move_insns_across): Update calls accordingly.
4022 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4024 * ddg.c (walk_mems_2, walk_mems_1): Delete.
4025 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4026 to iterate over subrtxes. Return a bool rather than an int.
4028 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4030 * ddg.c: Include rtl-iter.h.
4031 (mark_mem_use_1): Rename to...
4032 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
4033 instead of for_each_rtx.
4034 (mem_read_insn_p): Update accordingly.
4036 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4038 * cse.c (change_cc_mode_args): Delete.
4039 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4040 a function that examines each subrtx itself. Take the fields of
4041 change_cc_mode_args as argument and return void.
4042 (cse_change_cc_mode_insn): Update calls accordingly.
4044 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4046 * cse.c (is_dead_reg): Change argument to const_rtx.
4047 (dead_debug_insn_data): Delete.
4048 (is_dead_debug_insn): Expand commentary. Turn from being a
4049 for_each_rtx callback to being a function that examines
4050 each subrtx itself. Take the fields of dead_debug_insn_data
4052 (delete_trivially_dead_insns): Update call accordingly.
4054 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4056 * cse.c (check_for_label_ref): Move earlier in file. Turn from
4057 being a for_each_rtx callback to being a function that examines
4059 (cse_extended_basic_block): Update call accordingly.
4061 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4063 * cse.c (check_dependence_data): Delete.
4064 (check_dependence): Change from being a for_each_rtx callback to being
4065 a function that examines all subrtxes itself. Don't handle null rtxes.
4066 (invalidate): Update call accordingly.
4068 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4070 * cse.c: Include rtl-iter.h.
4071 (approx_reg_cost_1): Delete.
4072 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4073 Don't handle null rtxes.
4075 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4077 * cfgcleanup.c: Include rtl-iter.h.
4078 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4079 to being a function that examines each subrtx itself.
4080 (thread_jump): Update accordingly.
4082 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4084 * combine-stack-adj.c: Include rtl-iter.h.
4085 (record_stack_refs_data): Delete.
4086 (record_stack_refs): Turn from being a for_each_rtx callback
4087 to being a function that examines each subrtx itself.
4088 Take a pointer to the reflist. Invert sense of return value
4089 so that true means success and false means failure. Don't
4091 (combine_stack_adjustments_for_block): Update accordingly.
4093 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4095 * combine.c (record_truncated_value): Turn from being a for_each_rtx
4096 callback to a function that takes an rtx and returns a bool
4097 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4100 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4102 * combine.c: Include rtl-iter.h.
4103 (unmentioned_reg_p_1): Delete.
4104 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4105 Don't handle null rtxes.
4107 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4109 * calls.c: Include rtl-iter.h.
4110 (internal_arg_pointer_based_exp_1): Delete.
4111 (internal_arg_pointer_based_exp): Take a const_rtx.
4112 Use FOR_EACH_SUBRTX to iterate over subrtxes.
4114 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4116 * caller-save.c: Include rtl-iter.h.
4117 (add_used_regs_1): Delete.
4118 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4119 to iterate over subrtxes. Assert that any remaining pseudos
4122 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4124 * bt-load.c: Include rtl-iter.h.
4125 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4126 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
4127 to iterate over subrtxes.
4128 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4129 find_btr_use rather than btr_referenced_p.
4131 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4133 * alias.c: Include rtl-iter.h.
4134 (refs_newer_value_cb): Delete.
4135 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4139 * rtl-iter.h: New file.
4140 * rtlanal.c: Include it.
4141 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4142 (generic_subrtx_iterator <T>::add_single_to_queue)
4143 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4144 (generic_subrtx_iterator <T>::free_array): New functions.
4145 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4146 (generic_subrtx_iterator <const_rtx_accessor>)
4147 (generic_subrtx_iterator <rtx_var_accessor>
4148 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4149 (setup_reg_subrtx_bounds): New function.
4150 (init_rtlanal): Call it.
4152 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4155 * config/sh/sh.md (ashlsi3): Handle negative shift count for
4157 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4159 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
4161 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4163 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4165 * rtl.h (JUMP_LABEL_AS_INSN): New.
4167 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4169 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4171 (alloc_EXPR_LIST): Strengthen return type from rtx to
4173 (remove_free_EXPR_LIST_node): Likewise for param.
4174 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4175 from rtx to rtx_expr_list *.
4176 * sched-int.h (struct deps_desc): Strengthen fields
4177 "pending_read_mems" and "pending_write_mems" from rtx to
4180 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4181 rtx to rtx_expr_list *.
4182 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4183 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4185 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
4186 from rtx to rtx_expr_list *.
4187 * loop-iv.c (simplify_using_initial_values): Strengthen local
4188 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4189 "pnote_next" from rtx * to rtx_expr_list **.
4190 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
4191 param "exprp" from rtx * to rtx_expr_list **.
4192 (add_insn_mem_dependence): Strengthen local "mem_list" from
4193 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
4195 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4196 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
4197 param "old_mems_p" from rtx * to rtx_expr_list **.
4198 * var-tracking.c (struct adjust_mem_data): Strengthen field
4199 "side_effects" from rtx to rtx_expr_list *.
4200 (adjust_insn): Replace NULL_RTX with NULL when assigning to
4202 (prepare_call_arguments): Likewise.
4204 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4206 * function.h (struct rtl_data): Strengthen field
4207 "x_stack_slot_list" from rtx to rtx_expr_list *.
4209 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4210 when assigning to stack_slot_list.
4212 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4214 * function.h (struct rtl_data): Strengthen field
4215 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4216 * rtl.h (remove_node_from_expr_list): Strengthen second param from
4217 rtx * to rtx_expr_list **.
4219 * cfgbuild.c (make_edges): In loop over
4220 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4221 rtx_expr_list *, and use methods of the latter class to clarify
4223 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4224 rtx_expr_list *, and use methods of the latter class to clarify
4226 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4227 * reload1.c (set_initial_label_offsets): Likewise for local "x".
4228 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4229 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
4230 to rtx_expr_list *. Use methods of the latter class to clarify
4233 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4235 * function.h (struct expr_status): Strengthen field
4236 "x_forced_labels" from rtx to rtx_expr_list *.
4238 * cfgbuild.c (make_edges): Split local "x" into two locals,
4239 strengthening one from rtx to rtx_expr_list *, and using methods
4241 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4242 loop over forced_labels, introduce strengthen it from rtx to
4243 rtx_expr_list *, using methods to clarify the code.
4244 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4245 to rtx_expr_list *, using methods of said class to clarify the
4247 * reload1.c (set_initial_label_offsets): Split local "x" into two
4248 per-loop variables, strengthening the first from rtx to
4249 rtx_expr_list * and using methods.
4251 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4253 * coretypes.h (class rtx_expr_list): Add forward declaration.
4254 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4255 * gengenrtl.c (special_rtx): Add EXPR_LIST.
4256 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4257 invariant: GET_CODE (X) == EXPR_LIST.
4258 (is_a_helper <rtx_expr_list *>::test): New.
4259 (rtx_expr_list::next): New.
4260 (rtx_expr_list::element): New.
4261 (gen_rtx_EXPR_LIST): New.
4263 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4265 * varasm.c (mark_constants): Convert a GET_CODE check into a
4266 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4267 Use methods of rtx_sequence to clarify the code.
4269 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4271 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4272 local "seq" via a checked cast, and use methods of rtx_sequence
4273 to simplify the code.
4275 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4277 * resource.c (mark_referenced_resources): Strengthen local
4278 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4279 using methods of rtx_sequence to clarify the code.
4280 (find_dead_or_set_registers): Within the switch statement, convert
4281 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4282 the JUMP_P handling, introduce another local "seq", adding a
4283 checked cast to rtx_sequence *. In both cases, use methods of
4284 rtx_sequence to clarify the code.
4285 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4286 via a checked cast, and use methods of rtx_sequence to simplify
4289 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4291 * reorg.c (redundant_insn): In two places in the function, replace
4292 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4293 usings methods of rtx_sequence to clarify the code.
4295 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4297 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4298 local "seq" with a checked cast, and use methods of rtx_sequence
4299 to clarify the code.
4301 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4303 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4304 with a checked cast, in the region for where we know it's a
4305 SEQUENCE. Use methods of rtx_sequence.
4307 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4309 * final.c (get_attr_length_1): Replace GET_CODE check with a
4310 dyn_cast, introducing local "seq" and the use of methods of
4312 (shorten_branches): Likewise, introducing local "body_seq".
4313 Strengthen local "inner_insn" from rtx to rtx_insn *.
4314 (reemit_insn_block_notes): Replace GET_CODE check with a
4315 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4316 Use methods of rtx_sequence.
4317 (final_scan_insn): Likewise, introducing local "seq" for when
4318 "body" is known to be a SEQUENCE, using its methods.
4320 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4322 * except.c (can_throw_external): Strengthen local "seq" from rtx
4323 to rtx_sequence *. Use methods of rtx_sequence.
4324 (insn_nothrow_p): Likewise.
4326 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4328 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4329 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4330 Use methods of rtx_sequence.
4331 (scan_trace): Likewise for local "pat".
4333 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4335 * coretypes.h (class rtx_sequence): Add forward declaration.
4336 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4337 invariant: GET_CODE (X) == SEQUENCE.
4338 (is_a_helper <rtx_sequence *>::test): New.
4339 (is_a_helper <const rtx_sequence *>::test): New.
4340 (rtx_sequence::len): New.
4341 (rtx_sequence::element): New.
4342 (rtx_sequence::insn): New.
4344 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4346 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4348 (alloc_INSN_LIST): Strengthen return type from rtx to
4350 (copy_INSN_LIST): Likewise for return type and param.
4351 (concat_INSN_LIST): Likewise for both params and return type.
4352 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4353 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4354 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4355 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4357 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4358 "implicit_sets", "control_uses", "clobbers" from rtx to
4360 (struct deps_desc): Likewise for fields "pending_read_insns",
4361 "pending_write_insns", "pending_jump_insns",
4362 "last_pending_memory_flush", "last_function_call",
4363 "last_function_call_may_noreturn", "sched_before_next_call",
4364 "sched_before_next_jump".
4365 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4366 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4368 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4369 from rtx to rtx_insn_list *.
4370 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4373 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4374 to rtx_insn_list **.
4375 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4377 (queue_insn): Likewise for local "link".
4378 (struct haifa_saved_data): Strengthen field "insn_queue" from
4379 rtx * to rtx_insn_list **.
4380 (save_backtrack_point): Update allocation of save->insn_queue to
4381 reflect the strengthening of elements from rtx to rtx_insn_list *.
4382 (queue_to_ready): Strengthen local "link" from rtx to
4383 rtx_insn_list *; use methods "next" and "insn" when traversing the
4385 (early_queue_to_ready): Likewise for locals "link", "next_link",
4387 (schedule_block): Update allocation of insn_queue to reflect the
4388 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4389 local "link" from rtx to rtx_insn_list *, and use methods when
4391 (add_to_speculative_block): Strengthen locals "twins" and
4392 "next_node" from rtx to rtx_insn_list *, and use methods when
4393 working with them. Strengthen local "twin" from rtx to
4394 rtx_insn *, eliminating a checked cast.
4395 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4396 from rtx to rtx_insn_list *, and use methods when working with
4399 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4400 from rtx to rtx_insn_list *, adding a checked cast.
4401 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4403 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4404 "newlink" from rtx to rtx_insn_list *. Strengthen local
4405 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4406 from rtx to rtx_insn *.
4407 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4408 from rtx to rtx_insn_list *. Use methods of the latter class.
4409 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4410 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4411 (remove_free_INSN_LIST_node): Strengthen return type and local
4412 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4413 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4414 rtx_insn_list *, using "insn" method.
4416 * sched-deps.c (add_dependence_list): Strengthen param "list"
4417 from rtx to rtx_insn_list *, and use methods when working with it.
4418 (add_dependence_list_and_free): Strengthen param "listp" from
4419 rtx * to rtx_insn_list **.
4420 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4421 to rtx_insn_list **, and use methods when working with *listp.
4422 (remove_from_both_dependence_lists): Strengthen param "listp" from
4423 rtx * to rtx_insn_list **
4424 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4425 to rtx_insn_list **. Eliminate local "link", in favor of two new
4426 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4428 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4429 by introducing local "cond_deps".
4430 (remove_from_deps): Strengthen param "insn" from rtx to
4433 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4434 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4435 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4436 Use methods of rtx_insn_list.
4438 * store-motion.c (struct st_expr): Strengthen fields
4439 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4440 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4442 (find_moveable_store): Split out "tmp" into multiple more-tightly
4443 scoped locals. Use methods of rtx_insn_list *.
4444 (compute_store_table): Strengthen local "tmp" from rtx to
4445 rtx_insn *. Use methods of rtx_insn_list *.
4447 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4449 * coretypes.h (class rtx_insn_list): Add forward declaration.
4450 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4451 (is_a_helper <rtx_insn_list *>::test): New.
4452 (rtx_insn_list::next): New.
4453 (rtx_insn_list::insn): New.
4454 (gen_rtx_INSN_LIST): Add prototype.
4455 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4456 * gengenrtl.c (special_rtx): Add INSN_LIST.
4458 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4460 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4461 "prev" from rtx to rtx_insn *.
4463 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4465 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4466 functions. Require merely an rtx for now, not an rtx_insn *.
4467 (BLOCK_FOR_INSN): Likewise.
4468 (INSN_LOCATION): Likewise.
4469 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4471 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4473 * rtl.h (PATTERN): Convert this macro into a pair of inline
4474 functions, for now, requiring const_rtx and rtx.
4476 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4478 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4480 (final_postscan_insn): Likewise.
4481 (adjust_cost): Likewise.
4482 (adjust_priority): Likewise.
4483 (variable_issue): Likewise.
4484 (macro_fusion_pair_p): Likewise.
4485 (dfa_post_cycle_insn): Likewise.
4486 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4487 (first_cycle_multipass_issue): Likewise.
4488 (dfa_new_cycle): Likewise.
4489 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4490 (speculate_insn): Likewise for param "insn".
4491 (gen_spec_check): Likewise for params "insn" and "label".
4492 (get_insn_spec_ds): Likewise for param "insn".
4493 (get_insn_checked_ds): Likewise.
4494 (dispatch_do): Likewise.
4495 (dispatch): Likewise.
4496 (cannot_copy_insn_p): Likewise.
4497 (invalid_within_doloop): Likewise.
4498 (legitimate_combined_insn): Likewise.
4502 * doc/tm.texi: Automatically updated to reflect changes to
4505 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4507 (schedule_block): Likewise.
4508 (sched_init): Likewise.
4509 (sched_speculate_insn): Strengthen param "insn" from rtx to
4511 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4513 * hooks.c (hook_bool_rtx_true): Rename to...
4514 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4516 (hook_constcharptr_const_rtx_null): Rename to...
4517 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4518 first param from const_rtx to const rtx_insn *.
4519 (hook_bool_rtx_int_false): Rename to...
4520 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4521 param from rtx to rtx_insn *.
4522 (hook_void_rtx_int): Rename to...
4523 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4526 * hooks.h (hook_bool_rtx_true): Rename to...
4527 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4529 (hook_bool_rtx_int_false): Rename to...
4530 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4531 param from rtx to rtx_insn *.
4532 (hook_void_rtx_int): Rename to...
4533 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4535 (hook_constcharptr_const_rtx_null): Rename to...
4536 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4537 first param from const_rtx to const rtx_insn *.
4539 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4540 and local "prev" from rtx to rtx_insn *.
4542 * sched-int.h (sched_speculate_insn): Strengthen first param from
4545 * sel-sched.c (create_speculation_check): Likewise for local "label".
4546 * targhooks.c (default_invalid_within_doloop): Strengthen param
4547 "insn" from const_rtx to const rtx_insn *.
4548 * targhooks.h (default_invalid_within_doloop): Strengthen param
4549 from const_rtx to const rtx_insn *.
4551 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4552 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4554 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4556 (arc_invalid_within_doloop): Likewise, with const.
4558 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4559 (arm_cannot_copy_insn_p): Likewise for param "insn".
4560 (arm_unwind_emit): Likewise.
4562 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4565 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4566 (c6x_variable_issue): Likewise. Removed now-redundant checked
4568 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4570 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4571 Likewise for param "insn".
4572 (epiphany_mode_after): Likewise.
4573 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4574 params "insn", "dep_insn".
4575 (epiphany_mode_needed): Likewise for param "insn".
4576 (epiphany_mode_after): Likewise.
4578 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4579 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4580 (ix86_avx_u128_mode_needed): Likewise.
4581 (ix86_i387_mode_needed): Likewise.
4582 (ix86_mode_needed): Likewise.
4583 (ix86_avx_u128_mode_after): Likewise.
4584 (ix86_mode_after): Likewise.
4585 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4586 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4587 (ix86_adjust_priority): Likewise for param "insn".
4588 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4589 (do_dispatch): Likewise.
4590 (has_dispatch): Likewise.
4591 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4593 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4594 reflect renaming of default hook implementation from
4595 hook_constcharptr_const_rtx_null to
4596 hook_constcharptr_const_rtx_insn_null.
4597 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4599 (ia64_variable_issue): Likewise for param "insn".
4600 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4601 (ia64_dfa_new_cycle): Likewise.
4602 (ia64_get_insn_spec_ds): Likewise.
4603 (ia64_get_insn_checked_ds): Likewise.
4604 (ia64_speculate_insn): Likewise.
4605 (ia64_gen_spec_check): Likewise for params "insn", "label".
4606 (ia64_asm_unwind_emit): Likewise for param "insn".
4608 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4610 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4612 (m68k_sched_variable_issue): Likewise for param "insn".
4614 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4617 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4618 Likewise for params "insn", "dep".
4620 * config/mips/mips.c (mips_adjust_cost): Likewise.
4621 (mips_variable_issue): Likewise for param "insn".
4622 (mips_final_postscan_insn): Likewise.
4624 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4625 for params "insn", "dep".
4627 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4629 (pa_adjust_priority): Likewise for param "insn".
4631 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4632 Likewise for params "insn", "dep_insn".
4634 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4636 (rs6000_variable_issue): Likewise.
4637 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4638 (rs6000_debug_adjust_cost): Likewise.
4639 (rs6000_adjust_priority): Likewise for param "insn".
4640 (rs6000_use_sched_lookahead_guard): Likewise.
4641 (get_next_active_insn): Likewise for return type and both params.
4642 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4643 and locals "insn", "next_insn".
4644 (pad_groups): Likewise.
4646 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4648 (s390_cannot_copy_insn_p): Likewise.
4649 (s390_sched_variable_issue): Likewise for third param, eliminating
4651 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4652 default hook implementation from hook_constcharptr_const_rtx_null
4653 to hook_constcharptr_const_rtx_insn_null.
4655 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4656 from rtx to rtx_insn *.
4657 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4658 (sh_variable_issue): Likewise for param "insn".
4659 (sh_dfa_new_cycle): Likewise.
4660 (sh_mode_needed): Likewise.
4661 (sh_mode_after): Likewise.
4663 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4664 params "insn", "dep_insn".
4665 (hypersparc_adjust_cost): Likewise.
4666 (sparc_adjust_cost): Likewise.
4668 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4669 param, eliminated checked cast.
4670 (spu_sched_adjust_cost): Likewise for first and third params.
4672 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4673 params "insn" and "dep_insn" from rtx to rtx_insn *.
4675 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4677 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4679 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4680 (set_is_load_p): ...this, updating to work on a SET pattern rather
4682 (is_store_insn): Rename to...
4683 (set_is_store_p): ...this, updating to work on a SET pattern
4684 rather than an insn.
4685 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4686 top of function to where it is needed. Rewrite the bogus
4687 condition that checks for "insn" and "dep" being PARALLEL to
4688 instead use single_set, introducing locals "insn_set" and
4689 "dep_set". Given that we only ever returned "cost" for a non-pair
4690 of SETs, bail out early if we don't have a pair of SET.
4691 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4692 use the new locals "insn_set" and "dep_set", and update calls to
4693 is_load_insn and is_store_insn to be calls to set_is_load_p and
4696 2014-08-27 Guozhi Wei <carrot@google.com>
4699 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4700 amount before using it.
4702 2014-08-27 Richard Biener <rguenther@suse.de>
4704 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4705 get_maxval_strlen inside a more useful API.
4706 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4707 (gimple_fold_builtin): ... caller.
4708 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4709 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4710 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4711 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4712 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4713 gimple_fold_builtin_sprintf): Adjust to compute maxval
4716 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4719 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4721 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4722 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4723 Anna Tikhonova <anna.tikhonova@intel.com>
4724 Ilya Tocar <ilya.tocar@intel.com>
4725 Andrey Turetskiy <andrey.turetskiy@intel.com>
4726 Ilya Verbin <ilya.verbin@intel.com>
4727 Kirill Yukhin <kirill.yukhin@intel.com>
4728 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4730 * config/i386/sse.md
4731 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4732 Use `concat_tg_mode' attribute to determine asm register size.
4734 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4735 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4736 Anna Tikhonova <anna.tikhonova@intel.com>
4737 Ilya Tocar <ilya.tocar@intel.com>
4738 Andrey Turetskiy <andrey.turetskiy@intel.com>
4739 Ilya Verbin <ilya.verbin@intel.com>
4740 Kirill Yukhin <kirill.yukhin@intel.com>
4741 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4743 * config/i386/sse.md
4744 (define_mode_iterator VI48_AVX512VL): New.
4745 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4746 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4747 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4748 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4749 with VI1): Change mode iterator.
4750 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4751 with VI_ULOADSTORE_BW_AVX512VL): New.
4752 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4753 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4754 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4755 with VI1): Change mode iterator.
4756 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4757 with VI_ULOADSTORE_BW_AVX512VL): New.
4758 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4759 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4760 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4761 with VI1): Change mode iterator.
4762 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4763 with VI_ULOADSTORE_BW_AVX512VL): New.
4764 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4765 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4766 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4767 (define_insn "<avx512>_storedqu<mode>_mask" with
4768 VI48_AVX512VL): New.
4769 (define_insn "<avx512>_storedqu<mode>_mask" with
4770 VI12_AVX512VL): Ditto.
4772 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4774 Anna Tikhonova <anna.tikhonova@intel.com>
4775 Ilya Tocar <ilya.tocar@intel.com>
4776 Andrey Turetskiy <andrey.turetskiy@intel.com>
4777 Ilya Verbin <ilya.verbin@intel.com>
4778 Kirill Yukhin <kirill.yukhin@intel.com>
4779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4781 * config/i386/sse.md
4782 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4783 (define_mode_iterator VI48_AVX512BW): New.
4784 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4785 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4786 with VI48_AVX2_48_AVX512F): New.
4787 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4788 with VI2_AVX512VL): Ditto.
4790 2014-08-27 Richard Biener <rguenther@suse.de>
4793 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4794 (fold_builtin_3): Do not fold strcat_chk here.
4795 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4797 (gimple_fold_builtin): Fold strcat_chk here.
4799 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4801 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4802 * dwarf2out.c (dwarf2out_decl): Make static.
4804 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4806 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4808 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4810 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4811 from rtx to rtx_insn *.
4812 (cselib_lookup_from_insn): Likewise for final param.
4813 (cselib_subst_to_values_from_insn): Likewise.
4814 (cselib_add_permanent_equiv): Likewise.
4816 * cselib.c (cselib_current_insn): Likewise for this variable.
4817 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4818 (cselib_lookup_from_insn): Likewise.
4819 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4820 "save_cselib_current_insn".
4821 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4823 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4824 from rtx to rtx_insn *.
4826 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4828 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4831 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4833 * df.h (df_dump_insn_problem_function): Strengthen first param of
4834 this callback from const_rtx to const rtx_insn *.
4835 (struct df_insn_info): Strengthen field "insn" from rtx to
4837 (DF_REF_INSN): Eliminate this function, reinstating the older
4839 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4840 (df_reg_defined): Likewise.
4841 (df_find_use): Likewise.
4842 (df_reg_used): Likewise.
4843 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4845 (df_dump_insn_bottom): Likewise.
4846 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4847 (df_insn_debug_regno): Likewise.
4848 (debug_df_insn): Likewise.
4849 (df_rd_simulate_one_insn): Likewise for param 2.
4850 (df_word_lr_simulate_defs): Likewise for param 1.
4851 (df_word_lr_simulate_uses): Likewise.
4852 (df_md_simulate_one_insn): Likewise for param 2.
4853 (df_simulate_find_noclobber_defs): Likewise for param 1.
4854 (df_simulate_find_defs): Likewise.
4855 (df_simulate_defs): Likewise.
4856 (df_simulate_uses): Likewise.
4857 (df_simulate_one_insn_backwards): Likewise for param 2.
4858 (df_simulate_one_insn_forwards): Likewise.
4859 (df_uses_create): Likewise for param 2.
4860 (df_insn_create_insn_record): Likewise for param 1.
4861 (df_insn_delete): Likewise.
4862 (df_insn_rescan): Likewise.
4863 (df_insn_rescan_debug_internal): Likewise.
4864 (df_insn_change_bb): Likewise.
4865 (df_notes_rescan): Likewise.
4866 * rtl.h (remove_death): Likewise for param 2.
4867 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4869 * sched-int.h (reemit_notes): Strengthen param from rtx to
4871 * valtrack.h (propagate_for_debug): Likewise for param 1.
4873 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4874 local "tmp_rtx" from const_rtx to const rtx_insn *.
4875 * combine.c (remove_death): Strengthen param "insn" from rtx to
4877 (move_deaths): Likewise for local "where_dead".
4878 * cse.c (delete_trivially_dead_insns): Introduce local
4879 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4880 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4882 (df_reg_defined): Likewise.
4883 (df_find_use): Likewise.
4884 (df_reg_used): Likewise.
4885 (df_dump_insn_problem_data): Strengthen param "insn" from
4886 const_rtx to const rtx_insn *.
4887 (df_dump_insn_top): Likewise.
4888 (df_dump_insn_bottom): Likewise.
4889 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4890 (df_insn_debug_regno): Likewise.
4891 (debug_df_insn): Likewise.
4892 (DF_REF_INSN): Delete.
4893 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4894 from rtx to rtx_insn *.
4895 (df_chain_insn_top_dump): Strengthen param "insn" from
4896 const_rtx to const rtx_insn *.
4897 (df_chain_insn_bottom_dump): Likewise.
4898 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4900 (df_word_lr_simulate_uses): Likewise.
4901 (df_print_note): Likewise.
4902 (df_remove_dead_and_unused_notes): Likewise.
4903 (df_set_unused_notes_for_mw): Likewise.
4904 (df_set_dead_notes_for_mw): Likewise.
4905 (df_create_unused_note): Likewise.
4906 (df_simulate_find_defs): Likewise.
4907 (df_simulate_find_uses): Likewise.
4908 (df_simulate_find_noclobber_defs): Likewise.
4909 (df_simulate_defs): Likewise.
4910 (df_simulate_uses): Likewise.
4911 (df_simulate_one_insn_backwards): Likewise.
4912 (df_simulate_one_insn_forwards): Likewise.
4913 (df_md_simulate_one_insn): Likewise.
4914 * df-scan.c (df_uses_create): Likewise.
4915 (df_insn_create_insn_record): Likewise.
4916 (df_insn_delete): Likewise.
4917 (df_insn_rescan): Likewise.
4918 (df_insn_rescan_debug_internal): Likewise.
4919 (df_insn_change_bb): Likewise.
4920 (df_notes_rescan): Likewise.
4921 (df_refs_add_to_chains): Likewise.
4922 (df_insn_refs_verify): Likewise.
4923 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4924 when invoking df_insn_delete.
4925 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4926 (set_unique_reg_note): Add checked cast.
4927 * final.c (cleanup_subreg_operands): Likewise.
4928 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4929 "insn" from rtx to rtx_insn *.
4930 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4931 "last" from rtx to rtx_insn *.
4932 * ira-emit.c (change_regs_in_insn): New function.
4933 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4934 Invoke change_regs_in_insn rather than change_regs.
4935 * ira.c (update_equiv_regs): Strengthen locals "insn",
4936 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4937 for_each_rtx_in_insn rather than for_each_rtx.
4938 * recog.c (confirm_change_group): Add checked casts.
4939 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4941 (peep2_fill_buffer): Add checked cast.
4942 * rtlanal.c (remove_note): Likewise.
4943 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4944 locals "next" "end" from rtx to rtx_insn *.
4946 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4948 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4950 (struct reg_use_data): Likewise for field "insn".
4951 (insn_cost): Likewise for param.
4952 (real_insn_for_shadow): Likewise for return type and param.
4953 (increase_insn_priority): Likewise for param 1.
4954 (debug_dependencies): Likewise for both params.
4956 * haifa-sched.c (insn_delay): Likewise for param "insn".
4957 (real_insn_for_shadow): Likewise for return type and param "insn".
4958 (update_insn_after_change): Likewise for param "insn".
4959 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4961 (insn_cost): Likewise for param "insn".
4962 (increase_insn_priority): Likewise.
4963 (calculate_reg_deaths): Likewise.
4964 (setup_insn_reg_pressure_info): Likewise.
4965 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4966 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4967 (model_recompute): Likewise.
4968 (must_restore_pattern_p): Likewise for param "next".
4969 (model_excess_cost): Likewise for param "insn".
4970 (queue_remove): Likewise.
4971 (adjust_priority): Likewise for param "prev".
4972 (update_register_pressure): Likewise for param "insn".
4973 (setup_insn_max_reg_pressure): Likewise for local "insn".
4974 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4975 (model_add_to_schedule): Likewise.
4976 (model_reset_queue_indices): Likewise for local "insn".
4977 (unschedule_insns_until): Strengthen local "recompute_vec" from
4978 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4979 "con" from rtx to rtx_insn *.
4980 (restore_last_backtrack_point): Likewise for both locals "x". Add
4982 (estimate_insn_tick): Likewise for param "insn".
4983 (commit_schedule): Likewise for params "prev_head", "tail" and
4985 (verify_shadows): Likewise for locals "i1", "i2".
4986 (dump_insn_stream): Likewise for params "head", "tail" and locals
4987 "next_tail", "insn".
4988 (schedule_block): Likewise for locals "insn", "x". Add a checked
4990 (fix_inter_tick): Likewise for params "head", "tail".
4991 (create_check_block_twin): Likewise for local "jump".
4992 (haifa_change_pattern): Likewise for param "insn".
4993 (haifa_speculate_insn): Likewise.
4994 (dump_new_block_header): Likewise for params "head", "tail".
4995 (fix_jump_move): Likewise for param "jump".
4996 (move_block_after_check): Likewise.
4997 (sched_init_insn_luid): Likewise for param "insn".
4998 (sched_init_luids): Likewise for local "insn".
4999 (insn_luid): Likewise for param "insn".
5000 (init_h_i_d): Likewise.
5001 (haifa_init_h_i_d): Likewise for local "insn".
5002 (haifa_init_insn): Likewise for param "insn".
5003 * sched-deps.c (add_dependence): Likewise for local "real_pro",
5005 (create_insn_reg_use): Likewise for param "insn".
5006 (setup_insn_reg_uses): Likewise. Add a checked cast.
5007 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5008 "tail" from rtx to rtx_insn *.
5009 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5010 "insn", "next_tail".
5012 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5014 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5015 from rtx to rtx_insn *.
5016 (model_add_to_schedule): Likewise for locals "start", "end",
5019 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5021 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5023 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
5024 "to" and locals "insn", "next", "copy". Remove now-redundant
5027 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5029 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5030 rtx_insn * and param 4 from rtx * to rtx_insn **.
5031 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5032 param 2 from rtx * to rtx_insn **.
5034 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5035 rtx_insn * and final param from rtx * to rtx_insn **.
5037 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5038 from rtx to rtx_insn *.
5039 (try_head_merge_bb): Likewise for both locals named "move_upto".
5040 * df-problems.c (can_move_insns_across): Likewise for params
5041 "from", "to", "across_from", "across_to" and locals "insn",
5042 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
5044 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5045 from rtx to rtx_insn *.
5046 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5047 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5048 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5050 (noce_try_abs): Likewise.
5051 (noce_get_condition): Likewise for param "jump". Strengthen param
5052 "earliest" from rtx * to rtx_insn **.
5053 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5055 (find_cond_trap): Likewise.
5056 (dead_or_predicable): Likewise for local "earliest".
5057 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
5059 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5060 and local "prev". Strengthen param "earliest" from rtx * to
5062 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5063 Strengthen param "earliest" from rtx * to rtx_insn **.
5065 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5067 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5068 "to" and local "insn" from rtx to rtx_insn *.
5070 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5072 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5073 from rtx to rtx_insn *.
5074 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5075 (code_motion_path_driver): Likewise for local "last_insn".
5076 (simplify_changed_insns): Likewise for local "insn".
5078 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5080 * rtl.h (push_to_sequence): Strengthen param from rtx to
5082 (push_to_sequence2): Likewise for both params.
5083 (delete_insns_since): Likewise for param.
5084 (reorder_insns_nobb): Likewise for all three params.
5085 (set_new_first_and_last_insn): Likewise for both params.
5087 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5088 rtx_insn *. Remove now-redundant cast.
5089 (set_last_insn): Likewise.
5091 * builtins.c (expand_builtin_return): Strengthen local
5092 "call_fusage" from rtx to rtx_insn *.
5093 * cfgrtl.c (create_basic_block_structure): Likewise for local
5095 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5096 "first", "last" and local "insn".
5097 (delete_insns_since): Likewise for param "from".
5098 (reorder_insns_nobb): Likewise for params "from", "to", "after"
5100 (push_to_sequence): Likewise for param "first" and local "last".
5101 (push_to_sequence2): Likewise for params "first" and "last".
5102 * lra.c (emit_add3_insn): Likewise for local "last".
5103 (lra_emit_add): Likewise.
5104 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5106 (process_address_1): Likewise for locals "insn", last".
5107 * modulo-sched.c (ps_first_note): Likewise for return type.
5108 * optabs.c (expand_binop_directly): Likewise for param "last".
5110 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5112 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5114 * emit-rtl.c (get_last_insn_anywhere): Likewise.
5116 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5118 * function.h (struct sequence_stack): Strengthen fields "first"
5119 and "last" from rtx to rtx_insn *.
5120 (struct emit_status): Likewise for fields "x_first_insn" and
5123 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5124 (set_first_insn): Add checked cast.
5125 (get_last_insn): Remove now-redundant checked cast.
5126 (set_last_insn): Add checked cast.
5128 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5129 "saved_first" and "saved_last" from rtx to rtx_insn *.
5131 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5133 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5134 (unlink_insn_chain): Strengthen both params from rtx to
5137 * cfgrtl.c (cfg_layout_function_header): Likewise for this
5139 (unlink_insn_chain): Likewise for params "first" and "last".
5140 Remove now-redundant checked cast.
5141 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5142 (fixup_reorder_chain): Strengthen local "insn" from rtx to
5144 * emit-rtl.c (link_insn_into_chain): Likewise for all three
5146 (add_insn): Likewise for param "insn" and local "prev".
5147 (add_insn_after_nobb): Likewise for both params and local "next".
5148 (add_insn_before_nobb): Likewise for both params and local "prev".
5149 (add_insn_after): Rename param "after" to "uncast_after",
5150 introducing local "after" with another checked cast.
5151 (add_insn_before): Rename params "insn" and "before", giving them
5152 "uncast_" prefixes, adding the old names back using checked casts.
5153 (emit_note_after): Likewise for param "after".
5154 (emit_note_before): Likewise for param "before".
5155 (emit_label): Add a checked cast.
5157 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5159 * cselib.h (cselib_record_sets_hook): Strengthen initial param
5160 "insn" from rtx to rtx_insn *.
5162 * cselib.c (cselib_record_sets_hook): Likewise.
5164 * var-tracking.c (add_with_sets): Likewise, renaming back from
5165 "uncast_insn" to "insn" and eliminating the checked cast from rtx
5168 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5170 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5171 and "header_" from rtx to rtx_insn *.
5172 (struct basic_block_d): Likewise for field "head_" within "x"
5173 field of union basic_block_il_dependent.
5174 (BB_HEAD): Drop function...
5175 (SET_BB_HEAD): ...and this function in favor of...
5176 (BB_HEAD): ...reinstate macro.
5177 (BB_END): Drop function...
5178 (SET_BB_END): ...and this function in favor of...
5179 (BB_END): ...reinstate macro.
5180 (BB_HEADER): Drop function...
5181 (SET_BB_HEADER): ...and this function in favor of...
5182 (BB_HEADER): ...reinstate macro.
5184 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5185 (fix_crossing_unconditional_branches): Likewise.
5186 * caller-save.c (save_call_clobbered_regs): Likewise.
5187 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5188 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5189 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5190 (merge_blocks_move_successor_nojumps): Likewise.
5191 (outgoing_edges_match): Update use of for_each_rtx to
5192 for_each_rtx_in_insn.
5193 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5194 (expand_gimple_cond): Likewise.
5195 (expand_gimple_tailcall): Likewise.
5196 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5198 (construct_exit_block): Drop use of SET_BB_END.
5199 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5201 (delete_insn): Rename param "insn" to "uncast_insn", introducing
5202 a new local "insn" with a checked cast to rtx_insn *. Drop use of
5203 SET_BB_HEAD and SET_BB_END.
5204 (create_basic_block_structure): Drop use of SET_BB_HEAD and
5206 (rtl_delete_block): Drop use of SET_BB_HEAD.
5207 (rtl_split_block): Drop use of SET_BB_END.
5208 (emit_nop_for_unique_locus_between): Likewise.
5209 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5210 (block_label): Drop use of SET_BB_HEAD.
5211 (fixup_abnormal_edges): Drop use of SET_BB_END.
5212 (record_effective_endpoints): Drop use of SET_BB_HEADER.
5213 (relink_block_chain): Likewise.
5214 (fixup_reorder_chain): Drop use of SET_BB_END.
5215 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5216 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5217 rtx_insn **. Drop use of SET_BB_HEADER.
5218 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5220 (BB_HEAD): Delete this function.
5221 (SET_BB_HEAD): Likewise.
5223 (SET_BB_END): Likewise.
5224 (BB_HEADER): Likewise.
5225 (SET_BB_HEADER): Likewise.
5226 * emit-rtl.c (add_insn_after): Rename param "insn" to
5227 "uncast_insn", adding a new local "insn" and a checked cast to
5228 rtx_insn *. Drop use of SET_BB_END.
5229 (remove_insn): Strengthen locals "next" and "prev" from rtx to
5230 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
5231 (reorder_insns): Drop use of SET_BB_END.
5232 (emit_insn_after_1): Strengthen param "first" and locals "last",
5233 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
5234 (emit_pattern_after_noloc): Add checked cast.
5235 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5236 (restore_other_notes): Likewise.
5237 (move_insn): Likewise.
5238 (sched_extend_bb): Likewise.
5239 (fix_jump_move): Likewise.
5240 * ifcvt.c (noce_process_if_block): Likewise.
5241 (dead_or_predicable): Likewise.
5242 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5243 * reg-stack.c (change_stack): Drop use of SET_BB_END.
5244 * sel-sched-ir.c (sel_move_insn): Likewise.
5245 * sel-sched.c (move_nop_to_previous_block): Likewise.
5247 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5249 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5251 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5253 * basic-block.h (create_basic_block_structure): Strengthen params
5254 1 "head" and 2 "end" from rtx to rtx_insn *.
5255 * cfgrtl.c (create_basic_block_structure): Likewise.
5256 (rtl_create_basic_block): Update casts from void * to rtx to
5257 rtx_insn *, so that we can pass them as rtx_insn * to
5258 create_basic_block_structure.
5259 * sel-sched-ir.c (sel_create_basic_block): Likewise.
5261 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5263 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5265 (check_for_inc_dec): Strengthen param "insn" from rtx to
5268 * cselib.h (cselib_process_insn): Likewise.
5270 * cselib.c (cselib_record_sets): Likewise.
5271 (cselib_process_insn): Likewise.
5273 * dse.c (struct insn_info): Likewise for field "insn".
5274 (check_for_inc_dec_1): Likewise for local "insn".
5275 (check_for_inc_dec): Likewise for param "insn".
5276 (scan_insn): Likewise.
5277 (dse_step1): Likewise for local "insn".
5279 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5280 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5282 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5284 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5285 from rtx to rtx_insn *.
5286 (DEP_PRO): Delete this function and...
5287 (SET_DEP_PRO): ...this function in favor of...
5288 (DEP_PRO): ...reinstate this macro.
5289 (DEP_CON): Delete this function and...
5290 (SET_DEP_CON): ...this function in favor of...
5291 (DEP_CON): ...reinstate this old macro.
5292 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5293 (init_dep): Likewise.
5294 (set_priorities): Likewise for both params.
5295 (sd_copy_back_deps): Likewise for params 1 and 2.
5297 * haifa-sched.c (priority): Likewise for param "insn" and local
5299 (set_priorities): Likewise for params "head" and "tail" and local
5301 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5303 (add_to_speculative_block): Add a checked cast.
5304 (create_check_block_twin): Drop use of SET_DEP_CON.
5305 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5308 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5309 Drop use of SET_DEP_PRO
5310 (init_dep): Strengthen params "pro" and "con" from rtx to
5312 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5316 (SET_DEP_PRO): Delete.
5317 (SET_DEP_CON): Delete.
5319 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5321 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5322 from rtx to rtx_insn *.
5323 (VINSN_INSN_RTX): Eliminate rvalue function and...
5324 (SET_VINSN_INSN): ...lvalue function in favor of...
5325 (VINSN_INSN_RTX): reinstate this old macro.
5327 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5328 in favor of VINSN_INSN_RTX.
5329 (VINSN_INSN_RTX): Delete this function.
5330 (SET_VINSN_INSN_RTX): Likewise.
5332 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5334 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5335 (BND_TO): Delete this function and...
5336 (SET_BND_TO): ...this functions in favor of...
5337 (BND_TO): ...reinstating this macro.
5338 (struct _fence): Strengthen field "executing_insns" from
5339 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5340 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5341 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5342 and param "insn" from rtx to insn_t.
5343 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5346 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5348 (rtx_vec_t): Likewise.
5349 (struct sched_deps_info_def): Strengthen param of "start_insn"
5350 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5351 "note_mem_dep" callback and first param of "note_dep" callback.
5353 * haifa-sched.c (add_to_speculative_block): Strengthen param
5354 "insn" from rtx to rtx_insn *.
5355 (clear_priorities): Likewise.
5356 (calc_priorities): Likewise for local "insn".
5358 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5359 Remove redundant checked cast.
5360 (haifa_note_mem_dep): Likewise for param "pending_insn".
5361 (haifa_note_dep): Likewise for param "elem".
5362 (note_mem_dep): Likewise for param "e".
5363 (sched_analyze_1): Add checked casts.
5364 (sched_analyze_2): Likewise.
5366 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5367 from rtx to rtx_insn *.
5368 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5369 from vec<rtx> * to vec<rtx_insn *> *.
5371 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5373 (flist_add): Strengthen param "executing_insns" from
5374 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5375 (advance_deps_context): Remove now-redundant checked cast.
5376 (init_fences): Replace uses of NULL_RTX with NULL.
5377 (merge_fences): Strengthen params "last_scheduled_insn" and
5378 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5379 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5380 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5381 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5382 an instruction, rather than doing double-duty as a pattern.
5383 (return_nop_to_pool): Update for change of insn_t.
5384 (deps_init_id): Remove now-redundant checked cast.
5385 (struct sched_scan_info_def): Strengthen param of "init_insn"
5386 callback from rtx to insn_t.
5387 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5388 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5390 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5391 "end" from rtx to rtx_insn *.
5392 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5393 (rtx insn_rtx, bool force_unique_p)
5394 (BND_TO): Delete function.
5395 (SET_BND_TO): Delete function.
5397 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5399 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5400 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5402 (undo_transformations): Likewise for param "insn".
5403 (update_liveness_on_insn): Likewise.
5404 (compute_live_below_insn): Likewise for param "insn" and local
5406 (update_data_sets): Likewise for param "insn".
5407 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5408 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5409 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5411 (move_cond_jump): Likewise for param "insn".
5412 (move_cond_jump): Drop use of SET_BND_TO.
5413 (compute_av_set_on_boundaries): Likewise.
5414 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5415 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5416 from rtx to rtx_insn *.
5417 (maybe_emit_renaming_copy): Likewise for param "insn".
5418 (maybe_emit_speculative_check): Likewise.
5419 (handle_emitting_transformations): Likewise.
5420 (remove_insn_from_stream): Likewise.
5421 (code_motion_process_successors): Strengthen local "succ" from rtx
5424 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5426 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5427 ilist_t, not _xlist_t;
5428 (ILIST_INSN): Define in terms of new union field "insn".
5429 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5431 (struct _list_node): Add new field "insn" to the union, of type
5433 (ilist_add): Replace macro with an inline function, requiring an
5435 (ilist_remove): Define this macro directly in terms of
5436 _list_remove, rather than indirectly via _xlist_remove.
5437 (ilist_clear): Likewise, in terms of _list_clear rather than
5439 (ilist_is_in_p): Replace macro with an inline function, requiring
5441 (_list_iter_cond_insn): New function.
5442 (ilist_iter_remove): Define this macro directly in terms of
5443 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5444 (ilist_iterator): Define directly in terms of _list_iterator
5445 rather than indirectly through _xlist_iterator.
5446 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5447 than in terms of _FOR_EACH_X.
5448 (FOR_EACH_INSN_1): Likewise.
5450 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5454 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5455 DECL_HARD_REGISTER and return for invalid register specifications.
5456 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5457 DECL_HARD_REGISTER, call expand_one_error_var.
5458 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5459 CC_REGNUM with non-MODE_CC modes.
5460 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5462 2014-08-26 Marek Polacek <polacek@redhat.com>
5465 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5467 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5469 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5470 qi cost; add di cost.
5471 (cortexa57_addrcost_table): Likewise.
5473 2014-08-26 Marek Polacek <polacek@redhat.com>
5476 * expr.c (is_aligning_offset): Remove logical not.
5478 2014-08-26 Marek Polacek <polacek@redhat.com>
5481 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5482 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5484 2014-08-26 Richard Biener <rguenther@suse.de>
5486 PR tree-optimization/62175
5487 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5488 expand possibly trapping operations.
5490 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5492 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5493 "insn" from rtx to rtx_insn *.
5494 (permute_load): Likewise for param "insn".
5495 (permute_store): Likewise.
5496 (handle_special_swappables): Likewise for local "insn".
5497 (replace_swap_with_copy): Likewise for locals "insn" and
5499 (rs6000_analyze_swaps): Likewise for local "insn".
5501 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5503 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5506 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5508 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5509 "note_list" from rtx to rtx_insn *.
5510 (BB_NOTE_LIST): Replace this function and...
5511 (SET_BB_NOTE_LIST): ...this function with...
5512 (BB_NOTE_LIST): ...the former macro implementation.
5514 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5515 local "from_start" from rtx to rtx_insn *. Strengthen param
5516 "to_endp" from rtx * to rtx_insn **.
5518 * haifa-sched.c (concat_note_lists): Likewise.
5519 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5521 (sel_restore_notes): Likewise.
5522 (move_bb_info): Likewise.
5523 (BB_NOTE_LIST): Delete this function.
5524 (SET_BB_NOTE_LIST): Delete this function.
5525 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5526 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5528 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5530 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5531 from rtx * to rtx_insn **.
5532 (reorder2): Likewise.
5533 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5534 from rtx to rtx_insn *.
5536 * doc/tm.texi: Update mechanically for above change to target.def.
5538 * sched-int.h (note_list): Strengthen this variable from rtx to
5540 (remove_notes): Likewise for both params.
5541 (restore_other_notes): Likewise for return type and first param.
5542 (struct ready_list): Strengthen field "vec" from rtx * to
5544 (struct dep_replacement): Strenghten field "insn" from rtx to
5546 (struct deps_desc): Likewise for fields "last_debug_insn",
5548 (struct haifa_sched_info): Likewise for callback field
5549 "can_schedule_ready_p"'s param, for first param of "new_ready"
5550 callback field, for both params of "rank" callback field, for
5551 first field of "print_insn" callback field (with a const), for
5552 both params of "contributes_to_priority" callback, for param
5553 of "insn_finishes_block_p" callback, for fields "prev_head",
5554 "next_tail", "head", "tail", for first param of "add_remove_insn"
5555 callback, for first param of "begin_schedule_ready" callback, for
5556 both params of "begin_move_insn" callback, and for second param
5557 of "advance_target_bb" callback.
5558 (add_dependence): Likewise for params 1 and 2.
5559 (sched_analyze): Likewise for params 2 and 3.
5560 (deps_analyze_insn): Likewise for param 2.
5561 (ready_element): Likewise for return type.
5562 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5563 (try_ready): Strenghten param from rtx to rtx_insn *.
5564 (sched_emit_insn): Likewise for return type.
5565 (record_delay_slot_pair): Likewise for params 1 and 2.
5566 (add_delay_dependencies): Likewise for param.
5567 (contributes_to_priority): Likewise for both params.
5568 (find_modifiable_mems): Likewise.
5570 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5571 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5572 "first_older_only_insn" from rtx to rtx_insn *.
5573 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5576 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5577 "last_scheduled_iter0" from rtx to rtx_insn *.
5578 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5579 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5580 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5581 "insn" from rtx to rtx_insn *.
5582 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5584 (c6x_sched_reorder2): 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_variable_issue): Add a checked cast when assigning from insn
5588 to ss.last_scheduled_iter0.
5589 (split_delayed_branch): Strengthen param "insn" and local "i1"
5590 from rtx to rtx_insn *.
5591 (split_delayed_nonbranch): Likewise.
5592 (undo_split_delayed_nonbranch): Likewise for local "insn".
5593 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5594 "entry_after", "end_packet", "head_insn", "tail_insn",
5595 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5596 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5597 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5598 but add a checked cast on loop->start_label. Consolidate calls to
5599 avoid assigning result of gen_spkernel to "insn", now an
5602 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5603 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5605 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5606 rtx_insn **. Strengthen locals "top", "next" from rtx to
5608 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5609 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5610 (add_parameter_dependencies): Strengthen params "call", "head" and
5611 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5612 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5613 (add_dependee_for_func_arg): Likewise for param "arg" and local
5615 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5616 "tail" and locals "insn", "first_arg".
5618 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5619 for params "head", "tail" and locals "insn", "next", "next_tail".
5620 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5621 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5622 "insn", "lowest", "highest" from rtx to rtx_insn *.
5623 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5625 (ia64_sched_reorder2): Likewise.
5627 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5628 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5629 from rtx * to rtx_insn **.
5630 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5632 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5634 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5635 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5638 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5639 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5641 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5642 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5643 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5645 (vr4130_reorder): Likewise.
5646 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5648 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5650 (mips_sched_reorder): Likewise.
5651 (mips_sched_reorder2): Likewise.
5653 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5655 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5656 Strengthen local "tmp" from rtx to rtx_insn *.
5657 (rs6000_sched_reorder2): Likewise.
5659 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5660 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5661 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5662 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5664 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5665 "tmp2" from rtx to rtx_insn *.
5666 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5667 Strengthen local "insn" from rtx to rtx_insn *.
5668 (ready_reorder): Strengthen param "ready" from rtx * to
5669 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5670 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5671 (sh_reorder2): Likewise.
5673 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5674 local "insn" from rtx to rtx_insn *.
5676 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5678 (scheduled_insns): Strengthen this variable from vec<rtx> to
5680 (set_modulo_params): Likewise for locals "i1", "i2".
5681 (record_delay_slot_pair): Likewise for params "i1", "i2".
5682 (add_delay_dependencies): Likewise for param "insn".
5683 (cond_clobbered_p): Likewise.
5684 (recompute_todo_spec): Likewise for local "prev".
5685 (last_scheduled_insn): Likewise for this variable.
5686 (nonscheduled_insns_begin): Likewise.
5687 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5689 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5691 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5692 Strengthen local "insn" from rtx to rtx_insn *.
5693 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5694 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5695 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5696 (ready_remove_first): Likewise for return type and local "t".
5697 (ready_element): Likewise for return type.
5698 (ready_remove): Likewise for return type and local "t".
5699 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5700 (check_clobbered_conditions): Strengthen local "x" from rtx to
5701 rtx_insn *, adding a checked cast.
5702 (schedule_insn): Likewise for param "insn".
5703 (remove_notes): Likewise for params "head", "tail" and locals
5704 "next_tail", "insn", "next".
5705 (struct haifa_saved_data): Likewise for fields
5706 "last_scheduled_insn", "nonscheduled_insns_begin".
5707 (save_backtrack_point): Update for change to field "vec" of
5709 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5711 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5712 from rtx to rtx_insn *
5713 (resolve_dependencies): Strengthen param "insn" from rtx to
5715 (restore_other_notes): Likewise for return type, for param "head"
5716 and local "note_head".
5717 (undo_all_replacements): Likewise for local "insn".
5718 (first_nonscheduled_insn): Likewise for return type and local "insn".
5719 (queue_to_ready): Likewise for local "insn", adding checked casts.
5720 (early_queue_to_ready): Likewise for local "insn".
5721 (debug_ready_list_1): Strengthen local "p" from rtx * to
5723 (move_insn): Strengthen param "insn" and local "note" from rtx to
5725 (insn_finishes_cycle_p): Likewise for param "insn".
5726 (max_issue): Likewise for local "insn".
5727 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5729 (commit_schedule): Strengthen param "prev_head" and local "insn"
5730 from rtx to rtx_insn *
5731 (prune_ready_list): Likewise for local "insn".
5732 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5733 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5734 (set_priorities): Likewise for local "prev_head".
5735 (try_ready): Likewise for param "next".
5736 (fix_tick_ready): Likewise.
5737 (change_queue_index): Likewise.
5738 (sched_extend_ready_list): Update for change to field "vec" of
5740 (generate_recovery_code): Strengthen param "insn" from rtx to
5742 (begin_speculative_block): Likewise.
5743 (create_check_block_twin): Likewise for param "insn" and locals
5744 "label", "check", "twin". Introduce local "check_pat" to avoid
5745 "check" being used as a plain rtx before being used as an insn.
5746 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5747 extracting elements from ready_list.
5748 (sched_remove_insn): Strengthen param "insn" from rtx to
5750 (sched_emit_insn): Likewise for return type.
5751 (ready_remove_first_dispatch): Likewise for return type and local
5754 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5756 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5759 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5760 from rtx to rtx_insn *.
5761 (add_dependence_list): Likewise for param "insn". Add a checked
5763 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5764 to rtx_insn *. Strengthen param "list_p" from rtx * to
5766 (chain_to_prev_insn): Strengthen param "insn" and locals
5767 "prec_nonnote", "i" from rtx to rtx_insn *.
5768 (flush_pending_lists): Likewise for param "insn".
5769 (cur_insn): Likewise for this variable.
5770 (haifa_start_insn): Add a checked cast.
5771 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5772 (sched_analyze_reg): Likewise for param "insn".
5773 (sched_analyze_1): Likewise.
5774 (sched_analyze_2): Likewise. Add checked casts.
5775 (sched_analyze_insn): Likewise. Also for local "prev".
5776 (deps_analyze_insn): Likewise for param "insn".
5777 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5778 (add_dependence_1): Likewise for params "insn", "elem".
5779 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5780 (parse_add_or_inc): Likewise for param "insn".
5781 (find_inc): Likewise for local "inc_cand".
5782 (find_modifiable_mems): Likewise for params "head", "tail" and
5783 locals "insn", "next_tail".
5785 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5786 (begin_schedule_ready): Likewise for param "insn".
5787 (begin_move_insn): Likewise for params "insn" and "last".
5788 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5790 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5791 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5792 (ebb_add_remove_insn): Likewise for param "insn".
5793 (advance_target_bb): Likewise.
5795 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5797 (check_live): Likewise for param "insn".
5798 (init_ready_list): Likewise for local "insn".
5799 (can_schedule_ready_p): Likewise for param "insn".
5800 (begin_schedule_ready): Likewise.
5801 (new_ready): Likewise for param "next".
5802 (rgn_print_insn): Likewise for param "insn".
5803 (rgn_rank): Likewise for params "insn1", "insn2".
5804 (contributes_to_priority): Likewise for params "next", "insn".
5805 (rgn_insn_finishes_block_p): Likewise for param "insn".
5806 (add_branch_dependences): Likewise for params "head", "tail" and
5807 locals "insn", "last".
5808 (rgn_add_remove_insn): Likewise for param "insn".
5809 (advance_target_bb): Likewise.
5811 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5812 const_rtx to const rtx_insn *.
5814 * sel-sched-dump.h (sel_print_insn): Likewise.
5816 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5817 (deps_init_id): Likewise.
5819 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5820 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5823 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5825 * output.h (final_start_function): Strengthen param 1 from rtx to
5828 * final.c (final_start_function): Likewise, renaming back from
5829 "uncast_first" to "first", and dropping the checked cast from rtx
5832 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5834 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5835 * final.c (final): Likewise. Rename param back from
5836 "uncast_first" to "first" and eliminate the checked cast from rtx
5839 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5841 * output.h (shorten_branches): Strengthen param from rtx to
5844 * final.c (shorten_branches): Likewise, renaming param back from
5845 "uncast_first" to "first", and dropping the checked cast from rtx
5848 * genattr.c (gen_attr): Likewise when writing out the prototype of
5851 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5853 * sched-int.h (struct haifa_sched_info): Strengthen fields
5854 "prev_head" and "next_tail" from rtx to rtx_insn *.
5856 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5858 * rtl.h (rtx_jump_table_data::get_labels): New method.
5859 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5860 with use of the new rtx_jump_table_data::get_labels method.
5861 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5862 to rtx_jump_table_data *. Simplify by using get_labels method.
5863 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5864 a dyn_cast, introducing local "table", using it to replace
5865 label-lookup logic with a get_labels method call.
5866 (patch_jump_insn): Simplify using get_labels method.
5867 * dwarf2cfi.c (create_trace_edges): Likewise.
5868 * rtlanal.c (label_is_jump_target_p): Likewise.
5870 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5872 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5875 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5876 (unshare_all_rtl_again): Likewise, also for local "p".
5878 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5880 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5882 * cfgrtl.c (delete_insn_and_edges): Likewise.
5884 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5886 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5887 from rtx to rtx_insn *.
5889 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5893 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5894 locals "returnjump", "epilogue_end", "insn", "next".
5896 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5897 "returnjump" from rtx * to rtx_insn **.
5898 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5900 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5902 * basic-block.h (struct edge_def). Strengthen "r" within
5903 union edge_def_insns from rtx to rtx_insn *.
5905 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5906 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5908 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5909 from rtx to rtx_insn *.
5910 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5912 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5913 (reg_used_on_edge): Likewise.
5914 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5915 (gt_pch_nx): New overload for rtx_insn *&.
5916 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5917 from rtx to rtx_insn *.
5919 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5921 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5922 from rtx to rtx_insn *.
5923 (BB_FOOTER): Replace function with access macro.
5924 (SET_BB_FOOTER): Delete.
5926 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5928 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5929 (emit_barrier_after_bb): Likewise.
5930 (record_effective_endpoints): Likewise.
5931 (relink_block_chain): Likewise.
5932 (fixup_fallthru_exit_predecessor): Likewise.
5933 (cfg_layout_duplicate_bb): Likewise.
5934 (cfg_layout_split_block): Likewise.
5935 (cfg_layout_delete_block): Likewise.
5936 (cfg_layout_merge_blocks): Likewise.
5937 (BB_FOOTER): Delete function.
5938 (SET_BB_FOOTER): Delete function.
5939 * combine.c (update_cfg_for_uncondjump): Replace uses of
5940 SET_BB_FOOTER with BB_FOOTER.
5942 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5944 * except.h (struct eh_landing_pad_d): Strengthen field
5945 "landing_pad" from rtx to rtx_code_label *.
5947 * except.c (sjlj_emit_dispatch_table): Likewise for param
5949 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5951 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5953 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5954 first param from rtx to rtx_insn *.
5955 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5956 field "set_frame_ptr_insn".
5957 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5958 "csend" from rtx to rtx_code_label *.
5959 (xtensa_expand_atomic): Likewise for local "csloop".
5960 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5962 (xtensa_call_tls_desc): Likewise for return type and locals
5963 "call_insn", "insns".
5964 (xtensa_legitimize_tls_address): Likewise for local "insns".
5965 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5967 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5969 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5970 first param from rtx to rtx_insn *.
5971 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5974 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5976 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5977 Strengthen param 1 from rtx to rtx_insn *.
5978 (tilepro_output_cbranch): Likewise.
5979 (tilepro_adjust_insn_length): Likewise.
5980 (tilepro_final_prescan_insn): Likewise for sole param.
5982 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5983 Likewise for local "last".
5984 (cbranch_predicted_p): Likewise for param "insn".
5985 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5986 (tilepro_output_cbranch_with_opcode): Likewise.
5987 (tilepro_output_cbranch): Likewise.
5988 (frame_emit_load): Likewise for return type and locals "seq",
5990 (emit_sp_adjust): Likewise for return type and local "insn".
5991 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5993 (tilepro_adjust_insn_length): Likewise for param "insn".
5994 (next_insn_to_bundle): Likewise for return type and params
5996 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5997 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5999 (match_addli_pcrel): Likewise for param "insn".
6000 (replace_addli_pcrel): Likewise.
6001 (match_auli_pcrel): Likewise.
6002 (replace_auli_pcrel): Likewise.
6003 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6005 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6006 "queue", "next_queue", "prev".
6007 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6008 (tilepro_final_prescan_insn): Likewise for param "insn".
6010 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6012 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6013 Strengthen param 1 from rtx to rtx_insn *.
6014 (tilegx_output_cbranch): Likewise.
6015 (tilegx_adjust_insn_length): Likewise.
6016 (tilegx_final_prescan_insn): Likewise for sole param.
6018 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6020 (cbranch_predicted_p): Likewise for param "insn".
6021 (tilegx_output_simple_cbranch_with_opcode): Likewise.
6022 (tilegx_output_cbranch_with_opcode): Likewise.
6023 (tilegx_output_cbranch): Likewise.
6024 (frame_emit_load): Likewise for return type.
6025 (set_frame_related_p): Likewise for locals "seq", "insn".
6026 (emit_sp_adjust): Likewise for return type, and for local "insn".
6027 Introduce local "pat" for use in place of "insn" where the latter
6028 isn't an instruction.
6029 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6030 from rtx to rtx_insn *.
6031 (tilegx_adjust_insn_length): Likewise for param "insn".
6032 (next_insn_to_bundle): Likewise for return type and params "r" and
6034 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6036 (replace_insns): Likewise for params "old_insn", "new_insns".
6037 (replace_mov_pcrel_step1): Likewise for param "insn" and local
6039 (replace_mov_pcrel_step2): Likewise.
6040 (replace_mov_pcrel_step3): Likewise.
6041 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6043 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6044 "queue", "next_queue", "prev".
6045 (tilegx_output_mi_thunk): Likewise for local "insn".
6046 (tilegx_final_prescan_insn): Likewise for param "insn".
6048 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6050 * config/spu/spu.c (frame_emit_store): Strengthen return type from
6052 (frame_emit_load): Likewise.
6053 (frame_emit_add_imm): Likewise, also for local "insn".
6054 (spu_expand_prologue): Likewise for local "insn".
6055 (struct spu_bb_info): Likewise for field "prop_jump".
6056 (emit_nop_for_insn): Likewise for param "insn" and local
6058 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6060 (spu_emit_branch_hint): Likewise for params "before", "branch" and
6061 locals "hint", "insn".
6062 (get_branch_target): Likewise for param "branch".
6063 (insn_clobbers_hbr): Likewise for param "insn".
6064 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6065 locals "insn", "before_4", "before_16".
6066 (insert_hbrp): Likewise for local "insn".
6067 (spu_machine_dependent_reorg): Likewise for locals "branch",
6068 "insn", "next", "bbend".
6069 (uses_ls_unit): Likewise for param "insn".
6070 (get_pipe): Likewise.
6071 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6072 introducing a checked cast.
6073 (spu_sched_adjust_cost): Likewise for params "insn" and
6075 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6076 (spu_sms_res_mii): Likewise.
6078 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6080 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6081 from rtx to rtx_insn *.
6082 (output_cbranch): Likewise for param 6.
6083 (output_return): Likewise for param 1.
6084 (output_sibcall): Likewise.
6085 (output_v8plus_shift): Likewise.
6086 (output_v8plus_mult): Likewise.
6087 (output_v9branch): Likewise for param 7.
6088 (output_cbcond): Likewise for param 3.
6090 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6092 (sparc_legitimize_pic_address): Likewise.
6093 (sparc_emit_call_insn): Likewise.
6094 (emit_save_or_restore_regs): Likewise.
6095 (emit_window_save): Likewise for return type and local "insn".
6096 (sparc_expand_prologue): Likewise for local "insn".
6097 (sparc_flat_expand_prologue): Likewise.
6098 (output_return): Likewise for param "insn".
6099 (output_sibcall): Likewise for param "insn" and local "delay".
6100 (output_ubranch): Likewise for param "insn".
6101 (output_cbranch): Likewise.
6102 (output_cbcond): Likewise.
6103 (output_v9branch): Likewise.
6104 (output_v8plus_shift): Likewise.
6105 (sparc_output_mi_thunk): Likewise for local "insn".
6106 (get_some_local_dynamic_name): Likewise.
6107 (output_v8plus_mult): Likewise for param "insn".
6109 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6111 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6112 from rtx to rtx_insn *.
6113 (output_branchy_insn): Likewise for param 3.
6114 (output_far_jump): Likewise for param 1.
6115 (final_prescan_insn): Likewise.
6116 (sh_insn_length_adjustment): Likewise for sole param.
6118 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6119 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6121 (sh_emit_compare_and_set): Likewise for local "lab".
6122 (output_far_jump): Strengthen param "insn" and local "prev" from
6124 (output_branchy_insn): Likewise for param "insn" and local
6126 (output_ieee_ccmpeq): Likewise for param "insn".
6127 (struct label_ref_list_d): Strengthen field "label" from rtx to
6129 (pool_node): Likewise.
6130 (pool_window_label): Likewise for this global.
6131 (add_constant): Likewise for return type and locals "lab", "new_rtx".
6132 (dump_table): Strengthen params "start", "barrier" and local
6133 "scan" from rtx to rtx_insn *.
6134 (broken_move): Likewise for param "insn".
6135 (untangle_mova): Likewise for params "first_mova" and "new_mova".
6136 Strengthen param "first_mova" from rtx * to rtx_insn **.
6137 (mova_p): Likewise for param "insn".
6138 (fixup_mova): Likewise for param "mova".
6139 (find_barrier): Likewise for return type, params "mova" and
6140 "from", and locals "barrier_before_mova", "found_barrier",
6141 "good_barrier", "orig", "last_symoff", "next". Strengthen local
6142 "label" from rtx to rtx_code_label *.
6143 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6145 (sh_reorg): Likewise for locals "link", "scan", "barrier".
6146 (split_branches): Likewise for param "first" and local "insn".
6147 (final_prescan_insn): Likewise for param "insn".
6148 (sequence_insn_p): Likewise for locals "prev", "next".
6149 (sh_insn_length_adjustment): Likewise for param "insn".
6150 (sh_can_redirect_branch): Likewise for local "insn".
6151 (find_r0_life_regions): Likewise for locals "end", "insn".
6152 (sh_output_mi_thunk): Likewise for local "insns".
6154 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6156 * config/score/score.c (score_output_mi_thunk): Strengthen local
6157 "insn" from rtx to rtx_insn *.
6158 (score_prologue): Likewise.
6160 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6162 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6163 1 from rtx to rtx_insn *.
6164 (s390_emit_jump): Likewise for return type.
6165 (s390_emit_call): Likewise.
6166 (s390_load_got): Likewise.
6168 * config/s390/s390.c (last_scheduled_insn): Likewise for this
6170 (s390_match_ccmode): Likewise for param "insn".
6171 (s390_emit_jump): Likewise for return type.
6172 (s390_split_branches): Likewise for local "label".
6173 (struct constant): Strengthen field "label" from rtx to
6175 (struct constant_pool): Likewise for field "label". Strengthen
6176 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6178 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6180 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6181 (s390_end_pool): Likewise.
6182 (s390_dump_pool): Likewise for local "insn".
6183 (s390_mainpool_start): Likewise.
6184 (s390_chunkify_start): Likewise.
6185 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6186 with insns. Strengthen locals "label", "jump", "barrier", "next",
6187 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6188 (s390_chunkify_finish): Strengthen local "insn" from rtx to
6190 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6191 "jump", "label", "next_insn".
6192 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6193 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6195 (s390_load_got): Likewise for return type and local "insns".
6196 (s390_save_gprs_to_fprs): Likewise for local "insn".
6197 (s390_restore_gprs_from_fprs): Likewise.
6198 (pass_s390_early_mach::execute): Likewise.
6199 (s390_emit_prologue): Likewise for local "insns".
6200 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6202 (s390_emit_call): Strengthen return type and local "insn" from
6204 (s390_emit_tpf_eh_return): Likewise for local "insn".
6205 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6206 "next_insn", introducing locals "s_pat", "rpat" to allow this.
6207 (s390_fix_long_loop_prediction): Likewise for param "insn" and
6209 (s390_non_addr_reg_read_p): Likewise for param "insn".
6210 (find_cond_jump): Likewise for return type and param "insn".
6211 (s390_swap_cmp): Likewise for param "insn".
6212 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6213 "prev_insn", "next_insn".
6214 (s390_reorg): Likewise for locals "insn", "target".
6215 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6216 (s390_sched_variable_issue): For now, rename param "insn" to
6217 "uncast_insn", introducing a checked cast.
6218 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6220 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6221 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
6223 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6225 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6226 param from rtx to rtx_insn *.
6227 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6229 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6231 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6232 4 from rtx to rtx_insn *.
6233 (rs6000_final_prescan_insn): Likewise for first param.
6234 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6236 (rs6000_get_some_local_dynamic_name): Likewise.
6237 (output_cbranch): Likewise for param "insn".
6238 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6239 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6240 (rs6000_emit_allocate_stack): Likewise for local "insn".
6241 (load_cr_save): Likewise.
6242 (restore_saved_cr): Likewise.
6243 (restore_saved_lr): Likewise.
6244 (emit_cfa_restores): Likewise.
6245 (rs6000_output_function_epilogue): Likewise for locals "insn" and
6246 "deleted_debug_label".
6247 (rs6000_output_mi_thunk): Likewise for local "insn".
6248 (rs6000_final_prescan_insn): Likewise for param "insn".
6250 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6252 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6253 Strengthen param "insn" from rtx to rtx_insn *.
6254 * config/picochip/picochip.c (picochip_current_prescan_insn):
6255 Likewise for this variable.
6256 (picochip_final_prescan_insn): Likewise for param "insn".
6258 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6260 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6261 from rtx to rtx_insn *.
6262 (pa_output_indirect_call): Likewise.
6263 (pa_adjust_insn_length): Likewise.
6264 (pa_attr_length_millicode_call): Likewise.
6265 (pa_attr_length_call): Likewise.
6266 (pa_attr_length_indirect_call): Likewise.
6268 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6270 (pa_attr_length_millicode_call): Likewise.
6271 (pa_attr_length_call): Likewise.
6272 (pa_output_call): Likewise.
6273 (pa_attr_length_indirect_call): Likewise.
6274 (pa_output_indirect_call): Likewise.
6276 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6278 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6279 Strengthen first param from rtx to rtx_insn *.
6280 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6283 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6285 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6286 type from rtx to rtx_insn *.
6287 (mips_expand_call): Likewise.
6288 (mips_adjust_insn_length): Likewise for first param.
6289 (mips_output_conditional_branch): Likewise.
6290 (mips_output_order_conditional_branch): Likewise.
6291 (mips_final_prescan_insn): Likewise.
6293 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6294 rtx_insn * for the SEQUENCE case.
6295 (SEQ_END): Likewise.
6296 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6297 (mips_emit_call_insn): Likewise, also for local "insn".
6298 (mips16_gp_pseudo_reg): Likewise for local "scan".
6299 (mips16_build_call_stub): Likewise for return type and for local
6300 "insn". Introduce a new local "pattern" so that "insn" can indeed
6302 (mips_expand_call): Strengthen return type and local "insn" from
6304 (mips_block_move_loop): Strengthen local "label" from rtx to
6306 (mips_expand_synci_loop): Likewise for locals "label",
6308 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6310 (mips16e_collect_argument_saves): Likewise for locals "insn",
6312 (mips_find_gp_ref): Likewise for param of callback for "pred"
6313 param, and for local "insn".
6314 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6315 (mips_insn_has_flexible_gp_ref_p): Likewise.
6316 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6318 (mips_epilogue_set_cfa): Likewise for local "insn".
6319 (mips_expand_epilogue): Likewise.
6320 (mips_adjust_insn_length): Likewise for param "insn".
6321 (mips_output_conditional_branch): Likewise.
6322 (mips_output_order_conditional_branch): Likewise.
6323 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6324 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6325 "falu2_turn_enabled_insn".
6326 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6327 "done_label" from rtx to rtx_code_label *.
6328 (struct mips16_constant): Likewise for field "label".
6329 (mips16_add_constant): Likewise for return type.
6330 (mips16_emit_constants_1): Strengthen return type and param "insn"
6331 from rtx to rtx_insn *.
6332 (mips16_emit_constants): Likewise for param "insn".
6333 (mips16_insn_length): Likewise.
6334 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6335 to rtx_code_label *.
6336 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6337 from rtx to rtx_insn *.
6338 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6339 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6340 (r10k_simplify_address): Strengthen param "insn" and local
6341 "def_insn" from rtx to rtx_insn *.
6342 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6344 (r10k_needs_protection_p_1): Update target type of cast of data
6345 from to rtx to rtx_insn *.
6346 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6347 rtx * to rtx_insn **.
6348 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6350 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6351 (mips_call_expr_from_insn): Likewise for param "insn".
6352 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6353 (mips_find_pic_call_symbol): Likewise for param "insn".
6354 (mips_annotate_pic_calls): Likewise for local "insn".
6355 (mips_sim_insn): Likewise for this variable.
6356 (struct mips_sim): Likewise for field "insn" within elements of
6358 (mips_sim_wait_reg): Likewise for param "insn".
6359 (mips_sim_wait_regs): Likewise.
6360 (mips_sim_wait_units): Likewise.
6361 (mips_sim_wait_insn): Likewise.
6362 (mips_sim_issue_insn): Likewise.
6363 (mips_sim_finish_insn): Likewise.
6364 (mips_seq_time): Likewise for param "seq" and local "insn".
6365 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6366 locals "first", "second".
6367 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6368 "last", "last2", "next".
6369 (mips_avoid_hazard): Likewise for params "after", "insn".
6370 (mips_reorg_process_insns): Likewise for locals "insn",
6371 "last_insn", "subinsn", "next_insn".
6372 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6373 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6375 (mips_output_mi_thunk): Likewise for local "insn".
6376 (mips_final_prescan_insn): Likewise for param "insn".
6378 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6380 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6381 Strengthen return type and local "insns" from rtx to rtx_insn *.
6382 (microblaze_legitimize_tls_address): Likewise for local "insns".
6383 (microblaze_block_move_loop): Strengthen local "label" from rtx
6384 to rtx_code_label *.
6385 (microblaze_expand_prologue): Strengthen two locals named "insn"
6386 from rtx to rtx_insn *.
6387 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6388 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6389 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6390 to rtx_code_label *.
6392 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6394 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6395 param from rtx to rtx_insn *.
6396 (mep_reuse_lo): Likewise for third param.
6397 (mep_use_post_modify_p): Likewise for first param.
6398 (mep_core_address_length): Likewise.
6399 (mep_cop_address_length): Likewise.
6400 (mep_final_prescan_insn): Likewise.
6401 (mep_store_data_bypass_p): Likewise for both params.
6402 (mep_mul_hilo_bypass_p): Likewise.
6403 (mep_ipipe_ldc_p): Likewise for param.
6405 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6406 (mep_rewrite_mult): Likewise.
6407 (mep_rewrite_mulsi3): Likewise.
6408 (mep_rewrite_maddsi3): Likewise.
6409 (mep_reuse_lo_p_1): Likewise.
6410 (mep_reuse_lo_p): Likewise.
6411 (mep_frame_expr): Likewise.
6412 (mep_make_parallel): Likewise for both params.
6413 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6415 (mep_use_post_modify_p): Likewise for param "insn".
6416 (mep_core_address_length): Likewise.
6417 (mep_cop_address_length): Likewise.
6418 (mep_reg_set_in_function): Likewise for local "insn".
6419 (mep_asm_without_operands_p): Likewise.
6420 (F): Likewise for return type and param "x".
6421 (add_constant): Likewise for local "insn".
6422 (maybe_dead_move): Likewise for return type and local "insn".
6423 (mep_expand_prologue): Likewise for local "insn".
6424 (mep_final_prescan_insn): Likewise for param "insn".
6425 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6426 "next", "follow", "x".
6427 (mep_insert_repeat_label_last): Likewise for return type, param
6428 "last_insn", and locals "next", "prev". Strengthen param "label"
6429 from rtx to rtx_code_label *.
6430 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6432 (struct mep_doloop_end): Likewise for fields "insn" and
6434 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6435 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6436 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6438 (mep_invert_branch): Likewise for params "insn" and "after".
6439 (mep_reorg_erepeat): Likewise for param "insns" and locals
6440 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6441 "l" from rtx to rtx_code_label *.
6442 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6443 from rtx to rtx_insn *.
6444 (mep_reorg_addcombine): Likewise for param "insns" and locals
6446 (add_sp_insn_p): Likewise for param "insn".
6447 (mep_reorg_noframe): Likewise for param "insns" and locals
6448 "start_frame_insn", "end_frame_insn", "next".
6449 (mep_reorg): Likewise for local "insns".
6450 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6452 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6453 (mep_mul_hilo_bypass_p): Likewise.
6454 (mep_ipipe_ldc_p): Likewise for param "insn".
6455 (mep_make_bundle): Likewise for return type, param "cop" and local
6456 "insn", splitting out the latter into a new local "seq" for when it
6457 is a SEQUENCE rather than an insn.
6458 (core_insn_p): Likewise for param "insn".
6459 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6460 "last", "first", "note", "prev", "core_insn".
6462 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6464 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6466 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6467 (m68k_final_prescan_insn): Likewise for first param.
6469 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6470 (m68k_set_frame_related): Likewise for param "insn".
6471 (output_btst): Likewise for param "insn".
6472 (m68k_final_prescan_insn): Likewise.
6473 (m68k_move_to_reg): Likewise for local "insn".
6474 (m68k_call_tls_get_addr): Likewise for local "insns".
6475 (m68k_call_m68k_read_tp): Likewise.
6476 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6477 (m68k_output_mi_thunk): Likewise for local "insn".
6479 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6481 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6482 first param from rtx to rtx_insn *.
6483 (iq2000_adjust_insn_length): Likewise.
6484 (iq2000_output_conditional_branch): Likewise.
6485 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6486 "insn" and local "nop_insn".
6487 (iq2000_annotate_frame_insn): Likewise for param "insn".
6488 (iq2000_expand_prologue): Likewise for both locals "insn".
6489 (iq2000_adjust_insn_length): Likewise for param "insn".
6490 (iq2000_output_conditional_branch): Likewise.
6492 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6494 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6495 "insns" from rtx to rtx_insn *.
6496 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6497 (struct spill_fill_data): Likewise for field "init_after" and for
6498 elements of array field "prev_insn".
6499 (spill_restore_mem): Likewise for locals "insn", "first".
6500 (do_spill): Likewise for local "insn".
6501 (do_restore): Likewise.
6502 (ia64_expand_prologue): Likewise.
6503 (ia64_expand_epilogue): Likewise.
6504 (emit_insn_group_barriers): Likewise for locals "insn",
6506 (emit_all_insn_group_barriers): Likewise for locals "insn",
6508 (dfa_stop_insn): Likewise for this global.
6509 (dfa_pre_cycle_insn): Likewise.
6510 (ia64_nop): Likewise.
6511 (final_emit_insn_group_barriers): Likewise for locals "insn",
6513 (emit_predicate_relation_info): Likewise for locals "head", "n",
6515 (ia64_reorg): Likewise for local "insn".
6516 (ia64_output_mi_thunk): Likewise.
6517 (expand_vec_perm_interleave_2): Likewise for local "seq".
6519 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6521 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6522 param 1 "insn" from rtx to rtx_insn *.
6523 (ix86_use_lea_for_mov): Likewise.
6524 (ix86_avoid_lea_for_addr): Likewise.
6525 (ix86_split_lea_for_addr): Likewise.
6526 (ix86_lea_for_add_ok): Likewise.
6527 (ix86_output_call_insn): Likewise.
6529 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6530 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6531 (ix86_output_function_epilogue): Likewise for locals "insn",
6532 "deleted_debug_label".
6533 (legitimize_tls_address): Likewise for local "insn".
6534 (get_some_local_dynamic_name): Likewise.
6535 (increase_distance): Likewise for params "prev", "next".
6536 (distance_non_agu_define_in_bb): Likewise for params "insn",
6537 "start" and locals "prev", "next".
6538 (distance_non_agu_define): Likewise for param "insn".
6539 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6540 locals "next", "prev".
6541 (distance_agu_use): Likewise for param "insn".
6542 (ix86_lea_outperforms): Likewise.
6543 (ix86_ok_to_clobber_flags): Likewise.
6544 (ix86_avoid_lea_for_add): Likewise.
6545 (ix86_use_lea_for_mov): Likewise.
6546 (ix86_avoid_lea_for_addr): Likewise.
6547 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6548 (ix86_split_lea_for_addr): Likewise for param "insn".
6549 (ix86_lea_for_add_ok): Likewise for param "insn".
6550 (ix86_expand_carry_flag_compare): Likewise for local
6552 (ix86_expand_int_movcc): Likewise.
6553 (ix86_output_call_insn): Likewise for param "insn".
6554 (ix86_output_call_insn): Likewise for local "i".
6555 (x86_output_mi_thunk): Introduce local "insn", using it in place
6556 of "tmp" when dealing with insns.
6557 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6559 (ix86_pad_returns): Likewise for locals "ret", "prev".
6560 (ix86_count_insn_bb): Likewise for local "insn".
6561 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6562 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6563 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6564 (expand_vec_perm_interleave2): Likewise for local "seq".
6565 (expand_vec_perm_vperm2f128_vblend): Likewise.
6566 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6567 call to for_each_rtx with for_each_rtx_in_insn.
6569 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6571 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6572 "label" from rtx to rtx_code_label *.
6573 (ix86_expand_prologue): Likewise.
6574 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6576 (ix86_split_idivmod): Likewise for locals "end_label" and
6578 (ix86_expand_branch): Likewise for local "label2".
6579 (ix86_expand_aligntest): Likewise for return type and local "label".
6580 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6582 (expand_movmem_epilogue): Likewise for the various locals named
6584 (expand_setmem_epilogue): Likewise.
6585 (expand_small_movmem_or_setmem): Likewise for local "label".
6586 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6587 Strengthen param "done_label" from rtx * to rtx_code_label **.
6588 Strengthen locals "loop_label" and "label" from rtx to
6590 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6591 Likewise for locals "loop_label", "label".
6592 (ix86_expand_set_or_movmem): Likewise for locals "label",
6593 "jump_around_label", "hot_label".
6594 (ix86_expand_strlensi_unroll_1): Likewise for locals
6595 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6597 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6598 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6599 "label2", "jump_label".
6600 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6602 (ix86_expand_lfloorceil): Likewise for local "label".
6603 (ix86_expand_rint): Likewise.
6604 (ix86_expand_floorceildf_32): Likewise.
6605 (ix86_expand_floorceil): Likewise.
6606 (ix86_expand_rounddf_32): Likewise.
6607 (ix86_expand_trunc): Likewise.
6608 (ix86_expand_truncdf_32): Likewise.
6609 (ix86_expand_round): Likewise.
6611 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6613 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6614 first param from rtx to rtx_insn *.
6615 (h8300_insn_length_from_table): Likewise.
6616 * config/h8300/h8300.c (F): Likewise for return type and param
6618 (Fpa): Add a checked cast to rtx_insn *.
6619 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6621 (final_prescan_insn): Likewise for param "insn".
6622 (h8300_binary_length): Likewise.
6623 (h8300_insn_length_from_table): Likewise.
6625 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6627 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6628 Strengthen first param "insn" from rtx to rtx_insn *.
6630 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6632 (frame_insn): Likewise for return type. Introduce local "insn"
6633 for use in place of local "x" for use as an rtx_insn *.
6634 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6635 (epiphany_expand_prologue): Likewise for local "insn".
6636 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6637 * config/epiphany/resolve-sw-modes.c
6638 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6641 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6643 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6644 param from rtx to rtx_insn *.
6645 (c6x_final_prescan_insn): Likewise for first param.
6647 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6648 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6649 (c6x_expand_compare): Strengthen local "insns" from rtx to
6651 (c6x_get_unit_specifier): Likewise for param "insn".
6652 (c6x_print_unit_specifier_field): Likewise.
6653 (c6x_final_prescan_insn): Likewise.
6654 (emit_add_sp_const): Likewise for local "insn".
6655 (c6x_expand_prologue): Likewise.
6657 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6659 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6660 param 1 from rtx to rtx_insn *.
6661 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6662 the various locals named "insn".
6663 (expand_epilogue_reg_restore): Likewise.
6664 (frame_related_constant_load): Likewise.
6665 (add_to_reg): Likewise.
6666 (emit_link_insn): Likewise.
6667 (do_link): Likewise.
6668 (expand_interrupt_handler_prologue): Likewise.
6669 (branch_dest): Likewise for param "branch".
6670 (asm_conditional_branch): Likewise for param "insn".
6671 (gen_one_bundle): Likewise for elements of param "slot" and local
6673 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6674 elements of local "slot".
6675 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6676 "queue", "next_queue", "prev".
6677 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6678 (add_sched_insns_for_speculation): Likewise for local "insn".
6680 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6682 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6683 from rtx to rtx_insn *.
6684 (output_movhi): Likewise.
6685 (output_movsisf): Likewise.
6686 (avr_out_tstsi): Likewise.
6687 (avr_out_tsthi): Likewise.
6688 (avr_out_tstpsi): Likewise.
6689 (avr_out_compare): Likewise.
6690 (avr_out_compare64): Likewise.
6691 (avr_out_movpsi): Likewise.
6692 (ashlqi3_out): Likewise.
6693 (ashlhi3_out): Likewise.
6694 (ashlsi3_out): Likewise.
6695 (ashrqi3_out): Likewise.
6696 (ashrhi3_out): Likewise.
6697 (ashrsi3_out): Likewise.
6698 (lshrqi3_out): Likewise.
6699 (lshrhi3_out): Likewise.
6700 (lshrsi3_out): Likewise.
6701 (avr_out_ashlpsi3): Likewise.
6702 (avr_out_ashrpsi3): Likewise.
6703 (avr_out_lshrpsi3): Likewise.
6704 (avr_out_fract): Likewise.
6705 (avr_out_sbxx_branch): Likewise.
6706 (avr_out_round): Likewise.
6707 (avr_out_xload): Likewise.
6708 (avr_out_movmem): Likewise.
6709 (adjust_insn_length): Likewise.
6710 (avr_out_lpm): Likewise.
6711 (reg_unused_after): Likewise.
6712 (_reg_unused_after): Likewise.
6713 (avr_jump_mode): Likewise for second param.
6714 (jump_over_one_insn): Likewise for first param.
6715 (avr_final_prescan_insn): Likewise.
6716 (out_shift_with_cnt): Likewise for second param.
6718 * config/avr/avr.c (get_sequence_length): Likewise for param
6719 "insns" and local "insn".
6720 (emit_push_byte): Likewise for local "insn".
6721 (emit_push_sfr): Likewise.
6722 (avr_prologue_setup_frame): Likewise for locals "insn",
6723 "fp_plus_insns", "sp_plus_insns".
6724 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6726 (avr_jump_mode): Likewise for param "insn".
6727 (avr_final_prescan_insn): Likewise.
6728 (avr_find_unused_d_reg): Likewise.
6729 (avr_out_lpm_no_lpmx): Likewise.
6730 (avr_out_lpm): Likewise.
6731 (avr_out_xload): Likewise.
6732 (output_movqi): Likewise.
6733 (output_movhi): Likewise.
6734 (out_movqi_r_mr): Likewise.
6735 (out_movhi_r_mr): Likewise.
6736 (out_movsi_r_mr): Likewise.
6737 (out_movsi_mr_r): Likewise.
6738 (output_movsisf): Likewise.
6739 (avr_out_load_psi): Likewise.
6740 (avr_out_store_psi): Likewise.
6741 (avr_out_movpsi): Likewise.
6742 (out_movqi_mr_r): Likewise.
6743 (avr_out_movhi_mr_r_xmega): Likewise.
6744 (out_movhi_mr_r): Likewise.
6745 (compare_condition): Likewise for param "insn" and local "next".
6746 (compare_sign_p): Likewise for param "insn".
6747 (compare_diff_p): Likewise.
6748 (compare_eq_p): Likewise.
6749 (avr_out_compare): Likewise.
6750 (avr_out_compare64): Likewise.
6751 (avr_out_tsthi): Likewise.
6752 (avr_out_tstpsi): Likewise.
6753 (avr_out_tstsi): Likewise.
6754 (out_shift_with_cnt): Likewise.
6755 (ashlqi3_out): Likewise.
6756 (ashlhi3_out): Likewise.
6757 (avr_out_ashlpsi3): Likewise.
6758 (ashlsi3_out): Likewise.
6759 (ashrqi3_out): Likewise.
6760 (ashrhi3_out): Likewise.
6761 (avr_out_ashrpsi3): Likewise.
6762 (ashrsi3_out): Likewise.
6763 (lshrqi3_out): Likewise.
6764 (lshrhi3_out): Likewise.
6765 (avr_out_lshrpsi3): Likewise.
6766 (lshrsi3_out): Likewise.
6767 (avr_out_fract): Likewise.
6768 (avr_out_round): Likewise.
6769 (avr_adjust_insn_length): Likewise.
6770 (reg_unused_after): Likewise.
6771 (_reg_unused_after): Likewise.
6772 (avr_compare_pattern): Likewise.
6773 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6774 and locals "branch1", "branch2", "insn2", "jump".
6775 (avr_reorg): Likewise for local "insn".
6776 (avr_2word_insn_p): Likewise for param "insn".
6777 (jump_over_one_insn_p): Likewise.
6778 (avr_out_sbxx_branch): Likewise.
6779 (avr_out_movmem): Likewise.
6781 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6783 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6784 param from rtx to rtx_insn *.
6785 (thumb1_final_prescan_insn): Likewise.
6786 (thumb2_final_prescan_insn): Likewise.
6788 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6790 (struct minipool_node): Likewise for field "insn".
6791 (dump_minipool): Likewise for param "scan".
6792 (create_fix_barrier): Likewise for local "from". Strengthen local
6793 "label" from rtx to rtx_code_label *.
6794 (push_minipool_barrier): Strengthen param "insn" from rtx to
6796 (push_minipool_fix): Likewise.
6797 (note_invalid_constants): Likewise.
6798 (thumb2_reorg): Likewise for local "insn".
6799 (arm_reorg): Likewise.
6800 (thumb2_final_prescan_insn): Likewise for param
6801 "insn" and local "first_insn".
6802 (arm_final_prescan_insn): Likewise for param "insn" and locals
6803 "start_insn", "this_insn".
6804 (arm_debugger_arg_offset): Likewise for param "insn".
6805 (thumb1_emit_multi_reg_push): Likewise for return type and local
6807 (thumb1_final_prescan_insn): Likewise for param "insn".
6808 (thumb_far_jump_used_p): Likewise for local "insn".
6809 (thumb1_expand_prologue): Likewise.
6810 (arm_expand_epilogue_apcs_frame): Likewise.
6811 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6812 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6813 from rtx to rtx_code_label *.
6814 (arm_split_atomic_op): Likewise for local "label".
6815 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6817 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6819 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6820 first param from rtx to rtx_insn *.
6821 (arc_verify_short): Likewise.
6822 (arc_short_long): Likewise.
6823 (arc_need_delay): Likewise.
6825 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6827 (arc_ccfsm_advance): Likewise for param "insn" and locals
6828 "start_insn", "this_insn".
6829 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6830 (arc_ccfsm_post_advance): Likewise for param "insn".
6831 (arc_next_active_insn): Likewise for return type and param "insn".
6832 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6833 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6834 (output_short_suffix): Likewise for local "insn".
6835 (arc_final_prescan_insn): Likewise for param "insn". Remove
6836 now-redundant checked cast.
6837 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6838 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6839 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6840 for use where lc_set became an insn.
6841 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6843 (arc_get_insn_variants): Likewise for local "prev".
6844 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6846 (arc_predicate_delay_insns): Likewise for local "insn".
6847 (arc_pad_return): Likewise for local "prev". For now, add a
6848 checked cast when extracting the insn from "final_sequence".
6849 (arc_short_long): Likewise for param "insn".
6850 (arc_need_delay): Likewise for param "insn" and local "next".
6851 (arc_label_align): Likewise for locals "prev", "next".
6853 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6855 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6856 "insn" from rtx to rtx_insn *.
6857 (alpha_gp_save_rtx): Likewise for local "seq".
6858 (alpha_instantiate_decls): Likewise for local "top".
6859 (get_some_local_dynamic_name): Likewise for local "insn".
6860 (alpha_does_function_need_gp): Likewise.
6861 (set_frame_related_p): Likewise for return type and for locals
6863 (emit_frame_store_1): Likewise for local "insn".
6864 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6865 (alpha_end_function): Likewise for local "insn".
6866 (alpha_output_mi_thunk_osf): Likewise.
6867 (alphaev4_insn_pipe): Likewise for param "insn".
6868 (alphaev5_insn_pipe): Likewise.
6869 (alphaev4_next_group): Likewise for return type and param 1
6871 (alphaev5_next_group): Likewise.
6872 (alpha_align_insns_1): Likewise for return type and param 1 of
6873 callback param "next_group", and for locals "i", "next", "prev",
6874 "where", "where2", "insn".
6876 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6878 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6879 rather than modifying the stmt.
6881 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6883 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6884 cgraph_state conversion.
6886 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6888 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6889 Strengthen local "insns" from rtx to rtx_insn *.
6890 (aarch64_set_frame_expr): Likewise for local "insn".
6891 (aarch64_save_or_restore_fprs): Likewise.
6892 (aarch64_save_or_restore_callee_save_registers): Likewise.
6893 (aarch64_expand_prologue): Likewise.
6894 (aarch64_expand_epilogue): Likewise.
6895 (aarch64_output_mi_thunk): Likewise.
6896 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6897 "label2" from rtx to rtx_code_label *.
6898 (aarch64_split_atomic_op): Likewise for local "label".
6900 2014-08-25 Martin Liska <mliska@suse.cz>
6902 * cgraph.h (symtab_node):
6903 (bool needed_p (void)): created from decide_is_symbol_needed
6904 (bool referred_to_p (void)): created from referred_to_p
6905 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6906 * cgraph.h (cgraph_node):
6907 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6908 (void expand (void)): created from expand_function
6909 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6910 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6911 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6912 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6913 * cgraph.h (varpool_node):
6914 (static void add (tree decl): created from varpool_add_new_variable
6915 * cgraph.h (cgraph_edge):
6917 (void remove_caller (void)): created from cgraph_edge_remove_caller
6918 (void remove_callee (void)): created from cgraph_edge_remove_callee
6919 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6920 created from cgraph_set_call_stmt
6921 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6922 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6923 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6924 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6925 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6926 created from cgraph_speculative_call_info
6927 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6928 int freq_scale, bool update_original)): created from cgraph_clone_edge
6929 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6930 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6931 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6932 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6933 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6934 (static void rebuild_references (void)): created from cgraph_rebuild_references
6935 * cgraph.h (symbol_table):
6936 (create_reference): renamed from add_reference
6937 (maybe_create_reference): renamed from maybe_add_reference
6938 (void register_symbol (symtab_node *node)): new function
6939 (void clear_asm_symbols (void)): new function
6940 (void unregister (symtab_node *node)): new function
6941 (void release_symbol (cgraph_node *node, int uid)): new function
6942 (cgraph_node * allocate_cgraph_symbol (void)): new function
6943 (void initialize (void)): created from cgraph_init
6944 (symtab_node *first_symbol (void)):new function
6945 (asm_node *first_asm_symbol (void)):new function
6946 (symtab_node *first_defined_symbol (void)):new function
6947 (varpool_node *first_variable (void)):new function
6948 (varpool_node *next_variable (varpool_node *node)):new function
6949 (varpool_node *first_static_initializer (void)):new function
6950 (varpool_node *next_static_initializer (varpool_node *node)):new function
6951 (varpool_node *first_defined_variable (void)):new function
6952 (varpool_node *next_defined_variable (varpool_node *node)):new function
6953 (cgraph_node *first_defined_function (void)):new function
6954 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6955 (cgraph_node *first_function (void)):new function
6956 (cgraph_node *next_function (cgraph_node *node)):new function
6957 (cgraph_node *first_function_with_gimple_body (void)):new function
6958 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6959 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6960 created from symtab_remove_unreachable_nodes
6961 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6962 (void process_new_functions (void)): created from cgraph_process_new_functions
6963 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6964 (bool output_variables (void)): created from varpool_node::output_variables
6965 (void output_asm_statements (void)): created from output_asm_statements
6966 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6967 (void compile (void)): created from compile
6968 (void output_weakrefs (void)): created from output_weakrefs
6969 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6970 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6971 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6972 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6973 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6974 created from cgraph_next_function_with_gimple_body
6975 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6976 created from cgraph_remove_edge_removal_hook
6977 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6978 created from cgraph_add_node_removal_hook
6979 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6980 created from cgraph_remove_node_removal_hook
6981 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6982 created from varpool_add_node_removal_hook
6983 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6984 created from varpool_remove_node_removal_hook
6985 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6986 created from cgraph_add_function_insertion_hook
6987 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6988 created from cgraph_remove_function_insertion_hook
6989 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6990 created from varpool_add_variable_insertion_hook
6991 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6992 created from varpool_remove_variable_insertion_hook
6993 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6994 created from cgraph_add_edge_duplication_hook
6995 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6996 created from cgraph_remove_edge_duplication_hook
6997 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6998 created from cgraph_add_node_duplication_hook
6999 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7000 created from cgraph_remove_node_duplication_hook
7001 (void call_edge_removal_hooks (cgraph_edge *e)):
7002 created from cgraph_call_edge_removal_hooks
7003 (void call_cgraph_insertion_hooks (cgraph_node *node)):
7004 created from call_function_insertion_hooks
7005 (void call_cgraph_removal_hooks (cgraph_node *node)):
7006 created from cgraph_call_node_removal_hooks
7007 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7008 created from cgraph_node::call_duplication_hooks
7009 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7010 created from cgraph_call_edge_duplication_hooks
7011 (void call_varpool_removal_hooks (varpool_node *node)):
7012 created from varpool_call_node_removal_hooks
7013 (void call_varpool_insertion_hooks (varpool_node *node)):
7014 created from varpool_call_variable_insertion_hooks
7015 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7016 created from insert_to_assembler_name_hash
7017 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7018 created from unlink_from_assembler_name_hash
7019 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7020 created from symtab_prevail_in_asm_name_hash
7021 (void symtab_initialize_asm_name_hash (void)):
7022 created from symtab_initialize_asm_name_hash
7023 (void change_decl_assembler_name (tree decl, tree name)):
7024 created from change_decl_assembler_name
7025 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7026 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7027 created from decl_assembler_name_hash
7028 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7029 created from decl_assembler_name_equal
7030 (static hashval_t hash_node_by_assembler_name (const void *p)):
7031 created from hash_node_by_assembler_name
7032 (static int eq_assembler_name (const void *p1, const void *p2)):
7033 created from eq_assembler_name
7035 2014-08-25 Marek Polacek <polacek@redhat.com>
7037 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7039 2014-08-25 Petr Murzin <petr.murzin@intel.com>
7041 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7042 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7043 SWI1248_AVX512BW mode iterator.
7045 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
7048 * config/sh/predicates.md (general_extend_operand): Disable
7049 TRUNCATE before reload completes.
7051 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
7053 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7055 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
7058 * config/sh/sh.opt (musermode): Allow negative form.
7059 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7060 targets that don't support it.
7061 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7062 Document -mno-usermode option.
7064 2014-08-24 Kito Cheng <kito@0xlab.org>
7066 * system.h (CALLER_SAVE_PROFITABLE): Poison.
7067 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7068 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7069 * doc/tm.texi: Regenerate.
7071 2014-08-24 Kito Cheng <kito@0xlab.org>
7073 * ira.c: Fix typo in comment.
7075 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
7077 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7078 Deprecate c++1y. Change language to reflect greater confidence in C++14.
7080 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
7083 * config/pa/pa.c (pa_output_function_epilogue): Don't set
7084 last_address when the current function is a thunk.
7085 (pa_asm_output_mi_thunk): When we don't have named sections or they
7086 are not being used, check that thunk can reach the stub table with a
7089 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7091 * web.c (union_match_dups): Strengthen param "insn" from rtx to
7093 (pass_web::execute): Likewise for local "insn".
7095 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7097 * var-tracking.c (struct micro_operation_def): Strengthen field
7098 "insn" from rtx to rtx_insn *.
7099 (struct emit_note_data_def): Likewise.
7100 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7101 (vt_stack_adjustments): Likewise for local "insn".
7102 (adjust_insn): Likewise for param "insn".
7103 (val_store): Likewise.
7104 (val_resolve): Likewise.
7105 (struct count_use_info): Likewise for field "insn".
7106 (log_op_type): Likewise for param "insn".
7107 (reverse_op): Likewise.
7108 (prepare_call_arguments): Likewise.
7109 (add_with_sets): The initial param takes an insn, but we can't
7110 yet strengthen it from rtx to rtx_insn * since it's used as a
7111 cselib_record_sets_hook callback. For now rename initial param
7112 from "insn" to "uncast_insn", and introduce a local "insn" of
7113 the stronger rtx_insn * type, with a checked cast.
7114 (compute_bb_dataflow): Strengthen local "insn" from rtx to
7116 (emit_note_insn_var_location): Likewise.
7117 (emit_notes_for_changes): Likewise.
7118 (emit_notes_for_differences): Likewise.
7119 (next_non_note_insn_var_location): Likewise for return type and
7121 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7122 (vt_initialize): Likewise for local "insn".
7123 (delete_debug_insns): Likewise for locals "insn" and "next".
7125 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7127 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7129 (mark_constant_pool): Likewise for local "insn".
7131 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7133 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7135 (dead_debug_promote_uses): Likewise.
7136 (dead_debug_insert_temp): Likewise.
7138 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7140 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7141 from const_rtx to const rtx_insn *.
7142 (store_killed_after): Likewise. Strengthen locals "last", "act"
7143 from rtx to rtx_insn *.
7144 (store_killed_before): Strengthen param "insn" from const_rtx to
7145 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
7146 (find_moveable_store): Strengthen param "insn" from rtx to
7148 (compute_store_table): Likewise for local "insn".
7149 (insert_insn_start_basic_block): Likewise for param "insn" and
7150 locals "prev", "before", "insn".
7151 (insert_store): For now, add a checked cast to rtx_insn * on the
7152 result of gen_move_insn.
7153 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7155 (replace_store_insn): Likewise. For now, add a checked cast to
7156 rtx_insn * on the result of gen_move_insn.
7158 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7160 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7162 (expand_sjlj_dispatch_table): Likewise.
7164 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7166 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7167 "insn" from rtx to rtx_insn *.
7169 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7171 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7172 "insn" from rtx to rtx_insn *.
7173 (dup_block_and_redirect): Likewise for param 3 "before".
7175 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7176 from rtx to rtx_insn *.
7177 (move_insn_for_shrink_wrap): Likewise.
7178 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7179 (dup_block_and_redirect): Likewise for param "before" and local
7181 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7183 (convert_to_simple_return): Likewise for local "start".
7185 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7186 Strengthen local "insn" from rtx to rtx_insn *, for use when
7187 invoking requires_stack_frame_p.
7189 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7191 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7193 (speculate_expr): Likewise for locals "orig_insn_rtx",
7195 (eq_transformed_insns): Likewise for locals "i1", "i2".
7196 (check_for_new_jump): Likewise for return type and local "end".
7197 (find_new_jump): Likewise for return type and local "jump".
7198 (sel_split_edge): Likewise for local "jump".
7199 (sel_create_recovery_block): Likewise.
7200 (sel_redirect_edge_and_branch_force): Likewise.
7201 (sel_redirect_edge_and_branch): Likewise.
7203 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7205 * sel-sched.c (substitute_reg_in_expr): Strengthen local
7206 "new_insn" from rtx to rtx_insn *.
7207 (create_insn_rtx_with_rhs): Likewise for return type and for local
7209 (create_insn_rtx_with_lhs): Likewise.
7210 (create_speculation_check): Likewise for local "insn_rtx".
7211 (implicit_clobber_conflict_p): Likewise for local "insn".
7212 (get_expr_cost): Likewise.
7213 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7214 (move_cond_jump): Likewise for locals "next", "prev", "link",
7215 "head", "from", "to".
7217 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7219 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7220 "next" from rtx to rtx_insn *.
7221 (find_conditional_protection): Likewise for local "next".
7222 (is_conditionally_protected): Likewise for local "insn1".
7223 (is_pfree): Likewise for locals "insn1", "insn2".
7225 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7227 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7228 from rtx to rtx_insn *.
7230 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7231 locals "insn1", "insn2" from rtx to rtx_insn *.
7232 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7233 locals "insn", "prev", "last_jump", "next_tail".
7234 (schedule_ebb): Likewise for params "head", "tail".
7235 (schedule_ebbs): Likewise for locals "tail", "head".
7237 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7238 to rtx_insn on "last_insn" in one of the invocations of
7241 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7243 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7244 "elem", "insn" from rtx to rtx_insn *.
7245 (change_spec_dep_to_hard): Likewise.
7246 (get_back_and_forw_lists): Likewise for local "con".
7247 (sd_add_dep): Likewise for locals "elem", "insn".
7248 (sd_resolve_dep): Likewise for locals "pro", "con".
7249 (sd_unresolve_dep): Likewise.
7250 (sd_delete_dep): Likewise.
7251 (chain_to_prev_insn): Likewise for local "pro".
7252 (find_inc): Likewise for locals "pro", "con".
7254 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7256 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7258 (reg_set_between_p): Strengthen local "insn" from const_rtx to
7260 (modified_between_p): Strengthen local "insn" from rtx to
7262 (remove_reg_equal_equiv_notes_for_regno): Likewise.
7263 (keep_with_call_p): Strengthen local "i2" from const_rtx to
7266 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7268 * resource.c (next_insn_no_annul): Strengthen local "next" from
7270 (mark_referenced_resources): Likewise for local "insn".
7272 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7274 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7276 (find_reloads): Likewise for param 1.
7277 (subst_reloads): Likewise for sole param.
7278 (find_equiv_reg): Likwise for param 2.
7279 (regno_clobbered_p): Likwise for param 2.
7280 (reload): Likewise for param 1.
7282 * caller-save.c (save_call_clobbered_regs): Strengthen local
7283 "insn" from rtx to rtx_insn *.
7284 (insert_one_insn): Likewise for local "insn".
7286 * reload.c (this_insn): Likewise for this global.
7287 (find_reloads): Likewise for param "insn".
7288 (find_reloads_toplev): Likewise.
7289 (find_reloads_address): Likewise.
7290 (subst_reg_equivs): Likewise.
7291 (update_auto_inc_notes): Likewise.
7292 (find_reloads_address_1): Likewise.
7293 (find_reloads_subreg_address): Likewise.
7294 (subst_reloads): Likewise.
7295 (find_equiv_reg): Likewise, also for local "p".
7296 (regno_clobbered_p): Likewise for param "insn".
7298 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7300 (spill_reg_store): Likewise for the elements of this array.
7301 (remove_init_insns): Likewise for local "equiv_insn".
7302 (will_delete_init_insn_p): Likewise for param "insn".
7303 (reload): Likewise for param ""first" and local "insn".
7304 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7306 (calculate_elim_costs_all_insns): Likewise.
7307 (delete_caller_save_insns): Likewise.
7308 (spill_failure): Likewise for param "insn".
7309 (delete_dead_insn): Likewise.
7310 (set_label_offsets): Likewise.
7311 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7313 (elimination_costs_in_insn): Likewise for param "insn".
7314 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7315 when referring to an insn.
7316 (set_initial_label_offsets): Likewise.
7317 (set_offsets_for_label): Strengthen param "insn" from rtx to
7319 (init_eliminable_invariants): Likewise for param "first" and local
7321 (fixup_eh_region_note): Likewise for param "insn".
7322 (reload_as_needed): Likewise for locals "prev", "insn",
7323 "old_next", "old_prev", "next".
7324 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7326 (reload_inheritance_insn): Strengthen elements of this array from
7328 (failed_reload): Likewise for param "insn".
7329 (choose_reload_regs): Likewise for local "insn". Replace use of
7330 NULL_RTX with NULL when referring to an insn.
7331 (input_reload_insns): Strengthen elements of this array from rtx
7333 (other_input_address_reload_insns): Likewise for this global.
7334 (other_input_reload_insns): Likewise for this global.
7335 (input_address_reload_insns): Likwise for the elements of this
7337 (inpaddr_address_reload_insns): Likwise for the elements of this
7339 (output_reload_insns): Likewise for the elements of this array.
7340 (output_address_reload_insns): Likewise for the elements of this
7342 (outaddr_address_reload_insns): Likewise for the elements of this
7344 (operand_reload_insns): Likewise for this global.
7345 (other_operand_reload_insns): Likewise for this global.
7346 (other_output_reload_insns): Likewise for the elements of this
7348 (new_spill_reg_store): Likewise for the elements of this
7350 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7351 Strengthen local "where" from rtx * to rtx_insn **.
7352 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7353 from rtx to rtx_insn *.
7354 (do_input_reload): Likewise for local "insn".
7355 (do_output_reload): Likewise for local "insn".
7356 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7357 (emit_insn_if_valid_for_reload): Likewise for return type and local
7358 "last". Add checked cast to rtx_insn when returning "insn" since
7359 this has been through emit_insn.
7360 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7361 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7362 returning "insn" since it's been through
7363 emit_insn_if_valid_for_reload at this point.
7364 (delete_output_reload): Strengthen param "insn" and locals
7365 "output_reload_insn", "i2" from rtx to rtx_insn *.
7366 (delete_address_reloads): Likewise for params "dead_insn",
7367 "current_insn" and locals "prev", "next".
7368 (delete_address_reloads_1): Likewise for params "dead_insn",
7369 "current_insn" and locals "prev", "i2".
7370 (inc_for_reload): Likewise for locals "last", "add_insn".
7371 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7374 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7375 param of this duplicate of the prototype from reload.h
7377 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7379 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7381 (regstat_bb_compute_calls_crossed): Likewise.
7383 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7385 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7387 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7389 (regrename_analyze): Strengthen local "insn" from rtx to
7391 (scan_rtx_reg): Likewise for param "insn".
7392 (scan_rtx_address): Likewise.
7393 (scan_rtx): Likewise.
7394 (restore_operands): Likewise.
7395 (record_out_operands): Likewise.
7396 (build_def_use): Likewise for local "insn". Replace use of
7397 NULL_RTX with NULL when dealing with an insn.
7399 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7401 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7402 * reginfo.c (reg_scan): Likewise, also for local "insn".
7403 (reg_scan_mark_refs): Likewise for param "insn".
7404 (init_subregs_of_mode): Likewise for local "insn".
7406 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7408 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7409 "insn" from rtx to rtx_insn *.
7410 (replace_oldest_value_reg): Likewise for param "insn".
7411 (replace_oldest_value_addr): Likewise.
7412 (replace_oldest_value_mem): Likewise.
7413 (apply_debug_insn_changes): Likewise for local "last_insn".
7414 (copyprop_hardreg_forward_1): Likewise for local "insn".
7416 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7418 * reg-stack.c (next_flags_user): Strengthen return type and param
7419 "insn" from rtx to rtx_insn *.
7420 (straighten_stack): Likewise for param "insn".
7421 (check_asm_stack_operands): Likewise.
7422 (remove_regno_note): Likewise.
7423 (emit_pop_insn): Likewise for return type, param "insn", local
7425 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7426 "limit" from rtx to rtx_insn *.
7427 (swap_to_top): Likewise for param "insn".
7428 (move_for_stack_reg): Likewise.
7429 (move_nan_for_stack_reg): Likewise.
7430 (swap_rtx_condition): Likewise.
7431 (compare_for_stack_reg): Likewise.
7432 (subst_all_stack_regs_in_debug_insn): Likewise.
7433 (subst_stack_regs_pat): Likewise, and local "insn2".
7434 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7436 (subst_stack_regs): Likewise.
7437 (change_stack): Likewise.
7438 (convert_regs_1): Likewise for locals "insn", "next".
7440 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7442 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7444 (combine_set_extension): Likewise for param "curr_insn".
7445 (transform_ifelse): Likewise for param "def_insn".
7446 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7447 from vec<rtx> * to vec<rtx_insn *> *.
7448 (is_cond_copy_insn): Likewise for param "insn".
7449 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7451 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7452 local "def_insn" from rtx to rtx_insn *.
7453 (get_sub_rtx): Likewise for param "def_insn".
7454 (merge_def_and_ext): Likewise.
7455 (combine_reaching_defs): Likewise.
7456 (add_removable_extension): Likewise for param "insn".
7457 (find_removable_extensions): Likewise for local "insn".
7458 (find_and_remove_re): Likewise for locals "curr_insn" and
7459 "def_insn". Strengthen locals "reinsn_del_list" and
7460 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7462 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7464 * recog.c (split_insn): Strengthen param "insn" and locals
7465 "first", "last" from rtx to rtx_insn *.
7466 (split_all_insns): Likewise for locals "insn", "next".
7467 (split_all_insns_noflow): Likewise.
7469 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7471 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7473 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7474 (debug_rtx_find): Likewise for param 1 "x".
7476 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7477 const_rtx to const rtx_insn *. Likewise for local "insn".
7478 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7479 (debug_rtx_find): Likewise for param 1 "x".
7480 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7481 from const_rtx to const rtx_insn * within the appropriate cases of
7482 the switch statement.
7484 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7485 Strengthen local "insns" from rtx to rtx_insn * since this is
7486 passed to a call to debug_rtx_list.
7488 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7490 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7493 * function.c (stack_protect_epilogue): Add checked cast to
7494 rtx_insn for now when invoking predict_insn_def.
7496 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7498 (predict_insn_def): Likewise.
7499 (rtl_predict_edge): Likewise for local "last_insn".
7500 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7502 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7504 (bb_estimate_probability_locally): Likewise for local "last_insn".
7505 (expensive_function_p): Likewise for local "insn".
7507 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7508 local "jmp", since this is used when invoking predict_insn_def.
7510 2014-08-22 Marek Polacek <polacek@redhat.com>
7513 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7515 2014-08-22 Marek Polacek <polacek@redhat.com>
7518 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7519 a comparison in parens.
7520 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7523 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7525 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7528 * cprop.c (fis_get_condition): Likewise.
7530 * postreload.c (reload_cse_regs): Likewise for param "first".
7531 (reload_cse_simplify): Likewise for param "insn".
7532 (reload_cse_regs_1): Likewise for local "insn".
7533 (reload_cse_simplify_set): Likewise for param "insn".
7534 (reload_cse_simplify_operands): Likewise.
7535 (struct reg_use): Likewise for field "insn".
7536 (reload_combine_purge_insn_uses): Likewise for param "insn".
7537 (fixup_debug_insns): Likewise for params "from", "to" and local
7539 (try_replace_in_use): Likewise for local "use_insn".
7540 (reload_combine_recognize_const_pattern): Likewise for param
7541 "insn" and locals "add_moved_after_insn", "use_insn".
7542 (reload_combine_recognize_pattern): Likewise for param "insn" and
7544 (reload_combine): Likewise for locals "insn", "prev".
7545 (reload_combine_note_use): Likewise for param "insn".
7546 (move2add_use_add2_insn): Likewise.
7547 (move2add_use_add3_insn): Likewise.
7548 (reload_cse_move2add): Likewise, also for local "next".
7549 (move2add_note_store): Likewise for local "insn".
7551 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7553 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7555 (struct unoccr): Likewise.
7556 (struct modifies_mem): Likewise.
7557 (alloc_mem): Likewise for local "insn".
7558 (insert_expr_in_table): Likewise for param "insn".
7559 (dump_expr_hash_table_entry): Likewise for local "insn".
7560 (oprs_unchanged_p): Likewise for param "insn".
7561 (load_killed_in_block_p): Likewise for local "setter".
7562 (record_last_reg_set_info): Likewise for param "insn".
7563 (record_last_reg_set_info_regno): Likewise.
7564 (record_last_mem_set_info): Likewise.
7565 (record_last_set_info): Likewise for local "last_set_insn".
7566 (record_opr_changes): Likewise for param "insn".
7567 (hash_scan_set): Likewise.
7568 (compute_hash_table): Likewise for local "insn".
7569 (get_avail_load_store_reg): Likewise for param "insn".
7570 (eliminate_partially_redundant_load): Likewise, also for locals
7571 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7573 (eliminate_partially_redundant_loads): Likewise for local "insn".
7575 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7577 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7579 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7580 (expand_twoval_unop): Likewise for locals entry_last", "last".
7581 (expand_twoval_binop): Likewise.
7582 (expand_twoval_binop_libfunc): Likewise for local "insns".
7583 (widen_leading): Likewise for local "last".
7584 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7585 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7586 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7587 (expand_parity): Likewise for locals "last" and "seq".
7588 (expand_ffs): Likewise for local "seq". Strengthen local
7589 "nonzero_label" from rtx to rtx_code_label *.
7590 (expand_absneg_bit): Strengthen local "insns" from rtx to
7592 (expand_unop_direct): Likewise for local "last".
7593 (expand_unop): Likewise for locals "last", "insns".
7594 (expand_abs_nojump): Likewise for local "last".
7595 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7596 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7598 (expand_copysign_absneg): Strengthen local "label" from rtx to
7600 (expand_copysign_bit): Strengthen local "insns" from rtx to
7602 (struct no_conflict_data): Likewise for fields "first", "insn".
7603 (emit_libcall_block_1): Likewise for param "insns" and locals
7604 "next", "last", "insn".
7605 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7606 on "insns" when invoking emit_libcall_block_1. Ultimately we
7607 want to strengthen insns itself.
7608 (prepare_cmp_insn): Strengthen local "last" from rtx to
7610 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7611 (prepare_float_lib_cmp): Likewise for local "insns".
7612 (emit_conditional_move): Likewise for local "last".
7613 (emit_conditional_add): Likewise.
7614 (have_sub2_insn): Likewise for local "seq".
7615 (expand_float): Likewise for local "insns". Strengthen locals
7616 "label", "neglabel" from rtx to rtx_code_label *.
7617 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7618 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7619 (expand_fixed_convert): Likewise for local "insns" (to
7621 (expand_sfix_optab): Likewise for local "last".
7622 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7623 to rtx_code_label *.
7624 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7625 from rtx to rtx_insn *.
7626 (expand_atomic_fetch_op): Likewise for local "insn".
7627 (maybe_legitimize_operand_same_code): Likewise for local "last".
7628 (maybe_legitimize_operands): Likewise.
7630 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7632 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7633 "insn" from rtx to rtx_insn *.
7634 (ps_rtl_insn): Likewise for return type.
7635 (doloop_register_get): Likewise for params "head", "tail" and
7636 locals "insn", "first_insn_not_to_check".
7637 (schedule_reg_move): Likewise for local "this_insn".
7638 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7639 of gen_move_insn for now.
7640 (reset_sched_times): Strengthen local "insn" from rtx to
7642 (permute_partial_schedule): Likewise.
7643 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7644 (dump_insn_location): Likewise for param "insn".
7645 (loop_canon_p): Likewise for local "insn".
7646 (sms_schedule): Likewise.
7647 (print_partial_schedule): Likewise.
7648 (ps_has_conflicts): Likewise.
7650 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7652 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7653 "tailp" from rtx * to rtx_insn **.
7655 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7656 from rtx to rtx_insn *.
7657 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7658 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7659 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7661 * modulo-sched.c (const_iteration_count): Strengthen return type
7662 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7663 use of NULL_RTX with NULL when working with insns.
7664 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7666 (sms_schedule): Likewise.
7667 * sched-rgn.c (init_ready_list): Likewise, also for locals
7668 "src_head" and "src_next_tail".
7669 (compute_block_dependences): Likewise.
7670 (free_block_dependencies): Likewise.
7671 (debug_rgn_dependencies): Likewise.
7672 (free_rgn_deps): Likewise.
7673 (compute_priorities): Likewise.
7674 (schedule_region): Likewise.
7675 * sel-sched.c (find_ebb_boundaries): Likewise.
7677 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7678 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7680 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7682 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7683 from rtx to rtx_insn *.
7684 (new_seginfo): Likewise for param "insn".
7685 (create_pre_exit): Likewise for locals "last_insn",
7686 "before_return_copy", "return_copy".
7687 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7690 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7692 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7693 from rtx to rtx_insn *.
7694 (lra_push_insn): Likewise for 1st param.
7695 (lra_push_insn_and_update_insn_regno_info): Likewise.
7696 (lra_pop_insn): Likewise for return type.
7697 (lra_invalidate_insn_data): Likewise for 1st param.
7698 (lra_set_insn_deleted): Likewise.
7699 (lra_delete_dead_insn): Likewise.
7700 (lra_process_new_insns): Likewise for first 3 params.
7701 (lra_set_insn_recog_data): Likewise for 1st param.
7702 (lra_update_insn_recog_data): Likewise.
7703 (lra_set_used_insn_alternative): Likewise.
7704 (lra_invalidate_insn_regno_info): Likewise.
7705 (lra_update_insn_regno_info): Likewise.
7706 (lra_former_scratch_operand_p): Likewise.
7707 (lra_eliminate_regs_1): Likewise.
7708 (lra_get_insn_recog_data): Likewise.
7710 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7713 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7715 (substitute_within_insn): New.
7716 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7717 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7718 Replace call to "substitute" with call to substitute_within_insn.
7720 * lra-constraints.c (curr_insn): Strengthen from rtx to
7722 (get_equiv_with_elimination): Likewise for param "insn".
7723 (match_reload): Strengthen params "before" and "after" from rtx *
7725 (emit_spill_move): Likewise for return type. Add a checked cast
7726 to rtx_insn * on result of gen_move_insn for now.
7727 (check_and_process_move): Likewise for local "before". Replace
7728 NULL_RTX with NULL when referring to insns.
7729 (process_addr_reg): Strengthen params "before" and "after" from
7730 rtx * to rtx_insn **.
7731 (insert_move_for_subreg): Likewise.
7732 (simplify_operand_subreg): Strengthen locals "before" and "after"
7733 from rtx to rtx_insn *.
7734 (process_address_1): Strengthen params "before" and "after" from
7735 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7737 (process_address): Strengthen params "before" and "after" from
7738 rtx * to rtx_insn **.
7739 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7740 (curr_insn_transform): Strengthen locals "before" and "after"
7741 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7743 (loc_equivalence_callback): Update cast of "data", changing
7744 resulting type from rtx to rtx_insn *.
7745 (substitute_pseudo_within_insn): New.
7746 (inherit_reload_reg): Strengthen param "insn" from rtx to
7747 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7748 NULL when referring to insns. Add a checked cast to rtx_insn *
7749 when using usage_insn to invoke lra_update_insn_regno_info.
7750 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7751 likewise for locals "restore", "save". Add checked casts to
7752 rtx_insn * when using usage_insn to invoke
7753 lra_update_insn_regno_info and lra_process_new_insns. Replace
7754 NULL_RTX with NULL when referring to insns.
7755 (split_if_necessary): Strengthen param "insn" from rtx to
7757 (update_ebb_live_info): Likewise for params "head", "tail" and local
7759 (get_last_insertion_point): Likewise for return type and local "insn".
7760 (get_live_on_other_edges): Likewise for local "last".
7761 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7762 "prev_insn", "next_insn", "restore".
7763 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7764 (undo_optional_reloads): Likewise for local "insn".
7766 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7768 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7770 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7772 (spill_pseudos): Likewise for local "insn".
7773 (init_elimination): Likewise.
7774 (process_insn_for_elimination): Likewise for param "insn".
7776 * lra-lives.c (curr_insn): Likewise.;
7778 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7779 (remove_pseudos): Likewise for param "insn".
7780 (spill_pseudos): Likewise for local "insn".
7781 (lra_final_code_change): Likewise for locals "insn", "curr".
7783 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7784 (lra_set_insn_deleted): Likewise.
7785 (lra_delete_dead_insn): Likewise, and for local "prev".
7786 (new_insn_reg): Likewise for param "insn".
7787 (lra_set_insn_recog_data): Likewise.
7788 (lra_update_insn_recog_data): Likewise.
7789 (lra_set_used_insn_alternative): Likewise.
7790 (get_insn_freq): Likewise.
7791 (invalidate_insn_data_regno_info): Likewise.
7792 (lra_invalidate_insn_regno_info): Likewise.
7793 (lra_update_insn_regno_info): Likewise.
7794 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7796 (lra_push_insn_1): Strengthen param "insn" from rtx to
7798 (lra_push_insn): Likewise.
7799 (lra_push_insn_and_update_insn_regno_info): Likewise.
7800 (lra_pop_insn): Likewise for return type and local "insn".
7801 (push_insns): Likewise for params "from", "to", and local "insn".
7802 (setup_sp_offset): Likewise for params "from", "last" and locals
7804 (lra_process_new_insns): Likewise for params "insn", "before",
7805 "after" and local "last".
7806 (struct sloc): Likewise for field "insn".
7807 (lra_former_scratch_operand_p): Likewise for param "insn".
7808 (remove_scratches): Likewise for locals "insn", "last".
7809 (check_rtl): Likewise for local "insn".
7810 (add_auto_inc_notes): Likewise for param "insn".
7811 (update_inc_notes): Likewise for local "insn".
7812 (lra): Replace NULL_RTX with NULL when referring to insn.
7814 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7816 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7818 (resolve_reg_notes): Likewise.
7819 (resolve_simple_move): Likewise for return type, param "insn", and
7820 locals "insns", "minsn".
7821 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7822 (resolve_use): Likewise.
7823 (resolve_debug): Likewise.
7824 (find_decomposable_shift_zext): Likewise.
7825 (resolve_shift_zext): Likewise for return type, param "insn", and
7826 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7827 (decompose_multiword_subregs): Likewise for local "insn",
7828 "orig_insn", "decomposed_shift", "end".
7830 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7832 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7833 param "insns" from rtx to rtx_insn *.
7835 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7837 (struct iv_to_split): Likewise.
7838 (loop_exit_at_end_p): Likewise for local "insn".
7839 (split_edge_and_insert): Likewise for param "insns".
7840 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7841 and locals "seq", "jump".
7842 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7843 "branch_code"; update invocations of compare_and_jump_seq to
7844 eliminate NULL_RTX in favor of NULL.
7845 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7847 (reset_debug_uses_in_loop): Likewise.
7848 (analyze_insn_to_expand_var): Likewise for param "insn".
7849 (analyze_iv_to_split_insn): Likewise.
7850 (analyze_insns_in_loop): Likewise for local "insn".
7851 (insert_base_initialization): Likewise for param
7852 "insn" and local "seq".
7853 (split_iv): Likewise for param "insn" and local "seq".
7854 (expand_var_during_unrolling): Likewise for param "insn".
7855 (insert_var_expansion_initialization): Likewise for local "seq".
7856 (combine_var_copies_in_loop_exit): Likewise.
7857 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7859 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7860 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7863 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7865 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7867 (iv_analyze_result): Likewise.
7868 (iv_analyze_expr): Likewise.
7871 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7872 local "def_insn" from rtx to rtx_insn *.
7873 (get_biv_step_1): Likewise for local "insn".
7874 (iv_analyze_expr): Likewise for param "insn".
7875 (iv_analyze_def): Likewise for local "insn".
7876 (iv_analyze_op): Likewise for param "insn".
7877 (iv_analyze): Likewise.
7878 (iv_analyze_result): Likewise.
7880 (suitable_set_for_replacement): Likewise.
7881 (simplify_using_initial_values): Likewise for local "insn".
7882 (iv_number_of_iterations): Likewise for param "insn".
7883 (check_simple_exit): Add checked cast to rtx_insn when invoking
7884 iv_number_of_iterations for now (until get_condition is
7887 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7888 "insn" from rtx to rtx_insn *.
7889 (analyze_insns_in_loop): Likewise for local "insn".
7891 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7893 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7895 (struct invariant): Likewise.
7896 (hash_invariant_expr_1): Likewise for param "insn".
7897 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7898 (find_exits): Likewise for local "insn".
7899 (create_new_invariant): Likewise for param "insn".
7900 (check_dependencies): Likewise.
7901 (find_invariant_insn): Likewise.
7902 (record_uses): Likewise.
7903 (find_invariants_insn): Likewise.
7904 (find_invariants_bb): Likewise for local "insn".
7905 (get_pressure_class_and_nregs): Likewise for param "insn".
7906 (calculate_loop_reg_pressure): Likewise for local "insn".
7908 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7910 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7912 (add_test): Likewise for locals "seq", "jump".
7913 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7915 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7917 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7919 (rebuild_jump_labels_chain): Likewise for param "chain".
7921 * cfgexpand.c (pass_expand::execute): Add checked cast to
7922 rtx_insn * when calling rebuild_jump_labels_chain in region where
7923 we know e->insns.r is non-NULL.
7925 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7927 (rebuild_jump_labels): Likewise.
7928 (rebuild_jump_labels_chain): Likewise for param "chain".
7929 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7930 (init_label_info): Likewise for param "f".
7931 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7932 "prev_nonjump_insn".
7933 (mark_all_labels): Likewise for param "f" and locals "insn",
7934 "prev_nonjump_insn".
7936 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7938 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7939 from rtx to rtx_insn *insn.
7940 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7941 (ira_add_allocno_copy): Likewise.
7942 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7944 (ira_create_copy): Likewise.
7945 (ira_add_allocno_copy): Likewise.
7946 (create_bb_allocnos): Likewise for local "insn".
7947 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7948 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7949 process_regs_for_copy for rtx_insn * param.
7950 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7951 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7952 process_regs_for_copy for rtx_insn * param.
7953 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7954 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7955 (record_operand_costs): Likewise.
7956 (scan_one_insn): Likewise for return type, and for param "insn".
7957 (process_bb_for_costs): Likewise for local "insn".
7958 (process_bb_node_for_hard_reg_moves): Likewise.
7959 * ira-emit.c (struct move): Likewise for field "insn".
7960 (create_move): Eliminate use of NULL_RTX when dealing with an
7962 (emit_move_list): Strengthen return type and locals "result",
7963 "insn" from rtx to rtx_insn *insn.
7964 (emit_moves): Likewise for locals "insns", "tmp".
7965 (ira_emit): Likewise for local "insn".
7966 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7968 (find_call_crossed_cheap_reg): Likewise.
7969 (process_bb_node_lives): Likewise for local "insn".
7970 * ira.c (decrease_live_ranges_number): Likewise.
7971 (compute_regs_asm_clobbered): Likewise.
7972 (build_insn_chain): Likewise.
7973 (find_moveable_pseudos): Likewise, also locals "def_insn",
7974 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7975 to rtx_insn **. Add a checked cast when assigning from
7976 "closest_use" into closest_uses array in a region where we know
7977 it's a non-NULL insn.
7978 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7980 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7981 "last_interesting_insn", "uin".
7982 (move_unallocated_pseudos): Likewise for locals "def_insn",
7983 "move_insn", "newinsn".
7985 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7987 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7988 Strengthen locals "done_label", "do_error" from rtx to
7990 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7991 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7993 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7994 "done_label", "do_error" to rtx_code_label * and local "last" to
7996 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7997 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7998 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7999 "after_lopart_neg", "do_overflow", "hipart_different" to
8000 rtx_code_label * and local "last" to rtx_insn *.
8002 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8004 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8005 "insn" and "move_insn" from rtx to rtx_insn *.
8007 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8009 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8011 (cheap_bb_rtx_cost_p): Likewise.
8012 (first_active_insn): Likewise for return type and local "insn".
8013 (last_active_insn): Likewise for return type and locals "insn",
8015 (struct noce_if_info): Likewise for fields "jump", "insn_a",
8017 (end_ifcvt_sequence): Likewise for return type and locals "insn",
8019 (noce_try_move): Likewise for local "seq".
8020 (noce_try_store_flag): Likewise.
8021 (noce_try_store_flag_constants): Likewise.
8022 (noce_try_addcc): Likewise.
8023 (noce_try_store_flag_mask): Likewise.
8024 (noce_try_cmove): Likewise.
8025 (noce_try_minmax): Likewise.
8026 (noce_try_abs): Likewise.
8027 (noce_try_sign_mask): Likewise.
8028 (noce_try_bitop): Likewise.
8029 (noce_can_store_speculate_p): Likewise for local "insn".
8030 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8032 (check_cond_move_block): Likewise for local "insn".
8033 (cond_move_convert_if_block): Likewise.
8034 (cond_move_process_if_block): Likewise for locals "seq",
8036 (noce_find_if_block): Likewise for local "jump".
8037 (merge_if_block): Likewise for local "last".
8038 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8039 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8040 (block_has_only_trap): Likewise for return type and local "trap".
8041 (find_if_case_1): Likewise for local "jump".
8042 (dead_or_predicable): Likewise for locals "head", "end", "jump",
8045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8047 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8048 "last_insn", "loop_end" from rtx to rtx_insn *.
8050 * hw-doloop.c (scan_loop): Likewise for local "insn".
8051 (discover_loop): Likewise for param "tail_insn".
8052 (discover_loops): Likewise for local "tail".
8054 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8055 cast to rtx_insn * when assigning from an rtx local to a
8056 hwloop_info's "last_insn" field.
8058 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8060 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8061 (add_delay_dependencies): Strengthen local "pro" from rtx to
8063 (recompute_todo_spec): Likewise.
8064 (dep_cost_1): Likewise for locals "insn", "used".
8065 (schedule_insn): Likewise for local "dbg".
8066 (schedule_insn): Likewise for locals "pro", "next".
8067 (unschedule_insns_until): Likewise for local "con".
8068 (restore_pattern): Likewise for local "next".
8069 (estimate_insn_tick): Likewise for local "pro".
8070 (resolve_dependencies): Likewise for local "next".
8071 (fix_inter_tick): Likewise.
8072 (fix_tick_ready): Likewise for local "pro".
8073 (add_to_speculative_block): Likewise for locals "check", "twin",
8075 (sched_extend_bb): Likewise for locals "end", "insn".
8076 (init_before_recovery): Likewise for local "x".
8077 (sched_create_recovery_block): Likewise for local "barrier".
8078 (create_check_block_twin): Likewise for local "pro".
8079 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8081 (unlink_bb_notes): Update for change to type of bb_header.
8082 Strengthen locals "prev", "label", "note", "next" from rtx to
8084 (clear_priorities): Likewise for local "pro".
8086 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8088 * gcse.c (struct occr): Strengthen field "insn" from rtx to
8090 (test_insn): Likewise for this global.
8091 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8093 (oprs_anticipatable_p): Likewise.
8094 (oprs_available_p): Likewise.
8095 (insert_expr_in_table): Strengthen param "insn" from rtx to
8097 (hash_scan_set): Likewise.
8098 (hash_scan_clobber): Likewise.
8099 (hash_scan_call): Likewise.
8100 (hash_scan_insn): Likewise.
8101 (compute_hash_table_work): Likewise for local "insn".
8102 (process_insert_insn): Likewise for return type and local "pat".
8103 (insert_insn_end_basic_block): Likewise for locals "new_insn",
8104 "pat", "pat_end", "maybe_cc0_setter".
8105 (pre_edge_insert): Likewise for local "insn".
8106 (pre_insert_copy_insn): Likewise for param "insn".
8107 (pre_insert_copies): Likewise for local "insn".
8108 (struct set_data): Likewise for field "insn".
8109 (single_set_gcse): Likewise for param "insn".
8110 (gcse_emit_move_after): Likewise.
8111 (pre_delete): Likewise for local "insn".
8112 (update_bb_reg_pressure): Likewise for param "from" and local
8114 (should_hoist_expr_to_dom): Likewise for param "from".
8115 (hoist_code): Likewise for local "insn".
8116 (get_pressure_class_and_nregs): Likewise for param "insn".
8117 (calculate_bb_reg_pressure): Likewise for local "insn".
8118 (compute_ld_motion_mems): Likewise.
8120 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8122 * genpeep.c (main): Rename param back from "uncast_ins1" to
8123 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
8126 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8128 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8131 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8132 documentation to state it is only for VSX operations.
8134 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8135 constraint only active if VSX.
8137 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8138 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8141 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8143 * fwprop.c (single_def_use_dom_walker::before_dom_children):
8144 Strengthen local "insn" from rtx to rtx_insn *.
8145 (use_killed_between): Likewise for param "target_insn".
8146 (all_uses_available_at): Likewise for param "target_insn" and
8148 (update_df_init): Likewise for params "def_insn", "insn".
8149 (update_df): Likewise for param "insn".
8150 (try_fwprop_subst): Likewise for param "def_insn" and local
8152 (free_load_extend): Likewise for param "insn".
8153 (forward_propagate_subreg): Likewise for param "def_insn" and
8155 (forward_propagate_asm): Likewise for param "def_insn" and local
8157 (forward_propagate_and_simplify): Likewise for param "def_insn"
8158 and local "use_insn".
8159 (forward_propagate_into): Likewise for locals "def_insn" and
8162 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8164 * function.c (emit_initial_value_sets): Strengthen local "seq"
8165 from rtx to rtx_insn *.
8166 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8168 (instantiate_virtual_regs): Likewise for local "insn".
8169 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8170 (reorder_blocks_1): Likewise for param "insns" and local "insn".
8171 (expand_function_end): Likewise for locals "insn" and "seq".
8172 (epilogue_done): Likewise for local "insn".
8173 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8175 (reposition_prologue_and_epilogue_notes): Likewise for locals
8176 "insn", "last", "note", "first".
8177 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8178 (pass_match_asm_constraints::execute): Likewise for local "insn".
8180 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8182 * output.h (final_scan_insn): Strengthen return type from rtx to
8184 (final_forward_branch_p): Likewise for param.
8185 (current_output_insn): Likewise for this global.
8187 * final.c (rtx debug_insn): Likewise for this variable.
8188 (current_output_insn): Likewise.
8189 (get_attr_length_1): Rename param "insn" to "uncast_insn",
8190 adding "insn" back in as an rtx_insn * with a checked cast, so
8191 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8193 (compute_alignments): Strengthen local "label" from rtx to
8195 (shorten_branches): Rename param from "first" to "uncast_first",
8196 introducing a new local rtx_insn * "first" using a checked cast to
8197 effectively strengthen "first" from rtx to rtx_insn * without
8198 affecting the type signature. Strengthen locals "insn", "seq",
8199 "next", "label" from rtx to rtx_insn *.
8200 (change_scope): Strengthen param "orig_insn" and local "insn" from
8202 (final_start_function): Rename param from "first" to "uncast_first",
8203 introducing a new local rtx_insn * "first" using a checked cast to
8204 effectively strengthen "first" from rtx to rtx_insn * without
8205 affecting the type signature. Strengthen local "insn" from rtx to
8207 (dump_basic_block_info): Strengthen param "insn" from rtx to
8209 (final): Rename param from "first" to "uncast_first",
8210 introducing a new local rtx_insn * "first" using a checked cast to
8211 effectively strengthen "first" from rtx to rtx_insn * without
8212 affecting the type signature. Strengthen locals "insn", "next"
8213 from rtx to rtx_insn *.
8214 (output_alternate_entry_point): Strengthen param "insn" from rtx to
8216 (call_from_call_insn): Strengthen param "insn" from rtx to
8218 (final_scan_insn): Rename param from "insn" to "uncast_insn",
8219 introducing a new local rtx_insn * "insn" using a checked cast to
8220 effectively strengthen "insn" from rtx to rtx_insn * without
8221 affecting the type signature. Strengthen return type and locals
8222 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
8223 now-redundant checked cast to rtx_insn * from both invocations of
8224 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
8225 introducing a local "call_insn" for use when invoking
8226 call_from_call_insn.
8227 (notice_source_line): Strengthen param "insn" from rtx to
8229 (leaf_function_p): Likewise for local "insn".
8230 (final_forward_branch_p): Likewise.
8231 (leaf_renumber_regs): Likewise for param "first".
8232 (rest_of_clean_state): Likewise for locals "insn" and "next".
8233 (self_recursive_call_p): Likewise for param "insn".
8234 (collect_fn_hard_reg_usage): Likewise for local "insn".
8235 (get_call_fndecl): Likewise for param "insn".
8236 (get_call_cgraph_rtl_info): Likewise.
8237 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8238 introducing a new local rtx_insn * "insn" using a checked cast to
8239 effectively strengthen "insn" from rtx to rtx_insn * without
8240 affecting the type signature.
8242 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8243 cast when assigning from param "insn" to current_output_insn.
8244 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8245 so that we can assign it back to current_output_insn.
8247 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8249 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8250 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8251 atmxt540s and atmxt540sreva devices.
8252 * config/avr/avr-tables.opt: Regenerate.
8253 * config/avr/t-multilib: Regenerate.
8254 * doc/avr-mmcu.texi: Regenerate.
8256 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8258 * expr.c (convert_move): Strengthen local "insns" from rtx to
8260 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8261 "top_label" from rtx to rtx_code_label *.
8262 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8264 (emit_single_push_insn): Likewise for locals "prev", "last".
8265 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8266 to rtx_code_label *.
8267 (store_constructor): Likewise for locals "loop_start", "loop_end".
8268 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8270 (expand_expr_real_2): Likewise.
8271 (expand_expr_real_1): Strengthen local "label" from rtx to
8274 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8276 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8277 from rtx to rtx_insn *.
8278 (store_bit_field_1): Likewise.
8279 (extract_bit_field_1): Likewise.
8280 (expand_mult_const): Likewise for local "insns".
8281 (expmed_mult_highpart): Strengthen local "label" from rtx to
8283 (expand_smod_pow2): Likewise.
8284 (expand_sdiv_pow2): Likewise.
8285 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8286 rtx_insn *. Strengthen locals "label", "label1", "label2",
8287 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8288 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8289 (emit_store_flag): Likewise.
8290 (emit_store_flag_force): Strengthen local "label" from rtx to
8292 (do_cmp_and_jump): Likewise for param "label".
8294 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8296 * explow.c (force_reg): Strengthen local "insn" from rtx to
8298 (adjust_stack_1): Likewise.
8299 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8300 "final_label", "available_label", "space_available" from rtx to
8302 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8303 (anti_adjust_stack_and_probe): Likewise.
8305 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8307 * except.h (sjlj_emit_function_exit_after): Strengthen param
8308 "after" from rtx to rtx_insn *. This is only called with
8309 result of get_last_insn (in function.c) so type-change should be
8312 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8313 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8314 to rtx_insn *. These fields are only used from except.c so this
8315 type-change should be self-contained to this patch.
8317 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8318 local "last" from rtx to rtx_insn *.
8319 (dw2_build_landing_pads): Likewise for local "seq".
8320 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8321 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8322 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8324 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8326 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8327 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8328 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8329 referring to an insn. Strengthen local "dispatch_label" from
8330 rtx to rtx_code_label *.
8331 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8333 (expand_eh_return): Strengthen local "around_label" from
8334 rtx to rtx_code_label *.
8335 (convert_to_eh_region_ranges): Strengthen locals "iter",
8336 "last_action_insn", "first_no_action_insn",
8337 "first_no_action_insn_before_switch",
8338 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8340 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8342 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8343 from rtx to rtx_insn *.
8344 (cached_next_real_insn): Likewise.
8345 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8347 (dwarf2out_var_location): Strengthen locals "next_real",
8348 "next_note", "expected_next_loc_note", "last_start", "insn" from
8351 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8353 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8354 from rtx to rtx_insn *.
8355 (create_pseudo_cfg): Likewise for local "insn".
8357 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8359 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8360 from rtx to rtx_insn *.
8361 (df_bb_regno_last_def_find): Likewise.
8363 * df-problems.c (df_rd_bb_local_compute): Likewise.
8364 (df_lr_bb_local_compute): Likewise.
8365 (df_live_bb_local_compute): Likewise.
8366 (df_chain_remove_problem): Likewise.
8367 (df_chain_create_bb): Likewise.
8368 (df_word_lr_bb_local_compute): Likewise.
8369 (df_remove_dead_eq_notes): Likewise for param "insn".
8370 (df_note_bb_compute): Likewise for local "insn".
8371 (simulate_backwards_to_point): Likewise.
8372 (df_md_bb_local_compute): Likewise.
8374 * df-scan.c (df_scan_free_bb_info): Likewise.
8375 (df_scan_start_dump): Likewise.
8376 (df_scan_start_block): Likewise.
8377 (df_install_ref_incremental): Likewise for local "insn".
8378 (df_insn_rescan_all): Likewise.
8379 (df_reorganize_refs_by_reg_by_insn): Likewise.
8380 (df_reorganize_refs_by_insn_bb): Likewise.
8381 (df_recompute_luids): Likewise.
8382 (df_bb_refs_record): Likewise.
8383 (df_update_entry_exit_and_calls): Likewise.
8384 (df_bb_verify): Likewise.
8386 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8388 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8389 "first_note" from rtx to rtx_insn *.
8390 (get_node_of_insn): Likewise for param 2 "insn".
8391 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8393 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8395 (mem_write_insn_p): Likewise.
8396 (mem_access_insn_p): Likewise.
8397 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8398 (def_has_ccmode_p): Likewise for param "insn".
8399 (add_cross_iteration_register_deps): Likewise for locals
8400 "def_insn" and "use_insn".
8401 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8402 (build_intra_loop_deps): Likewise for local "src_insn".
8403 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8405 (get_node_of_insn): Likewise for param "insn".
8407 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8409 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8410 (deletable_insn_p): Strengthen param "insn" from rtx to
8411 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8412 find_call_stack_args, since this is guarded by CALL_P (insn).
8413 (marked_insn_p): Strengthen param "insn" from rtx to
8415 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8416 invoking find_call_stack_args, since this is guarded by
8418 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8419 rtx_insn *; we know this is an insn since this was called by
8421 (mark_nonreg_stores_2): Likewise.
8422 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8424 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8425 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8427 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8428 from rtx to rtx_insn *.
8429 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8431 (delete_unmarked_insns): Likewise for locals "insn", "next".
8432 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8433 (mark_reg_dependencies): Likewise for param "insn".
8434 (rest_of_handle_ud_dce): Likewise for local "insn".
8435 (word_dce_process_block): Likewise.
8436 (dce_process_block): Likewise.
8438 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8440 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8441 from rtx to rtx_insn *.
8442 (struct change_cc_mode_args): Likewise for field "insn".
8443 (this_insn): Strengthen from rtx to rtx_insn *.
8444 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8446 (validate_canon_reg): Strengthen param "insn" from rtx to
8448 (canon_reg): Likewise.
8449 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8451 (record_jump_equiv): Strengthen param "insn" from rtx to
8453 (try_back_substitute_reg): Likewise, also for locals "prev",
8455 (find_sets_in_insn): Likewise for param "insn".
8456 (canonicalize_insn): Likewise.
8457 (cse_insn): Likewise. Add a checked cast.
8458 (invalidate_from_clobbers): Likewise for param "insn".
8459 (invalidate_from_sets_and_clobbers): Likewise.
8460 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8462 (cse_prescan_path): Strengthen local "insn" from rtx to
8464 (cse_extended_basic_block): Likewise for locals "insn" and
8466 (cse_main): Likewise for param "f".
8467 (check_for_label_ref): Likewise for local "insn".
8468 (set_live_p): Likewise for second param ("insn").
8469 (insn_live_p): Likewise for first param ("insn") and for local
8471 (cse_change_cc_mode_insn): Likewise for first param "insn".
8472 (cse_change_cc_mode_insns): Likewise for first and second params
8474 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8476 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8479 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8481 Anna Tikhonova <anna.tikhonova@intel.com>
8482 Ilya Tocar <ilya.tocar@intel.com>
8483 Andrey Turetskiy <andrey.turetskiy@intel.com>
8484 Ilya Verbin <ilya.verbin@intel.com>
8485 Kirill Yukhin <kirill.yukhin@intel.com>
8486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8488 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8490 * config/i386/sse.md
8491 (define_mode_iterator VI248_AVX2): Delete.
8492 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8493 (define_mode_iterator VI48_AVX2): Ditto.
8494 (define_insn <shift_insn><mode>3): Delete.
8495 (define_insn "<shift_insn><mode>3<mask_name>" with
8496 VI2_AVX2_AVX512BW): New.
8497 (define_insn "<shift_insn><mode>3<mask_name>" with
8500 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8501 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8502 Anna Tikhonova <anna.tikhonova@intel.com>
8503 Ilya Tocar <ilya.tocar@intel.com>
8504 Andrey Turetskiy <andrey.turetskiy@intel.com>
8505 Ilya Verbin <ilya.verbin@intel.com>
8506 Kirill Yukhin <kirill.yukhin@intel.com>
8507 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8509 * config/i386/sse.md
8510 (define_mode_iterator VI4F_BRCST32x2): New.
8511 (define_mode_attr 64x2_mode): Ditto.
8512 (define_mode_attr 32x2mode): Ditto.
8513 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8514 with VI4F_BRCST32x2): Ditto.
8515 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8516 with V16FI mode iterator): Ditto.
8517 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8519 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8520 with VI8F_BRCST64x2): Ditto.
8522 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8524 Anna Tikhonova <anna.tikhonova@intel.com>
8525 Ilya Tocar <ilya.tocar@intel.com>
8526 Andrey Turetskiy <andrey.turetskiy@intel.com>
8527 Ilya Verbin <ilya.verbin@intel.com>
8528 Kirill Yukhin <kirill.yukhin@intel.com>
8529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8531 * config/i386/sse.md
8532 (define_mode_iterator VI8_AVX512VL): New.
8533 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8535 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8537 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8538 (define_mode_iterator V48_AVX512VL): New.
8539 (define_mode_iterator V12_AVX512VL): Ditto.
8540 (define_insn <avx512>_load<mode>_mask): Split into two similar
8541 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8542 Refactor output template.
8543 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8545 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8547 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8549 (reg_available_p): Likewise for param "insn".
8550 (insert_set_in_table): Likewise.
8551 (hash_scan_set): Likewise.
8552 (hash_scan_insn): Likewise.
8553 (make_set_regs_unavailable): Likewise.
8554 (compute_hash_table_work): Likewise for local "insn".
8555 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8557 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8558 (try_replace_reg): Likewise.
8559 (find_avail_set): Likewise.
8560 (cprop_jump): Likewise for params "setcc", "jump".
8561 (constprop_register): Likewise for param "insn".
8562 (cprop_insn): Likewise.
8563 (do_local_cprop): Likewise.
8564 (local_cprop_pass): Likewise for local "insn".
8565 (bypass_block): Likewise for params "setcc" and "jump".
8566 (bypass_conditional_jumps): Likewise for locals "setcc" and
8568 (one_cprop_pass): Likewise for local "insn".
8570 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8572 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8573 from rtx to rtx_insn *.
8574 (struct comparison): Likewise, also for field "prev_clobber".
8575 (conforming_compare): Likewise for param "insn".
8576 (arithmetic_flags_clobber_p): Likewise.
8577 (find_flags_uses_in_insn): Likewise.
8578 (find_comparison_dom_walker::before_dom_children): Likewise for
8579 locals "insn", "next", "last_clobber".
8580 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8582 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8584 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8585 "insn" from rtx to rtx_insn *.
8586 (single_set_for_csa): Likewise for param "insn".
8587 (record_one_stack_ref): Likewise.
8588 (try_apply_stack_adjustment): Likewise.
8589 (struct record_stack_refs_data): Likewise for field "insn".
8590 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8591 (prev_active_insn_bb): Likewise for return type and param "insn".
8592 (next_active_insn_bb): Likewise.
8593 (force_move_args_size_note): Likewise for params "prev" and "last"
8594 and locals "test", "next_candidate", "prev_candidate".
8595 (combine_stack_adjustments_for_block): Strengthen locals
8596 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8599 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8601 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8602 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8603 (subst_insn): Likewise for this variable.
8604 (added_links_insn): Likewise.
8605 (struct insn_link): Likewise for field "insn".
8606 (alloc_insn_link): Likewise for param "insn".
8607 (struct undobuf): Likewise for field "other_insn".
8608 (find_single_use): Likewise for param "insn" and local "next".
8609 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8610 (delete_noop_moves): Likewise for locals "insn", "next".
8611 (create_log_links): Likewise for locals "insn", "use_insn".
8612 Strengthen local "next_use" from rtx * to rtx_insn **.
8613 (insn_a_feeds_b): Likewise for params "a", "b".
8614 (combine_instructions): Likewise for param "f" and locals "insn",
8615 "next", "prev", "first", "last_combined_insn", "link", "link1",
8616 "temp". Replace use of NULL_RTX with NULL when referring to
8618 (setup_incoming_promotions): Likewise for param "first"
8619 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8620 (can_combine_p): Likewise for params "insn", "i3", "pred",
8621 "pred2", "succ", "succ2" and for local "p".
8622 (combinable_i3pat): Likewise for param "i3".
8623 (cant_combine_insn_p): Likewise for param "insn".
8624 (likely_spilled_retval_p): Likewise.
8625 (adjust_for_new_dest): Likewise.
8626 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8627 (try_combine): Likewise for return type and for params "i3", "i2",
8628 "i1", "i0", "last_combined_insn", and for locals "insn",
8629 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8630 "i0_insn". Eliminate local "tem" in favor of new locals
8631 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8632 checked cast for now to rtx_insn * on the return type of
8633 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8635 (find_split_point): Strengthen param "insn" from rtx to
8637 (simplify_set): Likewise for local "other_insn".
8638 (recog_for_combine): Likewise for param "insn".
8639 (record_value_for_reg): Likewise.
8640 (record_dead_and_set_regs_1): Likewise for local
8642 (record_dead_and_set_regs): Likewise for param "insn".
8643 (record_promoted_value): Likewise.
8644 (check_promoted_subreg): Likewise.
8645 (get_last_value_validate): Likewise.
8646 (reg_dead_at_p): Likewise.
8647 (move_deaths): Likewise for param "to_insn".
8648 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8649 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8650 in favor of new locals "tem_note" and "tem_insn", the latter being
8652 (distribute_links): Strengthen locals "place", "insn" from rtx to
8655 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8657 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8659 (can_delete_label_p): Require a const rtx_code_label * rather than
8661 (delete_insn): Add checked cast to rtx_code_label * when we know
8662 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8664 (delete_insn_chain): Strengthen locals "prev" and "current" from
8665 rtx to rtx_insn *. Add a checked cast when assigning from
8666 "finish" (strengthening the params will come later). Add a
8667 checked cast to rtx_note * in region where we know
8669 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8671 (compute_bb_for_insn): Likewise.
8672 (free_bb_for_insn): Likewise for local "insn".
8673 (compute_bb_for_insn): Likewise.
8674 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8675 local "insn" from rtx to rtx_insn *
8676 (flow_active_insn_p): Require a const rtx_insn * rather than a
8678 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8680 (can_fallthru): Likewise for locals "insn" and "insn2".
8681 (bb_note): Likewise for local "note".
8682 (first_insn_after_basic_block_note): Likewise for local "note" and
8684 (rtl_split_block): Likewise for locals "insn" and "next".
8685 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8687 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8688 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8690 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8691 them), "kill_from", "barrier", "new_insn".
8692 (patch_jump_insn): Likewise for params "insn", "old_label".
8693 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8694 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8695 "old_label", "new_label".
8696 (rtl_tidy_fallthru_edge): Likewise for local "q".
8697 (rtl_split_edge): Likewise for locals "before", "last".
8698 (commit_one_edge_insertion): Likewise for locals "before",
8699 "after", "insns", "tmp", "last", adding a checked cast where
8700 currently necessary.
8701 (commit_edge_insertions): Likewise.
8702 (rtl_dump_bb): Likewise for locals "insn", "last".
8703 (print_rtl_with_bb): Likewise for local "x".
8704 (rtl_verify_bb_insns): Likewise for local "x".
8705 (rtl_verify_bb_pointers): Likewise for local "insn".
8706 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8708 (rtl_verify_fallthru): Likewise for local "insn".
8709 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8710 (purge_dead_edges): Likewise for local "insn".
8711 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8712 (skip_insns_after_block): Likewise for return type and for locals
8713 "insn", "last_insn", "next_head", "prev".
8714 (record_effective_endpoints): Likewise for locals "next_insn",
8716 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8717 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8718 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8719 (duplicate_insn_chain): For now, add checked cast from rtx to
8720 rtx_insn * when returning insn.
8721 (cfg_layout_duplicate_bb): Likewise for local "insn".
8722 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8724 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8725 (rtl_block_empty_p): Likewise.
8726 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8727 "split_point", "last".
8728 (rtl_block_ends_with_call_p): Likewise for local "insn".
8729 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8731 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8732 "split_at_insn" from rtx to rtx_insn *.
8733 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8734 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8735 to const rtx_insn *.
8736 (rtl_account_profile_record): Likewise.
8738 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8740 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8742 (average_num_loop_insns): Likewise.
8743 (init_set_costs): Likewise for local "seq".
8744 (seq_cost): Likewise for param "seq", from const_rtx to const
8747 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8749 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8752 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8754 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8755 "f1" and "f2" from rtx * to rtx_insn **.
8756 (flow_find_head_matching_sequence): Likewise.
8758 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8759 "cbranch_insn" from rtx to rtx_insn *.
8760 (thread_jump): Likewise for local "insn".
8761 (try_forward_edges): Likewise for local "last".
8762 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8763 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8765 (can_replace_by): Likewise for params "i1", "i2".
8766 (old_insns_match_p): Likewise.
8767 (merge_notes): Likewise.
8768 (walk_to_nondebug_insn): Likewise for param "i1".
8769 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8770 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8771 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8772 (flow_find_head_matching_sequence): Strengthen params "f1" and
8773 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8774 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8776 (outgoing_edges_match): Likewise for locals "last1", "last2".
8777 (try_crossjump_to_edge): Likewise for local "insn".
8778 Replace call to for_each_rtx with for_each_rtx_in_insn.
8780 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8781 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8782 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8783 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8784 (try_optimize_cfg): Strengthen local "last" from rtx to
8786 (delete_dead_jumptables): Likewise for locals "insn", "next",
8789 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8790 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8791 "rtx else_first_tail", to reflect the basic-block.h changes above.
8793 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8795 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8797 (purge_dead_tablejump_edges): Likewise.
8798 (find_bb_boundaries): Likewise for locals "insn", "end",
8799 "flow_transfer_insn".
8801 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8803 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8804 "ins" and "prev" from rtx to rtx_insn *.
8806 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8808 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8810 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8811 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8813 (load_register_parameters): Likewise for local "before_arg".
8814 (check_sibcall_argument_overlap): Likewise for param "insn".
8815 (expand_call): Likewise for locals "normal_call_insns",
8816 "tail_call_insns", "insns", "before_call", "after_args",
8817 "before_arg", "last", "prev". Strengthen one of the "last" from
8818 rtx to rtx_call_insn *.
8819 (fixup_tail_calls): Strengthen local "insn" from rtx to
8821 (emit_library_call_value_1): Likewise for locals "before_call" and
8824 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8826 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8827 and "last" from rtx to rtx_insn *.
8828 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8829 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8831 (expand_errno_check): Strengthen local "lab" from rtx to
8833 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8835 (expand_builtin_mathfn_2): Likewise.
8836 (expand_builtin_mathfn_ternary): Likewise.
8837 (expand_builtin_mathfn_3): Likewise.
8838 (expand_builtin_interclass_mathfn): Likewise for local "last".
8839 (expand_builtin_int_roundingfn): Likewise for local "insns".
8840 (expand_builtin_int_roundingfn_2): Likewise.
8841 (expand_builtin_strlen): Likewise for local "before_strlen".
8842 (expand_builtin_strncmp): Likewise for local "seq".
8843 (expand_builtin_signbit): Likewise for local "last".
8844 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8845 from rtx to rtx_code_label *.
8846 (expand_stack_restore): Strengthen local "prev" from rtx to
8849 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8851 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8853 (struct btr_def_s): Likewise.
8854 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8856 (add_btr_def): Likewise.
8857 (new_btr_user): Likewise.
8858 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8860 (link_btr_uses): Likewise.
8861 (move_btr_def): Likewise for locals "insp", "old_insn",
8862 "new_insn". Add checked cast to rtx_insn * for now on result of
8864 (can_move_up): Strengthen param "insn" from const_rtx to
8867 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8869 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8871 (get_uncond_jump_length): Likewise for locals "label", "jump".
8872 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8874 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8875 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8876 (find_jump_block): Likewise for local "insn".
8877 (fix_crossing_conditional_branches): Likewise for locals
8878 "old_jump", "new_jump".
8879 (fix_crossing_unconditional_branches): Likewise for locals
8880 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8881 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8883 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8885 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8887 (struct mem_insn): Likewise for field "insn".
8888 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8889 (reg_next_inc_use): Likewise.
8890 (reg_next_def): Likewise.
8891 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8892 from rtx to rtx_insn *.
8893 (move_insn_before): Likewise for param "next_insn" and local "insns".
8894 (attempt_change): Likewise for local "mov_insn".
8895 (try_merge): Likewise for param "last_insn".
8896 (get_next_ref): Likewise for return type and local "insn".
8897 Strengthen param "next_array" from rtx * to rtx_insn **.
8898 (parse_add_or_inc): Strengthen param "insn" from rtx to
8900 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8902 (merge_in_block): Likewise for locals "insn", "curr",
8904 (pass_inc_dec::execute): Update allocations of the arrays to
8905 reflect the stronger types.
8907 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8909 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8910 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8911 from rtx to rtx_code_label *.
8913 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8915 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8918 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8920 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8921 generated a warning and prevented bootstrapping the compiler.
8923 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8925 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8928 * jump.c (delete_related_insns): Likewise, also for locals "next"
8931 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8933 * genautomata.c (output_internal_insn_latency_func): When writing
8934 the function "internal_insn_latency" to insn-automata.c,
8935 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8936 allowing the optional guard function of (define_bypass) clauses to
8937 expect a pair of rtx_insn *, rather than a pair of rtx.
8938 (output_insn_latency_func): When writing the function
8939 "insn_latency", add an "uncast_" prefix to params "insn" and
8940 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8941 using checked casts from the params, thus enabling the above
8942 change to the generated "internal_insn_latency" function.
8944 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8946 PR tree-optimization/62091
8947 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8948 handle correctly arrays.
8949 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8951 (record_known_type): Walk into inner type.
8952 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8953 condition on no type changes.
8955 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8957 * genattrtab.c (write_attr_get): Within the generated get_attr_
8958 functions, rename param "insn" to "uncast_insn" and reintroduce
8959 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8960 is an rtx_insn * within insn-attrtab.c
8962 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8964 * output.h (peephole): Strengthen return type from rtx to
8966 * rtl.h (delete_for_peephole): Likewise for both params.
8967 * genpeep.c (main): In generated "peephole" function, strengthen
8968 return type and local "insn" from rtx to rtx_insn *. For now,
8969 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8970 rtx_insn *, with a checked cast.
8971 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8972 locals "insn", "next", "prev" from rtx to rtx_insn *.
8974 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8976 PR tree-optimization/62112
8977 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8978 * gimple-iterator.h (gsi_replace): Return bool.
8979 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8980 moved from ref_may_alias_global_p.
8981 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8983 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8984 (stmt_kills_ref_p_1): Rename...
8985 (stmt_kills_ref_p): ... to this.
8986 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8987 stmt_kills_ref_p): Declare.
8988 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8989 Move the self-assignment case...
8990 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8992 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8994 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8996 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8997 "after". For now, don't strengthen param "trial", which requires
8998 adding checked casts when returning it.
9000 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9002 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9003 "label" from rtx to rtx_code_label *. Strengthen param 1 of
9004 "var_location" hook from rtx to rtx_insn *.
9005 (debug_nothing_rtx): Delete in favor of...
9006 (debug_nothing_rtx_code_label): New prototype.
9007 (debug_nothing_rtx_rtx): Delete unused prototype.
9008 (debug_nothing_rtx_insn): New prototype.
9010 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9011 invoking debug_hooks->var_location (in two places, one in a NOTE
9012 case of a switch statement, the other guarded by a CALL_P
9013 conditional. Add checked cast to rtx_code_label * when invoking
9014 debug_hooks->label (within CODE_LABEL case of switch statement).
9016 * dbxout.c (dbx_debug_hooks): Update "label" hook from
9017 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9018 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9019 (xcoff_debug_hooks): Likewise.
9020 * debug.c (do_nothing_debug_hooks): Likewise.
9021 (debug_nothing_rtx): Delete in favor of...
9022 (debug_nothing_rtx_insn): New function.
9023 (debug_nothing_rtx_rtx): Delete unused function.
9024 (debug_nothing_rtx_code_label): New function.
9025 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9026 debug_nothing_rtx to debug_nothing_rtx_code_label.
9027 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9029 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9030 debug_nothing_rtx to debug_nothing_rtx_insn.
9031 (sdbout_label): Strengthen param "insn" from rtx to
9033 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9034 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9035 "var_location" hook from debug_nothing_rtx to
9036 debug_nothing_rtx_insn.
9038 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9040 * recog.h (insn_output_fn): Update this function typedef to match
9041 the changes below to the generated output functions, strengthening
9042 the 2nd param from rtx to rtx_insn *.
9044 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9045 insn when invoking an output function, to match the new signature
9046 of insn_output_fn with a stronger second param.
9048 * genconditions.c (write_header): In the generated code for
9049 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9050 to match the other changes in this patch.
9052 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9053 the generated "gen_" functions from rtx to rtx_insn * within their
9056 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9057 the subfunctions within the generated "recog_", "split", "peephole2"
9058 function trees from rtx to rtx_insn *. For now, the top-level
9059 generated functions ("recog", "split", "peephole2") continue to
9060 take a plain rtx for "insn", to avoid introducing dependencies on
9061 other patches. Rename this 2nd param from "insn" to
9062 "uncast_insn", and reintroduce "insn" as a local variable of type
9063 rtx_insn *, initialized at the top of the generated function with
9064 a checked cast on "uncast_insn".
9065 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9066 the generated "gen_" functions from rtx to rtx_insn * within their
9069 * genoutput.c (process_template): Strengthen the 2nd param within
9070 the generated "output_" functions "insn" from rtx to rtx_insn *.
9072 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9074 * tree-profile.c (tree_profiling): Skip external functions
9075 when doing coverage instrumentation.
9076 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9078 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9080 * config/rs6000/altivec.h (vec_cpsgn): New #define.
9081 (vec_mergee): Likewise.
9082 (vec_mergeo): Likewise.
9083 (vec_cntlz): Likewise.
9084 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9085 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9086 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9088 * doc/extend.texi: Document various forms of vec_cpsgn,
9089 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9090 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9091 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9092 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9093 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9095 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9097 * config/rs6000/rs6000.c (context.h): New include.
9098 (tree-pass.h): Likewise.
9099 (make_pass_analyze_swaps): New decl.
9100 (rs6000_option_override): Register pass_analyze_swaps.
9101 (swap_web_entry): New subsclass of web_entry_base (df.h).
9102 (special_handling_values): New enum.
9103 (union_defs): New function.
9104 (union_uses): Likewise.
9105 (insn_is_load_p): Likewise.
9106 (insn_is_store_p): Likewise.
9107 (insn_is_swap_p): Likewise.
9108 (rtx_is_swappable_p): Likewise.
9109 (insn_is_swappable_p): Likewise.
9110 (chain_purpose): New enum.
9111 (chain_contains_only_swaps): New function.
9112 (mark_swaps_for_removal): Likewise.
9113 (swap_const_vector_halves): Likewise.
9114 (adjust_subreg_index): Likewise.
9115 (permute_load): Likewise.
9116 (permute_store): Likewise.
9117 (handle_special_swappables): Likewise.
9118 (replace_swap_with_copy): Likewise.
9119 (dump_swap_insn_table): Likewise.
9120 (rs6000_analyze_swaps): Likewise.
9121 (pass_data_analyze_swaps): New pass_data.
9122 (pass_analyze_swaps): New rtl_opt_pass.
9123 (make_pass_analyze_swaps): New function.
9124 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9126 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9128 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9129 type from rtx to rtx_insn *.
9130 (create_copy_of_insn_rtx): Likewise.
9131 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9132 (create_copy_of_insn_rtx): Likewise, also for local "res".
9134 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9136 * rtl.h (find_first_parameter_load): Strengthen return type from
9138 * rtlanal.c (find_first_parameter_load): Strengthen return type
9139 from rtx to rtx_insn *. Add checked cast for now, to postpone
9140 strengthening the params.
9142 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9145 * diagnostic.c: Set default caret.
9146 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9148 * diagnostic.h (struct diagnostic_context):
9150 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9152 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9153 (sel_bb_head): Strengthen return type insn_t (currently just an
9155 (sel_bb_end): Likewise.
9157 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9158 (sel_bb_head): Strengthen return type and local "head" from
9159 insn_t (currently just an rtx) to rtx_insn *.
9160 (sel_bb_end): Likewise for return type.
9161 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9164 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9166 * basic-block.h (get_last_bb_insn): Strengthen return type from
9168 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9171 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9174 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9176 (diagnostic_report_diagnostic): ... from here.
9177 * toplev.c (general_init): Move code to c-family.
9179 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9181 * df.h (web_entry_base): Replace existing struct web_entry with a
9182 new class web_entry_base with only the predecessor member.
9183 (unionfind_root): Remove declaration and move to class member.
9184 (unionfind_union): Remove declaration and move to friend
9186 (union_defs): Remove declaration.
9187 * web.c (web_entry_base::unionfind_root): Modify to be member
9188 function and adjust accessors.
9189 (unionfind_union): Modify to be friend function and adjust
9191 (web_entry): New subclass of web_entry_base containing the reg
9193 (union_match_dups): Modify for struct -> class changes.
9194 (union_defs): Likewise.
9195 (entry_register): Likewise.
9196 (pass_web::execute): Likewise.
9198 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
9200 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9201 builtin define __VEC_ELEMENT_REG_ORDER__.
9203 2014-08-20 Martin Jambor <mjambor@suse.cz>
9204 Wei Mi <wmi@google.com>
9208 * tree-ssa-operands.c (update_stmt_operands): Remove
9209 MODIFIED_NORETURN_CALLS.
9210 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9211 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9212 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9213 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9214 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9215 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9216 (gimple_call_set_ctrl_altering): New func.
9217 (gimple_call_ctrl_altering_p): Ditto.
9218 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9219 (make_blocks): Use gimple_call_initialize_ctrl_altering.
9220 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9221 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9222 remove MODIFIED_NORETURN_CALLS.
9224 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9226 * coverage.c (coverage_compute_profile_id): Return non-0;
9227 also handle symbols with unique name.
9228 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9230 2014-08-20 Steve Ellcey <sellcey@mips.com>
9233 * doc/sourcebuild.texi (non_strict_align): New.
9235 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9237 * cgraphunit.c (ipa_passes, compile): Reshedule
9238 symtab_remove_unreachable_nodes passes; update comments.
9239 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9240 TODO_remove_functions before the pass; the functions ought to be
9242 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9243 TODO_remove_functions.
9244 * passes.c (pass_data_early_local_passes): Do not schedule function
9246 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9248 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9251 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9252 before setting the option.
9253 * diagnostic.c (diagnostic_classify_diagnostic): Record
9254 command-line status.
9256 2014-08-20 Richard Biener <rguenther@suse.de>
9259 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9260 to build uint{16,32,64}_type_node.
9262 2014-08-20 Terry Guo <terry.guo@arm.com>
9264 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9265 with immediate_operand.
9267 2014-08-20 David Malcolm <dmalcolm@redhat.com>
9269 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9270 "insn" from an as_a to a safe_as_a, for the case when "insn" is
9273 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9275 PR preprocessor/51303
9276 * incpath.c (remove_duplicates): Use cpp_warning.
9278 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9282 * doc/options.texi (CPP): Document it.
9283 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9284 * optc-gen.awk: Handle CPP.
9285 * opth-gen.awk: Likewise.
9287 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9289 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9291 (duplicate_insn_chain): Likewise.
9292 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9293 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9294 checked cast for now (until we can strengthen the params in the
9296 (duplicate_insn_chain): Likewise.
9298 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9300 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9302 (prev_cc0_setter): Likewise.
9304 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9305 rtx_insn *, adding checked casts for now as necessary.
9306 (prev_cc0_setter): Likewise.
9308 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9310 * expr.h (emit_move_insn): Strengthen return type from rtx to
9312 (emit_move_insn_1): Likewise.
9313 (emit_move_complex_push): Likewise.
9314 (emit_move_complex_parts): Likewise.
9316 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9317 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9319 (emit_move_complex_push): Strengthen return type from rtx to
9321 (emit_move_complex): Likewise, also for local "ret".
9322 (emit_move_ccmode): Likewise.
9323 (emit_move_multi_word): Likewise for return type and locals
9325 (emit_move_insn_1): Likewise for return type and locals "result",
9327 (emit_move_insn): Likewise for return type and local "last_insn".
9328 (compress_float_constant): Likewise.
9330 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9332 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9333 from rtx to rtx_insn *.
9335 * rtl.h (emit_insn_before): Likewise.
9336 (emit_insn_before_noloc): Likewise.
9337 (emit_insn_before_setloc): Likewise.
9338 (emit_jump_insn_before): Likewise.
9339 (emit_jump_insn_before_noloc): Likewise.
9340 (emit_jump_insn_before_setloc): Likewise.
9341 (emit_call_insn_before): Likewise.
9342 (emit_call_insn_before_noloc): Likewise.
9343 (emit_call_insn_before_setloc): Likewise.
9344 (emit_debug_insn_before): Likewise.
9345 (emit_debug_insn_before_noloc): Likewise.
9346 (emit_debug_insn_before_setloc): Likewise.
9347 (emit_label_before): Likewise.
9348 (emit_insn_after): Likewise.
9349 (emit_insn_after_noloc): Likewise.
9350 (emit_insn_after_setloc): Likewise.
9351 (emit_jump_insn_after): Likewise.
9352 (emit_jump_insn_after_noloc): Likewise.
9353 (emit_jump_insn_after_setloc): Likewise.
9354 (emit_call_insn_after): Likewise.
9355 (emit_call_insn_after_noloc): Likewise.
9356 (emit_call_insn_after_setloc): Likewise.
9357 (emit_debug_insn_after): Likewise.
9358 (emit_debug_insn_after_noloc): Likewise.
9359 (emit_debug_insn_after_setloc): Likewise.
9360 (emit_label_after): Likewise.
9361 (emit_insn): Likewise.
9362 (emit_debug_insn): Likewise.
9363 (emit_jump_insn): Likewise.
9364 (emit_call_insn): Likewise.
9365 (emit_label): Likewise.
9366 (gen_clobber): Likewise.
9367 (emit_clobber): Likewise.
9368 (gen_use): Likewise.
9369 (emit_use): Likewise.
9372 (emit_barrier_before): Strengthen return type from rtx to
9374 (emit_barrier_after): Likewise.
9375 (emit_barrier): Likewise.
9377 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9378 from rtx to rtx_insn *. Add checked casts for now when converting
9379 "last" from rtx to rtx_insn *.
9380 (emit_insn_before_noloc): Likewise for return type.
9381 (emit_jump_insn_before_noloc): Likewise.
9382 (emit_call_insn_before_noloc): Likewise.
9383 (emit_debug_insn_before_noloc): Likewise.
9384 (emit_barrier_before): Strengthen return type and local "insn"
9385 from rtx to rtx_barrier *.
9386 (emit_label_before): Strengthen return type from rtx to
9387 rtx_insn *. Add checked cast for now when returning param
9388 (emit_pattern_after_noloc): Strengthen return type from rtx to
9389 rtx_insn *. Add checked casts for now when converting "last" from
9391 (emit_insn_after_noloc): Strengthen return type from rtx to
9393 (emit_jump_insn_after_noloc): Likewise.
9394 (emit_call_insn_after_noloc): Likewise.
9395 (emit_debug_insn_after_noloc): Likewise.
9396 (emit_barrier_after): Strengthen return type from rtx to
9398 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9399 Add checked cast for now when converting "label" from rtx to
9401 (emit_pattern_after_setloc): Strengthen return type from rtx to
9402 rtx_insn *. Add checked casts for now when converting "last" from
9404 (emit_pattern_after): Strengthen return type from rtx to
9406 (emit_insn_after_setloc): Likewise.
9407 (emit_insn_after): Likewise.
9408 (emit_jump_insn_after_setloc): Likewise.
9409 (emit_jump_insn_after): Likewise.
9410 (emit_call_insn_after_setloc): Likewise.
9411 (emit_call_insn_after): Likewise.
9412 (emit_debug_insn_after_setloc): Likewise.
9413 (emit_debug_insn_after): Likewise.
9414 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9415 when converting "last" from rtx to rtx_insn *.
9416 (emit_pattern_before): Strengthen return type from rtx to
9418 (emit_insn_before_setloc): Likewise.
9419 (emit_insn_before): Likewise.
9420 (emit_jump_insn_before_setloc): Likewise.
9421 (emit_jump_insn_before): Likewise.
9422 (emit_call_insn_before_setloc): Likewise.
9423 (emit_call_insn_before): Likewise.
9424 (emit_debug_insn_before_setloc): Likewise.
9425 (emit_debug_insn_before): Likewise.
9426 (emit_insn): Strengthen return type and locals "last", "insn",
9427 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9428 within cases where we know we have an insn.
9429 (emit_debug_insn): Likewise.
9430 (emit_jump_insn): Likewise.
9431 (emit_call_insn): Strengthen return type and local "insn" from rtx
9433 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9434 a checked cast to rtx_insn * for now on "label".
9435 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9436 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9437 (emit_use): Likewise.
9438 (gen_use): Likewise, also for local "seq".
9439 (emit): Likewise for return type and local "insn".
9440 (rtx_insn): Likewise for return type and local "new_rtx".
9442 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9443 from rtx to rtx_barrier *.
9445 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9446 changed return type from rtx to rtx_insn *, we must update
9447 "emit_fn" type, and this in turn means updating...
9448 (frame_insn): ...this. Strengthen return type from rtx to
9449 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9451 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9453 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9454 rtx to rtx_jump_table_data *. Also for local.
9455 * rtl.h (emit_jump_table_data): Likewise.
9457 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9459 * basic-block.h (create_basic_block_structure): Strengthen third
9460 param "bb_note" from rtx to rtx_note *.
9461 * rtl.h (emit_note_before): Strengthen return type from rtx to
9463 (emit_note_after): Likewise.
9464 (emit_note): Likewise.
9465 (emit_note_copy): Likewise. Also, strengthen param similarly.
9466 * function.h (struct rtl_data): Strengthen field
9467 "x_stack_check_probe_note" from rtx to rtx_note *.
9469 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9470 from rtx to rtx_note *.
9471 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9472 "bb_note" from rtx to rtx_note *.
9473 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9474 when calling emit_note_copy.
9475 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9477 (emit_note_after): Likewise.
9478 (emit_note_before): Likewise.
9479 (emit_note_copy): Likewise. Also, strengthen param similarly.
9480 (emit_note): Likewise.
9481 * except.c (emit_note_eh_region_end): Likewise for return type.
9482 Strengthen local "next" from rtx to rtx_insn *.
9483 (convert_to_eh_region_ranges): Strengthen local "note"
9484 from rtx to rtx_note *.
9485 * final.c (change_scope): Likewise.
9486 (reemit_insn_block_notes): Likewise, for both locals named "note".
9487 Also, strengthen local "insn" from rtx to rtx_insn *.
9488 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9490 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9491 strengthen local "seq" from rtx to rtx_insn *.
9492 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9494 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9496 (get_bb_note_from_pool): Strengthen return type from rtx to
9498 (sel_create_basic_block): Strengthen local "new_bb_note" from
9499 insn_t to rtx_note *.
9500 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9501 "note" from rtx to rtx_note *.
9502 (emit_notes_in_bb): Likewise.
9504 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9506 * function.h (struct rtl_data): Strengthen field
9507 "x_parm_birth_insn" from rtx to rtx_insn *.
9508 * function.c (struct assign_parm_data_all): Strengthen fields
9509 "first_conversion_insn" and "last_conversion_insn" from rtx to
9512 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9514 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9515 to rtx_insn *; also for local "var_end_seq".
9516 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9517 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9519 (expand_gimple_cond): Likewise for locals "last2" and "last".
9520 (mark_transaction_restart_calls): Likewise for local "insn".
9521 (expand_gimple_stmt): Likewise for return type and locals "last"
9523 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9524 (avoid_complex_debug_insns): Likewise for param "insn".
9525 (expand_debug_locations): Likewise for locals "insn", "last",
9526 "prev_insn" and "insn2".
9527 (expand_gimple_basic_block): Likewise for local "last".
9528 (construct_exit_block): Likewise for locals "head", "end",
9530 (pass_expand::execute): Likewise for locals "var_seq",
9531 "var_ret_seq", "next".
9533 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9535 * asan.h (asan_emit_stack_protection): Strengthen return type from
9537 * asan.c (asan_emit_stack_protection): Likewise. Add local
9538 "insns" to hold the return value.
9540 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9542 * basic-block.h (bb_note): Strengthen return type from rtx to
9544 * sched-int.h (bb_note): Likewise.
9545 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9547 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9549 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9552 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9553 "insn" from rtx to rtx_insn *.
9554 (make_debug_insn_raw): Strengthen return type from rtx to
9555 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9556 (make_jump_insn_raw): Strengthen return type from rtx to
9557 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9558 (make_call_insn_raw): Strengthen return type from rtx to
9559 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9560 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9561 callback from rtx to rtx_insn *; likewise for local "insn" and
9562 "next", adding a checked cast to rtx_insn in the relevant cases of
9563 the switch statement.
9564 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9565 callback from rtx to rtx_insn *.
9566 (emit_pattern_after_setloc): Likewise.
9567 (emit_pattern_after): Likewise.
9568 (emit_pattern_before_setloc): Likewise.
9569 (emit_pattern_before): Likewise.
9571 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9573 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9575 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9576 accepting an rtx_insn *.
9577 (last_call_insn): Strengthen return type from rtx to
9580 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9582 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9583 "insns" from rtx to rtx_insn *.
9584 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9585 locals "insn" and "prev".
9587 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9589 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9590 rtx_jump_table_data **.
9592 * cfgbuild.c (make_edges): Introduce local "table", using it in
9593 place of "tmp" for jump table data.
9594 (find_bb_boundaries): Strengthen local "table" from rtx to
9595 rtx_jump_table_data *.
9596 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9597 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9598 (try_crossjump_to_edge): Likewise.
9599 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9601 (patch_jump_insn): Introduce local "table", using it in place of
9602 "tmp" for jump table data.
9603 (force_nonfallthru_and_redirect): Introduce local "table", so that
9604 call to tablejump_p can receive an rtx_jump_table_data **. Update
9605 logic around the call to overwrite "note" appropriately if
9606 tablejump_p returns non-zero.
9607 (get_last_bb_insn): Introduce local "table", using it in place of
9608 "tmp" for jump table data.
9609 * dwarf2cfi.c (create_trace_edges): Likewise.
9611 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9612 from rtx to rtx_jump_table_data *.
9613 (create_fix_barrier): Strengthen local "tmp" from rtx to
9614 rtx_jump_table_data *.
9615 (arm_reorg): Likewise for local "table".
9617 * config/s390/s390.c (s390_chunkify_start): Likewise.
9619 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9621 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9622 rtx to rtx_jump_table_data *.
9624 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9625 rtx_jump_table_data **. Add a checked cast when writing through
9626 the pointer: we know there that local "table" is non-NULL and that
9627 JUMP_TABLE_DATA_P (table) holds.
9628 (label_is_jump_target_p): Introduce local "table", using it in
9629 place of "tmp" for jump table data.
9631 2014-08-19 Marek Polacek <polacek@redhat.com>
9634 * doc/invoke.texi: Document -Wbool-compare.
9636 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9638 * rtl.h (entry_of_function): Strengthen return type from rtx to
9640 * cfgrtl.c (entry_of_function): Likewise.
9642 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9644 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9645 rtx_insn *, adding a checked cast for now.
9646 (get_last_insn): Likewise.
9648 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9650 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9653 * emit-rtl.c (gen_label_rtx): Likewise.
9655 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9657 * rtl.h (previous_insn): Strengthen return type from rtx to
9659 (next_insn): Likewise.
9660 (prev_nonnote_insn): Likewise.
9661 (prev_nonnote_insn_bb): Likewise.
9662 (next_nonnote_insn): Likewise.
9663 (next_nonnote_insn_bb): Likewise.
9664 (prev_nondebug_insn): Likewise.
9665 (next_nondebug_insn): Likewise.
9666 (prev_nonnote_nondebug_insn): Likewise.
9667 (next_nonnote_nondebug_insn): Likewise.
9668 (prev_real_insn): Likewise.
9669 (next_real_insn): Likewise.
9670 (prev_active_insn): Likewise.
9671 (next_active_insn): Likewise.
9673 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9674 rtx_insn *, adding a checked cast.
9675 (previous_insn): Likewise.
9676 (next_nonnote_insn): Likewise.
9677 (next_nonnote_insn_bb): Likewise.
9678 (prev_nonnote_insn): Likewise.
9679 (prev_nonnote_insn_bb): Likewise.
9680 (next_nondebug_insn): Likewise.
9681 (prev_nondebug_insn): Likewise.
9682 (next_nonnote_nondebug_insn): Likewise.
9683 (prev_nonnote_nondebug_insn): Likewise.
9684 (next_real_insn): Likewise.
9685 (prev_real_insn): Likewise.
9686 (next_active_insn): Likewise.
9687 (prev_active_insn): Likewise.
9689 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9690 param "stepfunc" so that it returns an rtx_insn * rather than an
9691 rtx, to track the change to prev_nonnote_insn_bb, which is the
9692 only function this is called with.
9693 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9695 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9697 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9700 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9702 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9703 (class rtx_nonjump_insn): Likewise.
9704 (class rtx_jump_insn): Likewise.
9705 (class rtx_call_insn): Likewise.
9706 (class rtx_jump_table_data): Likewise.
9707 (class rtx_barrier): Likewise.
9708 (class rtx_code_label): Likewise.
9709 (class rtx_note): Likewise.
9711 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9712 adding the invariant DEBUG_INSN_P (X).
9713 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9714 the invariant NONJUMP_INSN_P (X).
9715 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9716 the invariant JUMP_P (X).
9717 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9718 the invariant CALL_P (X).
9719 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9720 invariant JUMP_TABLE_DATA_P (X).
9721 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9722 invariant BARRIER_P (X).
9723 (class rtx_code_label): New, a subclass of rtx_insn, adding
9724 the invariant LABEL_P (X).
9725 (class rtx_note): New, a subclass of rtx_insn, adding
9726 the invariant NOTE_P(X).
9727 (is_a_helper <rtx_debug_insn *>::test): New.
9728 (is_a_helper <rtx_nonjump_insn *>::test): New.
9729 (is_a_helper <rtx_jump_insn *>::test): New.
9730 (is_a_helper <rtx_call_insn *>::test): New.
9731 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9732 overloaded for both rtx and rtx_insn *.
9733 (is_a_helper <rtx_barrier *>::test): New.
9734 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9735 for both rtx and rtx_insn *.
9736 (is_a_helper <rtx_note *>::test): New.
9738 2014-08-19 Marek Polacek <polacek@redhat.com>
9740 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9741 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9742 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9743 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9745 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9747 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9748 rtx_insn *. To help with transition, for now, convert from an
9749 access macro into a pair of functions: BND_TO, returning an
9751 (SET_BND_TO): New function, for use where BND_TO is used as an
9754 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9756 (BND_TO): New function, adding a checked cast.
9757 (SET_BND_TO): New function.
9759 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9761 (compute_av_set_on_boundaries): Likewise.
9763 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9765 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9766 destination if it is used in source.
9767 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9768 (*popcount<mode>2_falsedep_1): Likewise.
9770 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9773 * configure.ac: Set install_gold_as_default to no first.
9774 * configure: Regenerated.
9776 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9778 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9779 "note_list" field will eventually be an rtx_insn *. To help with
9780 transition, for now, convert from an access macro into a pair of
9781 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9782 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9785 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9786 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9788 * sel-sched-ir.c (init_bb): Likewise.
9789 (sel_restore_notes): Likewise.
9790 (move_bb_info): Likewise.
9791 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9792 (SET_BB_NOTE_LIST): New function.
9794 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9796 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9797 field will eventually be an rtx_insn *. To help with transition,
9798 for now, convert from an access macro into a pair of functions:
9799 VINSN_INSN_RTX, returning an rtx_insn *, and...
9800 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9801 is used as an lvalue.
9803 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9804 SET_VINSN_INSN_RTX where it's used as an lvalue.
9805 (VINSN_INSN_RTX): New function.
9806 (SET_VINSN_INSN_RTX): New function.
9808 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9810 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9811 eventually be rtx_insn *, but to help with transition, for now,
9812 convert from an access macro into a pair of functions: DEP_PRO
9813 returning an rtx_insn * and...
9814 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9815 lvalue, returning an rtx&.
9816 (DEP_CON): Analogous changes to DEP_PRO above.
9817 (SET_DEP_CON): Likewise.
9819 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9820 an lvalue to SET_DEP_CON.
9821 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9822 (sd_copy_back_deps): Likewise for DEP_CON.
9823 (DEP_PRO): New function, adding a checked cast for now.
9824 (DEP_CON): Likewise.
9825 (SET_DEP_PRO): New function.
9826 (SET_DEP_CON): Likewise.
9828 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9830 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9831 (extra_options): Add i386/cygwin.opt.
9832 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9833 (CPP_SPEC): Accept -pthread.
9835 (GOMP_SELF_SPECS): Update comment.
9836 * config/i386/cygwin.opt: New file for -pthread flag.
9838 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9840 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9841 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9842 that we can return an rtx_insn *.
9844 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9846 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9847 when building executables, not DLLs. Add --large-address-aware
9848 under the same conditions.
9849 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9850 when building executables, not DLLs. Add --large-address-aware
9851 under the same conditions when using -m32.
9853 * config/i386/cygwin-stdint.h: Throughout, make type
9854 definitions dependent on target architecture, not host.
9856 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9858 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9859 the return type from rtx to rtx_insn *, which will enable various
9860 conversions in followup patches. For now this is is done by a
9862 (NEXT_INSN): Likewise.
9863 (SET_PREV_INSN): Convert to an inline function. This is intended
9864 for use as an lvalue, and so returns an rtx& to allow in-place
9866 (SET_NEXT_INSN): Likewise.
9868 2014-07-08 Mark Wielaard <mjw@redhat.com>
9871 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9873 2014-08-19 Marek Polacek <polacek@redhat.com>
9876 * cgraphunit.c (handle_alias_pairs): Fix condition.
9878 2014-08-19 Richard Biener <rguenther@suse.de>
9880 * gimple-fold.c (fold_gimple_assign): Properly build a
9881 null-pointer constant when devirtualizing addresses.
9883 2014-07-07 Mark Wielaard <mjw@redhat.com>
9885 * dwarf2out.c (decl_quals): New function.
9886 (modified_type_die): Take one cv_quals argument instead of two,
9887 one for const and one for volatile.
9888 (add_type_attribute): Likewise.
9889 (generic_parameter_die): Call add_type_attribute with one modifier
9891 (base_type_for_mode): Likewise.
9892 (add_bounds_info): Likewise.
9893 (add_subscript_info): Likewise.
9894 (gen_array_type_die): Likewise.
9895 (gen_descr_array_type_die): Likewise.
9896 (gen_entry_point_die): Likewise.
9897 (gen_enumeration_type_die): Likewise.
9898 (gen_formal_parameter_die): Likewise.
9899 (gen_subprogram_die): Likewise.
9900 (gen_variable_die): Likewise.
9901 (gen_const_die): Likewise.
9902 (gen_field_die): Likewise.
9903 (gen_pointer_type_die): Likewise.
9904 (gen_reference_type_die): Likewise.
9905 (gen_ptr_to_mbr_type_die): Likewise.
9906 (gen_inheritance_die): Likewise.
9907 (gen_subroutine_type_die): Likewise.
9908 (gen_typedef_die): Likewise.
9909 (force_type_die): Likewise.
9911 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9913 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9915 * configure: Regenerate.
9917 2014-08-19 Richard Biener <rguenther@suse.de>
9919 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9920 DECL_EXTERNALs in BLOCKs as non-references.
9921 * tree-streamer-out.c (streamer_write_chain): Likewise.
9923 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9924 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9925 Anna Tikhonova <anna.tikhonova@intel.com>
9926 Ilya Tocar <ilya.tocar@intel.com>
9927 Andrey Turetskiy <andrey.turetskiy@intel.com>
9928 Ilya Verbin <ilya.verbin@intel.com>
9929 Kirill Yukhin <kirill.yukhin@intel.com>
9930 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9932 * config/i386/sse.md
9933 (define_mode_iterator VI48_AVX512F): Delete.
9934 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9935 (define_mode_iterator VI2_AVX512VL): Ditto.
9936 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9939 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9941 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9942 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9943 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9944 with VI48_AVX512F_AVX512VL): New.
9945 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9946 with VI2_AVX512VL): Ditto.
9948 2014-08-19 Marek Polacek <polacek@redhat.com>
9950 * doc/invoke.texi: Document -Wc99-c11-compat.
9952 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9954 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9956 (SET_PREV_INSN): New macro, for use as an lvalue.
9957 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9959 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9960 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9961 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9962 (fixup_abnormal_edges): Likewise.
9963 (unlink_insn_chain): Likewise.
9964 (fixup_reorder_chain): Likewise.
9965 (cfg_layout_delete_block): Likewise.
9966 (cfg_layout_merge_blocks): Likewise.
9967 * combine.c (update_cfg_for_uncondjump): Likewise.
9968 * emit-rtl.c (link_insn_into_chain): Likewise.
9969 (remove_insn): Likewise.
9970 (delete_insns_since): Likewise.
9971 (reorder_insns_nobb): Likewise.
9972 (emit_insn_after_1): Likewise.
9973 * final.c (rest_of_clean_state): Likewise.
9974 (final_scan_insn): Likewise.
9975 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9976 * haifa-sched.c (concat_note_lists): Likewise.
9977 (remove_notes): Likewise.
9978 (restore_other_notes): Likewise.
9979 (move_insn): Likewise.
9980 (unlink_bb_notes): Likewise.
9981 (restore_bb_notes): Likewise.
9982 * jump.c (delete_for_peephole): Likewise.
9983 * optabs.c (emit_libcall_block_1): Likewise.
9984 * reorg.c (emit_delay_sequence): Likewise.
9985 (fill_simple_delay_slots): Likewise.
9986 * sel-sched-ir.c (sel_move_insn): Likewise.
9987 (sel_remove_insn): Likewise.
9988 (get_bb_note_from_pool): Likewise.
9989 * sel-sched.c (move_nop_to_previous_block): Likewise.
9991 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9992 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9993 (c6x_gen_bundles): Likewise.
9994 (hwloop_optimize): Likewise.
9995 * config/frv/frv.c (frv_function_prologue): Likewise.
9996 (frv_register_nop): Likewise.
9997 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9998 (ia64_reorg): Likewise.
9999 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10000 (mep_make_bundle): Likewise.
10001 (mep_bundle_insns): Likewise.
10002 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10003 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10004 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10006 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10008 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
10009 return type from rtx to rtx_insn *.
10010 (BB_END): Likewise.
10011 (BB_HEADER): Likewise.
10012 (BB_FOOTER): Likewise.
10013 (SET_BB_HEAD): Convert to a function.
10014 (SET_BB_END): Likewise.
10015 (SET_BB_HEADER): Likewise.
10016 (SET_BB_FOOTER): Likewise.
10018 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10019 Strengthen the return type from rtx to rtx_insn *. For now, this
10020 is done by adding a checked cast, but this will eventually
10021 become a field lookup.
10022 (BB_END): Likewise.
10023 (BB_HEADER): Likewise.
10024 (BB_FOOTER): Likewise.
10025 (SET_BB_HEAD): New function, from macro of same name. This is
10026 intended for use as an lvalue, and so returns an rtx& to allow
10027 in-place modification.
10028 (SET_BB_END): Likewise.
10029 (SET_BB_HEADER): Likewise.
10030 (SET_BB_FOOTER): Likewise.
10032 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10034 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10035 for rvalues, and...
10036 (SET_BB_HEAD): New macro, for use as a lvalue.
10037 (BB_END, SET_BB_END): Likewise.
10038 (BB_HEADER, SET_BB_HEADER): Likewise.
10039 (BB_FOOTER, SET_BB_FOOTER): Likewise.
10041 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10042 of BB_* macros into SET_BB_* macros.
10043 (fix_crossing_unconditional_branches): Likewise.
10044 * caller-save.c (save_call_clobbered_regs): Likewise.
10045 (insert_one_insn): Likewise.
10046 * cfgbuild.c (find_bb_boundaries): Likewise.
10047 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10048 (outgoing_edges_match): Likewise.
10049 (try_optimize_cfg): Likewise.
10050 * cfgexpand.c (expand_gimple_cond): Likewise.
10051 (expand_gimple_tailcall): Likewise.
10052 (expand_gimple_basic_block): Likewise.
10053 (construct_exit_block): Likewise.
10054 * cfgrtl.c (delete_insn): Likewise.
10055 (create_basic_block_structure): Likewise.
10056 (rtl_delete_block): Likewise.
10057 (rtl_split_block): Likewise.
10058 (emit_nop_for_unique_locus_between): Likewise.
10059 (rtl_merge_blocks): Likewise.
10060 (block_label): Likewise.
10061 (try_redirect_by_replacing_jump): Likewise.
10062 (emit_barrier_after_bb): Likewise.
10063 (fixup_abnormal_edges): Likewise.
10064 (record_effective_endpoints): Likewise.
10065 (relink_block_chain): Likewise.
10066 (fixup_reorder_chain): Likewise.
10067 (fixup_fallthru_exit_predecessor): Likewise.
10068 (cfg_layout_duplicate_bb): Likewise.
10069 (cfg_layout_split_block): Likewise.
10070 (cfg_layout_delete_block): Likewise.
10071 (cfg_layout_merge_blocks): Likewise.
10072 * combine.c (update_cfg_for_uncondjump): Likewise.
10073 * emit-rtl.c (add_insn_after): Likewise.
10074 (remove_insn): Likewise.
10075 (reorder_insns): Likewise.
10076 (emit_insn_after_1): Likewise.
10077 * haifa-sched.c (get_ebb_head_tail): Likewise.
10078 (restore_other_notes): Likewise.
10079 (move_insn): Likewise.
10080 (sched_extend_bb): Likewise.
10081 (fix_jump_move): Likewise.
10082 * ifcvt.c (noce_process_if_block): Likewise.
10083 (dead_or_predicable): Likewise.
10084 * ira.c (update_equiv_regs): Likewise.
10085 * reg-stack.c (change_stack): Likewise.
10086 * sel-sched-ir.c (sel_move_insn): Likewise.
10087 * sel-sched.c (move_nop_to_previous_block): Likewise.
10089 * config/c6x/c6x.c (hwloop_optimize): Likewise.
10090 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10092 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10094 * rtl.h (for_each_rtx_in_insn): New function.
10095 * rtlanal.c (for_each_rtx_in_insn): Likewise.
10097 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10099 * coretypes.h (class rtx_insn): Add forward declaration.
10101 * rtl.h: Include is-a.h.
10102 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10103 workaround to ensure gengtype knows inheritance is occurring,
10104 whilst continuing to use the pre-existing special-casing for
10106 (class rtx_insn): New subclass of rtx_def, adding the
10107 invariant that we're dealing with something we can sanely use
10108 INSN_UID, NEXT_INSN, PREV_INSN on.
10109 (is_a_helper <rtx_insn *>::test): New.
10110 (is_a_helper <const rtx_insn *>::test): New.
10112 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10114 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10116 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10118 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10121 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10123 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10124 to BUILT_IN_UNREACHABLE.
10126 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
10129 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10131 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10132 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10133 (ffs<mode>2): Do not expand with tzcnt for
10134 TARGET_AVOID_FALSE_DEP_FOR_BMI.
10135 (ffssi2_no_cmove): Ditto.
10136 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10137 (ctz<mode>2): New expander.
10138 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10139 (*ctz<mode>2_falsedep): New insn.
10140 (*ctz<mode>2): Rename from ctz<mode>2.
10141 (clz<mode>2_lzcnt): New expander.
10142 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10143 (*clz<mode>2_lzcnt_falsedep): New insn.
10144 (*clz<mode>2): Rename from ctz<mode>2.
10145 (popcount<mode>2): New expander.
10146 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10147 (*popcount<mode>2_falsedep): New insn.
10148 (*popcount<mode>2): Rename from ctz<mode>2.
10149 (*popcount<mode>2_cmp): Remove.
10150 (*popcountsi2_cmp_zext): Ditto.
10152 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
10154 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10155 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10156 * config/microblaze/microblaze.h
10157 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10159 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
10162 * configure.ac: Set install_gold_as_default to no for
10164 * configure: Regenerated.
10166 2014-08-18 Roman Gareev <gareevroman@gmail.com>
10168 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10169 * config.in: Add undef of HAVE_isl.
10170 * configure: Regenerate.
10171 * configure.ac: Add definition of HAVE_isl.
10172 * graphite-blocking.c: Add checking of HAVE_isl.
10173 * graphite-dependences.c: Likewise.
10174 * graphite-interchange.c: Likewise.
10175 * graphite-isl-ast-to-gimple.c: Likewise.
10176 * graphite-optimize-isl.c: Likewise.
10177 * graphite-poly.c: Likewise.
10178 * graphite-scop-detection.c: Likewise.
10179 * graphite-sese-to-poly.c: Likewise.
10180 * graphite.c: Likewise.
10181 * toplev.c: Replace the checking of HAVE_cloog with the checking
10184 2014-08-18 Richard Biener <rguenther@suse.de>
10186 PR tree-optimization/62090
10187 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10188 (fold_builtin_3): Do not fold snprintf.
10189 (fold_builtin_4): Likewise.
10190 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10191 moved from builtins.c.
10192 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10193 (gimple_fold_builtin): Do not fold sprintf here.
10195 2014-08-18 Richard Biener <rguenther@suse.de>
10197 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10199 (maybe_canonicalize_mem_ref_addr): ... this function.
10200 (fold_stmt_1): Apply it here before all simplification.
10202 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
10205 * cgraph.h (cgraph_node::create_indirect_edge): Add
10206 compute_indirect_info param.
10207 * cgraph.c (cgraph_node::create_indirect_edge): Compute
10208 indirect_info only when it is required.
10209 * cgraphclones.c (cgraph_clone_edge): Do not recompute
10210 indirect_info fore cloned indirect edge.
10212 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10213 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10214 Anna Tikhonova <anna.tikhonova@intel.com>
10215 Ilya Tocar <ilya.tocar@intel.com>
10216 Andrey Turetskiy <andrey.turetskiy@intel.com>
10217 Ilya Verbin <ilya.verbin@intel.com>
10218 Kirill Yukhin <kirill.yukhin@intel.com>
10219 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10221 * config/i386/sse.md
10222 (define_mode_iterator VI8_AVX2_AVX512BW): New.
10223 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10225 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10226 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10227 Anna Tikhonova <anna.tikhonova@intel.com>
10228 Ilya Tocar <ilya.tocar@intel.com>
10229 Andrey Turetskiy <andrey.turetskiy@intel.com>
10230 Ilya Verbin <ilya.verbin@intel.com>
10231 Kirill Yukhin <kirill.yukhin@intel.com>
10232 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10234 * config/i386/sse.md
10235 (define_mode_iterator VF1_AVX512VL): New.
10236 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10237 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10240 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10241 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10242 Anna Tikhonova <anna.tikhonova@intel.com>
10243 Ilya Tocar <ilya.tocar@intel.com>
10244 Andrey Turetskiy <andrey.turetskiy@intel.com>
10245 Ilya Verbin <ilya.verbin@intel.com>
10246 Kirill Yukhin <kirill.yukhin@intel.com>
10247 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10249 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10250 * config/i386/i386.md
10251 (define_code_iterator any_float): New.
10252 (define_code_attr floatsuffix): New.
10253 * config/i386/sse.md
10254 (define_mode_iterator VF1_128_256VL): New.
10255 (define_mode_iterator VF2_512_256VL): New.
10256 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10258 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10259 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10261 (define_mode_attr qq2pssuff): New.
10262 (define_mode_attr sselongvecmode): New.
10263 (define_mode_attr sselongvecmodelower): New.
10264 (define_mode_attr sseintvecmode3): New.
10265 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10267 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10268 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10269 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10270 (define_insn "ufloatv2siv2df2<mask_name>"): New.
10272 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10273 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10274 Anna Tikhonova <anna.tikhonova@intel.com>
10275 Ilya Tocar <ilya.tocar@intel.com>
10276 Andrey Turetskiy <andrey.turetskiy@intel.com>
10277 Ilya Verbin <ilya.verbin@intel.com>
10278 Kirill Yukhin <kirill.yukhin@intel.com>
10279 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10281 * config/i386/sse.md
10282 (define_mode_iterator VF2_AVX512VL): New.
10283 (define_mode_attr sseintvecmode2): New.
10284 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10285 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10286 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10288 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10290 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10292 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10295 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10296 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10297 Anna Tikhonova <anna.tikhonova@intel.com>
10298 Ilya Tocar <ilya.tocar@intel.com>
10299 Andrey Turetskiy <andrey.turetskiy@intel.com>
10300 Ilya Verbin <ilya.verbin@intel.com>
10301 Kirill Yukhin <kirill.yukhin@intel.com>
10302 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10304 * config/i386/i386.md
10305 (define_insn "*movoi_internal_avx"): Add evex version.
10306 (define_insn "*movti_internal"): Ditto.
10308 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10309 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10310 Anna Tikhonova <anna.tikhonova@intel.com>
10311 Ilya Tocar <ilya.tocar@intel.com>
10312 Andrey Turetskiy <andrey.turetskiy@intel.com>
10313 Ilya Verbin <ilya.verbin@intel.com>
10314 Kirill Yukhin <kirill.yukhin@intel.com>
10315 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10317 * config/i386/i386.md
10318 (define_attr "isa"): Add avx512dq, noavx512dq.
10319 (define_attr "enabled"): Ditto.
10320 * config/i386/sse.md
10321 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10323 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10324 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10325 Anna Tikhonova <anna.tikhonova@intel.com>
10326 Ilya Tocar <ilya.tocar@intel.com>
10327 Andrey Turetskiy <andrey.turetskiy@intel.com>
10328 Ilya Verbin <ilya.verbin@intel.com>
10329 Kirill Yukhin <kirill.yukhin@intel.com>
10330 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10332 * config/i386/i386.c
10333 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10334 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10335 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10336 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10337 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10338 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10339 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10340 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10341 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10342 * config/i386/sse.md
10343 (define_mode_iterator VMOVE): Allow V4TI mode.
10344 (define_mode_iterator V_AVX512VL): New.
10345 (define_mode_iterator V): New handling for AVX512VL.
10346 (define_insn "avx512f_load<mode>_mask"): Delete.
10347 (define_insn "<avx512>_load<mode>_mask"): New.
10348 (define_insn "avx512f_store<mode>_mask"): Delete.
10349 (define_insn "<avx512>_store<mode>_mask"): New.
10352 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10355 * asan.c (instrument_derefs): Fix bitfield check.
10357 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10359 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10360 * config/rs6000/htm.md (ttest): Remove clobber.
10361 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10362 (and_operand): Reformat.
10363 (and_2rld_operand): New predicate.
10364 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10366 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10367 parameter. Handle AND directly.
10368 (rs6000_split_logical_di): Remove last parameter.
10369 (rs6000_split_logical): Remove last parameter. Remove obsolete
10371 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10372 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10373 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10374 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10375 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10376 and 5 anonymous splitters): Delete.
10377 (and<mode>3): New expander.
10378 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10379 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10380 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10381 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10382 (floatdisf2_internal1): Remove clobbers.
10383 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10384 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10385 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10386 (and<mode>3 for BOOL_128): Remove clobber.
10387 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10388 rs6000_split_logical.
10389 (*bool<mode>3_internal for BOOL_128): Adjust call of
10390 rs6000_split_logical.
10391 (*boolc<mode>3_internal1 for BOOL_128,
10392 *boolc<mode>3_internal2 for BOOL_128,
10393 *boolcc<mode>3_internal1 for BOOL_128,
10394 *boolcc<mode>3_internal2 for BOOL_128,
10395 *eqv<mode>3_internal1 for BOOL_128,
10396 *eqv<mode>3_internal2 for BOOL_128,
10397 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10398 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10400 (*vec_reload_and_reg_<mptrsize>): Delete.
10402 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10404 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10405 and split, *boolccsi3_internal3 and split): Delete.
10406 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10407 *boolccdi3_internal3 and split): Delete.
10408 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10409 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10411 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10413 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10414 and split, *boolcsi3_internal3 and split): Delete.
10415 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10416 *boolcdi3_internal3 and split): Delete.
10417 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10419 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10421 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10422 <'u'>: Also support printing the low-order 16 bits.
10423 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10424 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10425 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10426 *booldi3_internal3 and split): Delete.
10427 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10428 *bool<mode>3_dot2): New.
10429 (two anonymous define_splits for non_logical_cint_operand): Merge.
10431 2014-08-17 Marek Polacek <polacek@redhat.com>
10432 Manuel López-Ibáñez <manu@gcc.gnu.org>
10435 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10436 (diagnostic_show_locus): Don't print caret diagnostic
10437 if a column is larger than the line_width.
10439 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10441 * common.opt: Make the ISL AST generator to be the main code generator
10444 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10446 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10448 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10451 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10453 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10454 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10455 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10457 * config/pa/pa.md (begin_brtab): Delete insn.
10458 (end_brtab): Likewise.
10460 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10462 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10464 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10466 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10467 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10468 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10469 (get_dynamic_type): Remove.
10470 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10471 (clear_speculation): Bring to ipa-deivrt.h
10472 (get_class_context): Rename to ...
10473 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10474 (contains_type_p): Update.
10475 (get_dynamic_type): Rename to ...
10476 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10477 (possible_polymorphic_call_targets): UPdate.
10478 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10479 * ipa-prop.c (ipa_analyze_call_uses): Update.
10481 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10483 * doc/invoke.texi (SH options): Document missing processor variant
10484 options. Remove references to Hitachi. Undocument deprecated mspace
10487 2014-08-15 Jason Merrill <jason@redhat.com>
10489 * tree.c (type_hash_canon): Uncomment assert.
10491 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10493 * input.h (in_system_header_at): Add comment.
10495 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10498 * diagnostic.c (build_message_string): Make it extern.
10499 * diagnostic.h (build_message_string): Make it extern.
10501 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10503 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10504 load/store from/to non-floating class pseudo.
10506 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10508 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10510 2014-08-15 Richard Biener <rguenther@suse.de>
10512 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10513 (get_constraint_for_ssa_var): Remove dead code.
10514 (get_constraint_for_1): Adjust.
10515 (find_what_var_points_to): Likewise.
10516 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10518 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10521 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10522 (_mm512_mask_cmpge_epu32_mask): Ditto.
10523 (_mm512_cmpge_epu32_mask): Ditto.
10524 (_mm512_mask_cmpge_epi64_mask): Ditto.
10525 (_mm512_cmpge_epi64_mask): Ditto.
10526 (_mm512_mask_cmpge_epu64_mask): Ditto.
10527 (_mm512_cmpge_epu64_mask): Ditto.
10528 (_mm512_mask_cmple_epi32_mask): Ditto.
10529 (_mm512_cmple_epi32_mask): Ditto.
10530 (_mm512_mask_cmple_epu32_mask): Ditto.
10531 (_mm512_cmple_epu32_mask): Ditto.
10532 (_mm512_mask_cmple_epi64_mask): Ditto.
10533 (_mm512_cmple_epi64_mask): Ditto.
10534 (_mm512_mask_cmple_epu64_mask): Ditto.
10535 (_mm512_cmple_epu64_mask): Ditto.
10536 (_mm512_mask_cmplt_epi32_mask): Ditto.
10537 (_mm512_cmplt_epi32_mask): Ditto.
10538 (_mm512_mask_cmplt_epu32_mask): Ditto.
10539 (_mm512_cmplt_epu32_mask): Ditto.
10540 (_mm512_mask_cmplt_epi64_mask): Ditto.
10541 (_mm512_cmplt_epi64_mask): Ditto.
10542 (_mm512_mask_cmplt_epu64_mask): Ditto.
10543 (_mm512_cmplt_epu64_mask): Ditto.
10544 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10545 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10546 (_mm512_cmpneq_epu32_mask): Ditto.
10547 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10548 (_mm512_cmpneq_epi64_mask): Ditto.
10549 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10550 (_mm512_cmpneq_epu64_mask): Ditto.
10551 (_mm512_castpd_ps): Ditto.
10552 (_mm512_castpd_si512): Ditto.
10553 (_mm512_castps_pd): Ditto.
10554 (_mm512_castps_si512): Ditto.
10555 (_mm512_castsi512_ps): Ditto.
10556 (_mm512_castsi512_pd): Ditto.
10557 (_mm512_castpd512_pd128): Ditto.
10558 (_mm512_castps512_ps128): Ditto.
10559 (_mm512_castsi512_si128): Ditto.
10560 (_mm512_castpd512_pd256): Ditto.
10561 (_mm512_castps512_ps256): Ditto.
10562 (_mm512_castsi512_si256): Ditto.
10563 (_mm512_castpd128_pd512): Ditto.
10564 (_mm512_castps128_ps512): Ditto.
10565 (_mm512_castsi128_si512): Ditto.
10566 (_mm512_castpd256_pd512): Ditto.
10567 (_mm512_castps256_ps512): Ditto.
10568 (_mm512_castsi256_si512): Ditto.
10569 (_mm512_cmpeq_epu32_mask): Ditto.
10570 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10571 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10572 (_mm512_cmpeq_epu64_mask): Ditto.
10573 (_mm512_cmpgt_epu32_mask): Ditto.
10574 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10575 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10576 (_mm512_cmpgt_epu64_mask): Ditto.
10577 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10578 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10579 * config/i386/i386.c (enum ix86_builtins): Add
10580 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10581 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10582 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10583 (bdesc_args): Add __builtin_ia32_si512_256si,
10584 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10585 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10586 __builtin_ia32_pd512_pd.
10587 (ix86_expand_args_builtin): Handle new FTYPEs.
10588 * config/i386/sse.md (castmode): Add 512-bit modes.
10589 (AVX512MODE2P): New.
10590 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10591 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10593 2014-08-15 Richard Biener <rguenther@suse.de>
10595 * fold-const.c (tree_swap_operands_p): Put all constants
10596 last, also strip sign-changing NOPs when considering further
10597 canonicalization. Canonicalize also when optimizing for size.
10599 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10601 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10602 one_match > zero_match case to just before simple_sequence.
10604 2014-08-15 Richard Biener <rguenther@suse.de>
10606 * data-streamer.h (streamer_string_index, string_for_index):
10608 * data-streamer-out.c (streamer_string_index): Make static.
10609 * data-streamer-in.c (string_for_index): Likewise.
10610 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10611 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10613 2014-08-15 Richard Biener <rguenther@suse.de>
10615 PR tree-optimization/62031
10616 * tree-data-ref.c (dr_analyze_indices): Do not set
10617 DR_UNCONSTRAINED_BASE.
10618 (dr_may_alias_p): All indirect accesses have to go the
10619 formerly DR_UNCONSTRAINED_BASE path.
10620 * tree-data-ref.h (struct indices): Remove
10621 unconstrained_base member.
10622 (DR_UNCONSTRAINED_BASE): Remove.
10624 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10626 PR middle-end/62092
10627 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10628 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10629 in OMP_CLAUSE_MAP in some outer target region.
10631 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10633 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10634 name_expansion_cache.
10635 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10636 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10637 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10638 (difference_cannot_overflow_p): New parameter. Use affine
10639 expansion for equality check.
10640 (iv_elimination_compare_lt): Pass new argument.
10642 2014-08-14 DJ Delorie <dj@redhat.com>
10644 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10645 variables to the accumulator.
10647 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10648 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10649 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10650 with far-far moves.
10652 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10653 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10654 (umulqihi3_virt): Likewise.
10655 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10656 (umulqihi3_real): Likewise.
10658 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10660 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10662 PR tree-optimization/62091
10663 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10664 function_entry_reached.
10665 (walk_aliased_vdefs): Clear it here.
10666 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10668 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10670 * ipa-utils.h (compare_virtual_tables): Declare.
10671 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10673 2014-08-14 Marek Polacek <polacek@redhat.com>
10676 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10677 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10679 2014-08-14 Tom de Vries <tom@codesourcery.com>
10681 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10683 2014-08-14 Tom de Vries <tom@codesourcery.com>
10685 PR rtl-optimization/62004
10686 PR rtl-optimization/62030
10687 * ifcvt.c (rtx_interchangeable_p): New function.
10688 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10689 * emit-rtl.h (mem_attrs_eq_p): Declare.
10691 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10693 * graphite-scop-detection.c:
10694 Add inclusion of cp-tree.h.
10695 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10696 in case they are pointers to object types
10698 2014-08-14 Richard Biener <rguenther@suse.de>
10700 * BASE-VER: Change to 5.0.0
10702 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10703 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10704 Anna Tikhonova <anna.tikhonova@intel.com>
10705 Ilya Tocar <ilya.tocar@intel.com>
10706 Andrey Turetskiy <andrey.turetskiy@intel.com>
10707 Ilya Verbin <ilya.verbin@intel.com>
10708 Kirill Yukhin <kirill.yukhin@intel.com>
10709 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10711 * config/i386/sse.md (define_mode_attr avx512): New.
10712 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10714 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10715 (define_mode_attr ssse3_avx2): Ditto.
10716 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10717 (define_mode_attr avx2_avx512bw): New.
10718 (define_mode_attr ssedoublemodelower): New.
10719 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10720 V32HI, V64QI modes.
10721 (define_mode_attr ssebytemode): Allow V8DI modes.
10722 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10723 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10724 (define_mode_attr ssePSmode2): New.
10725 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10726 V16HI, V32HI modes.
10727 (define_mode_attr dbpsadbwmode): New.
10728 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10729 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10730 (vi8_sse4_1_avx2_avx512): New.
10731 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10733 (define_mode_attr blendbits): Move before its immediate use.
10735 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10736 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10737 Anna Tikhonova <anna.tikhonova@intel.com>
10738 Ilya Tocar <ilya.tocar@intel.com>
10739 Andrey Turetskiy <andrey.turetskiy@intel.com>
10740 Ilya Verbin <ilya.verbin@intel.com>
10741 Kirill Yukhin <kirill.yukhin@intel.com>
10742 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10744 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10745 * config/i386/subst.md
10746 (define_mode_iterator SUBST_V): Update.
10747 (define_mode_iterator SUBST_A): Ditto.
10748 (define_subst_attr "mask_operand7"): New.
10749 (define_subst_attr "mask_operand10"): New.
10750 (define_subst_attr "mask_operand_arg34") : New.
10751 (define_subst_attr "mask_expand_op3"): New.
10752 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10753 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10754 (define_subst_attr "mask_avx512vl_condition"): New.
10755 (define_subst_attr "round_mask_operand4"): Ditto.
10756 (define_subst_attr "round_mask_scalar_op3"): Delete.
10757 (define_subst_attr "round_mask_op4"): New.
10758 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10760 (define_subst_attr "round_modev8sf_condition"): New.
10761 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10763 (define_subst_attr "round_saeonly_mask_operand4"): New.
10764 (define_subst_attr "round_saeonly_mask_op4"): New.
10765 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10766 V8DImode, V16SImode.
10767 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10768 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10769 (define_subst_attr "mask_expand4_args"): New.
10770 (define_subst "mask_expand4"): New.
10772 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10774 Anna Tikhonova <anna.tikhonova@intel.com>
10775 Ilya Tocar <ilya.tocar@intel.com>
10776 Andrey Turetskiy <andrey.turetskiy@intel.com>
10777 Ilya Verbin <ilya.verbin@intel.com>
10778 Kirill Yukhin <kirill.yukhin@intel.com>
10779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10781 * config/i386/i386.md
10782 (define_attr "isa"): Add avx512bw,noavx512bw.
10783 (define_attr "enabled"): Ditto.
10784 (define_split): Add 32/64-bit mask logic.
10785 (define_insn "*k<logic>qi"): New.
10786 (define_insn "*k<logic>hi"): New.
10787 (define_insn "*anddi_1"): Add mask version.
10788 (define_insn "*andsi_1"): Ditto.
10789 (define_insn "*<code><mode>_1"): Ditto.
10790 (define_insn "*<code>hi_1"): Ditto.
10791 (define_insn "kxnor<mode>"): New.
10792 (define_insn "kunpcksi"): New.
10793 (define_insn "kunpckdi"): New.
10794 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10795 (define_insn "*one_cmplhi2_1"): Ditto.
10797 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10798 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10799 Anna Tikhonova <anna.tikhonova@intel.com>
10800 Ilya Tocar <ilya.tocar@intel.com>
10801 Andrey Turetskiy <andrey.turetskiy@intel.com>
10802 Ilya Verbin <ilya.verbin@intel.com>
10803 Kirill Yukhin <kirill.yukhin@intel.com>
10804 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10806 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10809 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10810 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10811 Anna Tikhonova <anna.tikhonova@intel.com>
10812 Ilya Tocar <ilya.tocar@intel.com>
10813 Andrey Turetskiy <andrey.turetskiy@intel.com>
10814 Ilya Verbin <ilya.verbin@intel.com>
10815 Kirill Yukhin <kirill.yukhin@intel.com>
10816 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10818 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10820 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10821 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10822 xmm/ymm16+ when availble.
10823 * config/i386/i386.h
10824 (HARD_REGNO_NREGS): Add mask regs.
10825 (VALID_AVX512F_REG_MODE): Ditto.
10826 (VALID_AVX512F_REG_MODE) : Define.
10827 (VALID_MASK_AVX512BW_MODE): Ditto.
10828 (reg_class) (MASK_REG_P(X)): Define.
10829 * config/i386/i386.md: Do not split long moves with mask register,
10830 use kmovb if avx512bw is availible.
10831 (movdi_internal): Handle mask registers.
10833 2014-08-14 Richard Biener <rguenther@suse.de>
10835 PR tree-optimization/62081
10836 * tree-ssa-loop.c (pass_fix_loops): New pass.
10837 (pass_tree_loop::gate): Do not fixup loops here.
10838 * tree-pass.h (make_pass_fix_loops): Declare.
10839 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10841 2014-08-14 Richard Biener <rguenther@suse.de>
10843 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10844 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10846 2014-08-14 Richard Biener <rguenther@suse.de>
10848 PR tree-optimization/62090
10849 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10850 (fold_builtin_2): Do not fold sprintf.
10851 (fold_builtin_3): Likewise.
10852 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10853 moved from builtins.c.
10854 (gimple_fold_builtin): Fold sprintf.
10856 2014-08-14 Richard Biener <rguenther@suse.de>
10858 PR rtl-optimization/62079
10859 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10862 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10864 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10865 current_function_decl.
10867 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10869 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10870 cgraph_function_node to cgraph_node::function_symbol
10873 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10875 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10876 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10878 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10880 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10883 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10885 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10888 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10891 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10892 any registers that are used in mem_insn.
10894 2014-08-12 Steve Ellcey <sellcey@mips.com>
10896 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10898 2014-08-12 Steve Ellcey <sellcey@mips.com>
10900 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10901 (MULTILIB_DIRNAMES): Ditto.
10902 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10903 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10904 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10905 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10906 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10907 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10909 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10912 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10913 of __ARM_SIZEOF_WCHAR_T.
10915 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10918 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10919 Remove unnecessary attributes.
10921 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10923 * internal-fn.c (init_internal_fns): Fix off-by-one.
10925 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10926 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10927 Anna Tikhonova <anna.tikhonova@intel.com>
10928 Ilya Tocar <ilya.tocar@intel.com>
10929 Andrey Turetskiy <andrey.turetskiy@intel.com>
10930 Ilya Verbin <ilya.verbin@intel.com>
10931 Kirill Yukhin <kirill.yukhin@intel.com>
10932 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10934 * config/i386/i386.c (standard_sse_constant_opcode): Use
10935 vpxord/vpternlog if avx512 is availible.
10937 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10939 PR middle-end/62103
10940 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10941 bitfields, that is when size doesn't match the size of type or the
10942 size of the constructor.
10944 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10946 * config/rs6000/constraints.md (wh constraint): New constraint,
10947 for FP registers if direct move is available.
10948 (wi constraint): New constraint, for VSX/FP registers that can
10949 handle 64-bit integers.
10950 (wj constraint): New constraint for VSX/FP registers that can
10951 handle 64-bit integers for direct moves.
10952 (wk constraint): New constraint for VSX/FP registers that can
10953 handle 64-bit doubles for direct moves.
10954 (wy constraint): Make documentation match implementation.
10956 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10957 scalar_in_vmx_p field to simplify tests of whether SFmode or
10958 DFmode can go in the Altivec registers.
10959 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10960 (rs6000_setup_reg_addr_masks): Likewise.
10961 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10962 field, and wh/wi/wj/wk constraints.
10963 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10964 the wh/wi/wj/wk constraints.
10965 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10966 upper registers, prefer VSX registers unless the operation is a
10967 memory operation with REG+OFFSET addressing.
10969 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10970 DImode. Change SFmode to use ww constraint instead of d to allow
10971 SF registers in the upper registers.
10974 (VSr5): Fix thinko in comment.
10975 (VSa): New mode attribute that is an alternative to wa, that
10976 returns the VSX register class that a mode can go in, but may not
10977 be the preferred register class.
10978 (VS_64dm): New mode attribute for appropriate register classes for
10979 referencing 64-bit elements of vectors for direct moves and normal
10981 (VS_64reg): Likewise.
10982 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10983 register allocator to only registers the data type can handle.
10984 (vsx_le_perm_load_<mode>): Likewise.
10985 (vsx_le_perm_store_<mode>): Likewise.
10986 (vsx_xxpermdi2_le_<mode>): Likewise.
10987 (vsx_xxpermdi4_le_<mode>): Likewise.
10988 (vsx_lxvd2x2_le_<mode>): Likewise.
10989 (vsx_lxvd2x4_le_<mode>): Likewise.
10990 (vsx_stxvd2x2_le_<mode>): Likewise.
10991 (vsx_add<mode>3): Likewise.
10992 (vsx_sub<mode>3): Likewise.
10993 (vsx_mul<mode>3): Likewise.
10994 (vsx_div<mode>3): Likewise.
10995 (vsx_tdiv<mode>3_internal): Likewise.
10996 (vsx_fre<mode>2): Likewise.
10997 (vsx_neg<mode>2): Likewise.
10998 (vsx_abs<mode>2): Likewise.
10999 (vsx_nabs<mode>2): Likewise.
11000 (vsx_smax<mode>3): Likewise.
11001 (vsx_smin<mode>3): Likewise.
11002 (vsx_sqrt<mode>2): Likewise.
11003 (vsx_rsqrte<mode>2): Likewise.
11004 (vsx_tsqrt<mode>2_internal): Likewise.
11005 (vsx_fms<mode>4): Likewise.
11006 (vsx_nfma<mode>4): Likewise.
11007 (vsx_eq<mode>): Likewise.
11008 (vsx_gt<mode>): Likewise.
11009 (vsx_ge<mode>): Likewise.
11010 (vsx_eq<mode>_p): Likewise.
11011 (vsx_gt<mode>_p): Likewise.
11012 (vsx_ge<mode>_p): Likewise.
11013 (vsx_xxsel<mode>): Likewise.
11014 (vsx_xxsel<mode>_uns): Likewise.
11015 (vsx_copysign<mode>3): Likewise.
11016 (vsx_float<VSi><mode>2): Likewise.
11017 (vsx_floatuns<VSi><mode>2): Likewise.
11018 (vsx_fix_trunc<mode><VSi>2): Likewise.
11019 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11020 (vsx_x<VSv>r<VSs>i): Likewise.
11021 (vsx_x<VSv>r<VSs>ic): Likewise.
11022 (vsx_btrunc<mode>2): Likewise.
11023 (vsx_b2trunc<mode>2): Likewise.
11024 (vsx_floor<mode>2): Likewise.
11025 (vsx_ceil<mode>2): Likewise.
11026 (vsx_<VS_spdp_insn>): Likewise.
11027 (vsx_xscvspdp): Likewise.
11028 (vsx_xvcvspuxds): Likewise.
11029 (vsx_float_fix_<mode>2): Likewise.
11030 (vsx_set_<mode>): Likewise.
11031 (vsx_extract_<mode>_internal1): Likewise.
11032 (vsx_extract_<mode>_internal2): Likewise.
11033 (vsx_extract_<mode>_load): Likewise.
11034 (vsx_extract_<mode>_store): Likewise.
11035 (vsx_splat_<mode>): Likewise.
11036 (vsx_xxspltw_<mode>): Likewise.
11037 (vsx_xxspltw_<mode>_direct): Likewise.
11038 (vsx_xxmrghw_<mode>): Likewise.
11039 (vsx_xxmrglw_<mode>): Likewise.
11040 (vsx_xxsldwi_<mode>): Likewise.
11041 (vsx_xscvdpspn): Tighten constraints to only use register classes
11043 (vsx_xscvspdpn): Likewise.
11044 (vsx_xscvdpspn_scalar): Likewise.
11046 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11047 wj, and wk constraints.
11048 (GPR_REG_CLASS_P): New helper macro for register classes targeting
11049 general purpose registers.
11051 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11053 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11054 DImode instead of wm. Use wk constraint for direct move of DFmode
11056 (extendsidi2_lfiwax): Likewise.
11057 (lfiwax): Likewise.
11058 (lfiwzx): Likewise.
11059 (movdi_internal64): Likewise.
11061 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11062 wk constraints. Make the wy constraint documentation match them
11065 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
11067 Replacement of isl_int by isl_val
11068 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11069 (compute_bounds_for_param): use isl_val instead of isl_int
11070 (compute_bounds_for_loop): likewise
11071 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11072 (build_linearized_memory_access): use isl_val instead of isl_int
11073 (pdr_stride_in_loop): likewise
11074 * graphite-optimize-isl.c:
11075 (getPrevectorMap): use isl_val instead of isl_int
11077 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11078 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11079 (extern the_isl_ctx): declare
11080 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11081 (extract_affine_gmp): likewise
11083 (build_loop_iteration_domains): likewise
11084 (add_param_constraints): likewise
11086 2014-08-11 Richard Biener <rguenther@suse.de>
11088 PR tree-optimization/62075
11089 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11090 handle uses in patterns.
11092 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11093 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11094 Anna Tikhonova <anna.tikhonova@intel.com>
11095 Ilya Tocar <ilya.tocar@intel.com>
11096 Andrey Turetskiy <andrey.turetskiy@intel.com>
11097 Ilya Verbin <ilya.verbin@intel.com>
11098 Kirill Yukhin <kirill.yukhin@intel.com>
11099 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11101 * common/config/i386/i386-common.c
11102 (OPTION_MASK_ISA_AVX512VL_SET): Define.
11103 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11104 (ix86_handle_option): Handle OPT_mavx512vl.
11105 * config/i386/cpuid.h (bit_AVX512VL): Define.
11106 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11107 set -mavx512vl accordingly.
11108 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11109 OPTION_MASK_ISA_AVX512VL.
11110 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11111 (ix86_option_override_internal): Define PTA_AVX512VL, handle
11112 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11113 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11114 * config/i386/i386.h (TARGET_AVX512VL): Define.
11115 (TARGET_AVX512VL_P(x)): Ditto.
11116 * config/i386/i386.opt: Add mavx512vl.
11118 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
11120 PR tree-optimization/62073
11121 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11124 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11125 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11126 Anna Tikhonova <anna.tikhonova@intel.com>
11127 Ilya Tocar <ilya.tocar@intel.com>
11128 Andrey Turetskiy <andrey.turetskiy@intel.com>
11129 Ilya Verbin <ilya.verbin@intel.com>
11130 Kirill Yukhin <kirill.yukhin@intel.com>
11131 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11133 * common/config/i386/i386-common.c
11134 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11135 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11136 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11137 (ix86_handle_option): Handle OPT_mavx512bw.
11138 * config/i386/cpuid.h (bit_AVX512BW): Define.
11139 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11140 set -mavx512bw accordingly.
11141 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11142 OPTION_MASK_ISA_AVX512BW.
11143 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11144 (ix86_option_override_internal): Define PTA_AVX512BW, handle
11145 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11146 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11147 * config/i386/i386.h (TARGET_AVX512BW): Define.
11148 (TARGET_AVX512BW_P(x)): Ditto.
11149 * config/i386/i386.opt: Add mavx512bw.
11151 2014-08-11 Richard Biener <rguenther@suse.de>
11153 PR tree-optimization/62070
11154 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11155 Remove SSA checking.
11157 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11159 * asan.c (asan_check_flags): New enum.
11160 (build_check_stmt_with_calls): Removed function.
11161 (build_check_stmt): Split inlining logic to
11162 asan_expand_check_ifn.
11163 (instrument_derefs): Rename parameter.
11164 (instrument_mem_region_access): Rename parameter.
11165 (instrument_strlen_call): Likewise.
11166 (asan_expand_check_ifn): New function.
11167 (asan_instrument): Remove old code.
11168 (pass_sanopt::execute): Change handling of
11169 asan-instrumentation-with-call-threshold.
11170 (asan_clear_shadow): Fix formatting.
11171 (asan_function_start): Likewise.
11172 (asan_emit_stack_protection): Likewise.
11173 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11174 Update description.
11175 * internal-fn.c (expand_ASAN_CHECK): New function.
11176 * internal-fn.def (ASAN_CHECK): New internal function.
11177 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11178 Update description.
11179 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11180 * tree.c: Small comment fix.
11182 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11184 * gimple.c (gimple_call_fnspec): Support internal functions.
11185 (gimple_call_return_flags): Use const.
11186 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11187 * internal-fn.def: Add fnspec information.
11188 * internal-fn.h (internal_fn_fnspec): New function.
11189 (init_internal_fns): Declare new function.
11190 * internal-fn.c (internal_fn_fnspec_array): New global variable.
11191 (init_internal_fns): New function.
11192 * tree-core.h: Update macro call.
11193 * tree.c (build_common_builtin_nodes): Initialize internal fns.
11195 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
11197 * lto-streamer.h (struct output_block::symbol): Change from
11198 struct symtab_node to plain symtab_node.
11199 (referenced_from_this_partition_p): Change first parameter
11200 from struct symtab_node to plain symtab_node.
11202 2014-08-10 Marek Polacek <polacek@redhat.com>
11205 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11207 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
11209 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11210 DECL correctly; do not give up on types in static storage.
11212 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
11214 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11216 2014-08-09 Roman Gareev <gareevroman@gmail.com>
11218 * graphite-isl-ast-to-gimple.c:
11219 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11221 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11223 2014-08-08 Guozhi Wei <carrot@google.com>
11225 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11227 2014-08-08 Cary Coutant <ccoutant@google.com>
11229 * dwarf2out.c (get_skeleton_type_unit): Remove.
11230 (output_skeleton_debug_sections): Remove skeleton type units.
11231 (output_comdat_type_unit): Likewise.
11232 (dwarf2out_finish): Likewise.
11234 2014-08-07 Yi Yang <ahyangyi@google.com>
11236 * predict.c (expr_expected_value_1): Remove the redundant assignment.
11238 2014-08-08 Richard Biener <rguenther@suse.de>
11240 * lto-streamer.h (struct lto_input_block): Make it a class
11241 with a constructor.
11242 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11243 (struct lto_function_header, struct lto_simple_header,
11244 struct lto_simple_header_with_strings,
11245 struct lto_decl_header, struct lto_function_header): Make
11246 a simple inheritance hieararchy. Remove unused fields.
11247 (struct lto_asm_header): Remove.
11248 * lto-streamer-out.c (produce_asm): Adjust.
11249 (lto_output_toplevel_asms): Likewise.
11250 (produce_asm_for_decls): Likewise.
11251 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11252 * data-streamer-in.c (string_for_index): Likewise.
11253 * ipa-inline-analysis.c (inline_read_section): Likewise.
11254 * ipa-prop.c (ipa_prop_read_section): Likewise.
11255 (read_replacements_section): Likewise.
11256 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11257 * lto-section-in.c (lto_create_simple_input_block): Likewise.
11258 (lto_destroy_simple_input_block): Likewise.
11259 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11260 (lto_input_toplevel_asms): Likewise.
11262 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11263 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11264 Anna Tikhonova <anna.tikhonova@intel.com>
11265 Ilya Tocar <ilya.tocar@intel.com>
11266 Andrey Turetskiy <andrey.turetskiy@intel.com>
11267 Ilya Verbin <ilya.verbin@intel.com>
11268 Kirill Yukhin <kirill.yukhin@intel.com>
11269 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11271 * common/config/i386/i386-common.c
11272 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11273 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11274 (ix86_handle_option): Handle OPT_mavx512dq.
11275 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11276 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11277 set -mavx512dq accordingly.
11278 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11279 OPTION_MASK_ISA_AVX512DQ.
11280 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11281 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11282 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11283 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11284 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11285 (TARGET_AVX512DQ_P(x)): Ditto.
11286 * config/i386/i386.opt: Add mavx512dq.
11288 2014-08-08 Richard Biener <rguenther@suse.de>
11290 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11291 target_percent, target_percent_s): Export.
11292 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11293 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11294 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11295 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11296 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11297 Move to gimple-fold.c.
11298 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11300 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11301 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11302 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11303 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11304 (rewrite_call_expr_array): Remove.
11305 (fold_builtin_sprintf_chk): Likewise.
11306 (fold_builtin_snprintf_chk): Likewise.
11307 (fold_builtin_varargs): Remove handling of sprintf_chk,
11308 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11309 (gimple_fold_builtin_sprintf_chk): Remove.
11310 (gimple_fold_builtin_snprintf_chk): Likewise.
11311 (gimple_fold_builtin_varargs): Likewise.
11312 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11313 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11314 * gimple.c (gimple_seq_add_seq_without_update): New function.
11315 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11316 * gimple-fold.c: Include output.h.
11317 (gsi_replace_with_seq_vops): New function, split out from ...
11318 (gimplify_and_update_call_from_tree): ... here.
11319 (replace_call_with_value): New function.
11320 (replace_call_with_call_and_fold): Likewise.
11321 (var_decl_component_p): Moved from builtins.c.
11322 (gimple_fold_builtin_memory_op): Moved from builtins.c
11323 fold_builtin_memory_op and rewritten to GIMPLE.
11324 (gimple_fold_builtin_memset): Likewise.
11325 (gimple_fold_builtin_strcpy): Likewise.
11326 (gimple_fold_builtin_strncpy): Likewise.
11327 (gimple_fold_builtin_strcat): Likewise.
11328 (gimple_fold_builtin_fputs): Likewise.
11329 (gimple_fold_builtin_memory_chk): Likewise.
11330 (gimple_fold_builtin_stxcpy_chk): Likewise.
11331 (gimple_fold_builtin_stxncpy_chk): Likewise.
11332 (gimple_fold_builtin_snprintf_chk): Likewise.
11333 (gimple_fold_builtin_sprintf_chk): Likewise.
11334 (gimple_fold_builtin_strlen): New function.
11335 (gimple_fold_builtin_with_strlen): New function split out from
11336 gimple_fold_builtin.
11337 (gimple_fold_builtin): Change signature and handle
11338 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11339 here. Call gimple_fold_builtin_with_strlen.
11340 (gimple_fold_call): Adjust.
11342 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11344 * calls.c (precompute_arguments): Check
11345 promoted_for_signed_and_unsigned_p and set the promoted mode.
11346 (promoted_for_signed_and_unsigned_p): New function.
11347 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11348 and set the promoted mode.
11349 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11350 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11351 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11354 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11356 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11357 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11358 (expand_call): Likewise.
11359 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11360 to get promoted mode.
11361 * combine.c (record_promoted_value): Skip > 0 comparison with
11362 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11363 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11364 of SUBREG_PROMOTED_UNSIGNED_P.
11365 (convert_modes): Likewise.
11366 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11367 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11368 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11369 SUBREG_PROMOTED_UNSIGNED_SET.
11370 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11371 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11372 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11373 SUBREG_PROMOTED_SET.
11374 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11375 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11376 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11377 of SUBREG_PROMOTED_UNSIGNED_P.
11378 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11379 (SUBREG_PROMOTED_SET): New define.
11380 (SUBREG_PROMOTED_GET): Likewise.
11381 (SUBREG_PROMOTED_SIGN): Likewise.
11382 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11383 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11384 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11385 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11386 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11387 (nonzero_bits1): Skip > 0 comparison with the results as
11388 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11389 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11390 of !SUBREG_PROMOTED_UNSIGNED_P.
11391 * simplify-rtx.c (simplify_unary_operation_1): Use new
11392 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11393 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11394 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11395 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11397 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11399 * ipa-devirt.c: Include gimple-pretty-print.h
11400 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11402 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11403 (get_polymorphic_call_info): Fix return value
11404 (type_change_info): New sturcture based on ipa-prop
11406 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11407 based on ipa-prop variant.
11408 (extr_type_from_vtbl_ptr_store): New function
11409 based on ipa-prop variant.
11410 (record_known_type): New function.
11411 (check_stmt_for_type_change): New function.
11412 (get_dynamic_type): New function.
11413 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11414 * tree-ssa-pre.c: ipa-utils.h
11415 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11416 machinery; sanity check with ipa-prop devirtualization.
11417 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11420 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11422 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11423 * alias.c, cfgexpand.c, cgraphbuild.c,
11424 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11425 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11426 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11427 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11428 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11429 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11430 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11431 dse.c, except.c, gengtype.c, gimple-expr.c,
11432 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11433 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11434 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11435 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11436 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11437 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11439 * pointer-set.c: Remove file.
11440 * pointer-set.h: Remove file.
11442 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11444 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11445 * config/arm/types.md (f_sels, f_seld): Delete.
11447 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11449 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11450 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11451 (aarch64_movdi_<mode>high): Likewise.
11452 (aarch64_mov<mode>high_di): Likewise.
11453 (aarch64_movdi_<mode>low): Likewise.
11454 (aarch64_mov<mode>low_di): Likewise.
11455 (aarch64_movtilow_tilow): Likewise.
11456 Add comment explaining usage of fp,simd attributes and of
11457 TARGET_FLOAT and TARGET_SIMD.
11459 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11460 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11462 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11463 Use MOVN when one of the half-words is 0xffff.
11465 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11467 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11469 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11471 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11472 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11473 (rfs_str): String corresponding to RFS_* constants.
11474 (rank_for_schedule_stats_t): New typedef.
11475 (rank_for_schedule_stats): New static variable.
11476 (rfs_result): New static function.
11477 (rank_for_schedule): Track statistics for deciding heuristics.
11478 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11480 (ready_sort): Use them for debug printouts.
11481 (schedule_block): Init statistics state. Print statistics on
11482 rank_for_schedule decisions.
11484 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11486 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11488 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11490 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11493 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11495 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11496 function to not conflict.
11497 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11498 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11499 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11500 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11501 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11504 2014-08-07 Marek Polacek <polacek@redhat.com>
11506 * fold-const.c (fold_binary_loc): Add folding of
11507 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11509 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11511 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11512 instead of type size.
11513 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11515 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11517 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11518 (*thumb1_movqi_insn): Likewise.
11519 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11521 2014-08-07 Tom de Vries <tom@codesourcery.com>
11523 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11524 (glibc_2_11_or_earlier): Remove effective-target keywords.
11526 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11528 * config/arm/arm.c (bdesc_2arg): Fix typo.
11529 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11531 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11533 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11535 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11538 * haifa-sched.c (advance_one_cycle): Fix dump.
11539 (schedule_block): Don't advance cycle if we are already at the
11540 beginning of the cycle.
11542 2014-08-06 Martin Jambor <mjambor@suse.cz>
11545 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11547 2014-08-06 Richard Biener <rguenther@suse.de>
11550 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11552 (lto_input_tree): Pop SCCs here.
11554 2014-08-06 Richard Biener <rguenther@suse.de>
11556 PR tree-optimization/61320
11557 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11558 handle misaligned loads.
11560 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11562 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11563 (aarch64_expand_vec_perm_const): Check for dup before zip.
11565 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11567 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11568 CONST_INT_P instead of GET_CODE and compare.
11569 (aarch64_select_cc_mode): Likewise.
11570 (aarch64_print_operand): Likewise.
11571 (aarch64_rtx_costs): Likewise.
11572 (aarch64_simd_valid_immediate): Likewise.
11573 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11574 (aarch64_simd_emit_pair_result_insn): Likewise.
11576 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11578 * gdbhooks.py (find_gcc_source_dir): New helper function.
11579 (class PassNames): New class, locating and parsing passes.def.
11580 (class BreakOnPass): New command "break-on-pass".
11582 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11584 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11587 2014-08-05 Richard Biener <rguenther@suse.de>
11589 PR rtl-optimization/61672
11590 * emit-rtl.h (mem_attrs_eq_p): Declare.
11591 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11592 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11593 * cfgcleanup.c (merge_memattrs): Likewise.
11594 Include emit-rtl.h.
11596 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11598 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11599 rather than singleton vectors.
11600 (vqdmlsls_lane_s32): Likewise.
11602 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11604 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11605 Use VSDQ_HSI mode iterator.
11606 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11607 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11608 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11609 Use BUILTIN_VDQHS macro.
11610 (sqrdmulh_laneq): Likewise.
11611 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11612 (vqdmlals_laneq_s32): Likewise.
11613 (vqdmlslh_laneq_s16): Likewise.
11614 (vqdmlsls_laneq_s32): Likewise.
11615 (vqdmulhh_laneq_s16): Likewise.
11616 (vqdmulhs_laneq_s32): Likewise.
11617 (vqrdmulhh_laneq_s16): Likewise.
11618 (vqrdmulhs_laneq_s32): Likewise.
11620 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11622 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11623 (vmuld_laneq_f64): Likewise.
11624 (vmuls_laneq_f32): Likewise.
11625 (vmul_n_f64): Likewise.
11626 (vmuld_lane_f64): Reimplement in C.
11627 (vmuls_lane_f32): Likewise.
11629 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11631 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11633 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11635 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11637 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11638 (rbitsi2): Likewise.
11639 (*arm_rev): Set predicable and predicable_short_it attributes.
11641 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11643 * convert.c (convert_to_integer): Guard transformation to lrint by
11646 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11648 * config/aarch64/aarch64-builtins.c
11649 (aarch64_simd_builtin_type_mode): Delete.
11650 (v8qi_UP): Remap to V8QImode.
11651 (v4hi_UP): Remap to V4HImode.
11652 (v2si_UP): Remap to V2SImode.
11653 (v2sf_UP): Remap to V2SFmode.
11654 (v1df_UP): Remap to V1DFmode.
11655 (di_UP): Remap to DImode.
11656 (df_UP): Remap to DFmode.
11657 (v16qi_UP):V16QImode.
11658 (v8hi_UP): Remap to V8HImode.
11659 (v4si_UP): Remap to V4SImode.
11660 (v4sf_UP): Remap to V4SFmode.
11661 (v2di_UP): Remap to V2DImode.
11662 (v2df_UP): Remap to V2DFmode.
11663 (ti_UP): Remap to TImode.
11664 (ei_UP): Remap to EImode.
11665 (oi_UP): Remap to OImode.
11666 (ci_UP): Map to CImode.
11667 (xi_UP): Remap to XImode.
11668 (si_UP): Remap to SImode.
11669 (sf_UP): Remap to SFmode.
11670 (hi_UP): Remap to HImode.
11671 (qi_UP): Remap to QImode.
11672 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11673 (VAR1): Build builtin name.
11674 (aarch64_init_simd_builtins): Remove dead code.
11676 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11678 * graphite-isl-ast-to-gimple.c:
11679 (set_options): New function.
11680 (scop_to_isl_ast): Add calling of set_options.
11682 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11684 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11685 (analyze_iv_to_split_insn): Don't initialize them.
11686 (get_ivts_expr): Removed.
11687 (allocate_basic_variable, insert_base_initialization): Use
11688 SET_SRC instead of *get_ivts_expr.
11689 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11691 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11693 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11694 (translate_isl_ast_for_loop): Add checking of the
11695 flag_loop_parallelize_all.
11696 (ast_build_before_for): New function.
11697 (scop_to_isl_ast): Add checking of the
11698 flag_loop_parallelize_all.
11699 * graphite-dependences.c: Move the defenition of the
11700 scop_get_dependences from graphite-optimize-isl.c to this file.
11701 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11702 (carries_deps): Add checking of the x's value.
11703 * graphite-optimize-isl.c: Move the defenition of the
11704 scop_get_dependences to graphite-dependences.c.
11705 * graphite-poly.h: Add declarations of scop_get_dependences
11708 2014-08-04 Rohit <rohitarulraj@freescale.com>
11711 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11713 (alt_reg_names): Likewise.
11714 (rs6000_dwarf_register_span): For SPE high registers, replace
11715 dwarf register numbers with GCC hard register numbers.
11716 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11717 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11718 register number for the corresponding GCC hard register number.
11719 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11720 newly added GCC hard register numbers for SPE high registers.
11721 (DWARF_FRAME_REGISTERS): Likewise.
11722 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11723 (DWARF_FRAME_REGNUM): Likewise.
11724 (FIXED_REGISTERS): Likewise.
11725 (CALL_USED_REGISTERS): Likewise.
11726 (CALL_REALLY_USED_REGISTERS): Likewise.
11727 (REG_ALLOC_ORDER): Likewise.
11728 (enum reg_class): Likewise.
11729 (REG_CLASS_NAMES): Likewise.
11730 (REG_CLASS_CONTENTS): Likewise.
11731 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11733 2014-08-04 Richard Biener <rguenther@suse.de>
11735 * gimple-fold.h (gimple_fold_builtin): Remove.
11736 * gimple-fold.c (gimple_fold_builtin): Make static.
11737 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11738 fold_stmt, not gimple_fold_builtin.
11740 2014-08-04 Martin Liska <mliska@suse.cz>
11742 * cgraph.h (csi_end_p): Removed.
11743 (csi_next): Likewise.
11744 (csi_node): Likewise.
11745 (csi_start): Likewise.
11746 (cgraph_node_in_set_p): Likewise.
11747 (cgraph_node_set_size): Likewise.
11748 (vsi_end_p): Likewise.
11749 (vsi_next): Likewise.
11750 (vsi_node): Likewise.
11751 (vsi_start): Likewise.
11752 (varpool_node_set_size): Likewise.
11753 (cgraph_node_set_nonempty_p): Likewise.
11754 (varpool_node_set_nonempty_p): Likewise.
11755 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11757 * ipa-inline-transform.c: Likewise.
11758 * ipa-utils.c (cgraph_node_set_new): Removed.
11759 (cgraph_node_set_add): Likewise.
11760 (cgraph_node_set_remove): Likewise.
11761 (cgraph_node_set_find): Likewise.
11762 (dump_cgraph_node_set): Likewise.
11763 (debug_cgraph_node_set): Likewise.
11764 (free_cgraph_node_set): Likewise.
11765 (varpool_node_set_new): Likewise.
11766 (varpool_node_set_add): Likewise.
11767 (varpool_node_set_remove): Likewise.
11768 (varpool_node_set_find): Likewise.
11769 (dump_varpool_node_set): Likewise.
11770 (free_varpool_node_set): Likewise.
11771 (debug_varpool_node_set): Likewise.
11772 * tree-emutls.c (struct tls_var_data):
11773 (emutls_index): Removed.
11774 (emutls_decl): Likewise.
11775 (gen_emutls_addr): Function implementation uses newly added
11776 hash_map<varpool_node *, tls_var_data>.
11777 (clear_access_vars): Likewise.
11778 (create_emultls_var): Likewise.
11779 (ipa_lower_emutls): Likewise.
11780 (reset_access): New function.
11782 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11784 * config/i386/i386.c (ix86_option_override_internal): Add
11785 PTA_RDRND and PTA_MOVBE for bdver4.
11787 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11788 James Greenhalgh <james.greenhalgh@arm.com>
11790 * doc/md.texi (clrsb): Document.
11791 (clz): Change reference to x into operand 1.
11793 (popcount): Likewise.
11795 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11798 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11799 move to subtarget in serial version if result is ignored.
11801 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11802 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11804 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11805 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11806 (sched_analyze_insn): Update use of try_group_insn to
11807 sched_macro_fuse_insns.
11808 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11809 arguments that are not conditional jumps.
11811 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11813 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11814 family information. Handle BTVER2 cpu with cpuid family value.
11816 2014-08-04 Tom de Vries <tom@codesourcery.com>
11818 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11819 (glibc_2_11_or_earlier): Document effective-target keywords.
11821 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11823 * ipa-devirt.c (odr_type_warn_count): Add type.
11824 (possible_polymorphic_call_targets): Set it.
11825 (ipa_devirt): Use it.
11827 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11829 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11831 * ipa-devirt.c: Include hash-map.h
11832 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11833 (clear_speculation): Break out of ...
11834 (get_class_context): ... here; speed up handling obviously useless
11836 (odr_type_warn_count, decl_warn_count): New structures.
11837 (final_warning_record): New structure.
11838 (final_warning_records): New static variable.
11839 (possible_polymorphic_call_targets): Cleanup handling of
11840 speculative info; do not build speculation when user do not care;
11841 record info about warnings when asked for.
11842 (add_decl_warning): New function.
11843 (type_warning_cmp): New function.
11844 (decl_warning_cmp): New function.
11845 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11846 (gate): Enable pass when warnings are requested.
11847 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11850 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11852 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11854 (hash_map::remove): New method.
11855 (hash_map::traverse): New method.
11856 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11857 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11858 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11859 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11860 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11861 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11864 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11866 * hash-set.h: new File.
11867 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11868 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11869 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11870 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11871 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11872 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11873 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11874 varpool.c: Use hash_set instead of pointer_set.
11876 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11878 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11880 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11882 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11883 for frame access when strict_p is false.
11885 2014-08-01 Renlin Li <renlin.li@arm.com>
11886 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11888 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11889 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11890 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11892 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11894 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11895 aarch64_mem_pair_offset.
11897 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11899 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11901 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11902 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11904 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11906 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11908 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11910 PR regression/61510
11911 * cgraphunit.c (analyze_functions): Use get_create rather than get
11912 for decls which are clones of abstract functions.
11914 2014-08-01 Martin Liska <mliska@suse.cz>
11916 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11917 * ipa-prop.h (count_formal_params): Global function created from static.
11918 * ipa-prop.c (count_formal_params): Likewise.
11919 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11920 profiles for semantically equivalent functions.
11921 * passes.c (do_per_function): If we load body of a function
11922 during WPA, this condition should behave same.
11923 * varpool.c (ctor_for_folding): More tolerant assert for variable
11924 aliases created during WPA.
11926 2014-08-01 Martin Liska <mliska@suse.cz>
11928 * doc/invoke.texi (Options That Control Optimization): Documentation
11929 for -foptimize-strlen introduced. Optimization levels default options
11932 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11934 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11935 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11936 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11938 * stor-layout.h (min_align_of_type): New prototype.
11939 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11940 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11942 * ubsan.c: Include builtins.h.
11943 (ubsan_expand_bounds_ifn): Change return type to bool,
11944 always return true.
11945 (ubsan_expand_null_ifn): Change return type to bool, change
11946 argument to gimple_stmt_iterator *. Handle both null and alignment
11947 sanitization, take type from ckind argument's type rather than
11949 (instrument_member_call): Removed.
11950 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11951 Handle both null and alignment sanitization, don't say whole
11952 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11953 call instead of 2 argument.
11954 (instrument_null): Adjust instrument_mem_ref caller. Don't
11955 instrument calls here.
11956 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11957 like SANITIZE_NULL.
11958 * stor-layout.c (min_align_of_type): New function.
11959 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11960 Or it into SANITIZE_UNDEFINED.
11961 * doc/invoke.texi (-fsanitize=alignment): Document.
11963 2014-07-31 Andi Kleen <ak@linux.intel.com>
11965 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11967 2014-07-31 Andi Kleen <ak@linux.intel.com>
11969 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11971 (vn_reference_compute_hash): Dito.
11972 (vn_nary_op_compute_hash): Dito.
11973 (vn_phi_compute_hash): Dito.
11974 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11976 2014-07-31 Andi Kleen <ak@linux.intel.com>
11978 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11979 Rename to inchash:add_expr_commutative. Convert to inchash.
11980 (iterative_hash_hashable_expr): Rename to
11981 inchash:add_hashable_expr. Convert to inchash.
11982 (avail_expr_hash): Dito.
11984 2014-07-31 Andi Kleen <ak@linux.intel.com>
11986 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11987 Convert to inchash.
11989 2014-07-31 Andi Kleen <ak@linux.intel.com>
11991 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11993 2014-07-31 Andi Kleen <ak@linux.intel.com>
11995 * Makefile.in (OBJS): Add rtlhash.o
11996 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11997 (loc_checksum): Dito.
11998 (loc_checksum_ordered): Dito.
11999 (hash_loc_operands): Dito.
12001 (hash_loc_list): Dito.
12002 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12003 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12004 * rtlhash.c: New file.
12005 * rtlhash.h: New file.
12007 2014-07-31 Andi Kleen <ak@linux.intel.com>
12009 * inchash.h (inchash): Change inchash class to namespace.
12010 (class hash): ... Rename from inchash.
12011 (add_object): Move from macro to class template.
12012 * lto-streamer-out.c (hash_tree): Change inchash
12014 * tree.c (build_type_attribute_qual_variant): Dito.
12015 (type_hash_list): Dito.
12016 (attribute_hash_list): Dito.
12017 (iterative_hstate_expr): Rename to inchash::add_expr
12018 (build_range_type_1): Change inchash to inchash::hash
12019 and use hash::add_expr.
12020 (build_array_type_1): Dito.
12021 (build_function_type): Dito
12022 (build_method_type_directly): Dito.
12023 (build_offset_type): Dito.
12024 (build_complex_type): Dito.
12025 (make_vector_type): Dito.
12026 * tree.h (iterative_hash_expr): Dito.
12028 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
12030 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12032 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12034 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12035 correct alphabetical position.
12036 (vpaddd_f64): Rewrite using builtins.
12037 (vpaddd_s64): Move to correct alphabetical position.
12040 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
12043 * config/sh/sh.c (sh_legitimate_address_p,
12044 sh_legitimize_reload_address): Handle reg+reg address modes when
12045 ALLOW_INDEXED_ADDRESS is false.
12046 * config/sh/predicates.md (general_movsrc_operand,
12047 general_movdst_operand): Likewise.
12049 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12051 * config/aarch64/aarch64-builtins.c
12052 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12055 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12057 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12058 the generated mask based on BYTES_BIG_ENDIAN.
12059 (aarch64_simd_check_vect_par_cnst_half): New.
12060 * config/aarch64/aarch64-protos.h
12061 (aarch64_simd_check_vect_par_cnst_half): New.
12062 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12063 the check out to aarch64_simd_check_vect_par_cnst_half.
12064 (vect_par_cnst_lo_half): Likewise.
12065 * config/aarch64/aarch64-simd.md
12066 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12067 (move_hi_quad_<mode>): Always generate a low mask.
12069 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12071 * doc/invoke.texi (AVR Options): Add documentation about
12072 __AVR_DEVICE_NAME__ built-in macro.
12074 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
12077 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12078 constraints are satisfied.
12079 (<shift>di3_neon): Likewise.
12081 2014-07-31 Richard Biener <rguenther@suse.de>
12083 PR tree-optimization/61964
12084 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12085 by structural equality.
12087 2014-07-31 Yury Gribov <y.gribov@samsung.com>
12089 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12090 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12091 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12093 * gcc.c (sanitize_spec_function): Support new option.
12094 (SANITIZER_SPEC): Remove now redundant check.
12095 * opts.c (common_handle_option): Support new option.
12096 (finish_options): Check for incompatibilities.
12097 * toplev.c (process_options): Split userspace-specific checks.
12099 2014-07-31 Richard Biener <rguenther@suse.de>
12101 * lto-streamer.h (struct output_block): Remove global.
12102 (struct data_in): Remove labels, num_named_labels and
12103 num_unnamed_labels.
12104 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12105 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12107 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
12110 * common.opt (-Wreturn-local-addr): Moved from c.opt.
12111 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12112 (isolate_path): New argument to avoid inserting a trap.
12113 (find_implicit_erroneous_behaviour): Handle returning the address
12114 of a local variable.
12115 (find_explicit_erroneous_behaviour): Likewise.
12117 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
12120 * toplev.c (init_random_seed): Move piece of code never called to
12122 (set_random_seed): see above.
12124 2014-07-31 Tom de Vries <tom@codesourcery.com>
12126 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12128 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12130 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12131 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12133 2014-07-31 Richard Biener <rguenther@suse.de>
12135 * data-streamer.h (streamer_write_data_stream): Declare here,
12137 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
12138 * lto-cgraph.c (lto_output_node): Adjust.
12139 (lto_output_varpool_node): Likewise.
12140 * data-streamer-out.c (streamer_string_index): Likewise.
12141 (streamer_write_data_stream, lto_append_block): Move from ...
12142 * lto-section-out.c (lto_output_data_stream,
12143 lto_append_block): ... here.
12145 2014-07-30 Mike Stump <mikestump@comcast.net>
12147 * configure.ac: Also check for popen.
12148 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12149 * configure: Regenerate.
12150 * config.in: Regenerate.
12152 2014-07-30 Martin Jambor <mjambor@suse.cz>
12154 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12155 parameter to gimple.
12157 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12159 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12160 address as second parameter to __tpf_eh_return routine.
12162 2014-07-30 Jiong Wang <jiong.wang@arm.com>
12164 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12167 2014-07-30 Tom Tromey <tromey@redhat.com>
12170 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12171 * doc/extend.texi (Type Attributes): Document designated_init
12174 2014-07-30 Roman Gareev <gareevroman@gmail.com>
12176 * graphite-isl-ast-to-gimple.c:
12177 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12178 (gcc_expression_from_isl_expression): Pass type to
12179 gcc_expression_from_isl_ast_expr_id.
12181 2014-07-30 Richard Biener <rguenther@suse.de>
12183 * lto-streamer.h (lto_write_data): New function.
12184 * langhooks.c (lhd_append_data): Do not free block.
12185 * lto-section-out.c (lto_write_data): New function writing
12186 raw data to the current section.
12187 (lto_write_stream): Adjust for langhook semantic change.
12188 (lto_destroy_simple_output_block): Write header directly.
12189 * lto-opts.c (lto_write_options): Write options directly.
12190 * lto-streamer-out.c (produce_asm): Write heaeder directly.
12191 (lto_output_toplevel_asms): Likewise.
12192 (copy_function_or_variable): Copy data directly.
12193 (write_global_references): Output index table directly.
12194 (lto_output_decl_state_refs): Likewise.
12195 (write_symbol): Write data directly.
12196 (produce_symtab): Adjust.
12197 (produce_asm_for_decls): Output header and refs directly.
12199 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12201 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12202 to speculative_targets
12203 (get_class_context): Fix handling of contextes without outer type;
12204 avoid matching non-polymorphic types in LTO.
12205 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12206 parameter to speculative_targetsp; handle speculation.
12207 (dump_possible_polymorphic_call_targets): Update dumping.
12209 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12211 * common.opt (Wodr): Enable by default.
12213 2014-07-29 Olivier Hainque <hainque@adacore.com>
12215 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12217 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
12220 * gengtype.c (strtoken): New function.
12221 (create_user_defined_type): Replace strtok with strtoken.
12223 2014-07-29 Nathan Sidwell <nathan@acm.org>
12225 * gcov-io.c (gcov_var): Make hidden.
12226 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12227 (gcov_do_dump): Declare.
12228 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12230 2014-07-29 Martin Jambor <mjambor@suse.cz>
12232 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12233 parameter to gimple.
12234 (sra_modify_assign): Likewise.
12236 2014-07-29 Richard Biener <rguenther@suse.de>
12238 PR middle-end/52478
12239 * expr.c (expand_expr_real_2): Revert last change.
12241 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12243 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12244 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12245 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12247 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12248 (contains_type_p): Forward declare.
12249 (polymorphic_call_target_hasher::hash): Hash speculative info.
12250 (polymorphic_call_target_hasher::equal): Compare speculative info.
12251 (get_class_context): Handle speuclation.
12252 (contains_type_p): Update.
12253 (get_polymorphic_call_info_for_decl): Update.
12254 (walk_ssa_copies): Break out from ...
12255 (get_polymorphic_call_info): ... here; set speculative context
12257 * ipa-prop.c (ipa_write_indirect_edge_info,
12258 ipa_read_indirect_edge_info): Stream speculative context.
12259 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12260 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12261 SPECULATIVE_MAYBE_DERIVED_TYPE).
12262 (possible_polymorphic_call_targets overriders): Update.
12263 (dump_possible_polymorphic_call_targets overriders): Update.
12264 (dump_possible_polymorphic_call_target_p overriders): Update.
12266 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12268 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12269 ipa-devirt path; fix thinko there.
12271 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
12273 * config/i386/i386.c (ix86_return_in_memory): Replace one
12274 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12276 2014-07-28 Marek Polacek <polacek@redhat.com>
12278 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12280 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12282 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12283 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12284 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12285 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12286 (USE_LD_AS_NEEDED): Likewise.
12287 (ASM_APP_ON): Likewise.
12288 (ASM_APP_OFF): Likewise.
12289 (TARGET_POSIX_IO): Likewise.
12290 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12291 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12292 (USE_LD_AS_NEEDED): Likewise.
12293 (ASM_APP_ON): Likewise.
12294 (ASM_APP_OFF): Likewise.
12295 (TARGET_POSIX_IO): Likewise.
12297 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12299 PR middle-end/61734
12300 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12301 operators other than the equality operators.
12303 2014-07-28 Richard Biener <rguenther@suse.de>
12305 PR middle-end/52478
12306 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12307 sure to register SImode ones, not only >= word_mode ones.
12308 * expr.c (expand_expr_real_2): When expanding -ftrapv
12309 binops do not use OPTAB_LIB_WIDEN.
12311 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12313 PR middle-end/61919
12314 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12315 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12316 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12317 inserting them in the insn stream.
12319 2014-07-28 Marek Polacek <polacek@redhat.com>
12321 PR middle-end/61913
12322 * common.opt (Wodr): Add Var.
12324 2014-07-28 Richard Biener <rguenther@suse.de>
12326 PR tree-optimization/61921
12327 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12328 if there is a varpool node before dereferencing it.
12330 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12332 * graphite-sese-to-poly.c:
12333 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12334 id of the pbb), which contains pointer to the pbb1.
12336 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12338 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12340 * graphite-isl-ast-to-gimple.c:
12341 (graphite_create_new_guard): New function.
12342 (translate_isl_ast_node_if): New function.
12343 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12345 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12347 2014-07-27 Anthony Green <green@moxielogic.com>
12349 * config.gcc: Add moxie-*-moxiebox* configuration.
12350 * config/moxie/moxiebox.h: New file.
12352 2014-07-26 Andrew Pinski <apinski@cavium.com>
12354 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12355 from the read only register.
12357 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12359 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12360 as the allocation class if it isn't likely to be spilled.
12362 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12364 * rtl.h (tls_referenced_p): Declare.
12365 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12366 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12367 (mips_cannot_force_const_mem): Use tls_referenced_p.
12368 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12369 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12370 instead of pa_tls_referenced_p.
12371 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12372 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12373 (pa_legitimate_constant_p): Likewise.
12374 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12375 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12376 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12377 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12378 rs6000_tls_referenced_p.
12379 (rs6000_tls_symbol_ref_1): Delete.
12381 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12384 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12385 Optimize inverse of a VEC_CONCAT.
12387 2014-07-25 Xinliang David Li <davidxl@google.com>
12389 * params.def: New parameter.
12390 * coverage.c (get_coverage_counts): Check new flag.
12391 (coverage_compute_profile_id): Check new flag.
12392 (coverage_begin_function): Check new flag.
12393 (coverage_end_function): Check new flag.
12394 * value-prof.c (coverage_node_map_initialized_p): New function.
12395 (init_node_map): Populate map with all functions.
12396 * doc/invoke.texi: Document new parameter.
12398 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12399 Richard Biener <rguenther@suse.de>
12401 * lto-streamer-out.c (struct sccs): Turn to ...
12402 (class DFS): ... this one; refactor the DFS walk so it can
12403 be re-done on per-SCC basis.
12404 (DFS::DFS): New constructor.
12405 (DFS::~DFS): New destructor.
12406 (hash_tree): Add new MAP argument holding in-SCC hash values;
12407 remove POINTER_TYPE hashing hack.
12408 (scc_entry_compare): Rename to ...
12409 (DFS::scc_entry_compare): ... this one.
12410 (hash_scc): Rename to ...
12411 (DFS::hash_scc): ... this one; pass output_block instead
12412 of streamer_cache; work harder to get unique and stable SCC
12414 (DFS_write_tree): Rename to ...
12415 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12416 (lto_output_tree): Update.
12418 2014-07-25 Andi Kleen <ak@linux.intel.com>
12420 * lto-streamer-out.c (hash_tree): Convert to inchash.
12422 2014-07-25 Andi Kleen <ak@linux.intel.com>
12424 * tree.c (build_type_attribute_qual_variant): Use inchash.
12425 (type_hash_list): Dito.
12426 (attribute_hash_list): Dito
12427 (iterative_hstate_expr): Dito.
12428 (iterative_hash_expr): Dito.
12429 (build_range_type_1): Dito.
12430 (build_array_type_1): Dito.
12431 (build_function_type): Dito.
12432 (build_method_type_directly): Dito.
12433 (build_offset_type): Dito.
12434 (build_complex_type): Dito.
12435 (make_vector_type): Dito.
12436 * tree.h (iterative_hash_expr): Add compat wrapper.
12437 (iterative_hstate_expr): Add.
12439 2014-07-25 Andi Kleen <ak@linux.intel.com>
12441 * Makefile.in (OBJS): Add inchash.o.
12442 (PLUGIN_HEADERS): Add inchash.h.
12443 * ipa-devirt.c: Include inchash.h.
12444 * lto-streamer-out.c: Dito.
12445 * tree-ssa-dom.c: Dito.
12446 * tree-ssa-pre.c: Dito.
12447 * tree-ssa-sccvn.c: Dito.
12448 * tree-ssa-tail-merge.c: Dito.
12450 * tree.c (iterative_hash_hashval_t): Move to ...
12451 (iterative_hash_host_wide_int): Move to ...
12452 * inchash.c: Here. New file.
12453 * tree.h (iterative_hash_hashval_t): Move to ...
12454 (iterative_hash_host_wide_int): Move to ...
12455 * inchash.h: Here. New file.
12457 2014-07-25 Richard Biener <rguenther@suse.de>
12459 PR middle-end/61762
12460 PR middle-end/61894
12461 * fold-const.c (native_encode_int): Add and handle offset
12462 parameter to do partial encodings of expr.
12463 (native_encode_fixed): Likewise.
12464 (native_encode_real): Likewise.
12465 (native_encode_complex): Likewise.
12466 (native_encode_vector): Likewise.
12467 (native_encode_string): Likewise.
12468 (native_encode_expr): Likewise.
12469 * fold-const.c (native_encode_expr): Add offset parameter
12471 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12472 (fold_ctor_reference): Handle all reads from tcc_constant
12475 2014-07-25 Richard Biener <rguenther@suse.de>
12477 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12478 as possibly unused.
12480 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12482 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12484 2014-07-24 Kyle McMartin <kyle@redhat.com>
12486 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12488 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12490 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12492 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12494 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12495 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12496 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12498 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12500 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12501 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12502 aggregate types. Instead, *all* aggregate types, except for single-
12503 element or homogeneous float/vector aggregates, are quadword-aligned
12504 if required by their type alignment. Issue -Wpsabi note when a type
12505 is now treated differently than before.
12507 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12509 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12510 does not fit fully into floating-point registers, and there is still
12511 space in the register parameter area, use GPRs to pass those parts
12512 of the argument. Issue -Wpsabi note if any parameter is now treated
12513 differently than before.
12514 (rs6000_arg_partial_bytes): Update.
12516 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12518 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12520 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12522 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12523 * toplev.c (initialize_rtl): Don't use it. Move previously
12524 "language-dependent" calls to...
12525 (backend_init): ...here.
12526 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12527 Assert that RTL initialization hasn't happend yet.
12529 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12531 PR rtl-optimization/61629
12532 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12533 they have already been initialized.
12535 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12537 PR middle-end/61268
12538 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12539 DECL_INCOMING_RTL and entry_parm.
12540 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12541 * calls.c (load_register_parameters): Likewise argument values.
12542 (emit_library_call_value_1, store_one_arg): Likewise argument
12544 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12546 * explow.c (validize_mem): Modify the argument in-place.
12548 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12550 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12551 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12553 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12555 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12556 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12558 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12560 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12561 (aarch64_save_callee_saves): New parameter "skip_wb".
12562 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12564 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12566 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12568 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12570 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12572 * graphite-isl-ast-to-gimple.c:
12573 (graphite_create_new_loop): Add calling of isl_id_free to properly
12574 decrement reference counts.
12576 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12578 2014-07-24 Martin Liska <mliska@suse.cz>
12579 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12581 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12582 (rs6000_code_end): Likewise.
12584 2014-07-24 Martin Liska <mliska@suse.cz>
12586 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12587 symtab_node funtion used.
12588 (rs6000_xcoff_declare_object_name): Likewise.
12590 2014-07-24 Martin Liska <mliska@suse.cz>
12592 * cgraphunit.c (compile): Correct function used.
12594 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12596 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12599 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12602 * varasm.c (bss_initializer_p): Handle offlined ctors.
12603 (align_variable, get_variable_align): Likewise.
12604 (make_decl_one_only): Likewise.
12605 (default_binds_local_p_1): Likewise.
12606 (decl_binds_to_current_def_p): Likewise.
12607 (get_variable_section): Get constructor if it is offlined.
12608 (assemble_variable_contents): Sanity check that the caller
12609 streamed in the ctor in LTO.
12611 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12613 * graphite-isl-ast-to-gimple.c:
12614 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12615 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12616 isl_ast_op_pdiv_r to the different case.
12618 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12620 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12622 PR middle-end/61876
12623 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12624 when flag_errno_math is on.
12626 2014-07-24 Martin Liska <mliska@suse.cz>
12628 * cgraph.h (varpool_node):
12629 (availability get_availability (void)):
12630 created from cgraph_variable_initializer_availability
12631 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12632 created from: cgraph_variable_initializer_availability
12633 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12634 (void finalize_named_section_flags (void)):
12635 created from varpool_finalize_named_section_flags
12636 (bool assemble_decl (void)): created from varpool_assemble_decl
12637 (void analyze (void)): created from varpool_analyze_node
12638 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12639 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12640 (void remove_initializer (void)): created from varpool_remove_initializer
12641 (tree get_constructor (void)): created from varpool_get_constructor
12642 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12643 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12644 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12645 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12646 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12647 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12648 (static bool output_variables (void)): created from varpool_output_variables
12649 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12650 created from varpool_extra_name_alias
12651 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12652 (static void dump_varpool (FILE *f)): created from dump_varpool
12653 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12654 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12655 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12656 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12657 (void assemble_aliases (void)): created from assemble_aliases
12659 2014-07-24 Martin Liska <mliska@suse.cz>
12661 * cgraph.h (symtab_node):
12662 (void register_symbol (void)): created from symtab_register_node
12663 (void remove (void)): created from symtab_remove_node
12664 (void dump (FILE *f)): created from dump_symtab_node
12665 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12666 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12667 (struct ipa_ref *add_reference (symtab_node *referred_node,
12668 enum ipa_ref_use use_type)): created from add_reference
12669 (struct ipa_ref *add_reference (symtab_node *referred_node,
12670 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12671 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12672 gimple stmt)): created from maybe_add_reference
12673 (bool semantically_equivalent_p (symtab_node *target)): created from
12674 symtab_semantically_equivalent_p
12675 (void remove_from_same_comdat_group (void)): created from
12676 remove_from_same_comdat_group
12677 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12678 symtab_add_to_same_comdat_group
12679 (void dissolve_same_comdat_group_list (void)): created from
12680 symtab_dissolve_same_comdat_group_list
12681 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12682 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12683 created from symtab_alias_ultimate_target
12684 (inline symtab_node *next_defined_symbol (void)): created from
12685 symtab_next_defined_symbol
12686 (bool resolve_alias (symtab_node *target)): created from
12687 symtab_resolve_alias
12688 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12689 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12690 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12691 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12692 (void set_section (const char *section)): created from set_section_1
12693 (enum availability get_availability (void)): created from symtab_node_availability
12694 (void make_decl_local (void)): created from symtab_make_decl_local
12695 (bool real_symbol_p (void)): created from symtab_read_node
12696 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12697 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12698 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12699 symtab_in_same_comdat_p;
12700 (bool address_taken_from_non_vtable_p (void)): created from
12701 address_taken_from_non_vtable_p
12702 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12703 (static void dump_table (FILE *)): created from dump_symtab
12704 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12705 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12706 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12707 symtab_used_from_object_file_p
12708 (void dump_base (FILE *)): created from dump_symtab_base
12709 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12710 (void unregister (void)): created from symtab_unregister_node
12711 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12712 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12713 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12714 symtab_nonoverwritable_alias_1
12715 * cgraph.h (cgraph_node):
12716 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12717 created from cgraph_remove_node_and_inline_clones
12718 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12719 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12720 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12721 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12722 created from cgraph_function_node
12723 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12724 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12725 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12726 created from cgraph_create_clone
12727 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12728 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12729 created from cgraph_create_virtual_clone
12730 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12731 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12732 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12733 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12734 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12735 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12736 created from cgraph_function_version_info
12737 (struct cgraph_function_version_info *insert_new_function_version (void)):
12738 created from insert_new_cgraph_node_version
12739 (struct cgraph_function_version_info *function_version (void)): created from
12740 get_cgraph_node_version
12741 (void analyze (void)): created from analyze_function
12742 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12743 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12744 tree real_alias) cgraph_add_thunk
12745 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12746 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12747 created from cgraph_function_or_thunk_node
12748 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12749 created from expand_thunk
12750 (void reset (void)): created from cgraph_reset_node
12751 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12752 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12753 (void remove (void)): created from cgraph_remove_node
12754 (void dump (FILE *f)): created from dump_cgraph_node
12755 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12756 (bool get_body (void)): created from cgraph_get_body
12757 (void release_body (void)): created from cgraph_release_function_body
12758 (void unnest (void)): created from cgraph_unnest_node
12759 (void make_local (void)): created from cgraph_make_node_local
12760 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12761 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12762 gcov_type count, int freq)): created from cgraph_create_edge
12763 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12764 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12765 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12766 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12767 created from cgraph_create_edge_including_clones
12768 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12769 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12770 (void remove_callers (void)): created from cgraph_node_remove_callers
12771 (void remove_callees (void)): created from cgraph_node_remove_callees
12772 (enum availability get_availability (void)): created from cgraph_function_body_availability
12773 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12774 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12775 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12776 (void call_duplication_hooks (cgraph_node *node2)): created from
12777 cgraph_call_node_duplication_hooks
12778 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12779 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12780 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12781 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12782 (void call_function_insertion_hooks (void)):
12783 created from cgraph_call_function_insertion_hooks
12784 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12785 (bool local_p (void)): created from cgraph_local_node
12786 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12787 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12788 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12789 (inline bool only_called_directly_or_aliased_p (void)):
12790 created from cgraph_only_called_directly_or_aliased_p
12791 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12792 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12793 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12794 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12795 (bool can_remove_if_no_direct_calls_p (void)):
12796 created from cgraph_can_remove_if_no_direct_calls_p
12797 (inline bool has_gimple_body_p (void)):
12798 created from cgraph_function_with_gimple_body_p
12799 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12800 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12801 (static inline void debug_cgraph (void)): created from debug_cgraph
12802 (static void record_function_versions (tree decl1, tree decl2)):
12803 created from record_function_versions
12804 (static void delete_function_version (tree decl)):
12805 created from delete_function_version
12806 (static void add_new_function (tree fndecl, bool lowered)):
12807 created from cgraph_add_new_function
12808 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12809 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12810 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12811 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12812 (static cgraph_node *get_for_asmname (tree asmname)):
12813 created from cgraph_node_for_asm
12814 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12815 created from cgraph_same_body_alias
12816 (static bool used_from_object_file_p_worker (cgraph_node *node,
12817 void *): new function
12818 (static bool non_local_p (cgraph_node *node, void *)):
12819 created from cgraph_non_local_node_p_1
12820 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12821 created from verify_cgraph
12822 (static bool make_local (cgraph_node *node, void *)):
12823 created from cgraph_make_node_local
12824 (static cgraph_node *create_alias (tree alias, tree target)):
12825 created from cgraph_create_function_alias
12826 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12827 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12828 created from cgraph_create_edge_1
12829 * cgraph.h (varpool_node):
12830 (void remove (void)): created from varpool_remove_node
12831 (void dump (FILE *f)): created from dump_varpool_node
12833 2014-07-24 Richard Biener <rguenther@suse.de>
12836 * tree-ssa-structalias.c (create_variable_info_for_1):
12837 Use varpool_get_constructor.
12838 (create_variable_info_for): Likewise.
12840 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12842 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12843 subtract outgoing area size when restoring stack_pointer_rtx.
12845 2014-07-24 Nick Clifton <nickc@redhat.com>
12847 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12848 that operations are taking place in parallel.
12849 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12851 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12853 * omp-low.c (extract_omp_for_data): Add missing break statement.
12855 2014-07-24 Richard Biener <rguenther@suse.de>
12857 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12858 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12859 and adjust MOVE_RATIO query accordingly.
12860 (estimate_num_insns): Adjust callers.
12861 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12862 * ipa-cp.c (gather_context_independent_values,
12863 estimate_local_effects): Likewise.
12864 * ipa-split.c (consider_split): Likewise.
12866 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12868 * config/i386/driver-i386.c: Remove names of unused arguments and
12869 unnecessary unused attributes.
12870 * config/i386/host-mingw32.c: Likewise.
12871 * config/i386/i386.c: Likewise.
12872 * config/i386/winnt-stubs.c: Likewise.
12873 * config/i386/winnt.c: Likewise.
12875 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12877 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12878 (aarch64_gen_loadwb_pair): New helper function.
12879 (aarch64_expand_epilogue): Simplify code using new helper functions.
12880 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12882 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12884 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12885 (aarch64_gen_storewb_pair): New helper function.
12886 (aarch64_expand_prologue): Simplify code using new helper functions.
12887 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12889 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12891 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12892 Rename to aarch64_save_callee_saves, remove restore code.
12893 (aarch64_restore_callee_saves): New function.
12895 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12897 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12898 (aarch64_save_callee_saves): New function to handle reg save
12899 for both core and vectore regs.
12901 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12903 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12904 (aarch64_gen_store_pair): New helper function.
12905 (aarch64_save_or_restore_callee_save_registers)
12906 (aarch64_save_or_restore_fprs): Use new helper functions.
12908 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12910 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12911 (aarch64_save_or_restore_callee_save_registers)
12912 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12914 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12916 * config/aarch64/aarch64.c
12917 (aarch64_save_or_restore_callee_save_registers)
12918 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12920 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12922 * config/aarch64/aarch64.c
12923 (aarch64_save_or_restore_callee_save_registers)
12924 (aarch64_save_or_restore_fprs): Remove 'increment'.
12926 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12928 * config/aarch64/aarch64.c
12929 (aarch64_save_or_restore_callee_save_registers)
12930 (aarch64_save_or_restore_fprs): Use register offset in
12931 cfun->machine->frame.reg_offset.
12933 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12935 * config/aarch64/aarch64.c
12936 (aarch64_save_or_restore_callee_save_registers)
12937 (aarch64_save_or_restore_fprs): Remove base_rtx.
12939 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12941 * config/aarch64/aarch64.c
12942 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12943 to 'start_offset'. Remove local variable 'start_offset'.
12945 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12947 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12948 type to HOST_WIDE_INT.
12950 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12952 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12953 (aarch64_save_or_restore_fprs)
12954 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12956 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12958 * config/arm/t-rtems-eabi: Add
12959 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12960 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12961 mbig-endian/mthumb/march=armv7-r, and
12962 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12965 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12966 Chris Johns <chrisj@rtems.org>
12967 Joel Sherrill <joel.sherrill@oarcorp.com>
12969 * config.gcc: Add nios2-*-rtems*.
12970 * config/nios2/rtems.h: New file.
12971 * gcc/config/nios2/t-rtems: New file.
12973 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12976 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12977 constant numbers, not general constants.
12978 (rs6000_expand_vector_init): Ditto.
12980 2014-07-23 Nathan Sidwell <nathan@acm.org>
12982 * gcov-tool.c (gcov_list): Declare here.
12983 (set_gcov_list): Remove.
12984 (gcov_output_files): Set gcov_list directly.
12986 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12988 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12990 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12992 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12993 callee-saved registers are available for padding purpose
12994 and r3 is not mandatory, then prefer use those callee-saved
12997 2014-07-23 Richard Biener <rguenther@suse.de>
12999 * params.def (PARAM_MAX_COMBINE_INSNS): New.
13000 * combine.c: Include statistics.h and params.h.
13001 (combine_instructions): Guard three and four insn combines
13002 with max-combine-insns value. Record statistics for combines
13004 * doc/invoke.texi (max-combine-insns): Document new param.
13006 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13008 * graphite-isl-ast-to-gimple.c:
13009 (translate_isl_ast_node_block): New function.
13010 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13012 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13013 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13015 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13017 * graphite-isl-ast-to-gimple.c:
13018 (get_max_schedule_dimensions): New function.
13019 (extend_schedule): Likewise.
13020 (generate_isl_schedule): Add calling of extend_schedule and
13021 get_max_schedule_dimensions.
13023 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13025 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13026 (case UNSPEC): Handle UNSPEC_RBIT.
13028 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13030 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13031 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13033 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13035 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13037 2014-07-22 Roman Gareev <gareevroman@gmail.com>
13039 * graphite-isl-ast-to-gimple.c:
13040 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13041 (ivs_params_clear):
13042 (build_iv_mapping): New function.
13043 (translate_isl_ast_node_user): Likewise.
13044 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13046 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13047 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13048 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13050 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13053 * config/arm/arm.md (setmem): New pattern.
13054 * config/arm/arm-protos.h (struct tune_params): New fields.
13055 (arm_gen_setmem): New prototype.
13056 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13057 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13058 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13059 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13060 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13061 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13062 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13063 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13064 (arm_const_inline_cost): New function.
13065 (arm_block_set_max_insns): New function.
13066 (arm_block_set_non_vect_profit_p): New function.
13067 (arm_block_set_vect_profit_p): New function.
13068 (arm_block_set_unaligned_vect): New function.
13069 (arm_block_set_aligned_vect): New function.
13070 (arm_block_set_unaligned_non_vect): New function.
13071 (arm_block_set_aligned_non_vect): New function.
13072 (arm_block_set_vect, arm_gen_setmem): New functions.
13074 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13076 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13078 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
13081 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13082 out of #ifdef __OPTIMIZE__.
13084 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13086 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13087 different trapping status if -fnon-call-exceptions is enabled.
13089 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13091 * expr.c (store_field): Handle VOIDmode for calls that return values
13092 in multiple locations.
13094 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13096 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
13097 (altivec_vsldoi_<mode>): Likewise.
13099 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13101 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13102 to the number of characters in the line.
13104 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13106 * graphite-isl-ast-to-gimple.c: Add using of
13107 build_nonstandard_integer_type instead of int128_integer_type_node.
13109 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
13111 * toplev.c (output_stack_usage): Adjust the location of the warning.
13113 2014-07-19 Daniel Cederman <cederman@gaisler.com>
13115 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13116 (*membar_storeload): Disable for LEON3.
13118 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13120 PR rtl-optimization/61461
13121 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13123 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
13126 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13127 Fix instruction constraint.
13128 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13130 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
13132 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13134 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
13136 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13137 GNU coding standards.
13138 (nds32_register_move_cost): Likewise.
13139 (nds32_memory_move_cost): Likewise.
13140 (nds32_address_cost): Likewise.
13142 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13144 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13146 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
13148 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13149 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13150 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13151 (HAVE_sync_compare_and_swapqi): Define.
13152 (HAVE_sync_compare_and_swaphi): Likewise.
13153 (HAVE_sync_compare_and_swapsi): Likewise.
13155 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
13157 * config/mips/p5600.md: Add missing cpu tests.
13159 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13161 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13162 (vmla_f64): Likewise.
13163 (vfms_f64): Likewise.
13164 (vmls_f64): Likewise.
13166 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13168 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13169 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13171 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13173 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13174 (vmlal_high_lane_s32): Likewise.
13175 (vmlal_high_lane_u16): Likewise.
13176 (vmlal_high_lane_u32): Likewise.
13177 (vmlsl_high_lane_s16): Likewise.
13178 (vmlsl_high_lane_s32): Likewise.
13179 (vmlsl_high_lane_u16): Likewise.
13180 (vmlsl_high_lane_u32): Likewise.
13182 2014-07-17 Terry Guo <terry.guo@arm.com>
13184 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13185 (alus_reg): Renamed to alus_sreg.
13186 * config/arm/arm-fixed.md: Change type of non-dsp instructions
13187 from alu_reg to alu_sreg. Change type of dsp instructions from
13188 alu_reg to alu_dsp_reg.
13189 * config/arm/thumb1.md: Likewise.
13190 * config/arm/thumb2.md: Likewise.
13191 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13192 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13193 with alu_sreg and alus_sreg.
13194 * config/arm/arm1026ejs.md (alu_op): Likewise.
13195 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13196 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13197 * config/arm/fa526.md (526_alu_op): Likewise.
13198 * config/arm/fa606te.md (606te_alu_op): Likewise.
13199 * config/arm/fa626te.md (626te_alu_op): Likewise.
13200 * config/arm/fa726te.md (726te_alu_op): Likewise.
13201 * config/arm/fmp626.md (mp626_alu_op): Likewise.
13202 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13203 alu_sreg, alu_dsp_reg and alus_sreg.
13204 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13205 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13206 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13207 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13208 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13209 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13210 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13211 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13212 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13213 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13214 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13215 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13216 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13217 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13218 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13219 alus_reg to alus_sreg.
13221 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
13223 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13226 2014-07-17 Richard Biener <rguenther@suse.de>
13228 PR rtl-optimization/61801
13229 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13230 don't set reg_pending_barrier if it appears in a debug-insn.
13232 2014-07-16 DJ Delorie <dj@redhat.com>
13234 * config/rx/rx.c (rx_option_override): Fix alignment values.
13235 (rx_align_for_label): Likewise.
13237 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
13240 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13241 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13242 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13244 (cris_print_index, cris_print_operand, cris_constant_index_p)
13245 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13246 (cris_address_cost): Ditto last CONSTANT_P.
13247 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
13248 callers changed. Yield cris_offsettable_symbol for non-PIC
13249 constant symbolic expressions including labels. Yield cris_unspec
13251 (cris_expand_pic_call_address): New parameter MARKERP. Set its
13252 target to pic_offset_table_rtx for calls that will likely go
13253 through PLT, const0_rtx when they can't. All callers changed.
13254 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13255 symbolic expressions to be PICified. Remove second, redundant,
13256 assert on can_create_pseudo_p returning non-zero. Use
13257 replace_equiv_address_nv, not replace_equiv_address, for final
13259 * config/cris/cris.md ("movsi"): Move variable t to pattern
13260 toplevel. Adjust assert for new cris_symbol_type member. Use
13261 CONSTANT_P instead of CONSTANT_ADDRESS_P.
13262 ("*movsi_internal") <case 9>: Make check for valid unspec operands
13264 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13265 ("call", "call_value"): Use second incoming operand as a marker
13266 for pic-offset-table-register being used.
13267 ("*expanded_call_non_v32", "*expanded_call_v32")
13268 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13269 second incoming operand to CALL, match cris_call_type_marker.
13270 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
13271 ("*expanded_call_side"): Ditto. Fix typo in comment.
13272 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13274 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13275 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13276 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13277 users changed. Add members cris_offsettable_symbol and cris_unspec.
13278 (cris_symbol_type): Rename from cris_pic_symbol_type.
13279 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13281 * config/cris/cris-protos.h (cris_symbol_type_of,
13282 cris_expand_pic_call_address): Adjust prototypes.
13283 (cris_legitimate_constant_p): New prototype.
13285 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13286 an existing tmake_file. Don't add t-slibgcc and t-linux.
13288 2014-07-17 Jason Merrill <jason@redhat.com>
13291 * symtab.c (symtab_remove_from_same_comdat_group): Also
13292 set_comdat_group to NULL_TREE.
13293 (verify_symtab): Fix diagnostic.
13295 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13298 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13300 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13302 Support location tracking for built-in macro tokens
13303 * input.h (is_location_from_builtin_token): New function declaration.
13304 * input.c (is_location_from_builtin_token): New function definition.
13305 * toplev.c (general_init): Tell libcpp what the pre-defined
13306 spelling location for built-in tokens is.
13308 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13310 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13311 on the FUNCTION_DECL.
13313 2014-07-16 Richard Biener <rguenther@suse.de>
13316 * doc/extend.texi (always_inline): Clarify.
13318 2014-07-15 Eric Christopher <echristo@gmail.com>
13320 * doc/invoke.texi (Link Options): Document -z option.
13322 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13324 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13325 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13327 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13329 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13331 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13333 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13334 varpool_assemble_decl.
13335 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13338 2014-07-15 Michael Matz <matz@suse.de>
13340 PR rtl-optimization/61772
13341 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13343 2014-07-15 Richard Biener <rguenther@suse.de>
13345 * opts.c (default_options_table): Disable bit-ccp at -Og.
13347 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13349 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13351 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13353 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13354 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13355 call langhook for unknown declaration.
13356 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13357 * tree.h (DECL_ARGUMENTS): Update.
13358 * print-tree.c (print_node): Update.
13359 * tree-core.h (tree_decl_non_common): Remove arguments.
13360 (tree_function_decl): Add arguments.
13362 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13364 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13366 2014-07-14 Richard Biener <rguenther@suse.de>
13368 PR tree-optimization/61779
13369 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13370 simplifying a condition.
13372 2014-07-14 Richard Biener <rguenther@suse.de>
13374 * builtins.c (c_strlen): Make only_value == 2 really only
13375 affect warning generation.
13377 2014-07-14 Richard Biener <rguenther@suse.de>
13379 PR tree-optimization/61757
13380 PR tree-optimization/61783
13381 PR tree-optimization/61787
13382 * tree-ssa-dom.c (record_equality): Revert canonicalization
13383 change and add comment.
13384 (propagate_rhs_into_lhs): Revert previous fix, removing
13385 loop depth restriction again.
13387 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13389 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13390 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13391 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13392 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13393 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13394 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13395 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13397 2014-07-14 Richard Biener <rguenther@suse.de>
13399 * cgraph.h (decl_in_symtab_p): Make inline.
13401 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13403 PR middle-end/61294
13404 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13407 * config/i386/i386.c (classify_argument): Don't merge classes above
13410 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13412 * cgraph.h (symtab_node): Add nonzero_address.
13413 (decl_in_symtab_p): Break out from ...
13414 (symtab_get_node): ... here.
13415 * fold-const.c: Include cgraph.h
13416 (tree_single_nonzero_warnv_p): Use symtab to determine
13417 if symbol is non-zero.
13418 * symtab.c (symtab_node::nonzero_address): New method.
13420 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13422 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13423 forgotten in previous commit.
13425 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13427 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13429 * ipa-devirt.c: Include stor-layout.h and intl.h
13430 (odr_subtypes_equivalent_p): New function.
13431 (warn_odr): New function.
13432 (warn_type_mismatch): New function.
13433 (odr_types_equivalent_p): New function.
13434 (add_type_duplicate): Use it.
13435 * common.opt (Wodr): New flag.
13436 * doc/invoke.texi (Wodr): Document new warning.
13438 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13440 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13441 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13442 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13443 (varpool_get_constructor): Push CTORS_IN timevar.
13444 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13446 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13448 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13449 Remove VOID_FTYPE_PUSHORT.
13450 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13451 Change code to USHORT_FTYPE_VOID.
13452 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13453 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13454 (ix86_atomic_assign_expand_fenv): Update for
13455 __builtin_ia32_fnstsw changes.
13456 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13457 (fnstsw): Change operand 0 to nonimmediate operand.
13459 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13461 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13462 (varpool_get_constructor): New function.
13463 (varpool_ctor_useable_for_folding_p): Break out from ...
13464 (ctor_for_folding): ... here; use varpool_get_constructor.
13465 (varpool_assemble_decl): Likewise.
13466 * lto-streamer.h (struct output_block): Turn cgraph_node
13468 (lto_input_variable_constructor): Declare.
13469 * ipa-visibility.c (function_and_variable_visibility): Use
13470 varpool_get_constructor.
13471 * cgraph.h (varpool_get_constructor): Declare.
13472 (varpool_ctor_useable_for_folding_p): New function.
13473 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13474 parameter; return error_mark_node for non-trivial constructors.
13475 (lto_write_tree_1, DFS_write_tree): Update use of
13476 get_symbol_initial_value.
13477 (output_function): Update initialization of symbol.
13478 (output_constructor): New function.
13479 (copy_function): Rename to ..
13480 (copy_function_or_variable): ... this one; handle vars too.
13481 (lto_output): Output variable sections.
13482 * lto-streamer-in.c (input_constructor): New function.
13483 (lto_read_body): Rename from ...
13484 (lto_read_body_or_constructor): ... this one; handle vars too.
13485 (lto_input_variable_constructor): New function.
13486 * ipa-prop.c (ipa_prop_write_jump_functions,
13487 ipa_prop_write_all_agg_replacement): Update.
13488 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13489 (output_cgraph_opt_summary): Set symbol to NULL.
13491 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13493 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13494 non-polymorphic types.
13495 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13496 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13497 of types is not polymorphic.
13499 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13501 * lra-constraints.c (remove_inheritance_pseudos): Process
13502 destination pseudo too.
13504 2014-07-11 Rong Xu <xur@google.com>
13506 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13509 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13511 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13512 * config/avr/avr-devices.c (AVR_MCU): Same.
13513 (avr_mcu_types): add text start value to end of device list.
13514 * config/avr/avr-mcus.def: Add text section start for all devices.
13515 (ata5782): Add new avr5 device.
13517 * config/avr/avr-tables.opt: Regenerate.
13518 * config/avr/avr.h: Add declaration for text section start handler.
13519 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13521 (LINK_SPEC): Include text section start handler to linker spec.
13522 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13523 pass -Ttext option to linker if the text section start for the device
13525 * config/avr/t-multilib: Regenerate.
13526 * doc/avr-mmcu.texi: Regenerate.
13528 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13530 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13531 * config/rs6000/aix52.h (LINK_SPEC): Same.
13532 * config/rs6000/aix53.h (LINK_SPEC): Same.
13533 * config/rs6000/aix61.h (LINK_SPEC): Same.
13534 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13536 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13538 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13539 (graphite_verify): New function.
13540 (ivs_params_clear): New function.
13541 (gcc_expression_from_isl_ast_expr_id): New function.
13542 (gcc_expression_from_isl_expr_int): New function.
13543 (binary_op_to_tree): New function.
13544 (ternary_op_to_tree): New function.
13545 (unary_op_to_tree): New function.
13546 (nary_op_to_tree): New function.
13547 (gcc_expression_from_isl_expr_op): New function.
13548 (gcc_expression_from_isl_expression): New function.
13549 (graphite_create_new_loop): New function.
13550 (translate_isl_ast_for_loop): New function.
13551 (get_upper_bound): New function.
13552 (graphite_create_new_loop_guard): New function.
13553 (translate_isl_ast_node_for): New function.
13554 (translate_isl_ast): New function.
13555 (add_parameters_to_ivs_params): New function.
13556 (scop_to_isl_ast): New parameter ip.
13557 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13559 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13561 * config/xtensa/predicates.md (call expander): Update for
13562 DECL_SECTION_NAME being string.
13564 2014-07-11 Richard Biener <rguenther@suse.de>
13566 PR middle-end/61473
13567 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13568 can be implemented with a single load followed by a single store.
13569 (c_strlen): Only warn when only_value is not 2.
13571 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13573 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13575 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13578 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13579 (*movhi_bytes): Likewise.
13580 (*arm_movqi_insn): Likewise.
13582 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13585 * config/alpha/alpha.c: Include tree-pass.h, context.h
13586 and pass_manager.h.
13587 (pass_data_handle_trap_shadows): New pass.
13588 (pass_handle_trap_shadows::gate): New pass gate function.
13589 (make_pass_handle_trap_shadows): New function.
13590 (rest_of_handle_trap_shadows): Ditto.
13592 (alpha_align_insns_1): Rename from alpha_align_insns.
13593 (pass_data_align_insns): New pass.
13594 (pass_align_insns::gate): New pass gate function.
13595 (make_pass_aling_insns): New function.
13596 (rest_of_align_insns): Ditto.
13597 (alpha_align_insns): Ditto.
13599 (alpha_option_override): Declare handle_trap_shadows info
13600 and align_insns_info. Register handle_trap_shadows and align_insns
13602 (alpha_reorg): Do not call alpha_trap_shadows and
13603 alpha_align_insn from here.
13605 (alpha_pad_function_end): Do not skip BARRIERs.
13607 2014-07-10 Rong Xu <xur@google.com>
13609 Add gcov-tool: an offline gcda profile processing tool support.
13610 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13611 (gcov_is_error): Ditto.
13612 (gcov_read_string): Ditto.
13613 (gcov_read_sync): Ditto.
13614 * gcov-io.h: Move counter defines to gcov-counter.def.
13615 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13616 * coverage.c: Ditto.
13617 * gcov-tool.c: Offline gcda profile processing tool.
13618 (unlink_gcda_file): Remove one gcda file.
13619 (unlink_profile_dir): Remove gcda files from the profile path.
13620 (gcov_output_files): Output gcda files to an output dir.
13621 (profile_merge): Merge two profiles in directory.
13622 (print_merge_usage_message): Print merge usage.
13623 (merge_usage): Print merge usage and exit.
13624 (do_merge): Driver for profile merge sub-command.
13625 (profile_rewrite): Rewrite profile.
13626 (print_rewrite_usage_message): Print rewrite usage.
13627 (rewrite_usage): Print rewrite usage and exit.
13628 (do_rewrite): Driver for profile rewrite sub-command.
13629 (print_usage): Print gcov-info usage and exit.
13630 (print_version): Print gcov-info version.
13631 (process_args): Process arguments.
13632 (main): Main routine for gcov-tool.
13633 * Makefile.in: Build and install gcov-tool.
13634 * gcov-counter.def: New file split from gcov-io.h.
13635 * doc/gcc.texi: Include gcov-tool.texi.
13636 * doc/gcov-tool.texi: Document for gcov-tool.
13638 2014-07-10 Richard Biener <rguenther@suse.de>
13640 PR tree-optimization/61757
13641 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13642 (propagate_rhs_into_lhs): Revert part of last change.
13644 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13646 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13649 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13651 PR middle-end/53590
13652 * function.c (allocate_struct_function): Revert r188667 change.
13654 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13656 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13658 * doc/install.texi: Remove links to defunct package providers for
13661 2014-07-09 Tom de Vries <tom@codesourcery.com>
13663 * final.c (get_call_fndecl): Declare.
13664 (self_recursive_call_p): New function.
13665 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13667 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13669 * ipa-devirt.c (record_node): Walk through aliases.
13671 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13673 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13675 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13678 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13680 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13682 * ipa-visibility.c (function_and_variable_visibility): Remove
13683 temporary hack disabling local aliases on AIX.
13685 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13687 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13688 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13690 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13692 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13693 * rs6000/rs6000.c: Inline output of .set instruction.
13694 (declare_alias_data): New struct.
13695 (rs6000_declare_alias): New function.
13696 (rs6000_xcoff_declare_function_name): Use it.
13697 (rs6000_xcoff_declare_object_name): New function.
13698 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13699 (ASM_OUTPUT_DEF): Turn to empty definition.
13701 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13704 * hash-table.h: use hash_table::value_type instead of
13705 Descriptor::value_type in the return types of several methods.
13707 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13709 * tree-pass.h (pass_data): Remove has_execute member.
13710 * passes.c (execute_one_pass): Don't check pass->has_execute.
13711 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13712 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13713 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13714 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13715 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13716 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13717 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13718 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13719 gimple-low.c, gimple-ssa-isolate-paths.c,
13720 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13721 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13722 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13723 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13724 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13725 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13726 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13727 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13728 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13729 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13730 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13731 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13732 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13733 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13734 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13735 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13736 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13737 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13738 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13739 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13740 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13741 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13742 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13743 web.c: Remove initializer for pass_data::has_execute.
13745 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13747 * graphite-htab.h: Use hash_map instead of hash_table.
13748 * graphite-clast-to-gimple.c: Adjust.
13749 * passes.c: Use hash_map instead of hash_table.
13750 * sese.c: Likewise.
13751 * sese.h: Remove now unused code.
13753 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13756 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13759 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13761 PR rtl-optimization/61673
13762 * combine.c (simplify_comparison): Test just mode's sign bit
13763 in tmode rather than the sign bit and any bits above it.
13765 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13767 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13768 Add __isl_give to the declaration.
13769 (generate_isl_schedule): Likewise.
13770 (scop_to_isl_ast): Likewise.
13772 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13774 * config/arm/arm.c (cortexa5_extra_costs): New table.
13775 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13777 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13779 PR tree-optimization/61725
13780 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13781 range, use range_includes_zerop_p instead of integer_zerop on
13782 vr0->min, only use log2 of max if min is not negative.
13784 2014-07-08 Richard Biener <rguenther@suse.de>
13786 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13787 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13788 restriction on loop depth difference.
13789 (record_equality): Likewise.
13790 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13791 (loop_depth_of_name): Remove.
13792 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13793 restriction on loop depth difference.
13794 (init_copy_prop): Likewise.
13796 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13798 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13800 (walk_aliased_vdefs): Likewise.
13801 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13802 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13803 (detect_type_change_from_memory_writes): Check if entry was reached.
13805 2014-07-08 Richard Biener <rguenther@suse.de>
13807 PR tree-optimization/61681
13808 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13809 NONLOCAL inside ESCAPED.
13811 2014-07-08 Richard Biener <rguenther@suse.de>
13813 PR tree-optimization/61680
13814 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13815 Handle properly all read-write dependences with group accesses.
13817 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13819 PR tree-optimization/61576
13820 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13821 block containing reduction statement is predecessor of phi basi block.
13823 2014-07-08 Marek Polacek <polacek@redhat.com>
13826 * fold-const.c (round_up_loc): Change the parameter type.
13828 * fold-const.h (round_up_loc): Adjust declaration.
13829 * stor-layout.c (finalize_record_size): Check for too large types.
13831 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13833 * symtab.c: Include calls.h.
13834 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13836 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13838 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13839 little-endian code generation.
13840 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13841 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13842 (spe_evmergehilo): Rename to...
13843 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13844 (spe_evmergelo): Rename to...
13845 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13846 (spe_evmergelohi): Rename to...
13847 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13848 (spe_evmergehi, spe_evmergehilo): New expanders.
13849 (spe_evmergelo, spe_evmergelohi): Likewise.
13850 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13851 (*frob_tf_ti): Likewise.
13852 (*frob_<mode>_di_2): Likewise.
13853 (*frob_tf_di_8_2): Likewise.
13854 (*frob_di_<mode>): Likewise.
13855 (*frob_ti_tf): Likewise.
13856 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13857 (*frob_ti_<mode>_8_2): Likewise.
13858 (*frob_ti_tf_2): Likewise.
13859 (mov_si<mode>_e500_subreg0): Rename to...
13860 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13862 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13863 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13864 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13865 the big endianness only.
13866 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13867 (*mov_si<mode>_e500_subreg0_2): Rename to...
13868 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13869 big big endianness only.
13870 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13871 (*mov_si<mode>_e500_subreg4): Rename to...
13872 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13874 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13875 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13876 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13877 the big endianness only.
13878 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13880 (*mov_si<mode>_e500_subreg4_2): Rename to...
13881 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13883 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13884 (*mov_sitf_e500_subreg8): Rename to...
13885 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13887 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13888 (*mov_sitf_e500_subreg8_2): Rename to...
13889 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13891 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13892 (*mov_sitf_e500_subreg12): Rename to...
13893 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13895 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13896 (*mov_sitf_e500_subreg12_2): Rename to...
13897 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13899 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13901 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13903 * asan.c (instrument_strlen_call): Do not instrument first byte
13904 in strlen if already instrumented.
13906 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13908 * config/arm/arm.opt (mwords-little-endian): Delete.
13909 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13910 of TARGET_LITTLE_WORDS.
13911 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13912 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13914 * doc/invoke.texi: Remove references to -mwords-little-endian.
13916 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13918 * expmed.c (struct init_expmed_rtl): Change all fields but
13919 pow2 and cint from struct rtx_def to rtx.
13920 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13921 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13924 2014-07-06 Marek Polacek <polacek@redhat.com>
13927 * doc/invoke.texi: Document -Wsizeof-array-argument.
13929 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13931 * wide-int.h (wide_int_storage): Change declaration from struct
13934 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13936 * cgraph.c (cgraph_create_indirect_edge): Update call of
13937 get_polymorphic_call_info.
13938 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13939 (possible_polymorphic_call_targets): Add parameter call.
13940 (decl_maybe_in_construction_p): New predicate.
13941 (get_polymorphic_call_info): Add parameter call;
13942 use decl_maybe_in_construction_p.
13943 * gimple-fold.c (fold_gimple_assign): Update use of
13944 possible_polymorphic_call_targets.
13945 (gimple_fold_call): Likewise.
13946 * ipa-prop.c: Inlcude calls.h
13947 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13948 (param_type_may_change_p): New predicate.
13949 (detect_type_change_from_memory_writes): Break out from ...
13950 (detect_type_change): ... this one; use param_type_may_change_p.
13951 (detect_type_change_ssa): Use param_type_may_change_p.
13952 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13954 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13957 * config/arm/arm-protos.h (arm_legitimate_address_p,
13958 arm_is_constant_pool_ref): Add prototypes.
13959 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13960 (arm_is_constant_pool_ref) New function.
13961 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13962 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13963 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13964 operand. Remove pool_range and neg_pool_range attributes.
13965 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13966 pool_range and neg_pool_range attributes.
13967 * config/arm/constraints.md (Uh): New constraint.
13968 (Uq): Don't allow constant pool references.
13970 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13972 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13973 (move_lo_quad_internal_be_<mode>): Likewise.
13974 (move_lo_quad_<mode>): Convert to define_expand.
13975 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13976 (aarch64_simd_move_hi_quad_be_<mode>): New.
13977 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13978 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13979 (aarch64_combinez_be<mode>): New.
13980 (aarch64_combine<mode>): Convert to define_expand.
13981 (aarch64_combine_internal<mode>): New.
13982 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13984 2014-07-04 Tom de Vries <tom@codesourcery.com>
13986 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13987 combination of earlyclobber and read/write modifiers.
13989 2014-07-04 Tom de Vries <tom@codesourcery.com>
13991 * config/aarch64/aarch64-simd.md
13992 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13994 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13997 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13999 2014-07-04 Jakub Jelinek <jakub@redhat.com>
14001 PR middle-end/61654
14002 * cgraphunit.c (expand_thunk): Call free_dominance_info.
14004 PR tree-optimization/61684
14005 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14006 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
14008 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14009 Kito Cheng <kito@0xlab.org>
14010 Monk Chiang <sh.chiang04@gmail.com>
14012 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14013 (nds32_symbol_load_store_p): Move to ...
14014 (nds32_fp_as_gp_check_available): Move to ...
14015 * config/nds32/nds32-fp-as-gp.c: ... here.
14016 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14017 extern declaration.
14019 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14020 Kito Cheng <kito@0xlab.org>
14021 Monk Chiang <sh.chiang04@gmail.com>
14023 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
14024 (nds32_expand_store_multiple): Move to ...
14025 (nds32_expand_movmemqi): Move to ...
14026 * config/nds32/nds32-memory-manipulation.c: ... here.
14028 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14029 Kito Cheng <kito@0xlab.org>
14030 Monk Chiang <sh.chiang04@gmail.com>
14032 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14033 (nds32_output_casesi_pc_relative): Move to ...
14034 (nds32_output_casesi): Move to ...
14035 (nds32_mem_format): Move to ...
14036 (nds32_output_16bit_store): Move to ...
14037 (nds32_output_16bit_load): Move to ...
14038 (nds32_output_32bit_store): Move to ...
14039 (nds32_output_32bit_load): Move to ...
14040 (nds32_output_32bit_load_s): Move to ...
14041 (nds32_output_stack_push): Move to ...
14042 (nds32_output_stack_pop): Move to ...
14043 * config/nds32/nds32-md-auxiliary.c: ... here.
14045 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14046 Ling-Hua Tseng <uranus@tinlans.org>
14048 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14049 the purpose of this file.
14051 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14052 Kito Cheng <kito@0xlab.org>
14053 Monk Chiang <sh.chiang04@gmail.com>
14055 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14056 (nds32_address_cost): Move implementation to ...
14057 * config/nds32/nds32-cost.c: ... here.
14058 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14059 (nds32_address_cost_impl): Declare.
14061 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14062 Kito Cheng <kito@0xlab.org>
14063 Monk Chiang <sh.chiang04@gmail.com>
14065 * config/nds32/nds32.c
14066 (nds32_consecutive_registers_load_store_p): Move to ...
14067 (nds32_valid_multiple_load_store): Move to ...
14068 (nds32_valid_stack_push_pop): Move to ...
14069 (nds32_can_use_bclr_p): Move to ...
14070 (nds32_can_use_bset_p): Move to ...
14071 (nds32_can_use_btgl_p): Move to ...
14072 (nds32_can_use_bitci_p): Move to ...
14073 * config/nds32/nds32-predicates.c: ... here.
14075 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14076 Kito Cheng <kito@0xlab.org>
14077 Monk Chiang <sh.chiang04@gmail.com>
14079 * config/nds32/nds32.c
14080 (nds32_expand_builtin_null_ftype_reg): Move to ...
14081 (nds32_expand_builtin_reg_ftype_imm): Move to ...
14082 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14083 (nds32_init_builtins): Move implementation to ...
14084 (nds32_expand_builtin): Move implementation to ...
14085 * config/nds32/nds32-intrinsic.c: ... here.
14086 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14087 (nds32_expand_builtin_impl): Declare.
14089 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14090 Kito Cheng <kito@0xlab.org>
14091 Monk Chiang <sh.chiang04@gmail.com>
14093 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14094 (nds32_emit_section_tail_template): Move to ...
14095 (nds32_emit_isr_jmptbl_section): Move to ...
14096 (nds32_emit_isr_vector_section): Move to ...
14097 (nds32_emit_isr_reset_conten): Move to ...
14098 (nds32_check_isr_attrs_conflict): Move to ...
14099 (nds32_construct_isr_vectors_information): Move to ...
14100 (nds32_asm_file_start): Move implementation to ...
14101 (nds32_asm_file_end): Move implementation to ...
14102 * config/nds32/nds32-isr.c: ... here.
14103 * config/nds32/nds32-protos.h
14104 (nds32_check_isr_attrs_conflict): Declare.
14105 (nds32_construct_isr_vectors_information): Declare.
14106 (nds32_asm_file_start_for_isr): Declare.
14107 (nds32_asm_file_end_for_isr): Declare.
14109 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14110 Kito Cheng <kito@0xlab.org>
14111 Monk Chiang <sh.chiang04@gmail.com>
14113 * config.gcc (nds32*): Add new modules to extra_objs.
14114 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14115 (nds32be-*-*): Likewise.
14116 * config/nds32/nds32-cost.c: New file.
14117 * config/nds32/nds32-fp-as-gp.c: New file.
14118 * config/nds32/nds32-intrinsic.c: New file.
14119 * config/nds32/nds32-isr.c: New file.
14120 * config/nds32/nds32-md-auxiliary.c: New file.
14121 * config/nds32/nds32-memory-manipulation.c: New file.
14122 * config/nds32/nds32-pipelines-auxiliary.c: New file.
14123 * config/nds32/nds32-predicates.c: New file.
14124 * config/nds32/t-nds32: New file.
14126 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14128 PR tree-optimization/61682
14129 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14130 using cases and when one of the operands is equal to 1.
14132 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
14134 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14135 ashr<mode>3): Correct mode of operands[2].
14136 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14137 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14138 Correct mode of operands[2]. Fix split condition.
14140 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
14142 * arm.md (arch): Add armv6_or_vfpv3.
14143 (arch_enabled): Add test for the above.
14144 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14146 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14148 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14150 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14151 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14152 HWI 1 and negate the unsigned value.
14153 * expmed.c (expand_sdiv_pow2): For modes wider than word always
14154 use AND instead of shift.
14155 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14157 2014-07-03 Marek Polacek <polacek@redhat.com>
14159 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14160 (-fsanitize=float-divide-by-zero): Move to the table with
14161 -fsanitize=undefined suboptions.
14162 (-fsanitize=float-cast-overflow): Likewise.
14164 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
14166 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14167 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14170 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14172 * loop-invariant.c (struct invariant): Add a new member: eqno;
14173 (find_identical_invariants): Update eqno;
14174 (create_new_invariant): Init eqno;
14175 (get_inv_cost): Compute comp_cost with eqno;
14177 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14179 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14180 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14181 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14182 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14183 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14185 2014-07-02 Christian Bruel <christian.bruel@st.com>
14189 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14190 (make_preds_opaque): Delete.
14191 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14192 (commit_mode_sets): New function.
14193 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14194 Process all modes at once.
14195 * basic-block.h (pre_edge_lcm_avs): Declare.
14196 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14197 Call clear_aux_for_edges. Fix comments.
14198 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14199 (pre_edge_rev_lcm): Idem.
14200 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14202 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14203 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14205 * config/i386/i386.c (x96_emit_mode_set): Idem.
14206 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14207 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
14208 (fpscr_toggle) Disallow from delay slot.
14209 * target.def (emit_mode_set): Add prev_mode parameter.
14210 * doc/tm.texi: Regenerate.
14212 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14214 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14217 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14219 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14220 vtable_pointer_value_to_vtable): Constify.
14221 (contains_polymorphic_type_p): Declare.
14222 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14223 vtable_pointer_value_to_vtable): Constify.
14224 (contains_polymorphic_type_p): New predicate.
14225 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14227 (ipa_set_ancestor_jf): Likewise.
14228 (detect_type_change): Return false in easy cases.
14229 (compute_complex_assign_jump_func): Require type to contain
14231 (compute_known_type_jump_func): Likewise.
14233 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14235 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14237 (type_in_anonymous_namespace_p): Constify argument.
14238 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14239 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14240 (main_odr_variant): New function.
14241 (hash_type_name): Make static; update assert; do not ICE on
14243 (types_same_for_odr): Bring here from tree.c; simplify and remove
14244 old structural comparing code that doesn't work for templates.
14245 (odr_hasher::equal): Update assert.
14246 (add_type_duplicate): Return true when bases should be computed;
14247 replace incomplete loader by complete; do not output duplicated
14248 warnings; do not ICE on non-records; set odr_violated flag.
14249 (get_odr_type): Be ready to replace incomplete type by complete
14250 one; work on ODR variants instead of main variants; reorder item
14251 in array so bases have still smaller indexes.
14252 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14253 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14255 2014-07-01 Cary Coutant <ccoutant@google.com>
14257 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14259 (resolve_addr_in_expr): When replacing the rtx in a location list
14260 entry, get a new address table entry.
14261 (dwarf2out_finish): Call index_location_lists even if there are no
14262 addr_index_table entries yet.
14264 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14266 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14267 change for not being obvious.
14269 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14271 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14274 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14276 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14277 (vcagt_f64): Likewise.
14278 (vcale_f64): Likewise.
14279 (vcaled_f64): Likewise.
14280 (vcales_f32): Likewise.
14281 (vcalt_f64): Likewise.
14282 (vcaltd_f64): Likewise.
14283 (vcalts_f32): Likewise.
14285 2014-07-01 Marek Polacek <polacek@redhat.com>
14287 * doc/invoke.texi: Document -Wint-conversion.
14289 2014-07-01 Marek Polacek <polacek@redhat.com>
14292 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14294 2014-07-01 Martin Liska <mliska@suse.cz>
14296 IPA REF alias refactoring
14297 * cgraph.h (iterate_direct_aliases): New function.
14298 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14299 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14300 FOR_EACH_ALIAS added.
14301 (cgraph_for_node_and_aliases): Likewise.
14302 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14303 * ipa-inline.c (reset_edge_caches): Likewise.
14304 (update_caller_keys): Likewise.
14305 * trans-mem.c (ipa_tm_execute): Likewise.
14306 *varpool.c (varpool_analyze_node): Likewise.
14307 (varpool_for_node_and_aliases): Likewise.
14308 * ipa-ref.h (first_alias): New function.
14309 (last_alias): Likewise.
14310 (has_aliases_p): Likewise.
14311 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14312 is sensitive to IPA_REF_ALIASes.
14313 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14314 are put at the beginning of the list.
14315 (symtab_node::iterate_direct_aliases): New function.
14317 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14320 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14322 (write_ts_type_common_tree_pointers): Do not stream fields not set
14323 for incomplete types; do not stream duplicated fields for variants;
14324 sanity check that variant and type match.
14325 (write_ts_type_non_common_tree_pointers): Likewise.
14326 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14327 TYPE_SIZE whether type is complete.
14328 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14329 write_ts_type_common_tree_pointers
14330 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14332 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14334 * var-tracking.c (add_stores): Return instead of asserting if old
14335 and new values for conditional store are the same.
14337 2014-06-30 Richard Henderson <rth@redhat.com>
14341 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14342 the cfg if there were any changes.
14343 * passes.def: Revert move of peephole2 after reorder_blocks;
14344 move duplicate_computed_gotos before peephole2.
14346 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14348 * except.c (emit_note_eh_region_end): New helper function.
14349 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14350 emit EH_REGION_END note.
14351 * jump.c (cleanup_barriers): Do not split a call and its
14352 corresponding CALL_ARG_LOCATION note.
14354 2014-06-30 Jeff Law <law@redhat.com>
14356 PR tree-optimization/61607
14357 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14358 deeper into the SSA_NAME_VALUE chain.
14360 2014-06-30 Marek Polacek <polacek@redhat.com>
14362 * convert.c (convert_to_integer): Don't instrument conversions if the
14363 function has no_sanitize_undefined attribute.
14364 * ubsan.c: Don't run the ubsan pass if the function has
14365 no_sanitize_undefined attribute.
14367 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14369 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14370 -fsanitize=undefined suboptions.
14372 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14374 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14375 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14376 against bigendian and adjust indices.
14378 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14380 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14382 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14385 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14386 Add alternative; make early clobber. Adjust both split patterns
14387 to use operand 0 as the working register.
14389 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14391 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14392 as ira_object_id_map might be NULL, or 1.
14394 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14396 * loop-invariant.c (get_inv_cost): Handle register class.
14397 (gain_for_invariant): Check the register pressure of the inv
14398 and its overlapped register class, other than all.
14400 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14402 * doc/invoke.texi (Optimize Options): Fix descriptions of
14403 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14405 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14407 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14410 2014-06-29 Tobias Grosser <tobias@grosser.es>
14413 * graphite-isl-ast-to-gimple.c: Add missing guards.
14415 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14417 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14418 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14419 * flag-types.h: Add new enum fgraphite_generator.
14420 * graphite-isl-ast-to-gimple.c: New.
14421 * graphite-isl-ast-to-gimple.h: New.
14422 * graphite.c (graphite_transform_loops): Add choice of Graphite
14423 code generator, which depends on flag_graphite_code_gen.
14425 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14427 * graphite-dependences.c (subtract_commutative_associative_deps):
14428 Add NULL checking of the following variables: must_raw_no_source,
14429 may_raw_no_source, must_war_no_source, may_war_no_source,
14430 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14431 must_war, may_war, must_waw, may_waw.
14433 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14435 * graphite-clast-to-gimple.c: gloog is renamed to
14436 graphite_regenerate_ast_cloog. gloog_error is renamed to
14437 graphite_regenerate_error.
14438 * graphite-clast-to-gimple.h: The definition of the struct
14439 bb_pbb_def is moved to graphite-htab.h.
14440 Add inclusion of the hash-table.h.
14441 * graphite-htab.h: The declaration of the function gloog is moved
14442 to graphite-clast-to-gimple.h and renamed to
14443 graphite_regenerate_ast_cloog.
14444 * graphite.c (graphite_transform_loops): gloog is renamed
14445 to graphite_regenerate_ast_cloog.
14447 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14449 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14451 (write_ts_type_common_tree_pointers): Do not stream fields not set
14452 for incomplete types; do not stream duplicated fields for variants;
14453 sanity check that variant and type match.
14454 (write_ts_type_non_common_tree_pointers): Likewise.
14455 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14456 TYPE_SIZE whether type is complete.
14457 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14458 write_ts_type_common_tree_pointers
14459 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14461 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14463 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14465 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14467 * tree-inline.c (remap_type_1): Do not duplicate fields
14468 that are shared in between type and its main variant.
14470 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14472 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14474 (ipa_set_ancestor_jf) Likewise.
14475 (check_stmt_for_type_change): Check that we work on main variant.
14476 (detect_type_change): Look into main variant.
14477 (compute_known_type_jump_func): Check that main variant has BINFO.
14479 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14481 * ipa-devirt.c (set_type_binfo): New function.
14482 (add_type_duplicate): Use it.
14483 (get_odr_type): Sanity check that binfos points to main variants.
14484 (get_class_context): Be sure the context's outer_type is main variant.
14485 (contains_type_p): Walk main variant.
14486 (get_polymorphic_call_info_for_decl): Set outer_type to be
14488 (get_polymorphic_call_info): Likewise.
14489 (possible_polymorphic_call_targets): Sanity check that we operate
14492 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14494 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14496 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14498 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14499 accidental change due to wide-int branch merge.
14501 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14503 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14504 compressed debug support.
14505 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14506 * configure: Regenerate.
14507 * config.in: Regenerate.
14508 * common.opt (compressed_debug_sections): New enum.
14509 (gz, gz=): New options.
14510 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14511 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14512 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14513 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14514 LINK_COMPRESS_DEBUG_SPEC.
14515 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14516 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14517 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14518 (Debugging Options): Document -gz[=type].
14520 2014-06-27 Martin Jambor <mjambor@suse.cz>
14523 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14524 args_to_skip, use those from node instead. Copy args_to_skip and
14525 combined_args_to_skip from node to the new thunk.
14526 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14527 (cgraph_create_virtual_clone): Moved computation of
14528 combined_args_to_skip...
14529 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14531 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14533 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14534 redundant diagnostic machinary.
14536 2014-06-27 Richard Biener <rguenther@suse.de>
14538 * tree-ssa-math-opts.c (bswap_replace): Fix
14539 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14541 2014-06-27 Martin Liska <mliska@suse.cz>
14543 * gimple.h (gimple_location_safe): New function introduced.
14544 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14545 of gimple_location_safe replaces gimple_location.
14546 (gimple_fold_call): Likewise.
14547 * ipa-devirt.c (ipa_devirt): Likewise.
14548 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14549 * ipa.c (walk_polymorphic_call_targets): Likewise.
14550 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14552 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14554 PR tree-optimization/57233
14555 PR tree-optimization/61299
14556 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14558 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14559 would be lowered to scalar shifts, check if corresponding
14560 shifts and vector BIT_IOR_EXPR are supported and don't lower
14561 or lower just to narrower vector type in that case.
14562 * expmed.c (expand_shift_1): Fix up handling of vector
14563 shifts and rotates.
14565 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14568 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14570 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14572 * doc/invoke.texi (-fsemantic-interposition): Document.
14573 * common.opt (fsemantic-interposition): New flag.
14574 * varasm.c (decl_replaceable_p): Use it.
14576 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14579 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14580 extraction other than index 3.
14582 2014-06-26 Teresa Johnson <tejohnson@google.com>
14584 * doc/invoke.texi: Fix typo.
14585 * dumpfile.c: Add support for documented -fdump-* options
14586 optimized/missed/note/optall.
14588 2014-06-26 Martin Jambor <mjambor@suse.cz>
14590 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14591 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14592 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14593 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14594 * opts.c (default_options_optimization): Set
14595 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14596 * doc/invoke.texi (allow-load-data-races)
14597 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14598 (allow-store-data-races): Document the new default.
14600 2014-06-26 Martin Jambor <mjambor@suse.cz>
14602 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14603 renamed to ipa_impossible_devirt_target. Fix typo.
14604 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14605 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14606 ipa_impossible_devirt_target.
14608 2014-06-26 Richard Biener <rguenther@suse.de>
14610 PR tree-optimization/61607
14611 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14612 explaining why we restrict copies on loop depth.
14613 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14615 (record_equivalences_from_phis): Instead add it here.
14617 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14619 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14620 (LTO_WRAPPER_OBJS): New variable.
14621 (lto-wrapper$(exeext)): Use it.
14622 * collect2.c: Include "collect-utils.h".
14623 (verbose, debug): Remove variables.
14624 (at_file_supplied): No longer static.
14625 (tool_name): New variable.
14626 (do_wait, fork_execute, maybe_unlink): Don't declare.
14627 (tool_cleanup): No longer static.
14628 (notice): Remove function.
14629 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14630 fork_execute calls.
14631 (collect_wait, do_wait, collect_execute): Remove functions.
14632 (maybe_unlink): No longer static.
14633 * collect2.h (verbose, debug): Don't declare.
14634 (at_file_supplied): Declare.
14635 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14637 (collect_execute): Replace with implementation from collect2, plus a
14638 new arg use_atfile. All callers changed.
14639 (collect_wait): Replace with implementation from collect2.
14640 (maybe_unlink_file): Remove function.
14641 (fork_execute): Replace with implementation from collect2, plus a
14642 new arg use_atfile. All callers changed.
14643 (do_wait): Add call to utils_cleanup to the error path.
14644 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14645 (tool_cleanup): Adjust declarations.
14646 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14647 * tlink.c: Include "collect-utils.h".
14648 (tlink_execute): New arg use_atfile. All callers changed.
14649 (tlink_init, tlink_execute): Remove declarations.
14651 * collect-utils.c (save_temps): New variable.
14652 (do_wait): Use it instead of debug. Use fatal_error.
14653 * collect-utils.h (save_temps): Declare.
14654 * collect2.c (verbose): Rename from vflag. All uses changed.
14655 (tool_cleanup): New function, copied from collect_atexit.
14656 (collect_atexit, handler): Just call it.
14657 * collect2.h (verbose): Declaration renamed from vflag.
14658 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14661 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14662 (lto-wrapper$(exeext)): Link with collect-utils.o.
14663 * collect-utils.c: New file.
14664 * collect-utils.h: New file.
14665 * lto-wrapper.c: Include "collect-utils.h".
14666 (args_name): Delete variable.
14667 (tool_name): New variable.
14668 (tool_cleanup): New function.
14669 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14670 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14671 (fork_execute): Remove functions.
14673 2014-06-26 Nick Clifton <nickc@redhat.com>
14675 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14677 * doc/extend.texi (Function Attributes): Fix typo in description
14678 of RX vector attribute.
14680 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14682 * config.gcc (supported_defaults): Error when passing either
14683 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14685 2014-06-26 Richard Biener <rguenther@suse.de>
14687 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14688 propagating volatile pointers.
14690 2014-06-26 Richard Biener <rguenther@suse.de>
14692 PR tree-optimization/61607
14693 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14694 loop if we redirected its latch edge.
14695 (thread_block_1): Do not cancel loops prematurely.
14697 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14699 * toplev.c (backend_init_target): Move init_emit_regs and
14701 (backend_init) ... here; skip ira_init_once and backend_init_target.
14702 (target_reinit) ... and here; clear
14703 this_target_rtl->lang_dependent_initialized.
14704 (lang_dependent_init_target): Clear
14705 this_target_rtl->lang_dependent_initialized;
14706 break out rtl initialization to ...
14707 (initialize_rtl): ... here; call also backend_init_target
14709 * toplev.h (initialize_rtl): New function.
14710 * function.c: Include toplev.h
14711 (init_function_start): Call initialize_rtl.
14712 * rtl.h (target_rtl): Add target_specific_initialized,
14713 lang_dependent_initialized.
14715 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14716 Jakub Jelinek <jakub@redhat.com>
14718 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14720 2014-06-25 Tom de Vries <tom@codesourcery.com>
14722 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14724 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14726 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14727 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14728 Issue a strict overflow warning if appropriate.
14730 2014-06-25 Martin Liska <mliska@suse.cz>
14732 IPA REF refactoring
14733 * Makefile.in: Removed header file (ipa-ref-inline.h).
14734 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14736 (cgraph_speculative_call_info): Likewise.
14737 (cgraph_for_node_thunks_and_aliases): Likewise.
14738 (cgraph_for_node_and_aliases): Likewise.
14739 (verify_cgraph_node): Likewise.
14740 * cgraph.h: Batch of IPA REF functions become member functions of
14741 symtab_node: add_reference, maybe_add_reference, clone_references,
14742 clone_referring, clone_reference, find_reference,
14743 remove_stmt_references, remove_all_references,
14744 remove_all_referring, dump_references, dump_referring,
14745 has_alias_p, iterate_reference, iterate_referring.
14746 * cgraphbuild.c (record_reference): New IPA REF function used.
14747 (record_type_list): Likewise.
14748 (record_eh_tables): Likewise.
14749 (mark_address): Likewise.
14750 (mark_load): Likewise.
14751 (mark_store): Likewise.
14752 (pass_build_cgraph_edges): Likewise.
14753 (rebuild_cgraph_edge): Likewise.
14754 (cgraph_rebuild_references): Likewise.
14755 (pass_remove_cgraph_callee_edges): Likewise.
14756 * cgraphclones.c (cgraph_clone_node): Likewise.
14757 (cgraph_create_virtual_clone): Likewise.
14758 (cgraph_materialize_clone): Likewise.
14759 (cgraph_materialize_all_clones): Likewise.
14760 * cgraphunit.c (cgraph_reset_node): Likewise.
14761 (cgraph_reset_node): Likewise.
14762 (analyze_function): Likewise.
14763 (assemble_thunks_and_aliases): Likewise.
14764 (expand_function): Likewise.
14765 * ipa-comdats.c (propagate_comdat_group): Likewise.
14766 (enqueue_references): Likewise.
14767 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14768 (create_specialized_node): Likewise.
14769 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14770 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14771 * ipa-inline.c (reset_edge_caches): Likewise.
14772 (update_caller_keys): Likewise.
14773 (execute): Likewise.
14774 * ipa-prop.c (remove_described_reference): Likewise.
14775 (propagate_controlled_uses): Likewise.
14776 (ipa_edge_duplication_hook): Likewise.
14777 (ipa_modify_call_arguments): Likewise.
14778 * ipa-pure-const.c (propagate_pure_const): Likewise.
14779 * ipa-ref-inline.h: Header file removed, functions moved
14780 to symtab_node class.
14781 * ipa-ref.c (remove_reference): New class member function.
14782 (cannot_lead_to_return): New class member function.
14783 (referring_ref_list): Likewise.
14784 (referred_ref_list): Likewise.
14785 Rest of functions moved to symtab_node class.
14786 * ipa-ref.h: New member functions remove_reference,
14787 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14789 ipa_ref_list class has new member functions: first_reference,
14790 first_referring, clear, nreferences.
14791 * ipa-reference.c (analyze_function): New IPA REF function used.
14792 (write_node_summary_p): Likewise.
14793 (ipa_reference_write_optimization_summary): Likewise.
14794 * ipa-split.c (split_function): Likewise.
14795 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14796 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14797 (function_and_variable_visibility): Likewise.
14798 * ipa.c (has_addr_references_p): Likewise.
14799 (process_references): Argument type changed.
14800 (symtab_remove_unreachable_nodes): New IPA REF function used.
14801 (process_references): Likewise.
14802 (set_writeonly_bit): Likewise.
14803 * lto-cgraph.c: Implementation of new symtab_node member functions
14804 that uses new IPA REF functions.
14805 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14807 * lto-streamer-out.c (output_symbol_p): Likewise.
14808 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14810 * symtab.c: Implementation of new IPA REF API.
14811 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14812 (ipa_tm_create_version): Likewise.
14813 (ipa_tm_execute): Likewise.
14814 * tree-emutls.c (gen_emutls_addr): Likewise.
14815 * tree-inline.c (copy_bb): Likewise.
14816 (delete_unreachable_blocks_update_callgraph): Likewise.
14817 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14818 (varpool_for_node_and_aliases): Likewise.
14820 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14822 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14824 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14827 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14828 tree_node * instead of tree_node *.
14830 (print_fold_checksum): Likewise.
14831 (fold_check_failed): Likewise.
14832 (debug_fold_checksum): Likewise.
14833 (fold_build1_stat_loc): Likewise.
14834 (fold_build2_stat_loc): Likewise.
14835 (fold_build3_stat_loc): Likewise.
14836 (fold_build_call_array_loc): Likewise.
14838 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14840 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14841 implementation with call to...
14842 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14844 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14847 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14849 PR tree-optimization/57742
14850 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14851 after replacing the statement.
14853 2014-06-25 Nick Clifton <nickc@redhat.com>
14855 * config/v850/v850.c (GHS_default_section_names): Change to const
14857 (GHS_current_section_names): Likewise.
14858 (v850_insert_attributes): Do not build strings, just assign the
14859 names directly. Change the type of 'chosen_section' to const
14861 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14862 directly to the array entry.
14863 * config/v850/v850.h (GHS_default_section_names): Change to const
14865 (GHS_current_section_names): Likewise.
14867 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14869 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14870 (LANG_HOOKS_DECLS): Add it.
14871 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14873 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14874 * langhooks.h (struct lang_hooks_for_decls): Add
14875 omp_clause_linear_ctor hook.
14876 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14877 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14878 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14879 combined simd loop use omp_clause_linear_ctor hook.
14881 2014-06-24 Cong Hou <congh@google.com>
14883 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14884 pattern recognition.
14885 (type_conversion_p): PROMOTION is true if it's a type promotion
14886 conversion, and false otherwise. Return true if the given expression
14887 is a type conversion one.
14888 * tree-vectorizer.h: Adjust the number of patterns.
14889 * tree.def: Add SAD_EXPR.
14890 * optabs.def: Add sad_optab.
14891 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14892 * expr.c (expand_expr_real_2): Likewise.
14893 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14894 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14895 * optabs.c (optab_for_tree_code): Likewise.
14896 * tree-cfg.c (estimate_operator_cost): Likewise.
14897 * tree-ssa-operands.c (get_expr_operands): Likewise.
14898 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14899 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14900 * doc/generic.texi: Add document for SAD_EXPR.
14901 * doc/md.texi: Add document for ssad and usad.
14903 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14905 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14906 qualification in cast.
14908 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14910 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14911 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14912 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14913 (tree_function_decl): ... here.
14914 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14915 streaming of vindex to ...
14916 (write_ts_function_decl_tree_pointers): ... here.
14917 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14918 Do not stream DECL_VINDEX.
14919 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14921 2014-06-24 Catherine Moore <clm@codesourcery.com>
14922 Sandra Loosemore <sandra@codesourcery.com>
14924 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14925 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14926 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14928 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14930 * doc/invoke.texi (Warning Options): Remove duplicated
14931 -Wmaybe-uninitialized.
14933 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14935 PR tree-optimization/57742
14936 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14937 (handle_builtin_malloc, handle_builtin_memset): New functions.
14938 (strlen_optimize_stmt): Call them.
14939 * passes.def: Move strlen after loop+dom but before vrp.
14941 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14944 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14945 model family 6 CPU with has_longmode never use a CPU without
14948 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14951 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14954 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14956 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14957 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14959 * hash-map.h: New file.
14960 * ipa-comdats.c: Use hash_map instead of pointer_map.
14962 * lto-section-out.c: Adjust.
14963 * lto-streamer.h: Replace pointer_map with hash_map.
14964 * symtab.c (verify_symtab): Likewise.
14965 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14966 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14967 * tree-streamer.h: Likewise.
14968 * tree-streamer.c: Adjust.
14969 * pointer-set.h: Remove pointer_map.
14971 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14973 * hash-table.h: Add a template arg to choose between storing values
14974 and storing pointers to values, and then provide partial
14975 specializations for both.
14976 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14977 should store, not the type values should point to.
14978 * tree-into-ssa.c (var_info_hasher): Likewise.
14979 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14980 * tree-complex.c: Adjust.
14981 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14982 table instead of int_tree_map *.
14983 * tree-parloops.c: Adjust.
14984 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14985 type is being stored.
14986 * tree-vectorizer.c: Adjust.
14988 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14990 * hash-table.h: Remove a layer of indirection from hash_table so that
14991 it contains the hash table's data instead of a pointer to the data.
14992 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14993 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14994 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14995 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14996 fold-const.c, gcse.c, ggc-common.c,
14997 gimple-ssa-strength-reduction.c, gimplify.c,
14998 graphite-clast-to-gimple.c, graphite-dependences.c,
14999 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15000 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15001 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15002 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15003 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15004 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15005 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15006 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15007 tree-ssa-live.c, tree-ssa-loop-im.c,
15008 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15009 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15010 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15011 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15012 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15013 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15014 vtable-verify.c, vtable-verify.h: Adjust.
15016 2014-06-24 Richard Biener <rguenther@suse.de>
15018 PR tree-optimization/61572
15019 * tree-ssa-sink.c (statement_sink_location): Do not sink
15020 loads from hard registers.
15022 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15024 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15025 not mentioned in clauses use private clause if the iterator is
15026 declared in #pragma omp for simd, and when adding lastprivate
15027 instead, add it to the outer #pragma omp for too. Diagnose
15028 if the variable is private in outer context. For simd collapse > 1
15029 loops, replace all iterators with temporaries.
15030 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15031 same even in collapse > 1 loops.
15033 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15034 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15036 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15037 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15039 (gimplify_adjust_omp_clauses): Likewise.
15040 * omp-low.c (lower_rec_simd_input_clauses,
15041 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15042 safelen the same as safelen(1).
15043 * tree-nested.c (convert_nonlocal_omp_clauses,
15044 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
15045 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15046 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15047 Fixup handling of GIMPLE_OMP_TARGET.
15048 (convert_tramp_reference_stmt, convert_gimple_call): Handle
15051 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
15053 PR tree-optimization/61554
15054 * tree-ssa-propagate.c: Include "bitmap.h".
15055 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15056 properly update constructor/destructor.
15057 (substitute_and_fold_dom_walker::before_dom_children):
15058 Remove call to gimple_purge_dead_eh_edges, add bb->index to
15059 need_eh_cleaup instead.
15060 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15063 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15065 * varpool.c (dump_varpool_node): Dump used_by_single_function.
15066 * tree-pass.h (make_pass_ipa_single_use): New pass.
15067 * cgraph.h (used_by_single_function): New flag.
15068 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15070 * passes.def (pass_ipa_single_use): Scedule.
15071 * ipa.c (BOTTOM): New macro.
15072 (meet): New function
15073 (propagate_single_user): New function.
15074 (ipa_single_use): New function.
15075 (pass_data_ipa_single_use): New pass.
15076 (pass_ipa_single_use): New pass.
15077 (pass_ipa_single_use::gate): New gate.
15078 (make_pass_ipa_single_use): New function.
15080 2014-06-23 Kai Tietz <ktietz@redhat.com>
15083 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15084 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15086 2014-06-23 Richard Biener <rguenther@suse.de>
15088 * tree-ssa-loop.c (gate_loop): New function.
15089 (pass_tree_loop::gate): Call it.
15090 (pass_data_tree_no_loop, pass_tree_no_loop,
15091 make_pass_tree_no_loop): New.
15092 * tree-vectorizer.c: Include tree-scalar-evolution.c
15093 (pass_slp_vectorize::execute): Initialize loops and SCEV if
15095 (pass_slp_vectorize::clone): New method.
15096 * timevar.def (TV_TREE_NOLOOP): New.
15097 * tree-pass.h (make_pass_tree_no_loop): Declare.
15098 * passes.def (pass_tree_no_loop): New pass group with
15101 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
15104 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15105 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15107 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15109 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15110 "yes" where needed.
15112 2014-06-23 Alan Modra <amodra@gmail.com>
15115 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15116 to zero on debug statements.
15118 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15121 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15122 Ignore third operand if present by marking qualifier_internal.
15124 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15126 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15128 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15129 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15130 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15131 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15132 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15133 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15134 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15135 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15136 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15137 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15138 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15139 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15140 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15141 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15142 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15143 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15144 logic in GCC vector extensions
15146 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15147 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15148 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15149 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15150 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15151 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15152 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15153 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15154 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15155 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15157 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15159 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15162 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15163 (vget_low_s64): Use __GET_LOW macro.
15164 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15165 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15166 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15167 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15168 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15170 (vcombine_s64): Use GCC vector extensions; remove cast.
15171 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15172 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15173 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15174 Fix type signature; remove cast.
15176 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15179 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15181 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15183 (BUILTIN_VD1): New.
15184 (BUILTIN_VD_RE): Remove.
15185 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15186 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15187 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15188 variant but not df.
15189 (vreinterpretv1df*, vreinterpret*v1df): New.
15190 (vreinterpretdf*, vreinterpret*df): Remove.
15191 * config/aarch64/aarch64-simd.md (aarch64_create,
15192 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15193 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15195 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15196 (vcreate_f64): Remove cast, use v1df builtin.
15197 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15198 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15199 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15200 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15201 vmov_n_f64, vst1_f64): Use gcc vector extensions.
15202 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15203 add range check using __builtin_aarch64_im_lane_boundsi.
15204 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15205 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15206 type signature, use gcc vector extensions.
15207 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15208 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15209 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15210 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15211 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15212 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15213 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15214 vreinterpret_u64_f64): Use v1df builtin not df.
15216 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15218 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15221 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15223 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15226 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15228 * loop-invariant.c (pre_check_invariant_p): New function.
15229 (find_invariant_insn): Call pre_check_invariant_p.
15231 2014-06-22 Richard Henderson <rth@redhat.com>
15234 * compare-elim.c (struct comparison): Add eh_note.
15235 (find_comparison_dom_walker::before_dom_children): Don't eliminate
15236 a redundant comparison in a different EH region. Purge EH edges if
15239 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15241 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15242 (var_shift): Use it.
15243 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15244 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15245 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15246 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15247 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15248 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15249 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15250 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15251 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15252 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15253 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15254 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15255 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15256 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15257 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15258 *rotldi3_internal15be): Use the new attribute. Merge register and
15259 integer alternatives.
15261 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15263 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15264 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15265 split, *ashrdi3_internal3 and split): Delete, merge into...
15266 (ashr<mode>3): New expander.
15267 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15268 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
15270 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15272 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15273 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15274 *rotldi3_internal3 and split): Delete, merge into...
15275 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15276 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15277 Use "rotlw" extended mnemonic.
15279 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15281 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15282 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15283 and split, *ashldi3_internal3 and split): Delete, merge into...
15284 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15285 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15287 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15289 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15290 (lshrsi3, two anonymous define_insns and define_splits,
15291 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15292 *lshrdi3_internal3 and split): Delete, merge into...
15293 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15294 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15296 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15298 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15299 Remove "O" alternative.
15301 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15303 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15304 (mips_move_from_gpr_cost): Likewise.
15305 (mips_register_move_cost): Update accordingly.
15306 (mips_secondary_reload_class): Remove name of in_p.
15308 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15311 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15312 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15314 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15316 * config/nios2/nios2.c: Include "builtins.h".
15318 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15320 * cgraph.h (tls_model_names): New variable.
15321 * print-tree.c (print_node): Simplify.
15322 * varpool.c (tls_model_names): New variable.
15323 (dump_varpool_node): Output tls model.
15325 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15327 * ipa-visibility.c (function_and_variable_visibility): Disable
15328 temporarily local aliases for some targets.
15330 2014-06-20 Marek Polacek <polacek@redhat.com>
15332 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15333 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15334 into SANITIZE_UNDEFINED.
15335 * doc/invoke.texi: Describe -fsanitize=bounds.
15336 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15337 functions created in the FEs.
15338 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15339 (expand_UBSAN_BOUNDS): New function.
15340 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15341 * internal-fn.h: Don't define internal functions here.
15342 * opts.c (common_handle_option): Add -fsanitize=bounds.
15343 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15344 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15345 * tree-core.h: Define internal functions here.
15346 (struct tree_base): Add ifn field.
15347 * tree-pretty-print.c: Include "internal-fn.h".
15348 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15349 * tree.c (get_callee_fndecl): Likewise.
15350 (build_call_expr_internal_loc): New function.
15351 * tree.def (CALL_EXPR): Update description.
15352 * tree.h (CALL_EXPR_IFN): Define.
15353 (build_call_expr_internal_loc): Declare.
15354 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15356 (ubsan_type_descriptor): Change bool parameter to enum
15357 ubsan_print_style. Adjust the code. Add handling of
15359 (ubsan_expand_bounds_ifn): New function.
15360 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15361 (ubsan_build_overflow_builtin): Likewise.
15362 (instrument_bool_enum_load): Likewise.
15363 (ubsan_instrument_float_cast): Likewise.
15364 * ubsan.h (enum ubsan_print_style): New enum.
15365 (ubsan_expand_bounds_ifn): Declare.
15366 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15368 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15370 * config/rs6000/rs6000.md: Append `DONE' to preparation
15371 statements of `bswap' pattern splitters.
15373 2014-06-20 Tom de Vries <tom@codesourcery.com>
15375 * target.def (call_fusage_contains_non_callee_clobbers): Update
15377 * doc/tm.texi: Regenerate.
15379 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15380 Max Ostapenko <m.ostapenko@partner.samsung.com>
15383 * asan.c (instrument_strlen_call): Fixed instrumentation of
15386 2014-06-20 Martin Jambor <mjambor@suse.cz>
15389 * ipa-prop.c (impossible_devirt_target): New function.
15390 (try_make_edge_direct_virtual_call): Use it, also instead of
15393 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15394 Max Ostapenko <m.ostapenko@partner.samsung.com>
15397 * asan.c (build_check_stmt): Add condition.
15399 2014-06-20 Martin Jambor <mjambor@suse.cz>
15402 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15405 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15407 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15409 (VCONQ): Make comment more helpful.
15411 * config/aarch64/aarch64-simd.md
15412 (aarch64_sqdmulh_lane<mode>):
15413 Use VCOND for operands 2. Update lane checking and flipping logic.
15414 (aarch64_sqrdmulh_lane<mode>): Likewise.
15415 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15416 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15417 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15418 attribute of operand 3 to VCOND.
15419 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15420 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15421 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15422 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15423 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15424 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15426 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15427 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15428 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15429 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15430 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15431 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15432 operand to VCOND. Update lane flipping and bounds checking logic.
15433 (aarch64_sqdmlal2_lane<mode>): Likewise.
15434 (aarch64_sqdmlsl_lane<mode>): Likewise.
15435 (aarch64_sqdmull_lane<mode>): Likewise.
15436 (aarch64_sqdmull2_lane<mode>): Likewise.
15437 (aarch64_sqdmlal_laneq<mode>):
15438 Replace VCON usage with VCONQ.
15439 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15440 (aarch64_sqdmlal2_laneq<mode>): Emit
15441 aarch64_sqdmlal2_laneq<mode>_internal insn.
15442 Replace VCON with VCONQ.
15443 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15444 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15445 (aarch64_sqdmull_laneq<mode>): Emit
15446 aarch64_sqdmull_laneq<mode>_internal insn.
15447 Replace VCON with VCONQ.
15448 (aarch64_sqdmull2_laneq<mode>): Emit
15449 aarch64_sqdmull2_laneq<mode>_internal insn.
15450 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15451 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15452 of 3rd argument to int16x4_t.
15453 (vqdmlalh_lane_s16): Likewise.
15454 (vqdmlslh_lane_s16): Likewise.
15455 (vqdmull_high_lane_s16): Likewise.
15456 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15457 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15458 (vqdmlsl_lane_s16): Likewise.
15459 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15460 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15461 (vqdmlals_lane_s32): Likewise.
15462 (vqdmlsls_lane_s32): Likewise.
15463 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15464 (vqdmulls_lane_s32): Likewise.
15465 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15466 (vqdmlsl_lane_s32): Likewise.
15467 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15468 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15469 (vqrdmulhh_lane_s16): Likewise.
15470 (vqdmlsl_high_lane_s16): Likewise.
15471 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15472 (vqdmlsl_high_lane_s32): Likewise.
15473 (vqrdmulhs_lane_s32): Likewise.
15475 2014-06-20 Tom de Vries <tom@codesourcery.com>
15477 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15478 get_call_reg_set_usage.
15480 2014-06-20 Tom de Vries <tom@codesourcery.com>
15482 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15483 it contains all call_used_regs.
15485 2014-06-20 Tom de Vries <tom@codesourcery.com>
15487 * final.c (collect_fn_hard_reg_usage): Add and use variable
15488 function_used_regs.
15490 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15492 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15493 (set_init_priority, get_init_priority, set_fini_priority,
15494 get_fini_priority): New methods.
15495 * tree.c (init_priority_for_decl): Remove.
15496 (init_ttree): Do not initialize init priority.
15497 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15498 (decl_priority_info): Remove.
15499 (decl_init_priority_insert): Rewrite.
15500 (decl_fini_priority_insert): Rewrite.
15501 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15502 tree_priority_map_marked_p): Remove.
15503 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15504 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15505 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15506 not output priorities.
15507 (pack_ts_function_decl_value_fields): Likewise.
15508 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15509 not input priorities.
15510 (unpack_ts_function_decl_value_fields): Likewise.
15511 * symtab.c (symbol_priority_map): Declare.
15512 (init_priority_hash): Declare.
15513 (symtab_unregister_node): Unregister from priority hash, too.
15514 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15516 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15517 (symbol_priority_info): New function.
15518 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15520 * tree-core.h (tree_priority_map): Remove.
15522 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15524 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15525 0xff to uint64_t before shifting it up.
15527 2014-06-20 Julian Brown <julian@codesourcery.com>
15528 Chung-Lin Tang <cltang@codesourcery.com>
15530 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15531 TARGET_THUMB1_ONLY. Add comments.
15533 2014-06-19 Tom de Vries <tom@codesourcery.com>
15535 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15536 return type to void.
15537 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15539 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15541 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15542 as "move", from depends_on.
15544 2014-06-19 Terry Guo <terry.guo@arm.com>
15546 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15549 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15551 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15553 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15555 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15558 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15559 addresses here if reload in progress or completed.
15561 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15563 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15564 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15565 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15566 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15567 (mips_register_priority): New function that implements the target
15568 hook TARGET_REGISTER_PRIORITY.
15569 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15570 (mips_lra_p): Likewise for TARGET_LRA_P.
15571 (TARGET_REGISTER_PRIORITY): Define macro.
15572 (TARGET_SPILL_CLASS): Likewise.
15573 (TARGET_LRA_P): Likewise.
15574 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15576 (REG_CLASS_NAMES): Likewise.
15577 (REG_CLASS_CONTENTS): Likewise.
15578 (BASE_REG_CLASS): Use M16_SP_REGS.
15579 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15580 New set attribute to enable alternatives depending on the register
15582 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15583 (*lea64): Disable pattern for MIPS16.
15584 * config/mips/mips.opt (mlra): New option.
15586 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15588 * lra-constraints.c (base_to_reg): New function.
15589 (process_address): Use new function.
15591 2014-06-18 Tom de Vries <tom@codesourcery.com>
15593 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15594 * config/aarch64/aarch64.c
15595 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15596 (aarch64_emit_call_insn): New function.
15597 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15599 * config/aarch64/aarch64.md (define_expand "call_internal")
15600 (define_expand "call_value_internal", define_expand "sibcall_internal")
15601 (define_expand "sibcall_value_internal"): New.
15602 (define_expand "call", define_expand "call_value")
15603 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15604 expand variant and aarch64_emit_call_insn.
15606 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15607 Tom de Vries <tom@codesourcery.com>
15609 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15610 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15612 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15613 clobbers to CALL_INSN_FUNCTION_USAGE.
15614 (define_expand "sibcall_internal")
15615 (define_expand "sibcall_value_internal"): New.
15616 (define_expand "call", define_expand "call_value"): Add argument to
15617 arm_emit_call_insn.
15618 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15619 (define_expand "sibcall_value"): Use sibcall_value_internal and
15620 arm_emit_call_insn.
15622 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15624 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15626 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15628 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15631 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15633 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15634 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15635 annotations. Fix DWARF information.
15637 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15639 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15640 __udivmoddi4, and fixups for negative operands.
15642 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15644 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15646 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15648 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15651 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15653 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15656 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15658 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15659 describing register usage on function entry and exit.
15661 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15663 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15664 (__aeabi_ldivmod): Fix whitespace.
15666 2014-06-18 Andreas Schwab <schwab@suse.de>
15668 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15669 Remove blank line after @item.
15671 2014-06-18 Richard Henderson <rth@redhat.com>
15674 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15676 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15678 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15679 POST_MODIFY for neon loads and stores.
15680 (arm_print_operand): Output post-index register for neon loads and
15683 2014-06-18 Richard Biener <rguenther@suse.de>
15685 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15687 2014-06-18 Richard Biener <rguenther@suse.de>
15689 * tree-pass.h (make_pass_dce_loop): Remove.
15690 * passes.def: Replace pass_dce_loop with pass_dce.
15691 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15692 changed free niter estimates and reset the scev cache.
15693 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15694 make_pass_dce_loop): Remove.
15695 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15696 (fini_copy_prop): Return whether something changed. Always
15697 let substitute_and_fold perform DCE and free niter estimates
15698 and reset the scev cache if so.
15699 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15700 (pass_data_copy_prop): Do not unconditionally schedule
15701 cleanup-cfg or update-ssa.
15703 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15705 PR tree-optimization/61518
15706 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15707 reduction var is used in reduction stmt or phi-function only.
15709 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15711 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15713 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15715 PR tree-optimization/61517
15716 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15717 whose rhs's first tree is the source expression instead of the
15719 (find_bswap_or_nop): Likewise.
15720 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15721 gimple stmt whose rhs's first tree is the source. In the memory source
15722 case, move the stmt to be replaced close to one of the original load to
15723 avoid the problem of a store between the load and the stmt's original
15725 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15728 2014-06-18 Andreas Schwab <schwab@suse.de>
15730 PR rtl-optimization/54555
15731 * postreload.c (move2add_use_add2_insn): Substitute
15732 STRICT_LOW_PART only if it is cheaper.
15734 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15736 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15737 Do not use unspec as call operand. Use memory_operand instead of
15738 memory_nox32_operand and add "m" operand constraint. Disable
15739 pattern for TARGET_X32.
15740 (*sibcall_pop_memory): Ditto.
15741 (*sibcall_value_memory): Ditto.
15742 (*sibcall_value_pop_memory): Ditto.
15743 (sibcall peepholes): Merge SImode and DImode patterns using
15744 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15745 Disable pattern for TARGET_X32. Check if eliminated register is
15746 really dead after call insn. Generate call RTX without unspec operand.
15747 (sibcall_value peepholes): Ditto.
15748 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15749 instead of memory_nox32_operand. Check if eliminated register is
15750 really dead after call insn. Generate call RTX without unspec operand.
15751 (sibcall_value_pop peepholes): Ditto.
15752 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15754 2014-06-18 Terry Guo <terry.guo@arm.com>
15757 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15760 2014-06-18 Olivier Hainque <hainque@adacore.com>
15762 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15763 memorization of the end of block source location.
15764 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15765 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15766 end source location info we have on the block entry/exit code we
15769 2014-06-18 Richard Biener <rguenther@suse.de>
15771 * common.opt (fssa-phiopt): New option.
15772 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15774 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15775 * doc/invoke.texi (-fssa-phiopt): Document.
15777 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15779 * genattrtab.c (n_bypassed): New variable.
15780 (process_bypasses): Initialise n_bypassed.
15781 Count number of bypassed reservations.
15782 (make_automaton_attrs): Allocate space for bypassed reservations
15783 rather than number of bypasses.
15785 2014-06-18 Richard Biener <rguenther@suse.de>
15787 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15788 we propagated anything.
15789 (substitute_and_fold_dom_walker::before_dom_children): Something
15790 changed if we propagated into PHI arguments.
15791 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15794 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15796 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15798 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15799 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15800 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15801 Introduces alternative way of loads group permutaions.
15802 (vect_transform_grouped_load): Try alternative way of permutations.
15804 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15806 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15807 changed in ORT_TARGET region, don't jump to do_outer.
15808 (struct gimplify_adjust_omp_clauses_data): New type.
15809 (gimplify_adjust_omp_clauses_1): Adjust for data being
15810 a struct gimplify_adjust_omp_clauses_data pointer instead
15811 of tree *. Pass pre_p as a new argument to
15812 lang_hooks.decls.omp_finish_clause hook.
15813 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15814 splay_tree_foreach to pass both list_p and pre_p.
15815 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15816 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15817 gimplify_adjust_omp_clauses callers.
15818 * langhooks.c (lhd_omp_finish_clause): New function.
15819 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15820 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15821 * langhooks.h (struct lang_hooks_for_decls): Add a new
15822 gimple_seq * argument to omp_finish_clause hook.
15823 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15824 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15825 (scan_omp_parallel, lower_omp_for): When adding
15826 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15827 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15828 * tree-nested.c (convert_nonlocal_omp_clauses,
15829 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15830 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15832 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15834 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15835 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15837 2014-06-17 Xinliang David Li <davidxl@google.com>
15839 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15840 * passes.c (pass_init_dump_file): Do not set initialize
15841 flag to false unconditionally.
15843 2014-06-17 Richard Biener <rguenther@suse.de>
15845 * genopinit.c (main): Use vec<>::qsort method.
15846 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15848 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15850 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15852 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15853 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15854 (mips_move_to_gpr_cost): Remove ST_REGS case.
15855 (mips_move_from_gpr_cost): Likewise.
15856 (mips_register_move_cost): Likewise.
15857 (mips_secondary_reload_class): Likewise.
15859 2014-06-17 Richard Biener <rguenther@suse.de>
15861 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15862 (pass_all_optimizations): Move 3rd copy-prop pass from after
15863 fre to before ifcombine/phiopt.
15865 2014-06-17 Richard Biener <rguenther@suse.de>
15867 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15868 and allow all blocks to be forwarders.
15870 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15873 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15874 variable 'size'; calculate 'size' right in the front; use
15875 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15876 pcum->aapcs_stack_words.
15878 2014-06-17 Nick Clifton <nickc@redhat.com>
15880 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15881 (umulhi3, mulsidi3, umulsidi3): Likewise.
15883 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15885 PR middle-end/61508
15886 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15887 check for section name.
15889 2014-06-17 Richard Biener <rguenther@suse.de>
15891 * tree-ssa-propagate.c: Include domwalk.h.
15892 (substitute_and_fold): Outline main worker into a domwalker ...
15893 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15894 Schedule stmts we can fully propagate for removal. Remove
15896 (substitute_and_fold): Apply a dominator walk to perform
15897 substitution. Process stmts scheduled for removal here.
15899 2014-06-17 Richard Biener <rguenther@suse.de>
15901 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15902 of PHI node moving.
15904 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15906 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15907 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15908 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15909 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15910 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15912 (get_fpscr) : Likewise.
15914 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15916 PR rtl-optimization/61325
15917 * lra-constraints.c (valid_address_p): Add forward declaration.
15918 (simplify_operand_subreg): Check address validity before and after
15919 alter_reg of memory subreg.
15921 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15923 * config/i386/i386.c (decide_alg): Correctly handle
15924 maximum size of stringop algorithm.
15926 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15928 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15930 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15932 PR rtl-optimization/61522
15933 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15935 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15938 * symtab.c (symtab_node::reset_section): New method.
15939 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15941 * cgraph.h (reset_section): Declare.
15942 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15943 do not consider comdat locals.
15944 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15946 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15947 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15948 reset sections of symbols dragged out of the comdats.
15949 (function_and_variable_visibility): Reset sections of
15952 2014-06-16 Richard Biener <rguenther@suse.de>
15954 PR tree-optimization/61482
15955 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15956 [-INF(OVF), +INF(OVF)] range.
15958 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15960 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15961 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15962 handling 32-bit multiplication.
15964 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15966 PR middle-end/61430
15967 * lra-lives.c (process_bb_lives): Skip creating copy during
15968 insn scan when src/dest has constrained to same regno.
15970 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15972 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15973 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15975 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15977 * asan.c (check_func): New function.
15978 (maybe_create_ssa_name): Likewise.
15979 (build_check_stmt_with_calls): Likewise.
15980 (use_calls_p): Likewise.
15981 (report_error_func): Change interface.
15982 (build_check_stmt): Allow non-integer lengths; add support
15984 (asan_instrument): Likewise.
15985 (instrument_mem_region_access): Moved code to build_check_stmt.
15986 (instrument_derefs): Likewise.
15987 (instrument_strlen_call): Likewise.
15988 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15989 * doc/invoke.texi: Describe new parameter.
15990 * params.def: Define new parameter.
15991 * params.h: Likewise.
15992 * sanitizer.def: Describe new builtins.
15994 2014-06-16 Richard Biener <rguenther@suse.de>
15996 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15997 Make all defs available at the end.
15998 (eliminate): If we remove a PHI node schedule cfg-cleanup.
16000 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16003 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16005 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
16008 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16009 initialization. Replace remaining use of uid.
16011 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16013 * c-family/c-common.c (handle_tls_model_attribute): Use
16014 set_decl_tls_model.
16015 * c-family/c-common.c (handle_tls_model_attribute): Use
16016 set_decl_tls_model.
16017 * cgraph.h (struct varpool_node): Add tls_model.
16018 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16019 * tree.h (DECL_TLS_MODEL): Update.
16020 (DECL_THREAD_LOCAL_P): Check that variable is static.
16021 (decl_tls_model): Declare.
16022 (set_decl_tls_model): Declare.
16023 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16024 set symbol prorperties.
16025 (get_emutls_init_templ_addr): Cleanup.
16026 (new_emutls_decl): Update.
16027 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16028 (lto_input_varpool_node): Likewise.
16029 * lto-streamer-out.c (hash_tree): Likewise.
16030 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16031 not stream DECL_TLS_MODEL.
16032 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16033 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16035 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16037 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16039 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16041 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16042 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16044 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16045 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16046 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16047 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16048 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16049 (df_get_artificial_defs, df_get_artificial_uses)
16050 (df_single_def, df_single_use): Update accordingly.
16051 (df_refs_chain_dump): Take the first element in a linked list as
16052 parameter, rather than a pointer to an array of pointers.
16053 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16054 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16055 (df_chain_create_bb_process_use): Likewise.
16056 (df_md_bb_local_compute_process_def): Likewise.
16057 * fwprop.c (process_defs, process_uses): Likewise.
16058 (register_active_defs, update_uses): Likewise.
16059 (forward_propagate_asm): Update for new df_ref linking.
16060 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16061 (df_null_ref_rec, df_null_mw_rec): Likewise.
16062 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16064 (df_scan_free_bb_info): Remove check for null artificial_defs.
16065 (df_install_ref_incremental): Adjust for new df_ref linking.
16066 Use a single-element insertion rather than a full sort.
16067 (df_ref_chain_delete_du_chain): Take the first element
16068 in a linked list as parameter, rather than a pointer to an array of
16070 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16071 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16072 (df_insn_info_delete): Remove check for null defs and call to
16073 df_scan_free_mws_vec.
16074 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16075 null rather than df_null_*_rec.
16076 (df_insn_rescan_debug_internal): Likewise, and update null
16077 checks in the same way. Remove check for null defs.
16078 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16079 Move a single element rather doing a full sort.
16080 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16082 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
16083 Initialize df_ref and df_mw_hardreg lists to null rather than
16085 (df_ref_compare): Take df_refs as parameter, transferring the
16086 old interface to...
16087 (df_ref_ptr_compare): ...this new function.
16088 (df_sort_and_compress_refs): Update accordingly.
16089 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16090 old interface to...
16091 (df_mw_ptr_compare): ...this new function.
16092 (df_sort_and_compress_mws): Update accordingly.
16093 (df_install_refs, df_install_mws): Return a linked list rather than
16094 an array of pointers.
16095 (df_refs_add_to_chains): Assert that old lists are empty rather
16097 (df_insn_refs_verify): Don't handle null defs speciailly.
16098 * web.c (union_match_dups): Update for new df_ref linking.
16100 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16102 * df.h (df_ref_create, df_ref_remove): Delete.
16103 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16104 (df_ref_remove): Likewise.
16106 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16108 * df.h (df_single_def, df_single_use): New functions.
16109 * ira.c (find_moveable_pseudos): Use them.
16111 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16113 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16114 * df-problems.c (df_note_bb_compute): Use it.
16115 * regstat.c (regstat_bb_compute_ri): Likewise.
16117 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16119 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16120 * cse.c (cse_extended_basic_block): Use them.
16121 * dce.c (mark_artificial_use): Likewise.
16122 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16123 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16124 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16125 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16126 (df_simulate_initialize_backwards): Likewise.
16127 (df_simulate_finalize_backwards): Likewise.
16128 (df_simulate_initialize_forwards): Likewise.
16129 (df_md_simulate_artificial_defs_at_top): Likewise.
16130 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16131 * regrename.c (init_rename_info): Likewise.
16132 * regstat.c (regstat_bb_compute_ri): Likewise.
16133 (regstat_bb_compute_calls_crossed): Likewise.
16135 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16137 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16138 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16139 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16140 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16141 * combine.c (create_log_links): Likewise.
16142 * compare-elim.c (find_flags_uses_in_insn): Likewise.
16143 (try_eliminate_compare): Likewise.
16144 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16145 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16146 (remove_reg_equal_equiv_notes_for_defs): Likewise.
16147 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16148 (word_dce_process_block, dce_process_block): Likewise.
16149 * ddg.c (def_has_ccmode_p): Likewise.
16150 * df-core.c (df_bb_regno_first_def_find): Likewise.
16151 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16152 * df-problems.c (df_rd_simulate_one_insn): Likewise.
16153 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16154 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16155 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16156 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16157 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16158 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16159 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16160 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16161 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16162 * fwprop.c (local_ref_killed_between_p): Likewise.
16163 (all_uses_available_at, free_load_extend): Likewise.
16164 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16165 * hw-doloop.c (scan_loop): Likewise.
16166 * ifcvt.c (dead_or_predicable): Likewise.
16167 * init-regs.c (initialize_uninitialized_regs): Likewise.
16168 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16169 (process_bb_node_lives): Likewise.
16170 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16171 (find_moveable_pseudos): Likewise.
16172 * loop-invariant.c (check_dependencies, record_uses): Likewise.
16173 * recog.c (peep2_find_free_register): Likewise.
16174 * ree.c (get_defs): Likewise.
16175 * regstat.c (regstat_bb_compute_ri): Likewise.
16176 (regstat_bb_compute_calls_crossed): Likewise.
16177 * sched-deps.c (find_inc, find_mem): Likewise.
16178 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16179 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16180 * shrink-wrap.c (requires_stack_frame_p): Likewise.
16181 (prepare_shrink_wrap): Likewise.
16182 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16183 * web.c (union_defs, pass_web::execute): Likewise.
16184 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16185 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16187 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
16189 * lra-assign.c (assign_by_spills): Add code to assign vector regs
16190 to inheritance pseudos.
16191 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16193 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
16196 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16197 (BU_MISC_2): Rename to ...
16198 (BU_LDBL128_2): ... this.
16199 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16200 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16201 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16202 RS6000_BTM_LDBL128.
16203 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16204 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16205 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16206 (unpacktf_1): Likewise.
16207 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16208 (__builtin_longdouble_dw1): Likewise.
16209 * doc/sourcebuild.texi (longdouble128): Document.
16211 2014-06-13 Jeff Law <law@redhat.com>
16213 PR rtl-optimization/61094
16214 PR rtl-optimization/61446
16215 * ree.c (combine_reaching_defs): Get the mode for the copy from
16216 the extension insn rather than the defining insn.
16218 2014-06-13 Dehao Chen <dehao@google.com>
16220 * dwarf2out.c (add_linkage_name): Emit more linkage name.
16222 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
16224 * doc/install.texi (--enable-linker-plugin-configure-flags)
16225 (--enable-linker-plugin-flags): Document new flags.
16227 2014-06-13 Martin Jambor <mjambor@suse.cz>
16230 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16231 cache_token if returning early.
16233 2014-06-13 Nick Clifton <nickc@redhat.com>
16235 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16236 requested alignment is active.
16237 (LABEL_ALIGN): Likewise.
16238 (LOOP_ALIGN): Likewise.
16240 2014-06-13 Richard Biener <rguenther@suse.de>
16242 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16243 Rewrite to propagate the VN result into all uses where
16244 possible and to remove stmts becoming dead because of that.
16245 (eliminate): Generalize stmt removal handling, remove in
16246 reverse dominator order to support proper debug stmt
16247 generation. Update stmts before removing stmts.
16248 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16250 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16252 PR tree-optimization/61375
16253 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16254 symbolic number cannot be represented in an uint64_t.
16255 (find_bswap_or_nop_1): Likewise.
16257 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16259 * symtab.c (symtab_node::reset_section): New method.
16260 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16262 * cgraph.h (reset_section): Declare.
16263 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16264 do not consider comdat locals.
16265 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16267 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16268 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16269 reset sections of symbols dragged out of the comdats.
16270 (function_and_variable_visibility): Reset sections of
16273 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16275 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16276 to use symtab and decl_binds_to_current_def_p
16277 * tree-vectorizer.c (increase_alignment): Increase alignment
16278 of alias target, too.
16280 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16282 PR middle-end/61486
16283 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16284 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16285 if outer combined construct is distribute.
16286 (gimplify_omp_for): For OMP_DISTRIBUTE set
16287 gimplify_omp_ctxp->distribute.
16288 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16289 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16290 mapping into decl map.
16292 2014-06-12 Jason Merrill <jason@redhat.com>
16294 * common.opt (fabi-version): Change default to 0.
16296 2014-06-12 Jason Merrill <jason@redhat.com>
16298 * toplev.c (process_options): Reject -fabi-version=1.
16300 2014-06-12 Jeff Law <law@redhat.com>
16302 PR tree-optimization/61009
16303 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16304 value when we stop processing a block due to problematic PHIs.
16306 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16308 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16309 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16310 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16311 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16312 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16313 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16314 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16315 are not in the spec.
16317 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16320 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16321 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16324 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16326 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16328 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16331 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16332 loading from address spaces.
16334 2014-06-12 Martin Liska <mliska@suse.cz>
16337 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16338 statement is reachable.
16340 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16342 * symtab.c (section_hash): New hash.
16343 (symtab_unregister_node): Clear section before freeing.
16344 (hash_section_hash_entry): New haser.
16345 (eq_sections): New function.
16346 (symtab_node::set_section_for_node): New method.
16347 (set_section_1): Update.
16348 (symtab_node::set_section): Take string instead of tree as parameter.
16349 (symtab_resolve_alias): Update.
16350 * cgraph.h (section_hash_entry_d): New structure.
16351 (section_hash_entry): New typedef.
16352 (cgraph_node): Change comdat_group_ to x_comdat_group,
16353 change section_ to x_section and turn into section_hash_entry;
16354 update accestors; put set_section_for_node offline.
16355 * tree.c (decl_section_name): Turn into string.
16356 (set_decl_section_name): Change parameter to be string.
16357 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16358 * sdbout.c (sdbout_one_type): Update.
16359 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16360 * varasm.c (IN_NAMED_SECTION, get_named_section,
16361 resolve_unique_section, hot_function_section, get_named_text_section,
16362 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16363 make_decl_rtl, default_unique_section): Update.
16364 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16365 (c6x_elf_unique_section): Update.
16366 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16367 * config/pa/pa.c (pa_function_section): Update.
16368 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16369 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16370 * config/arc/arc.c (arc_in_small_data_p): Update.
16371 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16372 * config/mcore/mcore.c (mcore_unique_section): Update.
16373 * config/mips/mips.c (mips16_build_function_stub): Update.
16374 (mips16_build_call_stub): Update.
16375 (mips_function_rodata_section): Update.
16376 (mips_in_small_data_p): Update.
16377 * config/score/score.c (score_in_small_data_p): Update.
16378 * config/rx/rx.c (rx_in_small_data): Update.
16379 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16380 (rs6000_xcoff_asm_named_section): Update.
16381 (rs6000_xcoff_unique_section): Update.
16382 * config/frv/frv.c (frv_string_begins_with): Update.
16383 (frv_in_small_data_p): Update.
16384 * config/v850/v850.c (v850_encode_data_area): Update.
16385 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16386 (bfin_handle_l1_data_attribute): Update.
16387 (bfin_handle_l2_attribute): Update.
16388 * config/mep/mep.c (mep_unique_section): Update.
16389 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16391 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16392 (h8300_handle_tiny_data_attribute): Update.
16393 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16394 (m32r_in_small_data_p): Update.
16395 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16396 * config/i386/i386.c (ix86_in_large_data_p): Update.
16397 * config/i386/winnt.c (i386_pe_unique_section): Update.
16398 * config/darwin.c (darwin_function_section): Update.
16399 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16400 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16401 (new_emutls_decl): Update.
16402 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16403 input_varpool_node): Update.
16404 (ead_string_cst): Turn to ...
16405 (read_string): ... this one.
16406 * dwarf2out.c (secname_for_decl): Update.
16407 * asan.c (asan_protect_global): Update.
16409 2014-06-11 DJ Delorie <dj@redhat.com>
16411 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16413 * config/rx/rx.c (rx_option_override): Likewise.
16414 (rx_align_for_label): Likewise.
16416 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16418 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16420 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16423 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16425 * common.md: New file.
16426 * doc/md.texi: Update description of generic, machine-independent
16428 * config/s390/constraints.md (e): Delete.
16429 * Makefile.in (md_file): Include common.md.
16430 * config/m32c/t-m32c (md_file): Likewise.
16431 * genpreds.c (general_mem): New array.
16432 (generic_constraint_letters): Remove constraints now defined by
16434 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16435 Allow the first character to be '<' or '>' as well.
16436 * genoutput.c (general_mem): New array.
16437 (indep_constraints): Remove constraints now defined by common.md.
16438 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16439 Remove special handling of 'm'.
16440 * ira-costs.c (record_reg_classes): Remove special handling of
16441 constraints now defined by common.md.
16442 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16443 * ira-lives.c (single_reg_class): Likewise.
16444 (ira_implicitly_set_insn_hard_regs): Likewise.
16445 * lra-constraints.c (reg_class_from_constraints): Likewise.
16446 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16447 * postreload.c (reload_cse_simplify_operands): Likewise.
16448 * reload.c (push_secondary_reload, scratch_reload_class)
16449 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16450 * reload1.c (maybe_fix_stack_asms): Likewise.
16451 * targhooks.c (default_secondary_reload): Likewise.
16452 * stmt.c (parse_output_constraint): Likewise.
16453 * recog.c (preprocess_constraints): Likewise.
16454 (constrain_operands, peep2_find_free_register): Likewise.
16455 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16456 must be handled specially.
16458 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16460 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16461 * genpreds.c (have_const_dbl_constraints): Delete.
16462 (add_constraint): Don't set it.
16463 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16464 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16465 constraints using the lookup_constraint logic.
16466 * ira-lives.c (single_reg_class): Likewise.
16467 * ira.c (ira_setup_alts): Likewise.
16468 * lra-constraints.c (process_alt_operands): Likewise.
16469 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16470 * reload.c (find_reloads): Likewise.
16472 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16474 * genpreds.c (const_int_start, const_int_end): New variables.
16475 (choose_enum_order): Output CONST_INT constraints before memory
16477 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16479 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16480 * ira.c (ira_setup_alts): Likewise.
16481 * lra-constraints.c (process_alt_operands): Likewise.
16482 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16483 * reload.c (find_reloads): Likewise.
16485 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16487 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16488 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16489 * recog.c (preprocess_constraints): Update accordingly.
16491 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16493 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16494 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16495 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16496 * genpreds.c (print_type_tree): New function.
16497 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16498 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16499 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16500 Write out enum constraint_type and get_constraint_type.
16501 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16502 constraint_num rather than a constraint string.
16503 (satisfies_address_constraint_p): Likewise.
16504 (reg_class_from_constraints): Avoid old constraint macros.
16505 (process_alt_operands, process_address_1): Likewise.
16506 (curr_insn_transform): Likewise.
16507 * ira-costs.c (record_reg_classes): Likewise.
16508 (record_operand_costs): Likewise.
16509 * ira-lives.c (single_reg_class): Likewise.
16510 (ira_implicitly_set_insn_hard_regs): Likewise.
16511 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16512 * postreload.c (reload_cse_simplify_operands): Likewise.
16513 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16514 (constrain_operands, peep2_find_free_register): Likewise.
16515 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16516 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16517 * reload1.c (maybe_fix_stack_asms): Likewise.
16518 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16519 * targhooks.c (default_secondary_reload): Likewise.
16520 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16521 to EXTRA_CONSTRAINT_STR.
16522 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16524 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16526 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16527 (write_constraint_satisfied_p_array): ...this new function.
16528 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16530 (write_insn_preds_c): Update accordingly.
16532 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16534 * genpreds.c (write_lookup_constraint): Rename to...
16535 (write_lookup_constraint_1): ...this.
16536 (write_lookup_constraint_array): New function.
16537 (write_tm_preds_h): Define lookup_constraint as an inline function
16538 that uses write_lookup_constraint_array where possible.
16539 (write_insn_preds_c): Update for the changes above.
16541 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16543 * doc/md.texi (regclass_for_constraint): Rename to...
16544 (reg_class_for_constraint): ...this.
16545 * genpreds.c (num_constraints, enum_order, register_start)
16546 (register_end, satisfied_start, memory_start, memory_end)
16547 (address_start, address_end): New variables.
16548 (add_constraint): Count the number of constraints.
16549 (choose_enum_order): New function.
16550 (write_enum_constraint_num): Iterate over enum_order.
16551 (write_regclass_for_constraint): Rename to...
16552 (write_reg_class_for_constraint_1): ...this and update output
16554 (write_constraint_satisfied_p): Rename to...
16555 (write_constraint_satisfied_p_1): ...this and update output
16556 accordingly. Do nothing if all extra constraints are register
16558 (write_insn_extra_memory_constraint): Delete.
16559 (write_insn_extra_address_constraint): Delete.
16560 (write_range_function): New function.
16561 (write_tm_preds_h): Define constraint_satisfied_p and
16562 reg_class_for_constraint as inline functions that do a range check
16563 before calling the out-of-line function. Use write_range_function
16564 to implement insn_extra_{register,memory,address}_constraint,
16565 the first of which is new.
16566 (write_insn_preds_c): Update after above changes to write_* functions.
16567 (main): Call choose_enum_order.
16569 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16571 PR tree-optimization/61306
16572 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16573 expression instead of its size.
16574 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16575 false to prevent optimization when the result is unpredictable due to
16576 arithmetic right shift of signed type with highest byte is set.
16577 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16578 (init_symbolic_number): Likewise.
16579 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16580 when the result is unpredictable due to sign extension.
16582 2014-06-11 Terry Guo <terry.guo@arm.com>
16584 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16585 (*thumb1_addsi3): Ditto.
16586 (*thumb_subdi3): Ditto.
16587 (thumb1_subsi3_insn): Ditto.
16588 (*thumb_mulsi3): Ditto.
16589 (*thumb_mulsi3_v6): Ditto.
16590 (*thumb1_andsi3_insn): Ditto.
16591 (thumb1_bicsi3): Ditto.
16592 (*thumb1_iorsi3_insn): Ditto.
16593 (*thumb1_xorsi3_insn): Ditto.
16594 (*thumb1_ashlsi3): Ditto.
16595 (*thumb1_ashrsi3): Ditto.
16596 (*thumb1_lshrsi3): Ditto.
16597 (*thumb1_rotrsi3): Ditto.
16598 (*thumb1_negdi2): Ditto.
16599 (*thumb1_negsi2): Ditto.
16600 (*thumb1_abssi2): Ditto.
16601 (*thumb1_neg_abssi2): Ditto.
16602 (*thumb1_one_cmplsi2): Ditto.
16603 (*thumb1_zero_extendhisi2): Ditto.
16604 (*thumb1_zero_extendqisi2): Ditto.
16605 (*thumb1_zero_extendqisi2_v6): Ditto.
16606 (thumb1_extendhisi2): Ditto.
16607 (thumb1_extendqisi2): Ditto.
16608 (*thumb1_movdi_insn): Ditto.
16609 (*thumb1_movsi_insn): Ditto.
16610 (*thumb1_movhi_insn): Ditto.
16611 (thumb_movhi_clobber): Ditto.
16612 (*thumb1_movqi_insn): Ditto.
16613 (*thumb1_movhf): Ditto.
16614 (*thumb1_movsf_insn): Ditto.
16615 (*thumb_movdf_insn): Ditto.
16616 (movmem12b): Ditto.
16618 (cbranchqi4): Ditto.
16619 (cbranchsi4_insn): Ditto.
16620 (cbranchsi4_scratch): Ditto.
16621 (*negated_cbranchsi4): Ditto.
16622 (*tbit_cbranch): Ditto.
16623 (*tlobits_cbranch): Ditto.
16624 (*tstsi3_cbranch): Ditto.
16625 (*cbranchne_decr1): Ditto.
16626 (*addsi3_cbranch): Ditto.
16627 (*addsi3_cbranch_scratch): Ditto.
16628 (*thumb_cmpdi_zero): Ditto.
16629 (cstoresi_eq0_thumb1): Ditto.
16630 (cstoresi_ne0_thumb1): Ditto.
16631 (*cstoresi_eq0_thumb1_insn): Ditto.
16632 (*cstoresi_ne0_thumb1_insn): Ditto.
16633 (cstoresi_nltu_thumb1): Ditto.
16634 (cstoresi_ltu_thumb1): Ditto.
16635 (thumb1_addsi3_addgeu): Ditto.
16636 (*thumb_jump): Ditto.
16637 (*call_reg_thumb1_v5): Ditto.
16638 (*call_reg_thumb1): Ditto.
16639 (*call_value_reg_thumb1_v5): Ditto.
16640 (*call_value_reg_thumb1): Ditto.
16641 (*call_insn): Ditto.
16642 (*call_value_insn): Ditto.
16643 (thumb1_casesi_internal_pic): Ditto.
16644 (thumb1_casesi_dispatch): Ditto.
16645 (*thumb1_indirect_jump): Ditto.
16646 (prologue_thumb1_interwork): Ditto.
16647 (*epilogue_insns): Ditto.
16648 (consttable_1): Ditto.
16649 (consttable_2): Ditto.
16650 (tablejump): Ditto.
16651 (*thumb1_tablejump): Ditto.
16652 (thumb_eh_return): Ditto.
16653 (define_peephole2): Two of them are thumb1 only and got moved into
16654 new file thumb1.md.
16655 (define_split): Six of them are thumb1 only and got moved into new
16657 * config/arm/thumb1.md: New file comprised of above thumb1 only
16660 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16662 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16663 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16665 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16666 (aarch64_crc_builtin_datum): New struct.
16667 (aarch64_crc_builtin_data): New.
16668 (aarch64_init_crc32_builtins): New function.
16669 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16670 (aarch64_crc32_expand_builtin): New.
16671 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16672 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16673 __ARM_FEATURE_CRC32 when appropriate.
16674 (TARGET_CRC32): Define.
16675 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16676 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16677 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16678 (aarch64_<crc_variant>): New pattern.
16679 * config/aarch64/arm_acle.h: New file.
16680 * config/aarch64/iterators.md (CRC): New int iterator.
16681 (crc_variant, crc_mode): New int attributes.
16682 * doc/aarch64-acle-intrinsics.texi: New file.
16683 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16684 Include aarch64-acle-intrinsics.texi.
16686 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16688 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16689 check for stores group of length 3.
16690 (vect_permute_store_chain): New permutations for stores group of
16692 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16693 of vec_perm_shuffle for the new permutations.
16695 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16697 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16698 table rewriting temporarily on targets not supporting ONE_ONLY.
16700 2014-06-11 Richard Biener <rguenther@suse.de>
16702 PR middle-end/61437
16704 2014-06-04 Richard Biener <rguenther@suse.de>
16706 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16707 TREE_PUBLIC and DECL_EXTERNAL decls.
16709 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16711 * varasm.c (set_implicit_section): New function.
16712 (resolve_unique_section): Use it to set implicit section
16714 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16715 (default_function_section): Likewise.
16716 (decl_binds_to_current_def_p): Constify argument.
16717 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16718 * asan.c (asan_protect_global): Use
16719 symtab_get_node (decl)->implicit_section.
16720 * symtab.c (dump_symtab_base): Dump implicit sections.
16721 (verify_symtab_base): Verify sanity of sectoins and comdats.
16722 (symtab_resolve_alias): Alias share the section of its target.
16723 (set_section_1): New function.
16724 (symtab_node::set_section): Move here, recurse to aliases.
16725 (verify_symtab): Check for duplicated symtab lists.
16726 * tree-core.h (implicit_section_name_p): Remove.
16727 * tree-vect-data-refs.c: Include varasm.h.
16728 (vect_can_force_dr_alignment_p): Fix conditional on when
16729 decl bints to current definition; use
16730 symtab_get_node (decl)->implicit_section.
16731 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16732 * cgraph.h (struct symtab_node): Add implicit_section.
16733 (set_section): Rename to ...
16734 (set_section_for_node): ... this one.
16735 (set_section): Declare.
16736 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16737 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16738 input_overwrite_node, input_varpool_node): Stream implicit_section.
16739 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16740 removal; it will fail in LTO.
16742 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16744 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16745 Change second alternative type to f_mcr.
16746 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16747 and 12th alternatives' types to f_mcr and f_mrc.
16748 (*movdi_aarch64): Same for 12th and 13th alternatives.
16749 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16750 (aarch64_movtilow_tilow): Change type to fmov.
16752 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16754 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16755 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16757 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16759 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16761 (aarch64_sqrdmulh_lane<mode>): Likewise.
16762 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16763 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16764 (aarch64_sqdmulh_laneq<mode>): New expander.
16765 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16766 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16767 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16768 (aarch64_sqdmulh_lane<mode>): New expander.
16769 (aarch64_sqrdmulh_lane<mode>): Likewise.
16770 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16771 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16772 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16773 (aarch64_sqdmlal_laneq<mode>): Likewise.
16774 (aarch64_sqdmlsl_lane<mode>): Likewise.
16775 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16776 (aarch64_sqdmlal2_lane<mode>): Likewise.
16777 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16778 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16779 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16780 (aarch64_sqdmull_lane<mode>): Likewise.
16781 (aarch64_sqdmull_laneq<mode>): Likewise.
16782 (aarch64_sqdmull2_lane<mode>): Likewise.
16783 (aarch64_sqdmull2_laneq<mode>): Likewise.
16785 2014-06-10 Richard Biener <rguenther@suse.de>
16787 PR tree-optimization/61438
16788 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16789 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16790 insertion of IVs if running PRE.
16791 (eliminate): Adjust.
16792 (pass_pre::execute): Likewise.
16793 (pass_fre::execute): Likewise.
16795 2014-06-10 Richard Biener <rguenther@suse.de>
16797 PR middle-end/61456
16798 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16799 Do not use the main variant for the type comparison.
16800 (ncr_compar): Likewise.
16801 (nonoverlapping_component_refs_p): Likewise.
16803 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16805 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16806 REG_CFA_RESTORE mode.
16808 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16810 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16811 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16812 expand_vec_perm_pblendv.
16814 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16816 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16818 Simplify description of __crc32d and __crc32cd intrinsics.
16819 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16822 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16825 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16826 * config.in: Regenerate.
16827 * configure: Likewise.
16829 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16831 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16833 (intersect_static_var_sets): Remove.
16834 (propagate): Do not prune local statics.
16836 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16839 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16840 Set lastprivate_firstprivate even if omp_private_outer_ref
16841 langhook returns true.
16842 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16843 langhook, call unshare_expr on new_var and call
16844 build_outer_var_ref to get the last argument.
16846 2014-06-10 Marek Polacek <polacek@redhat.com>
16849 * doc/extend.texi: Add cindex for transparent_union.
16851 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16853 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16854 init_symbolic_number ().
16856 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16858 PR middle-end/61141
16859 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16860 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16861 (verify_rtl_sharing): Likewise.
16863 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16866 * tree.c (build_qualified_type): Use a canonical type for
16869 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16871 * config/arm/arm-modes.def: Remove XFmode.
16873 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16876 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16877 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16878 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16879 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16880 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16881 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16882 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16883 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16884 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16886 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16888 * tree-core.h (tree_decl_with_vis): Remove section_name.
16890 2014-06-09 Kito Cheng <kito@0xlab.org>
16892 * ira.c (ira): Don't call init_caller_save if LRA enabled
16893 since LRA use its own infrastructure to handle that.
16895 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16897 * symtab.c (dump_symtab_base): Update dumping.
16898 (symtab_make_decl_local): Clear only DECL_COMDAT.
16899 * tree-vect-data-refs.c (Check that variable is static before
16900 tampering with sections.
16901 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16902 (cgraph_create_virtual_clone): Likewise.
16903 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16904 (decl_section_name, set_decl_section_name): New accessors.
16905 (find_decls_types_r): Do not walk section name
16906 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16907 (decl_comdat_group, decl_comdat_group_id): Constify.
16908 (decl_section_name, set_decl_section_name): Update.
16909 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16910 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16911 (cgraph_make_node_local_1): Clear section and comdat group.
16912 * cgraph.h (set_comdat_group): Sanity check.
16913 (get_section, set_section): New.
16914 * ipa-comdats.c (ipa_comdats): Use get_section.
16915 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16916 * lto-streamer-out.c: Do not follow section names.
16917 * c-family/c-common.c (handle_section_attribute): Update.
16918 * lto-cgraph.c (lto_output_node): Output section.
16919 (lto_output_varpool_node): Likewise.
16920 (read_comdat_group): Rename to ...
16921 (read_identifier): ... this one.
16922 (read_string_cst): New function.
16923 (input_node, input_varpool_node): Input section names.
16924 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16925 (new_emutls_decl): Update.
16926 (secname_for_decl): Check section names only of static vars.
16927 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16928 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16929 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16930 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16931 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16932 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16933 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16934 * config/v850/v850.c (v850_insert_attributes): Likewise.
16935 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16937 (h8300_handle_tiny_data_attribute): Likewise.
16938 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16939 (bfin_handle_l2_attribute): Likewise.
16941 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16943 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16944 remove static initializer.
16946 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16948 * varasm.c (use_blocks_for_decl_p): Check symbol table
16949 instead of alias attribute.
16950 (place_block_symbol): Recurse on aliases.
16952 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16954 * ipa-visibility.c: Include varasm.h
16955 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16957 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16959 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16960 outputting aliases.
16962 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16964 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16965 from test_insn into GGC space escape via SET_SRC.
16967 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16969 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16970 call statement, if any.
16971 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16972 statements, if any. Tidy up.
16974 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16977 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16978 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16979 handles swapping the two 64-bit double words on little endian
16980 systems. Include V1TImode and optionally TImode in VSX_LE so that
16981 these types are properly swapped. Change all of the insns and
16982 splits that do the 64-bit swaps to use VSX_LE.
16983 (vsx_le_perm_load_<mode>): Likewise.
16984 (vsx_le_perm_store_<mode>): Likewise.
16985 (splitters for little endian memory operations): Likewise.
16986 (vsx_xxpermdi2_le_<mode>): Likewise.
16987 (vsx_lxvd2x2_le_<mode>): Likewise.
16988 (vsx_stxvd2x2_le_<mode>): Likewise.
16990 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16993 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16994 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16995 and corresponding splitters. Zero extend general register
16996 or memory input operand to XMM temporary. Enable for
16997 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16998 (floatunssi<mode>2): Update expander predicate.
17000 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
17002 PR rtl-optimization/61325
17003 * lra-constraints.c (process_address_1): Check scale equal to one
17004 to prevent transformation: base + scale * index => base + new_reg.
17006 2014-06-06 Richard Biener <rguenther@suse.de>
17008 PR tree-optimization/59299
17009 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17011 (nearest_common_dominator_of_uses): Likewise.
17012 (statement_sink_location): Adjust. Support sinking loads.
17014 2014-06-06 Martin Jambor <mjambor@suse.cz>
17016 * ipa-prop.c (get_place_in_agg_contents_list): New function.
17017 (build_agg_jump_func_from_list): Likewise.
17018 (determine_known_aggregate_parts): Renamed to
17019 determine_locally_known_aggregate_parts. Moved some functionality
17020 to the two functions above, removed bound checks.
17022 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
17024 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17025 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17026 (aarch64_progress_pointer): Likewise.
17027 (aarch64_copy_one_part_and_move_pointers): Likewise.
17028 (aarch64_expand_movmen): Likewise.
17029 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17030 * config/aarch64/aarch64.md (movmem<mode>): New.
17032 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
17034 * targhooks.c (default_add_stmt_cost): Call target specific
17035 hook instead of default one.
17037 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
17039 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17040 endianness instead of host endianness.
17041 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17044 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17047 * function.c (instantiate_decls): Process the saved static chain.
17048 (expand_function_start): If not optimizing, save the static chain
17050 * tree-nested.c (convert_all_function_calls): Always create the static
17051 chain for nested functions if not optimizing.
17053 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17055 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17057 2014-06-06 Richard Biener <rguenther@suse.de>
17059 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17060 (construct_init_block): Likewise.
17061 (construct_exit_block): Likewise.
17062 (pass_expand::execute): Likewise.
17063 * graphite.c (graphite_transforms): Replace check for current_loops
17064 with a check for > 1 loops.
17065 (pass_graphite_transforms::execute): Adjust.
17066 * ipa-split.c (split_function): Remove check for current_loops.
17067 * omp-low.c (expand_parallel_call): Likewise.
17068 (expand_omp_for_init_counts): Likewise.
17069 (extract_omp_for_update_vars): Likewise.
17070 (expand_omp_for_generic): Likewise.
17071 (expand_omp_sections): Likewise.
17072 (expand_omp_target): Likewise.
17073 * tracer.c (tail_duplicate): Likewise.
17074 (pass_tracer::execute): Likewise.
17075 * trans-mem.c (expand_transaction): Likewise.
17076 * tree-complex.c (expand_complex_div_wide): Likewise.
17077 * tree-eh.c (lower_resx): Likewise.
17078 (cleanup_empty_eh_merge_phis): Likewise.
17079 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17080 current_loops with a check for > 1 loops.
17081 (pass_predcom::execute): Adjust.
17082 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17083 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17084 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17085 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17086 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17087 * tree-switch-conversion.c (process_switch): Likewise.
17088 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17089 * tree-vrp.c (vrp_visit_phi_node): Likewise.
17090 (execute_vrp): Likewise.
17091 * ubsan.c (ubsan_expand_null_ifn): Likewise.
17093 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17095 * rtl.h (insn_location): Declare.
17096 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17097 with UNKNOWN_LOCATION.
17098 * emit-rtl.c (insn_location): New function.
17099 * final.c (notice_source_line): Check that the instruction has a
17100 location before retrieving it and use insn_location.
17101 * modulo-sched.c (loop_single_full_bb_p): Likewise.
17102 * print-rtl.c (print_rtx): Likewise.
17104 2014-06-06 Richard Biener <rguenther@suse.de>
17106 * passes.def: Move 2nd VRP pass before phi-only-cprop.
17108 2014-06-06 Christian Bruel <christian.bruel@st.com>
17110 PR tree-optimization/43934
17111 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17114 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
17116 * ira-lives.c (single_reg_class): Add missing break. Explicitly
17117 return NO_REGS for extra address and memory constraints. Handle
17118 operands that match (or are equivalent to something that matches)
17119 extra constant constraints. Ignore other non-register operands.
17121 2014-06-06 Alan Modra <amodra@gmail.com>
17124 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17125 * doc/tm.texi: Regenerate.
17126 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17127 Use throughout in place of REG_PARM_STACK_SPACE.
17128 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17129 "incoming" param. Pass to rs6000_function_parms_need_stack.
17130 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17131 prototype_p when incoming. Use function decl when incoming
17132 to handle K&R style functions.
17133 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17134 (INCOMING_REG_PARM_STACK_SPACE): Define.
17136 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17139 * cfgexpand.c (expand_debug_expr): Use address space of nested
17140 TREE_TYPE for ADDR_EXPR and MEM_REF.
17142 2014-06-05 Jeff Law <law@redhat.com>
17144 PR tree-optimization/61289
17145 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17146 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
17147 looking for those which match LHS. All callers changed.
17148 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17149 parameters and code which manipulated them. All callers changed.
17150 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17151 and DST_MAP parameters. Simplify invalidation code by just calling
17152 invalidate_equivalences. All callers changed.
17153 (thread_across_edge): Simplify now that we don't need to maintain
17154 the map of equivalences to invalidate.
17156 2014-06-05 Kai Tietz <ktietz@redhat.com>
17157 Richard Henderson <rth@redhat.com>
17160 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17161 checking for !TARGET_X32.
17162 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17163 (sibcall_intern): New define_insn, plus required peepholes.
17164 (sibcall_pop_intern): Likewise.
17165 (sibcall_value_intern): Likewise.
17166 (sibcall_value_pop_intern): Likewise.
17168 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
17170 * tree-inline.c (tree_function_versioning): Check DF info existence
17171 before accessing it.
17173 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17175 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17177 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17178 aarch64_frame hard_fp_offset and frame_size.
17179 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17180 frame_size; remove original_frame_size.
17181 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17182 (aarch64_initial_elimination_offset): Remove frame_size and
17183 offset. Use aarch64_frame frame_size.
17185 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17186 Jiong Wang <jiong.wang@arm.com>
17187 Renlin <renlin.li@arm.com>
17189 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17190 initialization of R30 offset. Update offset. Iterate core
17191 regisers upto X30. Remove X29, X30 specific code.
17193 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17194 Jiong Wang <jiong.wang@arm.com>
17196 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17197 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17198 (aarch64_register_saved_on_entry): Adjust test.
17200 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17202 * config/aarch64/aarch64.h (machine_function): Move
17203 saved_varargs_size from here...
17204 (aarch64_frame): ... to here.
17206 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17207 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17208 (aarch64_initial_elimination_offset)
17209 (aarch64_setup_incoming_varargs): Adjust location of
17210 saved_varargs_size.
17212 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17214 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17217 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
17218 Prachi Godbole <Prachi.Godbole@imgtec.com>
17220 * config/mips/mips-cpus.def: Add definition for p5600. Updated
17221 mips32r5 entry to use PROCESSOR_P5600.
17222 * config/mips/mips-tables.opt: Regenerate.
17223 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17224 * config/mips/mips.c (mips_fmadd_bypass): New function.
17225 (mips_rtx_cost_data): Add costs for p5600.
17226 (mips_issue_rate): Add support for p5600.
17227 (mips_multipass_dfa_lookahead): Likewise.
17228 * config/mips/mips.h (TUNE_P5600): New define.
17229 (TUNE_MACC_CHAINS): Add TUNE_P5600.
17230 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17231 * config/mips/mips.md: Include p5600.md.
17232 (processor): Add p5600.
17233 * config/mips/p5600.md: New file.
17235 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
17237 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17238 * config/i386/predicates.md (palignr_operand): New.
17239 Indicates if permutation is suitable for palignr instruction.
17241 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
17243 PR tree-optimization/61319
17244 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17245 stmt belongs to loop.
17247 2014-06-05 Richard Biener <rguenther@suse.de>
17249 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17250 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17251 (lookup_tmp_var): Adjust.
17252 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17254 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17256 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17258 2014-06-05 Marek Polacek <polacek@redhat.com>
17261 * doc/invoke.texi: Document -Wlogical-not-parentheses.
17263 2014-06-04 Tom de Vries <tom@codesourcery.com>
17265 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17268 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
17270 PR tree-optimization/61385
17271 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17273 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
17275 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17276 changed to use fatal_error.
17277 (main): Ensure lto_wrapper_cleanup is run atexit.
17279 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17281 * lra-constraints.c (valid_address_p): Move earlier in file.
17282 (address_eliminator): New structure.
17283 (satisfies_memory_constraint_p): New function.
17284 (satisfies_address_constraint_p): Likewise.
17285 (process_alt_operands, process_address, curr_insn_transform): Use them.
17287 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17289 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17291 (target_lra_int, default_target_lra_int, this_target_lra_int)
17292 (op_alt_data): Delete.
17293 * lra.h (lra_init): Delete.
17294 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17295 (init_insn_code_data_once): Remove op_alt_data handling.
17296 (finish_insn_code_data_once): Likewise.
17297 (init_op_alt_data): Delete.
17298 (get_static_insn_data): Initialize operand_alternative to null.
17299 (free_insn_recog_data): Cast operand_alternative before freeing it.
17300 (setup_operand_alternative): Take the operand_alternative as
17301 parameter and assume it isn't already cached in the static
17303 (lra_set_insn_recog_data): Update accordingly.
17304 (lra_init): Delete.
17305 * ira.c (ira_init): Don't call lra_init.
17306 * target-globals.h (this_target_lra_int): Declare.
17307 (target_globals): Remove lra_int.
17308 (restore_target_globals): Update accordingly.
17309 * target-globals.c: Don't include lra-int.h.
17310 (default_target_globals, save_target_globals): Remove lra_int.
17312 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17314 * recog.h (operand_alternative): Convert reg_class, reject,
17315 matched and matches into bitfields.
17316 (preprocess_constraints): New overload.
17317 (preprocess_insn_constraints): New function.
17318 (preprocess_constraints): Take the insn as parameter.
17319 (recog_op_alt): Change into a pointer.
17320 (target_recog): Add x_op_alt.
17321 * recog.c (asm_op_alt): New variable.
17322 (recog_op_alt): Change into a pointer.
17323 (preprocess_constraints): New overload, replacing the old function
17324 definition with one that doesn't use global state.
17325 (preprocess_insn_constraints): New function.
17326 (preprocess_constraints): Use them. Take the insn as parameter.
17327 Use asm_op_alt for asms.
17328 (recog_init): Free existing x_op_alt entries.
17329 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17331 (make_early_clobber_and_input_conflicts): Likewise.
17332 (process_bb_node_lives): Pass the insn to process_constraints.
17333 * reg-stack.c (check_asm_stack_operands): Likewise.
17334 (subst_asm_stack_regs): Likewise.
17335 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17336 * regrename.c (build_def_use): Likewise.
17337 * sched-deps.c (sched_analyze_insn): Likewise.
17338 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17339 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17340 (note_invalid_constants): Likewise.
17341 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17342 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17345 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17347 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17348 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17350 (make_early_clobber_and_input_conflicts): Likewise.
17351 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17353 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17355 * recog.h (alternative_class): New function.
17356 (which_op_alt): Return a const recog_op_alt.
17357 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17358 (subst_asm_stack_regs): Likewise.
17359 * config/arm/arm.c (note_invalid_constants): Likewise.
17360 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17361 the operand_alternative; use alternative class instead.
17362 * sel-sched.c (get_reg_class): Likewise.
17363 * regrename.c (build_def_use): Likewise.
17364 (hide_operands, restore_operands, record_out_operands): Update type
17367 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17369 * recog.h (recog_op_alt): Convert to a flat array.
17370 (which_op_alt): New function.
17371 * recog.c (recog_op_alt): Convert to a flat array.
17372 (preprocess_constraints): Update accordingly, grouping all
17373 operands of the same alternative together, rather than the
17375 * ira-lives.c (check_and_make_def_conflict): Likewise.
17376 (make_early_clobber_and_input_conflicts): Likewise.
17377 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17378 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17379 (subst_asm_stack_regs): Likewise.
17380 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17381 * regrename.c (hide_operands, record_out_operands): Likewise.
17382 (build_def_use): Likewise.
17383 * sel-sched.c (get_reg_class): Likewise.
17384 * config/arm/arm.c (note_invalid_constants): Likewise.
17386 2014-06-04 Jason Merrill <jason@redhat.com>
17390 * gimplify.c (gimplify_arg): Non-static.
17391 * gimplify.h: Declare it.
17393 2014-06-04 Richard Biener <rguenther@suse.de>
17395 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17396 TREE_PUBLIC and DECL_EXTERNAL decls.
17398 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17400 * regcprop.c (copyprop_hardreg_forward_1): Account for
17401 HARD_REGNO_CALL_PART_CLOBBERED.
17403 2014-06-04 Richard Biener <rguenther@suse.de>
17405 * configure.ac: Check whether the underlying type of int64_t
17406 is long or long long.
17407 * configure: Regenerate.
17408 * config.in: Likewise.
17409 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17410 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17412 2014-06-04 Richard Biener <rguenther@suse.de>
17414 PR tree-optimization/60098
17415 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17417 (dse_optimize_stmt): Simplify, now that we found a kill
17420 2014-06-04 Richard Biener <rguenther@suse.de>
17422 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17423 of accesses with non-invariant address.
17425 2014-06-04 Martin Liska <mliska@suse.cz>
17427 * cgraph.h (cgraph_make_wrapper): New function introduced.
17428 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17429 * ipa-inline.h (inline_analyze_function): The function is global.
17430 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17432 2014-06-04 Martin Liska <mliska@suse.cz>
17434 * tree.h (private_lookup_attribute_starting): New function.
17435 (lookup_attribute_starting): Likewise.
17436 * tree.c (private_lookup_attribute_starting): Likewise.
17438 2014-06-04 Martin Liska <mliska@suse.cz>
17440 * cgraph.h (expand_thunk): New argument added.
17441 (address_taken_from_non_vtable_p): New global function.
17442 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17443 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17444 * cgraphunit.c (analyze_function): Likewise.
17445 (assemble_thunks_and_aliases): Argument added to call.
17446 (expand_thunk): New argument forces to produce GIMPLE thunk.
17448 2014-06-04 Martin Liska <mliska@suse.cz>
17450 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17451 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17452 * profile.c (branch_prob): Likewise.
17454 2014-06-04 Martin Jambor <mjambor@suse.cz>
17457 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17458 handler for switch on an ipa_ref_use enum.
17459 * ipa-reference.c (analyze_function): Likewise.
17461 2014-06-04 Kai Tietz <ktietz@redhat.com>
17463 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17464 from old call-instruction.
17466 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17468 * config/aarch64/aarch64.c (aarch64_classify_address)
17469 (aarch64_legitimize_reload_address): Support full addressing modes
17471 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17472 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17474 2014-06-03 Andrew Pinski <apinski@cavium.com>
17476 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17479 2014-06-03 Andrew Pinski <apinski@cavium.com>
17481 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17482 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17484 2014-06-03 Kai Tietz <ktietz@redhat.com>
17486 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17489 2014-06-03 Dehao Chen <dehao@google.com>
17491 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17494 2014-06-03 Marek Polacek <polacek@redhat.com>
17497 * doc/invoke.texi: Document -Wswitch-bool.
17498 * function.c (stack_protect_epilogue): Cast controlling expression of
17500 * gengtype.c (walk_type): Generate switch expression with its
17501 controlling expression cast to int.
17503 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17505 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17507 * config/avr/avr-tables.opt: Regenerate.
17508 * config/avr/t-multilib: Regenerate.
17509 * doc/avr-mmcu.texi: Regenerate.
17511 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17512 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17514 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17515 (ata6617c, ata664251): Add new avr35 devices.
17516 (ata6612c): Add new avr4 device.
17517 (ata6613c, ata6614q): Add new avr5 devices.
17518 * config/avr/avr-tables.opt: Regenerate.
17519 * config/avr/t-multilib: Regenerate.
17520 * doc/avr-mmcu.texi: Regenerate.
17522 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17524 * gcc/config/aarch64/aarch64-builtins.c
17525 (aarch64_types_binop_ssu_qualifiers): New static data.
17526 (TYPES_BINOP_SSU): Define.
17527 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17528 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17529 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17530 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17531 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17532 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17533 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17534 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17535 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17536 suffix to builtin function name, remove cast.
17537 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17538 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17539 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17541 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17543 * gcc/config/aarch64/aarch64-builtins.c
17544 (aarch64_types_binop_uus_qualifiers,
17545 aarch64_types_shift_to_unsigned_qualifiers,
17546 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17547 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17548 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17549 sqshlu_n, uqshl_n): Update qualifiers.
17550 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17551 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17552 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17553 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17554 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17555 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17556 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17557 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17558 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17559 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17560 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17561 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17562 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17563 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17564 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17565 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17566 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17567 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17568 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17569 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17570 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17571 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17572 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17573 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17574 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17575 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17576 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17578 2014-06-03 Teresa Johnson <tejohnson@google.com>
17580 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17582 2014-06-02 Jason Merrill <jason@redhat.com>
17585 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17587 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17589 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17592 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17594 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17596 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17597 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17598 * config/aarch64/iterators.md (REVERSE): New iterator.
17599 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17600 (rev_op): New int_attribute.
17601 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17602 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17603 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17604 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17605 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17606 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17607 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17608 Replace temporary __asm__ with __builtin_shuffle.
17610 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17612 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17614 * config/mips/mips-tables.opt: Regenerate.
17615 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17616 to use mips_isa_rev rather than ISA_MIPS32R2.
17617 * config/mips/mips.h (ISA_MIPS32R3): New define.
17618 (ISA_MIPS32R5): New define.
17619 (ISA_MIPS64R3): New define.
17620 (ISA_MIPS64R5): New define.
17621 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17622 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17623 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17625 (MIPS_ISA_SYNCI_SPEC): Likewise.
17626 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17627 (LINK_SPEC): Added mips32r3 and mips32r5.
17628 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17629 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17630 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17631 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17632 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17633 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17634 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17636 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17638 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17640 * config/mips/mips.opt (mxpa): New option.
17641 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17644 2014-06-03 Martin Jambor <mjambor@suse.cz>
17647 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17650 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17652 PR tree-optimization/61328
17653 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17654 initialization from find_bswap_or_nop_1.
17655 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17656 in source_expr2 before using the size value the function sets. Also
17657 make use of init_symbolic_number () in both the old place and
17658 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17659 doing recursion in the GIMPLE_BINARY_RHS case.
17661 2014-06-03 Richard Biener <rguenther@suse.de>
17663 PR tree-optimization/61383
17664 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17667 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17669 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17670 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17671 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17672 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17674 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17675 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17676 * system.h: ...here and make it unconditional.
17677 * target.def (conditional_register_usage): Mention
17678 define_register_constraint instead of old-style constraint macros.
17679 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17680 * doc/tm.texi: Regenerate.
17681 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17682 protected by !USE_MD_CONSTRAINTS.
17683 * config/frv/frv.md: Remove quote from old version of documentation.
17684 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17685 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17686 CONST_DOUBLE_OK_FOR_LETTER.
17687 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17689 2014-06-02 Andrew Pinski <apinski@cavium.com>
17691 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17692 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17693 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17694 file whose name depends on -mabi= and -mbig-endian.
17695 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17696 Handle LP64 better and handle ilp32 too.
17697 (MULTILIB_OPTIONS): Delete.
17698 (MULTILIB_DIRNAMES): Delete.
17700 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17702 * expr.h: Remove prototypes of functions defined in builtins.c.
17703 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17704 Remove prototypes of functions defined in builtins.c.
17705 * builtins.h: Update prototype list to include all exported functions.
17706 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17707 no_c99_libc_has_function): Move to targhooks.c
17708 (build_string_literal, build_call_expr_loc_array,
17709 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17711 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17712 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17713 no_c99_libc_has_function): Relocate from builtins.c.
17714 * tree.c: Include builtins.h.
17715 (build_call_expr_loc_array, build_call_expr_loc_vec,
17716 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17718 * fold-const.h (fold_fma): Move prototype to builtins.h.
17719 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17720 * asan.c: Include builtins.h.
17721 * cfgexpand.c: Likewise.
17722 * convert.c: Likewise.
17723 * emit-rtl.c: Likewise.
17724 * except.c: Likewise.
17725 * expr.c: Likewise.
17726 * fold-const.c: Likewise.
17727 * gimple-fold.c: Likewise.
17728 * gimple-ssa-strength-reduction.c: Likewise.
17729 * gimplify.c: Likewise.
17730 * ipa-inline.c: Likewise.
17731 * ipa-prop.c: Likewise.
17732 * lto-streamer-out.c: Likewise.
17733 * stmt.c: Likewise.
17734 * tree-inline.c: Likewise.
17735 * tree-object-size.c: Likewise.
17736 * tree-sra.c: Likewise.
17737 * tree-ssa-ccp.c: Likewise.
17738 * tree-ssa-forwprop.c: Likewise.
17739 * tree-ssa-loop-ivcanon.c: Likewise.
17740 * tree-ssa-loop-ivopts.c: Likewise.
17741 * tree-ssa-math-opts.c: Likewise.
17742 * tree-ssa-reassoc.c: Likewise.
17743 * tree-ssa-threadedge.c: Likewise.
17744 * tree-streamer-in.c: Likewise.
17745 * tree-vect-data-refs.c: Likewise.
17746 * tree-vect-patterns.c: Likewise.
17747 * tree-vect-stmts.c: Likewise.
17748 * config/aarch64/aarch64.c: Likewise.
17749 * config/alpha/alpha.c: Likewise.
17750 * config/arc/arc.c: Likewise.
17751 * config/arm/arm.c: Likewise.
17752 * config/avr/avr.c: Likewise.
17753 * config/bfin/bfin.c: Likewise.
17754 * config/c6x/c6x.c: Likewise.
17755 * config/cr16/cr16.c: Likewise.
17756 * config/cris/cris.c: Likewise.
17757 * config/epiphany/epiphany.c: Likewise.
17758 * config/fr30/fr30.c: Likewise.
17759 * config/frv/frv.c: Likewise.
17760 * config/h8300/h8300.c: Likewise.
17761 * config/i386/i386.c: Likewise.
17762 * config/i386/winnt.c: Likewise.
17763 * config/ia64/ia64.c: Likewise.
17764 * config/iq2000/iq2000.c: Likewise.
17765 * config/lm32/lm32.c: Likewise.
17766 * config/m32c/m32c.c: Likewise.
17767 * config/m32r/m32r.c: Likewise.
17768 * config/m68k/m68k.c: Likewise.
17769 * config/mcore/mcore.c: Likewise.
17770 * config/mep/mep.c: Likewise.
17771 * config/microblaze/microblaze.c: Likewise.
17772 * config/mips/mips.c: Likewise.
17773 * config/mmix/mmix.c: Likewise.
17774 * config/mn10300/mn10300.c: Likewise.
17775 * config/moxie/moxie.c: Likewise.
17776 * config/msp430/msp430.c: Likewise.
17777 * config/nds32/nds32.c: Likewise.
17778 * config/pa/pa.c: Likewise.
17779 * config/pdp11/pdp11.c: Likewise.
17780 * config/picochip/picochip.c: Likewise.
17781 * config/rl78/rl78.c: Likewise.
17782 * config/rs6000/rs6000.c: Likewise.
17783 * config/rx/rx.c: Likewise.
17784 * config/s390/s390.c: Likewise.
17785 * config/score/score.c: Likewise.
17786 * config/sh/sh.c: Likewise.
17787 * config/sparc/sparc.c: Likewise.
17788 * config/spu/spu.c: Likewise.
17789 * config/stormy16/stormy16.c: Likewise.
17790 * config/tilegx/tilegx.c: Likewise.
17791 * config/tilepro/tilepro.c: Likewise.
17792 * config/v850/v850.c: Likewise.
17793 * config/vax/vax.c: Likewise.
17794 * config/xtensa/xtensa.c: Likewise.
17796 2014-06-02 Jeff Law <law@redhat.com>
17798 PR rtl-optimization/61094
17799 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17800 was marked as do_no_reextend. If a copy is needed to eliminate
17801 an extension, then mark it as do_not_reextend.
17803 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17805 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17807 2014-06-02 Richard Henderson <rth@redhat.com>
17810 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17811 addresses inside asms. Use output_operand_lossage instead of
17814 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17817 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17818 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17820 2014-06-02 Tom de Vries <tom@codesourcery.com>
17822 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17823 case that x has VOIDmode.
17825 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17827 * varasm.c (copy_constant): Delete function.
17828 (build_constant_desc): Don't call it.
17830 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17833 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17834 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17835 with immediate_operand.
17837 2014-06-02 Andreas Schwab <schwab@suse.de>
17839 * config/ia64/ia64.c
17840 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17841 pending_data_specs first.
17843 2014-06-02 Richard Biener <rguenther@suse.de>
17845 PR tree-optimization/61378
17846 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17847 valueized_anything.
17849 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17851 * config/i386/constraints.md (Bw): Rename from 'w'.
17852 (Bz): Rename from 'z'.
17853 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17855 2014-06-01 Kai Tietz <ktietz@redhat.com>
17858 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17859 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17860 instead of m constraint.
17862 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17864 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17865 a separate alternative where the scratch operand 2 is marked as
17868 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17870 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17871 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17872 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17873 and __builtins_arm_get_fpscr.
17874 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17875 __builtins_arm_get_fpscr.
17876 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17877 __builtins_arm_ldfpscr.
17878 (arm_atomic_assign_expand_fenv): New function.
17879 * config/arm/vfp.md (set_fpscr): New pattern.
17880 (get_fpscr) : Likewise.
17881 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17883 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17884 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17886 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17888 * asan.c (report_error_func): Add SLOW_P argument, use
17889 BUILT_IN_ASAN_*_N if set.
17890 (build_check_stmt): Likewise.
17891 (instrument_derefs): If T has insufficient alignment,
17892 force same handling as for odd sizes.
17894 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17895 BUILT_IN_ASAN_REPORT_STORE_N): New.
17896 * asan.c (struct asan_mem_ref): Change access_size type to
17898 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17899 update_mem_ref_hash_table): Likewise.
17900 (asan_mem_ref_hasher::hash): Hash in a HWI.
17901 (report_error_func): Change size_in_bytes argument to HWI.
17902 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17904 (build_shadow_mem_access): New function.
17905 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17906 Handle size_in_bytes not power of two or larger than 16.
17907 (instrument_derefs): Don't give up if size_in_bytes is not
17908 power of two or is larger than 16.
17910 2014-05-30 Kai Tietz <ktietz@redhat.com>
17913 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17914 for sibling-tail-calls.
17915 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17917 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17918 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17920 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17922 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17923 * config/avr/avr-tables.opt: Regenerate.
17924 * config/avr/t-multilib: Regenerate.
17925 * doc/avr-mmcu.texi: Regenerate.
17927 2014-05-30 Ian Lance Taylor <iant@google.com>
17929 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17932 2014-05-30 Tom de Vries <tom@codesourcery.com>
17934 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17937 2014-05-30 Tom de Vries <tom@codesourcery.com>
17939 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17940 * lra.c (initialize_lra_reg_info_element): Add init of
17941 actual_call_used_reg_set field.
17942 (lra): Call lra_create_live_ranges before lra_inheritance for
17944 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17946 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17947 instead of call_used_reg_set for -fuse-caller-save.
17948 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17950 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17952 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17954 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17956 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17958 * ira.c (ira_get_dup_out_num): Check for output operands at
17959 the start of the loop. Handle cases where an included alternative
17960 follows an excluded one.
17962 2014-05-29 Mike Stump <mikestump@comcast.net>
17965 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17966 post ld passes when lto is used.
17968 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17970 PR rtl-optimization/61325
17971 * lra-constraints.c (process_address): Rename to process_address_1.
17972 (process_address): New function.
17974 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17976 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17977 TYPES_BINOPV): New static data.
17978 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17980 * config/aarch64/aarch64-simd.md (aarch64_ext,
17981 aarch64_im_lane_boundsi): New patterns.
17982 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17984 (aarch64_evpc_ext): New function.
17986 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17988 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17989 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17990 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17991 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17992 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17994 2014-05-29 Tom de Vries <tom@codesourcery.com>
17996 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17998 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17999 Richard Sandiford <rdsandiford@googlemail.com>
18001 * arm/iterators.md (shiftable_ops): New code iterator.
18002 (t2_binop0, arith_shift_insn): New code attributes.
18003 * arm/predicates.md (shift_nomul_operator): New predicate.
18004 * arm/arm.md (insn_enabled): Delete.
18005 (enabled): Remove insn_enabled test.
18006 (*arith_shiftsi): Delete. Replace with ...
18007 (*<arith_shift_insn>_multsi): ... new pattern.
18008 (*<arith_shift_insn>_shiftsi): ... new pattern.
18009 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18011 2014-05-29 Radovan Obradovic <robradovic@mips.com>
18012 Tom de Vries <tom@codesourcery.com>
18014 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18015 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18017 (mips_split_call): Use POST_CALL_TMP_REG.
18018 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18020 2014-05-29 Tom de Vries <tom@codesourcery.com>
18022 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18023 with #ifdef STACK_REGS.
18025 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
18027 * varasm.c (get_variable_section): Walk aliases.
18028 (place_block_symbol): Walk aliases.
18030 2014-05-28 Tom de Vries <tom@codesourcery.com>
18033 2014-05-28 Tom de Vries <tom@codesourcery.com>
18035 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18036 * lra.c (initialize_lra_reg_info_element): Add init of
18037 actual_call_used_reg_set field.
18038 (lra): Call lra_create_live_ranges before lra_inheritance for
18040 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18042 * lra-constraints.c (need_for_call_save_p): Use
18043 actual_call_used_reg_set instead of call_used_reg_set for
18045 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18047 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18049 * doc/md.texi: Document that the % constraint character must
18050 be at the beginning of the string.
18051 * genoutput.c (validate_insn_alternatives): Check that '=',
18052 '+' and '%' only appear at the beginning of a constraint.
18053 * ira.c (commutative_constraint_p): Delete.
18054 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18055 at the start of the string.
18056 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18058 * config/arm/neon.md (bicdi3_neon): Likewise.
18059 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18060 (slt_si, sltu_si): Likewise.
18061 * config/vax/vax.md (sbcdi3): Likewise.
18062 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18063 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18064 (mul64): Move '%' to beginning of constraint.
18065 * config/arm/arm.md (*xordi3_insn): Likewise.
18066 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18067 (xorsi3): Likewise.
18069 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18071 * doc/md.texi: Document the restrictions on the "enabled" attribute.
18073 2014-05-28 Jason Merrill <jason@redhat.com>
18076 * cgraph.h (symtab_node::get_comdat_group_id): New.
18077 * cgraphunit.c (analyze_functions): Call it.
18078 * symtab.c (dump_symtab_node): Likewise.
18079 * tree.c (decl_comdat_group_id): New.
18080 * tree.h: Declare it.
18081 * lto-streamer-out.c (write_symbol): Use it.
18082 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18084 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18086 PR bootstrap/PR61146
18087 * wide-int.cc: Do not include longlong.h when compiling with clang.
18089 2014-05-28 Richard Biener <rguenther@suse.de>
18091 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18092 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18093 (vrp_visit_assignment_or_call): Print less vertical space.
18094 (vrp_visit_stmt): Likewise.
18095 (vrp_visit_phi_node): Likewise. For a PHI argument with
18096 VR_VARYING range consider recording it as copy.
18098 2014-05-28 Richard Biener <rguenther@suse.de>
18101 2014-05-28 Richard Biener <rguenther@suse.de>
18103 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18105 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18107 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18108 sufficiently aligned and an offset is used at the same time.
18109 (expand_expr_real_1): Likewise.
18111 2014-05-28 Richard Biener <rguenther@suse.de>
18113 PR middle-end/61045
18114 * fold-const.c (fold_comparison): When folding
18115 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18116 the sign of the remaining constant operand stays the same.
18118 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
18120 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18121 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18122 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18124 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18125 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18126 (m32bit-doubles) Likewise.
18127 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18128 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18131 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18133 * configure.ac ($gcc_cv_ld_clearcap): New test.
18134 * configure: Regenerate.
18135 * config.in: Regenerate.
18136 * config/sol2.opt (mclear-hwcap): New option.
18137 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18138 * config/sol2-clearcap.map: Moved here from
18139 testsuite/gcc.target/i386/clearcap.map.
18140 * config/sol2-clearcapv2.map: Move here from
18141 gcc.target/i386/clearcapv2.map.
18142 * config/t-sol2 (install): Depend on install-clearcap-map.
18143 (install-clearcap-map): New target.
18144 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18147 2014-05-28 Richard Biener <rguenther@suse.de>
18149 * hwint.h (*_HALF_WIDE_INT*): Move to ...
18150 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18151 ... here and remove the rest.
18152 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18154 2014-05-28 Richard Biener <rguenther@suse.de>
18156 PR tree-optimization/61335
18157 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18158 new range fails, drop to varying.
18160 2014-05-28 Olivier Hainque <hainque@adacore.com>
18162 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18163 (CPP_SPEC): Add entry for -mcpu=8548.
18164 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18165 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18167 2014-05-28 Tom de Vries <tom@codesourcery.com>
18169 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18170 * lra.c (initialize_lra_reg_info_element): Add init of
18171 actual_call_used_reg_set field.
18172 (lra): Call lra_create_live_ranges before lra_inheritance for
18174 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18176 * lra-constraints.c (need_for_call_save_p): Use
18177 actual_call_used_reg_set instead of call_used_reg_set for
18179 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18181 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18182 Tom de Vries <tom@codesourcery.com>
18184 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18186 (@item -fuse-caller-save): New item.
18188 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18189 Tom de Vries <tom@codesourcery.com>
18191 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18192 OPT_fuse_caller_save.
18194 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18195 Tom de Vries <tom@codesourcery.com>
18197 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18198 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18199 get_call_reg_set_usage.
18200 * resource.c (mark_set_resources, mark_target_live_regs): Use
18201 get_call_reg_set_usage.
18202 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18204 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18205 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18206 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18207 * ira-build.c (ira_create_allocno): Init
18208 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18209 (create_cap_allocno, propagate_allocno_info)
18210 (propagate_some_info_from_allocno)
18211 (copy_info_to_removed_store_destinations): Handle
18212 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18213 * ira-costs.c (ira_tune_allocno_costs): Use
18214 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18216 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18217 Tom de Vries <tom@codesourcery.com>
18219 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18220 and function_used_regs_valid fields.
18221 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18222 find_all_hard_reg_sets.
18223 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18224 (get_call_reg_set_usage): New function.
18225 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18226 * regs.h (get_call_reg_set_usage): Declare.
18228 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18231 * config/dbx.h (License): Add Runtime Library Exception.
18232 * config/newlib-stdint.h (License): Same.
18233 * config/rtems.h (License): Same
18234 * config/initfini-array.h (License): Same
18235 * config/v850/v850.h (License): Same.
18236 * config/v850/v850-opts.h (License): Same
18237 * config/v850/rtems.h (License): Same.
18239 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18242 * doc/extend.texi (Local Labels): Note that label differences are
18243 not supported for AVR.
18245 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18246 Olivier Hainque <hainque@adacore.com>
18248 * rtl.h (set_for_reg_notes): Declare.
18249 * emit-rtl.c (set_for_reg_notes): New function.
18250 (set_unique_reg_note): Use it.
18251 * optabs.c (add_equal_note): Likewise
18253 2014-05-27 Andrew Pinski <apinski@cavium.com>
18255 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18256 Use <w> for the register in assembly template.
18257 (stack_protect_test): Use the mode of operands[0] for the result.
18258 (stack_protect_test_<mode>): Use <w> for the register
18259 in assembly template.
18261 2014-05-27 DJ Delorie <dj@redhat.com>
18263 * config/rx/rx.c (add_vector_labels): New.
18264 (rx_output_function_prologue): Call it.
18265 (rx_handle_func_attribute): Don't require empty arguments.
18266 (rx_handle_vector_attribute): New.
18267 (rx_attribute_table): Add "vector" attribute.
18268 * doc/extend.texi (interrupt, vector): Document new/changed
18269 RX-specific attributes.
18271 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18273 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18275 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18276 predicate to detect a negative quotient.
18278 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18280 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18281 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18282 Add X - Y CMP 0 to X CMP Y transformation.
18283 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18285 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18287 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18290 2014-05-27 Steve Ellcey <sellcey@mips.com>
18292 * config/mips/mips.c: Add include of cgraph.h.
18294 2014-05-27 Richard Biener <rguenther@suse.de>
18296 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18298 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18301 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18302 * config/arm/arm-cores.def (License): Same.
18303 * config/arm/arm-opts.h (License): Same.
18304 * config/arm/aout.h (License): Same.
18305 * config/arm/bpabi.h (License): Same.
18306 * config/arm/elf.h (License): Same.
18307 * config/arm/linux-elf.h (License): Same.
18308 * config/arm/linux-gas.h (License): Same.
18309 * config/arm/netbsd-elf.h (License): Same.
18310 * config/arm/uclinux-eabi.h (License): Same.
18311 * config/arm/uclinux-elf.h (License): Same.
18312 * config/arm/vxworks.h (License): Same.
18314 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18316 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18317 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18318 (arm_init_neon_builtins): Handle NEON_BSWAP.
18319 Define required type nodes.
18320 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18321 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18322 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18323 * config/arm/iterators.md (VDQHSD): New mode iterator.
18325 2014-05-27 Richard Biener <rguenther@suse.de>
18327 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18328 Try using literal operands when comparing value-ranges failed.
18330 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18332 * ira.c (commutative_operand): Adjust for change to recog_data.
18333 [Missing from previous commit.]
18335 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18337 * system.h (TEST_BIT): New macro.
18338 * recog.h (alternative_mask): New type.
18339 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18340 (recog_data_d): Replace alternative_enabled_p array with
18341 enabled_alternatives.
18342 (target_recog): New structure.
18343 (default_target_recog, this_target_recog): Declare.
18344 (get_enabled_alternatives, recog_init): Likewise.
18345 * recog.c (default_target_recog, this_target_recog): New variables.
18346 (get_enabled_alternatives): New function.
18347 (extract_insn): Use it.
18348 (recog_init): New function.
18349 (preprocess_constraints, constrain_operands): Adjust for change to
18351 * postreload.c (reload_cse_simplify_operands): Likewise.
18352 * reload.c (find_reloads): Likewise.
18353 * ira-costs.c (record_reg_classes): Likewise.
18354 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18355 all alternatives after a disabled one would be skipped.
18356 (ira_implicitly_set_insn_hard_regs): Likewise.
18357 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18358 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18359 with enabled_alternatives.
18360 * lra.c (free_insn_recog_data): Update accordingly.
18361 (lra_update_insn_recog_data): Likewise.
18362 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18363 * lra-constraints.c (process_alt_operands): Likewise. Handle
18364 only_alternative as part of the enabled mask.
18365 * target-globals.h (this_target_recog): Declare.
18366 (target_globals): Add a recog field.
18367 (restore_target_globals): Restore this_target_recog.
18368 * target-globals.c: Include recog.h.
18369 (default_target_globals): Initialize recog field.
18370 (save_target_globals): Likewise.
18371 * reginfo.c (reinit_regs): Call recog_init.
18372 * toplev.c (backend_init_target): Likewise.
18374 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18376 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18377 rather than any named insn's code.
18379 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18382 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18383 * config/arm/arm-cores.def (License): Same.
18385 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18387 * tree.h (decl_comdat_group): Declare.
18388 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18389 * tree.c (decl_comdat_group): Here.
18391 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18393 PR rtl-optimization/61222
18394 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18395 the shift, truncate the PLUS operand to the result mode.
18397 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18400 * config/i386/i386.c (ix86_rtx_costs)
18401 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18404 2014-05-26 Martin Jambor <mjambor@suse.cz>
18406 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18409 2014-05-26 Richard Biener <rguenther@suse.de>
18411 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18412 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18413 Provide specializations.
18414 (wi::int_traits <HOST_WIDE_INT>,
18415 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18417 2014-05-26 Alan Modra <amodra@gmail.com>
18420 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18421 params and return a bool. Remove dead code. Update comment.
18422 Assert we have a const_int source. Remove bogus code from
18423 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18424 handling of constants > 2G and reg_equal note, from..
18425 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18426 return value. Update comment. If we can, use a new pseudo
18427 for intermediate calculations.
18428 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18430 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18431 call to rs6000_emit_set_const in splitter.
18432 (movdi_internal64+2, +3): Likewise.
18434 2014-05-26 Richard Biener <rguenther@suse.de>
18436 * system.h: Define __STDC_FORMAT_MACROS before
18437 including inttypes.h.
18438 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18439 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18440 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18441 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18442 HOST_WIDEST_INT_C): Remove.
18443 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18444 if C99 inttypes.h is not available.
18445 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18446 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18447 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18448 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18449 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18450 (struct output_info): Likewise.
18451 (print_statistics): Adjust.
18452 (dump_bitmap_statistics): Likewise.
18453 * bt-load.c (migrate_btr_defs): Print with PRId64.
18454 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18455 (MAX_SAFE_MULTIPLIER): Adjust.
18456 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18457 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18458 dump_cgraph_node): Likewise.
18459 * final.c (dump_basic_block_info): Likewise.
18460 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18461 * gcov.c (format_gcov): Likewise.
18462 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18464 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18465 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18466 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18467 Use PRId64 for dumping.
18468 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18469 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18470 (add_allocno_hard_regs): Adjust.
18471 * loop-doloop.c (doloop_modify): Print using PRId64.
18472 * loop-iv.c (inverse): Compute in uint64_t.
18473 (determine_max_iter, iv_number_of_iterations): Likewise.
18474 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18475 Print using PRId64.
18476 * lto-streamer-out.c (write_symbol): Use uint64_t.
18477 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18478 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18479 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18480 * modulo-sched.c (const_iteration_count): Use int64_t.
18481 (sms_schedule): Dump using PRId64.
18482 * predict.c (dump_prediction): Likewise.
18483 * pretty-print.h (pp_widest_integer): Remove.
18484 * profile.c (get_working_sets, is_edge_inconsistent,
18485 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18486 * tree-pretty-print.c (pp_double_int): Remove case handling
18487 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18488 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18490 (pass_optimize_bswap::execute): Remove restriction on hosts.
18491 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18492 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18493 * tree.c (widest_int_cst_value): Remove.
18494 * tree.h (widest_int_cst_value): Likewise.
18495 * value-prof.c (dump_histogram_value): Print using PRId64.
18496 * gengtype.c (main): Also inject int64_t.
18497 * ggc-page.c (struct max_alignment): Use int64_t.
18498 * alloc-pool.c (struct allocation_object_def): Likewise.
18499 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18501 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18502 * doc/tm.texi: Regenerated.
18503 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18504 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18505 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18506 mmix_output_register_setting): Use [u]int64_t in prototypes.
18507 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18508 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18509 mmix_output_octa, mmix_output_shifted_value): Adjust.
18510 (mmix_intval): Adjust. Remove unreachable case.
18511 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18513 2014-05-26 Richard Biener <rguenther@suse.de>
18515 * configure.ac: Drop __int64 type check. Insist that we
18516 found uint64_t and int64_t.
18517 * hwint.h (HOST_BITS_PER___INT64): Remove.
18518 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18519 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18520 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18521 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18522 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18523 for dst_q_src_df_rms_cdt.
18524 * configure: Regenerate.
18525 * config.in: Likewise.
18527 2014-05-26 Michael Tautschnig <mt@debian.org>
18530 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18531 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18533 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18535 PR rtl-optimization/61278
18536 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18538 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18540 PR rtl-optimization/61220
18541 Part of PR rtl-optimization/61225
18542 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18543 insn; skip split_edge for a block with only one successor.
18545 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18547 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18550 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18552 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18553 (update_vtable_references): New function.
18554 (function_and_variable_visibility): Rewrite also vtable initializers.
18555 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18557 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18559 * ggc.h (ggc_grow): New function.
18560 * ggc-none.c (ggc_grow): New function.
18561 * ggc-page.c (ggc_grow): Likewise.
18563 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18565 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18566 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18567 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18568 varpool_externally_visible_p, can_replace_by_local_alias,
18569 update_visibility_by_resolution_info, function_and_variable_visibility,
18570 pass_data_ipa_function_and_variable_visibility,
18571 make_pass_ipa_function_and_variable_visibility,
18572 whole_program_function_and_variable_visibility,
18573 pass_data_ipa_whole_program_visibility,
18574 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18575 * cgraph.h (cgraph_local_node_p): Declare.
18576 * ipa-visibility.c: New file.
18577 * Makefile.in (OBJS): Add ipa-visiblity.o
18579 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18581 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18582 that var decl is available.
18584 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18586 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18587 symtab_node pointer.
18588 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18589 (find_decls_types_r): Do not walk COMDAT_GROUP.
18590 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18591 * varasm.c (make_decl_one_only): Use set_comdat_group;
18592 create node if needed.
18593 * ipa-inline-transform.c (save_inline_function_body): Update
18594 way we decl->symtab mapping.
18595 * symtab.c (symtab_hash, hash_node, eq_node
18596 symtab_insert_node_to_hashtable): Remove.
18597 (symtab_register_node): Update.
18598 (symtab_unregister_node): Update.
18599 (symtab_get_node): Reimplement as inline function.
18600 (symtab_add_to_same_comdat_group): Update.
18601 (symtab_dissolve_same_comdat_group_list): Update.
18602 (dump_symtab_base): Update.
18603 (verify_symtab_base): Update.
18604 (symtab_make_decl_local): Update.
18605 (fixup_same_cpp_alias_visibility): Update.
18606 (symtab_nonoverwritable_alias): Update.
18607 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18608 * ipa.c (update_visibility_by_resolution_info): UPdate.
18609 * bb-reorder.c: Include cgraph.h
18610 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18611 with comdat groups.
18612 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18613 * cgraph.c (cgraph_get_create_node): Update.
18614 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18616 (symtab_get_node): Make inline.
18617 (symtab_insert_node_to_hashtable): Remove.
18618 (symtab_can_be_discarded): Update.
18619 (decl_comdat_group): New function.
18620 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18622 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18624 (read_comdat_group): New function.
18625 (input_node, input_varpool_node): Use it.
18626 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18628 * mips.c (mips_start_unique_function): Likewise.
18629 (ix86_code_end): Likewise.
18630 (rs6000_code_end): Likweise.
18631 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18633 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18635 * gengtype-state.c (fatal_reading_state): Bring offline.
18636 * optabs.c (widening_optab_handler): Bring offline.
18637 * optabs.h (widening_optab_handler): Likewise.
18638 * final.c (get_attr_length_1): Likewise.
18640 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18642 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18644 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18646 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18647 (ppc440-compare): Include shift with dot.
18648 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18649 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18651 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18653 (e6500_sfx2): Include it.
18654 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18655 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18656 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18657 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18658 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18659 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18660 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18661 *lshiftrt_internal1le, *lshiftrt_internal1be,
18662 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18663 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18664 *rotldi3_internal10le, *rotldi3_internal10be,
18665 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18666 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18667 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18668 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18669 define_insns): Use type "shift" in the appropriate alternatives.
18671 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18673 * config/rs6000/rs6000.md (type): Add "logical". Delete
18675 (dot): Adjust comment.
18676 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18677 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18678 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18679 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18680 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18681 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18682 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18683 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18685 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18686 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18687 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18688 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18689 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18690 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18691 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18692 * config/rs6000/8540.md (ppc8540_su): Adjust.
18693 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18694 cell-cmp-microcoded): Adjust.
18695 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18696 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18697 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18698 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18699 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18700 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18701 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18702 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18703 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18705 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18706 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18707 Adjust. Adjust comment.
18708 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18709 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18711 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18713 * config/rs6000/rs6000.md (type): Add "add".
18714 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18715 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18716 define_insns): Use it.
18717 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18719 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18720 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18721 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18722 * config/rs6000/601.md (ppc601-integer): Adjust.
18723 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18724 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18725 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18726 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18727 * config/rs6000/8540.md (ppc8540_su): Adjust.
18728 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18729 cell-cmp-microcoded): Adjust.
18730 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18731 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18732 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18733 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18734 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18735 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18736 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18737 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18738 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18740 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18741 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18742 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18743 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18745 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18747 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18748 "delayed_compare", "var_delayed_compare".
18749 (var_shift): New attribute.
18750 (cell_micro): Adjust.
18751 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18752 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18753 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18754 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18755 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18756 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18757 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18758 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18759 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18760 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18761 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18762 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18763 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18764 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18765 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18766 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18767 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18768 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18769 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18770 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18771 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18772 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18773 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18774 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18775 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18777 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18778 * config/rs6000/440.md (ppc440-integer): Adjust.
18779 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18780 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18781 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18782 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18783 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18784 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18785 * config/rs6000/8540.md (ppc8540_su): Adjust.
18786 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18787 cell-cmp-microcoded): Adjust.
18788 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18789 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18790 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18791 e500mc64_delayed): Adjust.
18792 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18793 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18794 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18795 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18796 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18797 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18798 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18799 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18800 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18802 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18803 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18805 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18807 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18808 (bits): New mode_attr.
18809 (idiv_ldiv): Delete mode_attr.
18810 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18811 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18812 rs6000_adjust_priority, is_nonpipeline_insn,
18813 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18815 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18816 * config/rs6000/440.md (ppc440-idiv): Adjust.
18817 * config/rs6000/476.md (ppc476-idiv): Adjust.
18818 * config/rs6000/601.md (ppc601-idiv): Adjust.
18819 * config/rs6000/603.md (ppc603-idiv): Adjust.
18820 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18821 ppc620-ldiv): Adjust.
18822 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18823 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18824 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18825 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18826 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18827 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18828 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18829 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18830 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18831 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18832 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18833 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18834 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18835 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18836 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18837 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18838 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18839 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18841 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18843 * config/rs6000/rs6000.md (type): Delete "insert_word",
18844 "insert_dword". Add "insert".
18845 (size): Update comment.
18846 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18847 insn_must_be_first_in_group): Adjust.
18848 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18849 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18850 *insvsi_internal6, insvdi_internal): Adjust.
18852 * config/rs6000/40x.md (ppc403-integer): Adjust.
18853 * config/rs6000/440.md (ppc440-integer): Adjust.
18854 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18855 * config/rs6000/601.md (ppc601-integer): Adjust.
18856 * config/rs6000/603.md (ppc603-integer): Adjust.
18857 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18858 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18859 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18860 * config/rs6000/8540.md (ppc8540_su): Adjust.
18861 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18862 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18863 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18864 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18865 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18866 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18867 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18868 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18869 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18870 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18871 * config/rs6000/power7.md (power7-integer): Adjust.
18872 * config/rs6000/power8.md (power8-1cyc): Adjust.
18873 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18874 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18876 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18878 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18879 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18880 (size): New attribute.
18881 (dot): New attribute.
18882 (cell_micro): Adjust.
18883 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18884 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18885 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18886 umuldi3_highpart): Adjust.
18887 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18888 rs6000_adjust_priority, is_nonpipeline_insn,
18889 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18891 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18892 ppc405-imul3): Adjust.
18893 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18894 * config/rs6000/476.md (ppc476-imul): Adjust.
18895 * config/rs6000/601.md (ppc601-imul): Adjust.
18896 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18897 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18898 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18899 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18900 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18902 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18903 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18904 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18905 cell-imul): Adjust.
18906 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18907 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18908 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18909 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18910 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18911 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18912 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18913 power4-lmul, power4-imul, power4-imul3): Adjust.
18914 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18915 power5-lmul, power5-imul, power5-imul3): Adjust.
18916 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18917 power6-lmul, power6-imul, power6-imul3): Adjust.
18918 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18919 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18921 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18922 rs64a-lmul): Adjust.
18923 * config/rs6000/titan.md (titan_imul): Adjust.
18925 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18927 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18928 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18929 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18930 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18931 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18932 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18933 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18934 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18935 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18936 * config/rs6000/titan.md: Delete nonsensical comment.
18937 (titan_imul): Add type imul3.
18938 (titan_mulhw): Remove type imul3; add type halfmul.
18940 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18942 * config/rs6000/rs6000.md (type): Reorder, reformat.
18944 2014-05-23 Martin Jambor <mjambor@suse.cz>
18946 PR tree-optimization/53787
18947 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18948 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18949 analysis_done, update all uses.
18950 * ipa-prop.c: Include domwalk.h
18951 (param_analysis_info): Removed.
18952 (param_aa_status): New type.
18953 (ipa_bb_info): Likewise.
18954 (func_body_info): Likewise.
18955 (ipa_get_bb_info): New function.
18956 (aa_overwalked): Likewise.
18957 (find_dominating_aa_status): Likewise.
18958 (parm_bb_aa_status_for_bb): Likewise.
18959 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18960 (load_from_unmodified_param): Accept func_body_info as a parameter
18961 instead of parms_ainfo.
18962 (parm_ref_data_preserved_p): Changed to use new param AA info.
18963 (parm_ref_data_pass_through_p): Likewise.
18964 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18965 (compute_complex_assign_jump_func): Changed to use new param AA info.
18966 (compute_complex_ancestor_jump_func): Likewise.
18967 (ipa_compute_jump_functions_for_edge): Likewise.
18968 (ipa_compute_jump_functions): Removed.
18969 (ipa_compute_jump_functions_for_bb): New function.
18970 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18972 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18973 and info, moved variable declarations down.
18974 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18976 (ipa_analyze_stmt_uses): Likewise.
18977 (ipa_analyze_params_uses): Removed.
18978 (ipa_analyze_params_uses_in_bb): New function.
18979 (ipa_analyze_controlled_uses): Likewise.
18980 (free_ipa_bb_info): Likewise.
18981 (analysis_dom_walker): New class.
18982 (ipa_analyze_node): Handle node-specific forbidden analysis,
18983 initialize and free func_body_info, use dominator walker.
18984 (ipcp_modif_dom_walker): New class.
18985 (ipcp_transform_function): Create and free func_body_info, use
18986 ipcp_modif_dom_walker, moved a lot of functionality there.
18988 2014-05-23 Marek Polacek <polacek@redhat.com>
18989 Jakub Jelinek <jakub@redhat.com>
18991 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18992 * gcc.c (sanitize_spec_function): Likewise.
18993 * convert.c (convert_to_integer): Include "ubsan.h". Add
18994 floating-point to integer instrumentation.
18995 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18996 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18997 SANITIZE_NONDEFAULT.
18998 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18999 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19000 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19001 * ubsan.c: Include "realmpfr.h" and "dfp.h".
19002 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19003 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19004 float/double/long double.
19005 (ubsan_instrument_float_cast): New function.
19006 * ubsan.h (ubsan_instrument_float_cast): Declare.
19008 2014-05-23 Jiong Wang <jiong.wang@arm.com>
19010 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19012 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
19013 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19014 Adjust for tailcalling through registers.
19015 * config/aarch64/aarch64.h (enum reg_class): New caller save
19017 (REG_CLASS_NAMES): Likewise.
19018 (REG_CLASS_CONTENTS): Likewise.
19019 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19020 Allow tailcalling without decls.
19022 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19024 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19025 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19027 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19028 gsi, and variables v_* to v*.
19030 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
19032 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19034 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19036 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19037 * omp-low.c: Update accordingly.
19039 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19040 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19041 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19042 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19043 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19044 GF_OMP_TARGET_KIND_UPDATE.
19046 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19047 Explicitly enumerate the expected region types.
19049 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
19052 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
19053 documentation; the old documentation didn't clearly state the
19054 constraints on the contents of the pointed-to storage.
19056 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19058 Fix bootstrap error on ia64
19059 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19060 Return default value.
19062 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
19064 PR tree-optimization/54733
19065 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19067 (find_bswap_or_nop_load): New.
19068 (find_bswap_1): Renamed to ...
19069 (find_bswap_or_nop_1): This. Also add support for memory source.
19070 (find_bswap): Renamed to ...
19071 (find_bswap_or_nop): This. Also add support for memory source and
19072 detection of bitwise operations equivalent to load in target
19074 (execute_optimize_bswap): Likewise. Also move its leading comment back
19075 in place and split statement transformation into ...
19076 (bswap_replace): This.
19078 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19080 PR rtl-optimization/61215
19081 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19082 simplify_gen_subreg until final substitution.
19084 2014-05-23 Alan Modra <amodra@gmail.com>
19087 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19088 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19089 Use "Y" constraint rather than "m".
19091 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19093 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19095 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19096 New function declaration.
19097 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19098 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19099 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19100 (aarch64_init_builtins) : Initialize builtins
19101 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19102 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19103 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19104 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19105 and __builtins_aarch64_set_fpsr.
19106 (aarch64_atomic_assign_expand_fenv): New function.
19107 * config/aarch64/aarch64.md (set_fpcr): New pattern.
19108 (get_fpcr) : Likewise.
19109 (set_fpsr) : Likewise.
19110 (get_fpsr) : Likewise.
19111 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19112 and UNSPECV_SET_FPSR.
19113 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19114 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19115 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19117 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19119 PR rtl-optimization/60969
19120 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19121 constraints. Set up mem cost for NO_REGS case.
19123 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
19125 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19127 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
19129 * config/darwin.c: Include "lto-section-names.h".
19130 (LTO_SEGMENT_NAME): Don't define.
19131 * config/i386/winnt.c: Include "lto-section-names.h".
19132 * lto-streamer.c: Include "lto-section-names.h".
19133 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19134 * lto-wrapper.c: Include "lto-section-names.h".
19135 (LTO_SECTION_NAME_PREFIX): Don't define.
19136 * lto-section-names.h: New file.
19137 * cgraphunit.c: Include "lto-section-names.h".
19139 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
19141 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19143 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
19146 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19148 2014-05-22 Nick Clifton <nickc@redhat.com>
19150 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19152 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
19154 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19155 -> (T)A transformation to integer types.
19157 2014-05-22 Teresa Johnson <tejohnson@google.com>
19159 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19160 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19161 (gcov_rewrite): Use gcov_nonruntime_assert.
19162 (gcov_open): Ditto.
19163 (gcov_write_words): Ditto.
19164 (gcov_write_length): Ditto.
19165 (gcov_read_words): Use gcov_nonruntime_assert, and remove
19166 gcc_assert from IN_LIBGCOV code.
19167 (gcov_read_summary): Use gcov_error to flag profile corruption.
19168 (gcov_sync): Use gcov_nonruntime_assert.
19169 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19170 (gcov_histo_index): Use gcov_nonruntime_assert.
19171 (static void gcov_histogram_merge): Ditto.
19172 (compute_working_sets): Ditto.
19173 * gcov-io.h (gcov_nonruntime_assert): Define.
19174 (gcov_error): Define for !IN_LIBGCOV
19176 2014-05-22 Richard Biener <rguenther@suse.de>
19178 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19179 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19180 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19181 and deallocation site.
19182 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19183 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19184 passing through the incoming points-to set.
19185 (handle_lhs_call): Use flags argument instead of recomputing it.
19186 (find_func_aliases_for_call): Call handle_lhs_call with proper
19189 2014-05-22 Jakub Jelinek <jakub@redhat.com>
19191 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19192 all padding bits in REAL_VALUE_TYPE are cleared.
19194 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19196 Cleanup and improve multipass_dfa_lookahead_guard
19197 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19198 (core2i7_first_cycle_multipass_begin,)
19199 (core2i7_first_cycle_multipass_issue,)
19200 (core2i7_first_cycle_multipass_backtrack): Update signature.
19201 * config/ia64/ia64.c
19202 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19203 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19204 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19206 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19207 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
19209 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19211 * doc/tm.texi: Regenerate.
19213 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19214 * haifa-sched.c (ready_try): Make signed to allow negative values.
19215 (rebug_ready_list_1): Update.
19216 (choose_ready): Simplify.
19217 (sched_extend_ready_list): Update.
19219 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19221 Remove IA64 speculation tweaking flags
19222 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19223 speculation tuning flags.
19224 (msched-prefer-non-data-spec-insns,)
19225 (msched-prefer-non-control-spec-insns): Obsolete options.
19226 * haifa-sched.c (choose_ready): Remove handling of
19227 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19228 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19229 and PREFER_NON_DATA_SPEC.
19230 * sel-sched.c (process_spec_exprs): Remove handling of
19231 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19233 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19235 Improve scheduling debug output
19236 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19237 (advance_one_cycle): Update.
19238 (schedule_insn, queue_to_ready): Add debug printouts.
19239 (debug_ready_list_1): New static function.
19240 (debug_ready_list): Update.
19241 (max_issue): Add debug printouts.
19242 (dump_insn_stream): New static function.
19243 (schedule_block): Use it. Also better indent printouts.
19245 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19247 Fix sched_insn debug counter
19248 * haifa-sched.c (schedule_insn): Update.
19249 (struct haifa_saved_data): Add nonscheduled_insns_begin.
19250 (save_backtrack_point, restore_backtrack_point): Update.
19251 (first_nonscheduled_insn): New static function.
19252 (queue_to_ready, choose_ready): Use it.
19253 (schedule_block): Init nonscheduled_insns_begin.
19254 (sched_emit_insn): Update.
19257 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19259 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19261 (aarch64_secondary_reload) : LikeWise.
19262 (aarch64_class_max_nregs) : Remove CORE_REGS.
19263 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19264 (REG_CLASS_NAMES) : Likewise.
19265 (REG_CLASS_CONTENTS) : LikeWise.
19266 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19268 2014-05-21 Guozhi Wei <carrot@google.com>
19271 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19273 (vqdmulhq_n_s16): Likewise.
19275 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19277 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19279 2014-05-21 Marek Polacek <polacek@redhat.com>
19282 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19284 2014-05-21 Martin Jambor <mjambor@suse.cz>
19286 * doc/invoke.texi (Optimize Options): Document parameters
19287 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19288 ipa-cp-array-index-hint-bonus.
19290 2014-05-21 Mark Wielaard <mjw@redhat.com>
19293 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19294 version >= 3 or not strict DWARF.
19295 * langhooks.h (struct lang_hooks_for_types): Add
19296 enum_underlying_base_type.
19297 * langhooks.c (lhd_enum_underlying_base_type): New function.
19298 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19299 enum_underlying_base_type.
19300 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19301 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19302 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19304 2014-05-21 Richard Biener <rguenther@suse.de>
19306 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19308 2014-05-21 John Marino <gnugcc@marino.st>
19310 * config.gcc (*-*-dragonfly*): New target.
19311 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19312 * configure: Regenerate.
19313 * config/dragonfly-stdint.h: New.
19314 * config/dragonfly.h: New.
19315 * config/dragonfly.opt: New.
19316 * config/i386/dragonfly.h: New.
19317 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19319 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19321 * tree.def (VOID_CST): New.
19322 * tree-core.h (TI_VOID): New.
19323 * tree.h (void_node): New.
19324 * tree.c (tree_node_structure_for_code, tree_code_size)
19325 (iterative_hash_expr): Handle VOID_CST.
19326 (build_common_tree_nodes): Initialize void_node.
19328 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19330 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19332 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19334 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19337 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19338 flag_reorder_blocks_and_partition.
19339 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19341 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19344 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19346 (*addc_r_t): Add new insn_and_split.
19348 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19350 PR middle-end/61252
19351 * omp-low.c (handle_simd_reference): New function.
19352 (lower_rec_input_clauses): Use it. Defer adding reference
19353 initialization even for reduction without placeholder if in simd,
19354 handle it properly later on.
19356 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19358 PR tree-optimization/60899
19359 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19360 assume all static symbols will have definition wile parsing and
19361 check the do have definition later in compilation; check that
19362 variable referring symbol will be output before concluding that
19363 reference is safe; be conservative for referring local statics;
19364 be more precise about when comdat is output in other partition.
19366 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19369 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19371 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19372 (ipa_inline): Loop inline_to_all_callers until no more aliases
19375 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19377 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19378 set writeonly flag only for vars actually written to.
19380 2014-05-20 Dehao Chen <dehao@google.com>
19382 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19383 and callee count to get clone count.
19384 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19385 count in copy_body.
19387 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19389 PR rtl-optimization/61243
19390 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19392 2014-05-20 Xinliang David Li <davidxl@google.com>
19394 * cgraphunit.c (walk_polymorphic_call_targets): Add
19395 dbgcnt and fopt-info support.
19396 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19397 * ipa-devirt.c (ipa_devirt): Ditto.
19398 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19399 * ipa.c (walk_polymorphic_call_targets): Ditto.
19400 * gimple-fold.c (fold_gimple_assign): Ditto.
19401 (gimple_fold_call): Ditto.
19402 * dbgcnt.def: New counter.
19404 2014-05-20 DJ Delorie <dj@redhat.com>
19406 * config/msp430/msp430.md (split): Don't allow subregs when
19407 splitting SImode adds.
19408 (andneghi): Fix subtraction logic.
19409 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19411 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19413 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19415 * except.c (switch_to_exception_section, resolve_unique_section,
19416 get_named_text_section, default_function_rodata_section,
19417 align_variable, get_block_for_decl, default_section_type_flags):
19418 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19419 * symtab.c (symtab_add_to_same_comdat_group,
19420 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19421 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19423 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19424 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19425 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19426 (c6x_function_in_section_p): Likewise.
19427 * config/darwin.c (machopic_select_section): Likewise.
19428 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19429 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19430 * config/mep/mep.c (mep_select_section): LIkewise.
19431 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19433 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19435 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19436 EH region of calls to pure functions that can throw an exception.
19437 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19438 (copy_reference_ops_from_call): Also copy the EH region of the call if
19439 it can throw an exception.
19441 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19443 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19444 nested VEC_SELECTs that are inverses of each other.
19446 2014-05-20 Richard Biener <rguenther@suse.de>
19448 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19449 (extract_and_process_scc_for_name): not here.
19450 (cond_dom_walker::before_dom_children): Only process
19451 stmts that end the BB in interesting ways.
19452 (run_scc_vn): Mark param uses as visited.
19454 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19456 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19459 2014-05-20 Nick Clifton <nickc@redhat.com>
19461 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19462 (msp430_gimplify_va_arg_expr): New function.
19463 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19465 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19466 operand 0 in order to prevent confusion about the number of
19467 registers involved.
19469 2014-05-20 Richard Biener <rguenther@suse.de>
19471 PR tree-optimization/61221
19472 * tree-ssa-pre.c (el_to_update): Remove.
19473 (eliminate_dom_walker::before_dom_children): Handle released
19474 VDEFs by value-numbering them to the associated VUSE. Update
19475 stmt immediately for substituted call address.
19476 (eliminate): Remove delayed stmt updating code.
19477 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19478 possibly late re-numbered vuses.
19479 (vn_reference_lookup_2): Adjust.
19480 (vn_reference_lookup_pieces): Likewise.
19481 (vn_reference_lookup): Likewise.
19483 2014-05-20 Richard Biener <rguenther@suse.de>
19485 * config.gcc: Remove need_64bit_hwint.
19486 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19487 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19489 * config.in: Regenerate.
19490 * configure: Likewise.
19492 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19494 * doc/extend.texi: Create Label Attributes section,
19495 move all label attributes into it and reference it.
19497 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19499 * arm.c (thumb1_reorg): When scanning backwards skip anything
19500 that's not a proper insn.
19502 2014-05-19 Richard Biener <rguenther@suse.de>
19504 PR tree-optimization/61221
19505 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19506 Do nothing for unreachable blocks.
19507 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19508 Improve unreachability detection.
19510 2014-05-19 Richard Biener <rguenther@suse.de>
19512 PR tree-optimization/61209
19513 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19515 2014-05-19 Nick Clifton <nickc@redhat.com>
19517 * except.c (init_eh): Fix computation of builtin setjmp buffer
19518 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19520 2014-05-19 Richard Biener <rguenther@suse.de>
19522 PR tree-optimization/61184
19523 * tree-vrp.c (is_negative_overflow_infinity): Use
19524 TREE_OVERFLOW_P and do that check first.
19525 (is_positive_overflow_infinity): Likewise.
19526 (is_overflow_infinity): Likewise.
19527 (vrp_operand_equal_p): Properly treat operands with
19528 differing overflow as not equal.
19530 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19532 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19533 shift simplification where it was intended.
19535 2014-05-19 Christian Bruel <christian.bruel@st.com>
19538 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19540 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19543 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19546 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19548 * reg-notes.def (CROSSING_JUMP): Likewise.
19549 * rtl.h (rtx_def): Update comment for jump flag.
19550 (CROSSING_JUMP_P): Define.
19551 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19552 of a REG_CROSSING_JUMP note.
19553 * cfghooks.c (tidy_fallthru_edges): Likewise.
19554 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19555 * emit-rtl.c (try_split): Likewise.
19556 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19557 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19558 * jump.c (redirect_jump_2): Likewise.
19559 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19560 (relax_delay_slots): Likewise.
19561 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19562 (bbit_di): Likewise.
19563 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19564 * config/sh/sh.md (jump_compact): Likewise.
19565 * bb-reorder.c (rotate_loop): Likewise.
19566 (pass_duplicate_computed_gotos::execute): Likewise.
19567 (add_reg_crossing_jump_notes): Rename to...
19568 (update_crossing_jump_flags): ...this.
19569 (pass_partition_blocks::execute): Update accordingly.
19571 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19573 * tree.h: Remove extraneous template <>.
19575 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19577 * ipa.c (symtab_remove_unreachable_nodes): Remove
19578 symbol from comdat group if its body was eliminated.
19579 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19580 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19581 (symtab_unregister_node): ... this one.
19582 (verify_symtab_base): More strict checking of comdats.
19583 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19585 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19587 * tree-pass.h (make_pass_ipa_comdats): New pass.
19588 * timevar.def (TV_IPA_COMDATS): New timevar.
19589 * passes.def (pass_ipa_comdats): Add.
19590 * Makefile.in (OBJS): Add ipa-comdats.o
19591 * ipa-comdats.c: New file.
19593 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19595 * ipa.c (update_visibility_by_resolution_info): New function.
19596 (function_and_variable_visibility): Use it.
19598 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19600 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19602 (FOR_EACH_DEFINED_SYMBOL): New macro.
19603 (varpool_first_static_initializer, varpool_next_static_initializer,
19604 varpool_first_defined_variable, varpool_next_defined_variable):
19606 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19608 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19610 * ggc-page.c (ggc_handle_finalizers): Add comment.
19612 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19614 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19615 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19616 (ggc_internal_cleared_alloc): Likewise.
19617 * ggc-page.c (finalizer): New class.
19618 (vec_finalizer): Likewise.
19619 (globals::finalizers): New member.
19620 (globals::vec_finalizers): Likewise.
19621 (ggc_internal_alloc): Record the finalizer if any for the block being
19623 (ggc_handle_finalizers): New function.
19624 (ggc_collect): Call ggc_handle_finalizers.
19625 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19627 (ggc_internal_cleared_alloc): Likewise.
19628 (finalize): New function.
19629 (need_finalization_p): Likewise.
19630 (ggc_alloc): Install the type's destructor as the finalizer if it
19631 might do something.
19632 (ggc_cleared_alloc): Likewise.
19633 (ggc_vec_alloc): Likewise.
19634 (ggc_cleared_vec_alloc): Likewise.
19636 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19638 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19640 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19642 * alias.c (record_alias_subset): Adjust.
19643 * bitmap.c (bitmap_element_allocate): Likewise.
19644 (bitmap_gc_alloc_stat): Likewise.
19645 * cfg.c (init_flow): Likewise.
19646 (alloc_block): Likewise.
19647 (unchecked_make_edge): Likewise.
19648 * cfgloop.c (alloc_loop): Likewise.
19649 (flow_loops_find): Likewise.
19650 (rescan_loop_exit): Likewise.
19651 * cfgrtl.c (init_rtl_bb_info): Likewise.
19652 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19653 (cgraph_allocate_node): Likewise.
19654 (cgraph_create_edge_1): Likewise.
19655 (cgraph_allocate_init_indirect_info): Likewise.
19656 * cgraphclones.c (cgraph_clone_edge): Likewise.
19657 * cgraphunit.c (add_asm_node): Likewise.
19658 (init_lowered_empty_function): Likewise.
19659 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19660 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19661 (alpha_use_linkage): Likewise.
19662 * config/arc/arc.c (arc_init_machine_status): Likewise.
19663 * config/arm/arm.c (arm_init_machine_status): Likewise.
19664 * config/avr/avr.c (avr_init_machine_status): Likewise.
19665 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19666 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19667 * config/cris/cris.c (cris_init_machine_status): Likewise.
19668 * config/darwin.c (machopic_indirection_name): Likewise.
19669 (darwin_build_constant_cfstring): Likewise.
19670 (darwin_enter_string_into_cfstring_table): Likewise.
19671 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19672 * config/frv/frv.c (frv_init_machine_status): Likewise.
19673 * config/i386/i386.c (get_dllimport_decl): Likewise.
19674 (ix86_init_machine_status): Likewise.
19675 (assign_386_stack_local): Likewise.
19676 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19677 (i386_pe_maybe_record_exported_symbol): Likewise.
19678 (i386_pe_record_stub): Likewise.
19679 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19680 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19681 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19682 (m32c_note_pragma_address): Likewise.
19683 * config/mep/mep.c (mep_init_machine_status): Likewise.
19684 (mep_note_pragma_flag): Likewise.
19685 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19686 (mips16_local_alias): Likewise.
19687 (mips_init_machine_status): Likewise.
19688 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19689 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19690 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19691 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19692 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19693 * config/pa/pa.c (pa_init_machine_status): Likewise.
19694 (pa_get_deferred_plabel): Likewise.
19695 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19696 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19697 (rs6000_init_machine_status): Likewise.
19698 (output_toc): Likewise.
19699 * config/s390/s390.c (s390_init_machine_status): Likewise.
19700 * config/score/score.c (score_output_external): Likewise.
19701 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19702 * config/spu/spu.c (spu_init_machine_status): Likewise.
19703 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19704 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19705 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19706 * coverage.c (coverage_end_function): Likewise.
19707 * dbxout.c (dbxout_init): Likewise.
19708 * doc/gty.texi: Don't mention variable_size attribute.
19709 * dwarf2cfi.c (new_cfi): Adjust.
19710 (new_cfi_row): Likewise.
19711 (copy_cfi_row): Likewise.
19712 (create_cie_data): Likewise.
19713 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19714 (new_loc_descr): Likewise.
19715 (find_AT_string_in_table): Likewise.
19716 (add_addr_table_entry): Likewise.
19717 (new_die): Likewise.
19718 (add_var_loc_to_decl): Likewise.
19719 (clone_die): Likewise.
19720 (clone_as_declaration): Likewise.
19721 (break_out_comdat_types): Likewise.
19722 (new_loc_list): Likewise.
19723 (add_loc_descr_to_each): Likewise.
19724 (add_location_or_const_value_attribute): Likewise.
19725 (add_linkage_name): Likewise.
19726 (lookup_filename): Likewise.
19727 (dwarf2out_var_location): Likewise.
19728 (new_line_info_table): Likewise.
19729 (dwarf2out_init): Likewise.
19730 (mem_loc_descriptor): Likewise.
19731 (loc_descriptor): Likewise.
19732 (add_const_value_attribute): Likewise.
19733 (tree_add_const_value_attribute): Likewise.
19734 (comp_dir_string): Likewise.
19735 (dwarf2out_vms_debug_main_pointer): Likewise.
19736 (string_cst_pool_decl): Likewise.
19737 * emit-rtl.c (set_mem_attrs): Likewise.
19738 (get_reg_attrs): Likewise.
19739 (start_sequence): Likewise.
19740 (init_emit): Likewise.
19741 (init_emit_regs): Likewise.
19742 * except.c (init_eh_for_function): Likewise.
19743 (gen_eh_region): Likewise.
19744 (gen_eh_region_catch): Likewise.
19745 (gen_eh_landing_pad): Likewise.
19746 (add_call_site): Likewise.
19747 * function.c (add_frame_space): Likewise.
19748 (insert_temp_slot_address): Likewise.
19749 (assign_stack_temp_for_type): Likewise.
19750 (get_hard_reg_initial_val): Likewise.
19751 (allocate_struct_function): Likewise.
19752 (prepare_function_start): Likewise.
19753 (types_used_by_var_decl_insert): Likewise.
19754 * gengtype.c (variable_size_p): Remove function.
19755 (enum alloc_quantity): Remove enum.
19756 (write_typed_alloc_def): Remove function.
19757 (write_typed_struct_alloc_def): Likewise.
19758 (write_typed_typedef_alloc_def): Likewise.
19759 (write_typed_alloc_defns): Likewise.
19761 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19762 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19763 * ggc.h (ggc_alloc): new function.
19764 (ggc_cleared_alloc): Likewise.
19765 (ggc_vec_alloc): Template on type of vector element, and remove
19766 element size argument.
19767 (ggc_cleared_vec_alloc): Likewise.
19768 * gimple.c (gimple_build_omp_for): Adjust.
19769 (gimple_copy): Likewise.
19770 * ipa-cp.c (get_replacement_map): Likewise.
19771 (find_aggregate_values_for_callers_subset): Likewise.
19772 (known_aggs_to_agg_replacement_list): Likewise.
19773 * ipa-devirt.c (get_odr_type): Likewise.
19774 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19775 (read_agg_replacement_chain): Likewise.
19776 * loop-iv.c (get_simple_loop_desc): Likewise.
19777 * lto-cgraph.c (input_node_opt_summary): Likewise.
19778 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19779 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19780 (input_eh_region): Likewise.
19781 (input_eh_lp): Likewise.
19782 (input_cfg): Likewise.
19783 * optabs.c (set_optab_libfunc): Likewise.
19784 (init_tree_optimization_optabs): Likewise.
19785 (set_conv_libfunc): Likewise.
19786 * passes.c (do_per_function_toporder): Likewise.
19787 * rtl.h: Don't use variable_size gty attribute.
19788 * sese.c (if_region_set_false_region): Adjust.
19789 * stringpool.c (gt_pch_save_stringpool): Likewise.
19790 * target-globals.c (save_target_globals): Likewise.
19791 * toplev.c (general_init): Likewise.
19792 * trans-mem.c (record_tm_replacement): Likewise.
19793 (split_bb_make_tm_edge): Likewise.
19794 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19795 * tree-data-ref.h (lambda_vector_new): Likewise.
19796 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19797 * tree-iterator.c (tsi_link_before): Likewise.
19798 (tsi_link_after): Likewise.
19799 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19800 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19801 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19802 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19803 * tree-ssa.c (init_tree_ssa): Adjust.
19804 * tree-ssanames.c (set_range_info): Likewise.
19805 (get_ptr_info): Likewise.
19806 (duplicate_ssa_name_ptr_info): Likewise.
19807 (duplicate_ssa_name_range_info): Likewise.
19808 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19809 (unpack_ts_fixed_cst_value_fields): Likewise.
19810 * tree.c (build_fixed): Likewise.
19811 (build_real): Likewise.
19812 (build_string): Likewise.
19813 (decl_priority_info): Likewise.
19814 (decl_debug_expr_insert): Likewise.
19815 (decl_value_expr_insert): Likewise.
19816 (decl_debug_args_insert): Likewise.
19817 (type_hash_add): Likewise.
19818 (build_omp_clause): Likewise.
19819 * ubsan.c (decl_for_type_insert): Likewise.
19820 * varasm.c (get_unnamed_section): Likewise.
19821 (get_noswitch_section): Likewise.
19822 (get_section): Likewise.
19823 (get_block_for_section): Likewise.
19824 (create_block_symbol): Likewise.
19825 (build_constant_desc): Likewise.
19826 (create_constant_pool): Likewise.
19827 (force_const_mem): Likewise.
19828 (record_tm_clone_pair): Likewise.
19829 * varpool.c (varpool_create_empty_node): Likewise.
19831 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19833 * dwarf2out.c (tree_add_const_value_attribute): Call
19834 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19835 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19836 instead of ggc_internal_<x>alloc_stat.
19837 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19838 (ggc_realloc): Likewise.
19839 * ggc-none.c (ggc_internal_alloc): Likewise.
19840 (ggc_internal_cleared_alloc): Likewise.
19841 * ggc-page.c: Likewise.
19842 * ggc.h (ggc_internal_alloc_stat): Likewise.
19843 (ggc_internal_alloc): Remove macro.
19844 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19845 (ggc_internal_cleared_alloc): Remove macro.
19846 (GGC_RESIZEVEC): Adjust.
19847 (ggc_resizevar): Remove macro.
19848 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19849 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19850 (ggc_internal_vec_cleared_alloc): Remove macro.
19851 (ggc_alloc_atomic_stat): Drop _stat suffix.
19852 (ggc_alloc_atomic): Remove macro.
19853 (ggc_alloc_cleared_atomic): Remove macro.
19854 (ggc_alloc_string_stat): Drop _stat suffix.
19855 (ggc_alloc_string): Remove macro.
19856 (ggc_alloc_rtx_def_stat): Adjust.
19857 (ggc_alloc_tree_node_stat): Likewise.
19858 (ggc_alloc_cleared_tree_node_stat): Likewise.
19859 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19860 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19861 * gimple.c (gimple_build_omp_for): Likewise.
19862 (gimple_copy): Likewise.
19863 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19864 * toplev.c (realloc_for_line_map): Adjust.
19865 * tree-data-ref.h (lambda_vector_new): Likewise.
19866 * tree-phinodes.c (allocate_phi_node): Likewise.
19867 * tree.c (grow_tree_vec_stat): Likewise.
19868 * vec.h (va_gc::reserve): Adjust.
19870 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19872 * config/microblaze/microblaze.c (break_handler): New Declaration.
19873 (microblaze_break_function_p,microblaze_is_break_handler): New.
19874 (compute_frame_size): Use microblaze_break_function_p.
19875 Add the test of break_handler.
19876 (microblaze_function_prologue) : Add the test of variable
19877 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19878 (microblaze_function_epilogue) : Add the test of break_handler.
19879 (microblaze_globalize_label) : Add the test of break_handler.
19880 Check the name by BREAK_HANDLER_NAME.
19882 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19884 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19885 microblaze_is_break_handler test.
19886 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19887 Use SYMBOL_REF_DECL.
19889 * config/microblaze/microblaze-protos.h
19890 (microblaze_break_function_p,microblaze_is_break_handler):
19893 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19894 new MicroBlaze break_handler functions.
19896 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19898 * doc/extend.texi (Size of an asm): Move node text according
19899 to its @menu entry position.
19901 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19903 PR tree-optimization/61140
19904 PR tree-optimization/61150
19905 PR tree-optimization/61197
19906 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19908 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19910 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19912 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19914 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19915 __SIZEOF_INT128__ is defined.
19917 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19919 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19920 (rs6000_delegitimize_address): Use it.
19922 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19924 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19925 inplace argument. Store the new address in the original MEM when true.
19926 * emit-rtl.c (change_address_1): Likewise.
19927 (adjust_address_1, adjust_automodify_address_1, offset_address):
19928 Update accordingly.
19929 * rtl.h (plus_constant): Add an inplace argument.
19930 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19931 when true. Avoid generating (plus X (const_int 0)).
19932 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19933 in-place. Pass true to plus_constant.
19934 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19936 2014-05-16 Dehao Chen <dehao@google.com>
19938 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19940 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19943 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19945 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19947 2014-05-16 Dehao Chen <dehao@google.com>
19949 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19950 optimize_function_for_size_p.
19951 * regs.h (REG_FREQ_FROM_BB): Likewise.
19953 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19956 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19957 negt_reg_operand cases.
19958 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19960 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19962 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19964 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19967 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19970 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19972 * tree-cfg.c (dump_function_to_file): Dump the return type of
19973 functions, in a line to itself before the function body, mimicking
19974 the layout of a C function.
19976 2014-05-16 Dehao Chen <dehao@google.com>
19978 * cfghooks.c (make_forwarder_block): Use direct computation to
19979 get fall-through edge's count and frequency.
19981 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19983 * config/arc/arc.c (arc_init): Fix typo in error message.
19984 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19985 (split_stack_prologue_scratch_regno): Likewise.
19986 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19987 word from error message.
19989 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19991 * ira-costs.c: Fix typo in comment.
19993 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19995 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19997 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19999 * varpool.c (dump_varpool_node): Dump write-only flag.
20000 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20002 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20003 write-only variables.
20004 * ipa.c (process_references): New function.
20005 (set_readonly_bit): New function.
20006 (set_writeonly_bit): New function.
20007 (clear_addressable_bit): New function.
20008 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20009 fix handling of aliases.
20010 * cgraph.h (struct varpool_node): Add writeonly flag.
20012 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
20014 PR rtl-optimization/60969
20015 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20016 Calculate costs for this case.
20018 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
20020 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20021 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20023 2014-05-16 Richard Biener <rguenther@suse.de>
20025 PR tree-optimization/61194
20026 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20027 bool patterns ending in a COND_EXPR.
20029 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20031 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20033 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20035 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20036 where we were unable to cost an RTX.
20038 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20040 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20043 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20044 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20046 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
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 FMA,
20052 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20054 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20055 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20057 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20060 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20061 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20063 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20066 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20067 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20069 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20070 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20072 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20073 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20075 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20076 rotates and shifts.
20078 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20079 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20081 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20082 ZERO_EXTEND and SIGN_EXTEND better.
20084 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20085 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20087 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20088 logical operations.
20090 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20091 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20093 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20094 costs when costing loads and stores to memory.
20096 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20097 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
20099 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20102 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20104 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20106 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20107 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20109 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20111 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20113 (aarch64_rtx_mult_cost): New.
20114 (aarch64_rtx_costs): Use it, refactor as appropriate.
20116 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20117 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20119 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20120 emit instructions, return number of instructions which would
20122 (aarch64_add_constant): Update call to aarch64_build_constant.
20123 (aarch64_output_mi_thunk): Likewise.
20124 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20127 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20129 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20130 (TARGET_RTX_COSTS): Call it.
20132 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20134 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20135 (cortexa57_vector_cost): Likewise.
20136 (cortexa57_tunings): Use them.
20138 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20140 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20141 (cpu_addrcost_table): Use it.
20142 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20143 (aarch64_address_cost): Rewrite using aarch64_classify_address,
20146 2014-05-16 Richard Biener <rguenther@suse.de>
20148 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20149 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20150 (visit_phi): Ignore edges marked as not executable.
20151 (class cond_dom_walker): New.
20152 (cond_dom_walker::before_dom_children): Value-number
20153 control statements and mark successor edges as not
20154 executable if possible.
20155 (run_scc_vn): First walk all control statements in
20156 dominator order, marking edges as not executable.
20157 * tree-inline.c (copy_edges_for_bb): Be not confused
20158 about random edge flags.
20160 2014-05-16 Richard Biener <rguenther@suse.de>
20162 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20164 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
20167 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20168 (__TM_simple_begin): Use it.
20169 (__TM_begin): Likewise.
20171 2014-05-15 Martin Jambor <mjambor@suse.cz>
20174 * ipa-prop.c (update_indirect_edges_after_inlining): Check
20175 type_preserved flag when the indirect edge is polymorphic.
20177 2014-05-15 Martin Jambor <mjambor@suse.cz>
20179 PR tree-optimization/61090
20180 * tree-sra.c (sra_modify_expr): Pass the current gsi to
20181 build_ref_for_model.
20183 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20185 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20186 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20188 2014-05-15 Jakub Jelinek <jakub@redhat.com>
20190 PR tree-optimization/61158
20191 * fold-const.c (fold_binary_loc): If X is zero-extended and
20192 shiftc >= prec, make sure zerobits is all ones instead of
20193 invoking undefined behavior.
20195 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20197 * regcprop.h: New file.
20198 * regcprop.c (skip_debug_insn_p): New decl.
20199 (replace_oldest_value_reg): Check skip_debug_insn_p.
20200 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20201 * shrink-wrap.c: Include regcprop.h.
20202 (prepare_shrink_wrap): Call
20203 copyprop_hardreg_forward_bb_without_debug_insn.
20205 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20207 * shrink-wrap.h: Update comment.
20208 * shrink-wrap.c: Update comment.
20209 (next_block_for_reg): Rename to live_edge_for_reg.
20210 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20211 (move_insn_for_shrink_wrap): Split live_edge.
20212 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20214 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20216 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20218 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20219 * config/sparc/sparc.md (fptype_ut699): New attribute.
20220 (in_branch_delay): Return false if -mfix-ut699 is specified and
20221 fptype_ut699 is set to single.
20222 (truncdfsf2): Add fptype_ut699 attribute.
20223 (fix_truncdfsi2): Likewise.
20224 (floatsisf2): Change fptype attribute.
20225 (fix_truncsfsi2): Likewise.
20226 (negtf2_notv9): Delete.
20227 (negtf2_v9): Likewise.
20228 (negtf2_hq): New instruction.
20229 (negtf2): New instruction and splitter.
20230 (negdf2_notv9): Rewrite.
20231 (abstf2_notv9): Delete.
20232 (abstf2_hq_v9): Likewise.
20233 (abstf2_v9): Likewise.
20234 (abstf2_hq): New instruction.
20235 (abstf2): New instruction and splitter.
20236 (absdf2_notv9): Rewrite.
20238 2014-05-14 Cary Coutant <ccoutant@google.com>
20241 * opts.c (common_handle_option): Don't special-case "-g".
20242 (set_debug_level): Default to at least level 2 with "-g".
20244 2014-05-14 DJ Delorie <dj@redhat.com>
20246 * config/msp430/msp430.c (msp430_builtin): Add
20247 MSP430_BUILTIN_DELAY_CYCLES.
20248 (msp430_init_builtins): Register void __delay_cycles(long long).
20249 (msp430_builtin_decl): Add it.
20250 (cg_magic_constant): New.
20251 (msp430_expand_delay_cycles): New.
20252 (msp430_expand_builtin): Call it.
20253 (msp430_print_operand_raw): Change integer printing from "int" to
20255 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20256 (delay_cycles_start): New.
20257 (delay_cycles_end): New.
20258 (delay_cycles_32): New.
20259 (delay_cycles_32x): New.
20260 (delay_cycles_16): New.
20261 (delay_cycles_16x): New.
20262 (delay_cycles_2): New.
20263 (delay_cycles_1): New.
20264 * doc/extend.texi: Document __delay_cycles().
20266 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
20268 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20269 length attribute computation.
20271 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
20274 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20276 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20279 * config/sparc/sparc.md: Fix types of low and high in DI constant
20280 splitter. Use gen_int_mode in some other splitters.
20282 2014-05-14 Martin Jambor <mjambor@suse.cz>
20285 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20287 2014-05-14 James Norris <jnorris@codesourcery.com>
20289 * omp-low.c (expand_parallel_call): Remove shadow variable.
20290 (expand_omp_taskreg): Likewise.
20292 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20294 * common/config/i386/i386-common.c
20295 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20296 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20297 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20298 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20299 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20300 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20301 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20302 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20303 xsavecintrin.h, xsavesintrin.h.
20304 (x86_64-*-*): Ditto.
20305 * config/i386/clflushoptintrin.h: New.
20306 * config/i386/xsavecintrin.h: Ditto.
20307 * config/i386/xsavesintrin.h: Ditto.
20308 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20309 (bit_XSAVES): Ditto.
20310 (bit_XSAVES): Ditto.
20311 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20312 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20314 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20315 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20316 OPTION_MASK_ISA_XSAVES.
20317 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20318 -mxsavec, -mxsaves.
20319 (PTA_CLFLUSHOPT) Define.
20320 (PTA_XSAVEC): Ditto.
20321 (PTA_XSAVES): Ditto.
20322 (ix86_option_override_internal): Handle new options.
20323 (ix86_valid_target_attribute_inner_p): Ditto.
20324 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20325 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20326 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20327 (bdesc_special_args): Add __builtin_ia32_xsaves,
20328 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20329 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20330 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20331 (ix86_expand_builtin): Handle new builtins.
20332 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20333 (TARGET_CLFLUSHOPT_P): Ditto.
20334 (TARGET_XSAVEC): Ditto.
20335 (TARGET_XSAVEC_P): Ditto.
20336 (TARGET_XSAVES): Ditto.
20337 (TARGET_XSAVES_P): Ditto.
20338 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20339 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20340 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20342 (ANY_XRSTOR64): Ditto.
20344 (xrstor): Change into <xrstor>.
20345 (xrstor_rex64): Change into <xrstor>_rex64.
20346 (xrstor64): Change into <xrstor>64
20348 * config/i386/i386.opt (mclflushopt): New.
20351 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20353 * doc/invoke.texi: Document new options.
20355 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20357 PR rtl-optimization/60866
20358 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20359 Default it to -1. Pass it down to init_simplejump_data.
20360 (init_simplejump_data): New parameter old_seqno. Pass it down
20361 to get_seqno_for_a_jump.
20362 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20363 initializing new jump seqno as a last resort. Add comment.
20364 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20365 jump and pass it down to sel_init_new_insn.
20366 (sel_redirect_edge_and_branch_force): Likewise.
20368 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20370 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20371 shifted values to avoid build warning.
20373 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20375 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20376 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20377 (cfg_layout_merge_blocks): Likewise.
20378 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20380 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20382 PR rtl-optimization/60901
20383 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20384 bb predecessor belongs to the same scheduling region. Adjust comment.
20386 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20388 * doc/sourcebuild.texi: (dfp_hw): Document.
20389 (p8vector_hw): Likewise.
20390 (powerpc_eabi_ok): Likewise.
20391 (powerpc_elfv2): Likewise.
20392 (powerpc_htm_ok): Likewise.
20393 (ppc_recip_hw): Likewise.
20394 (vsx_hw): Likewise.
20396 2014-05-13 Cary Coutant <ccoutant@google.com>
20398 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20400 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20402 * gengtype-parse.c (require3): Eliminate in favor of...
20404 (require_template_declaration): Update to support optional single *
20407 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20408 (create_user_defined_type): Handle a single level of explicit
20409 pointerness within template arguments.
20410 (struct write_types_data): Add field "kind".
20411 (filter_type_name): Handle "*" character.
20412 (write_user_func_for_structure_ptr): Require a write_types_data
20413 rather than just a prefix string, so that we can look up the kind
20414 of the wtd and use it as an index into wrote_user_func_for_ptr,
20415 ensuring that such functions are written at most once. Support
20416 subclasses by invoking the marking function of the ultimate base class.
20417 (write_user_func_for_structure_body): Require a write_types_data
20418 rather than just a prefix string, so that we can pass this to
20419 write_user_func_for_structure_ptr.
20420 (write_func_for_structure): Likewise.
20421 (ggc_wtd): Add initializer of new "kind" field.
20422 (pch_wtd): Likewise.
20424 * gengtype.h (enum write_types_kinds): New.
20425 (struct type): Add field wrote_user_func_for_ptr to the "s"
20428 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20430 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20431 instead of const_binop.
20432 (fold_binary_loc): Likewise.
20434 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20436 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20437 calculation to match get_ref_base_and_extent.
20439 2014-05-13 Catherine Moore <clm@codesourcery.com>
20440 Sandra Loosemore <sandra@codesourcery.com>
20442 * configure.ac: Fix assembly for explicit JALR relocation check.
20443 * configure: Regenerate.
20445 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20447 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20448 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20449 Remove associated type declarations and initialisations.
20450 (arm_expand_neon_builtin): Likewise.
20451 (neon_emit_pair_result_insn): Delete.
20452 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20453 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20454 (neon_vzip<mode>): Likewise.
20455 (neon_vuzp<mode>): Likewise.
20457 2014-05-13 Richard Biener <rguenther@suse.de>
20460 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20461 it needs revisiting whether the call still may be tail-called.
20463 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20465 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20466 * rtl.h (block_symbol): Reduce number of fields to 2.
20467 (rtx_def): Add u2.symbol_ref_flags.
20468 (SYMBOL_REF_FLAGS): Use it.
20469 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20470 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20471 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20472 Lower index of SYMBOL_REF_DATA.
20473 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20474 Print SYMBOL_REF_FLAGS at the same time.
20475 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20477 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20479 * rtl.def (VAR_LOCATION): Remove "i" field.
20480 * rtl.h (rtx_def): Add u2.var_location_status.
20481 (PAT_VAR_LOCATION_STATUS): Use it.
20482 (gen_rtx_VAR_LOCATION): Declare.
20483 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20484 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20485 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20487 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20489 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20490 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20492 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20494 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20495 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20496 * rtl.h (rtx_def): Add insn_uid to u2 field.
20497 (RTX_FLAG_CHECK8): Delete in favor of...
20498 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20499 (INSN_DELETED_P): Update accordingly.
20500 (INSN_UID): Use u2.insn_uid.
20501 (INSN_CHAIN_CODE_P): Define.
20502 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20503 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20504 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20505 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20506 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20507 indices accordingly.
20508 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20509 Update indices for insn-chain rtxes.
20510 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20511 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20512 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20513 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20514 * combine.c (try_combine): Likewise.
20515 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20517 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20519 * rtl.def (REG): Remove middle field.
20520 * rtl.h (rtx_def): Add orignal_regno to u2.
20521 (ORIGINAL_REGNO): Use it instead of field 1.
20522 (REG_ATTRS): Lower field index accordingly.
20523 * gengtype.c (adjust_field_rtx_def): Remove handling of
20524 ORIGINAL_REGNO. Move REG_ATTRS index down.
20525 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20526 code that prints the REGNO.
20528 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20530 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20533 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20535 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20537 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20539 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20540 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20542 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20544 * config/aarch64/aarch64-protos.h
20545 (aarch64_hard_regno_caller_save_mode): New prototype.
20546 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20548 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20550 2014-05-13 Christian Bruel <christian.bruel@st.com>
20552 * target.def (mode_switching): New hook vector.
20553 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20554 (mode_exit, modepriority_to_mode): Likewise.
20555 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20556 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20557 * target.h: Include tm.h and hard-reg-set.h.
20558 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20559 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20560 * doc/tm.texi Regenerate.
20561 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20562 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20563 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20564 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20565 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20566 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20567 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20568 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20569 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20570 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20571 (ix86_emit_mode_set): Hookify.
20572 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20574 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20575 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20576 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20577 (epiphany_mode_priority_to_mode): Remove declaration.
20578 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20579 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20580 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20582 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20583 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20584 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20586 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20589 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20590 is const0_rtx, return immediately. Don't test count == 0 when
20593 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20595 * Makefile.in: add shrink-wrap.o.
20596 * config/i386/i386.c: include "shrink-wrap.h"
20597 * function.c: Likewise.
20598 (requires_stack_frame_p, next_block_for_reg,
20599 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20600 dup_block_and_redirect): Move to shrink-wrap.c
20601 (thread_prologue_and_epilogue_insns): Extract three code segments
20602 as functions in shrink-wrap.c
20603 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20605 * shrink-wrap.c: New file.
20606 * shrink-wrap.h: New file.
20608 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20610 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20611 reference to Solaris.
20613 2014-05-12 Mike Stump <mikestump@comcast.net>
20616 * genattrtab.c (filename): Add.
20617 (convert_set_attr_alternative): Improve error message.
20618 (check_defs): Restore read_md_filename for error messages.
20619 (gen_insn): Save filename.
20621 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20623 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20624 -fno-local-ivars and -fivar-visibility.
20625 * c-family/c.opt: Make -Wshadow also implicitly enable
20628 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20630 * doc/tm.texi: Remove reference to deleted macro.
20631 * doc/tm.texi.in: Likewise.
20633 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20636 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20639 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20642 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20643 * config/arm/aout.h (License): Same.
20644 * config/arm/bpabi.h (License): Same.
20645 * config/arm/elf.h (License): Same.
20646 * config/arm/linux-elf.h (License): Same.
20647 * config/arm/linux-gas.h (License): Same.
20648 * config/arm/netbsd-elf.h (License): Same.
20649 * config/arm/uclinux-eabi.h (License): Same.
20650 * config/arm/uclinux-elf.h (License): Same.
20651 * config/arm/vxworks.h (License): Same.
20653 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20655 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20656 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20657 number of operands to 3.
20658 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20659 * tree-nested.c (convert_nonlocal_omp_clauses,
20660 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20661 * gimplify.c (gimplify_scan_omp_clauses): Handle
20662 OMP_CLAUSE_LINEAR_STMT.
20663 * omp-low.c (lower_rec_input_clauses): Fix typo.
20664 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20665 cast between Fortran boolean_type_node and C _Bool if
20668 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20670 PR tree-optimization/61136
20671 * wide-int.h (multiple_of_p): Define a version that doesn't return
20673 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20674 integer_zerop/const_binop pair.
20675 (multiple_of_p): Likewise, converting both operands to widest_int
20678 2014-05-09 Teresa Johnson <tejohnson@google.com>
20680 * cgraphunit.c (analyze_functions): Use correct dump file.
20682 2014-05-09 Florian Weimer <fweimer@redhat.com>
20684 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20686 (stack_protect_return_slot_p): New function.
20687 (expand_used_vars): Call stack_protect_decl_p and
20688 stack_protect_return_slot_p for -fstack-protector-strong.
20690 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20691 Andrew Haley <aph@redhat.com>
20692 Richard Sandiford <rdsandiford@googlemail.com>
20694 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20697 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20699 PR middle-end/61111
20700 * fold-const.c (fold_binary_loc): Changed width of mask.
20702 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20704 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20705 unsigned int initializers for regno_in, regno_out.
20707 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20710 * config/avr/avr.md (cc): Add new attribute set_vzn.
20711 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20712 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20713 with INC, DEC or NEG.
20714 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20715 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20716 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20718 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20721 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20723 * wide-int.cc (UTItype): Define.
20724 (UDWtype): Define for appropriate W_TYPE_SIZE.
20726 2014-05-09 Richard Biener <rguenther@suse.de>
20728 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20729 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20730 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20731 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20732 ssa_propagate): Adjust.
20734 2014-05-08 Jeff Law <law@redhat.com>
20736 PR tree-optimization/61009
20737 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20738 tri-state rather than a boolean. When a block is too big to
20739 thread through, inform caller via negative return value.
20740 (thread_across_edge): If a block was too big for normal threading,
20741 then it's too big for a joiner too, so remove temporary equivalences
20742 and return immediately.
20744 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20745 Matthias Klose <doko@ubuntu.com>
20748 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20750 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20753 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20755 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20758 * config/alpha/alpha.c: Include gimple-iterator.h.
20759 (alpha_gimple_fold_builtin): New function. Move
20760 ALPHA_BUILTIN_UMULH folding from ...
20761 (alpha_fold_builtin): ... here.
20762 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20764 2014-05-08 Wei Mi <wmi@google.com>
20767 * config/i386/i386.c (ix86_compute_frame_layout): Update
20768 preferred_stack_boundary for call, expanded from tls descriptor.
20769 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20770 to depend on SP register.
20771 (*tls_local_dynamic_base_32_gnu): Ditto.
20772 (*tls_local_dynamic_32_once): Ditto.
20773 (tls_global_dynamic_64_<mode>): Set
20774 ix86_tls_descriptor_calls_expanded_in_cfun.
20775 (tls_local_dynamic_base_64_<mode>): Ditto.
20776 (tls_global_dynamic_32): Set
20777 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20778 to depend on SP register.
20779 (tls_local_dynamic_base_32): Ditto.
20781 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20783 * config/arm/arm_neon.h: Update comment.
20784 * config/arm/neon-docgen.ml: Delete.
20785 * config/arm/neon-gen.ml: Delete.
20786 * doc/arm-neon-intrinsics.texi: Update comment.
20788 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20790 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20792 (vand, vorr, veor, vorn, vbic): Remove.
20793 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20795 (neon_vsub_unspec): Likewise.
20796 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20798 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20800 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20801 (vadd_s16): Likewise.
20802 (vadd_s32): Likewise.
20803 (vadd_f32): Likewise.
20804 (vadd_u8): Likewise.
20805 (vadd_u16): Likewise.
20806 (vadd_u32): Likewise.
20807 (vadd_s64): Likewise.
20808 (vadd_u64): Likewise.
20809 (vaddq_s8): Likewise.
20810 (vaddq_s16): Likewise.
20811 (vaddq_s32): Likewise.
20812 (vaddq_s64): Likewise.
20813 (vaddq_f32): Likewise.
20814 (vaddq_u8): Likewise.
20815 (vaddq_u16): Likewise.
20816 (vaddq_u32): Likewise.
20817 (vaddq_u64): Likewise.
20818 (vmul_s8): Likewise.
20819 (vmul_s16): Likewise.
20820 (vmul_s32): Likewise.
20821 (vmul_f32): Likewise.
20822 (vmul_u8): Likewise.
20823 (vmul_u16): Likewise.
20824 (vmul_u32): Likewise.
20825 (vmul_p8): Likewise.
20826 (vmulq_s8): Likewise.
20827 (vmulq_s16): Likewise.
20828 (vmulq_s32): Likewise.
20829 (vmulq_f32): Likewise.
20830 (vmulq_u8): Likewise.
20831 (vmulq_u16): Likewise.
20832 (vmulq_u32): Likewise.
20833 (vsub_s8): Likewise.
20834 (vsub_s16): Likewise.
20835 (vsub_s32): Likewise.
20836 (vsub_f32): Likewise.
20837 (vsub_u8): Likewise.
20838 (vsub_u16): Likewise.
20839 (vsub_u32): Likewise.
20840 (vsub_s64): Likewise.
20841 (vsub_u64): Likewise.
20842 (vsubq_s8): Likewise.
20843 (vsubq_s16): Likewise.
20844 (vsubq_s32): Likewise.
20845 (vsubq_s64): Likewise.
20846 (vsubq_f32): Likewise.
20847 (vsubq_u8): Likewise.
20848 (vsubq_u16): Likewise.
20849 (vsubq_u32): Likewise.
20850 (vsubq_u64): Likewise.
20851 (vand_s8): Likewise.
20852 (vand_s16): Likewise.
20853 (vand_s32): Likewise.
20854 (vand_u8): Likewise.
20855 (vand_u16): Likewise.
20856 (vand_u32): Likewise.
20857 (vand_s64): Likewise.
20858 (vand_u64): Likewise.
20859 (vandq_s8): Likewise.
20860 (vandq_s16): Likewise.
20861 (vandq_s32): Likewise.
20862 (vandq_s64): Likewise.
20863 (vandq_u8): Likewise.
20864 (vandq_u16): Likewise.
20865 (vandq_u32): Likewise.
20866 (vandq_u64): Likewise.
20867 (vorr_s8): Likewise.
20868 (vorr_s16): Likewise.
20869 (vorr_s32): Likewise.
20870 (vorr_u8): Likewise.
20871 (vorr_u16): Likewise.
20872 (vorr_u32): Likewise.
20873 (vorr_s64): Likewise.
20874 (vorr_u64): Likewise.
20875 (vorrq_s8): Likewise.
20876 (vorrq_s16): Likewise.
20877 (vorrq_s32): Likewise.
20878 (vorrq_s64): Likewise.
20879 (vorrq_u8): Likewise.
20880 (vorrq_u16): Likewise.
20881 (vorrq_u32): Likewise.
20882 (vorrq_u64): Likewise.
20883 (veor_s8): Likewise.
20884 (veor_s16): Likewise.
20885 (veor_s32): Likewise.
20886 (veor_u8): Likewise.
20887 (veor_u16): Likewise.
20888 (veor_u32): Likewise.
20889 (veor_s64): Likewise.
20890 (veor_u64): Likewise.
20891 (veorq_s8): Likewise.
20892 (veorq_s16): Likewise.
20893 (veorq_s32): Likewise.
20894 (veorq_s64): Likewise.
20895 (veorq_u8): Likewise.
20896 (veorq_u16): Likewise.
20897 (veorq_u32): Likewise.
20898 (veorq_u64): Likewise.
20899 (vbic_s8): Likewise.
20900 (vbic_s16): Likewise.
20901 (vbic_s32): Likewise.
20902 (vbic_u8): Likewise.
20903 (vbic_u16): Likewise.
20904 (vbic_u32): Likewise.
20905 (vbic_s64): Likewise.
20906 (vbic_u64): Likewise.
20907 (vbicq_s8): Likewise.
20908 (vbicq_s16): Likewise.
20909 (vbicq_s32): Likewise.
20910 (vbicq_s64): Likewise.
20911 (vbicq_u8): Likewise.
20912 (vbicq_u16): Likewise.
20913 (vbicq_u32): Likewise.
20914 (vbicq_u64): Likewise.
20915 (vorn_s8): Likewise.
20916 (vorn_s16): Likewise.
20917 (vorn_s32): Likewise.
20918 (vorn_u8): Likewise.
20919 (vorn_u16): Likewise.
20920 (vorn_u32): Likewise.
20921 (vorn_s64): Likewise.
20922 (vorn_u64): Likewise.
20923 (vornq_s8): Likewise.
20924 (vornq_s16): Likewise.
20925 (vornq_s32): Likewise.
20926 (vornq_s64): Likewise.
20927 (vornq_u8): Likewise.
20928 (vornq_u16): Likewise.
20929 (vornq_u32): Likewise.
20930 (vornq_u64): Likewise.
20932 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20934 * wide-int.cc (UTItype): Define.
20935 (UDWtype): Define for appropriate W_TYPE_SIZE.
20937 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20939 PR tree-optimization/59100
20940 * tree-ssa-phiopt.c: Include tree-inline.h.
20941 (neutral_element_p, absorbing_element_p): New functions.
20942 (value_replacement): Handle conditional binary operations with a
20943 neutral or absorbing element.
20945 2014-05-08 Richard Biener <rguenther@suse.de>
20947 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20948 folding the expression.
20949 (valueize_expr): Remove.
20950 (visit_reference_op_load): Do not valueize the result of
20952 (simplify_binary_expression): Likewise.
20953 (simplify_unary_expression): Likewise.
20955 2014-05-08 Richard Biener <rguenther@suse.de>
20957 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20958 looking at TYPE_ARG_TYPES.
20960 2014-05-08 Richard Biener <rguenther@suse.de>
20962 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20963 pointer propagation special-case.
20965 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20967 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20968 core part of address expressions.
20970 2014-05-08 Alan Modra <amodra@gmail.com>
20973 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20974 loads and stores when -mno-strict-align at any alignment.
20975 (expand_block_clear): Similarly. Also correct calculation of
20978 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20980 PR middle-end/39246
20981 * tree-complex.c (expand_complex_move): Keep line info when expanding
20983 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20984 of complex expression. Use new argument to display correct location
20985 for values coming from phi statement.
20986 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20987 (warn_uninitialized_phi): Pass location of phi argument to
20989 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20990 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20992 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20994 * config/rs6000/predicates.md (indexed_address_mem): New.
20995 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20996 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20997 fpstore_ux, fpstore_u.
20998 (sign_extend, indexed, update): New.
20999 (cell_micro): Adjust.
21000 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21001 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21002 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21003 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21004 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21005 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21006 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21007 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21008 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21009 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21010 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21011 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21012 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21013 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21014 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21016 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21017 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21018 *vsx_extract_<mode>_store): Adjust.
21019 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21020 is_cracked_insn, insn_must_be_first_in_group,
21021 insn_must_be_last_in_group): Adjust.
21023 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21025 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21026 ppc440-fpstore): Adjust.
21027 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21028 ppc476-fpstore): Adjust.
21029 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21030 ppc601-fpstore): Adjust.
21031 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21033 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21035 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21036 ppc7450-fpstore): Adjust.
21037 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21038 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21039 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21041 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21042 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21043 cell-fpstore, cell-fpstore-update): Adjust.
21044 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21045 ppce300c3_store, ppce300c3_fpstore): Adjust.
21046 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21047 e500mc_fpstore): Adjust.
21048 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21049 e500mc64_store, e500mc64_fpstore): Adjust.
21050 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21051 e5500_fpstore): Adjust.
21052 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21053 e6500_fpstore): Adjust.
21054 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21056 * config/rs6000/power4.md (power4-load, power4-load-ext,
21057 power4-load-ext-update, power4-load-ext-update-indexed,
21058 power4-load-update-indexed, power4-load-update, power4-fpload,
21059 power4-fpload-update, power4-store, power4-store-update,
21060 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21062 * config/rs6000/power5.md (power5-load, power5-load-ext,
21063 power5-load-ext-update, power5-load-ext-update-indexed,
21064 power5-load-update-indexed, power5-load-update, power5-fpload,
21065 power5-fpload-update, power5-store, power5-store-update,
21066 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21068 * config/rs6000/power6.md (power6-load, power6-load-ext,
21069 power6-load-update, power6-load-update-indexed,
21070 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21071 power6-fpload-update, power6-store, power6-store-update,
21072 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21074 * config/rs6000/power7.md (power7-load, power7-load-ext,
21075 power7-load-update, power7-load-update-indexed,
21076 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21077 power7-fpload-update, power7-store, power7-store-update,
21078 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21080 * config/rs6000/power8.md (power8-load, power8-load-update,
21081 power8-load-ext, power8-load-ext-update, power8-fpload,
21082 power8-fpload-update, power8-store, power8-store-update-indexed,
21083 power8-fpstore, power8-fpstore-update): Adjust.
21084 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21086 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21087 titan_lsu_store, titan_lsu_fpstore): Adjust.
21088 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21090 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21093 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21094 unrolled byte insns. Emit address increments after move insns.
21096 2014-05-07 David Malcolm <dmalcolm@redhat.com>
21098 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21099 const_gimple, rather than a gimple.
21100 (gimple_call_builtin_p): Likewise, for the three variants.
21102 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21103 (gimple_call_builtin_p): Likewise, for the three variants.
21105 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21107 PR tree-optimization/61095
21108 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21110 2014-05-07 Richard Biener <rguenther@suse.de>
21112 PR tree-optimization/61034
21113 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21114 (maybe_skip_until): Use translate to take into account
21115 lattices when trying to do disambiguations.
21116 (get_continuation_for_phi_1): Likewise.
21117 (get_continuation_for_phi): Adjust for added translate arguments.
21118 (walk_non_aliased_vuses): Likewise.
21119 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21120 (walk_non_aliased_vuses): Likewise.
21121 (call_may_clobber_ref_p_1): Declare.
21122 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21123 calls. Stop early if we are only supposed to disambiguate.
21124 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21126 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
21128 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21129 Emit an error when the function has arguments.
21131 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21133 * cfgloop.h (unswitch_loops): Remove.
21134 * doc/passes.texi: Remove references to loop-unswitch.c
21135 * timevar.def (TV_LOOP_UNSWITCH): Remove.
21137 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
21139 * tree-vect-data-refs.c (vect_grouped_load_supported): New
21140 check for loads group of length 3.
21141 (vect_permute_load_chain): New permutations for loads group of
21143 * tree-vect-stmts.c (vect_model_load_cost): Change cost
21144 of vec_perm_shuffle for the new permutations.
21146 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
21148 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21149 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21150 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21151 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21152 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21153 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21154 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21155 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21157 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21159 * loop-unswitch.c: Delete.
21161 2014-05-07 Richard Biener <rguenther@suse.de>
21163 * config.gcc: Always set need_64bit_hwint to yes.
21165 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
21167 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21168 of using optimize_size.
21170 2014-05-06 Mike Stump <mikestump@comcast.net>
21172 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21174 2014-05-06 Joseph Myers <joseph@codesourcery.com>
21176 * config/i386/sse.md (*mov<mode>_internal)
21177 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21178 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21179 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21180 (*<code><mode>3, *andnot<mode>3<mask_name>)
21181 (<mask_codefor><code><mode>3<mask_name>): Only consider
21182 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21184 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21187 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21189 * lra-constraints.c (valid_address_p): Move earlier in file.
21190 Add a constraint argument to the address_info version.
21191 (satisfies_memory_constraint_p): New function.
21192 (satisfies_address_constraint_p): Likewise.
21193 (process_alt_operands, curr_insn_transform): Use them.
21194 (process_address): Pass the constraint to valid_address_p when
21195 checking address operands.
21197 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
21199 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21200 to their respective blocks. Fix inadvertent use of "node".
21202 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21204 * emit-rtl.c (init_derived_machine_modes): New functionm, split
21206 (init_emit_once): ...here.
21207 * rtl.h (init_derived_machine_modes): Declare.
21208 * toplev.c (do_compile): Call it even if no_backend.
21210 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
21211 Mike Stump <mikestump@comcast.net>
21212 Richard Sandiford <rdsandiford@googlemail.com>
21213 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21215 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21216 (rtx_equal_for_memref_p): Update comment.
21217 (adjust_offset_for_component_ref): Use wide-int interfaces.
21218 * builtins.c (get_object_alignment_2): Likewise.
21219 (c_readstr): Likewise.
21220 (target_char_cast): Add comment.
21221 (determine_block_size): Use wide-int interfaces.
21222 (expand_builtin_signbit): Likewise.
21223 (fold_builtin_int_roundingfn): Likewise.
21224 (fold_builtin_bitop): Likewise.
21225 (fold_builtin_bswap): Likewise.
21226 (fold_builtin_logarithm): Use signop.
21227 (fold_builtin_pow): Likewise.
21228 (fold_builtin_memory_op): Use wide-int interfaces.
21229 (fold_builtin_object_size): Likewise.
21230 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21231 nb_iterations_estimate.
21232 (record_niter_bound): Use wide-int interfaces.
21233 (get_estimated_loop_iterations_int): Likewise.
21234 (get_estimated_loop_iterations): Likewise.
21235 (get_max_loop_iterations): Likewise.
21236 * cfgloop.h: Include wide-int.h.
21237 (struct nb_iter_bound): Change bound to widest_int.
21238 (struct loop): Change nb_iterations_upper_bound and
21239 nb_iterations_estimate to widest_int.
21240 (record_niter_bound): Switch to use widest_int.
21241 (get_estimated_loop_iterations): Likewise.
21242 (get_max_loop_iterations): Likewise.
21243 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21244 update for wide-int.
21245 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21246 * combine.c (try_combine): Likewise.
21247 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21248 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21250 (aarch64_float_const_representable_p): Likewise.
21251 * config/arc/arc.c: Include wide-int.h.
21252 (arc_can_use_doloop_p): Use wide-int interfaces.
21253 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21254 (vfp3_const_double_index): Likewise.
21255 * config/avr/avr.c (avr_out_round): Likewise.
21256 (avr_fold_builtin): Likewise.
21257 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21258 (bfin_can_use_doloop_p): Likewise.
21259 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21260 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21261 * config/i386/i386.c: Include wide-int.h.
21262 (ix86_data_alignment): Use wide-int interfaces.
21263 (ix86_local_alignment): Likewise.
21264 (ix86_emit_swsqrtsf): Update real_from_integer.
21265 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21266 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21267 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21268 (zero_constant): Likewise.
21269 (input_operand): Likewise.
21270 (splat_input_operand): Likewise.
21271 (non_logical_cint_operand): Change const_double to const_wide_int.
21272 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21273 (easy_altivec_constant): Remove comment.
21274 (paired_expand_vector_init): Use CONSTANT_P.
21275 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21276 (rs6000_emit_move): Update checks.
21277 (rs6000_aggregate_candidate): Use wide-int interfaces.
21278 (rs6000_expand_ternop_builtin): Likewise.
21279 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21280 (rs6000_assemble_integer): Likewise.
21281 (rs6000_hash_constant): Likewise.
21282 (output_toc): Likewise.
21283 (rs6000_rtx_costs): Likewise.
21284 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21285 * config/rs6000/rs6000-c.c: Include wide-int.h.
21286 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21287 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21288 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21289 Handle CONST_WIDE_INT.
21290 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21291 Use tree_fits_uhwi_p.
21292 * config/sparc/sparc.c: Include wide-int.h.
21293 (sparc_fold_builtin): Use wide-int interfaces.
21294 * config/vax/vax.c: Include wide-int.h.
21295 (vax_float_literal): Use real_from_integer.
21296 * coretypes.h (struct hwivec_def): New.
21298 (const_hwivec): New.
21299 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21300 (equiv_constant): Handle CONST_WIDE_INT.
21301 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21302 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21303 * dbxout.c (stabstr_U): Use wide-int interfaces.
21304 (dbxout_type): Update to use cst_fits_shwi_p.
21305 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21306 (TARGET_SUPPORTS_WIDE_INT): Add default.
21307 * dfp.c: Include wide-int.h.
21308 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21309 decimal_real_to_integer.
21310 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21311 decimal_real_to_integer.
21312 * doc/generic.texi (Constant expressions): Update for wide_int.
21313 * doc/rtl.texi (const_double): Likewise.
21314 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21315 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21316 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21317 (REAL_VALUE_FROM_INT): Remove.
21318 (TARGET_SUPPORTS_WIDE_INT): New.
21319 * doc/tm.texi: Regenerate.
21320 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21321 * double-int.h: Include wide-int.h.
21322 (struct wi::int_traits): New.
21323 * dwarf2out.c (get_full_len): New.
21324 (dw_val_equal_p): Add case dw_val_class_wide_int.
21325 (size_of_loc_descr): Likewise.
21326 (output_loc_operands): Likewise.
21327 (insert_double): Remove.
21328 (insert_wide_int): New.
21329 (add_AT_wide): New.
21330 (print_die): Add case dw_val_class_wide_int.
21331 (attr_checksum): Likewise.
21332 (attr_checksum_ordered): Likewise.
21333 (same_dw_val_p): Likewise.
21334 (size_of_die): Likewise.
21335 (value_format): Likewise.
21336 (output_die): Likewise.
21337 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21339 (clz_loc_descriptor): Use wide-int interfaces.
21340 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21341 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21342 (round_up_to_align): Use wide-int interfaces.
21343 (field_byte_offset): Likewise.
21344 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21345 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21346 CONST_DOUBLE handling. Use wide-int interfaces.
21347 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21348 (gen_enumeration_type_die): Use add_AT_wide.
21349 (hash_loc_operands): Add case dw_val_class_wide_int.
21350 (compare_loc_operands): Likewise.
21351 * dwarf2out.h: Include wide-int.h.
21352 (wide_int_ptr): New.
21353 (enum dw_val_class): Add dw_val_class_wide_int.
21354 (struct dw_val_struct): Add val_wide.
21355 * emit-rtl.c (const_wide_int_htab): New.
21356 (const_wide_int_htab_hash): New.
21357 (const_wide_int_htab_eq): New.
21358 (lookup_const_wide_int): New.
21359 (const_double_htab_hash): Use wide-int interfaces.
21360 (const_double_htab_eq): Likewise.
21361 (rtx_to_double_int): Conditionally compile for wide-int.
21362 (immed_double_int_const): Rename to immed_wide_int_const and
21363 update for wide-int.
21364 (immed_double_const): Conditionally compile for wide-int.
21365 (init_emit_once): Use wide-int interfaces.
21366 * explow.c (plus_constant): Likewise.
21367 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21368 (lshift_value): Use wide-int interfaces.
21369 (expand_mult): Likewise.
21370 (choose_multiplier): Likewise.
21371 (expand_smod_pow2): Likewise.
21372 (make_tree): Likewise.
21373 * expr.c (convert_modes): Consolidate handling of constants.
21374 Use wide-int interfaces.
21375 (emit_group_load_1): Add note.
21376 (store_expr): Update comment.
21377 (get_inner_reference): Use wide-int interfaces.
21378 (expand_constructor): Update comment.
21379 (expand_expr_real_2): Use wide-int interfaces.
21380 (expand_expr_real_1): Likewise.
21381 (reduce_to_bit_field_precision): Likewise.
21382 (const_vector_from_tree): Likewise.
21383 * final.c: Include wide-int-print.h.
21384 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21385 * fixed-value.c: Include wide-int.h.
21386 (fixed_from_string): Use wide-int interfaces.
21387 (fixed_to_decimal): Likewise.
21388 (fixed_convert_from_real): Likewise.
21389 (real_convert_from_fixed): Likewise.
21390 * fold-const.h (mem_ref_offset): Return an offset_int.
21391 (div_if_zero_remainder): Remove code parameter.
21392 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21393 Use wide-int interfaces.
21394 (may_negate_without_overflow_p): Use wide-int interfaces.
21395 (negate_expr_p): Likewise.
21396 (fold_negate_expr): Likewise.
21397 (int_const_binop_1): Likewise.
21398 (const_binop): Likewise.
21399 (fold_convert_const_int_from_int): Likewise.
21400 (fold_convert_const_int_from_real): Likewise.
21401 (fold_convert_const_int_from_fixed): Likewise.
21402 (fold_convert_const_fixed_from_int): Likewise.
21403 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21404 (sign_bit_p): Use wide-int interfaces.
21405 (make_range_step): Likewise.
21406 (build_range_check): Likewise. Pass an integer of the correct type
21407 instead of using integer_one_node.
21408 (range_predecessor): Pass an integer of the correct type instead
21409 of using integer_one_node.
21410 (range_successor): Likewise.
21411 (merge_ranges): Likewise.
21412 (unextend): Use wide-int interfaces.
21413 (extract_muldiv_1): Likewise.
21414 (fold_div_compare): Likewise.
21415 (fold_single_bit_test): Likewise.
21416 (fold_sign_changed_comparison): Likewise.
21417 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21418 (fold_plusminus_mult_expr): Use wide-int interfaces.
21419 (native_encode_int): Likewise.
21420 (native_interpret_int): Likewise.
21421 (fold_unary_loc): Likewise.
21422 (pointer_may_wrap_p): Likewise.
21423 (size_low_cst): Likewise.
21424 (mask_with_tz): Likewise.
21425 (fold_binary_loc): Likewise.
21426 (fold_ternary_loc): Likewise.
21427 (multiple_of_p): Likewise.
21428 (tree_call_nonnegative_warnv_p): Update calls to
21429 tree_int_cst_min_precision and real_from_integer.
21430 (fold_negate_const): Use wide-int interfaces.
21431 (fold_abs_const): Likewise.
21432 (fold_relational_const): Use tree_int_cst_lt.
21433 (round_up_loc): Use wide-int interfaces.
21434 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21435 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21436 * gengtype.c: Remove include of double-int.h.
21437 (do_typedef): Use wide-int interfaces.
21438 (open_base_files): Add wide-int.h.
21439 (main): Add offset_int and widest_int typedefs.
21440 * gengtype-lex.l: Handle "^".
21441 (CXX_KEYWORD): Add "static".
21442 * gengtype-parse.c (require3): New.
21443 (require_template_declaration): Handle constant template arguments
21444 and nested templates.
21445 * gengtype-state.c: Don't include "double-int.h".
21446 * genpreds.c (write_one_predicate_function): Update comment.
21447 (write_tm_constrs_h): Add check for hval and lval use in
21449 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21450 (add_to_sequence): Likewise.
21451 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21452 and const_double_operand.
21453 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21455 * gimple-fold.c (get_base_constructor): Likewise.
21456 (fold_array_ctor_reference): Likewise.
21457 (fold_nonarray_ctor_reference): Likewise.
21458 (fold_const_aggregate_ref_1): Likewise.
21459 (gimple_val_nonnegative_real_p): Likewise.
21460 (gimple_fold_indirect_ref): Likewise.
21461 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21462 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21463 (struct slsr_cand_d): Change index to be widest_int.
21464 (struct incr_info_d): Change incr to be widest_int.
21465 (alloc_cand_and_find_basis): Use wide-int interfaces.
21466 (slsr_process_phi): Likewise.
21467 (backtrace_base_for_ref): Likewise. Return a widest_int.
21468 (restructure_reference): Take a widest_int instead of a double_int.
21469 (slsr_process_ref): Use wide-int interfaces.
21470 (create_mul_ssa_cand): Likewise.
21471 (create_mul_imm_cand): Likewise.
21472 (create_add_ssa_cand): Likewise.
21473 (create_add_imm_cand): Take a widest_int instead of a double_int.
21474 (slsr_process_add): Use wide-int interfaces.
21475 (slsr_process_cast): Likewise.
21476 (slsr_process_copy): Likewise.
21477 (dump_candidate): Likewise.
21478 (dump_incr_vec): Likewise.
21479 (replace_ref): Likewise.
21480 (cand_increment): Likewise. Return a widest_int.
21481 (cand_abs_increment): Likewise.
21482 (replace_mult_candidate): Take a widest_int instead of a double_int.
21483 (replace_unconditional_candidate): Use wide-int interfaces.
21484 (incr_vec_index): Take a widest_int instead of a double_int.
21485 (create_add_on_incoming_edge): Likewise.
21486 (create_phi_basis): Use wide-int interfaces.
21487 (replace_conditional_candidate): Likewise.
21488 (record_increment): Take a widest_int instead of a double_int.
21489 (record_phi_increments): Use wide-int interfaces.
21490 (phi_incr_cost): Take a widest_int instead of a double_int.
21491 (lowest_cost_path): Likewise.
21492 (total_savings): Likewise.
21493 (analyze_increments): Use wide-int interfaces.
21494 (ncd_with_phi): Take a widest_int instead of a double_int.
21495 (ncd_of_cand_and_phis): Likewise.
21496 (nearest_common_dominator_for_cands): Likewise.
21497 (insert_initializers): Use wide-int interfaces.
21498 (all_phi_incrs_profitable): Likewise.
21499 (replace_one_candidate): Likewise.
21500 (replace_profitable_candidates): Likewise.
21501 * godump.c: Include wide-int-print.h.
21502 (go_output_typedef): Use wide-int interfaces.
21503 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21504 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21505 (build_loop_iteration_domains): Likewise.
21506 * hooks.h: Include wide-int.h rather than double-int.h.
21507 (hook_bool_dint_dint_uint_bool_true): Delete.
21508 (hook_bool_wint_wint_uint_bool_true): Declare.
21509 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21510 (hook_bool_wint_wint_uint_bool_true): New.
21511 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21513 (ubsan_expand_si_overflow_mul_check): Likewise.
21514 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21515 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21516 (get_ancestor_addr_info): Likewise.
21517 (ipa_modify_call_arguments): Likewise.
21518 * loop-doloop.c (doloop_modify): Likewise.
21519 (doloop_optimize): Likewise.
21520 * loop-iv.c (iv_number_of_iterations): Likewise.
21521 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21522 (unroll_loop_constant_iterations): Likewise.
21523 (decide_unroll_runtime_iterations): Likewise.
21524 (unroll_loop_runtime_iterations): Likewise.
21525 (decide_peel_simple): Likewise.
21526 (decide_unroll_stupid): Likewise.
21527 * lto-streamer-in.c (streamer_read_wi): Add.
21528 (input_cfg): Use wide-int interfaces.
21529 (lto_input_tree_1): Likewise.
21530 * lto-streamer-out.c (streamer_write_wi): Add.
21531 (hash_tree): Use wide-int interfaces.
21532 (output_cfg): Likewise.
21533 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21534 (GTFILES): Add wide-int.h and signop.h.
21535 (TAGS): Look for .cc files too.
21536 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21537 * optabs.c (expand_subword_shift): Likewise.
21538 (expand_doubleword_shift): Likewise.
21539 (expand_absneg_bit): Likewise.
21540 (expand_copysign_absneg): Likewise.
21541 (expand_copysign_bit): Likewise.
21542 * postreload.c (reload_cse_simplify_set): Likewise.
21543 * predict.c (predict_iv_comparison): Likewise.
21544 * pretty-print.h: Include wide-int-print.h.
21546 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21547 * print-tree.c: Include wide-int-print.h.
21548 (print_node_brief): Use wide-int interfaces.
21549 (print_node): Likewise.
21550 * read-rtl.c (validate_const_wide_int): New.
21551 (read_rtx_code): Add CONST_WIDE_INT case.
21552 * real.c: Include wide-int.h.
21553 (real_to_integer2): Delete.
21554 (real_to_integer): New function, returning a wide_int.
21555 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21556 (ten_to_ptwo): Update call to real_from_integer.
21557 (real_digit): Likewise.
21558 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21559 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21560 (REAL_VALUE_TO_INT): Delete.
21561 (real_to_integer): Declare a wide-int form.
21562 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21563 * recog.c (const_int_operand): Improve comment.
21564 (const_scalar_int_operand): New.
21565 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21566 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21567 (split_double): Likewise.
21568 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21569 (rtx_size): Likewise.
21570 (rtx_alloc_stat_v): New.
21571 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21572 (cwi_output_hex): New.
21573 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21574 (cwi_check_failed_bounds): New.
21575 * rtl.def (CONST_WIDE_INT): New.
21576 * rtl.h: Include <utility> and wide-int.h.
21577 (struct hwivec_def): New.
21578 (CWI_GET_NUM_ELEM): New.
21579 (CWI_PUT_NUM_ELEM): New.
21580 (struct rtx_def): Add num_elem and hwiv.
21581 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21582 (CASE_CONST_UNIQUE): Likewise.
21583 (CASE_CONST_ANY): Likewise.
21584 (CONST_SCALAR_INT_P): Likewise.
21585 (CONST_WIDE_INT_P): New.
21587 (HWIVEC_CHECK): New.
21588 (cwi_check_failed_bounds): New.
21590 (HWIVEC_CHECK): New.
21591 (CONST_WIDE_INT_VEC) New.
21592 (CONST_WIDE_INT_NUNITS) New.
21593 (CONST_WIDE_INT_ELT) New.
21594 (rtx_mode_t): New type.
21595 (wi::int_traits <rtx_mode_t>): New.
21597 (wi::min_value): New.
21598 (wi::max_value): New.
21600 (const_wide_int_alloc): New.
21601 (immed_wide_int_const): New.
21602 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21603 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21604 * signop.h: New file.
21605 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21606 (simplify_const_unary_operation): Use wide-int interfaces.
21607 (simplify_binary_operation_1): Likewise.
21608 (simplify_const_binary_operation): Likewise.
21609 (simplify_const_relational_operation): Likewise.
21610 (simplify_immed_subreg): Likewise.
21611 * stmt.c (expand_case): Likewise.
21612 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21613 signop rather than a bool.
21614 * stor-layout.c (layout_type): Use wide-int interfaces.
21615 (initialize_sizetypes): Update calls to
21616 set_min_and_max_values_for_integral_type.
21617 (set_min_and_max_values_for_integral_type): Take a signop rather
21618 than a bool. Use wide-int interfaces.
21619 (fixup_signed_type): Update accordingly. Remove
21620 HOST_BITS_PER_DOUBLE_INT limit.
21621 (fixup_unsigned_type): Likewise.
21622 * system.h (STATIC_CONSTANT_P): New.
21623 (STATIC_ASSERT): New.
21624 * target.def (can_use_doloop_p): Take widest_ints rather than
21626 * target.h: Include wide-int.h rather than double-int.h.
21627 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21629 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21630 rather than INT_CST_LT_UNSIGNED.
21631 (can_use_doloop_if_innermost): Take widest_ints rather than
21633 * tree-affine.c: Include wide-int-print.h.
21634 (double_int_ext_for_comb): Delete.
21635 (wide_int_ext_for_comb): New.
21636 (aff_combination_zero): Use wide-int interfaces.
21637 (aff_combination_const): Take a widest_int instead of a double_int.
21638 (aff_combination_elt): Use wide-int interfaces.
21639 (aff_combination_scale): Take a widest_int instead of a double_int.
21640 (aff_combination_add_elt): Likewise.
21641 (aff_combination_add_cst): Likewise.
21642 (aff_combination_add): Use wide-int interfaces.
21643 (aff_combination_convert): Likewise.
21644 (tree_to_aff_combination): Likewise.
21645 (add_elt_to_tree): Take a widest_int instead of a double_int.
21646 (aff_combination_to_tree): Use wide-int interfaces.
21647 (aff_combination_remove_elt): Likewise.
21648 (aff_combination_add_product): Take a widest_int instead of
21650 (aff_combination_mult): Use wide-int interfaces.
21651 (aff_combination_expand): Likewise.
21652 (double_int_constant_multiple_p): Delete.
21653 (wide_int_constant_multiple_p): New.
21654 (aff_combination_constant_multiple_p): Take a widest_int pointer
21655 instead of a double_int pointer.
21656 (print_aff): Use wide-int interfaces.
21657 (get_inner_reference_aff): Take a widest_int pointer
21658 instead of a double_int pointer.
21659 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21660 * tree-affine.h: Include wide-int.h.
21661 (struct aff_comb_elt): Change type of coef to widest_int.
21662 (struct affine_tree_combination): Change type of offset to widest_int.
21663 (double_int_ext_for_comb): Delete.
21664 (wide_int_ext_for_comb): New.
21665 (aff_combination_const): Use widest_int instead of double_int.
21666 (aff_combination_scale): Likewise.
21667 (aff_combination_add_elt): Likewise.
21668 (aff_combination_constant_multiple_p): Likewise.
21669 (get_inner_reference_aff): Likewise.
21670 (aff_comb_cannot_overlap_p): Likewise.
21671 (aff_combination_zero_p): Use wide-int interfaces.
21672 * tree.c: Include tree.h.
21673 (init_ttree): Use make_int_cst.
21674 (tree_code_size): Removed code for INTEGER_CST case.
21675 (tree_size): Add INTEGER_CST case.
21676 (make_node_stat): Update comment.
21677 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21678 (build_int_cst_type): Use wide-int interfaces.
21679 (double_int_to_tree): Likewise.
21680 (double_int_fits_to_tree_p): Delete.
21681 (force_fit_type_double): Delete.
21682 (force_fit_type): New.
21683 (int_cst_hash_hash): Use wide-int interfaces.
21684 (int_cst_hash_eq): Likewise.
21685 (build_int_cst_wide): Delete.
21686 (wide_int_to_tree): New.
21687 (cache_integer_cst): Use wide-int interfaces.
21688 (build_low_bits_mask): Likewise.
21689 (cst_and_fits_in_hwi): Likewise.
21690 (real_value_from_int_cst): Likewise.
21691 (make_int_cst_stat): New.
21692 (integer_zerop): Use wide_int interfaces.
21693 (integer_onep): Likewise.
21694 (integer_all_onesp): Likewise.
21695 (integer_pow2p): Likewise.
21696 (integer_nonzerop): Likewise.
21697 (tree_log2): Likewise.
21698 (tree_floor_log2): Likewise.
21699 (tree_ctz): Likewise.
21700 (int_size_in_bytes): Likewise.
21701 (mem_ref_offset): Return an offset_int rather than a double_int.
21702 (build_type_attribute_qual_variant): Use wide_int interfaces.
21703 (type_hash_eq): Likewise
21704 (tree_int_cst_equal): Likewise.
21705 (tree_int_cst_lt): Delete.
21706 (tree_int_cst_compare): Likewise.
21707 (tree_fits_shwi_p): Use wide_int interfaces.
21708 (tree_fits_uhwi_p): Likewise.
21709 (tree_int_cst_sign_bit): Likewise.
21710 (tree_int_cst_sgn): Likewise.
21711 (tree_int_cst_min_precision): Take a signop rather than a bool.
21712 (simple_cst_equal): Use wide_int interfaces.
21713 (compare_tree_int): Likewise.
21714 (iterative_hash_expr): Likewise.
21715 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21717 (get_type_static_bounds): Use wide_int interfaces.
21718 (tree_int_cst_elt_check_failed): New.
21719 (build_common_tree_nodes): Reordered to set prec before filling in
21721 (int_cst_value): Check cst_and_fits_in_hwi.
21722 (widest_int_cst_value): Use wide_int interfaces.
21723 (upper_bound_in_type): Likewise.
21724 (lower_bound_in_type): Likewise.
21725 (num_ending_zeros): Likewise.
21726 (drop_tree_overflow): Likewise.
21727 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21728 (gen_conditions_for_pow_cst_base): Likewise.
21729 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21730 (group_case_labels_stmt): Use wide-int interfaces.
21731 (verify_gimple_assign_binary): Likewise.
21732 (print_loop): Likewise.
21733 * tree-chrec.c (tree_fold_binomial): Likewise.
21734 * tree-core.h (struct tree_base): Add int_length.
21735 (struct tree_int_cst): Change rep of value.
21736 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21737 (dr_may_alias_p): Likewise.
21738 (max_stmt_executions_tree): Likewise.
21739 * tree.def (INTEGER_CST): Update comment.
21740 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21741 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21742 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21743 (dequeue_and_dump): Use wide-int interfaces.
21744 * tree.h: Include wide-int.h.
21745 (NULL_TREE): Moved to earlier loc in file.
21746 (TREE_INT_CST_ELT_CHECK): New.
21747 (tree_int_cst_elt_check_failed): New.
21749 (TREE_INT_CST): Delete.
21750 (TREE_INT_CST_LOW): Use wide-int interfaces.
21751 (TREE_INT_CST_HIGH): Delete.
21752 (TREE_INT_CST_NUNITS): New.
21753 (TREE_INT_CST_EXT_NUNITS): Likewise.
21754 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21755 (TREE_INT_CST_ELT): Likewise.
21756 (INT_CST_LT): Delete.
21757 (tree_int_cst_elt_check): New (two forms).
21758 (type_code_size): Update comment.
21759 (make_int_cst_stat, make_int_cst): New.
21760 (tree_to_double_int): Delete.
21761 (double_int_fits_to_tree_p): Delete.
21762 (force_fit_type_double): Delete.
21763 (build_int_cstu): Replace with out-of-line function.
21764 (build_int_cst_wide): Delete.
21765 (tree_int_cst_lt): Define inline.
21766 (tree_int_cst_le): New.
21767 (tree_int_cst_compare): Define inline.
21768 (tree_int_cst_min_precision): Take a signop rather than a bool.
21769 (wi::int_traits <const_tree>): New.
21770 (wi::int_traits <tree>): New.
21771 (wi::extended_tree): New.
21772 (wi::int_traits <wi::extended_tree>): New.
21773 (wi::to_widest): New.
21774 (wi::to_offset): New.
21775 (wi::fits_to_tree_p): New.
21776 (wi::min_value): New.
21777 (wi::max_value): New.
21778 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21779 (copy_tree_body_r): Likewise.
21780 * tree-object-size.c (compute_object_offset): Likewise.
21781 (addr_object_size): Likewise.
21782 * tree-predcom.c: Include wide-int-print.h.
21783 (struct dref_d): Change type of offset to widest_int.
21784 (dump_dref): Call wide-int printer.
21785 (aff_combination_dr_offset): Use wide-int interfaces.
21786 (determine_offset): Take a widest_int pointer rather than a
21787 double_int pointer.
21788 (split_data_refs_to_components): Use wide-int interfaces.
21789 (suitable_component_p): Likewise.
21790 (order_drefs): Likewise.
21791 (add_ref_to_chain): Likewise.
21792 (valid_initializer_p): Likewise.
21793 (determine_roots_comp): Likewise.
21794 * tree-pretty-print.c: Include wide-int-print.h.
21795 (dump_generic_node): Use wide-int interfaces.
21796 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21797 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21798 (move_fixed_address_to_symbol): Likewise.
21799 (move_hint_to_base): Likewise.
21800 (move_pointer_to_base): Likewise.
21801 (move_variant_to_index): Likewise.
21802 (most_expensive_mult_to_index): Likewise.
21803 (addr_to_parts): Likewise.
21804 (copy_ref_info): Likewise.
21805 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21806 (indirect_refs_may_alias_p): Likewise.
21807 (stmt_kills_ref_p_1): Likewise.
21808 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21809 * tree-ssa-ccp.c: Update comment at top of file. Include
21811 (struct prop_value_d): Change type of mask to widest_int.
21812 (extend_mask): New function.
21813 (dump_lattice_value): Use wide-int interfaces.
21814 (get_default_value): Likewise.
21815 (set_constant_value): Likewise.
21816 (set_value_varying): Likewise.
21817 (valid_lattice_transition): Likewise.
21818 (set_lattice_value): Likewise.
21819 (value_to_double_int): Delete.
21820 (value_to_wide_int): New.
21821 (get_value_from_alignment): Use wide-int interfaces.
21822 (get_value_for_expr): Likewise.
21823 (do_dbg_cnt): Likewise.
21824 (ccp_finalize): Likewise.
21825 (ccp_lattice_meet): Likewise.
21826 (bit_value_unop_1): Use widest_ints rather than double_ints.
21827 (bit_value_binop_1): Likewise.
21828 (bit_value_unop): Use wide-int interfaces.
21829 (bit_value_binop): Likewise.
21830 (bit_value_assume_aligned): Likewise.
21831 (evaluate_stmt): Likewise.
21832 (ccp_fold_stmt): Likewise.
21833 (visit_cond_stmt): Likewise.
21834 (ccp_visit_stmt): Likewise.
21835 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21836 (constant_pointer_difference): Likewise.
21837 (associate_pointerplus): Likewise.
21838 (combine_conversions): Likewise.
21839 * tree-ssa-loop.h: Include wide-int.h.
21840 (struct tree_niter_desc): Change type of max to widest_int.
21841 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21842 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21843 (remove_redundant_iv_tests): Likewise.
21844 (canonicalize_loop_induction_variables): Likewise.
21845 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21846 (constant_multiple_of): Take a widest_int pointer instead of
21847 a double_int pointer.
21848 (get_computation_aff): Use wide-int interfaces.
21849 (ptr_difference_cost): Likewise.
21850 (difference_cost): Likewise.
21851 (get_loop_invariant_expr_id): Likewise.
21852 (get_computation_cost_at): Likewise.
21853 (iv_elimination_compare_lt): Likewise.
21854 (may_eliminate_iv): Likewise.
21855 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21856 instead of double_int.
21857 (max_loop_iterations): Likewise.
21858 (max_stmt_executions): Likewise.
21859 (estimated_stmt_executions): Likewise.
21860 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21861 (split_to_var_and_offset): Use wide-int interfaces.
21862 (determine_value_range): Likewise.
21863 (bound_difference_of_offsetted_base): Likewise.
21864 (bounds_add): Take a widest_int instead of a double_int.
21865 (number_of_iterations_ne_max): Use wide-int interfaces.
21866 (number_of_iterations_ne): Likewise.
21867 (number_of_iterations_lt_to_ne): Likewise.
21868 (assert_loop_rolls_lt): Likewise.
21869 (number_of_iterations_lt): Likewise.
21870 (number_of_iterations_le): Likewise.
21871 (number_of_iterations_cond): Likewise.
21872 (number_of_iterations_exit): Likewise.
21873 (finite_loop_p): Likewise.
21874 (derive_constant_upper_bound_assign): Likewise.
21875 (derive_constant_upper_bound): Return a widest_int.
21876 (derive_constant_upper_bound_ops): Likewise.
21877 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21878 (record_estimate): Take a widest_int rather than a double_int.
21879 (record_nonwrapping_iv): Use wide-int interfaces.
21880 (double_int_cmp): Delete.
21881 (wide_int_cmp): New.
21882 (bound_index): Take a widest_int rather than a double_int.
21883 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21884 (maybe_lower_iteration_bound): Likewise.
21885 (estimate_numbers_of_iterations_loop): Likewise.
21886 (estimated_loop_iterations): Take a widest_int pointer than than
21887 a double_int pointer.
21888 (estimated_loop_iterations_int): Use wide-int interfaces.
21889 (max_loop_iterations): Take a widest_int pointer than than
21890 a double_int pointer.
21891 (max_loop_iterations_int): Use wide-int interfaces.
21892 (max_stmt_executions): Take a widest_int pointer than than
21893 a double_int pointer.
21894 (estimated_stmt_executions): Likewise.
21895 (n_of_executions_at_most): Use wide-int interfaces.
21896 (scev_probably_wraps_p): Likewise.
21897 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21898 to real_to_integer.
21899 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21901 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21902 double_ints. Adjust for trailing_wide_ints <3> representation.
21903 (set_nonzero_bits): Likewise.
21904 (get_range_info): Return wide_ints rather than double_ints.
21905 Adjust for trailing_wide_ints <3> representation.
21906 (get_nonzero_bits): Likewise.
21907 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21909 * tree-ssanames.h (struct range_info_def): Replace min, max and
21910 nonzero_bits with a trailing_wide_ints <3>.
21911 (set_range_info): Use wide_int_refs rather than double_ints.
21912 (set_nonzero_bits): Likewise.
21913 (get_range_info): Return wide_ints rather than double_ints.
21914 (get_nonzero_bits): Likewise.
21915 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21916 * tree-ssa-pre.c (phi_translate_1): Likewise.
21917 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21918 (acceptable_pow_call): Likewise.
21919 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21921 (vn_reference_fold_indirect): Likewise.
21922 (vn_reference_maybe_forwprop_address): Likewise.
21923 (valueize_refs_1): Likewise.
21924 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21925 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21926 tree_int_cst_lt and tree_int_cst_le.
21927 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21929 (streamer_alloc_tree): Likewise.
21930 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21931 (streamer_write_tree_header): Likewise.
21932 (streamer_write_integer_cst): Likewise.
21933 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21934 (build_constructors): Likewise.
21935 (array_value_type): Likewise.
21936 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21937 (vect_check_gather): Likewise.
21938 * tree-vect-generic.c (build_replicated_const): Likewise.
21939 (expand_vector_divmod): Likewise.
21940 * tree-vect-loop.c (vect_transform_loop): Likewise.
21941 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21942 (vect_do_peeling_for_alignment): Likewise.
21943 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21944 * tree-vrp.c: Include wide-int.h.
21945 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21946 (extract_range_from_assert): Use wide-int interfaces.
21947 (vrp_int_const_binop): Likewise.
21948 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21949 double_int pointers.
21950 (ranges_from_anti_range): Use wide-int interfaces.
21951 (quad_int_cmp): Delete.
21952 (quad_int_pair_sort): Likewise.
21953 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21954 (extract_range_from_unary_expr_1): Likewise.
21955 (adjust_range_with_scev): Likewise.
21956 (masked_increment): Take and return wide_ints rather than double_ints.
21957 (register_edge_assert_for_2): Use wide-int interfaces.
21958 (check_array_ref): Likewise.
21959 (search_for_addr_array): Likewise.
21960 (maybe_set_nonzero_bits): Likewise.
21961 (union_ranges): Pass an integer of the correct type instead of
21962 using integer_one_node.
21963 (intersect_ranges): Likewise.
21964 (simplify_truth_ops_using_ranges): Likewise.
21965 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21966 (range_fits_type_p): Likewise.
21967 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21969 (simplify_conversion_using_ranges): Use wide-int interfaces.
21970 (simplify_float_conversion_using_ranges): Likewise.
21971 (vrp_finalize): Likewise.
21972 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21973 (gimple_stringops_transform): Likewise.
21974 * varasm.c (decode_addr_const): Likewise.
21975 (const_hash_1): Likewise.
21976 (const_rtx_hash_1): Likewise
21977 (output_constant): Likewise.
21978 (array_size_for_constructor): Likewise.
21979 (output_constructor_regular_field): Likewise.
21980 (output_constructor_bitfield): Likewise.
21981 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21982 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21984 * gencheck.c: Define BITS_PER_UNIT.
21985 * wide-int.cc: New.
21987 * wide-int-print.cc: New.
21988 * wide-int-print.h: New.
21990 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21992 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21994 2014-05-06 Richard Biener <rguenther@suse.de>
21996 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21997 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21998 (TODO_verify_all): Adjust.
21999 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22000 TODO_verify_stmts and TODO_verify_rtl_sharing.
22001 * bb-reorder.c: Likewise.
22002 * cfgexpand.c: Likewise.
22003 * cprop.c: Likewise.
22005 * function.c: Likewise.
22006 * fwprop.c: Likewise.
22007 * gcse.c: Likewise.
22008 * gimple-ssa-isolate-paths.c: Likewise.
22009 * gimple-ssa-strength-reduction.c: Likewise.
22010 * ipa-split.c: Likewise.
22011 * loop-init.c: Likewise.
22012 * loop-unroll.c: Likewise.
22013 * lower-subreg.c: Likewise.
22014 * modulo-sched.c: Likewise.
22015 * postreload-gcse.c: Likewise.
22016 * predict.c: Likewise.
22017 * recog.c: Likewise.
22018 * sched-rgn.c: Likewise.
22019 * store-motion.c: Likewise.
22020 * tracer.c: Likewise.
22021 * trans-mem.c: Likewise.
22022 * tree-call-cdce.c: Likewise.
22023 * tree-cfg.c: Likewise.
22024 * tree-cfgcleanup.c: Likewise.
22025 * tree-complex.c: Likewise.
22026 * tree-eh.c: Likewise.
22027 * tree-emutls.c: Likewise.
22028 * tree-if-conv.c: Likewise.
22029 * tree-into-ssa.c: Likewise.
22030 * tree-loop-distribution.c: Likewise.
22031 * tree-object-size.c: Likewise.
22032 * tree-parloops.c: Likewise.
22033 * tree-pass.h: Likewise.
22034 * tree-sra.c: Likewise.
22035 * tree-ssa-ccp.c: Likewise.
22036 * tree-ssa-copy.c: Likewise.
22037 * tree-ssa-copyrename.c: Likewise.
22038 * tree-ssa-dce.c: Likewise.
22039 * tree-ssa-dom.c: Likewise.
22040 * tree-ssa-dse.c: Likewise.
22041 * tree-ssa-forwprop.c: Likewise.
22042 * tree-ssa-ifcombine.c: Likewise.
22043 * tree-ssa-loop-ch.c: Likewise.
22044 * tree-ssa-loop-ivcanon.c: Likewise.
22045 * tree-ssa-loop.c: Likewise.
22046 * tree-ssa-math-opts.c: Likewise.
22047 * tree-ssa-phiopt.c: Likewise.
22048 * tree-ssa-phiprop.c: Likewise.
22049 * tree-ssa-pre.c: Likewise.
22050 * tree-ssa-reassoc.c: Likewise.
22051 * tree-ssa-sink.c: Likewise.
22052 * tree-ssa-strlen.c: Likewise.
22053 * tree-ssa-tail-merge.c: Likewise.
22054 * tree-ssa-uncprop.c: Likewise.
22055 * tree-switch-conversion.c: Likewise.
22056 * tree-tailcall.c: Likewise.
22057 * tree-vect-generic.c: Likewise.
22058 * tree-vectorizer.c: Likewise.
22059 * tree-vrp.c: Likewise.
22060 * tsan.c: Likewise.
22061 * var-tracking.c: Likewise.
22062 * bt-load.c: Likewise.
22063 * cfgcleanup.c: Likewise.
22064 * combine-stack-adj.c: Likewise.
22065 * combine.c: Likewise.
22066 * compare-elim.c: Likewise.
22067 * config/epiphany/resolve-sw-modes.c: Likewise.
22068 * config/i386/i386.c: Likewise.
22069 * config/mips/mips.c: Likewise.
22070 * config/s390/s390.c: Likewise.
22071 * config/sh/sh_treg_combine.cc: Likewise.
22072 * config/sparc/sparc.c: Likewise.
22075 * final.c: Likewise.
22076 * ifcvt.c: Likewise.
22077 * mode-switching.c: Likewise.
22078 * passes.c: Likewise.
22079 * postreload.c: Likewise.
22081 * reg-stack.c: Likewise.
22082 * regcprop.c: Likewise.
22083 * regrename.c: Likewise.
22086 2014-05-06 Richard Biener <rguenther@suse.de>
22088 PR middle-end/61070
22089 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22090 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22092 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
22095 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22097 2014-05-05 Radovan Obradovic <robradovic@mips.com>
22098 Tom de Vries <tom@codesourcery.com>
22100 * target.def (call_fusage_contains_non_callee_clobbers): New
22102 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22104 (@node Miscellaneous Register Hooks): New node.
22105 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22106 * doc/tm.texi: Regenerate.
22108 2014-05-05 Marek Polacek <polacek@redhat.com>
22111 * opts.c (common_handle_option): Call error_at instead of warning_at.
22113 2014-05-05 Richard Biener <rguenther@suse.de>
22115 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22116 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
22117 under the TODO_verify_il umbrella.
22119 2014-05-05 Richard Biener <rguenther@suse.de>
22121 * passes.c (execute_function_todo): Move TODO_verify_flow under
22122 the TODO_verify_ul umbrella.
22124 2014-05-05 Richard Biener <rguenther@suse.de>
22126 PR middle-end/61010
22127 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22128 X & CST away from a CST that is the mask of a mode.
22130 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22132 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22133 int argument to enum machine_mode.
22134 (picochip_class_max_nregs): Ditto.
22135 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22136 (picochip_class_max_nregs): Ditto.
22138 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22140 * target.def: Add new target hook.
22141 * doc/tm.texi: Regenerate.
22142 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22143 * targhooks.c (default_keep_leaf_when_profiled): New function.
22145 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22146 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22148 2014-05-05 Bin Cheng <bin.cheng@arm.com>
22150 PR tree-optimization/60363
22151 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22152 (copy_phi_args): New parameters. Call get_value_locus_in_path.
22153 (update_destination_phis): New parameter.
22154 (create_edge_and_update_destination_phis): Ditto.
22155 (ssa_fix_duplicate_block_edges): Pass new arguments.
22156 (thread_single_edge): Ditto.
22158 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
22160 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22161 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22162 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22163 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22164 Use RS6000_BTM_HARD_FLOAT.
22165 (BU_MISC_2): Likewise.
22166 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22167 RS6000_BTM_HARD_FLOAT.
22168 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22169 is explicitly used.
22170 (rs6000_invalid_builtin): Add hard floating builtin support.
22171 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22172 hard float builtins.
22173 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22175 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22177 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22178 Add missing function* argument.
22180 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22182 * lra-constraints.c (valid_address_p): Move earlier in file.
22183 Add a constraint argument to the address_info version.
22184 (satisfies_memory_constraint_p): New function.
22185 (satisfies_address_constraint_p): Likewise.
22186 (process_alt_operands, curr_insn_transform): Use them.
22187 (process_address): Pass the constraint to valid_address_p when
22188 checking address operands.
22190 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22192 * config/mips/mips.c (mips_isa_rev): New variable.
22193 (mips_set_architecture): Set it.
22194 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22196 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22197 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22198 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22199 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22200 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22201 conditions in terms of mips_isa_rev.
22202 (mips_isa_rev): Declare.
22204 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22206 * config/sh/sh-mem.cc: Use tabs instead of spaces.
22207 (prob_unlikely, prob_likely): Make variables const.
22209 2014-05-03 Denis Chertykov <chertykov@gmail.com>
22211 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22213 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22215 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22217 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22219 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22220 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22221 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22223 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22224 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22226 Replace usage of ROUND_REG with sh_round_reg.
22227 Use CEIL instead of ROUND_ADVANCE.
22229 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22232 * config/sh/sh.c: Include stdlib headers before everything else.
22234 2014-05-02 Jakub Jelinek <jakub@redhat.com>
22236 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22237 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22238 (gimplify_adjust_omp_clauses): Simd region is never
22239 directly nested in combined parallel. Instead, for linear
22240 with copyin/copyout, if in combined for simd loop, make decl
22241 firstprivate/lastprivate on OMP_FOR.
22242 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22243 expand_omp_for_static_chunk): When setting endvar, also set
22244 fd->loop.v to the same value.
22246 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22248 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22250 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
22252 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22255 2014-05-02 Marek Polacek <polacek@redhat.com>
22257 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22259 2014-05-02 Kito Cheng <kito@0xlab.org>
22261 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22262 to a C expression marco.
22263 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22264 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22265 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22266 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22267 HONOR_REG_ALLOC_ORDER.
22268 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22270 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22272 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22274 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22276 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22278 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22280 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22281 (convert_scalar_cond_reduction): Likewise.
22282 (predicate_scalar_phi): Add recognition and transformation
22283 of simple conditioanl reduction to be vectorizable.
22285 2014-05-01 Marek Polacek <polacek@redhat.com>
22288 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22290 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22292 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22293 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22294 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22295 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22296 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22297 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22298 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22299 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22301 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22303 * config/arc/arc.opt (mlra): Move comment above option name
22304 to avoid mis-parsing as language options.
22306 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22308 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22309 * config/sol2.h: ... here.
22310 * config/sol2-10.h: Remove.
22312 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22313 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22314 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22315 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22316 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22317 * config/sol2.h: ... here.
22318 (SECTION_NAME_FORMAT): Don't redefine.
22319 (STARTFILE_ARCH32_SPEC): Rename to ...
22320 (STARTFILE_ARCH_SPEC): ... this.
22321 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22322 * config/sparc/sol2.h: ... here.
22323 (SECTION_NAME_FORMAT): Don't undef.
22324 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22325 (SUBTARGET_EXTRA_SPECS): Remove.
22326 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22328 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22329 (MD_STARTFILE_PREFIX): Remove.
22330 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22331 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22332 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22333 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22334 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22335 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22336 * config/i386/sol2.h: ... here.
22337 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22338 * config/i386/sol2-bi.h: Remove.
22339 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22340 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22342 * config/i386/t-sol2-64: Rename to ...
22343 * config/i386/t-sol2: ... this.
22344 * config/sparc/t-sol2-64: Rename to ...
22345 * config/sparc/t-sol2: ... this.
22347 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22348 sol2_tm_file_head, sol2_tm_file_tail.
22349 Include ${cpu_type}/sol2.h before sol2.h.
22351 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22352 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22353 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22354 Reflect i386/t-sol2-64 renaming.
22355 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22356 Reflect sparc/t-sol2-64 renaming.
22358 2014-04-30 Richard Biener <rguenther@suse.de>
22360 * passes.c (execute_function_todo): Move TODO_verify_stmts
22361 and TODO_verify_ssa under the TODO_verify_il umbrella.
22362 * tree-ssa.h (verify_ssa): Adjust prototype.
22363 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22364 we should verify SSA operands.
22365 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22366 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22367 whether we should verify whether not throwing stmts have EH info.
22368 * graphite-scop-detection.c (create_sese_edges): Adjust.
22369 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22370 * tree-eh.c (lower_try_finally_switch): Do not add the
22371 default case label twice.
22373 2014-04-30 Marek Polacek <polacek@redhat.com>
22375 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22376 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22377 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22378 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22380 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22382 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22383 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22384 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22385 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22386 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22387 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22388 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22389 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22391 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22393 * tree-cfg.c (dump_function_to_file): Dump the return type of
22394 functions, in a line to itself before the function body, mimicking
22395 the layout of a C function.
22397 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22399 PR tree-optimization/60971
22400 * tree-tailcall.c (process_assignment): Reject conversions which
22403 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22405 * calls.c (initialize_argument_information): Always treat
22406 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22407 (expand_call): Likewise.
22408 (emit_library_call_calue_1): Likewise.
22409 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22410 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22413 2014-04-29 Nick Clifton <nickc@redhat.com>
22415 * config/msp430/msp430.md (umulsidi): Fix typo.
22416 (mulhisi3): Enable even inside interrupt handlers.
22417 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22418 bigger return address pushed in large mode.
22420 2014-04-29 Nick Clifton <nickc@redhat.com>
22422 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22423 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22425 * config/m32r/m32r.c (init_reg_tables): Likewise.
22426 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22427 enum to hold the modes.
22429 2014-04-29 Richard Biener <rguenther@suse.de>
22431 * dominance.c (free_dominance_info): Add overload with
22432 function parameter.
22433 (dom_info_state): Likewise.
22434 (dom_info_available_p): Likewise.
22435 * basic-block.h (free_dominance_info, dom_info_state,
22436 dom_info_available_p): Declare overloads.
22437 * passes.c (execute_function_todo): Verify that verifiers
22438 don't change dominator info state. Drop dominator info
22439 for IPA pass invocations.
22440 * cgraph.c (release_function_body): Restore asserts that
22441 dominator information is released.
22443 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22445 * doc/invoke.texi: Fix typo.
22446 * tree-vrp.c: Fix typos.
22447 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22449 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22451 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22453 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22455 * config/aarch64/aarch64-builtins.c
22456 (aarch64_types_storestruct_lane_qualifiers): New.
22457 (TYPES_STORESTRUCT_LANE): Likewise.
22458 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22459 (st3_lane): Likewise.
22460 (st4_lane): Likewise.
22461 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22462 (vec_store_lanesci_lane<mode>): Likewise.
22463 (vec_store_lanesxi_lane<mode>): Likewise.
22464 (aarch64_st2_lane<VQ:mode>): Likewise.
22465 (aarch64_st3_lane<VQ:mode>): Likewise.
22466 (aarch64_st4_lane<VQ:mode>): Likewise.
22467 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22468 * config/aarch64/arm_neon.h
22469 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22470 use new macro arguments.
22471 (__ST3_LANE_FUNC): Likewise.
22472 (__ST4_LANE_FUNC): Likewise.
22473 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22474 (V_THREE_ELEM): Likewise.
22475 (V_FOUR_ELEM): Likewise.
22477 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22479 * doc/gimple.texi: Replace the description of the now-defunct
22480 union gimple_statement_d with a diagram showing the
22481 gimple_statement_base class hierarchy and its relationships to
22482 the GSS_ and GIMPLE_ enums.
22484 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22486 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22487 * config/aarch64/aarch64.c
22488 (aarch64_cannot_change_mode_class): Weaken conditions.
22489 (aarch64_modes_tieable_p): New.
22490 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22492 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22494 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22495 (loadsync_<mode>): Change mode.
22496 (load_quadpti, store_quadpti): New.
22497 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22498 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22500 2014-04-28 Martin Jambor <mjambor@suse.cz>
22502 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22503 same alias type as the original statement.
22504 (subreplacement_assignment_data): New type.
22505 (handle_unscalarized_data_in_subtree): New type of parameter,
22506 generate new memory accesses with same alias type as the original
22508 (load_assign_lhs_subreplacements): Likewise.
22509 (sra_modify_constructor_assign): Generate new memory accesses with
22510 same alias type as the original statement.
22512 2014-04-28 Richard Biener <rguenther@suse.de>
22514 * tree-pass.h (TODO_verify_il): Define.
22515 (TODO_verify_all): Complete properly.
22516 * passes.c (execute_function_todo): Move existing loop-closed
22517 SSA verification under TODO_verify_il.
22518 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22519 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22520 Fix tree sharing issue.
22522 2014-04-28 Richard Biener <rguenther@suse.de>
22524 PR middle-end/60092
22525 * builtins.def (DEF_C11_BUILTIN): Add.
22526 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22527 * coretypes.h (enum function_class): Add function_c11_misc.
22528 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22529 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22530 (call_may_clobber_ref_p_1): Likewise.
22531 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22532 (mark_all_reaching_defs_necessary_1): Likewise.
22533 (propagate_necessity): Likewise.
22534 (eliminate_unnecessary_stmts): Likewise.
22535 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22537 2014-04-28 Richard Biener <rguenther@suse.de>
22539 * tree-vrp.c (vrp_var_may_overflow): Remove.
22540 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22541 with overflow immediately bump to one before that value and
22542 let iteration figure out overflow status.
22544 2014-04-28 Richard Biener <rguenther@suse.de>
22546 * configure.ac: Do valgrind header checks unconditionally.
22547 Add --enable-valgrind-annotations.
22548 * system.h: Guard valgrind header inclusion with
22549 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22550 * alloc-pool.c (pool_alloc, pool_free): Use
22551 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22552 to guard possibly dead code.
22553 * config.in: Regenerated.
22554 * configure: Likewise.
22556 2014-04-28 Jeff Law <law@redhat.com>
22558 PR tree-optimization/60902
22559 * tree-ssa-threadedge.c
22560 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22561 over real defs when invalidating outputs from statements that do not
22562 produce useful outputs for threading.
22564 2014-04-28 Richard Biener <rguenther@suse.de>
22566 PR tree-optimization/60979
22567 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22568 SCOPs that end in a block with a successor with abnormal
22571 2014-04-28 Richard Biener <rguenther@suse.de>
22573 * tree-pass.h (execute_pass_list): Adjust prototype.
22574 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22575 (do_per_function): Change callback signature, push all actual
22576 work to the callbals.
22577 (do_per_function_toporder): Likewise.
22578 (execute_function_dump): Adjust.
22579 (execute_function_todo): Likewise.
22580 (clear_last_verified): Likewise.
22581 (verify_curr_properties): Likewise.
22582 (update_properties_after_pass): Likewise.
22583 (execute_pass_list_1): Split out from ...
22584 (execute_pass_list): ... here. Adjust.
22585 (execute_ipa_pass_list): Likewise.
22586 * cgraphunit.c (cgraph_add_new_function): Adjust.
22587 (analyze_function): Likewise.
22588 (expand_function): Likewise.
22589 * cgraph.c (release_function_body): Free dominance info
22590 here instead of asserting it was magically freed elsewhere.
22592 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22594 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22595 * configure: Regenerate.
22596 * config/sparc/sparc.opt (muser-mode): New option.
22597 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22599 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22600 * doc/invoke.texi (SPARC options): Document -muser-mode.
22602 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22604 * cselib.c (find_slot_memmode): Delete.
22605 (cselib_hasher): Change compare_type to a struct.
22606 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22608 (preserve_constants_and_equivs): Adjust for new compare_type.
22609 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22610 (wrap_constant): Delete.
22611 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22613 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22615 * doc/install.texi (Building with profile feedback): Remove
22618 2014-04-26 Tom de Vries <tom@codesourcery.com>
22620 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22623 2014-04-25 Cary Coutant <ccoutant@google.com>
22626 * dwarf2out.c (should_move_die_to_comdat): A type definition
22627 can contain a subprogram definition, but don't move it to a
22629 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22630 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22632 (clone_tree_hash): Rename to...
22633 (clone_tree_partial): ...this; change callers. Copy
22634 DW_TAG_subprogram DIEs as declarations.
22635 (copy_decls_walk): Don't copy children of a declaration into a
22638 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22641 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22644 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22646 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22647 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22649 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22652 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22654 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22656 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22658 PR tree-optimization/60930
22659 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22660 creating a multiply candidate by folding two constant
22661 multiplicands when the result overflows.
22663 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22665 PR tree-optimization/60960
22666 * tree-vect-generic.c (expand_vector_operation): Only call
22667 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22669 2014-04-25 Tom de Vries <tom@codesourcery.com>
22671 * expr.c (clobber_reg_mode): New function.
22672 * expr.h (clobber_reg): New function.
22674 2014-04-25 Tom de Vries <tom@codesourcery.com>
22676 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22679 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22680 Tom de Vries <tom@codesourcery.com>
22682 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22684 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22685 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22686 new argument to find_all_hard_reg_sets call.
22688 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22690 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22691 Use HOST_WIDE_INT_C for mask literal.
22692 (aarch_rev16_shleft_mask_imm_p): Likewise.
22694 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22697 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22699 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22701 PR preprocessor/56540
22702 * config/i386/i386-c.c (ix86_target_macros): Define
22703 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22705 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22707 * configure.ac (tga_func): Remove.
22708 (LIB_TLS_SPEC): Remove.
22709 * configure: Regenerate.
22710 * config.in: Regenerate.
22711 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22713 2014-04-25 Richard Biener <rguenther@suse.de>
22716 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22717 call stmt use/clobber sets during stmt walk instead of
22718 walking the possibly incomplete set of caller edges.
22720 2014-04-25 Richard Biener <rguenther@suse.de>
22723 * passes.c (apply_ipa_transforms): Inline into only caller ...
22724 (execute_one_pass): ... here. Properly bring in function
22725 bodies for nodes we want to apply IPA transforms to.
22727 2014-04-24 Cong Hou <congh@google.com>
22729 PR tree-optimization/60896
22730 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22731 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22732 (vect_mark_pattern_stmts): Set the def type of all statements in
22733 PATTERN_DEF_SEQ as vect_internal_def.
22735 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22737 * doc/extend.texi (PowerPC Built-in Functions): Document new
22738 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22739 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22741 * config/rs6000/predicates.md (const_0_to_3_operand): New
22742 predicate to match 0..3 integer constants.
22744 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22745 to support adding miscellaneous builtin functions.
22746 (BU_DFP_MISC_2): Likewise.
22747 (BU_P7_MISC_1): Likewise.
22748 (BU_P7_MISC_2): Likewise.
22749 (BU_P8V_MISC_3): Likewise.
22750 (BU_MISC_1): Likewise.
22751 (BU_MISC_2): Likewise.
22752 (DIVWE): Add extended divide builtin functions.
22753 (DIVWEO): Likewise.
22754 (DIVWEU): Likewise.
22755 (DIVWEUO): Likewise.
22757 (DIVDEO): Likewise.
22758 (DIVDEU): Likewise.
22759 (DIVDEUO): Likewise.
22760 (DXEX): Add decimal floating-point builtin functions.
22762 (DDEDPD): Likewise.
22763 (DDEDPDQ): Likewise.
22764 (DENBCD): Likewise.
22765 (DENBCDQ): Likewise.
22769 (DSCLIQ): Likewise.
22771 (DSCRIQ): Likewise.
22772 (CDTBCD): Add new BCD builtin functions.
22773 (CBCDTD): Likewise.
22774 (ADDG6S): Likewise.
22775 (BCDADD): Likewise.
22776 (BCDADD_LT): Likewise.
22777 (BCDADD_EQ): Likewise.
22778 (BCDADD_GT): Likewise.
22779 (BCDADD_OV): Likewise.
22780 (BCDSUB): Likewise.
22781 (BCDSUB_LT): Likewise.
22782 (BCDSUB_EQ): Likewise.
22783 (BCDSUB_GT): Likewise.
22784 (BCDSUB_OV): Likewise.
22785 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22786 (UNPACK_TD): Likewise.
22787 (PACK_TF): Likewise.
22788 (UNPACK_TF): Likewise.
22789 (UNPACK_TF_0): Likewise.
22790 (UNPACK_TF_1): Likewise.
22791 (PACK_V1TI): Likewise.
22792 (UNPACK_V1TI): Likewise.
22794 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22795 support for decimal floating point builtin functions.
22796 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22797 functions that take constant arguments.
22798 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22799 (rs6000_init_builtins): Setup long double, _Decimal64, and
22800 _Decimal128 types for new builtin functions.
22801 (builtin_function_type): Set the unsigned flags appropriately for
22802 the new builtin functions.
22803 (rs6000_opt_masks): Add support for decimal floating point builtin
22806 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22807 floating point builtin functions.
22808 (RS6000_BTM_COMMON): Likewise.
22809 (RS6000_BTI_long_double): Likewise.
22810 (RS6000_BTI_dfloat64): Likewise.
22811 (RS6000_BTI_dfloat128): Likewise.
22812 (long_double_type_internal_node): Likewise.
22813 (dfloat64_type_internal_node): Likewise.
22814 (dfloat128_type_internal_node): Likewise.
22816 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22817 2.07 bcd arithmetic instructions.
22818 (UNSPEC_BCDSUB): Likewise.
22819 (UNSPEC_BCD_OVERFLOW): Likewise.
22820 (UNSPEC_BCD_ADD_SUB): Likewise.
22821 (bcd_add_sub): Likewise.
22822 (BCD_TEST): Likewise.
22823 (bcd<bcd_add_sub>): Likewise.
22824 (bcd<bcd_add_sub>_test): Likewise.
22825 (bcd<bcd_add_sub>_test2): Likewise.
22826 (bcd<bcd_add_sub>_<code>): Likewise.
22827 (peephole2 for combined bcd ops): Likewise.
22829 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22830 decimal floating point builtin functions.
22831 (UNSPEC_DENBCD): Likewise.
22832 (UNSPEC_DXEX): Likewise.
22833 (UNSPEC_DIEX): Likewise.
22834 (UNSPEC_DSCLI): Likewise.
22835 (UNSPEC_DSCRI): Likewise.
22836 (D64_D128): Likewise.
22837 (dfp_suffix): Likewise.
22838 (dfp_ddedpd_<mode>): Likewise.
22839 (dfp_denbcd_<mode>): Likewise.
22840 (dfp_dxex_<mode>): Likewise.
22841 (dfp_diex_<mode>): Likewise.
22842 (dfp_dscli_<mode>): Likewise.
22843 (dfp_dscri_<mode>): Likewise.
22845 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22847 (UNSPEC_CDTBCD): Likewise.
22848 (UNSPEC_CBCDTD): Likewise.
22849 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22850 (UNSPEC_DIVEO): Likewise.
22851 (UNSPEC_DIVEU): Likewise.
22852 (UNSPEC_DIVEUO): Likewise.
22853 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22854 pack/unpack 128-bit types.
22855 (UNSPEC_PACK_128BIT): Likewise.
22856 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22857 (udiv<mode>3): Use idiv_ldiv mode attribute.
22858 (div<mode>3): Likewise.
22859 (addg6s): Add new BCD builtin functions.
22860 (cdtbcd): Likewise.
22861 (cbcdtd): Likewise.
22862 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22863 (div_extend): Likewise.
22864 (div<div_extend>_<mode>"): Likewise.
22865 (FP128_64): Add support for new builtin functions to pack/unpack
22867 (unpack<mode>): Likewise.
22868 (unpacktf_0): Likewise.
22869 (unpacktf_1): Likewise.
22870 (unpack<mode>_dm): Likewise.
22871 (unpack<mode>_nodm): Likewise.
22872 (pack<mode>): Likewise.
22873 (unpackv1ti): Likewise.
22874 (packv1ti): Likewise.
22876 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22878 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22881 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22883 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22884 * gimplify.c (omp_is_private): Change last argument's type to int.
22885 Only diagnose lastprivate if the simd argument is 1, only diagnose
22886 linear if the simd argument is 2.
22887 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22888 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22889 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22890 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22891 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22892 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22893 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22894 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22895 * tree-nested.c (convert_nonlocal_omp_clauses,
22896 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22898 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22901 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22904 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22906 * flag-types.h (enum ivar_visibility): Add.
22908 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22910 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22911 function * argument.
22913 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22915 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22917 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22918 Tom de Vries <tom@codesourcery.com>
22920 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22921 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22923 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22924 * emit-rtl.c (try_split): Same.
22926 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22927 Tom de Vries <tom@codesourcery.com>
22929 * common.opt (fuse-caller-save): New option.
22931 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22933 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22934 elements for big-endian.
22936 2014-04-24 Richard Biener <rguenther@suse.de>
22938 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22939 during TER and instead use the sepops interface for expanding
22940 non-GIMPLE_SINGLE_RHS.
22942 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22944 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22945 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22947 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22949 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22950 assembler 64-bit option.
22951 * configure: Regenerate.
22953 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22955 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22956 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22957 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22958 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22959 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22961 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22963 * config/aarch64/aarch64-builtins.c
22964 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22965 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22966 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22967 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22969 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22970 (Vrevsuff): New mode attribute.
22972 2014-04-24 Terry Guo <terry.guo@arm.com>
22974 * config/arm/arm.h (machine_function): Define variable
22975 after_arm_reorg here.
22976 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22977 (arm_split_constant): Update the way to access variable
22979 (arm_reorg): Ditto.
22980 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22982 2014-04-23 Tom de Vries <tom@codesourcery.com>
22984 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22986 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22988 * is-a.h: Update comments to reflect the following changes to the
22989 "pointerness" of the API, making the template parameter match the
22990 return type, allowing use of is-a.h with typedefs of pointers.
22991 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22992 that the return type matches the parameter to the is_a_helper.
22994 (dyn_cast): Likewise.
22996 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22997 pointer from the is-a.h API.
22999 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23000 (is_a_helper <cgraph_node *>::test): ...this, matching change to
23002 (is_a_helper <varpool_node>::test): Likewise, convert to...
23003 (is_a_helper <varpool_node *>::test): ...this.
23005 (varpool_first_variable): Update for removal of implicit pointer
23006 from the is-a.h API.
23007 (varpool_next_variable): Likewise.
23008 (varpool_first_static_initializer): Likewise.
23009 (varpool_next_static_initializer): Likewise.
23010 (varpool_first_defined_variable): Likewise.
23011 (varpool_next_defined_variable): Likewise.
23012 (cgraph_first_defined_function): Likewise.
23013 (cgraph_next_defined_function): Likewise.
23014 (cgraph_first_function): Likewise.
23015 (cgraph_next_function): Likewise.
23016 (cgraph_first_function_with_gimple_body): Likewise.
23017 (cgraph_next_function_with_gimple_body): Likewise.
23018 (cgraph_alias_target): Likewise.
23019 (varpool_alias_target): Likewise.
23020 (cgraph_function_or_thunk_node): Likewise.
23021 (varpool_variable_node): Likewise.
23022 (symtab_real_symbol_p): Likewise.
23023 * cgraphunit.c (referred_to_p): Likewise.
23024 (analyze_functions): Likewise.
23025 (handle_alias_pairs): Likewise.
23026 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23027 * gimple-ssa.h (gimple_vuse_op): Likewise.
23028 (gimple_vdef_op): Likewise.
23029 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23030 * gimple.c (gimple_build_asm_1): Likewise.
23031 (gimple_build_try): Likewise.
23032 (gimple_build_resx): Likewise.
23033 (gimple_build_eh_dispatch): Likewise.
23034 (gimple_build_omp_for): Likewise.
23035 (gimple_omp_for_set_clauses): Likewise.
23037 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23038 (is_a_helper <gimple_statement_asm *>::test): ...this.
23039 (is_a_helper <gimple_statement_bind>::test): Convert to...
23040 (is_a_helper <gimple_statement_bind *>::test): ...this.
23041 (is_a_helper <gimple_statement_call>::test): Convert to...
23042 (is_a_helper <gimple_statement_call *>::test): ...this.
23043 (is_a_helper <gimple_statement_catch>::test): Convert to...
23044 (is_a_helper <gimple_statement_catch *>::test): ...this.
23045 (is_a_helper <gimple_statement_resx>::test): Convert to...
23046 (is_a_helper <gimple_statement_resx *>::test): ...this.
23047 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23048 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23049 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23050 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23051 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23052 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23053 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23054 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23055 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23056 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23057 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23058 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23059 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23060 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23061 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23062 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23063 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23064 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23065 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23066 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23067 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23068 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23069 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23070 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23071 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23072 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23073 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23074 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23075 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23076 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23077 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23078 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23079 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23080 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23081 (is_a_helper <gimple_statement_phi>::test): Convert to...
23082 (is_a_helper <gimple_statement_phi *>::test): ...this.
23083 (is_a_helper <gimple_statement_transaction>::test): Convert to...
23084 (is_a_helper <gimple_statement_transaction *>::test): ...this.
23085 (is_a_helper <gimple_statement_try>::test): Convert to...
23086 (is_a_helper <gimple_statement_try *>::test): ...this.
23087 (is_a_helper <gimple_statement_wce>::test): Convert to...
23088 (is_a_helper <gimple_statement_wce *>::test): ...this.
23089 (is_a_helper <const gimple_statement_asm>::test): Convert to...
23090 (is_a_helper <const gimple_statement_asm *>::test): ...this.
23091 (is_a_helper <const gimple_statement_bind>::test): Convert to...
23092 (is_a_helper <const gimple_statement_bind *>::test): ...this.
23093 (is_a_helper <const gimple_statement_call>::test): Convert to...
23094 (is_a_helper <const gimple_statement_call *>::test): ...this.
23095 (is_a_helper <const gimple_statement_catch>::test): Convert to...
23096 (is_a_helper <const gimple_statement_catch *>::test): ...this.
23097 (is_a_helper <const gimple_statement_resx>::test): Convert to...
23098 (is_a_helper <const gimple_statement_resx *>::test): ...this.
23099 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23100 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23101 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23102 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23103 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23105 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23107 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23109 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23111 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23112 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23113 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23115 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23116 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23118 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23119 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23120 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23121 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23122 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23123 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23125 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23126 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23127 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23128 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23130 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23131 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23132 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23133 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23134 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23135 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23136 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23137 (is_a_helper <const gimple_statement_phi>::test): Convert to...
23138 (is_a_helper <const gimple_statement_phi *>::test): ...this.
23139 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23140 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23141 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23142 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23143 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23144 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23145 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23147 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23149 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23150 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23152 (gimple_use_ops): Update for removal of implicit pointer from the
23154 (gimple_set_use_ops): Likewise.
23155 (gimple_vuse): Likewise.
23156 (gimple_vdef): Likewise.
23157 (gimple_vuse_ptr): Likewise.
23158 (gimple_vdef_ptr): Likewise.
23159 (gimple_set_vuse): Likewise.
23160 (gimple_set_vdef): Likewise.
23161 (gimple_omp_return_set_lhs): Likewise.
23162 (gimple_omp_return_lhs): Likewise.
23163 (gimple_omp_return_lhs_ptr): Likewise.
23164 (gimple_call_fntype): Likewise.
23165 (gimple_call_set_fntype): Likewise.
23166 (gimple_call_set_internal_fn): Likewise.
23167 (gimple_call_use_set): Likewise.
23168 (gimple_call_clobber_set): Likewise.
23169 (gimple_bind_vars): Likewise.
23170 (gimple_bind_set_vars): Likewise.
23171 (gimple_bind_body_ptr): Likewise.
23172 (gimple_bind_set_body): Likewise.
23173 (gimple_bind_add_stmt): Likewise.
23174 (gimple_bind_block): Likewise.
23175 (gimple_bind_set_block): Likewise.
23176 (gimple_asm_ninputs): Likewise.
23177 (gimple_asm_noutputs): Likewise.
23178 (gimple_asm_nclobbers): Likewise.
23179 (gimple_asm_nlabels): Likewise.
23180 (gimple_asm_input_op): Likewise.
23181 (gimple_asm_input_op_ptr): Likewise.
23182 (gimple_asm_output_op): Likewise.
23183 (gimple_asm_output_op_ptr): Likewise.
23184 (gimple_asm_set_output_op): Likewise.
23185 (gimple_asm_clobber_op): Likewise.
23186 (gimple_asm_set_clobber_op): Likewise.
23187 (gimple_asm_label_op): Likewise.
23188 (gimple_asm_set_label_op): Likewise.
23189 (gimple_asm_string): Likewise.
23190 (gimple_catch_types): Likewise.
23191 (gimple_catch_types_ptr): Likewise.
23192 (gimple_catch_handler_ptr): Likewise.
23193 (gimple_catch_set_types): Likewise.
23194 (gimple_catch_set_handler): Likewise.
23195 (gimple_eh_filter_types): Likewise.
23196 (gimple_eh_filter_types_ptr): Likewise.
23197 (gimple_eh_filter_failure_ptr): Likewise.
23198 (gimple_eh_filter_set_types): Likewise.
23199 (gimple_eh_filter_set_failure): Likewise.
23200 (gimple_eh_must_not_throw_fndecl): Likewise.
23201 (gimple_eh_must_not_throw_set_fndecl): Likewise.
23202 (gimple_eh_else_n_body_ptr): Likewise.
23203 (gimple_eh_else_e_body_ptr): Likewise.
23204 (gimple_eh_else_set_n_body): Likewise.
23205 (gimple_eh_else_set_e_body): Likewise.
23206 (gimple_try_eval_ptr): Likewise.
23207 (gimple_try_cleanup_ptr): Likewise.
23208 (gimple_try_set_eval): Likewise.
23209 (gimple_try_set_cleanup): Likewise.
23210 (gimple_wce_cleanup_ptr): Likewise.
23211 (gimple_wce_set_cleanup): Likewise.
23212 (gimple_phi_capacity): Likewise.
23213 (gimple_phi_num_args): Likewise.
23214 (gimple_phi_result): Likewise.
23215 (gimple_phi_result_ptr): Likewise.
23216 (gimple_phi_set_result): Likewise.
23217 (gimple_phi_arg): Likewise.
23218 (gimple_phi_set_arg): Likewise.
23219 (gimple_resx_region): Likewise.
23220 (gimple_resx_set_region): Likewise.
23221 (gimple_eh_dispatch_region): Likewise.
23222 (gimple_eh_dispatch_set_region): Likewise.
23223 (gimple_omp_critical_name): Likewise.
23224 (gimple_omp_critical_name_ptr): Likewise.
23225 (gimple_omp_critical_set_name): Likewise.
23226 (gimple_omp_for_clauses): Likewise.
23227 (gimple_omp_for_clauses_ptr): Likewise.
23228 (gimple_omp_for_set_clauses): Likewise.
23229 (gimple_omp_for_collapse): Likewise.
23230 (gimple_omp_for_index): Likewise.
23231 (gimple_omp_for_index_ptr): Likewise.
23232 (gimple_omp_for_set_index): Likewise.
23233 (gimple_omp_for_initial): Likewise.
23234 (gimple_omp_for_initial_ptr): Likewise.
23235 (gimple_omp_for_set_initial): Likewise.
23236 (gimple_omp_for_final): Likewise.
23237 (gimple_omp_for_final_ptr): Likewise.
23238 (gimple_omp_for_set_final): Likewise.
23239 (gimple_omp_for_incr): Likewise.
23240 (gimple_omp_for_incr_ptr): Likewise.
23241 (gimple_omp_for_set_incr): Likewise.
23242 (gimple_omp_for_pre_body_ptr): Likewise.
23243 (gimple_omp_for_set_pre_body): Likewise.
23244 (gimple_omp_parallel_clauses): Likewise.
23245 (gimple_omp_parallel_clauses_ptr): Likewise.
23246 (gimple_omp_parallel_set_clauses): Likewise.
23247 (gimple_omp_parallel_child_fn): Likewise.
23248 (gimple_omp_parallel_child_fn_ptr): Likewise.
23249 (gimple_omp_parallel_set_child_fn): Likewise.
23250 (gimple_omp_parallel_data_arg): Likewise.
23251 (gimple_omp_parallel_data_arg_ptr): Likewise.
23252 (gimple_omp_parallel_set_data_arg): Likewise.
23253 (gimple_omp_task_clauses): Likewise.
23254 (gimple_omp_task_clauses_ptr): Likewise.
23255 (gimple_omp_task_set_clauses): Likewise.
23256 (gimple_omp_task_child_fn): Likewise.
23257 (gimple_omp_task_child_fn_ptr): Likewise.
23258 (gimple_omp_task_set_child_fn): Likewise.
23259 (gimple_omp_task_data_arg): Likewise.
23260 (gimple_omp_task_data_arg_ptr): Likewise.
23261 (gimple_omp_task_set_data_arg): Likewise.
23262 (gimple_omp_taskreg_clauses): Likewise.
23263 (gimple_omp_taskreg_clauses_ptr): Likewise.
23264 (gimple_omp_taskreg_set_clauses): Likewise.
23265 (gimple_omp_taskreg_child_fn): Likewise.
23266 (gimple_omp_taskreg_child_fn_ptr): Likewise.
23267 (gimple_omp_taskreg_set_child_fn): Likewise.
23268 (gimple_omp_taskreg_data_arg): Likewise.
23269 (gimple_omp_taskreg_data_arg_ptr): Likewise.
23270 (gimple_omp_taskreg_set_data_arg): Likewise.
23271 (gimple_omp_task_copy_fn): Likewise.
23272 (gimple_omp_task_copy_fn_ptr): Likewise.
23273 (gimple_omp_task_set_copy_fn): Likewise.
23274 (gimple_omp_task_arg_size): Likewise.
23275 (gimple_omp_task_arg_size_ptr): Likewise.
23276 (gimple_omp_task_set_arg_size): Likewise.
23277 (gimple_omp_task_arg_align): Likewise.
23278 (gimple_omp_task_arg_align_ptr): Likewise.
23279 (gimple_omp_task_set_arg_align): Likewise.
23280 (gimple_omp_single_clauses): Likewise.
23281 (gimple_omp_single_clauses_ptr): Likewise.
23282 (gimple_omp_single_set_clauses): Likewise.
23283 (gimple_omp_target_clauses): Likewise.
23284 (gimple_omp_target_clauses_ptr): Likewise.
23285 (gimple_omp_target_set_clauses): Likewise.
23286 (gimple_omp_target_child_fn): Likewise.
23287 (gimple_omp_target_child_fn_ptr): Likewise.
23288 (gimple_omp_target_set_child_fn): Likewise.
23289 (gimple_omp_target_data_arg): Likewise.
23290 (gimple_omp_target_data_arg_ptr): Likewise.
23291 (gimple_omp_target_set_data_arg): Likewise.
23292 (gimple_omp_teams_clauses): Likewise.
23293 (gimple_omp_teams_clauses_ptr): Likewise.
23294 (gimple_omp_teams_set_clauses): Likewise.
23295 (gimple_omp_sections_clauses): Likewise.
23296 (gimple_omp_sections_clauses_ptr): Likewise.
23297 (gimple_omp_sections_set_clauses): Likewise.
23298 (gimple_omp_sections_control): Likewise.
23299 (gimple_omp_sections_control_ptr): Likewise.
23300 (gimple_omp_sections_set_control): Likewise.
23301 (gimple_omp_for_set_cond): Likewise.
23302 (gimple_omp_for_cond): Likewise.
23303 (gimple_omp_atomic_store_set_val): Likewise.
23304 (gimple_omp_atomic_store_val): Likewise.
23305 (gimple_omp_atomic_store_val_ptr): Likewise.
23306 (gimple_omp_atomic_load_set_lhs): Likewise.
23307 (gimple_omp_atomic_load_lhs): Likewise.
23308 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23309 (gimple_omp_atomic_load_set_rhs): Likewise.
23310 (gimple_omp_atomic_load_rhs): Likewise.
23311 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23312 (gimple_omp_continue_control_def): Likewise.
23313 (gimple_omp_continue_control_def_ptr): Likewise.
23314 (gimple_omp_continue_set_control_def): Likewise.
23315 (gimple_omp_continue_control_use): Likewise.
23316 (gimple_omp_continue_control_use_ptr): Likewise.
23317 (gimple_omp_continue_set_control_use): Likewise.
23318 (gimple_transaction_body_ptr): Likewise.
23319 (gimple_transaction_label): Likewise.
23320 (gimple_transaction_label_ptr): Likewise.
23321 (gimple_transaction_set_body): Likewise.
23322 (gimple_transaction_set_label): Likewise.
23324 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23325 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23326 * ipa-ref.c (ipa_record_reference): Likewise.
23327 * ipa-reference.c (analyze_function): Likewise.
23328 (ipa_reference_write_optimization_summary): Likewise.
23329 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23330 (address_taken_from_non_vtable_p): Likewise.
23331 (comdat_can_be_unshared_p_1): Likewise.
23332 * lto-cgraph.c (lto_output_ref): Likewise.
23333 (add_references): Likewise.
23334 (compute_ltrans_boundary): Likewise.
23335 (output_symtab): Likewise.
23336 (input_ref): Likewise.
23337 (input_cgraph_1): Likewise.
23338 (output_cgraph_opt_summary): Likewise.
23339 * lto-streamer-out.c (lto_output): Likewise.
23340 (output_symbol_p): Likewise.
23341 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23342 (lsei_start_function_in_partition): Likewise.
23343 (lsei_next_variable_in_partition): Likewise.
23344 (lsei_start_variable_in_partition): Likewise.
23345 * symtab.c (insert_to_assembler_name_hash): Likewise.
23346 (unlink_from_assembler_name_hash): Likewise.
23347 (symtab_unregister_node): Likewise.
23348 (symtab_remove_node): Likewise.
23349 (dump_symtab_node): Likewise.
23350 (verify_symtab_base): Likewise.
23351 (verify_symtab_node): Likewise.
23352 (symtab_make_decl_local): Likewise.
23353 (symtab_alias_ultimate_target): Likewise.
23354 (symtab_resolve_alias): Likewise.
23355 (symtab_get_symbol_partitioning_class): Likewise.
23356 * tree-phinodes.c (allocate_phi_node): Likewise.
23357 (reserve_phi_args_for_new_edge): Likewise.
23358 (remove_phi_args): Likewise.
23359 * varpool.c (varpool_node_for_asm): Likewise.
23360 (varpool_remove_unreferenced_decls): Likewise.
23362 2014-04-23 Jeff Law <law@redhat.com>
23364 PR tree-optimization/60902
23365 * tree-ssa-threadedge.c
23366 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23367 invalidate outputs from statements that do not produce useful
23368 outputs for threading.
23370 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23372 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23373 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23374 machine descriptions for Stack Smashing Protector.
23376 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23378 * aarch64.md (<optab>_rol<mode>3): New pattern.
23379 (<optab>_rolsi3_uxtw): Likewise.
23380 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23382 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23384 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23385 (arm_cortex_a12_tune): Likewise.
23387 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23389 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23391 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23393 * config/arm/arm.md (arm_rev16si2): New pattern.
23394 (arm_rev16si2_alt): Likewise.
23395 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23397 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23399 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23400 (rev16<mode>2_alt): Likewise.
23401 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23402 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23403 (aarch_rev16_shleft_mask_imm_p): Likewise.
23404 (aarch_rev16_p_1): Likewise.
23405 (aarch_rev16_p): Likewise.
23406 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23407 (aarch_rev16_shright_mask_imm_p): Likewise.
23408 (aarch_rev16_shleft_mask_imm_p): Likewise.
23410 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23412 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23413 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23415 (cortex_a53_extra_costs): Likewise.
23416 (cortex_a57_extra_costs): Likewise.
23417 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23418 (cortexa7_extra_costs): Likewise.
23419 (cortexa8_extra_costs): Likewise.
23420 (cortexa12_extra_costs): Likewise.
23421 (cortexa15_extra_costs): Likewise.
23422 (v7m_extra_costs): Likewise.
23423 (arm_new_rtx_costs): Handle BSWAP.
23425 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23427 * config/arm/arm.c (cortexa8_extra_costs): New table.
23428 (arm_cortex_a8_tune): New tuning struct.
23429 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23431 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23433 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23435 2014-04-23 Richard Biener <rguenther@suse.de>
23437 * Makefile.in (OBJS): Remove loop-unswitch.o.
23438 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23439 * passes.def (pass_rtl_unswitch): Likewise.
23440 * loop-init.c (gate_rtl_unswitch): Likewise.
23441 (rtl_unswitch): Likewise.
23442 (pass_data_rtl_unswitch): Likewise.
23443 (pass_rtl_unswitch): Likewise.
23444 (make_pass_rtl_unswitch): Likewise.
23445 * rtl.h (reversed_condition): Likewise.
23446 (compare_and_jump_seq): Likewise.
23447 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23449 * loop-unroll.c (compare_and_jump_seq): Likewise.
23451 2014-04-23 Richard Biener <rguenther@suse.de>
23453 PR tree-optimization/60903
23454 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23455 commented code block.
23456 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23457 loop flags to newly created BBs and edges.
23459 2014-04-23 Nick Clifton <nickc@redhat.com>
23461 * config/msp430/msp430.c (msp430_handle_option): Move function
23463 (msp430_option_override): Simplify mcu and mcpu option handling.
23464 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23465 support for -mhwmult command line option.
23466 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23467 -mhwmult command line option.
23468 (msp430_hwmult_enabled): Delete.
23469 (msp43o_output_labelref): Add support for -mhwmult command line option.
23470 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23471 (umulsidi3): Likewise.
23472 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23473 (mcpu, mlarge, msmall): Likewise.
23474 (mhwmult): New option.
23475 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23477 (msp430_is_f5_mcu): Remove prototype.
23478 (msp430_use_f5_series_hwmult): Add prototype.
23479 * config/msp430/msp430-opts.h: New file.
23480 * common/config/msp430: New directory.
23481 * common/config/msp430/msp430-common.c: New file.
23482 * config.gcc (msp430): Remove target_has_targetm_common.
23483 * doc/invoke.texi: Document -mhwmult command line option.
23485 2014-04-23 Nick Clifton <nickc@redhat.com>
23487 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23488 default-manifest.o if it can be found in the search path.
23489 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23491 2014-04-23 Terry Guo <terry.guo@arm.com>
23493 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23495 2014-04-23 Richard Biener <rguenther@suse.de>
23497 PR middle-end/60895
23498 * tree-inline.c (declare_return_variable): Use mark_addressable.
23500 2014-04-23 Richard Biener <rguenther@suse.de>
23502 PR middle-end/60891
23503 * loop-init.c (loop_optimizer_init): Make sure to apply
23504 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23506 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23509 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23511 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23512 if flag_sanitize_undefined_trap_on_error.
23513 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23514 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23515 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23516 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23517 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23518 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23519 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23520 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23521 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23522 * ubsan.c (ubsan_instrument_unreachable): Return
23523 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23524 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23525 if flag_sanitize_undefined_trap_on_error and
23526 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23527 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23528 instrument_bool_enum_load): Emit __builtin_trap () if
23529 flag_sanitize_undefined_trap_on_error and
23530 __builtin_handle_*_abort () if !flag_sanitize_recover.
23531 * doc/invoke.texi (-fsanitize-recover,
23532 -fsanitize-undefined-trap-on-error): Document.
23534 2014-04-22 Christian Bruel <christian.bruel@st.com>
23536 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23537 Force immediates to SImode.
23539 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23541 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23542 (lroundsfsi2): New.
23543 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23544 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23545 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23546 (nios2_fpu_insn): Add entry for round.
23547 (N2FPU_NO_ERRNO_P): Define.
23548 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23550 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23552 2014-04-22 Richard Henderson <rth@redhat.com>
23554 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23555 (add<GPI>3_compare0): Remove leading * from name.
23556 (add<GPI>3_carryin): Likewise.
23557 (sub<GPI>3_compare0): Likewise.
23558 (sub<GPI>3_carryin): Likewise.
23559 (<su_optab>mulditi3): New expander.
23560 (multi3): New expander.
23561 (madd<GPI>): Remove leading * from name.
23563 2014-04-22 Martin Jambor <mjambor@suse.cz>
23565 * cgraphclones.c (cgraph_function_versioning): Copy
23566 ipa_transforms_to_apply instead of asserting it is empty.
23568 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23571 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23572 on count_exp to get mode.
23574 2014-04-22 Andrew Pinski <apinski@cavium.com>
23576 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23577 Handle TLS for ILP32.
23578 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23579 (tlsie_small_<mode>): this and handle PTR.
23580 (tlsie_small_sidi): New pattern.
23581 (tlsle_small): Change to an expand to handle ILP32.
23582 (tlsle_small_<mode>): New pattern.
23583 (tlsdesc_small): Rename to ...
23584 (tlsdesc_small_<mode>): this and handle PTR.
23586 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23588 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23590 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23592 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23593 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23594 (aarch64_types_signed_poly_qualifiers): Likewise.
23595 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23596 (aarch64_types_poly_signed_qualifiers): Likewise.
23597 (TYPES_REINTERP_SS): Type macro added.
23598 (TYPES_REINTERP_SU): Likewise.
23599 (TYPES_REINTERP_SP): Likewise.
23600 (TYPES_REINTERP_US): Likewise.
23601 (TYPES_REINTERP_PS): Likewise.
23602 (aarch64_fold_builtin): New expression folding added.
23603 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23604 Declarations removed.
23605 (REINTERP_SS): Declarations added.
23606 (REINTERP_US): Likewise.
23607 (REINTERP_PS): Likewise.
23608 (REINTERP_SU): Likewise.
23609 (REINTERP_SP): Likewise.
23610 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23611 (vreinterpretq_p8_f64): Likewise.
23612 (vreinterpret_p16_f64): Likewise.
23613 (vreinterpretq_p16_f64): Likewise.
23614 (vreinterpret_f32_f64): Likewise.
23615 (vreinterpretq_f32_f64): Likewise.
23616 (vreinterpret_f64_f32): Likewise.
23617 (vreinterpret_f64_p8): Likewise.
23618 (vreinterpret_f64_p16): Likewise.
23619 (vreinterpret_f64_s8): Likewise.
23620 (vreinterpret_f64_s16): Likewise.
23621 (vreinterpret_f64_s32): Likewise.
23622 (vreinterpret_f64_s64): Likewise.
23623 (vreinterpret_f64_u8): Likewise.
23624 (vreinterpret_f64_u16): Likewise.
23625 (vreinterpret_f64_u32): Likewise.
23626 (vreinterpret_f64_u64): Likewise.
23627 (vreinterpretq_f64_f32): Likewise.
23628 (vreinterpretq_f64_p8): Likewise.
23629 (vreinterpretq_f64_p16): Likewise.
23630 (vreinterpretq_f64_s8): Likewise.
23631 (vreinterpretq_f64_s16): Likewise.
23632 (vreinterpretq_f64_s32): Likewise.
23633 (vreinterpretq_f64_s64): Likewise.
23634 (vreinterpretq_f64_u8): Likewise.
23635 (vreinterpretq_f64_u16): Likewise.
23636 (vreinterpretq_f64_u32): Likewise.
23637 (vreinterpretq_f64_u64): Likewise.
23638 (vreinterpret_s64_f64): Likewise.
23639 (vreinterpretq_s64_f64): Likewise.
23640 (vreinterpret_u64_f64): Likewise.
23641 (vreinterpretq_u64_f64): Likewise.
23642 (vreinterpret_s8_f64): Likewise.
23643 (vreinterpretq_s8_f64): Likewise.
23644 (vreinterpret_s16_f64): Likewise.
23645 (vreinterpretq_s16_f64): Likewise.
23646 (vreinterpret_s32_f64): Likewise.
23647 (vreinterpretq_s32_f64): Likewise.
23648 (vreinterpret_u8_f64): Likewise.
23649 (vreinterpretq_u8_f64): Likewise.
23650 (vreinterpret_u16_f64): Likewise.
23651 (vreinterpretq_u16_f64): Likewise.
23652 (vreinterpret_u32_f64): Likewise.
23653 (vreinterpretq_u32_f64): Likewise.
23655 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23657 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23658 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23659 (vreinterpret_p8_s8): Likewise.
23660 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23661 (vreinterpret_p8_s16): Likewise.
23662 (vreinterpret_p8_s32): Likewise.
23663 (vreinterpret_p8_s64): Likewise.
23664 (vreinterpret_p8_f32): Likewise.
23665 (vreinterpret_p8_u8): Likewise.
23666 (vreinterpret_p8_u16): Likewise.
23667 (vreinterpret_p8_u32): Likewise.
23668 (vreinterpret_p8_u64): Likewise.
23669 (vreinterpret_p8_p16): Likewise.
23670 (vreinterpretq_p8_s8): Likewise.
23671 (vreinterpretq_p8_s16): Likewise.
23672 (vreinterpretq_p8_s32): Likewise.
23673 (vreinterpretq_p8_s64): Likewise.
23674 (vreinterpretq_p8_f32): Likewise.
23675 (vreinterpretq_p8_u8): Likewise.
23676 (vreinterpretq_p8_u16): Likewise.
23677 (vreinterpretq_p8_u32): Likewise.
23678 (vreinterpretq_p8_u64): Likewise.
23679 (vreinterpretq_p8_p16): Likewise.
23680 (vreinterpret_p16_s8): Likewise.
23681 (vreinterpret_p16_s16): Likewise.
23682 (vreinterpret_p16_s32): Likewise.
23683 (vreinterpret_p16_s64): Likewise.
23684 (vreinterpret_p16_f32): Likewise.
23685 (vreinterpret_p16_u8): Likewise.
23686 (vreinterpret_p16_u16): Likewise.
23687 (vreinterpret_p16_u32): Likewise.
23688 (vreinterpret_p16_u64): Likewise.
23689 (vreinterpret_p16_p8): Likewise.
23690 (vreinterpretq_p16_s8): Likewise.
23691 (vreinterpretq_p16_s16): Likewise.
23692 (vreinterpretq_p16_s32): Likewise.
23693 (vreinterpretq_p16_s64): Likewise.
23694 (vreinterpretq_p16_f32): Likewise.
23695 (vreinterpretq_p16_u8): Likewise.
23696 (vreinterpretq_p16_u16): Likewise.
23697 (vreinterpretq_p16_u32): Likewise.
23698 (vreinterpretq_p16_u64): Likewise.
23699 (vreinterpretq_p16_p8): Likewise.
23700 (vreinterpret_f32_s8): Likewise.
23701 (vreinterpret_f32_s16): Likewise.
23702 (vreinterpret_f32_s32): Likewise.
23703 (vreinterpret_f32_s64): Likewise.
23704 (vreinterpret_f32_u8): Likewise.
23705 (vreinterpret_f32_u16): Likewise.
23706 (vreinterpret_f32_u32): Likewise.
23707 (vreinterpret_f32_u64): Likewise.
23708 (vreinterpret_f32_p8): Likewise.
23709 (vreinterpret_f32_p16): Likewise.
23710 (vreinterpretq_f32_s8): Likewise.
23711 (vreinterpretq_f32_s16): Likewise.
23712 (vreinterpretq_f32_s32): Likewise.
23713 (vreinterpretq_f32_s64): Likewise.
23714 (vreinterpretq_f32_u8): Likewise.
23715 (vreinterpretq_f32_u16): Likewise.
23716 (vreinterpretq_f32_u32): Likewise.
23717 (vreinterpretq_f32_u64): Likewise.
23718 (vreinterpretq_f32_p8): Likewise.
23719 (vreinterpretq_f32_p16): Likewise.
23720 (vreinterpret_s64_s8): Likewise.
23721 (vreinterpret_s64_s16): Likewise.
23722 (vreinterpret_s64_s32): Likewise.
23723 (vreinterpret_s64_f32): Likewise.
23724 (vreinterpret_s64_u8): Likewise.
23725 (vreinterpret_s64_u16): Likewise.
23726 (vreinterpret_s64_u32): Likewise.
23727 (vreinterpret_s64_u64): Likewise.
23728 (vreinterpret_s64_p8): Likewise.
23729 (vreinterpret_s64_p16): Likewise.
23730 (vreinterpretq_s64_s8): Likewise.
23731 (vreinterpretq_s64_s16): Likewise.
23732 (vreinterpretq_s64_s32): Likewise.
23733 (vreinterpretq_s64_f32): Likewise.
23734 (vreinterpretq_s64_u8): Likewise.
23735 (vreinterpretq_s64_u16): Likewise.
23736 (vreinterpretq_s64_u32): Likewise.
23737 (vreinterpretq_s64_u64): Likewise.
23738 (vreinterpretq_s64_p8): Likewise.
23739 (vreinterpretq_s64_p16): Likewise.
23740 (vreinterpret_u64_s8): Likewise.
23741 (vreinterpret_u64_s16): Likewise.
23742 (vreinterpret_u64_s32): Likewise.
23743 (vreinterpret_u64_s64): Likewise.
23744 (vreinterpret_u64_f32): Likewise.
23745 (vreinterpret_u64_u8): Likewise.
23746 (vreinterpret_u64_u16): Likewise.
23747 (vreinterpret_u64_u32): Likewise.
23748 (vreinterpret_u64_p8): Likewise.
23749 (vreinterpret_u64_p16): Likewise.
23750 (vreinterpretq_u64_s8): Likewise.
23751 (vreinterpretq_u64_s16): Likewise.
23752 (vreinterpretq_u64_s32): Likewise.
23753 (vreinterpretq_u64_s64): Likewise.
23754 (vreinterpretq_u64_f32): Likewise.
23755 (vreinterpretq_u64_u8): Likewise.
23756 (vreinterpretq_u64_u16): Likewise.
23757 (vreinterpretq_u64_u32): Likewise.
23758 (vreinterpretq_u64_p8): Likewise.
23759 (vreinterpretq_u64_p16): Likewise.
23760 (vreinterpret_s8_s16): Likewise.
23761 (vreinterpret_s8_s32): Likewise.
23762 (vreinterpret_s8_s64): Likewise.
23763 (vreinterpret_s8_f32): Likewise.
23764 (vreinterpret_s8_u8): Likewise.
23765 (vreinterpret_s8_u16): Likewise.
23766 (vreinterpret_s8_u32): Likewise.
23767 (vreinterpret_s8_u64): Likewise.
23768 (vreinterpret_s8_p8): Likewise.
23769 (vreinterpret_s8_p16): Likewise.
23770 (vreinterpretq_s8_s16): Likewise.
23771 (vreinterpretq_s8_s32): Likewise.
23772 (vreinterpretq_s8_s64): Likewise.
23773 (vreinterpretq_s8_f32): Likewise.
23774 (vreinterpretq_s8_u8): Likewise.
23775 (vreinterpretq_s8_u16): Likewise.
23776 (vreinterpretq_s8_u32): Likewise.
23777 (vreinterpretq_s8_u64): Likewise.
23778 (vreinterpretq_s8_p8): Likewise.
23779 (vreinterpretq_s8_p16): Likewise.
23780 (vreinterpret_s16_s8): Likewise.
23781 (vreinterpret_s16_s32): Likewise.
23782 (vreinterpret_s16_s64): Likewise.
23783 (vreinterpret_s16_f32): Likewise.
23784 (vreinterpret_s16_u8): Likewise.
23785 (vreinterpret_s16_u16): Likewise.
23786 (vreinterpret_s16_u32): Likewise.
23787 (vreinterpret_s16_u64): Likewise.
23788 (vreinterpret_s16_p8): Likewise.
23789 (vreinterpret_s16_p16): Likewise.
23790 (vreinterpretq_s16_s8): Likewise.
23791 (vreinterpretq_s16_s32): Likewise.
23792 (vreinterpretq_s16_s64): Likewise.
23793 (vreinterpretq_s16_f32): Likewise.
23794 (vreinterpretq_s16_u8): Likewise.
23795 (vreinterpretq_s16_u16): Likewise.
23796 (vreinterpretq_s16_u32): Likewise.
23797 (vreinterpretq_s16_u64): Likewise.
23798 (vreinterpretq_s16_p8): Likewise.
23799 (vreinterpretq_s16_p16): Likewise.
23800 (vreinterpret_s32_s8): Likewise.
23801 (vreinterpret_s32_s16): Likewise.
23802 (vreinterpret_s32_s64): Likewise.
23803 (vreinterpret_s32_f32): Likewise.
23804 (vreinterpret_s32_u8): Likewise.
23805 (vreinterpret_s32_u16): Likewise.
23806 (vreinterpret_s32_u32): Likewise.
23807 (vreinterpret_s32_u64): Likewise.
23808 (vreinterpret_s32_p8): Likewise.
23809 (vreinterpret_s32_p16): Likewise.
23810 (vreinterpretq_s32_s8): Likewise.
23811 (vreinterpretq_s32_s16): Likewise.
23812 (vreinterpretq_s32_s64): Likewise.
23813 (vreinterpretq_s32_f32): Likewise.
23814 (vreinterpretq_s32_u8): Likewise.
23815 (vreinterpretq_s32_u16): Likewise.
23816 (vreinterpretq_s32_u32): Likewise.
23817 (vreinterpretq_s32_u64): Likewise.
23818 (vreinterpretq_s32_p8): Likewise.
23819 (vreinterpretq_s32_p16): Likewise.
23820 (vreinterpret_u8_s8): Likewise.
23821 (vreinterpret_u8_s16): Likewise.
23822 (vreinterpret_u8_s32): Likewise.
23823 (vreinterpret_u8_s64): Likewise.
23824 (vreinterpret_u8_f32): Likewise.
23825 (vreinterpret_u8_u16): Likewise.
23826 (vreinterpret_u8_u32): Likewise.
23827 (vreinterpret_u8_u64): Likewise.
23828 (vreinterpret_u8_p8): Likewise.
23829 (vreinterpret_u8_p16): Likewise.
23830 (vreinterpretq_u8_s8): Likewise.
23831 (vreinterpretq_u8_s16): Likewise.
23832 (vreinterpretq_u8_s32): Likewise.
23833 (vreinterpretq_u8_s64): Likewise.
23834 (vreinterpretq_u8_f32): Likewise.
23835 (vreinterpretq_u8_u16): Likewise.
23836 (vreinterpretq_u8_u32): Likewise.
23837 (vreinterpretq_u8_u64): Likewise.
23838 (vreinterpretq_u8_p8): Likewise.
23839 (vreinterpretq_u8_p16): Likewise.
23840 (vreinterpret_u16_s8): Likewise.
23841 (vreinterpret_u16_s16): Likewise.
23842 (vreinterpret_u16_s32): Likewise.
23843 (vreinterpret_u16_s64): Likewise.
23844 (vreinterpret_u16_f32): Likewise.
23845 (vreinterpret_u16_u8): Likewise.
23846 (vreinterpret_u16_u32): Likewise.
23847 (vreinterpret_u16_u64): Likewise.
23848 (vreinterpret_u16_p8): Likewise.
23849 (vreinterpret_u16_p16): Likewise.
23850 (vreinterpretq_u16_s8): Likewise.
23851 (vreinterpretq_u16_s16): Likewise.
23852 (vreinterpretq_u16_s32): Likewise.
23853 (vreinterpretq_u16_s64): Likewise.
23854 (vreinterpretq_u16_f32): Likewise.
23855 (vreinterpretq_u16_u8): Likewise.
23856 (vreinterpretq_u16_u32): Likewise.
23857 (vreinterpretq_u16_u64): Likewise.
23858 (vreinterpretq_u16_p8): Likewise.
23859 (vreinterpretq_u16_p16): Likewise.
23860 (vreinterpret_u32_s8): Likewise.
23861 (vreinterpret_u32_s16): Likewise.
23862 (vreinterpret_u32_s32): Likewise.
23863 (vreinterpret_u32_s64): Likewise.
23864 (vreinterpret_u32_f32): Likewise.
23865 (vreinterpret_u32_u8): Likewise.
23866 (vreinterpret_u32_u16): Likewise.
23867 (vreinterpret_u32_u64): Likewise.
23868 (vreinterpret_u32_p8): Likewise.
23869 (vreinterpret_u32_p16): Likewise.
23870 (vreinterpretq_u32_s8): Likewise.
23871 (vreinterpretq_u32_s16): Likewise.
23872 (vreinterpretq_u32_s32): Likewise.
23873 (vreinterpretq_u32_s64): Likewise.
23874 (vreinterpretq_u32_f32): Likewise.
23875 (vreinterpretq_u32_u8): Likewise.
23876 (vreinterpretq_u32_u16): Likewise.
23877 (vreinterpretq_u32_u64): Likewise.
23878 (vreinterpretq_u32_p8): Likewise.
23879 (vreinterpretq_u32_p16): Likewise.
23881 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23883 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23885 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23887 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23888 (vqnegd_s64): Likewise.
23889 (vqabs_s64): Likewise.
23890 (vqabsd_s64): Likewise.
23892 2014-04-22 Richard Henderson <rth@redhat.com>
23894 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23895 computation to the top of the loop.
23897 2014-04-22 Renlin <renlin.li@arm.com>
23898 Jiong Wang <jiong.wang@arm.com>
23900 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23901 * config/aarch64/aarch64.c (aarch64_layout_frame)
23902 (aarch64_initial_elimination_offset): Likewise.
23904 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23906 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23909 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23911 * machmode.h (bitwise_mode_for_mode): Declare.
23912 * stor-layout.h (bitwise_type_for_mode): Likewise.
23913 * stor-layout.c (bitwise_mode_for_mode): New function.
23914 (bitwise_type_for_mode): Likewise.
23915 * builtins.c (fold_builtin_memory_op): Use it instead of
23916 int_mode_for_mode and build_nonstandard_integer_type.
23918 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23920 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23921 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23922 (*-*-solaris2*): Simplify.
23923 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23924 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23925 *-*-solaris2.9* handling.
23927 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23929 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23930 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23931 handling, simplify.
23932 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23933 * configure: Regenerate.
23935 * config/i386/sol2-9.h: Remove.
23937 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23938 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23939 Remove Solaris 9 references.
23941 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23943 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23944 (floatuns<GPI:mode><GPF:mode>2): Remove.
23945 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23946 and floatuns conversions.
23947 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23948 and floatuns conversions.
23949 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23950 (w1,w2): New mode attributes for inequal width conversions.
23952 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23954 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23955 the output asm format.
23957 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23959 * config/aarch64/aarch64-simd.md
23960 (aarch64_cm<optab>di): Always split.
23961 (*aarch64_cm<optab>di): New.
23962 (aarch64_cmtstdi): Always split.
23963 (*aarch64_cmtstdi): New.
23965 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23967 PR tree-optimization/60823
23968 * omp-low.c (ipa_simd_modify_function_body): Go through
23969 all SSA_NAMEs and for those refering to vector arguments
23970 which are going to be replaced adjust SSA_NAME_VAR and,
23971 if it is a default definition, change it into a non-default
23972 definition assigned at the beginning of function from new_decl.
23973 (ipa_simd_modify_stmt_ops): Rewritten.
23974 * tree-dfa.c (set_ssa_default_def): When removing default def,
23975 check for NULL loc instead of NULL *loc.
23977 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23979 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23980 restrictions on core registers for DImode values in Thumb2.
23982 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23984 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23985 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23987 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23989 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23990 (*iordi_notzesidi_di): Likewise.
23991 (*iordi_notsesidi_di): Likewise.
23993 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23995 * config/arm/arm-protos.h (tune_params): New struct members.
23996 * config/arm/arm.c: Initialise tune_params per processor.
23997 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23998 for speed, based on new tune_params.
24000 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24002 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24003 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24004 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24005 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24006 * config/aarch64/arm_neon.h (vrnd_f64): Added.
24007 (vrnda_f64): Likewise.
24008 (vrndi_f64): Likewise.
24009 (vrndm_f64): Likewise.
24010 (vrndn_f64): Likewise.
24011 (vrndp_f64): Likewise.
24012 (vrndx_f64): Likewise.
24014 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24016 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24017 GET_MODE_SIZE argument is enum machine_mode.
24019 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24022 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24023 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24025 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
24027 PR middle-end/60281
24028 * asan.c (asan_emit_stack_protection): Force the base to align to
24029 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
24030 appropriate bits if STRICT_ALIGNMENT.
24031 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24033 (expand_used_vars): Leave a space in the stack frame for alignment
24034 if STRICT_ALIGNMENT.
24036 2014-04-21 David Malcolm <dmalcolm@redhat.com>
24038 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24040 (gimple_store_p): Likewise.
24041 (gimple_assign_load_p): Likewise.
24042 (gimple_assign_cast_p): Likewise.
24043 (gimple_clobber_p): Likewise.
24045 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24046 rather than a gimple.
24047 (gimple_assign_cast_p): Likewise.
24049 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24052 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24053 If mode is DDmode and TARGET_E500_DOUBLE allow move.
24055 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24056 more debug information for E500 if -mdebug=reg.
24058 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
24061 * config/i386/i386.c (ix86_expand_builtin)
24062 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24063 register for target RTX.
24064 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24066 2014-04-18 Cong Hou <congh@google.com>
24068 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24069 the widen-mult pattern by handling two operands with different sizes,
24070 and operands whose size is smaller than half of the result type.
24072 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24074 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24075 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24076 (do_estimate_edge_time): Compute it.
24077 * ipa-inline.c (want_inline_small_function_p): Bypass
24078 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24080 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24082 * ipa-inline.c (spec_rem): New static variable.
24083 (dump_overall_stats): New function.
24084 (dump_inline_stats): New function.
24086 2014-04-18 Richard Henderson <rth@redhat.com>
24088 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24089 to GET_MODE_SIZE, not a reg_class_t.
24091 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24093 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24094 (vsx_xxmrglw_<mode>): Likewise.
24096 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
24099 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24100 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24101 (rs6000_init_hard_regno_mode_ok): Likewise.
24103 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
24105 * ipa-inline.c (inline_small_functions): Account only non-cold
24107 * doc/invoke.texi (inline-unit-growth): Update documentation.
24109 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
24111 * config/rs6000/rs6000.md (addti3, subti3): New.
24113 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
24116 * config/i386/i386.c (ix86_expand_clear): Remove outdated
24117 comment. Check optimize_insn_for_size_p instead of
24118 optimize_insn_for_speed_p.
24120 2014-04-17 Martin Jambor <mjambor@suse.cz>
24122 * gimple-iterator.c (gsi_start_edge): New function.
24123 * gimple-iterator.h (gsi_start_edge): Declare.
24124 * tree-sra.c (single_non_eh_succ): New function.
24125 (disqualify_ops_if_throwing_stmt): Renamed to
24126 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
24127 having one non-EH successor BB.
24128 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24129 generate loads into replacements.
24130 (sra_modify_assign): Likewise and and also use the simple path for
24132 (sra_modify_function_body): Commit statements on edges.
24134 2014-04-17 Richard Biener <rguenther@suse.de>
24136 PR middle-end/60849
24137 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24138 comparison results and add clarifying comment.
24140 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24142 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24143 (blank_mode): Initialize it.
24144 (emit_mode_size_inline, emit_mode_nunits_inline,
24145 emit_mode_inner_inline): New functions.
24146 (emit_insn_modes_h): Call them and surround their output with
24147 #if GCC_VERSION >= 4001 ... #endif.
24148 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24149 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24150 mode_* arrays if the argument is __builtin_constant_p.
24151 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24152 is enum machine_mode.
24154 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24156 * passes.c (opt_pass::execute): Adjust.
24157 (pass_manager::execute_pass_mode_switching): Likewise.
24158 (early_local_passes::execute): Likewise.
24159 (execute_one_pass): Pass cfun to the pass's execute method.
24160 * tree-pass.h (opt_pass::execute): Add function * argument.
24161 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24162 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24163 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24164 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24165 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24166 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24167 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24168 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24169 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24170 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24171 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24172 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24173 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24174 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24175 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24176 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24177 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24178 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24179 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24180 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24181 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24182 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24183 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24184 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24185 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24186 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24187 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24188 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24189 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24192 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24194 * passes.c (opt_pass::gate): Take function * argument.
24195 (gate_all_early_local_passes): Merge into
24196 (early_local_passes::gate): this.
24197 (gate_all_early_optimizations): Merge into
24198 (all_early_optimizations::gate): this.
24199 (gate_all_optimizations): Mege into
24200 (all_optimizations::gate): this.
24201 (gate_all_optimizations_g): Merge into
24202 (all_optimizations_g::gate): this.
24203 (gate_rest_of_compilation): Mege into
24204 (rest_of_compilation::gate): this.
24205 (gate_postreload): Merge into
24206 (postreload::gate): this.
24207 (dump_one_pass): Pass cfun to the pass's gate method.
24208 (execute_ipa_summary_passes): Likewise.
24209 (execute_one_pass): Likewise.
24210 (ipa_write_summaries_2): Likewise.
24211 (ipa_write_optimization_summaries_1): Likewise.
24212 (ipa_read_summaries_1): Likewise.
24213 (ipa_read_optimization_summaries_1): Likewise.
24214 (execute_ipa_stmt_fixups): Likewise.
24215 * tree-pass.h (opt_pass::gate): Add function * argument.
24216 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24217 combine-stack-adj.c, combine.c, compare-elim.c,
24218 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24219 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24220 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24221 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
24222 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24223 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24224 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24225 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24226 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24227 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24228 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24229 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24230 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24231 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24232 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24233 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24234 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24235 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24236 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24237 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24238 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24239 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24240 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24241 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24242 var-tracking.c, vtable-verify.c, web.c: Adjust.
24244 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24246 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24247 * configure: Regenerate.
24249 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24251 * passes.c (dump_one_pass): don't check pass->has_gate.
24252 (execute_ipa_summary_passes): Likewise.
24253 (execute_one_pass): Likewise.
24254 (ipa_write_summaries_2): Likewise.
24255 (ipa_write_optimization_summaries_1): Likewise.
24256 (ipa_read_optimization_summaries_1): Likewise.
24257 (execute_ipa_stmt_fixups): Likewise.
24258 * tree-pass.h (pass_data::has_gate): Remove.
24259 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24260 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24261 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24262 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24263 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24264 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24265 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24266 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24267 gimple-low.c, gimple-ssa-isolate-paths.c,
24268 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24269 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24270 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24271 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24272 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24273 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24274 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24275 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24276 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24277 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24278 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24279 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24280 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24281 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24282 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24283 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24284 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24285 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24286 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24287 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24288 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24289 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24292 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24294 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24296 * passes.c (pass_manager::register_dump_files_1): Merge into
24297 (pass_manager::register_dump_files): this, and remove its handling of
24298 properties since the pass always has the properties anyway.
24299 (pass_manager::pass_manager): Adjust.
24301 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24303 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24304 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24305 dealing with properties.
24306 (pass_manager::register_dump_files): Adjust.
24308 2014-03-20 Mark Wielaard <mjw@redhat.com>
24310 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24311 then represent the bound as normal constant value.
24313 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24316 Forward port from 4.8 branch
24317 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24319 * config/i386/bmiintrin.h (_blsi_u32): New.
24320 (_blsi_u64): Ditto.
24321 (_blsr_u32): Ditto.
24322 (_blsr_u64): Ditto.
24323 (_blsmsk_u32): Ditto.
24324 (_blsmsk_u64): Ditto.
24325 (_tzcnt_u32): Ditto.
24326 (_tzcnt_u64): Ditto.
24328 2014-04-17 Kito Cheng <kito@0xlab.org>
24330 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24332 2014-04-17 Richard Biener <rguenther@suse.de>
24334 PR middle-end/60849
24335 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24336 boolean results for comparisons.
24338 2014-04-17 Richard Biener <rguenther@suse.de>
24340 PR tree-optimization/60836
24341 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24342 initial PHI args to be gimple values.
24344 2014-04-17 Richard Biener <rguenther@suse.de>
24346 PR tree-optimization/60841
24347 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24348 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24349 of stmts to SLP build.
24350 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24351 (vect_analyze_slp): Likewise.
24352 (vect_analyze_slp_instance): Likewise.
24353 (vect_build_slp_tree): Limit overall SLP tree growth.
24354 * tree-vectorizer.h (vect_analyze_data_refs,
24355 vect_analyze_slp): Adjust prototypes.
24357 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24359 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24362 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24364 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24365 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24366 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24367 for TARGET_SLOW_PSHUFB
24369 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24371 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24372 * config/i386/i386.c (intel_cost): Ditto.
24374 2014-04-17 Joey Ye <joey.ye@arm.com>
24376 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24378 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24380 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24381 with -fuse-profile.
24383 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24385 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24386 (type_all_derivations_known_p): New predicate.
24387 (type_all_ctors_visible_p): New predicate.
24388 (type_possibly_instantiated_p): New predicate.
24389 (get_odr_type): Compute all_derivations_known.
24390 (dump_odr_type): Dump the flag.
24391 (maybe_record_type): Cleanup.
24392 (record_target_from_binfo): Add bases_to_consider array;
24393 record bases for types w/o instances and skip CXX destructor.
24394 (possible_polymorphic_call_targets_1): Add bases_to_consider
24395 and consider_construction parameters; check if type may have instance.
24396 (get_polymorphic_call_info): Set maybe_in_construction to true
24397 when we know nothing.
24398 (record_targets_from_bases): Skip CXX destructors; they are
24399 never called for types in construction.
24400 (possible_polymorphic_call_targets): Do not record target when
24401 type may not have instance.
24403 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24406 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24407 external aliases alive, too.
24409 2014-04-16 Andrew Pinski <apinski@cavium.com>
24411 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24414 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24416 * final.c (compute_alignments): Do not apply loop alignment to a block
24417 falling through to the exit.
24419 2014-04-16 Catherine Moore <clm@codesourcery.com>
24421 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24422 Adjust constraints for microMIPS store patterns.
24424 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24426 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24428 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24430 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24431 (append_use): Run at -O0.
24432 (append_vdef): Likewise.
24433 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24434 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24436 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24438 PR tree-optimization/60844
24439 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24440 (propagate_op_to_single_use, remove_visited_stmt_chain,
24441 linearize_expr, repropagate_negates, reassociate_bb): Use it
24442 instead of gsi_remove.
24444 2014-04-16 Martin Jambor <mjambor@suse.cz>
24446 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24447 ipa_transforms_to_apply.
24448 (cgraph_function_versioning): Assert that old_node has empty
24449 ipa_transforms_to_apply.
24450 * trans-mem.c (ipa_tm_create_version): Likewise.
24451 * tree-inline.c (tree_function_versioning): Do not duplicate
24452 ipa_transforms_to_apply.
24454 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24457 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24459 Pass necessary as flags on 64-bit Solaris/x86.
24460 Use lowercase relocs for x86_64-*-*.
24461 * configure: Regenerate.
24463 2014-04-15 Jan Hubicka <jh@suse.cz>
24465 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24466 (maybe_record_node, likely_target_p): Use it.
24468 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24471 Revert following patch
24473 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24476 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24477 software floating point or no floating point registers, do not
24478 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24479 in GPRs that occurs after we tested for GPRs that would never be
24482 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24483 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24484 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24485 specifically allow DDmode, since that does not use the SPE SIMD
24488 2014-03-21 Mark Wielaard <mjw@redhat.com>
24490 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24491 as unsigned or int depending on type and value used.
24493 2014-04-15 Richard Biener <rguenther@suse.de>
24495 PR rtl-optimization/56965
24496 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24497 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24499 * alias.c (true_dependence_1): Do not call
24500 nonoverlapping_component_refs_p.
24501 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24502 nonoverlapping_component_refs_p.
24503 (indirect_refs_may_alias_p): Likewise.
24505 2014-04-15 Teresa Johnson <tejohnson@google.com>
24507 * cfg.c (dump_bb_info): Fix flags check.
24508 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24510 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24512 PR rtl-optimization/60663
24513 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24516 2014-04-15 Richard Biener <rguenther@suse.de>
24518 * lto-streamer.h (LTO_major_version): Bump to 4.
24520 2014-04-15 Richard Biener <rguenther@suse.de>
24522 * common.opt (lto_partition_model): New enum.
24523 (flto-partition=): Merge separate options with a single with argument,
24524 add -flto-partition=one support.
24525 * flag-types.h (enum lto_partition_model): Declare.
24526 * opts.c (finish_options): Remove duplicate -flto-partition=
24528 * lto-wrapper.c (run_gcc): Adjust.
24530 2014-04-15 Richard Biener <rguenther@suse.de>
24532 * alias.c (ncr_compar): New function.
24533 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24535 2014-04-15 Richard Biener <rguenther@suse.de>
24537 * alias.c (record_component_aliases): Do not walk BINFOs.
24539 2014-04-15 Richard Biener <rguenther@suse.de>
24541 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24542 Add struct function argument and adjust.
24543 (find_func_aliases_for_call): Likewise.
24544 (find_func_aliases): Likewise.
24545 (find_func_clobbers): Likewise.
24546 (intra_create_variable_infos): Likewise.
24547 (compute_points_to_sets): Likewise.
24548 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24550 2014-04-15 Richard Biener <rguenther@suse.de>
24552 * tree.c (iterative_hash_expr): Use enum tree_code_class
24553 to store TREE_CODE_CLASS.
24554 (tree_block): Likewise.
24555 (tree_set_block): Likewise.
24556 * tree.h (fold_build_pointer_plus_loc): Use
24557 convert_to_ptrofftype_loc.
24559 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24562 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24565 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24567 * cfgloop.h (struct loop): Move force_vectorize down.
24568 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24569 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24570 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24571 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24572 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24573 * tree-core.h (enum annot_expr_kind): Add new kind values.
24574 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24575 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24577 * tree.def (ANNOTATE_EXPR): Tweak comment.
24579 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24581 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24584 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24586 * tree.h (TYPE_IDENTIFIER): Declare.
24587 * tree.c (subrange_type_for_debug_p): Use it.
24588 * godump.c (go_format_type): Likewise.
24589 * dwarf2out.c (is_cxx_auto, modified_type_die,
24590 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24591 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24593 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24596 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24598 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24600 * config/i386/i386.c (examine_argument): Return bool. Return true if
24601 parameter should be passed in memory.
24602 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24603 (construct_container): Update calls to examine_argument.
24604 (function_arg_advance_64): Ditto.
24605 (return_in_memory_32): Merge with ix86_return_in_memory.
24606 (return_in_memory_64): Ditto.
24607 (return_in_memory_ms_64): Ditto.
24609 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24611 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24612 * coverage.c (coverage_compute_profile_id): Handle externally visible
24615 2014-04-14 Martin Jambor <mjambor@suse.cz>
24617 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24618 DECL_DISREGARD_INLINE_LIMITS functions.
24620 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24623 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24625 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24628 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24629 optimize_insn_for_speed_p instead of
24630 optimize_function_for_speed_p.
24632 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24634 * doc/invoke.texi (free): Document AArch64.
24636 2014-04-14 Richard Biener <rguenther@suse.de>
24638 PR tree-optimization/60042
24639 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24640 (insert_into_preds_of_block): Do not prevent PHI insertion
24641 for REFERENCE exprs here ...
24642 (eliminate_dom_walker::before_dom_children): ... but prevent
24643 their use here under similar conditions when applied to the
24644 IL after PRE optimizations.
24646 2014-04-14 Richard Biener <rguenther@suse.de>
24648 * passes.def: Move early points-to after early SRA.
24650 2014-04-14 Richard Biener <rguenther@suse.de>
24652 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24653 check for which sign-changes we allow when forwarding
24654 a converted value into a switch.
24656 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24658 * stor-layout.c (place_field): Finalize non-constant offset for the
24661 2014-04-14 Richard Biener <rguenther@suse.de>
24663 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24665 (expand_switch_using_bit_tests_p): Likewise.
24666 (process_switch): Compute and pass on speed_p based on the
24668 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24669 optimize_bb_for_speed_p.
24671 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24673 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24674 * function.h (struct function): Rename has_force_vect_loops into
24675 has_force_vectorize_loops.
24676 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24677 (input_struct_function_base): Likewise.
24678 * lto-streamer-out.c (output_cfg): Likewise.
24679 (output_struct_function_base): Likewise.
24680 * omp-low.c (expand_omp_simd): Likewise.
24681 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24682 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24683 (version_loop_for_if_conversion): Likewise.
24684 (tree_if_conversion): Likewise.
24685 (main_tree_if_conversion): Likewise.
24686 (gate_tree_if_conversion): Likewise.
24687 * tree-inline.c (copy_loops): Likewise.
24688 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24689 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24690 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24691 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24692 * tree-vectorizer.c (vectorize_loops): Likewise.
24693 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24695 2014-04-14 Richard Biener <rguenther@suse.de>
24698 * lto-streamer-out.c (wrap_refs): New function.
24699 (lto_output): Wrap symbol references in global initializes in
24700 type-preserving MEM_REFs.
24702 2014-04-14 Christian Bruel <christian.bruel@st.com>
24704 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24706 2014-04-14 Christian Bruel <christian.bruel@st.com>
24708 * config/sh/sh.md (setmemqi): New expand pattern.
24709 * config/sh/sh.h (CLEAR_RATIO): Define.
24710 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24711 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24713 2014-04-14 Richard Biener <rguenther@suse.de>
24715 PR middle-end/55022
24716 * fold-const.c (negate_expr_p): Don't negate directional rounding
24718 (fold_negate_expr): Likewise.
24720 2014-04-14 Richard Biener <rguenther@suse.de>
24722 PR tree-optimization/59817
24723 PR tree-optimization/60453
24724 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24725 recursion to catch all CHRECs in the scalar evolution and restrict
24726 the predicate for the remains appropriately.
24728 2014-04-12 Catherine Moore <clm@codesourcery.com>
24730 * config/mips/constraints.md: Add new register constraint "kb".
24731 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24732 (*movhi_internal): Likewise.
24733 (*movqi_internal): Likewise.
24734 * config/mips/mips.h (M16_STORE_REGS): New register class.
24735 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24736 (REG_CLASS_CONTENTS): Likewise.
24737 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24739 2014-04-11 Tobias Burnus <burnus@net-b.de>
24742 * doc/invoke.texi (-Wformat-signedness): Document it.
24743 (Wformat=2): Mention that this enables -Wformat-signedness.
24745 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24747 * common/config/epiphany/epiphany-common.c
24748 (epiphany_option_optimization_table): Enable section anchors by
24749 default at -O1 or higher.
24750 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24751 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24752 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24753 carries no extra cost.
24754 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24755 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24756 * config/epiphany/predicates.md (memclob_operand): New predicate.
24757 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24758 Use memclob_operand predicate and X constraint for operand 3.
24760 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24762 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24763 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24766 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24768 PR rtl-optimization/60651
24769 * mode-switching.c (optimize_mode_switching): Make sure to emit
24770 sets of a lower numbered entity before sets of a higher numbered
24771 entity to a mode of the same or lower priority.
24772 When creating a seginfo for a basic block that starts with a code
24773 label, move the insertion point past the code label.
24774 (new_seginfo): Document and enforce requirement that
24775 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24776 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24777 * doc/tm.texi: Regenerate.
24779 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24782 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24784 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24786 * BASE-VER: Set to 4.10.0.
24788 2014-04-11 Tobias Burnus <burnus@net-b.de>
24791 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24792 * doc/gcc.texi (Service): Update description in the @menu
24793 * doc/invoke.texi (Option Summary): Remove misplaced and
24796 2014-04-11 Steve Ellcey <sellcey@mips.com>
24797 Jakub Jelinek <jakub@redhat.com>
24799 PR middle-end/60556
24800 * expr.c (convert_move): Use emit_store_flag_force instead of
24801 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24804 2014-04-11 Richard Biener <rguenther@suse.de>
24806 PR middle-end/60797
24807 * varasm.c (assemble_alias): Avoid endless error reporting
24808 recursion by setting TREE_ASM_WRITTEN.
24810 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24812 * config/s390/s390.md: Add a splitter for NOT rtx.
24814 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24816 PR rtl-optimization/60663
24817 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24819 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24820 Jakub Jelinek <jakub@redhat.com>
24823 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24824 flag from decl_node to node.
24826 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24829 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24830 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24831 ameliorating the cases where it can be.
24833 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24836 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24838 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24839 (loadsync_<mode>): Change mode.
24840 (load_quadpti, store_quadpti): New.
24841 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24842 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24843 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24845 2014-04-09 Cong Hou <congh@google.com>
24848 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24851 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24853 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24854 instead of vnor to exploit possible fusion opportunity in the
24856 (altivec_expand_vec_perm_const_le): Likewise.
24858 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24860 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24861 (loadsync_<mode>): Change mode.
24862 (load_quadpti, store_quadpti): New.
24863 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24864 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24866 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24869 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24870 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24871 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24873 2014-04-08 Richard Biener <rguenther@suse.de>
24875 PR middle-end/60706
24876 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24877 a 64bit widest int print double-int similar to on HWI64 hosts.
24879 2014-04-08 Richard Biener <rguenther@suse.de>
24881 PR tree-optimization/60785
24882 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24883 default defs properly.
24885 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24887 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24888 (Weffc++): Likewise.
24890 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24892 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24893 set completep to false rather than true.
24895 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24898 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24899 ARM_TARGET2_DWARF_FORMAT.
24901 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24904 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24905 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24908 2014-04-07 Richard Biener <rguenther@suse.de>
24910 PR tree-optimization/60766
24911 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24912 (may_eliminate_iv): Convert cand_value_at result to desired type.
24914 2014-04-07 Jason Merrill <jason@redhat.com>
24917 * common.opt (-fno-gnu-unique): Add.
24918 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24920 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24922 * haifa-sched.c: Fix outdated function reference and minor
24923 grammar errors in introductory comment.
24925 2014-04-07 Richard Biener <rguenther@suse.de>
24927 PR middle-end/60750
24928 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24929 for noreturn calls.
24930 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24932 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24935 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24936 size accounting for thunks.
24937 (pa_asm_output_mi_thunk): Use final_start_function() and
24938 final_end_function() to output function start and end directives.
24940 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24942 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24943 device specific ISA/ feature information. Remove short_sp and
24944 errata_skip ds. Add avr_device_specific_features enum to have device
24946 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24947 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24948 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24949 updated device specific info.
24950 * config/avr/avr-mcus.def: Merge device specific details to
24951 dev_attribute field.
24952 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24954 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24955 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24956 assembler if RMW isa supported by current device.
24957 * config/avr/genmultilib.awk: Update as device info structure changed.
24958 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24960 2014-04-04 Cong Hou <congh@google.com>
24962 PR tree-optimization/60656
24963 * tree-vect-stmts.c (supportable_widening_operation):
24964 Fix a bug that elements in a vector with vect_used_by_reduction
24965 property are incorrectly reordered when the operation on it is not
24966 consistant with the one in reduction operation.
24968 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24970 PR rtl-optimization/60155
24971 * gcse.c (record_set_data): New function.
24972 (single_set_gcse): New function.
24973 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24974 (hoist_code): Likewise.
24975 (get_pressure_class_and_nregs): Likewise.
24977 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24979 * explow.c (probe_stack_range): Emit a final optimization blockage.
24981 2014-04-04 Anthony Green <green@moxielogic.com>
24983 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24986 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24989 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24990 flags are set only during streaming.
24991 * ipa.c (process_references, walk_polymorphic_call_targets,
24992 symtab_remove_unreachable_nodes): Drop bodies of always inline
24993 after early inlining.
24994 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24996 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24997 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25000 * dwarf2out.c (const_ok_for_output_1): Reject expressions
25003 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25006 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25008 (cortex_a53_fdivd): Likewise.
25010 2014-04-04 Martin Jambor <mjambor@suse.cz>
25013 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25014 Adjust all callers.
25015 * cgraph.c (clone_of_p): Also return true if thunks match.
25016 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25017 cgraph_function_or_thunk_node and an obsolete comment.
25018 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25020 (build_function_decl_skip_args): Likewise.
25021 (set_new_clone_decl_and_node_flags): New function.
25022 (duplicate_thunk_for_node): Likewise.
25023 (redirect_edge_duplicating_thunks): Likewise.
25024 (cgraph_clone_node): New parameter args_to_skip, pass it to
25025 redirect_edge_duplicating_thunks which is called instead of
25026 cgraph_redirect_edge_callee.
25027 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25028 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25030 2014-04-04 Jeff Law <law@redhat.com>
25033 * config/arm/predicates.md (const_int_I_operand): New predicate.
25034 (const_int_M_operand): Similarly.
25035 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25037 (insv_t2, extv_reg, extzv_t2): Likewise.
25038 (load_multiple_with_writeback): Similarly for const_int_I_operand.
25039 (pop_multiple_with_writeback_and_return): Likewise.
25040 (vfp_pop_multiple_with_writeback): Likewise
25042 2014-04-04 Richard Biener <rguenther@suse.de>
25045 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25046 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25048 * gimplify.h (gimple_add_tmp_var_fn): Declare.
25049 * gimplify.c (gimple_add_tmp_var_fn): New function.
25050 * gimple-expr.h (create_tmp_reg_fn): Declare.
25051 * gimple-expr.c (create_tmp_reg_fn): New function.
25052 * gimple-low.c (record_vars_into): Don't change cfun.
25053 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25054 code generation without cfun.
25056 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
25059 * Makefile.in (install-driver): Fix shell scripting.
25061 2014-04-03 Cong Hou <congh@google.com>
25063 PR tree-optimization/60505
25064 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25065 threshold of number of iterations below which no vectorization
25067 * tree-vect-loop.c (new_loop_vec_info):
25068 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25069 * tree-vect-loop.c (vect_analyze_loop_operations):
25070 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25071 * tree-vect-loop.c (vect_transform_loop):
25072 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25073 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25074 of iterations of the loop and see if we should build the epilogue.
25076 2014-04-03 Richard Biener <rguenther@suse.de>
25078 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25079 (streamer_tree_cache_create): Adjust.
25080 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25081 to allow optional nodes array.
25082 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25083 (streamer_tree_cache_append): Likewise.
25084 (streamer_tree_cache_create): Create nodes array optionally
25085 as specified by parameter.
25086 * lto-streamer-out.c (create_output_block): Avoid maintaining
25087 the node array in the writer cache.
25088 (DFS_write_tree): Remove assertion.
25089 (produce_asm_for_decls): Free the out decl state hash table early.
25090 * lto-streamer-in.c (lto_data_in_create): Adjust for
25091 streamer_tree_cache_create prototype change.
25093 2014-04-03 Richard Biener <rguenther@suse.de>
25095 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25096 set TREE_CHAIN to NULL_TREE.
25098 2014-04-03 Richard Biener <rguenther@suse.de>
25100 PR tree-optimization/60740
25101 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25102 over all GIMPLE_COND operands.
25104 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
25106 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25107 (Weffc++): Remove Scott's numbering, merge lists and reference
25110 2014-04-03 Nick Clifton <nickc@redhat.com>
25112 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25115 2014-04-03 Martin Jambor <mjambor@suse.cz>
25117 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25118 mention gcc_unreachable before failing.
25119 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25122 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
25125 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25126 inconsistent code and instead mark the context inconsistent.
25127 (possible_polymorphic_call_targets): For inconsistent contexts
25128 return empty complete list.
25130 2014-04-02 Anthony Green <green@moxielogic.com>
25132 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25133 (extendqisi2, extendhisi2): Define.
25134 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25135 (WCHAR_TYPE): Change to unsigned int.
25137 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25139 PR tree-optimization/60733
25140 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25141 insertion point for PHI candidates to be the end of the feeding
25142 block for the PHI argument.
25144 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
25146 PR rtl-optimization/60650
25147 * lra-constraints.c (process_alt_operands): Decrease reject for
25148 earlyclobber matching.
25150 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25152 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25154 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25156 * config/spu/spu.c (pad_bb): Do not crash when the last
25157 insn is CODE_FOR_blockage.
25159 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25161 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25162 lies outside the target mode.
25164 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25167 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25168 software floating point or no floating point registers, do not
25169 allow any type in the FPRs. Eliminate a test for SPE SIMD types
25170 in GPRs that occurs after we tested for GPRs that would never be
25173 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25174 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25175 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
25176 specifically allow DDmode, since that does not use the SPE SIMD
25179 2014-04-02 Richard Biener <rguenther@suse.de>
25181 PR middle-end/60729
25182 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25183 MODE_INTs. Properly use negv_optab.
25184 (expand_abs): Likewise.
25186 2014-04-02 Richard Biener <rguenther@suse.de>
25189 * Makefile.in (install-driver): Guard extra installs with special
25192 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25194 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25195 Document vec_vgbbd.
25197 2014-04-01 Richard Henderson <rth@redhat.com>
25200 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25201 alternative enabled before register allocation.
25203 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
25205 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25206 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25208 (nios2_large_got_address): Remove unneeded 'sym' parameter.
25209 (nios2_got_address): Update nios2_large_got_address call site.
25210 (nios2_delegitimize_address): New function.
25211 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25212 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25213 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25215 2014-04-01 Martin Husemann <martin@duskware.de>
25217 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25220 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
25222 PR rtl-optimization/60604
25223 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25224 check from register_operand.
25225 (register_operand): Redefine in terms of general_operand.
25226 (nonmemory_operand): Use register_operand for the non-constant cases.
25228 2014-04-01 Richard Biener <rguenther@suse.de>
25230 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25232 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
25234 * doc/invoke.texi (mapp-regs): Clarify.
25236 2014-03-31 Ulrich Drepper <drepper@gmail.com>
25238 * config/i386/avx512fintrin.h (__v32hi): Define type.
25239 (__v64qi): Likewise.
25240 (_mm512_set1_epi8): Define.
25241 (_mm512_set1_epi16): Define.
25242 (_mm512_set4_epi32): Define.
25243 (_mm512_set4_epi64): Define.
25244 (_mm512_set4_pd): Define.
25245 (_mm512_set4_ps): Define.
25246 (_mm512_setr4_epi64): Define.
25247 (_mm512_setr4_epi32): Define.
25248 (_mm512_setr4_pd): Define.
25249 (_mm512_setr4_ps): Define.
25250 (_mm512_setzero_epi32): Define.
25252 2014-03-31 Martin Jambor <mjambor@suse.cz>
25254 PR middle-end/60647
25255 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25256 callsite_arguments_match_p. Updated all callers. Also check types of
25257 corresponding formal parameters and actual arguments.
25258 (not_all_callers_have_enough_arguments_p) Renamed to
25259 some_callers_have_mismatched_arguments_p.
25261 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
25263 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25265 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
25268 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25271 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
25273 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25274 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25276 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25277 Use FMAMODE_NOVF512 mode iterator.
25278 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25279 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25280 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25281 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25283 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25284 Use VF_128_256 mode iterator.
25285 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25288 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25290 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25291 static chain if needed.
25293 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25296 * lra-constraints.c (index_part_to_reg): New.
25297 (process_address): Use it.
25299 2014-03-27 Jeff Law <law@redhat.com>
25300 Jakub Jelinek <jakub@redhat.com>
25303 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25304 gen_rtx_{PLUS,MULT} to build up the address expression.
25306 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25307 creating non-canonical RTL.
25309 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25312 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25313 functions; reorganize to make cheap checks first.
25314 (inline_small_functions): Do not estimate growth when dumping;
25316 * ipa-inline.h (inline_summary): Add min_size.
25317 (growth_likely_positive): New function.
25318 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25319 (set_cond_stmt_execution_predicate): Cleanup.
25320 (estimate_edge_size_and_time): Compute min_size.
25321 (estimate_calls_size_and_time): Likewise.
25322 (estimate_node_size_and_time): Likewise.
25323 (inline_update_overall_summary): Update min_size.
25324 (do_estimate_edge_time): Likewise.
25325 (do_estimate_edge_size): Update.
25326 (do_estimate_edge_hints): Update.
25327 (growth_likely_positive): New function.
25329 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25332 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25333 also if addr has VOIDmode.
25335 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25337 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25338 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25340 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25341 instructions as well as AdvancedSIMD loads.
25343 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25345 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25346 Use crypto_aese type.
25347 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25348 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25349 crypto_aese, crypto_aesmc. Move to types.md.
25350 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25352 * config/arm/iterators.md (crypto_type): Likewise.
25354 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25356 * cgraph.c: Include expr.h and tree-dfa.h.
25357 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25360 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25363 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25364 regs from checking multi-reg pseudos.
25366 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25368 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25370 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25372 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25373 if it would clobber the stack pointer, even temporarily.
25375 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25377 * mode-switching.c: Make small adjustments to the top comment.
25379 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25381 * config/rs6000/constraints.md (wD constraint): New constraint to
25382 match the constant integer to get the top DImode/DFmode out of a
25383 vector in a VSX register.
25385 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25386 match the constant integer to get the top DImode/DFmode out of a
25387 vector in a VSX register.
25389 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25392 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25395 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25396 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25398 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25399 Optimize vec_extract of 64-bit values, where the value being
25400 extracted is in the top word, where we can use scalar
25401 instructions. Add direct move and store support. Combine the big
25402 endian/little endian vector select load support into a single insn.
25403 (vsx_extract_<mode>_internal1): Likewise.
25404 (vsx_extract_<mode>_internal2): Likewise.
25405 (vsx_extract_<mode>_load): Likewise.
25406 (vsx_extract_<mode>_store): Likewise.
25407 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25408 combined into vsx_extract_<mode>_load.
25409 (vsx_extract_<mode>_one_le): Likewise.
25411 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25412 define the top 64-bit vector element.
25414 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25417 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25418 Document vec_vbpermq builtin.
25421 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25422 enable use of xxsldwi and xxpermdi builtin functions.
25423 (vec_xxpermdi): Likewise.
25425 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25426 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25428 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25430 PR rtl-optimization/60650
25431 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25433 (find_spills_for): New.
25434 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25435 Spill all pseudos on the second iteration.
25437 2014-03-27 Marek Polacek <polacek@redhat.com>
25440 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25443 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25445 * config/s390/s390.c (s390_can_use_return_insn): Check for
25446 call-saved FPRs on 31 bit.
25448 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25450 PR middle-end/60682
25451 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25452 if they need regimplification, just drop them instead of
25453 calling gimple_regimplify_operands on them.
25455 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25458 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25459 (aarch64_frame_pointer_required): Adjust logic.
25460 (aarch64_can_eliminate): Adjust logic.
25461 (aarch64_override_options_after_change): Adjust logic.
25463 2014-03-27 Dehao Chen <dehao@google.com>
25465 * ipa-inline.c (early_inliner): Update node's inline info.
25467 2014-03-26 Dehao Chen <dehao@google.com>
25469 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25470 compiler inserted conditional jumps for NAN float check.
25472 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25474 * ubsan.h (ubsan_create_data): Change second argument's type
25475 to const location_t *.
25476 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25478 (ubsan_create_data): Change second argument to const location_t *PLOC.
25479 Create Loc field whenever PLOC is non-NULL.
25480 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25481 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25485 * real.c (real_to_integer2): Change type of low to UHWI.
25487 2014-03-26 Tobias Burnus <burnus@net-b.de>
25489 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25490 (CILK_SELF_SPECS): New define.
25491 (driver_self_specs): Use it.
25493 2014-03-26 Richard Biener <rguenther@suse.de>
25495 * tree-pretty-print.c (percent_K_format): Implement special
25496 case for LTO and its stripped down BLOCK tree.
25498 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25501 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25503 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25504 one range is range_int_cst_p, but not both, at least optimize
25505 addition/subtraction of 0 and multiplication by 0 or 1.
25506 * gimple-fold.c (gimple_fold_call): Fold
25507 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25508 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25509 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25511 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25513 PR rtl-optimization/60452
25514 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25515 <case REG>: Return 1 for invalid offsets from the frame pointer.
25517 2014-03-26 Marek Polacek <polacek@redhat.com>
25520 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25523 2014-03-26 Marek Polacek <polacek@redhat.com>
25526 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25529 2014-03-26 Marek Polacek <polacek@redhat.com>
25532 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25533 multiplication in unsigned type.
25535 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25537 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25539 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25541 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25543 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25546 * cif-code.def (UNREACHABLE) New code.
25547 * ipa-inline.c (inline_small_functions): Skip edges to
25548 __builtlin_unreachable.
25549 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25550 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25551 predicate to __bulitin_unreachable.
25552 (set_cond_stmt_execution_predicate): Fix issue when
25553 invert_tree_comparison returns ERROR_MARK.
25554 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25555 propagate to inline clones.
25556 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25558 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25559 * cgraphclones.c (cgraph_clone_node): If call destination is already
25560 ureachable, do not redirect it back.
25561 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25564 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25566 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25567 Do not modify inline clones.
25569 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25571 * config/i386/i386.md (general_sext_operand): New mode attr.
25572 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25573 don't generate (sign_extend (const_int)).
25574 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25575 operands[2]. Use We constraint instead of <i> and
25576 <general_sext_operand> predicate instead of <general_operand>.
25577 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25578 * config/i386/constraints.md (We): New constraint.
25579 * config/i386/predicates.md (x86_64_sext_operand,
25580 sext_operand): New predicates.
25582 2014-03-25 Martin Jambor <mjambor@suse.cz>
25585 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25586 inconsistent devirtualizations to __builtin_unreachable.
25588 2014-03-25 Marek Polacek <polacek@redhat.com>
25591 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25593 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25595 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25596 order of elements for big-endian.
25598 2014-03-25 Richard Biener <rguenther@suse.de>
25600 PR middle-end/60635
25601 * gimplify-me.c (gimple_regimplify_operands): Update the
25604 2014-03-25 Martin Jambor <mjambor@suse.cz>
25607 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25608 (lto_output_varpool_node): Likewise.
25609 (input_overwrite_node): Likewise.
25610 (input_varpool_node): Likewise.
25612 2014-03-25 Richard Biener <rguenther@suse.de>
25614 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25615 (run_gcc): Likewise.
25617 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25619 * combine.c (simplify_compare_const): Add MODE argument.
25620 Handle mode_width 0 as very large mode_width.
25621 (try_combine, simplify_comparison): Adjust callers.
25623 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25624 type to avoid signed integer overflow.
25625 * explow.c (plus_constant): Likewise.
25627 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25629 * doc/generic.texi: Correct typos.
25631 2014-03-24 Tobias Burnus <burnus@net-b.de>
25633 * doc/invoke.texi (-flto): Expand section about
25634 using static libraries with LTO.
25636 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25638 PR rtl-optimization/60501
25639 * optabs.def (addptr3_optab): New optab.
25640 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25641 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25642 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25644 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25646 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25648 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25650 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25653 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25654 (_mm256_undefined_ps): Define.
25655 (_mm256_undefined_pd): Define.
25656 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25657 (_mm_undefined_pd): Define.
25658 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25659 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25660 (_mm512_undefined_ps): Define.
25661 (_mm512_undefined_pd): Define.
25662 Use _mm*_undefined_*.
25663 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25665 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25667 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25668 (lshr_simd): DI mode added.
25669 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25670 (aarch64_ushr_simddi): Likewise.
25671 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25672 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25673 (vshrd_n_u64): Likewise.
25675 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25677 * Makefile.in (s-macro_list): Depend on cc1.
25679 2014-03-23 Teresa Johnson <tejohnson@google.com>
25681 * ipa-utils.c (ipa_print_order): Use specified dump file.
25683 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25685 PR rtl-optimization/60601
25686 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25688 * gcc.c (eval_spec_function): Initialize save_growing_value.
25690 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25693 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25694 code == MINUS_EXPR, never swap op0 with op1.
25696 * toplev.c (init_local_tick): Avoid signed integer multiplication
25698 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25699 shift by first operand's bitsize.
25701 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25704 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25705 redefine to 1 or 0.
25706 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25707 TARGET_ISA_64BIT_P(x).
25709 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25711 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25712 pattern for vector nor instead of subtract from splat(-1).
25713 (altivec_expand_vec_perm_const_le): Likewise.
25715 2014-03-21 Richard Henderson <rth@twiddle.net>
25718 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25719 related insns after epilogue_completed.
25721 2014-03-21 Martin Jambor <mjambor@suse.cz>
25724 * cgraph.h (symtab_node): New flag body_removed.
25725 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25726 when removing bodies.
25727 * symtab.c (dump_symtab_base): Dump body_removed flag.
25728 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25729 had their bodies removed.
25731 2014-03-21 Martin Jambor <mjambor@suse.cz>
25734 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25737 2014-03-21 Richard Biener <rguenther@suse.de>
25739 PR tree-optimization/60577
25740 * tree-core.h (struct tree_base): Document nothrow_flag use
25741 in DECL_NONALIASED.
25742 * tree.h (DECL_NONALIASED): New.
25743 (may_be_aliased): Adjust.
25744 * coverage.c (build_var): Set DECL_NONALIASED.
25746 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25748 * expr.c (expand_expr_real_1): Remove outdated comment.
25750 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25752 PR middle-end/60597
25753 * ira.c (adjust_cleared_regs): Call copy_rtx on
25754 *reg_equiv[REGNO (loc)].src_p before passing it to
25755 simplify_replace_fn_rtx.
25758 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25759 into CONST, put pic register as first operand of PLUS. Use
25760 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25762 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25764 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25766 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25768 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25769 around for store forwarding issue in the FPU on the UT699.
25770 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25771 loads and operations if -mfix-ut699 is specified.
25772 (divtf3_hq): Tweak attribute.
25773 (sqrttf2_hq): Likewise.
25775 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25777 * calls.c (store_one_arg): Remove incorrect const qualification on the
25778 type of the temporary.
25779 * cfgexpand.c (expand_return): Likewise.
25780 * expr.c (expand_constructor): Likewise.
25781 (expand_expr_real_1): Likewise.
25783 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25785 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25788 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25791 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25793 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25795 * config/arm/aarch-common-protos.h
25796 (alu_cost_table): Fix spelling of "extend".
25797 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25799 2014-03-19 Richard Biener <rguenther@suse.de>
25801 PR middle-end/60553
25802 * tree-core.h (tree_type_common): Re-order pointer members
25803 to reduce recursion depth during GC walks.
25805 2014-03-19 Marek Polacek <polacek@redhat.com>
25808 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25809 before accessing it.
25811 2014-03-19 Richard Biener <rguenther@suse.de>
25814 * lto-streamer-in.c (input_function): In WPA stage do not drop
25817 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25819 PR tree-optimization/60559
25820 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25821 with build_zero_cst assignment.
25823 2014-03-18 Kai Tietz <ktietz@redhat.com>
25825 PR rtl-optimization/56356
25826 * sdbout.c (sdbout_parms): Verify that parms'
25827 incoming argument is valid.
25828 (sdbout_reg_parms): Likewise.
25830 2014-03-18 Richard Henderson <rth@redhat.com>
25833 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25834 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25835 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25837 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25839 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25840 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25841 Italicize plugin event names in description. Explain that
25842 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25843 Remind that no GCC functions should be called after PLUGIN_FINISH.
25844 Explain what pragmas with expansion are.
25846 2014-03-18 Martin Liska <mliska@suse.cz>
25848 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25849 gimple call statement is update.
25850 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25851 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25853 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25856 * ubsan.c (ubsan_instrument_unreachable): Call
25857 initialize_sanitizer_builtins.
25858 (ubsan_pass): Likewise.
25861 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25862 varpool_finalize_decl instead of rest_of_decl_compilation.
25864 2014-03-18 Richard Biener <rguenther@suse.de>
25866 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25867 by using bitmap_and_compl instead of bitmap_and_compl_into.
25868 (df_rd_transfer_function): Likewise.
25870 2014-03-18 Richard Biener <rguenther@suse.de>
25872 * doc/lto.texi (fresolution): Fix typo.
25874 2014-03-18 Richard Biener <rguenther@suse.de>
25876 * doc/invoke.texi (flto): Update for changes in 4.9.
25878 2014-03-18 Richard Biener <rguenther@suse.de>
25880 * doc/loop.texi: Remove section on the removed lambda framework.
25881 Update loop docs with recent changes in preserving loop structure.
25883 2014-03-18 Richard Biener <rguenther@suse.de>
25885 * doc/lto.texi (-fresolution): Document.
25887 2014-03-18 Richard Biener <rguenther@suse.de>
25889 * doc/contrib.texi: Adjust my name.
25891 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25894 * internal-fn.c: Include diagnostic-core.h.
25895 (expand_BUILTIN_EXPECT): New function.
25896 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25897 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25898 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25899 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25900 IFN_BUILTIN_EXPECT.
25901 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25902 Revert 3 argument __builtin_expect code.
25903 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25904 * gimple-fold.c (gimple_fold_call): Likewise.
25905 * tree.h (fold_builtin_expect): New prototype.
25906 * builtins.c (build_builtin_expect_predicate): Add predictor
25907 argument, if non-NULL, create 3 argument __builtin_expect.
25908 (fold_builtin_expect): No longer static. Add ARG2 argument,
25909 pass it through to build_builtin_expect_predicate.
25910 (fold_builtin_2): Adjust caller.
25911 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25912 * internal-fn.def (BUILTIN_EXPECT): New.
25914 2014-03-18 Tobias Burnus <burnus@net-b.de>
25917 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25918 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25919 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25921 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25924 * predict.c (combine_predictions_for_bb): Fix up formatting.
25925 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25926 fill what it points to if non-NULL.
25927 (tree_predict_by_opcode): Adjust caller, use the predictor.
25928 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25930 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25932 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25933 proper constant for the store mode.
25935 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25937 * symtab.c (change_decl_assembler_name): Fix transparent alias
25938 chain construction.
25940 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25942 * config/aarch64/aarch64.c: Correct the comments about the
25943 aarch64 stack layout.
25945 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25947 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25948 check for GF_OMP_FOR_KIND_FOR.
25950 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25952 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25953 ymm and zmm register names.
25955 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25958 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25959 note creation for the 2010-08-31 changes.
25961 2014-03-17 Marek Polacek <polacek@redhat.com>
25963 PR middle-end/60534
25964 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25965 as -fno-tree-loop-vectorize.
25966 (expand_omp_simd): Likewise.
25968 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25970 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25971 (eligible_for_call_delay): New prototype.
25972 * config/sparc/sparc.c (tls_call_delay): Rename into...
25973 (eligible_for_call_delay): ...this. Return false if the instruction
25974 cannot be put in the delay slot of a branch.
25975 (eligible_for_restore_insn): Simplify.
25976 (eligible_for_return_delay): Return false if the instruction cannot be
25977 put in the delay slot of a branch and simplify.
25978 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25979 put in the delay slot of a branch.
25980 * config/sparc/sparc.md (fix_ut699): New attribute.
25981 (tls_call_delay): Delete.
25982 (in_call_delay): Reimplement.
25983 (eligible_for_sibcall_delay): Rename into...
25984 (in_sibcall_delay): ...this.
25985 (eligible_for_return_delay): Rename into...
25986 (in_return_delay): ...this.
25987 (in_branch_delay): Reimplement.
25988 (in_uncond_branch_delay): Delete.
25989 (in_annul_branch_delay): Delete.
25991 2014-03-14 Richard Henderson <rth@redhat.com>
25994 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25995 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25996 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25997 (floathi splitters): Remove.
25998 (float<SWI48x>xf2): New pattern.
25999 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
26000 code that tried to handle DImode for 32-bit, but which was excluded
26001 by the pattern's condition. Drop allocation of stack temporary.
26002 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26003 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26004 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26005 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26006 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26007 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26008 (*float<SWI48><MODEF>2_sse_interunit): Remove.
26009 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26010 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26011 (*float<SWI48x><X87MODEF>2_i387): Remove.
26012 (all float _with_temp splitters): Remove.
26013 (*float<SWI48x><MODEF>2_i387): New pattern.
26014 (*float<SWI48><MODEF>2_sse): New pattern.
26015 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26016 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26018 2014-03-14 Jakub Jelinek <jakub@redhat.com>
26019 Marek Polacek <polacek@redhat.com>
26021 PR middle-end/60484
26022 * common.opt (dump_base_name_prefixed): New Variable.
26023 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26024 if x_dump_base_name_prefixed is already set, set it at the end.
26026 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
26028 PR rtl-optimization/60508
26029 * lra-constraints.c (get_reload_reg): Add new parameter
26031 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26032 Pass the new parameter values.
26034 2014-03-14 Richard Biener <rguenther@suse.de>
26036 * common.opt: Revert unintented changes from r205065.
26037 * opts.c: Likewise.
26039 2014-03-14 Richard Biener <rguenther@suse.de>
26041 PR middle-end/60518
26042 * cfghooks.c (split_block): Properly adjust all loops the
26043 block was a latch of.
26045 2014-03-14 Martin Jambor <mjambor@suse.cz>
26048 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26051 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
26054 * config/avr/avr.c (avr_set_current_function): Pass function name
26055 through default_strip_name_encoding before sanity checking instead
26056 of skipping the first char of the assembler name.
26058 2014-03-13 Richard Henderson <rth@redhat.com>
26061 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26062 (ix86_force_to_memory, ix86_free_from_memory): Remove.
26063 * config/i386/i386-protos.h: Likewise.
26064 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26065 in the expander instead of a splitter.
26066 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26067 any possibility of requiring a memory.
26068 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26069 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26070 (fp branch splitters): Update for ix86_split_fp_branch.
26071 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26072 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26073 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26074 (*fop_<MODEF>_2_i387): Remove f/r alternative.
26075 (*fop_<MODEF>_3_i387): Likewise.
26076 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26077 (splitters for the fop_* register patterns): Remove.
26078 (fscalexf4_i387): Rename from *fscalexf4_i387.
26079 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26081 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26083 PR tree-optimization/59779
26084 * tree-dfa.c (get_ref_base_and_extent): Use double_int
26085 type for bitsize and maxsize instead of HOST_WIDE_INT.
26087 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
26089 PR rtl-optimization/57320
26090 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26091 the CFG after thread_prologue_and_epilogue_insns.
26093 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
26095 PR rtl-optimization/57189
26096 * lra-constraints.c (process_alt_operands): Disfavor spilling
26099 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
26101 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26103 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26105 PR tree-optimization/59025
26106 PR middle-end/60418
26107 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26108 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26110 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
26113 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26114 calls of avr_out_plus_1.
26116 2014-03-13 Bin Cheng <bin.cheng@arm.com>
26118 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26119 BB's single pred and update the father loop's latch info later.
26121 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26123 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26127 (VEC_base): Likewise.
26128 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26129 registers, we need to swap double words in little endian mode.
26131 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26132 to be a container mode for 128-bit integer operations added in ISA
26133 2.07. Unlike TImode and PTImode, the preferred register set is
26134 the Altivec/VMX registers for the 128-bit operations.
26136 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26138 (rs6000_split_128bit_ok_p): Likewise.
26140 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26141 macros for creating ISA 2.07 normal and overloaded builtin
26142 functions with 3 arguments.
26143 (BU_P8V_OVERLOAD_3): Likewise.
26144 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26145 for use as overloaded functions.
26146 (VPERM_1TI_UNS): Likewise.
26147 (VSEL_1TI): Likewise.
26148 (VSEL_1TI_UNS): Likewise.
26149 (ST_INTERNAL_1ti): Likewise.
26150 (LD_INTERNAL_1ti): Likewise.
26151 (XXSEL_1TI): Likewise.
26152 (XXSEL_1TI_UNS): Likewise.
26153 (VPERM_1TI): Likewise.
26154 (VPERM_1TI_UNS): Likewise.
26155 (XXPERMDI_1TI): Likewise.
26156 (SET_1TI): Likewise.
26157 (LXVD2X_V1TI): Likewise.
26158 (STXVD2X_V1TI): Likewise.
26159 (VEC_INIT_V1TI): Likewise.
26160 (VEC_SET_V1TI): Likewise.
26161 (VEC_EXT_V1TI): Likewise.
26162 (EQV_V1TI): Likewise.
26163 (NAND_V1TI): Likewise.
26164 (ORC_V1TI): Likewise.
26165 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26166 added in ISA 2.07. Add both normal 'altivec' builtins, and the
26167 overloaded builtin.
26168 (VADDUQM): Likewise.
26169 (VSUBCUQ): Likewise.
26170 (VADDEUQM): Likewise.
26171 (VADDECUQ): Likewise.
26172 (VSUBEUQM): Likewise.
26173 (VSUBECUQ): Likewise.
26175 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26176 __int128_t and __uint128_t types.
26177 (__uint128_type): Likewise.
26178 (altivec_categorize_keyword): Add support for vector __int128_t,
26179 vector __uint128_t, vector __int128, and vector unsigned __int128
26180 as a container type for TImode operations that need to be done in
26181 VSX/Altivec registers.
26182 (rs6000_macro_to_expand): Likewise.
26183 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26184 to support 128-bit integer instructions vaddcuq, vadduqm,
26185 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26186 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26188 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26189 for V1TImode, and set up preferences to use VSX/Altivec registers.
26190 Setup VSX reload handlers.
26191 (rs6000_debug_reg_global): Likewise.
26192 (rs6000_init_hard_regno_mode_ok): Likewise.
26193 (rs6000_preferred_simd_mode): Likewise.
26194 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26195 (easy_altivec_constant): Likewise.
26196 (output_vec_const_move): Likewise.
26197 (rs6000_expand_vector_set): Convert V1TImode set and extract to
26199 (rs6000_expand_vector_extract): Likewise.
26200 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26202 (rs6000_const_vec): Add support for V1TImode.
26203 (rs6000_emit_le_vsx_load): Swap double words when loading or
26204 storing TImode/V1TImode.
26205 (rs6000_emit_le_vsx_store): Likewise.
26206 (rs6000_emit_le_vsx_move): Likewise.
26207 (rs6000_emit_move): Add support for V1TImode.
26208 (altivec_expand_ld_builtin): Likewise.
26209 (altivec_expand_st_builtin): Likewise.
26210 (altivec_expand_vec_init_builtin): Likewise.
26211 (altivec_expand_builtin): Likewise.
26212 (rs6000_init_builtins): Add support for V1TImode type. Add
26213 support for ISA 2.07 128-bit integer builtins. Define type names
26214 for the VSX/Altivec vector types.
26215 (altivec_init_builtins): Add support for overloaded vector
26216 functions with V1TImode type.
26217 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26218 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26220 (rs6000_split_128bit_ok_p): Likewise.
26221 (rs6000_handle_altivec_attribute): Create V1TImode from vector
26222 __int128_t and vector __uint128_t.
26224 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26225 and mode attributes.
26227 (VSX_M2): Likewise.
26232 (VS_scalar): Likewise.
26233 (VS_double): Likewise.
26234 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26236 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26237 we support the ISA 2.07 128-bit integer arithmetic instructions.
26238 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26239 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26240 and TImode types for use with the builtin functions.
26241 (V1TI_type_node): Likewise.
26242 (unsigned_V1TI_type_node): Likewise.
26243 (intTI_type_internal_node): Likewise.
26244 (uintTI_type_internal_node): Likewise.
26246 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26247 128-bit builtin functions.
26248 (UNSPEC_VADDEUQM): Likewise.
26249 (UNSPEC_VADDECUQ): Likewise.
26250 (UNSPEC_VSUBCUQ): Likewise.
26251 (UNSPEC_VSUBEUQM): Likewise.
26252 (UNSPEC_VSUBECUQ): Likewise.
26253 (VM): Add V1TImode to vector mode iterators.
26255 (VI_unit): Likewise.
26256 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26257 (altivec_vaddcuq): Likewise.
26258 (altivec_vsubuqm): Likewise.
26259 (altivec_vsubcuq): Likewise.
26260 (altivec_vaddeuqm): Likewise.
26261 (altivec_vaddecuq): Likewise.
26262 (altivec_vsubeuqm): Likewise.
26263 (altivec_vsubecuq): Likewise.
26265 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26267 (BOOL_128): Likewise.
26268 (BOOL_REGS_OUTPUT): Likewise.
26269 (BOOL_REGS_OP1): Likewise.
26270 (BOOL_REGS_OP2): Likewise.
26271 (BOOL_REGS_UNARY): Likewise.
26272 (BOOL_REGS_AND_CR0): Likewise.
26274 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26275 128-bit integer builtin support.
26276 (vec_vadduqm): Likewise.
26277 (vec_vaddecuq): Likewise.
26278 (vec_vaddeuqm): Likewise.
26279 (vec_vsubecuq): Likewise.
26280 (vec_vsubeuqm): Likewise.
26281 (vec_vsubcuq): Likewise.
26282 (vec_vsubuqm): Likewise.
26284 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26285 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26286 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26287 128-bit integer add/subtract to ISA 2.07.
26289 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26291 * config/arc/arc.c (arc_predicate_delay_insns):
26292 Fix third argument passed to conditionalize_nonjump.
26294 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26296 * config/aarch64/aarch64-builtins.c
26297 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26298 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26299 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26300 instead of __builtin_lfloor.
26301 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26303 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26305 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26306 (tree_ssa_ifcombine_bb_1): New function.
26307 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26308 is an empty forwarder block to then_bb or vice versa and then_bb
26309 and else_bb are effectively swapped.
26311 2014-03-12 Christian Bruel <christian.bruel@st.com>
26314 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26315 REG_CFA_DEF_CFA note.
26316 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26317 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26319 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26321 PR tree-optimization/60454
26322 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26324 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26326 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26327 Do not define target_cpu_default2 to generic.
26328 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26329 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26330 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26332 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26333 Marc Glisse <marc.glisse@inria.fr>
26335 PR tree-optimization/60502
26336 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26337 instead of build_low_bits_mask.
26339 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26341 PR middle-end/60482
26342 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26343 if there are multiple uses, but op doesn't live on E edge.
26344 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26345 clobber stmts before __builtin_unreachable.
26347 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26349 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26350 hard_frame_pointer_rtx.
26351 * cse.c (cse_insn): Remove volatile check.
26352 * cselib.c (cselib_process_insn): Likewise.
26353 * dse.c (scan_insn): Likewise.
26355 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26357 * config/arc/arc.c (conditionalize_nonjump): New function,
26359 (arc_ifcvt): ... this.
26360 (arc_predicate_delay_insns): Use it.
26362 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26364 * config/arc/predicates.md (extend_operand): During/after reload,
26365 allow const_int_operand.
26366 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26367 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26368 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26370 (umulsi3_highpart_i): Likewise.
26372 2014-03-11 Richard Biener <rguenther@suse.de>
26374 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26375 Add asserts to guard possible wrong-code bugs.
26377 2014-03-11 Richard Biener <rguenther@suse.de>
26379 PR tree-optimization/60429
26380 PR tree-optimization/60485
26381 * tree-ssa-structalias.c (set_union_with_increment): Properly
26382 take into account all fields that overlap the shifted vars.
26383 (do_sd_constraint): Likewise.
26384 (do_ds_constraint): Likewise.
26385 (get_constraint_for_ptr_offset): Likewise.
26387 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26389 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26390 (nios2_compute_frame_layout):
26391 Add calculation of cfun->machine->fp_save_offset.
26392 (nios2_expand_prologue): Correct setting of frame pointer register
26394 (nios2_expand_epilogue): Update recovery of stack pointer from
26395 frame pointer accordingly.
26396 (nios2_initial_elimination_offset): Update calculation of offset
26397 for eliminating to HARD_FRAME_POINTER_REGNUM.
26399 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26402 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26403 cgraph_get_create_node on VAR_DECLs.
26405 2014-03-10 Richard Biener <rguenther@suse.de>
26407 PR middle-end/60474
26408 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26410 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26412 * config/vms/vms.opt (vms_float_format): New variable.
26414 2014-03-08 Tobias Burnus <burnus@net-b.de>
26416 * doc/invoke.texi (-fcilkplus): Update implementation status.
26418 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26419 Richard Biener <rguenther@suse.de>
26421 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26422 consistently accross all TUs.
26423 (run_gcc): Enable -fshort-double automatically at link at link-time
26424 and disallow override.
26426 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26429 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26430 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26431 if they can't be used.
26433 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26435 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26436 for Solaris 11/x86 ld.
26437 * configure: Regenerate.
26439 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26441 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26442 (LIB_TLS_SPEC): Save as ld_tls_libs.
26443 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26444 (HAVE_AS_IX86_TLSLDM): New test.
26445 * configure, config.in: Regenerate.
26446 * config/i386/i386.c (legitimize_tls_address): Fall back to
26447 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26448 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26449 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26450 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26452 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26454 * common.opt (fira-loop-pressure): Mark as optimization.
26456 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26458 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26459 an OpenMP mappable type.
26461 2014-03-06 Matthias Klose <doko@ubuntu.com>
26463 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26464 MULTILIB_OSDIRNAMES is not defined.
26466 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26467 Meador Inge <meadori@codesourcery.com>
26470 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26471 (arm_legitimize_address): Call legitimize_tls_address for any
26472 arm_tls_referenced_p expression, handle constant addend. Call it
26473 before testing for !TARGET_ARM.
26474 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26476 2014-03-06 Richard Biener <rguenther@suse.de>
26478 PR middle-end/60445
26482 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26484 * tree-streamer.c (record_common_node): Assert we don't record
26485 nodes with type double.
26486 (preload_common_node): Skip type double, complex double and double
26487 pointer since it is now frontend dependent due to fshort-double option.
26489 2014-03-06 Richard Biener <rguenther@suse.de>
26491 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26492 or -fno-lto is specified and the linker has full plugin support.
26493 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26494 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26495 * lto-wrapper.c (merge_and_complain): Merge compile-time
26496 optimization levels.
26497 (run_gcc): And pass it through to the link options.
26499 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26503 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26505 * cselib.c (remove_useless_values): Skip to avoid quadratic
26506 behavior if the condition moved from...
26507 (cselib_process_insn): ... here holds.
26509 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26512 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26513 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26516 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26517 (TM_H): Add x86-tune.def.
26519 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26521 * config/aarch64/aarch64.c (generic_tunings):
26522 Use cortexa57_extra_costs.
26524 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26527 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26528 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26529 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26532 2014-03-04 Heiher <r@hev.cc>
26534 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26535 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26537 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26539 * config/i386/predicates.md (const2356_operand): Change to ...
26540 (const2367_operand): ... this.
26541 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26543 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26544 (*avx512pf_scatterpf<mode>sf): Ditto.
26545 (avx512pf_scatterpf<mode>df): Ditto.
26546 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26547 (*avx512pf_scatterpf<mode>df): Ditto.
26548 * config/i386/i386.c (ix86_expand_builtin): Update
26549 incorrect hint operand error message.
26551 2014-03-04 Richard Biener <rguenther@suse.de>
26553 * lto-section-in.c (lto_get_section_data): Fix const cast.
26555 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26557 * tree-streamer.c (record_common_node): Assert we don't record
26558 nodes with type double.
26559 (preload_common_node): Skip type double, complex double and double
26560 pointer since it is now frontend dependent due to fshort-double option.
26562 2014-03-04 Richard Biener <rguenther@suse.de>
26565 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26566 (lto_input_toplevel_asms): Likewise.
26567 * lto-section-in.c (lto_get_section_data): Instead do it here
26570 2014-03-04 Richard Biener <rguenther@suse.de>
26572 PR tree-optimization/60382
26573 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26574 dead PHIs a reduction.
26576 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26578 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26580 (_mm_prefetch): Move out of GCC target("sse") pragma.
26581 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26582 GCC target("prfchw") pragma.
26583 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26585 * config/i386/i386.c (ix86_option_override_internal): Enable
26586 -mprfchw with -mprefetchwt1.
26588 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26590 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26593 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26595 * opts.h (CL_PCH_IGNORE): Define.
26596 * targhooks.c (option_affects_pch_p):
26597 Return false for options that have CL_PCH_IGNORE set.
26598 * opt-functions.awk: Process PchIgnore.
26599 * doc/options.texi: Document PchIgnore.
26601 * config/arc/arc.opt (misize): Add PchIgnore property.
26603 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26605 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26606 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26607 constraint on constants to permit them being loaded into
26608 GENERAL_REGS or BASE_REGS.
26610 2014-03-03 Nick Clifton <nickc@redhat.com>
26612 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26613 anti-cacnonical alternatives.
26614 (negandhi3_real): New pattern.
26615 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26617 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26619 * config/avr/avr-mcus.def: Remove atxmega16x1.
26620 * config/avr/avr-tables.opt: Regenerate.
26621 * config/avr/t-multilib: Regenerate.
26622 * doc/avr-mmcu.texi: Regenerate.
26624 2014-03-03 Tobias Grosser <tobias@grosser.es>
26625 Mircea Namolaru <mircea.namolaru@inria.fr>
26627 PR tree-optimization/58028
26628 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26631 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26633 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26634 not handled by recognizers.
26636 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26638 PR middle-end/60175
26639 * function.c (expand_function_end): Don't emit
26640 clobber_return_register sequence if clobber_after is a BARRIER.
26641 * cfgexpand.c (construct_exit_block): Append instructions before
26642 return_label to prev_bb.
26644 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26646 * config/rs6000/constraints.md: Document reserved use of "wc".
26648 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26651 * ipa.c (function_and_variable_visibility): When dissolving comdat
26652 group, also set all symbols to local.
26654 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26659 2013-12-14 Jan Hubicka <jh@suse.cz>
26660 PR middle-end/58477
26661 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26663 2014-03-02 Jon Beniston <jon@beniston.com>
26669 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26670 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26671 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26672 (simple_return, *simple_return): New patterns
26673 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26674 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26676 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26678 * dwarf2out.c (gen_subprogram_die): Tidy.
26680 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26683 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26684 (*mov_t_msb_neg_negc): ... this new insn.
26686 2014-02-28 Jason Merrill <jason@redhat.com>
26689 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26692 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26695 * dwarf2out.c (decltype_auto_die): New static.
26696 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26697 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26698 (is_cxx_auto): Likewise.
26700 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26702 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26703 we are not using general regs only.
26705 2014-02-28 Richard Biener <rguenther@suse.de>
26708 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26709 previous fix and only allow to remove trivial pre-headers
26710 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26711 (remove_forwarder_block): Properly update the latch of a loop.
26713 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26716 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26717 (cselib_preserved_hash_table): New.
26718 (preserve_constants_and_equivs): Move preserved vals to it.
26719 (cselib_find_slot): Look it up first.
26720 (cselib_init): Initialize it.
26721 (cselib_finish): Release it.
26722 (dump_cselib_table): Dump it.
26724 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26727 * cselib.c (remove_useless_values): Skip to avoid quadratic
26728 behavior if the condition moved from...
26729 (cselib_process_insn): ... here holds.
26731 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26734 * var-tracking.c (vt_initialize): Apply the same condition to
26735 preserve the CFA base value.
26737 2014-02-28 Joey Ye <joey.ye@arm.com>
26740 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26741 if reload in progress or completed.
26743 2014-02-28 Tobias Burnus <burnus@net-b.de>
26745 PR middle-end/60147
26746 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26749 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26751 * doc/tm.texi.in (Condition Code Status): Update documention for
26752 relative locations of cc0-setter and cc0-user.
26754 2014-02-27 Jeff Law <law@redhat.com>
26756 PR rtl-optimization/52714
26757 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26758 into two independent simple sets, if I3 is a jump, ensure the
26759 pattern we place into I3 is a (set (pc) ...).
26761 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26762 Jeff Law <law@redhat.com>
26764 PR rtl-optimization/49847
26765 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26766 are in different blocks.
26767 * doc/tm.texi (Condition Code Status): Update documention for
26768 relative locations of cc0-setter and cc0-user.
26770 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26773 * lra.c (lra_emit_add): Check SUBREG too.
26775 2014-02-27 Andreas Schwab <schwab@suse.de>
26777 * config/m68k/m68k.c (m68k_option_override): Disable
26778 -flive-range-shrinkage for classic m68k.
26779 (m68k_override_options_after_change): Likewise.
26781 2014-02-27 Marek Polacek <polacek@redhat.com>
26783 PR middle-end/59223
26784 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26785 -Wmaybe-uninitialized.
26787 2014-02-27 Alan Modra <amodra@gmail.com>
26790 * reload1.c (emit_input_reload_insns): When reload_override_in,
26791 set old to rl->in_reg when rl->in_reg is a subreg.
26793 2014-02-26 Richard Biener <rguenther@suse.de>
26796 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26798 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26800 * common/config/i386/predicates.md (const1256_operand): Remove.
26801 (const2356_operand): New.
26802 (const_1_to_2_operand): Remove.
26803 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26804 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26805 (*avx512pf_gatherpf<mode>sf): Ditto.
26806 (avx512pf_gatherpf<mode>df): Ditto.
26807 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26808 (*avx512pf_gatherpf<mode>df): Ditto.
26809 (avx512pf_scatterpf<mode>sf): Ditto.
26810 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26811 (*avx512pf_scatterpf<mode>sf): Ditto.
26812 (avx512pf_scatterpf<mode>df): Ditto.
26813 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26814 (*avx512pf_scatterpf<mode>df): Ditto.
26815 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26817 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26819 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26820 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26821 (_mm512_mask_testn_epi64_mask): Move to ...
26822 * config/i386/avx512cdintrin.h: Here.
26823 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26824 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26825 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26826 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26827 TARGET_AVX512F from TARGET_AVX512CD.
26829 2014-02-26 Richard Biener <rguenther@suse.de>
26832 * ipa.c (walk_polymorphic_call_targets): Properly guard
26833 call to inline_update_overall_summary.
26835 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26838 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26839 and latches only if requested. Fix latch if it is removed.
26840 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26841 LOOPS_HAVE_PREHEADERS.
26843 2014-02-25 Andrew Pinski <apinski@cavium.com>
26845 * builtins.c (expand_builtin_thread_pointer): Create a new target
26846 when the target is NULL.
26848 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26850 PR rtl-optimization/60317
26851 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26852 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26853 * lra-assigns.c: Include params.h.
26854 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26855 other reload pseudos considerations.
26857 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26859 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26860 to use canonical form for nor<mode>3.
26862 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26865 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26868 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26870 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26871 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26872 (ix86_handle_option): Handle OPT_mprefetchwt1.
26873 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26874 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26876 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26877 OPTION_MASK_ISA_PREFETCHWT1.
26878 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26879 (PTA_PREFETCHWT1): New.
26880 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26881 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26882 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26883 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26884 (*prefetch_avx512pf_<mode>_: Change into ...
26885 (*prefetch_prefetchwt1_<mode>: This.
26886 * config/i386/i386.opt (mprefetchwt1): New.
26887 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26888 (_mm_prefetch): Handle intent to write.
26889 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26891 2014-02-25 Richard Biener <rguenther@suse.de>
26893 PR middle-end/60291
26894 * emit-rtl.c (mem_attrs_htab): Remove.
26895 (mem_attrs_htab_hash): Likewise.
26896 (mem_attrs_htab_eq): Likewise.
26897 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26898 (init_emit_once): Do not allocate mem_attrs_htab.
26900 2014-02-25 Richard Biener <rguenther@suse.de>
26903 * lto-opts.c (lto_write_options): Output non-explicit conservative
26904 -fwrapv, -fno-trapv and -fno-strict-overflow.
26905 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26906 (run_gcc): And pass them through.
26908 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26910 * sel-sched.c (calculate_new_fences): New parameter ptime.
26911 Calculate it as a maximum over all fence cycles.
26912 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26913 Print the final schedule timing when sched_verbose.
26915 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26917 PR rtl-optimization/60292
26918 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26919 bit fot the fence instruction.
26921 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26923 * calls.h: Fix typo in comment.
26925 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26927 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26928 adjusting offsetable addresses.
26930 2014-02-24 Guozhi Wei <carrot@google.com>
26932 * sparseset.h (sparseset_pop): Fix the wrong index.
26934 2014-02-24 Walter Lee <walt@tilera.com>
26936 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26937 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26939 * common/config/tilegx/tilegx-common.c
26940 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26941 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26942 (LINK_SPEC): Ditto.
26943 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26944 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26945 (tilegx_gimplify_va_arg_expr): Handle big endian.
26946 (tilegx_expand_unaligned_load): Ditto.
26947 (tilegx_expand_unaligned_store): Ditto.
26948 (TARGET_RETURN_IN_MSB): New.
26949 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26950 (TARGET_ENDIAN_DEFAULT): New.
26951 (TARGET_BIG_ENDIAN): Handle big endian.
26952 (BYTES_BIG_ENDIAN): Ditto.
26953 (WORDS_BIG_ENDIAN): Ditto.
26954 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26955 (ENDIAN_SPEC): New.
26956 (EXTRA_SPECS): New.
26957 * config/tilegx/tilegx.md (extv): Handle big endian.
26959 (insn_st<n>): Ditto.
26960 (insn_st<n>_add<bitsuffix>): Ditto.
26961 (insn_stnt<n>): Ditto.
26962 (insn_stnt<n>_add<bitsuffix>):Ditto.
26963 (vec_interleave_highv8qi): Handle big endian.
26964 (vec_interleave_highv8qi_be): New.
26965 (vec_interleave_highv8qi_le): New.
26966 (insn_v1int_h): Handle big endian.
26967 (vec_interleave_lowv8qi): Handle big endian.
26968 (vec_interleave_lowv8qi_be): New.
26969 (vec_interleave_lowv8qi_le): New.
26970 (insn_v1int_l): Handle big endian.
26971 (vec_interleave_highv4hi): Handle big endian.
26972 (vec_interleave_highv4hi_be): New.
26973 (vec_interleave_highv4hi_le): New.
26974 (insn_v2int_h): Handle big endian.
26975 (vec_interleave_lowv4hi): Handle big endian.
26976 (vec_interleave_lowv4hi_be): New.
26977 (vec_interleave_lowv4hi_le): New.
26978 (insn_v2int_l): Handle big endian.
26979 (vec_interleave_highv2si): Handle big endian.
26980 (vec_interleave_highv2si_be): New.
26981 (vec_interleave_highv2si_le): New.
26982 (insn_v4int_h): Handle big endian.
26983 (vec_interleave_lowv2si): Handle big endian.
26984 (vec_interleave_lowv2si_be): New.
26985 (vec_interleave_lowv2si_le): New.
26986 (insn_v4int_l): Handle big endian.
26987 * config/tilegx/tilegx.opt (mbig-endian): New option.
26988 (mlittle-endian): New option.
26989 * doc/install.texi: Document tilegxbe-linux.
26990 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26992 2014-02-24 Martin Jambor <mjambor@suse.cz>
26995 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26996 there are no parameter descriptors.
26998 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
27000 PR rtl-optimization/60268
27001 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27002 initialization to ...
27003 (sched_rgn_init): ... here.
27004 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27006 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27008 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27011 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
27013 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27016 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27018 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27019 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27021 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27023 * config/microblaze/predicates.md: Add cmp_op predicate.
27024 * config/microblaze/microblaze.md: Add branch_compare instruction
27025 which uses cmp_op predicate and emits cmp insn before branch.
27026 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27027 to microblaze_expand_conditional_branch and consolidate logic.
27028 (microblaze_expand_conditional_branch): emit branch_compare
27029 insn instead of handling cmp op separate from branch insn.
27031 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27033 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27036 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27038 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27039 define_insn with define_expand and new define_insn
27040 *altivec_lve<VI_char>x_internal.
27041 (altivec_stve<VI_char>x): Replace define_insn with define_expand
27042 and new define_insn *altivec_stve<VI_char>x_internal.
27043 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27045 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27047 (altivec_expand_stvex_be): New function.
27049 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
27051 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27052 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27053 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27054 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27056 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
27059 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27060 instead of emit_move_insn.
27062 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27064 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27065 vspltw with vsldoi.
27066 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27067 gen_altivec_vsumsws.
27069 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27071 * config/rs6000/altivec.md (altivec_lvxl): Rename as
27072 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27073 (altivec_lvxl_<mode>): New define_expand incorporating
27074 -maltivec=be semantics where needed.
27075 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27076 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27077 semantics where needed.
27078 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27079 (altivec_stvx_<mode>): New define_expand incorporating
27080 -maltivec=be semantics where needed.
27081 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27082 VM2 iterator instead of V4SI.
27083 (altivec_stvxl_<mode>): New define_expand incorporating
27084 -maltivec=be semantics where needed.
27085 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27086 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27087 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27088 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27089 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27090 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27091 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27092 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27093 ALTIVEC_BUILTIN_STVXL.
27094 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27095 (altivec_expand_stvx_be): Likewise.
27096 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27097 (altivec_expand_lvx_be): Likewise.
27098 (altivec_expand_stvx_be): Likewise.
27099 (altivec_expand_builtin): Add cases for
27100 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27101 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27102 (altivec_init_builtins): Add definitions for
27103 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27104 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27106 2014-02-21 Catherine Moore <clm@codesourcery.com>
27108 * doc/invoke.texi (mvirt, mno-virt): Document.
27109 * config/mips/mips.opt (mvirt): New option.
27110 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27112 2014-02-21 Richard Biener <rguenther@suse.de>
27114 PR tree-optimization/60276
27115 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27116 (STMT_VINFO_MIN_NEG_DIST): New macro.
27117 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27118 STMT_VINFO_MIN_NEG_DIST.
27119 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27120 made for negative dependence distances still hold.
27122 2014-02-21 Richard Biener <rguenther@suse.de>
27124 PR middle-end/60291
27125 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27126 DECL_INITIAL for globals not in the current function context.
27128 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27130 PR tree-optimization/56490
27131 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27132 * tree-ssa-uninit.c: Include params.h.
27133 (compute_control_dep_chain): Add num_calls argument, return false
27134 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27135 num_calls to recursive call.
27136 (find_predicates): Change dep_chain into normal array,
27137 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27138 variable and adjust compute_control_dep_chain caller.
27139 (find_def_preds): Likewise.
27141 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
27143 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27144 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27146 2014-02-21 Nick Clifton <nickc@redhat.com>
27148 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27149 (pushhi1): Likewise.
27150 (popqi1): Add mode to pre_dec.
27151 (pophi1): Likewise.
27153 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27155 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27156 mode for mask of V8SFmode permutation.
27158 2014-02-20 Richard Henderson <rth@redhat.com>
27161 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27162 a new pseudo for OLDVAL.
27164 2014-02-20 Jakub Jelinek <jakub@redhat.com>
27167 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27168 gen_reg_rtx if d->testing_p.
27169 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27170 if d->testing_p and we will certainly return true.
27171 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
27174 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
27176 * emit-rtl.c (gen_reg_rtx): Assert that
27177 crtl->emit.regno_pointer_align_length is non-zero.
27179 2014-02-20 Richard Henderson <rth@redhat.com>
27182 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27183 on failure the store back into EXPECT.
27185 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
27186 Sandra Loosemore <sandra@codesourcery.com>
27188 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27189 * config/nios2/nios2.c (nios2_function_profiler): Add
27190 -fPIC (flag_pic == 2) support.
27191 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27192 (nios2_large_offset_p): New function.
27193 (nios2_unspec_reloc_p): Move up position, update to use
27194 nios2_large_offset_p.
27195 (nios2_unspec_address): Remove function.
27196 (nios2_unspec_offset): New function.
27197 (nios2_large_got_address): New function.
27198 (nios2_got_address): Add large offset support.
27199 (nios2_legitimize_tls_address): Update usage of removed and new
27201 (nios2_symbol_binds_local_p): New function.
27202 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27203 (nios2_legitimize_address): Update to use nios2_large_offset_p.
27204 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27205 (nios2_print_operand): Merge H/L processing, add hiadj/lo
27206 processing for (const (unspec ...)).
27207 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27209 2014-02-20 Richard Biener <rguenther@suse.de>
27211 * tree-cfg.c (replace_uses_by): Mark altered BBs before
27212 doing the substitution.
27213 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27215 2014-02-20 Martin Jambor <mjambor@suse.cz>
27218 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27219 info when checking whether lattices are bottom.
27221 2014-02-20 Richard Biener <rguenther@suse.de>
27223 PR middle-end/60221
27224 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27227 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
27230 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27231 parameter specifying the scaling.
27232 (inline_call): Update.
27233 (want_inline_recursively): Guard division by zero.
27234 (recursive_inlining): Update.
27235 * ipa-inline.h (clone_inlined_nodes): Update.
27237 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27240 * config/i386/i386.c (classify_argument): Pass structures of size
27241 64 bytes or less in register.
27243 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27244 Kirill Yukhin <kirill.yukhin@intel.com>
27246 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27247 (_mm_rcp28_round_ss): Ditto.
27248 (_mm_rsqrt28_round_sd): Ditto.
27249 (_mm_rsqrt28_round_ss): Ditto.
27250 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27251 (_mm_rcp14_round_ss): Ditto.
27252 (_mm_rsqrt14_round_sd): Ditto.
27253 (_mm_rsqrt14_round_ss): Ditto.
27254 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27255 the first input operand, get rid of match_dup.
27256 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27258 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27260 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27261 operand as the first input operand, set type attribute.
27262 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27263 Set type attribute.
27264 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27265 operand as the first input operand, set type attribute.
27267 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27269 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27272 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
27275 * config/i386/i386.c (construct_container): Remove TFmode check
27276 for X86_64_INTEGER_CLASS.
27278 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27281 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27282 only when -Wpsabi is enabled.
27284 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27287 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27288 passing arrays in registers are the same as for structs, so remove the
27289 special case for them.
27291 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27293 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27294 destination type, extract only the valid bits if the source type is not
27295 integral and has a different mode.
27297 2014-02-19 Richard Biener <rguenther@suse.de>
27300 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27303 2014-02-19 Richard Biener <rguenther@suse.de>
27306 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27307 (ipa_modify_call_arguments): Emit an argument load explicitely and
27308 preserve virtual SSA form there and for the replacement call.
27309 Do not update SSA form nor free dominance info.
27311 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27313 * ipa.c (function_and_variable_visibility): Also clear WEAK
27314 flag when disolving COMDAT_GROUP.
27316 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27318 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27319 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27320 not devirtualizing.
27321 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27322 do more sanity checks.
27323 (detect_type_change): Return true when giving up early.
27324 (compute_complex_assign_jump_func): Fix type parameter of
27325 ipa_set_ancestor_jf.
27326 (compute_complex_ancestor_jump_func): Likewise.
27327 (update_jump_functions_after_inlining): Fix updating of
27329 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27331 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27333 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27334 inline clones when edge disappears.
27336 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27339 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27340 Split 64-bit moves into 2 patterns. Do not allow the use of
27341 direct move for TDmode in little endian, since the decimal value
27342 has little endian bytes within a word, but the 64-bit pieces are
27343 ordered in a big endian fashion, and normal subreg's of TDmode are
27345 (mov<mode>_64bit_dm): Likewise.
27346 (movtd_64bit_nodm): Likewise.
27348 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27350 PR tree-optimization/60174
27351 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27352 statement of an SSA_NAME that occurs in an abnormal PHI node.
27354 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27357 * final.c (SEEN_BB): Remove.
27358 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27359 (final_scan_insn): Don't force_source_line on second
27360 NOTE_INSN_BASIC_BLOCK.
27362 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27365 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27366 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27367 (type_natural_mode): Warn ABI change when %zmm register is not
27368 available for AVX512F vector value passing.
27370 2014-02-18 Kai Tietz <ktietz@redhat.com>
27373 * config/i386/i386.c (ix86_expand_prologue): Use value in
27374 rax register as displacement when restoring %r10 or %rax.
27375 Fix wrong offset when restoring both registers.
27377 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27379 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27380 assertion with conditional return.
27382 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27383 Uros Bizjak <ubizjak@gmail.com>
27386 * config/i386/driver-i386.c (host_detect_local_cpu): If
27387 YMM state is not saved by the OS, also clear has_f16c. Move
27388 CPUID 0x80000001 handling before YMM state saving checking.
27390 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27392 PR rtl-optimization/58960
27393 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27394 factored out from ...
27395 (sched_init): ... here.
27396 (free_global_sched_pressure_data): New, factored out from ...
27397 (sched_finish): ... here.
27398 * sched-int.h (free_global_sched_pressure_data): Declare.
27399 * sched-rgn.c (nr_regions_initial): New static global.
27400 (haifa_find_rgns): Initialize it.
27401 (schedule_region): Disable sched-pressure for the newly
27404 2014-02-17 Richard Biener <rguenther@suse.de>
27406 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27407 release SSA defs of pattern stmts.
27409 2014-02-17 Richard Biener <rguenther@suse.de>
27411 * tree-inline.c (expand_call_inline): Release the virtual
27412 operand defined by the call we are about to inline.
27414 2014-02-17 Richard Biener <rguenther@suse.de>
27416 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27418 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27419 Ilya Tocar <ilya.tocar@intel.com>
27421 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27422 arguments order in builtin.
27423 (_mm512_permutexvar_epi64): Ditto.
27424 (_mm512_mask_permutexvar_epi64): Ditto
27425 (_mm512_maskz_permutexvar_epi32): Ditto
27426 (_mm512_permutexvar_epi32): Ditto
27427 (_mm512_mask_permutexvar_epi32): Ditto
27429 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27431 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27432 (p8_vmrgow): Likewise.
27434 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27436 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27439 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27442 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27443 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27444 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27445 using direct move instructions on ISA 2.07. Also adjust
27446 instruction length for 64-bit.
27447 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27448 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27450 2014-02-15 Alan Modra <amodra@gmail.com>
27454 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27455 find_replacement on parts of insn rtl that might be reloaded.
27457 2014-02-15 Richard Biener <rguenther@suse.de>
27459 PR tree-optimization/60183
27460 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27461 (tree_ssa_phiprop): Calculate and free post-dominators.
27463 2014-02-14 Jeff Law <law@redhat.com>
27465 PR rtl-optimization/60131
27466 * ree.c (get_extended_src_reg): New function.
27467 (combine_reaching_defs): Use it rather than assuming location of REG.
27468 (find_and_remove_re): Verify first operand of extension is
27469 a REG before adding the insns to the copy list.
27471 2014-02-14 Roland McGrath <mcgrathr@google.com>
27473 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27474 * configure: Regenerated.
27475 * config.in: Regenerated.
27476 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27477 instead of ASM_SHORT.
27479 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27480 Richard Earnshaw <rearnsha@arm.com>
27482 PR rtl-optimization/59535
27483 * lra-constraints.c (process_alt_operands): Encourage alternative
27484 when unassigned pseudo class is superset of the alternative class.
27485 (inherit_reload_reg): Don't inherit when optimizing for code size.
27486 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27487 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27488 modes not less than 4 for Thumb1.
27490 2014-02-14 Kyle McMartin <kyle@redhat.com>
27493 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27495 2014-02-14 Richard Biener <rguenther@suse.de>
27497 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27498 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27499 Do not strip INDIRECT_REFs.
27501 2014-02-14 Richard Biener <rguenther@suse.de>
27504 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27505 DECL_FUNCTION_SPECIFIC_TARGET.
27506 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27507 * tree-streamer-out.c (pack_ts_target_option): Remove.
27508 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27509 (write_ts_function_decl_tree_pointers): Do not stream
27510 DECL_FUNCTION_SPECIFIC_TARGET.
27511 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27512 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27513 (lto_input_ts_function_decl_tree_pointers): Do not stream
27514 DECL_FUNCTION_SPECIFIC_TARGET.
27516 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27518 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27519 (get_initial_def_for_induction, vectorizable_induction): Ignore
27520 debug stmts when looking for exit_phi.
27521 (vectorizable_live_operation): Fix up condition.
27523 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27525 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27526 nreverse() because it changes the content of original tree list.
27528 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27530 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27531 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27533 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27535 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27536 GNU coding standards.
27538 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27541 * dwarf2out.c (gen_subprogram_die): Don't call
27542 add_calling_convention_attribute if subr_die is old_die.
27544 2014-02-13 Sharad Singhai <singhai@google.com>
27546 * doc/optinfo.texi: Fix order of nodes.
27548 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27550 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27551 operands[2], not operands[3].
27553 2014-02-13 Richard Biener <rguenther@suse.de>
27556 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27557 mention the possibility of an in-tree build.
27558 (CLooG): Update recommended version to 0.18.1, mention the
27559 possibility of an in-tree build and clarify that the ISL
27560 bundled with CLooG does not work.
27562 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27565 * expr.c (compress_float_constant): If x is a hard register,
27566 extend into a pseudo and then move to x.
27568 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27570 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27571 caused by bad second argument to warning_at() with -mhotpatch and
27572 nested functions (e.g. with gfortran).
27574 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27576 * opts.c (option_name): Remove "enabled by default" rider.
27578 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27580 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27582 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27583 Uros Bizjak <ubizjak@gmail.com>
27586 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27587 * configure: Regenerated.
27589 2014-02-12 Richard Biener <rguenther@suse.de>
27591 * vec.c (vec_prefix::calculate_allocation): Move as
27592 inline variant to vec.h.
27593 (vec_prefix::calculate_allocation_1): New out-of-line version.
27594 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27595 (vec_prefix::m_has_auto_buf): Rename to ...
27596 (vec_prefix::m_using_auto_storage): ... this.
27597 (vec_prefix::calculate_allocation): Inline the easy cases
27598 and dispatch to calculate_allocation_1 which doesn't need the
27600 (va_heap::reserve): Use gcc_checking_assert.
27601 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27602 m_using_auto_storage.
27603 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27605 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27606 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27607 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27609 2014-02-12 Richard Biener <rguenther@suse.de>
27611 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27612 when we found a dependence.
27614 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27616 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27618 (maybe_fold_stmt): ... into this new function.
27619 * omp-low.c (lower_omp): Update comment.
27621 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27624 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27627 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27629 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27630 identifiers in comments.
27631 (cortexa53_extra_costs): Likewise.
27632 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27633 (cortexa7_extra_costs): Likewise.
27634 (cortexa12_extra_costs): Likewise.
27635 (cortexa15_extra_costs): Likewise.
27636 (v7m_extra_costs): Likewise.
27638 2014-02-12 Richard Biener <rguenther@suse.de>
27640 PR middle-end/60092
27641 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27642 of posix_memalign being successful.
27643 (lower_stmt): Restrict lowering of posix_memalign to when
27644 -ftree-bit-ccp is enabled.
27646 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27648 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27650 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27652 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27654 PR rtl-optimization/60116
27655 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27656 other_insn once the combination has been validated.
27658 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27661 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27663 * ipa-devirt.c: Include demangle.h
27664 (odr_violation_reported): New static variable.
27665 (add_type_duplicate): Update odr_violations.
27666 (maybe_record_node): Add completep parameter; update it.
27667 (record_target_from_binfo): Add COMPLETEP parameter;
27668 update it as needed.
27669 (possible_polymorphic_call_targets_1): Likewise.
27670 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27671 rename FINAL to COMPLETE.
27672 (record_targets_from_bases): Sanity check we found the binfo;
27673 fix COMPLETEP updating.
27674 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27675 parameter, fix computing of COMPLETEP.
27676 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27677 at LTO time do demangling.
27678 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27679 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27681 (gimple_get_virt_method_for_binfo): Likewise.
27682 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27683 gimple_get_virt_method_for_vtable): Update prototypes.
27685 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27688 * genautomata.c (add_presence_absence): Fix typo with
27689 {final_}presence_list.
27691 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27694 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27695 for VSX/Altivec vectors that land in GPR registers.
27697 2014-02-11 Richard Henderson <rth@redhat.com>
27698 Jakub Jelinek <jakub@redhat.com>
27701 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27702 around drhs if type conversion to lacc->type is not useless.
27704 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27706 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27708 (cortex-a57.cortex-a53): Likewise.
27709 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27711 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27713 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27716 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27718 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27719 add_options_for_arm_vfp3.
27721 2014-02-11 Jeff Law <law@redhat.com>
27723 PR middle-end/54041
27724 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27725 object with an undesirable mode.
27727 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27730 * config/i386/sol2-9.h: New file.
27731 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27732 *-*-solaris2.9*): Use it.
27734 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27736 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27737 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27739 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27741 * config/microblaze/microblaze.c: Extend mcpu version format
27743 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27745 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27747 2014-02-10 Richard Henderson <rth@redhat.com>
27750 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27751 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27752 ms-abi vs -mno-accumulate-outgoing-args.
27753 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27754 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27757 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27759 PR middle-end/60080
27760 * cfgexpand.c (expand_asm_operands): Attach source location to
27761 ASM_INPUT rtx objects.
27762 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27764 2014-02-10 Nick Clifton <nickc@redhat.com>
27766 * config/mn10300/mn10300.c (popcount): New function.
27767 (mn10300_expand_prologue): Include saved registers in stack usage
27770 2014-02-10 Jeff Law <law@redhat.com>
27772 PR middle-end/52306
27773 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27774 when changing the SET_DEST of a prior insn to avoid an input reload.
27776 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27778 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27779 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27780 -mcall-openbsd, or -mcall-linux.
27781 (CC1_ENDIAN_BIG_SPEC): Remove.
27782 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27783 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27784 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27785 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27786 and %cc1_endian_default.
27787 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27789 2014-02-10 Richard Biener <rguenther@suse.de>
27791 PR tree-optimization/60115
27792 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27793 MEM_REF handling. Properly verify that the accesses are not
27794 out of the objects bound.
27796 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27798 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27801 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27803 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27804 proper constants and fix formatting.
27805 (possible_polymorphic_call_targets): Fix formatting.
27807 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27808 Ilya Tocar <ilya.tocar@intel.com>
27810 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27811 (_mm512_loadu_epi32): Renamed into...
27812 (_mm512_loadu_si512): This.
27813 (_mm512_storeu_epi32): Renamed into...
27814 (_mm512_storeu_si512): This.
27815 (_mm512_maskz_ceil_ps): Removed.
27816 (_mm512_maskz_ceil_pd): Ditto.
27817 (_mm512_maskz_floor_ps): Ditto.
27818 (_mm512_maskz_floor_pd): Ditto.
27819 (_mm512_floor_round_ps): Ditto.
27820 (_mm512_floor_round_pd): Ditto.
27821 (_mm512_ceil_round_ps): Ditto.
27822 (_mm512_ceil_round_pd): Ditto.
27823 (_mm512_mask_floor_round_ps): Ditto.
27824 (_mm512_mask_floor_round_pd): Ditto.
27825 (_mm512_mask_ceil_round_ps): Ditto.
27826 (_mm512_mask_ceil_round_pd): Ditto.
27827 (_mm512_maskz_floor_round_ps): Ditto.
27828 (_mm512_maskz_floor_round_pd): Ditto.
27829 (_mm512_maskz_ceil_round_ps): Ditto.
27830 (_mm512_maskz_ceil_round_pd): Ditto.
27831 (_mm512_expand_pd): Ditto.
27832 (_mm512_expand_ps): Ditto.
27833 * config/i386/i386.c (ix86_builtins): Remove
27834 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27835 (bdesc_args): Ditto.
27836 * config/i386/predicates.md (const1256_operand): New.
27837 (const_1_to_2_operand): Ditto.
27838 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27839 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27840 (*avx512pf_gatherpf<mode>sf): Ditto.
27841 (avx512pf_gatherpf<mode>df): Ditto.
27842 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27843 (*avx512pf_gatherpf<mode>df): Ditto.
27844 (avx512pf_scatterpf<mode>sf): Ditto.
27845 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27846 (*avx512pf_scatterpf<mode>sf): Ditto.
27847 (avx512pf_scatterpf<mode>df): Ditto.
27848 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27849 (*avx512pf_scatterpf<mode>df): Ditto.
27850 (avx512f_expand<mode>): Removed.
27851 (<shift_insn><mode>3<mask_name>): Change predicate type.
27853 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27855 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27856 not at the end of datarefs vector use ordered_remove to avoid
27857 reordering datarefs vector.
27860 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27861 mark local addressable non-static vars as GOVD_PRIVATE
27862 instead of GOVD_LOCAL.
27863 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27864 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27867 PR middle-end/60092
27868 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27869 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27870 assume_aligned or alloc_align attributes.
27871 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27872 arguments. Handle also assume_aligned and alloc_align attributes.
27873 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27874 calls to functions with assume_aligned or alloc_align attributes.
27875 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27877 2014-02-08 Terry Guo <terry.guo@arm.com>
27879 * doc/invoke.texi: Document ARM -march=armv7e-m.
27881 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27883 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27884 flag on __cilkrts_rethrow builtin.
27887 * ipa-cp.c (determine_versionability): Fail at -O0
27888 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27889 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27892 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27895 * tree-inline.c (copy_forbidden): Fail for
27896 __attribute__((optimize (0))) functions.
27898 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27900 * varpool.c: Include pointer-set.h.
27901 (varpool_remove_unreferenced_decls): Variables in other partitions
27902 will not be output; be however careful to not lose information
27903 about partitioning.
27905 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27907 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27908 lookup in the vtable constructor.
27910 2014-02-07 Jeff Law <law@redhat.com>
27913 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27914 define_insn_and_split.
27916 * ipa-inline.c (inline_small_functions): Fix typos.
27918 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27920 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27921 (s390_can_use_return_insn): Declare.
27922 * config/s390/s390.h (EPILOGUE_USES): Define.
27923 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27925 (s390_chunkify_start): Handle return JUMP_LABELs.
27926 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27927 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27928 (s390_can_use_return_insn): New functions.
27929 (s390_fix_long_loop_prediction): Handle conditional returns.
27930 (TARGET_SET_UP_BY_PROLOGUE): Define.
27931 * config/s390/s390.md (ANY_RETURN): New code iterator.
27932 (*creturn, *csimple_return, return, simple_return): New patterns.
27934 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27936 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27937 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27938 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27939 REG_CFA_RESTORE list when deciding not to restore a register.
27941 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27943 * config/s390/s390.c: Include tree-pass.h and context.h.
27944 (s390_early_mach): New function, split out from...
27945 (s390_emit_prologue): ...here.
27946 (pass_data_s390_early_mach): New pass structure.
27947 (pass_s390_early_mach): New class.
27948 (s390_option_override): Create and register early_mach pass.
27949 Move to end of file.
27951 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27953 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27954 to match for the exit block.
27956 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27958 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27959 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27960 Reject misaligned operands.
27962 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27964 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27966 2014-02-07 Richard Biener <rguenther@suse.de>
27968 PR middle-end/60092
27969 * gimple-low.c (lower_builtin_posix_memalign): New function.
27970 (lower_stmt): Call it to lower posix_memalign in a way
27971 to make alignment info accessible.
27973 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27976 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27977 __builtin_setjmp_receiver.
27979 2014-02-07 Richard Biener <rguenther@suse.de>
27981 PR middle-end/60092
27982 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27983 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27984 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27985 Handle BUILT_IN_POSIX_MEMALIGN.
27986 (find_func_clobbers): Likewise.
27987 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27988 (call_may_clobber_ref_p_1): Likewise.
27990 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27993 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27996 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27999 * lto-cgraph.c (lto_output_node): Use
28000 symtab_get_symbol_partitioning_class.
28001 (lto_output_varpool_node): likewise.
28002 (symtab_get_symbol_partitioning_class): Move here from
28003 lto/lto-partition.c
28004 * cgraph.h (symbol_partitioning_class): Likewise.
28005 (symtab_get_symbol_partitioning_class): Declare.
28007 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28009 * ggc.h (ggc_internal_cleared_alloc): New macro.
28010 * vec.h (vec_safe_copy): Handle memory stats.
28011 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28012 * target-globals.c (save_target_globals): Likewise.
28014 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28017 * expr.c (emit_move_resolve_push): Export; be bit more selective
28018 on when to clear alias set.
28019 * expr.h (emit_move_resolve_push): Declare.
28020 * function.h (struct function): Add tail_call_marked.
28021 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28022 * config/i386/i386-protos.h (ix86_expand_push): Remove.
28023 * config/i386/i386.md (TImode move expander): De not call
28025 (FP push expanders): Preserve memory attributes.
28026 * config/i386/sse.md (push<mode>1): Remove.
28027 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28028 (ix86_expand_push): Remove.
28029 * config/i386/mmx.md (push<mode>1): Remove.
28031 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28033 PR rtl-optimization/60030
28034 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28035 lopart with paradoxical subreg before shifting it up by hprec.
28037 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28039 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28040 Remove extra newline at end of file.
28041 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28042 (arm_issue_rate): Handle cortexa57.
28043 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28044 (cortex-a57.cortex-a53): Likewise.
28046 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28049 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28050 don't record in REG_FRAME_RELATED_EXPR registers not set in that
28052 (arm_expand_prologue): Adjust all callers.
28053 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28054 info, registers also at the lowest numbered registers side. Use
28055 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28059 * var-tracking.c (adjust_mems): Before adding a SET to
28060 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28062 2014-02-06 Alan Modra <amodra@gmail.com>
28065 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28066 change SDmode to DDmode when lra_in_progress.
28068 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28070 PR middle-end/59150
28071 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28072 free_data_ref on the dr first, and before goto again also set dr
28073 to the next dr. For simd_lane_access, free old datarefs[i] before
28074 overwriting it. For get_vectype_for_scalar_type failure, don't
28075 free_data_ref if simd_lane_access.
28077 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28080 * tree.h (opts_for_fn): New inline function.
28081 (opt_for_fn): Define.
28082 * config/i386/i386.c (ix86_function_regparm): Use
28083 opt_for_fn (decl, optimize) instead of optimize.
28085 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
28087 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28088 for SYMBOL_REF in large memory model.
28090 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28092 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28093 and crypto support.
28094 (cortex-a57): Likewise.
28095 (cortex-a57.cortex-a53): Likewise.
28097 2014-02-06 Yury Gribov <y.gribov@samsung.com>
28098 Kugan Vivekanandarajah <kuganv@linaro.org>
28100 * config/arm/arm.c (arm_vector_alignment_reachable): Check
28102 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28104 2014-02-06 Richard Biener <rguenther@suse.de>
28106 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28107 set_loop_copy and initialize_original_copy_tables.
28109 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
28111 * config/aarch64/aarch64-simd.md
28112 (aarch64_ashr_simddi): Change QI to SI.
28114 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28115 Jakub Jelinek <jakub@redhat.com>
28117 PR middle-end/60013
28118 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28121 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28123 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28124 CODE_FOR_altivec_vpku[hw]um to
28125 CODE_FOR_altivec_vpku[hw]um_direct.
28126 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28127 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28128 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28129 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28131 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28133 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28134 generation for -maltivec=be.
28135 (altivec_vsumsws): Simplify redundant test.
28137 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28139 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28140 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28141 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28142 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28143 gen_altivec_vpkuwum.
28144 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28146 (altivec_vpks<VI_char>ss): Likewise.
28147 (altivec_vpks<VI_char>us): Likewise.
28148 (altivec_vpku<VI_char>us): Likewise.
28149 (altivec_vpku<VI_char>um): Likewise.
28150 (altivec_vpku<VI_char>um_direct): New (copy of
28151 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28153 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28154 target is little endian and -maltivec=be is not specified.
28155 (*altivec_vupkhs<VU_char>_direct): New (copy of
28156 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28157 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28158 target is little endian and -maltivec=be is not specified.
28159 (*altivec_vupkls<VU_char>_direct): New (copy of
28160 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28161 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28162 little endian and -maltivec=be is not specified.
28163 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28164 little endian and -maltivec=be is not specified.
28166 2014-02-05 Richard Henderson <rth@redhat.com>
28169 * combine-stack-adj.c: Revert r206943.
28170 * sched-int.h (struct deps_desc): Add last_args_size.
28171 * sched-deps.c (init_deps): Initialize it.
28172 (sched_analyze_insn): Add OUTPUT dependencies between insns that
28173 contain REG_ARGS_SIZE notes.
28175 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28177 * lto-cgraph.c (asm_nodes_output): Make global.
28178 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28179 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28180 (driver_handle_option): Handle OPT_fwpa.
28182 2014-02-05 Jakub Jelinek <jakub@redhat.com>
28185 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28186 a comment typo and formatting issue. If odr_hash hasn't been
28187 created, return vNULL and set *completep to false.
28189 PR middle-end/57499
28190 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28191 bb with no successors.
28193 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
28196 * doc/invoke.texi (-march): Clarify documentation for ARM.
28197 (-mtune): Likewise.
28200 2014-02-05 Richard Biener <rguenther@suse.de>
28202 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28203 when not vectorizing because of too many alias checks.
28204 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28205 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28207 2014-02-05 Nick Clifton <nickc@redhat.com>
28209 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28210 accept extended registers in any mode when compiling for the MN10300.
28212 2014-02-05 Yury Gribov <y.gribov@samsung.com>
28214 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28215 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28216 sanitization attributes.
28217 (can_inline_edge_p): Likewise.
28218 (sanitize_attrs_match_for_inline_p): New function.
28220 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28222 * ipa-prop.c (detect_type_change): Shor circuit testing of
28223 type changes on THIS pointer.
28225 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
28228 * config/pa/pa.c (legitimize_tls_address): Return original address
28229 if not passed a SYMBOL_REF rtx.
28230 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28232 (pa_emit_move_sequence): Simplify TLS source operands.
28233 (pa_legitimate_constant_p): Reject all TLS constants.
28234 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28235 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28237 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28239 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28240 groups when we know they are controlled by LTO.
28241 * varasm.c (default_binds_local_p_1): If object is in other partition,
28242 it will be resolved locally.
28244 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28246 * config/host-linux.c (linux_gt_pch_use_address): Don't
28247 use SSIZE_MAX because it is not always defined.
28249 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
28252 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28253 threshold for pseudo splitting.
28254 (update_ebb_live_info): Process call argument hard registers and
28255 hard registers from insn definition too.
28256 (max_small_class_regs_num): New constant.
28257 (inherit_in_ebb): Update live hard regs through EBBs. Update
28258 reloads_num only for small register classes. Don't split for
28261 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
28264 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28267 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28269 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28270 visibility is safe.
28272 2014-02-04 Marek Polacek <polacek@redhat.com>
28274 * gdbinit.in (pel): Define.
28276 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28278 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28281 2014-02-04 Richard Biener <rguenther@suse.de>
28284 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28285 in function context local.
28286 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28287 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28288 similar to LTO_imported_decl_ref.
28290 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28292 PR tree-optimization/60002
28293 * cgraphclones.c (build_function_decl_skip_args): Clear
28294 DECL_LANG_SPECIFIC.
28296 PR tree-optimization/60023
28297 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28298 false to gsi_replace.
28299 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28300 has been in some EH region and vec_stmt could throw, add
28301 vec_stmt into the same EH region.
28302 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28303 has no lhs, ignore it.
28304 * internal-fn.c (expand_MASK_LOAD): Likewise.
28307 * tree-inline.c (copy_forbidden): Fail for
28308 __attribute__((optimize (0))) functions.
28311 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28312 is set, copy one less argument.
28313 (expand_simd_clones): Don't subtract clone_info->inbranch
28314 from simd_clone_struct_alloc argument.
28316 PR rtl-optimization/57915
28317 * recog.c (simplify_while_replacing): If all unary/binary/relational
28318 operation arguments are constant, attempt to simplify those.
28320 PR middle-end/59261
28321 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28322 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28324 2014-02-04 Richard Biener <rguenther@suse.de>
28326 PR tree-optimization/60012
28327 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28328 TBAA disambiguation to all DDRs.
28330 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28333 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28334 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28336 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28339 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28341 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28343 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28344 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28346 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28349 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28350 to figure out targets of polymorphic calls with known decl.
28351 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28352 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28353 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28354 (get_polymorphic_call_info): ... here.
28355 (get_polymorphic_call_info_from_invariant): New function.
28357 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28359 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28360 lookup via vtable pointer; check for type consistency
28361 and turn inconsitent facts into UNREACHABLE.
28362 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28363 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28364 type inconsistent querries; return UNREACHABLE instead.
28366 2014-02-03 Richard Henderson <rth@twiddle.net>
28369 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28370 already processed this node.
28371 (normalize_one_pred_1): Pass along mark_set.
28372 (normalize_one_pred): Create and destroy a pointer_set_t.
28373 (normalize_one_pred_chain): Likewise.
28375 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28377 PR gcov-profile/58602
28378 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28380 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28383 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28384 -fno-devirtualize; try to devirtualize by the knowledge of
28385 virtual table pointer given by aggregate propagation.
28386 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28387 (ipa_print_node_jump_functions): Dump also offset that
28388 is relevant for polymorphic calls.
28389 (determine_known_aggregate_parts): Add arg_type parameter; use it
28390 instead of determining the type from pointer type.
28391 (ipa_compute_jump_functions_for_edge): Update call of
28392 determine_known_aggregate_parts.
28393 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28394 (gimple_get_virt_method_for_binfo): ... here; simplify using
28395 vtable_pointer_value_to_vtable.
28396 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28397 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28398 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28399 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28401 (vtable_pointer_value_to_binfo): ... here.
28402 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28404 2014-02-03 Teresa Johnson <tejohnson@google.com>
28406 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28407 redef of outer loop index variable.
28409 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28413 * doc/extend.texi (Function Attributes): Typo.
28415 2014-02-03 Cong Hou <congh@google.com>
28417 PR tree-optimization/60000
28418 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28419 if the vectorized statement is a store. A store statement can only
28420 appear at the end of pattern statements.
28422 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28424 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28425 (ix86_option_override_internal): Default long double to 64-bit for
28426 32-bit Bionic and to 128-bit for 64-bit Bionic.
28428 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28429 TARGET_LONG_DOUBLE_128 is true.
28430 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28432 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28433 (mlong-double-64): Negate -mlong-double-128.
28434 (mlong-double-128): New option.
28436 * config/i386/i386-c.c (ix86_target_macros): Define
28437 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28439 * doc/invoke.texi: Document -mlong-double-128.
28441 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28443 PR rtl-optimization/60024
28444 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28446 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28448 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28450 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28452 PR rtl-optimization/57662
28453 * sel-sched.c (code_motion_path_driver): Do not mark already not
28454 existing blocks in the visiting bitmap.
28456 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28458 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28459 on the insn being emitted.
28461 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28462 Will Deacon <will.deacon@arm.com>
28464 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28466 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28468 * config/arm/arm-tables.opt: Regenerate.
28470 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28472 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28473 for vector types other than V16QImode.
28474 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28475 define_expand, and call altivec_expand_vec_perm_le when producing
28476 code with little endian element order.
28477 (*altivec_vperm_<mode>_internal): New insn having previous
28478 behavior of altivec_vperm_<mode>.
28479 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28480 altivec_expand_vec_perm_le when producing code with little endian
28482 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28483 behavior of altivec_vperm_<mode>_uns.
28485 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28487 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28488 (altivec_vsumsws): Add handling for -maltivec=be with a little
28490 (altivec_vsumsws_direct): New.
28491 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28492 gen_altivec_vsumsws.
28494 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28496 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28497 vtable_pointer_value_to_binfo): New functions.
28498 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28499 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28501 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28503 * config/nios2/nios2.md (load_got_register): Initialize GOT
28504 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28505 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28507 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28509 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28510 preserverd by passthrough, do not propagate the type.
28512 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28514 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28515 (mips_atomic_assign_expand_fenv): New function.
28516 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28518 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28520 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28521 (__builtin_mips_set_fcsr): Likewise.
28522 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28523 MIPS_USI_FTYPE_VOID.
28524 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28525 (mips16_expand_set_fcsr): Likewise.
28526 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28527 (mips16_set_fcsr_stub): Likewise.
28528 (mips16_get_fcsr_one_only_stub): New class.
28529 (mips16_set_fcsr_one_only_stub): Likewise.
28530 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28531 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28532 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28533 (hard_float): New availability predicate.
28534 (mips_builtins): Add get_fcsr and set_fcsr.
28535 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28536 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28537 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28538 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28539 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28542 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28544 * config/mips/mips.c (mips_one_only_stub): New class.
28545 (mips_need_mips16_rdhwr_p): Replace with...
28546 (mips16_rdhwr_stub): ...this new variable.
28547 (mips16_stub_call_address): New function.
28548 (mips16_rdhwr_one_only_stub): New class.
28549 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28550 (mips_output_mips16_rdhwr): Delete.
28551 (mips_finish_stub): New function.
28552 (mips_code_end): Use it to handle rdhwr stubs.
28554 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28557 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28558 when calculating size of integer atomic types.
28560 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28562 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28564 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28566 PR tree-optimization/60003
28567 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28568 * profile.c (branch_prob): Use gimple_call_builtin_p
28569 to check for BUILT_IN_SETJMP_RECEIVER.
28570 * tree-inline.c (copy_bb): Call notice_special_calls.
28572 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28575 * lra-constraints.c (process_alt_operands): Update reload_sum only
28578 2014-01-31 Richard Henderson <rth@redhat.com>
28580 PR middle-end/60004
28581 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28582 until after else_eh is processed.
28584 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28586 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28587 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28588 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28589 in smmintrin.h, remove them.
28590 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28591 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28592 * config/i386/i386.md (ROUND_SAE): Fix value.
28593 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28594 (const48_operand): New.
28595 * config/i386/subst.md (round), (round_expand): Use
28596 const_4_or_8_to_11_operand.
28597 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28599 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28601 * config/i386/constraints.md (Yk): Swap meaning with k.
28602 * config/i386/i386.md (movhi_internal): Change Yk to k.
28603 (movqi_internal): Ditto.
28604 (*k<logic><mode>): Ditto.
28607 (kandn<mode>): Ditto.
28608 (*<code>hi_1): Ditto.
28609 (*<code>qi_1): Ditto.
28610 (kxnor<mode>): Ditto.
28611 (kortestzhi): Ditto.
28612 (kortestchi): Ditto.
28614 (*one_cmplhi2_1): Ditto.
28615 (*one_cmplqi2_1): Ditto.
28616 * config/i386/sse.md (): Change k to Yk.
28617 (avx512f_load<mode>_mask): Ditto.
28618 (avx512f_blendm<mode>): Ditto.
28619 (avx512f_store<mode>_mask): Ditto.
28620 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28621 (avx512f_storedqu<mode>_mask): Ditto.
28622 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28624 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28625 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28626 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28627 (avx512f_maskcmp<mode>3): Ditto.
28628 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28629 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28630 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28631 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28632 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28633 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28634 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28635 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28636 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28637 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28638 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28639 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28640 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28641 (vec_extract_lo_<mode>_maskm): Ditto.
28642 (vec_extract_hi_<mode>_maskm): Ditto.
28643 (avx512f_vternlog<mode>_mask): Ditto.
28644 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28645 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28646 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28647 (avx512f_<code>v8div16qi2_mask): Ditto.
28648 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28649 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28650 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28651 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28652 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28653 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28654 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28655 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28656 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28657 (avx512cd_maskb_vec_dupv8di): Ditto.
28658 (avx512cd_maskw_vec_dupv16si): Ditto.
28659 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28660 (avx512f_vpermi2var<mode>3_mask): Ditto.
28661 (avx512f_vpermi2var<mode>3_mask): Ditto.
28662 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28663 (*avx512f_gathersi<mode>): Ditto.
28664 (*avx512f_gathersi<mode>_2): Ditto.
28665 (*avx512f_gatherdi<mode>): Ditto.
28666 (*avx512f_gatherdi<mode>_2): Ditto.
28667 (*avx512f_scattersi<mode>): Ditto.
28668 (*avx512f_scatterdi<mode>): Ditto.
28669 (avx512f_compress<mode>_mask): Ditto.
28670 (avx512f_compressstore<mode>_mask): Ditto.
28671 (avx512f_expand<mode>_mask): Ditto.
28672 * config/i386/subst.md (mask): Change k to Yk.
28673 (mask_scalar_merge): Ditto.
28676 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28678 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28680 2014-01-31 Richard Biener <rguenther@suse.de>
28682 PR middle-end/59990
28683 * builtins.c (fold_builtin_memory_op): Make sure to not
28684 use a floating-point mode or a boolean or enumeral type for
28685 the copy operation.
28687 2014-01-30 DJ Delorie <dj@redhat.com>
28689 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28690 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28691 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28692 whenever main() has an epilogue.
28694 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28696 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28697 unused variable "field".
28698 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28699 (vsx_mergeh_<mode>): Likewise.
28700 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28701 (altivec_vmrghh): Likewise.
28702 (altivec_vmrghw): Likewise.
28703 (altivec_vmrglb): Likewise.
28704 (altivec_vmrglh): Likewise.
28705 (altivec_vmrglw): Likewise.
28706 (altivec_vspltb): Add missing uses.
28707 (altivec_vsplth): Likewise.
28708 (altivec_vspltw): Likewise.
28709 (altivec_vspltsf): Likewise.
28711 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28714 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28715 frame related instructions.
28717 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28719 PR rtl-optimization/59959
28720 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28721 any reload of register whose subreg is invalid.
28723 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28725 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28726 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28727 Add missing return type - void.
28729 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28731 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28732 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28733 remove element index adjustment for endian (now handled in vsx.md
28735 (altivec_expand_vec_perm_const): Use
28736 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28737 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28738 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28739 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28740 define_expand and a new define_insn *altivec_vspltb_internal;
28741 adjust for -maltivec=be on a little endian target.
28742 (altivec_vspltb_direct): New.
28743 (altivec_vsplth): Divide into a define_expand and a new
28744 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28745 little endian target.
28746 (altivec_vsplth_direct): New.
28747 (altivec_vspltw): Divide into a define_expand and a new
28748 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28749 little endian target.
28750 (altivec_vspltw_direct): New.
28751 (altivec_vspltsf): Divide into a define_expand and a new
28752 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28753 a little endian target.
28755 2014-01-30 Richard Biener <rguenther@suse.de>
28757 PR tree-optimization/59993
28758 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28759 can propagate form the earlier stmt and avoid the transform
28760 when the intermediate result is needed.
28762 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28764 * README.Portability: Fix typo.
28766 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28768 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28769 comparison_operator with ordered_comparison_operator.
28771 2014-01-30 Nick Clifton <nickc@redhat.com>
28773 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28774 Rename to mn10300_store_multiple_regs.
28775 * config/mn10300/mn10300.c: Likewise.
28776 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28777 store_multiple_regs.
28778 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28779 Call mn10300_store_multiple_regs.
28781 2014-01-30 Nick Clifton <nickc@redhat.com>
28782 DJ Delorie <dj@redhat.com>
28784 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28785 %fp 2 to keep registers after it properly word-aligned.
28786 (rl78_alloc_physical_registers_umul): Handle the case where both
28787 input operands are the same.
28789 2014-01-30 Richard Biener <rguenther@suse.de>
28791 PR tree-optimization/59903
28792 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28795 2014-01-30 Jason Merrill <jason@redhat.com>
28798 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28801 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28803 2014-01-30 Richard Biener <rguenther@suse.de>
28805 PR tree-optimization/59951
28806 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28808 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28811 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28812 SFmode to DFmode case.
28814 2014-01-29 DJ Delorie <dj@redhat.com>
28816 * config/msp430/msp430.opt (-minrt): New.
28817 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28819 (ENDFILE_SPEC): Likewise.
28821 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28823 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28824 (estimate_function_body_sizes): Use it.
28826 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28829 * dwarf2out.c (is_cxx_auto): New.
28830 (is_base_type): Use it.
28831 (gen_type_die_with_usage): Likewise.
28833 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28835 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28836 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28837 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28838 -maltivec=be with LE targets.
28839 (vsx_mergeh_<mode>): Likewise.
28840 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28841 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28842 (altivec_vmrghb): Replace with define_expand and new
28843 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28844 (altivec_vmrghb_direct): New define_insn.
28845 (altivec_vmrghh): Replace with define_expand and new
28846 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28847 (altivec_vmrghh_direct): New define_insn.
28848 (altivec_vmrghw): Replace with define_expand and new
28849 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28850 (altivec_vmrghw_direct): New define_insn.
28851 (*altivec_vmrghsf): Adjust for endianness.
28852 (altivec_vmrglb): Replace with define_expand and new
28853 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28854 (altivec_vmrglb_direct): New define_insn.
28855 (altivec_vmrglh): Replace with define_expand and new
28856 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28857 (altivec_vmrglh_direct): New define_insn.
28858 (altivec_vmrglw): Replace with define_expand and new
28859 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28860 (altivec_vmrglw_direct): New define_insn.
28861 (*altivec_vmrglsf): Adjust for endianness.
28862 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28863 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28864 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28865 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28866 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28867 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28868 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28869 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28871 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28873 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28874 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28877 2014-01-29 Richard Biener <rguenther@suse.de>
28879 PR tree-optimization/58742
28880 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28881 associate_pointerplus_align.
28882 (associate_pointerplus_diff): New function.
28883 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28884 and associate_pointerplus_diff.
28886 2014-01-29 Richard Biener <rguenther@suse.de>
28888 * lto-streamer.h (LTO_major_version): Bump to 3.
28889 (LTO_minor_version): Reset to 0.
28891 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28893 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28894 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28895 (arm_file_start): Generate correct asm header for armv7ve.
28896 * config/arm/bpabi.h: Add multilib support for armv7ve.
28897 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28898 and cortex-a15 to armv7ve.
28899 * config/arm/t-aprofile: Add multilib support for armv7ve.
28900 * doc/invoke.texi: Document -march=armv7ve.
28902 2014-01-29 Richard Biener <rguenther@suse.de>
28904 PR tree-optimization/58742
28905 * tree-ssa-forwprop.c (associate_plusminus): Return true
28906 if we changed sth, defer EH cleanup to ...
28907 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28908 (simplify_mult): New function.
28910 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28912 PR middle-end/59917
28913 PR tree-optimization/59920
28914 * tree.c (build_common_builtin_nodes): Remove
28915 __builtin_setjmp_dispatcher initialization.
28916 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28917 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28918 instead of gsi_after_labels + manually skipping debug stmts.
28919 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28920 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28921 * tree-inline.c (copy_edges_for_bb): Remove
28922 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28923 argument. Ignore computed_goto_p stmts. Don't call
28924 make_abnormal_goto_edges. If a call might need abnormal edges
28925 for non-local gotos, see if it already has an edge to
28926 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28927 with true argument, don't do anything then, otherwise add
28928 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28929 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28931 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28932 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28933 (lower_stmt): Don't set data->calls_builtin_setjmp.
28934 (lower_builtin_setjmp): Adjust comment.
28935 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28936 * tree-cfg.c (found_computed_goto): Remove.
28937 (factor_computed_gotos): Remove.
28938 (make_goto_expr_edges): Return bool, true for computed gotos.
28939 Don't call make_abnormal_goto_edges.
28940 (build_gimple_cfg): Don't set found_computed_goto, don't call
28941 factor_computed_gotos.
28942 (computed_goto_p): No longer static.
28943 (make_blocks): Don't set found_computed_goto.
28944 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28945 (make_edges): If make_goto_expr_edges returns true, push bb
28946 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28947 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28948 vector. Record mapping between bbs and OpenMP regions if there
28949 are any, adjust make_gimple_omp_edges caller. Call
28950 handle_abnormal_edges.
28951 (make_abnormal_goto_edges): Remove.
28952 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28953 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28954 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28955 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28956 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28957 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28958 filling *region also set *region_idx to (*region)->entry->index.
28961 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28962 For REGs set ORIGINAL_REGNO.
28964 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28966 * doc/md.texi: Mention that a target shouldn't implement
28967 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28970 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28972 PR tree-optimization/59594
28973 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28974 a copy of the datarefs vector rather than the vector itself.
28976 2014-01-28 Jason Merrill <jason@redhat.com>
28979 * dwarf2out.c (auto_die): New static.
28980 (gen_type_die_with_usage): Handle C++1y 'auto'.
28981 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28984 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28987 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28988 (SPEC_X32): Likewise.
28989 (SPEC_64): Likewise.
28990 * config/i386/i386.c (ix86_option_override_internal): Turn off
28991 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28993 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28994 * config/i386/i386.h (TARGET_16BIT): New macro.
28995 (TARGET_16BIT_P): Likewise.
28996 * config/i386/i386.opt: Add m16.
28997 * doc/invoke.texi: Document -m16.
28999 2014-01-28 Jakub Jelinek <jakub@redhat.com>
29001 PR preprocessor/59935
29002 * input.c (location_get_source_line): Bail out on when line number
29003 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29005 2014-01-28 Richard Biener <rguenther@suse.de>
29007 PR tree-optimization/58742
29008 * tree-ssa-forwprop.c (associate_plusminus): Handle
29009 pointer subtraction of the form (T)(P + A) - (T)P.
29011 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29013 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29016 2014-01-28 Richard Biener <rguenther@suse.de>
29019 2014-01-28 Richard Biener <rguenther@suse.de>
29021 PR rtl-optimization/45364
29022 PR rtl-optimization/59890
29023 * var-tracking.c (local_get_addr_clear_given_value): Handle
29024 already cleared slot.
29025 (val_reset): Handle not allocated local_get_addr_cache.
29026 (vt_find_locations): Use post-order on the inverted CFG.
29028 2014-01-28 Richard Biener <rguenther@suse.de>
29030 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29032 2014-01-28 Richard Biener <rguenther@suse.de>
29034 PR rtl-optimization/45364
29035 PR rtl-optimization/59890
29036 * var-tracking.c (local_get_addr_clear_given_value): Handle
29037 already cleared slot.
29038 (val_reset): Handle not allocated local_get_addr_cache.
29039 (vt_find_locations): Use post-order on the inverted CFG.
29041 2014-01-28 Alan Modra <amodra@gmail.com>
29043 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29044 * configure.ac <recursive call for build != host>: Define
29045 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29046 and LD_FOR_BUILD too.
29047 * configure: Regenerate.
29049 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
29051 * config/i386/i386.c (get_builtin_code_for_version): Separate
29052 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29053 Broadwell from Haswell.
29055 2014-01-27 Steve Ellcey <sellcey@mips.com>
29057 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29058 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29059 * config/mips/mips.c (mips_option_override): Change setting
29061 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29062 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29063 Change from Mask to Var.
29065 2014-01-27 Jeff Law <law@redhat.com>
29067 * ipa-inline.c (inline_small_functions): Fix typo.
29069 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
29071 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29072 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29073 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29074 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29075 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29076 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29077 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29078 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29079 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29080 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29081 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29082 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29083 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29084 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29085 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29086 (_mm512_storeu_epi64): Ditto.
29087 (_mm512_cmpge_epi32_mask): Ditto.
29088 (_mm512_cmpge_epu32_mask): Ditto.
29089 (_mm512_cmpge_epi64_mask): Ditto.
29090 (_mm512_cmpge_epu64_mask): Ditto.
29091 (_mm512_cmple_epi32_mask): Ditto.
29092 (_mm512_cmple_epu32_mask): Ditto.
29093 (_mm512_cmple_epi64_mask): Ditto.
29094 (_mm512_cmple_epu64_mask): Ditto.
29095 (_mm512_cmplt_epi32_mask): Ditto.
29096 (_mm512_cmplt_epu32_mask): Ditto.
29097 (_mm512_cmplt_epi64_mask): Ditto.
29098 (_mm512_cmplt_epu64_mask): Ditto.
29099 (_mm512_cmpneq_epi32_mask): Ditto.
29100 (_mm512_cmpneq_epu32_mask): Ditto.
29101 (_mm512_cmpneq_epi64_mask): Ditto.
29102 (_mm512_cmpneq_epu64_mask): Ditto.
29103 (_mm512_expand_pd): Ditto.
29104 (_mm512_expand_ps): Ditto.
29105 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29106 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29107 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29108 * config/i386/i386.c (ix86_builtins): Add
29109 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29110 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29111 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29112 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29113 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29114 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29115 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29116 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29117 IX86_BUILTIN_PMOVUSQW512_MEM.
29118 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29119 __builtin_ia32_pmovsqd512mem_mask,
29120 __builtin_ia32_pmovqd512mem_mask,
29121 __builtin_ia32_pmovusqw512mem_mask,
29122 __builtin_ia32_pmovsqw512mem_mask,
29123 __builtin_ia32_pmovqw512mem_mask,
29124 __builtin_ia32_pmovusdw512mem_mask,
29125 __builtin_ia32_pmovsdw512mem_mask,
29126 __builtin_ia32_pmovdw512mem_mask,
29127 __builtin_ia32_pmovqb512mem_mask,
29128 __builtin_ia32_pmovusqb512mem_mask,
29129 __builtin_ia32_pmovsqb512mem_mask,
29130 __builtin_ia32_pmovusdb512mem_mask,
29131 __builtin_ia32_pmovsdb512mem_mask,
29132 __builtin_ia32_pmovdb512mem_mask.
29133 (bdesc_args): Add __builtin_ia32_expanddf512,
29134 __builtin_ia32_expandsf512.
29135 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29136 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29137 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29138 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29139 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29140 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29141 (avx512f_<code>v8div16qi2_mask_store): This.
29142 (avx512f_expand<mode>): New.
29144 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
29146 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29148 (_mm512_mask_prefetch_i64gather_pd): Ditto.
29149 (_mm512_prefetch_i32scatter_pd): Ditto.
29150 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29151 (_mm512_prefetch_i64scatter_pd): Ditto.
29152 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29153 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29154 (_mm512_mask_prefetch_i64gather_ps): Ditto.
29155 (_mm512_prefetch_i32scatter_ps): Ditto.
29156 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29157 (_mm512_prefetch_i64scatter_ps): Ditto.
29158 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29159 * config/i386/i386-builtin-types.def: Define
29160 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29161 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29162 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29163 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29164 IX86_BUILTIN_SCATTERPFQPD.
29165 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29166 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29167 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29168 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29169 __builtin_ia32_scatterpfqps.
29170 (ix86_expand_builtin): Expand new built-ins.
29171 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29172 fix memory access data type.
29173 (*avx512pf_gatherpf<mode>_mask): Ditto.
29174 (*avx512pf_gatherpf<mode>): Ditto.
29175 (avx512pf_scatterpf<mode>): Ditto.
29176 (*avx512pf_scatterpf<mode>_mask): Ditto.
29177 (*avx512pf_scatterpf<mode>): Ditto.
29178 (GATHER_SCATTER_SF_MEM_MODE): New.
29179 (avx512pf_gatherpf<mode>df): Ditto.
29180 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29181 (*avx512pf_scatterpf<mode>df): Ditto.
29183 2014-01-27 Jakub Jelinek <jakub@redhat.com>
29186 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29187 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29190 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29192 * common/config/arm/arm-common.c
29193 (arm_rewrite_mcpu): Handle multiple names.
29195 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29197 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29199 * gimple-builder.h (create_gimple_tmp): Delete.
29201 2014-01-27 Christian Bruel <christian.bruel@st.com>
29203 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29206 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
29208 * config/pa/pa.md (call): Generate indirect long calls to non-local
29209 functions when outputing 32-bit code.
29210 (call_value): Likewise except for special call to buggy powf function.
29212 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29213 portable runtime and PIC indirect calls.
29214 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29215 and PIC call sequences. Use ldo instead of blr to set return register
29216 in PIC call sequence.
29218 2014-01-25 Walter Lee <walt@tilera.com>
29220 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29221 avoid clobbering a live register.
29223 2014-01-25 Walter Lee <walt@tilera.com>
29225 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29226 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29227 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29228 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29230 2014-01-25 Walter Lee <walt@tilera.com>
29232 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29233 arguments on even registers.
29234 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29236 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29237 (BIGGEST_ALIGNMENT): Ditto.
29238 (BIGGEST_FIELD_ALIGNMENT): Ditto.
29240 2014-01-25 Walter Lee <walt@tilera.com>
29242 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29243 insns before bundling.
29244 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29246 2014-01-25 Walter Lee <walt@tilera.com>
29248 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29249 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29250 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29252 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29254 * config/mips/constraints.md (kl): Delete.
29255 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29256 define expands, using...
29257 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29258 instructions for MIPS16.
29259 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29260 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29262 2014-01-25 Walter Lee <walt@tilera.com>
29264 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29268 2014-01-25 Walter Lee <walt@tilera.com>
29270 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29271 (TARGET_EXPAND_TO_RTL_HOOK): Define.
29273 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29275 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29278 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29280 * print-rtl.c (in_call_function_usage): New var.
29281 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29282 EXPR_LIST mode as mode and not as reg note name.
29284 PR middle-end/59561
29285 * cfgloopmanip.c (copy_loop_info): If
29286 loop->warned_aggressive_loop_optimizations, make sure
29287 the flag is set in target loop too.
29289 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29291 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29293 * builtins.def: Likewise.
29294 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29295 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29296 * ira.c (ira_setup_eliminable_regset): Likewise.
29297 * omp-low.c (gate_expand_omp): Likewise.
29298 (execute_lower_omp): Likewise.
29299 (diagnose_sb_0): Likewise.
29300 (gate_diagnose_omp_blocks): Likewise.
29301 (simd_clone_clauses_extract): Likewise.
29304 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29306 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29307 correction for little endian...
29308 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29311 2014-01-24 Jeff Law <law@redhat.com>
29313 PR tree-optimization/59919
29314 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29315 for non-returning calls.
29317 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29319 * common/config/aarch64/aarch64-common.c
29320 (aarch64_rewrite_mcpu): Handle multiple names.
29321 * config/aarch64/aarch64.h
29322 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29324 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29326 * input.c (add_file_to_cache_tab): Handle the case where fopen
29329 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29332 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29333 from push operand if code of push isn't PRE_DEC.
29335 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29338 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29339 -mquad-memory-atomic. Update -mquad-memory documentation to say
29340 it is only used for non-atomic loads/stores.
29342 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29343 -mquad-memory or -mquad-memory-atomic switches.
29345 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29346 -mquad-memory-atomic to ISA 2.07 support.
29348 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29349 to separate support of normal quad word memory operations (ldq, stq)
29350 from the atomic quad word memory operations.
29352 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29353 support to separate non-atomic quad word operations from atomic
29354 quad word operations. Disable non-atomic quad word operations in
29355 little endian mode so that we don't have to swap words after the
29356 load and before the store.
29357 (quad_load_store_p): Add comment about atomic quad word support.
29358 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29359 options printed with -mdebug=reg.
29361 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29362 -mquad-memory-atomic as the test for whether we have quad word
29363 atomic instructions.
29364 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29365 or -mp8-vector are used, allow byte/half-word atomic operations.
29367 * config/rs6000/sync.md (load_lockedti): Insure that the address
29368 is a proper indexed or indirect address for the lqarx instruction.
29369 On little endian systems, swap the hi/lo registers after the lqarx
29371 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29372 insure the address is valid for the lqarx instruction.
29373 (store_conditionalti): Insure that the address is a proper indexed
29374 or indirect address for the stqcrx. instruction. On little endian
29375 systems, swap the hi/lo registers before doing the stqcrx.
29377 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29378 insure the address is valid for the stqcrx. instruction.
29380 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29381 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29382 type of quad memory support is available.
29384 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29386 PR regression/59915
29387 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29388 there is a danger of looping.
29390 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29392 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29393 force flag_ira_loop_pressure if set via command line.
29395 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29397 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29398 (ashr_simd): New builtin handling DI mode.
29399 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29400 (aarch64_sshr_simddi): New match pattern.
29401 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29402 (vshrd_n_s64): Likewise.
29403 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29405 2014-01-23 Nick Clifton <nickc@redhat.com>
29407 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29408 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29409 favour of mcu specific scripts.
29410 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29413 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29414 Alex Velenko <Alex.Velenko@arm.com>
29416 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29417 (vaddv_s16): Likewise.
29418 (vaddv_s32): Likewise.
29419 (vaddv_u8): Likewise.
29420 (vaddv_u16): Likewise.
29421 (vaddv_u32): Likewise.
29422 (vaddvq_s8): Likewise.
29423 (vaddvq_s16): Likewise.
29424 (vaddvq_s32): Likewise.
29425 (vaddvq_s64): Likewise.
29426 (vaddvq_u8): Likewise.
29427 (vaddvq_u16): Likewise.
29428 (vaddvq_u32): Likewise.
29429 (vaddvq_u64): Likewise.
29430 (vaddv_f32): Likewise.
29431 (vaddvq_f32): Likewise.
29432 (vaddvq_f64): Likewise.
29433 (vmaxv_f32): Likewise.
29434 (vmaxv_s8): Likewise.
29435 (vmaxv_s16): Likewise.
29436 (vmaxv_s32): Likewise.
29437 (vmaxv_u8): Likewise.
29438 (vmaxv_u16): Likewise.
29439 (vmaxv_u32): Likewise.
29440 (vmaxvq_f32): Likewise.
29441 (vmaxvq_f64): Likewise.
29442 (vmaxvq_s8): Likewise.
29443 (vmaxvq_s16): Likewise.
29444 (vmaxvq_s32): Likewise.
29445 (vmaxvq_u8): Likewise.
29446 (vmaxvq_u16): Likewise.
29447 (vmaxvq_u32): Likewise.
29448 (vmaxnmv_f32): Likewise.
29449 (vmaxnmvq_f32): Likewise.
29450 (vmaxnmvq_f64): Likewise.
29451 (vminv_f32): Likewise.
29452 (vminv_s8): Likewise.
29453 (vminv_s16): Likewise.
29454 (vminv_s32): Likewise.
29455 (vminv_u8): Likewise.
29456 (vminv_u16): Likewise.
29457 (vminv_u32): Likewise.
29458 (vminvq_f32): Likewise.
29459 (vminvq_f64): Likewise.
29460 (vminvq_s8): Likewise.
29461 (vminvq_s16): Likewise.
29462 (vminvq_s32): Likewise.
29463 (vminvq_u8): Likewise.
29464 (vminvq_u16): Likewise.
29465 (vminvq_u32): Likewise.
29466 (vminnmv_f32): Likewise.
29467 (vminnmvq_f32): Likewise.
29468 (vminnmvq_f64): Likewise.
29470 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29472 * config/aarch64/aarch64-simd.md
29473 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29474 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29475 (*aarch64_mul3_elt<mode>): Likewise.
29476 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29477 (*aarch64_mul3_elt_to_64v2df): Likewise.
29478 (*aarch64_mla_elt<mode>): Likewise.
29479 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29480 (*aarch64_mls_elt<mode>): Likewise.
29481 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29482 (*aarch64_fma4_elt<mode>): Likewise.
29483 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29484 (*aarch64_fma4_elt_to_64v2df): Likewise.
29485 (*aarch64_fnma4_elt<mode>): Likewise.
29486 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29487 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29488 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29489 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29490 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29491 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29492 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29493 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29494 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29496 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29498 * config/aarch64/aarch64-simd.md
29499 (aarch64_be_checked_get_lane<mode>): New define_expand.
29500 * config/aarch64/aarch64-simd-builtins.def
29501 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29502 New builtin definition.
29503 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29504 Use new safe be builtin.
29506 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29508 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29510 (aarch64_be_st1<mode>): Likewise.
29511 (aarch_ld1<VALL:mode>): Define_expand modified.
29512 (aarch_st1<VALL:mode>): Likewise.
29513 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29514 (UNSPEC_ST1): Likewise.
29516 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29518 * config/microblaze/microblaze.md: Add trap insn and attribute
29520 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29522 PR preprocessor/58580
29523 * input.h (location_get_source_line): Take an additional line_size
29525 (void diagnostics_file_cache_fini): Declare new function.
29526 * input.c (struct fcache): New type.
29527 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29528 New static constants.
29529 (diagnostic_file_cache_init, total_lines_num)
29530 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29531 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29532 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29533 (get_next_line, read_next_line, goto_next_line, read_line_num):
29534 New static function definitions.
29535 (diagnostic_file_cache_fini): New function.
29536 (location_get_source_line): Take an additional output line_len
29537 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29539 * diagnostic.c (diagnostic_finish): Call
29540 diagnostic_file_cache_fini.
29541 (adjust_line): Take an additional input parameter for the length
29542 of the line, rather than calculating it with strlen.
29543 (diagnostic_show_locus): Adjust the use of
29544 location_get_source_line and adjust_line with respect to their new
29545 signature. While displaying a line now, do not stop at the first
29546 null byte. Rather, display the zero byte as a space and keep
29547 going until we reach the size of the line.
29548 * Makefile.in: Add vec.o to OBJS-libcommon
29550 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29551 Ilya Tocar <ilya.tocar@intel.com>
29553 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29554 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29555 (__builtin_ia32_kmov16): Ditto.
29556 * config/i386/i386.md (UNSPEC_KMOV): New.
29559 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29561 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29562 (_mm512_storeu_si512): Ditto.
29564 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29567 * rtl.h (get_referenced_operands): Declare.
29568 * recog.c (get_referenced_operands): New function.
29569 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29570 operands have been referenced when recording LO_SUM references.
29572 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29574 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29576 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29578 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29579 Enable for generic and recent AMD targets.
29581 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29583 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29584 ARG_SIZE note when adjustment was eliminated.
29586 2014-01-22 Jeff Law <law@redhat.com>
29588 PR tree-optimization/59597
29589 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29590 in file. Accept new argument REGISTERING and use it to modify
29591 dump output appropriately.
29592 (register_jump_thread): Corresponding changes.
29593 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29594 thread paths involving joiner blocks. Add code to dump cancelled
29595 jump threading paths.
29597 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29599 PR rtl-optimization/59477
29600 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29601 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29603 2014-01-22 Tom Tromey <tromey@redhat.com>
29605 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29607 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29609 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29611 PR rtl-optimization/59896
29612 * lra-constraints.c (process_alt_operands): Check unused note for
29613 matched operands of insn with no output reloads.
29615 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29617 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29618 (mips_move_from_gpr_cost): Likewise.
29620 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29622 PR rtl-optimization/59858
29623 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29624 ira_class_hard_regs_num.
29625 (process_alt_operands): Increase reject for dying matched operand.
29627 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29630 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29631 smaller than size, perform several stores or loads and stores
29632 at dst + count - size to store or copy all of size bytes, rather
29633 than just last modesize bytes.
29635 2014-01-20 DJ Delorie <dj@redhat.com>
29637 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29638 that CLOBBERs are REGs before propogating their values.
29640 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29642 PR middle-end/59789
29643 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29644 (cgraph_inline_failed_type): New function.
29645 * cgraph.h (DEFCIFCODE): Add type.
29646 (cgraph_inline_failed_type_t): New enum.
29647 (cgraph_inline_failed_type): New prototype.
29648 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29649 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29650 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29651 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29652 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29653 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29654 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29655 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29656 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29657 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29658 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29659 OPTIMIZATION_MISMATCH.
29660 * tree-inline.c (expand_call_inline): Emit errors during
29661 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29663 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29666 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29667 mode attribute in insn output.
29669 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29671 * output.h (output_constant): Delete.
29672 * varasm.c (output_constant): Make private.
29674 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29676 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29678 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29680 PR middle-end/59860
29681 * tree.h (fold_builtin_strcat): New prototype.
29682 * builtins.c (fold_builtin_strcat): No longer static. Add len
29683 argument, if non-NULL, don't call c_strlen. Optimize
29684 directly into __builtin_memcpy instead of __builtin_strcpy.
29685 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29686 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29688 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29690 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29691 for SImode_address_operand operands, having only a REG argument.
29693 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29695 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29696 loader name using mbig-endian.
29697 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29699 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29701 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29702 (-mtune): Likewise.
29705 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29707 * config/aarch64/aarch64-protos.h
29708 (aarch64_cannot_change_mode_class_ptr): Declare.
29709 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29710 aarch64_cannot_change_mode_class_ptr): New.
29711 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29712 backend hook aarch64_cannot_change_mode_class.
29714 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29716 * common/config/aarch64/aarch64-common.c
29717 (aarch64_handle_option): Don't handle any option order logic here.
29718 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29719 selected_cpu, warn on architecture version mismatch.
29720 (aarch64_override_options): Fix parsing order for option strings.
29722 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29723 Iain Sandoe <iain@codesourcery.com>
29726 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29727 warning. Amend comment to reflect current functionality.
29729 2014-01-20 Richard Biener <rguenther@suse.de>
29731 PR middle-end/59860
29732 * builtins.c (fold_builtin_strcat): Remove case better handled
29733 by tree-ssa-strlen.c.
29735 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29737 * config/aarch64/aarch64.opt
29738 (mcpu, march, mtune): Make case-insensitive.
29740 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29743 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29744 if operands[1] is a REG or ZERO_EXTEND of a REG.
29746 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29748 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29750 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29752 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29753 long non-pic millicode calls.
29755 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29757 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29759 2014-01-19 Kito Cheng <kito@0xlab.org>
29761 * builtins.c (expand_movstr): Check movstr expand done or fail.
29763 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29764 H.J. Lu <hongjiu.lu@intel.com>
29767 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29768 to DImode for zero-extended addresses.
29770 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29772 PR rtl-optimization/57763
29773 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29774 on the new indirect jump_insn and increment LABEL_NUSES (label).
29776 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29780 * config.gcc (x86_archs): New variable.
29781 (x86_64_archs): Likewise.
29782 (x86_cpus): Likewise.
29783 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29784 --with-arch/--with-cpu= options.
29785 Support --with-arch=/--with-cpu={nehalem,westmere,
29786 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29788 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29790 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29791 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29793 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29795 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29797 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29800 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29801 clear cpp_get_options (parse_in)->warn_unused_macros for
29802 ix86_target_macros_internal with cpp_define.
29804 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29806 * jump.c (delete_related_insns): Keep (use (insn))s.
29807 * reorg.c (redundant_insn): Check for barriers too.
29809 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29811 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29813 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29815 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29816 call to $$dyncall when TARGET_LONG_CALLS is true.
29818 2014-01-17 Jeff Law <law@redhat.com>
29820 * ree.c (combine_set_extension): Temporarily disable test for
29821 changing number of hard registers.
29823 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29825 PR middle-end/58125
29826 * ipa-inline-analysis.c (inline_free_summary):
29827 Do not free summary of aliases.
29829 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29831 PR middle-end/59706
29832 * gimplify.c (gimplify_expr): Use create_tmp_var
29833 instead of create_tmp_var_raw. If cond doesn't have
29834 integral type, don't add the IFN_ANNOTATE builtin at all.
29836 2014-01-17 Martin Jambor <mjambor@suse.cz>
29839 * ipa-cp.c (prev_edge_clone): New variable.
29840 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29841 Also resize prev_edge_clone vector.
29842 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29843 (ipcp_edge_removal_hook): New function.
29844 (ipcp_driver): Register ipcp_edge_removal_hook.
29846 2014-01-17 Andrew Pinski <apinski@cavium.com>
29847 Steve Ellcey <sellcey@mips.com>
29850 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29853 2014-01-17 Jeff Law <law@redhat.com>
29855 PR middle-end/57904
29856 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29857 so that pass_ccp runs first.
29859 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29861 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29862 (ix86_adjust_cost): Use !TARGET_XXX.
29863 (do_reorder_for_imul): Likewise.
29864 (swap_top_of_ready_list): Likewise.
29865 (ix86_sched_reorder): Likewise.
29867 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29869 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29870 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29871 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29872 (intel_memset): New. Duplicate slm_memset.
29873 (intel_cost): New. Duplicate slm_cost.
29874 (m_INTEL): New macro.
29875 (processor_target_table): Add "intel".
29876 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29877 with PROCESSOR_INTEL for "intel".
29878 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29879 PROCESSOR_SILVERMONT.
29880 (ix86_issue_rate): Likewise.
29881 (ix86_adjust_cost): Likewise.
29882 (ia32_multipass_dfa_lookahead): Likewise.
29883 (swap_top_of_ready_list): Likewise.
29884 (ix86_sched_reorder): Likewise.
29885 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29886 instead of TARGET_OPT_AGU.
29887 * config/i386/i386.h (TARGET_INTEL): New.
29888 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29889 (processor_type): Add PROCESSOR_INTEL.
29890 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29891 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29893 2014-01-17 Marek Polacek <polacek@redhat.com>
29896 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29899 2014-01-17 Richard Biener <rguenther@suse.de>
29901 PR tree-optimization/46590
29902 * opts.c (default_options_table): Add entries for
29903 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29904 all enabled at -O1 but not for -Og.
29905 * common.opt (fbranch-count-reg): Remove Init(1).
29906 (fmove-loop-invariants): Likewise.
29907 (ftree-pta): Likewise.
29909 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29911 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29912 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29913 decls to at least the GCC 4.8 used alignments.
29916 * tree-nested.c (convert_nonlocal_reference_stmt,
29917 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29918 of GIMPLE_BIND stmts, adjust associated decls.
29920 2014-01-17 Richard Biener <rguenther@suse.de>
29922 PR tree-optimization/46590
29923 * vec.h (vec<>::bseach): New member function implementing
29924 binary search according to C89 bsearch.
29925 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29926 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29927 bitmap pointer again. Make accesses_in_loop a flat array.
29928 (mem_ref_obstack): New global.
29929 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29930 (mark_ref_stored): Likewise.
29931 (ref_indep_loop_p_2): Likewise.
29932 (set_ref_stored_in_loop): New helper function.
29933 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29934 (memref_free): Adjust.
29935 (record_mem_ref_loc): Simplify.
29936 (gather_mem_refs_stmt): Adjust.
29937 (sort_locs_in_loop_postorder_cmp): New function.
29938 (analyze_memory_references): Sort accesses_in_loop after
29939 loop postorder number.
29940 (find_ref_loc_in_loop_cmp): New function.
29941 (for_all_locs_in_loop): Find relevant cluster of locs in
29942 accesses_in_loop and iterate without recursion.
29943 (execute_sm): Avoid uninit warning.
29944 (struct ref_always_accessed): Simplify.
29945 (ref_always_accessed::operator ()): Likewise.
29946 (ref_always_accessed_p): Likewise.
29947 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29948 loop postorder numbers here.
29949 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29952 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29955 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29956 on decls for which assemble_alias has been called.
29958 2014-01-17 Nick Clifton <nickc@redhat.com>
29960 * config/msp430/msp430.opt: (mcpu): New option.
29961 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29962 (msp430_option_override): Parse target_cpu. If the MCU name
29963 matches a generic string, clear target_mcu.
29964 (msp430_attr): Allow numeric interrupt values up to 63.
29965 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29966 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29968 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29970 * config/msp430/msp430.md (popm): Use %J rather than %I.
29971 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29972 (addhi_cy_i): Use immediate_operand for operand 2.
29973 * doc/invoke.texi: Document -mcpu option.
29975 2014-01-17 Richard Biener <rguenther@suse.de>
29977 PR rtl-optimization/38518
29978 * df.h (df_analyze_loop): Declare.
29979 * df-core.c: Include cfgloop.h.
29980 (df_analyze_1): Split out main part of df_analyze.
29981 (df_analyze): Adjust.
29982 (loop_inverted_post_order_compute): New function.
29983 (loop_post_order_compute): Likewise.
29984 (df_analyze_loop): New function avoiding whole-function
29985 postorder computes.
29986 * loop-invariant.c (find_defs): Use df_analyze_loop.
29987 (find_invariants): Adjust.
29988 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29990 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29992 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29993 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29995 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29997 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29998 traversal when removing references.
30000 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
30003 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30005 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
30007 PR middle-end/56791
30008 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30009 pushing a reload for an autoinc when we had previously reloaded an
30010 inner part of the address.
30012 2014-01-16 Jakub Jelinek <jakub@redhat.com>
30014 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30016 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30017 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30018 when not giving up or versioning for alias only because of
30020 (vect_analyze_data_ref_dependences): Set to true.
30021 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30023 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30024 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30027 PR middle-end/58344
30028 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30031 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30032 operand 0 predicate for gathers, use a new pseudo as subtarget.
30034 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30036 PR middle-end/59609
30037 * lra-constraints.c (process_alt_operands): Add printing debug info.
30038 Check absence of input/output reloads for matched operands too.
30040 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30042 PR rtl-optimization/59835
30043 * ira.c (ira_init_register_move_cost): Increase cost for
30046 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
30048 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30050 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
30053 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30054 non-register objects. Use gen_(high/low)part more consistently.
30057 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
30060 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30061 endian support, remove tests for WORDS_BIG_ENDIAN.
30062 (p8_mfvsrd_3_<mode>): Likewise.
30063 (reload_gpr_from_vsx<mode>): Likewise.
30064 (reload_gpr_from_vsxsf): Likewise.
30065 (p8_mfvsrd_4_disf): Likewise.
30067 2014-01-16 Richard Biener <rguenther@suse.de>
30069 PR rtl-optimization/46590
30070 * lcm.c (compute_antinout_edge): Use postorder iteration.
30071 (compute_laterin): Use inverted postorder iteration.
30073 2014-01-16 Nick Clifton <nickc@redhat.com>
30075 PR middle-end/28865
30076 * varasm.c (output_constant): Return the number of bytes actually
30078 (output_constructor_array_range): Update the field size with the
30079 number of bytes emitted by output_constant.
30080 (output_constructor_regular_field): Likewise. Also do not
30081 complain if the total number of bytes emitted is now greater
30082 than the expected fieldpos.
30083 * output.h (output_constant): Update prototype and descriptive comment.
30085 2014-01-16 Marek Polacek <polacek@redhat.com>
30087 PR middle-end/59827
30088 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30089 it is error_mark_node.
30091 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
30093 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30094 VALID_AVX256_REG_OR_OI_MODE.
30096 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
30098 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30099 current procedure should be profiled.
30101 2014-01-15 Andrew Pinski <apinski@cavium.com>
30103 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30104 of moving from/to the STACK_REG register class.
30106 2014-01-15 Richard Henderson <rth@redhat.com>
30109 * reginfo.c (global_regs_decl): Globalize.
30110 * rtl.h (global_regs_decl): Declare.
30111 * ira.c (do_reload): Diagnose frame_pointer_needed and it
30112 reserved via global_regs.
30114 2014-01-15 Teresa Johnson <tejohnson@google.com>
30116 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30118 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
30120 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30121 and vmulosh rather than call gen_vec_widen_smult_*.
30122 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30123 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30124 (vec_widen_smult_even_v16qi): Likewise.
30125 (vec_widen_umult_even_v8hi): Likewise.
30126 (vec_widen_smult_even_v8hi): Likewise.
30127 (vec_widen_umult_odd_v16qi): Likewise.
30128 (vec_widen_smult_odd_v16qi): Likewise.
30129 (vec_widen_umult_odd_v8hi): Likewise.
30130 (vec_widen_smult_odd_v8hi): Likewise.
30131 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30132 vmuloub rather than call gen_vec_widen_umult_*.
30133 (vec_widen_umult_lo_v16qi): Likewise.
30134 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30135 vmulosb rather than call gen_vec_widen_smult_*.
30136 (vec_widen_smult_lo_v16qi): Likewise.
30137 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30138 rather than call gen_vec_widen_umult_*.
30139 (vec_widen_umult_lo_v8hi): Likewise.
30140 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30141 rather than call gen_vec_widen_smult_*.
30142 (vec_widen_smult_lo_v8hi): Likewise.
30144 2014-01-15 Jeff Law <law@redhat.com>
30146 PR tree-optimization/59747
30147 * ree.c (find_and_remove_re): Properly handle case where a second
30148 eliminated extension requires widening a copy created for elimination
30149 of a prior extension.
30150 (combine_set_extension): Ensure that the number of hard regs needed
30151 for a destination register does not change when we widen it.
30153 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30155 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30156 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30157 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30158 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30159 (avr-*-rtems*): Likewise.
30160 (bfin*-rtems*): Likewise.
30161 (moxie-*-rtems*): Likewise.
30162 (h8300-*-rtems*): Likewise.
30163 (i[34567]86-*-rtems*): Likewise.
30164 (lm32-*-rtems*): Likewise.
30165 (m32r-*-rtems*): Likewise.
30166 (m68k-*-rtems*): Likewise.
30167 (microblaze*-*-rtems*): Likewise.
30168 (mips*-*-rtems*): Likewise.
30169 (powerpc-*-rtems*): Likewise.
30170 (sh-*-rtems*): Likewise.
30171 (sparc-*-rtems*): Likewise.
30172 (sparc64-*-rtems*): Likewise.
30173 (v850-*-rtems*): Likewise.
30174 (m32c-*-rtems*): Likewise.
30176 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
30178 PR rtl-optimization/59511
30179 * ira.c (ira_init_register_move_cost): Use memory costs for some
30180 cases of register move cost calculations.
30181 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30182 instead of BB frequency.
30183 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30184 * lra-assigns.c (find_hard_regno_for): Ditto.
30186 2014-01-15 Richard Biener <rguenther@suse.de>
30188 PR tree-optimization/59822
30189 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30190 (vectorizable_load): Use it to hoist defs of uses of invariant
30191 loads out of the loop.
30193 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30194 Kugan Vivekanandarajah <kuganv@linaro.org>
30197 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30200 2014-01-15 Richard Biener <rguenther@suse.de>
30202 PR rtl-optimization/59802
30203 * lcm.c (compute_available): Use inverted postorder to seed
30204 the initial worklist.
30206 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30209 * config/s390/s390.c (s390_preferred_reload_class): Don't return
30210 ADDR_REGS for invalid symrefs in non-PIC code.
30212 2014-01-15 Jakub Jelinek <jakub@redhat.com>
30215 * builtins.c (determine_block_size): Initialize *probable_max_size
30216 even if len_rtx is CONST_INT.
30218 2014-01-14 Andrew Pinski <apinski@cavium.com>
30220 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30221 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30222 (cortexa53_tunings): Likewise.
30223 (aarch64_sched_issue_rate): New function.
30224 (TARGET_SCHED_ISSUE_RATE): Define.
30226 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30228 * ira-costs.c (find_costs_and_classes): Add missed
30229 ira_init_register_move_cost_if_necessary.
30231 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30234 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30236 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
30239 * config/i386/i386.c (type_natural_mode): Add a bool parameter
30240 to indicate if type is used for function return value. Warn ABI
30241 change if the vector mode isn't available for function return value.
30242 (ix86_function_arg_advance): Pass false to type_natural_mode.
30243 (ix86_function_arg): Likewise.
30244 (ix86_gimplify_va_arg): Likewise.
30245 (function_arg_32): Don't warn ABI change.
30246 (ix86_function_value): Pass true to type_natural_mode.
30247 (ix86_return_in_memory): Likewise.
30248 (ix86_struct_value_rtx): Removed.
30249 (TARGET_STRUCT_VALUE_RTX): Likewise.
30251 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30253 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30254 converting a conditional jump into a conditional return.
30256 2014-01-14 Richard Biener <rguenther@suse.de>
30258 PR tree-optimization/58921
30259 PR tree-optimization/59006
30260 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30261 hoisting invariant stmts.
30262 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30263 invariant loads on the preheader edge if possible.
30265 2014-01-14 Joey Ye <joey.ye@arm.com>
30267 * doc/plugin.texi (Building GCC plugins): Update to C++.
30269 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
30271 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30272 (_mm_rcp28_round_ss): Ditto.
30273 (_mm_rsqrt28_round_sd): Ditto.
30274 (_mm_rsqrt28_round_ss): Ditto.
30275 (_mm_rcp28_sd): Ditto.
30276 (_mm_rcp28_ss): Ditto.
30277 (_mm_rsqrt28_sd): Ditto.
30278 (_mm_rsqrt28_ss): Ditto.
30279 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30280 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30281 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30282 (IX86_BUILTIN_RCP28SD): Ditto.
30283 (IX86_BUILTIN_RCP28SS): Ditto.
30284 (IX86_BUILTIN_RSQRT28SD): Ditto.
30285 (IX86_BUILTIN_RSQRT28SS): Ditto.
30286 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30287 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30288 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30289 (ix86_expand_special_args_builtin): Expand new FTYPE.
30290 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30291 (srcp14<mode>): Make insn unary.
30292 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30293 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30294 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30295 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30296 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30297 Fix rounding: make it SAE only.
30298 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30300 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30302 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30303 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30304 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30305 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30306 (round_saeonly_mask_scalar_operand4): Ditto.
30307 (round_saeonly_mask_scalar_op3): Ditto.
30308 (round_saeonly_mask_scalar_op4): Ditto.
30310 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30312 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30313 Implement -maltivec=be for vec_insert and vec_extract.
30315 2014-01-10 DJ Delorie <dj@redhat.com>
30317 * config/msp430/msp430.md (call_internal): Don't allow memory
30318 references with SP as the base register.
30319 (call_value_internal): Likewise.
30320 * config/msp430/constraints.md (Yc): New. For memory references
30321 that don't use SP as a base register.
30323 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30324 "an integer without a # prefix"
30325 * config/msp430/msp430.md (epilogue_helper): Use it.
30327 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30330 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30331 AVX512F gather builtins.
30332 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30333 on gather decls with INTEGER_TYPE masktype.
30334 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30335 directly into the builtin rather than hoisting it before loop.
30337 PR tree-optimization/59387
30338 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30339 (scev_const_prop): If folded_casts and type has undefined overflow,
30340 use force_gimple_operand instead of force_gimple_operand_gsi and
30341 for each added stmt if it is assign with
30342 arith_code_with_undefined_signed_overflow, call
30343 rewrite_to_defined_overflow.
30344 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30345 gimple-fold.h instead.
30346 (arith_code_with_undefined_signed_overflow,
30347 rewrite_to_defined_overflow): Moved to ...
30348 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30349 rewrite_to_defined_overflow): ... here. No longer static.
30350 Include gimplify-me.h.
30351 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30352 rewrite_to_defined_overflow): New prototypes.
30354 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30356 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30358 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30360 * builtins.c (get_object_alignment_2): Minor tweak.
30361 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30363 2014-01-13 Christian Bruel <christian.bruel@st.com>
30365 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30366 optimized non constant lengths.
30368 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30371 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30372 load as __atomic_load_N if possible.
30374 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30376 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30378 (rs6000_expand_builtin): Adjust call.
30380 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30383 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30384 * config/rs6000/rs6000.c: Include target-globals.h.
30385 (rs6000_set_current_function): Instead of doing target_reinit
30386 unconditionally, use save_target_globals_default_opts and
30387 restore_target_globals.
30389 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30391 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30392 (rs6000_expand_builtin): Handle mffs and mtfsf.
30393 (rs6000_init_builtins): Define mffs and mtfsf.
30394 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30395 (rs6000_mffs): New pattern.
30396 (rs6000_mtfsf): New pattern.
30398 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30400 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30401 Start narrowing with START. Apply candidate-use pair
30402 and check overall cost in narrowing.
30403 (iv_ca_prune): Pass new argument.
30405 2014-01-10 Jeff Law <law@redhat.com>
30407 PR middle-end/59743
30408 * ree.c (combine_reaching_defs): Ensure the defining statement
30409 occurs before the extension when optimizing extensions with
30410 different source and destination hard registers.
30412 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30415 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30416 vtables into the type inheritance graph.
30418 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30420 PR rtl-optimization/59754
30421 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30422 modes in the REGNO != REGNO case.
30424 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30426 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30428 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30430 PR tree-optimization/59745
30431 * tree-predcom.c (tree_predictive_commoning_loop): Call
30432 free_affine_expand_cache if giving up because components is NULL.
30434 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30435 GC in payload of target_globals struct instead of allocating them on
30436 the heap and the larger structs separately using GC.
30437 * target-globals.h (struct target_globals): Make regs, hard_regs,
30438 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30439 of GTY((skip)) and change type to void *.
30440 (reset_target_globals): Cast loads from those fields to corresponding
30443 2014-01-10 Steve Ellcey <sellcey@mips.com>
30446 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30447 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30448 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30450 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30453 * aarch64-modes.def (CC_Zmode): New flags mode.
30454 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30455 represents an equality.
30456 (aarch64_get_condition_code): Handle CC_Zmode.
30457 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30459 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30461 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30462 extraction in good case.
30464 2014-01-10 Richard Biener <rguenther@suse.de>
30466 PR tree-optimization/59374
30467 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30468 checking after SLP discovery. Mark stmts not participating
30469 in any SLP instance properly.
30471 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30473 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30474 when handling a SET rtx.
30476 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30478 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30479 (cortex-a57): Likewise.
30480 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30482 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30484 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30485 non-iwmmxt builtins.
30487 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30491 * ipa-devirt.c record_target_from_binfo): Take as argument
30492 stack of binfos and lookup matching one for virtual inheritance.
30493 (possible_polymorphic_call_targets_1): Update.
30495 2014-01-10 Huacai Chen <chenhc@lemote.com>
30497 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30498 kernel strings for Loongson-2E/2F/3A.
30500 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30502 PR middle-end/59670
30503 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30504 is_gimple_call before calling gimple_call_internal_p.
30506 2014-01-09 Steve Ellcey <sellcey@mips.com>
30508 * Makefile.in (TREE_FLOW_H): Remove.
30509 (TREE_SSA_H): Add file names from tree-flow.h.
30510 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30511 * tree.h: Remove tree-flow.h reference.
30512 * hash-table.h: Remove tree-flow.h reference.
30513 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30514 reference with tree-ssa-loop.h.
30516 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30518 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30519 default element-order behavior for -maltivec.
30520 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30521 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30522 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30523 when targeting big endian, at least for now.
30524 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30526 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30528 PR middle-end/47735
30529 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30530 var satisfies use_register_for_decl, just take into account type
30531 alignment, rather than decl alignment.
30533 PR tree-optimization/59622
30534 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30535 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30536 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30537 Don't devirtualize for inplace at all. For targets.length () == 1,
30538 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30540 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30542 * config/i386/i386.md (cpu): Remove the unused btver1.
30544 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30546 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30548 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30551 * tree-core.h (struct target_globals): New forward declaration.
30552 (struct tree_target_option): Add globals field.
30553 * tree.h (TREE_TARGET_GLOBALS): Define.
30554 (prepare_target_option_nodes_for_pch): New prototype.
30555 * target-globals.h (struct target_globals): Define even if
30556 !SWITCHABLE_TARGET.
30557 * tree.c (prepare_target_option_node_for_pch,
30558 prepare_target_option_nodes_for_pch): New functions.
30559 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30560 * config/i386/i386.c: Include target-globals.h.
30561 (ix86_set_current_function): Instead of doing target_reinit
30562 unconditionally, use save_target_globals_default_opts and
30563 restore_target_globals.
30565 2014-01-09 Richard Biener <rguenther@suse.de>
30567 PR tree-optimization/59715
30568 * tree-cfg.h (split_critical_edges): Declare.
30569 * tree-cfg.c (split_critical_edges): Export.
30570 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30572 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30574 * cfgexpand.c (expand_stack_vars): Optionally disable
30575 asan stack protection.
30576 (expand_used_vars): Likewise.
30577 (partition_stack_vars): Likewise.
30578 * asan.c (asan_emit_stack_protection): Optionally disable
30579 after return stack usage.
30580 (instrument_derefs): Optionally disable memory access instrumentation.
30581 (instrument_builtin_call): Likewise.
30582 (instrument_strlen_call): Likewise.
30583 (asan_protect_global): Optionally disable global variables protection.
30584 * doc/invoke.texi: Added doc for new options.
30585 * params.def: Added new options.
30586 * params.h: Likewise.
30588 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30590 PR rtl-optimization/59724
30591 * ifcvt.c (cond_exec_process_if_block): Don't call
30592 flow_find_head_matching_sequence with 0 longest_match.
30593 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30594 non-active insns if !stop_after.
30595 (try_head_merge_bb): Revert 2014-01-07 changes.
30597 2014-01-08 Jeff Law <law@redhat.com>
30599 * ree.c (get_sub_rtx): New function, extracted from...
30600 (merge_def_and_ext): Here.
30601 (combine_reaching_defs): Use get_sub_rtx.
30603 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30605 * cgraph.h (varpool_variable_node): Do not choke on null node.
30607 2014-01-08 Catherine Moore <clm@codesourcery.com>
30609 * config/mips/mips.md (simple_return): Attempt to use JRC
30611 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30613 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30615 PR rtl-optimization/59137
30616 * reorg.c (steal_delay_list_from_target): Call update_block for
30618 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30620 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30622 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30623 two duplicate entries.
30625 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30628 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30630 * config/mips/mips.c (mips_truncated_op_cost): New function.
30631 (mips_rtx_costs): Adjust test for BADDU.
30632 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30634 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30636 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30637 (*baddu_si): ...this new pattern.
30639 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30642 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30644 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30646 PR middle-end/57748
30647 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30649 (expand_expr, expand_normal): Adjust.
30650 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30651 inner_reference_p. Use inner_reference_p to expand inner references.
30652 (store_expr): Adjust.
30653 * cfgexpand.c (expand_call_stmt): Adjust.
30655 2014-01-08 Rong Xu <xur@google.com>
30657 * gcov-io.c (gcov_var): Move from gcov-io.h.
30658 (gcov_position): Ditto.
30659 (gcov_is_error): Ditto.
30660 (gcov_rewrite): Ditto.
30661 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30662 only part to libgcc/libgcov.h.
30664 2014-01-08 Marek Polacek <polacek@redhat.com>
30666 PR middle-end/59669
30667 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30669 2014-01-08 Marek Polacek <polacek@redhat.com>
30672 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30674 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30676 PR rtl-optimization/59649
30677 * stor-layout.c (get_mode_bounds): For BImode return
30678 0 and STORE_FLAG_VALUE.
30680 2014-01-08 Richard Biener <rguenther@suse.de>
30682 PR middle-end/59630
30683 * gimple.h (is_gimple_builtin_call): Remove.
30684 (gimple_builtin_call_types_compatible_p): New.
30685 (gimple_call_builtin_p): New overload.
30686 * gimple.c (is_gimple_builtin_call): Remove.
30687 (validate_call): Rename to ...
30688 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30689 check return types.
30690 (validate_type): New static function.
30691 (gimple_call_builtin_p): New overload and adjust.
30692 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30693 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30694 (gimple_fold_stmt_to_constant_1): Likewise.
30695 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30697 2014-01-08 Richard Biener <rguenther@suse.de>
30699 PR middle-end/59471
30700 * gimplify.c (gimplify_expr): Gimplify register-register type
30701 VIEW_CONVERT_EXPRs to separate stmts.
30703 2014-01-07 Jeff Law <law@redhat.com>
30705 PR middle-end/53623
30706 * ree.c (combine_set_extension): Handle case where source
30707 and destination registers in an extension insn are different.
30708 (combine_reaching_defs): Allow source and destination registers
30709 in extension to be different under limited circumstances.
30710 (add_removable_extension): Remove restriction that the
30711 source and destination registers in the extension are the same.
30712 (find_and_remove_re): Emit a copy from the extension's
30713 destination to its source after the defining insn if
30714 the source and destination registers are different.
30716 PR middle-end/59285
30717 * ifcvt.c (merge_if_block): If we are merging a block with more than
30718 one successor with a block with no successors, remove any BARRIER
30719 after the second block.
30721 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30723 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30725 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30728 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30729 for 14-bit register offsets when INT14_OK_STRICT is false.
30731 2014-01-07 Roland Stigge <stigge@antcom.de>
30732 Michael Meissner <meissner@linux.vnet.ibm.com>
30735 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30736 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30738 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30740 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30743 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30745 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30746 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30747 rtx is const0_rtx or not.
30749 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30752 * target-globals.c (save_target_globals): Remove this_fn_optab
30754 * toplev.c: Include optabs.h.
30755 (target_reinit): Temporarily restore the global options if another
30756 set of options are in force.
30758 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30760 PR rtl-optimization/58668
30761 * cfgcleanup.c (flow_find_cross_jump): Don't count
30762 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30763 to determine what is counted.
30764 (flow_find_head_matching_sequence): Use active_insn_p to determine
30766 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30768 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30769 determine what is counted.
30771 PR tree-optimization/59643
30772 * tree-predcom.c (split_data_refs_to_components): If one dr is
30773 read and one write, determine_offset fails and the write isn't
30774 in the bad component, just put the read into the bad component.
30776 2014-01-07 Mike Stump <mikestump@comcast.net>
30777 Jakub Jelinek <jakub@redhat.com>
30780 * tree-core.h (struct tree_optimization_option): Change optabs
30781 type from unsigned char * to void *.
30782 * optabs.c (init_tree_optimization_optabs): Adjust
30783 TREE_OPTIMIZATION_OPTABS initialization.
30785 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30788 * config/i386/i386.h (struct machine_function): Add
30789 no_drap_save_restore field.
30790 * config/i386/i386.c (ix86_save_reg): Use
30791 !cfun->machine->no_drap_save_restore instead of
30792 crtl->stack_realign_needed.
30793 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30794 this function clears frame_pointer_needed. Set
30795 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30796 and DRAP reg is needed.
30798 2014-01-06 Marek Polacek <polacek@redhat.com>
30801 * doc/implement-c.texi: Mention that other integer types are
30802 permitted as bit-field types in strictly conforming mode.
30804 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30806 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30807 is newly allocated.
30809 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30811 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30813 2014-01-06 Martin Jambor <mjambor@suse.cz>
30816 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30818 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30820 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30824 * var-tracking.c (add_stores): Preserve the value of the source even if
30825 we don't record the store.
30827 2014-01-06 Terry Guo <terry.guo@arm.com>
30829 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30831 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30834 * config/darwin.c (darwin_function_section): Adjust return values to
30835 correspond to optimisation changes made in r206070.
30837 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30839 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30840 from prefetch_block tune setting.
30841 (nocona_cost): Correct size of prefetch block to 64.
30843 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30845 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30846 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30847 used to save the static chain register in the computation of the offset
30848 from which the FP registers need to be restored.
30850 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30852 PR tree-optimization/59519
30853 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30854 ICE if get_current_def (current_new_name) is already non-NULL, as long
30855 as it is a phi result of some other phi in *new_exit_bb that has
30858 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30859 or vmovdqu* for misaligned_operand.
30860 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30861 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30862 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30863 aligned_mem for AVX512F masked aligned load and store builtins and for
30864 non-temporal moves.
30866 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30868 PR tree-optimization/59651
30869 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30870 Address range for negative step should be added by TYPE_SIZE_UNIT.
30872 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30874 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30875 overlapping registers also for registers other than the stack pointer.
30877 2014-01-03 Marek Polacek <polacek@redhat.com>
30880 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30883 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30886 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30889 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30890 (push splitter): Use <P:MODE_SIZE> instead of
30891 GET_MODE_SIZE (<P:MODE>mode).
30892 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30893 (mov -1, reg peephole2): Likewise.
30894 * config/i386/sse.md (*mov<mode>_internal,
30895 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30896 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30897 *<code><mode>3, *andnot<mode>3<mask_name>,
30898 <mask_codefor><code><mode>3<mask_name>): Likewise.
30899 * config/i386/subst.md (mask_mode512bit_condition,
30900 sd_mask_mode512bit_condition): Likewise.
30902 2014-01-02 Xinliang David Li <davidxl@google.com>
30904 PR tree-optimization/59303
30905 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30906 (dump_predicates): Better output format.
30907 (pred_equal_p): New function.
30908 (is_neq_relop_p): Ditto.
30909 (is_neq_zero_form_p): Ditto.
30910 (pred_expr_equal_p): Ditto.
30911 (pred_neg_p): Ditto.
30912 (simplify_pred): Ditto.
30913 (simplify_preds_2): Ditto.
30914 (simplify_preds_3): Ditto.
30915 (simplify_preds_4): Ditto.
30916 (simplify_preds): Ditto.
30917 (push_pred): Ditto.
30918 (push_to_worklist): Ditto.
30919 (get_pred_info_from_cmp): Ditto.
30920 (is_degenerated_phi): Ditto.
30921 (normalize_one_pred_1): Ditto.
30922 (normalize_one_pred): Ditto.
30923 (normalize_one_pred_chain): Ditto.
30924 (normalize_preds): Ditto.
30925 (normalize_cond_1): Remove function.
30926 (normalize_cond): Ditto.
30927 (is_gcond_subset_of): Ditto.
30928 (is_subset_of_any): Ditto.
30929 (is_or_set_subset_of): Ditto.
30930 (is_and_set_subset_of): Ditto.
30931 (is_norm_cond_subset_of): Ditto.
30932 (pred_chain_length_cmp): Ditto.
30933 (convert_control_dep_chain_into_preds): Type change.
30934 (find_predicates): Ditto.
30935 (find_def_preds): Ditto.
30936 (destroy_predicates_vecs): Ditto.
30937 (find_matching_predicates_in_rest_chains): Ditto.
30938 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30939 (is_pred_expr_subset): Ditto.
30940 (is_pred_chain_subset_of): Ditto.
30941 (is_included_in): Ditto.
30942 (is_superset_of): Ditto.
30944 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30946 Update copyright years.
30948 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30950 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30951 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30952 config/arc/arc.md, config/arc/arc.opt,
30953 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30954 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30955 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30956 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30957 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30958 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30959 vtable-verify.c, vtable-verify.h: Use the standard form for the
30962 2014-01-02 Tobias Burnus <burnus@net-b.de>
30964 * gcc.c (process_command): Update copyright notice dates.
30965 * gcov-dump.c: Ditto.
30967 * doc/cpp.texi: Bump @copying's copyright year.
30968 * doc/cppinternals.texi: Ditto.
30969 * doc/gcc.texi: Ditto.
30970 * doc/gccint.texi: Ditto.
30971 * doc/gcov.texi: Ditto.
30972 * doc/install.texi: Ditto.
30973 * doc/invoke.texi: Ditto.
30975 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30977 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30979 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30981 * config/i386/sse.md (*mov<mode>_internal): Guard
30982 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30984 PR rtl-optimization/59647
30985 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30986 new_rtx into UNSIGNED_FLOAT rtxes.
30988 Copyright (C) 2014 Free Software Foundation, Inc.
30990 Copying and distribution of this file, with or without modification,
30991 are permitted in any medium without royalty provided the copyright
30992 notice and this notice are preserved.