1 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
4 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
6 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
8 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
9 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
10 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
11 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
14 (aarch64_fold_builtin): Remove all reinterpret cases.
16 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
18 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
20 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
21 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
22 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
23 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
24 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
25 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
26 aarch64_reinterpretv2df<mode>): Delete.
28 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
30 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
31 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
32 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
33 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
34 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
35 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
36 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
37 vreinterpret_u32_f64): Use cast.
39 * config/aarch64/iterators.md (VD_RE): Delete.
41 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
43 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
44 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
45 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
46 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
47 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
48 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
49 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
50 Replace inline assembler with __aarch64_vset_lane_any.
52 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
54 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
56 (vmull_high_lane_s32): Likewise.
57 (vmull_high_lane_u16): Likewise.
58 (vmull_high_lane_u32): Likewise.
60 2014-09-11 Jason Merrill <jason@redhat.com>
63 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
65 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
68 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
69 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
70 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
72 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
73 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
74 Anna Tikhonova <anna.tikhonova@intel.com>
75 Ilya Tocar <ilya.tocar@intel.com>
76 Andrey Turetskiy <andrey.turetskiy@intel.com>
77 Ilya Verbin <ilya.verbin@intel.com>
78 Kirill Yukhin <kirill.yukhin@intel.com>
79 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
82 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
83 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
84 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
86 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
87 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
89 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
91 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
92 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
93 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
94 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
95 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
96 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
97 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
98 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
100 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
102 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
103 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
104 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
106 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
108 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
109 to access removed nodes.
111 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
113 PR tree-optimization/63186
114 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
115 (mark_nonssa_use): Likewise.
116 (verify_non_ssa_vars): Verify all header blocks for label
119 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
120 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
121 Anna Tikhonova <anna.tikhonova@intel.com>
122 Ilya Tocar <ilya.tocar@intel.com>
123 Andrey Turetskiy <andrey.turetskiy@intel.com>
124 Ilya Verbin <ilya.verbin@intel.com>
125 Kirill Yukhin <kirill.yukhin@intel.com>
126 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
129 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
130 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
131 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
132 "<avx2_avx512f>_permvar<mode><mask_name>".
133 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
134 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
135 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
136 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
138 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
139 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
140 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
141 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
143 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
145 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
146 V2DF, V4SF, DF, and DI modes.
147 (vsx_fmav2df2): Likewise.
148 (vsx_float_fix_<mode>2): Likewise.
149 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
151 2014-09-10 Xinliang David Li <davidxl@google.com>
154 * config/arm/arm.md (movcond_addsi): Handle case where source
155 and target operands are the same.
157 2014-09-10 David Malcolm <dmalcolm@redhat.com>
159 * final.c (this_is_asm_operands): Strengthen this variable from
160 rtx to const rtx_insn *.
161 * output.h (this_is_asm_operands): Likewise.
162 * rtl-error.c (location_for_asm): Strengthen param "insn" from
163 const_rtx to const rtx_insn *.
164 (diagnostic_for_asm): Likewise.
165 * rtl-error.h (error_for_asm): Likewise.
166 (warning_for_asm): Likewise.
168 2014-09-10 David Malcolm <dmalcolm@redhat.com>
170 * genextract.c (print_header): When writing out insn_extract to
171 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
172 * recog.h (insn_extract): Strengthen the param from rtx to
175 2014-09-10 Mike Stump <mikestump@comcast.net>
177 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
180 2014-09-10 Martin Jambor <mjambor@suse.cz>
182 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
183 (analyze): Do not set analyze flag if expand_thunk returns false;.
184 (create_wrapper): Likewise.
185 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
187 2014-09-10 Martin Jambor <mjambor@suse.cz>
190 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
191 new decl properly. Analyze the new thunk if it is expanded.
193 2014-09-10 Andreas Schwab <schwab@suse.de>
195 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
196 [USED_FOR_TARGET]: Define.
198 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
200 * config/mips/mips.c (mips_secondary_reload_class): Handle
203 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
205 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
208 2014-09-10 Jakub Jelinek <jakub@redhat.com>
210 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
211 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
212 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
213 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
214 flag_delete_null_pointer_checks for them.
215 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
216 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
217 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
218 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
219 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
221 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
222 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
223 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
224 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
225 * doc/invoke.texi (-fsanitize=nonnull-attribute,
226 -fsanitize=returns-nonnull-attribute): Document.
228 * ubsan.h (struct ubsan_mismatch_data): Removed.
229 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
230 * ubsan.c (ubsan_source_location): For unknown locations,
231 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
232 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
233 Allow more than one location and arbitrary extra arguments passed
234 in ... instead of through MISMATCH pointer.
235 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
236 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
237 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
240 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
241 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
242 Anna Tikhonova <anna.tikhonova@intel.com>
243 Ilya Tocar <ilya.tocar@intel.com>
244 Andrey Turetskiy <andrey.turetskiy@intel.com>
245 Ilya Verbin <ilya.verbin@intel.com>
246 Kirill Yukhin <kirill.yukhin@intel.com>
247 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
250 (define_mode_iterator VI48F): New.
251 (define_insn "<avx512>_compress<mode>_mask"): Rename from
252 "avx512f_compress<mode>_mask" and update mode iterator.
253 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
254 "avx512f_compressstore<mode>_mask" and update mode iterator.
255 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
256 "avx512f_expand<mode>_maskz" and update mode iterator.
257 (define_insn "<avx512>_expand<mode>_mask"): Rename from
258 "avx512f_expand<mode>_mask" and update mode iterator.
260 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
261 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
262 Anna Tikhonova <anna.tikhonova@intel.com>
263 Ilya Tocar <ilya.tocar@intel.com>
264 Andrey Turetskiy <andrey.turetskiy@intel.com>
265 Ilya Verbin <ilya.verbin@intel.com>
266 Kirill Yukhin <kirill.yukhin@intel.com>
267 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
270 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
271 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
272 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
273 avx512dq_rangepv4sf_mask.
275 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
277 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
278 (define_insn "reduces<mode>"): Ditto.
279 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
281 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
282 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
283 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
285 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
286 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
287 Anna Tikhonova <anna.tikhonova@intel.com>
288 Ilya Tocar <ilya.tocar@intel.com>
289 Andrey Turetskiy <andrey.turetskiy@intel.com>
290 Ilya Verbin <ilya.verbin@intel.com>
291 Kirill Yukhin <kirill.yukhin@intel.com>
292 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
295 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
296 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
297 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
298 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
299 avx512vl_getmantv2df_mask.
300 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
301 avx512f_vgetmantv4sf_round.
303 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
304 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
306 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
307 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
308 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
309 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
311 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
312 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
313 update mode iterator.
315 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
316 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
319 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
320 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
321 update mode iterator.
322 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
323 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
326 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
327 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
329 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
330 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
331 update mode iterator.
332 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
333 "avx512f_getmant<mode><round_saeonly_name>".
335 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
338 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
340 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
341 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
342 Anna Tikhonova <anna.tikhonova@intel.com>
343 Ilya Tocar <ilya.tocar@intel.com>
344 Andrey Turetskiy <andrey.turetskiy@intel.com>
345 Ilya Verbin <ilya.verbin@intel.com>
346 Kirill Yukhin <kirill.yukhin@intel.com>
347 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
349 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
350 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
351 (define_mode_iterator FMAMODE_AVX512): New.
352 (define_mode_iterator FMAMODE): Remove conditions.
353 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
354 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
355 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
357 (define_mode_iterator FMAMODE_NOVF512): Remove.
358 (define_insn "*fma_fmadd_<mode>"): Rename from
359 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
360 FMAMODE mode iterator.
361 (define_mode_iterator VF_SF_AVX512VL): New.
362 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
363 Use VF_SF_AVX512VL mode iterator.
364 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
365 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
367 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
368 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
370 (define_insn "*fma_fmsub_<mode>"): Rename from
371 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
372 FMAMODE mode iterator.
373 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
374 Use VF_SF_AVX512VL mode iterator.
375 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
376 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
378 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
379 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
381 (define_insn "*fma_fnmadd_<mode>"): Rename from
382 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
383 use FMAMODE mode iterator.
384 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
385 Use VF_SF_AVX512VL mode iterator.
386 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
387 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
389 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
390 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
392 (define_insn "*fma_fnmsub_<mode>"): Rename from
393 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
394 FMAMODE mode iterator.
395 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
396 Use VF_SF_AVX512VL mode iterator.
397 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
398 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
400 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
401 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
403 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
404 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
405 use VF_AVX512VL mode iterator.
406 (define_insn "*fma_fmaddsub_<mode>"): Rename from
407 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
409 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
410 Use VF_SF_AVX512VL mode iterator.
411 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
412 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
414 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
415 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
417 (define_insn "*fma_fmsubadd_<mode>"): Rename from
418 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
419 remove usage of subst.
420 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
421 Use VF_SF_AVX512VL mode iterator.
422 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
423 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
425 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
426 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
429 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
432 * calls.c (precompute_arguments): Check
433 promoted_for_signed_and_unsigned_p and set the promoted mode.
434 (promoted_for_signed_and_unsigned_p): New function.
435 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
436 and set the promoted mode.
437 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
438 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
439 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
441 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
443 * opth-gen.awk: Generate mapping from cpp message reasons to the
444 options that enable them.
445 * doc/options.texi (CppReason): Document.
447 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
449 * doc/invoke.texi (Wnormalized=): Update.
451 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
454 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
455 operands. Split off the constant operand alternative to ...
456 (*bool<mode>3_imm): New.
458 2014-09-09 David Malcolm <dmalcolm@redhat.com>
460 * rtl.h (single_set_2): Strengthen first param from const_rtx to
461 const rtx_insn *, and move prototype to above...
462 (single_set): ...this. Convert this from a macro to an inline
463 function, enforcing the requirement that the param is a const
465 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
467 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
468 Strengthen both params from rtx to rtx_insn *.
469 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
470 Likewise; introduce locals "producer_set", "consumer_set", using
471 them in place of "producer" and "consumer" when dealing with SET
473 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
474 when invoking single_set in region guarded by INSN_P.
475 (avr_out_bitop): Likewise.
476 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
477 region guarded by GET_CODE check, using methods to strengthen
478 local "this_insn" from rtx to rtx_insn *, and for clarity.
479 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
480 Strengthen local "insn" from rtx to rtx_insn *.
481 (define_insn_and_split "xload<mode>_A"): Likewise.
482 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
484 (find_load): Likewise for return type.
485 (workaround_speculation): Likewise for both locals named
487 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
489 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
491 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
493 * config/h8300/h8300.c (notice_update_cc): Likewise.
494 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
495 "insn" and "dep_insn".
496 (exact_store_load_dependency): Likewise for both params.
497 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
498 since this now clashes with inline function. Instead, delay
499 calling single_set until the point where its needed, and then
500 assign the result to "compare_set" and rework the conditional that
502 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
503 local "last" from rtx to rtx_insn *.
504 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
506 (mips_store_data_bypass_p): Likewise for both params.
507 * config/mips/mips.c (mips_load_store_insns): Likewise for second
509 (mips_store_data_bypass_p): Likewise for both params.
510 (mips_orphaned_high_part_p): Likewise for param "insn".
511 * config/mn10300/mn10300.c (extract_bundle): Likewise.
512 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
513 Introduce local rtx "insn2_pat".
514 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
516 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
517 Introduce local rtx "set", using it in place of "insn" for the
518 result of single_set. This appears to fix a bug, since the call
519 to find_regno_note on a SET does nothing.
520 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
521 params from rtx to rtx_insn *.
522 (set_to_load_agen): Likewise.
523 * config/s390/s390.c (s390_label_align): Likewise for local
524 "prev_insn". Introduce new rtx locals "set" and "src", using
525 them in place of "prev_insn" for the results of single_set
526 and SET_SRC respectively.
527 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
528 Introduce new rtx local "set" using in place of "jump" for the
529 result of single_set. Use SET_SRC (set) rather than plain
531 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
533 (noncall_uses_reg): Likewise.
534 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
535 guarded by GET_CODE check, using its methods for clarity, and to
536 enable strengthening local "this_insn" from rtx to rtx_insn *.
537 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
538 "insn" from rtx to rtx_insn *.
539 (define_expand "umulhisi3"): Likewise.
540 (define_expand "smulsi3_highpart"): Likewise.
541 (define_expand "umulsi3_highpart"): Likewise.
542 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
543 local "after". Replace GET_CODE check with a dyn_cast,
544 introducing new local rtx_sequence * "seq", using insn method for
547 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
548 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
549 place of "insn" once we're dealing with patterns rather than the
551 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
552 (scan_trace): Likewise for local "elt", updating lookups within
553 sequence to use insn method rather than element method.
554 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
556 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
557 * ifcvt.c (noce_try_abs): Likewise for local "insn".
558 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
560 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
561 "insn" from rtx to rtx_insn *.
562 (skip_usage_debug_insns): Likewise for return type, adding a
564 (check_secondary_memory_needed_p): Likewise for local "insn".
565 (inherit_reload_reg): Likewise.
566 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
567 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
569 (store_data_bypass_p): Likewise for both params.
570 (if_test_bypass_p): Likewise.
571 * recog.h (store_data_bypass_p): Likewise for both params.
572 (if_test_bypass_p): Likewise.
573 * reload.c (find_equiv_reg): Likewise for local "where".
574 * reorg.c (delete_jump): Likewise for param "insn".
575 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
577 * store-motion.c (replace_store_insn): Likewise for param "del".
578 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
579 and use its methods for clarity, and to strengthen local "del"
580 from rtx to rtx_insn *.
581 (build_store_vectors): Use insn method of "st" when calling
582 replace_store_insn for typesafety and clarity.
584 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
586 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
587 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
588 on how to make it legal in future.
590 2014-09-09 David Malcolm <dmalcolm@redhat.com>
592 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
594 (restinsn): Likewise.
595 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
597 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
599 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
601 (arc_hazard): Likewise for both params.
602 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
603 checked casts to rtx_sequence * and uses of the insn method for
605 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
606 (arc_adjust_insn_length): Likewise for param "insn".
607 (struct insn_length_parameters_s): Likewise for first param of
608 "get_variants" callback field.
609 (arc_get_insn_variants): Likewise for first param and local
610 "inner". Replace a check of GET_CODE with a dyn_cast to
611 rtx_sequence *, using methods for type-safety and clarity.
612 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
613 rtx_sequence * and uses of the insn method for type-safety when
614 invoking arc_adjust_insn_length.
615 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
617 (arm_address_offset_is_imm): Likewise.
618 (struct tune_params): Likewise for params 1 and 3 of the
619 "sched_adjust_cost" callback field.
620 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
621 params 1 and 3 ("insn" and "dep").
622 (xscale_sched_adjust_cost): Likewise.
623 (fa726te_sched_adjust_cost): Likewise.
624 (cortexa7_older_only): Likewise for param "insn".
625 (cortexa7_younger): Likewise.
626 (arm_attr_length_move_neon): Likewise.
627 (arm_address_offset_is_imm): Likewise.
628 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
629 * config/avr/avr.c (avr_notice_update_cc): Likewise.
630 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
631 (workaround_speculation): Likewise for local "last_condjump".
632 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
633 (shadow_or_blockage_p): Likewise.
634 (get_unit_reqs): Likewise.
635 (get_unit_operand_masks): Likewise.
636 (c6x_registers_update): Likewise.
637 (returning_call_p): Likewise.
638 (can_use_callp): Likewise.
639 (convert_to_callp): Likewise.
640 (find_last_same_clock): Likwise for local "t".
641 (reorg_split_calls): Likewise for local "shadow".
642 (hwloop_pattern_reg): Likewise for param "insn".
643 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
644 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
645 (frv_extract_membar): Likewise.
646 (frv_optimize_membar_local): Strengthen param "last_membar" from
647 rtx * to rtx_insn **.
648 (frv_optimize_membar_global): Strengthen param "membar" from rtx
650 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
652 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
653 both params from rtx to rtx_insn *.
654 (ia64_ld_address_bypass_p): Likewise.
655 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
657 (ia64_safe_type): Likewise.
658 (group_barrier_needed): Likewise.
659 (safe_group_barrier_needed): Likewise.
660 (ia64_single_set): Likewise.
661 (is_load_p): Likewise.
662 (record_memory_reference): Likewise.
663 (get_mode_no_for_insn): Likewise.
664 (important_for_bundling_p): Likewise.
665 (unknown_for_bundling_p): Likewise.
666 (ia64_st_address_bypass_p): Likewise for both params.
667 (ia64_ld_address_bypass_p): Likewise.
668 (expand_vselect): Introduce new local rtx_insn * "insn", using it
669 in place of rtx "x" after the emit_insn call.
670 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
671 Strengthen param from rtx to rtx_insn *.
672 (ix86_agi_dependent): Likewise for both params.
673 (ix86_attr_length_immediate_default): Likewise for param 1.
674 (ix86_attr_length_address_default): Likewise for param.
675 (ix86_attr_length_vex_default): Likewise for param 1.
676 * config/i386/i386.c (ix86_attr_length_immediate_default):
677 Likewise for param "insn".
678 (ix86_attr_length_address_default): Likewise.
679 (ix86_attr_length_vex_default): Likewise.
680 (ix86_agi_dependent): Likewise for both params.
681 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
682 (vselect_insn): Likewise for this variable.
683 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
685 (m68k_sched_attr_opy_type): Likewise.
686 * config/m68k/m68k.c (sched_get_operand): Likewise.
687 (sched_attr_op_type): Likewise.
688 (m68k_sched_attr_opx_type): Likewise.
689 (m68k_sched_attr_opy_type): Likewise.
690 (sched_get_reg_operand): Likewise.
691 (sched_get_mem_operand): Likewise.
692 (m68k_sched_address_bypass_p): Likewise for both params.
693 (sched_get_indexed_address_scale): Likewise.
694 (m68k_sched_indexed_address_bypass_p): Likewise.
695 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
696 (m68k_sched_indexed_address_bypass_p): Likewise.
697 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
698 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
700 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
701 params from rtx to rtx_insn *.
702 (mips_fmadd_bypass): Likewise.
703 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
704 (mips_linked_madd_p): Likewise.
705 (mips_macc_chains_last_hilo): Likewise for this variable.
706 (mips_macc_chains_record): Likewise for param.
707 (vr4130_last_insn): Likewise for this variable.
708 (vr4130_swap_insns_p): Likewise for both params.
709 (mips_ls2_variable_issue): Likewise for param.
710 (mips_need_noat_wrapper_p): Likewise for param "insn".
711 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
712 in place of "x" after the emit_insn.
713 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
714 params from rtx to rtx_insn *.
715 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
716 (pa_combine_instructions): Introduce local "par" for result of
717 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
719 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
720 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
721 (rl78_alloc_physical_registers_op1): Likewise.
722 (rl78_alloc_physical_registers_op2): Likewise.
723 (rl78_alloc_physical_registers_ro1): Likewise.
724 (rl78_alloc_physical_registers_cmp): Likewise.
725 (rl78_alloc_physical_registers_umul): Likewise.
726 (rl78_alloc_address_registers_macax): Likewise.
727 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
728 * config/s390/predicates.md (execute_operation): Likewise for
730 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
732 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
733 (addr_generation_dependency_p): Likewise for param "insn".
734 (s390_agen_dep_p): Likewise for both params.
735 (s390_fpload_toreg): Likewise for param "insn".
736 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
737 * config/sh/sh.c (sh_loop_align): Likewise for param and local
739 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
740 * config/sh/sh_treg_combine.cc
741 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
743 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
744 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
745 "and_insn", "load", "shift".
746 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
748 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
749 for XEXP (note, 0) of the REG_CC_SETTER note.
750 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
751 rtx_insn *, eliminating a checked cast made redundant by this.
752 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
754 * genattr.c (main): When writing out the prototype to
755 const_num_delay_slots, strengthen the param from rtx to
757 * genattrtab.c (write_const_num_delay_slots): Likewise when
758 writing out the implementation of const_num_delay_slots.
759 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
760 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
761 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
762 favor of new rtx locals "src" and "set" and new local rtx_insn *
764 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
766 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
767 locals "cond", "if_then_else", "set" and new rtx_insn * locals
769 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
770 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
771 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
772 the top-level scope, replacing with new more tightly-scoped rtx
773 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
774 "new_insn", "copy_of_insn_b", and make local rtx "set" more
776 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
778 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
780 (ira_setup_alts): Likewise for param "insn".
781 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
782 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
784 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
785 new more-tightly scoped rtx locals "add3_insn", "insn",
786 "add2_insn" and rtx_insn * "move_insn".
787 * postreload-gcse.c (eliminate_partially_redundant_load): Add
788 checked cast on result of gen_move_insn when invoking
790 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
792 (verify_changes): Add a checked cast on "object" when invoking
794 (extract_insn_cached): Strengthen param "insn" from rtx to
796 (extract_constrain_insn_cached): Likewise.
797 (extract_insn): Likewise.
798 * recog.h (insn_invalid_p): Likewise for param 1.
799 (recog_memoized): Likewise for param.
800 (extract_insn): Likewise.
801 (extract_constrain_insn_cached): Likewise.
802 (extract_insn_cached): Likewise.
803 * reload.c (can_reload_into): Likewise for local "test_insn".
804 * reload.h (cleanup_subreg_operands): Likewise for param.
805 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
806 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
807 result of emit_insn. Remove a checked cast made redundant by this
809 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
811 * sel-sched.c (get_reg_class): Likewise.
813 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
814 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
816 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
817 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
819 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
821 2014-09-09 David Malcolm <dmalcolm@redhat.com>
823 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
824 const rtx_insn *, and from rtx to rtx_insn * for the other
826 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
827 INSN_LOCATION, since we know INSN_P holds.
828 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
829 (insn_file): Likewise.
830 (insn_scope): Likewise.
831 (insn_location): Likewise.
833 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
834 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
835 for the result of gen_load_const_gp.
836 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
837 param from rtx to rtx_insn *.
838 * config/rs6000/rs6000.c (output_call): Likewise.
839 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
840 introducing a checked cast to rtx_sequence * and use of the insn
842 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
843 from rtx to rtx_insn *.
844 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
845 (insn_line): Likewise.
846 (insn_file): Likewise.
847 (insn_location): Likewise.
848 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
849 from rtx to rtx_insn *.
850 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
851 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
852 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
854 * reorg.c (relax_delay_slots): Strengthen locals named "after"
855 from rtx to rtx_insn *; use methods of "pat" for type-safety.
857 2014-09-09 David Malcolm <dmalcolm@redhat.com>
859 * combine.c (try_combine): Eliminate checked cast on result of
861 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
862 autogenerated one by strengthening the return type and params 2 and 3
863 from rtx to rtx_insn *, and by naming the params.
864 * gengenrtl.c (special_rtx): Add INSN to those that are
866 * rtl.h (gen_rtx_INSN): New prototype.
868 2014-09-09 David Malcolm <dmalcolm@redhat.com>
870 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
872 (no_equiv): Likewise.
873 (update_equiv_regs): Likewise.
874 (setup_reg_equiv): Likewise. Strengthen locals "elem",
875 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
876 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
878 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
879 from rtx to rtx_insn_list *.
880 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
881 rtx_insn_list * and use methods for clarity and typesafety.
882 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
884 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
885 redundant check on INSN_P (insns): this cannot hold, as "insns" is
886 an INSN_LIST, not an insn.
887 (reverse_equiv_p): Strengthen local "insns" from rtx to
888 rtx_insn_list * and use methods for clarity and typesafety.
889 (contains_reloaded_insn_p): Likewise for local "list".
891 2014-09-09 Jiong Wang <jiong.wang@arm.com>
893 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
894 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
895 (arm_builtin_vectorized_function): Likewise.
896 * config/arm/arm_neon_builtins.def: New macro for copysignf.
897 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
899 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
901 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
902 * builtins.h (default_target_builtins): Likewise.
903 * gcse.h (default_target_gcse): Likewise.
904 * target-globals.h (target_globals): Add a destructor. Convert
905 void-pointer fields back to their real type and change from
906 GTY((atomic)) to GTY((skip)).
907 (restore_target_globals): Remove casts accordingly.
908 * target-globals.c (save_target_globals): Use XCNEW rather than
909 ggc_internal_cleared_alloc to allocate non-GC structures.
910 Use ggc_cleared_alloc to allocate the target_globals structure
912 (target_globals::~target_globals): Define.
914 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
916 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
917 mnemonic instead of fldmfdd.
918 * config/arm/arm.c (vfp_output_fstmd): Rename to...
919 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
920 Output vpush when address register is SP.
921 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
922 (vfp_output_vstmd): ... This.
923 * config/arm/vfp.md (push_multi_vfp): Update call to
926 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
928 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
930 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
932 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
933 (*sqrtdf2_vfp): Likewise.
934 (*cmpsf_vfp): Likewise.
935 (*cmpsf_trap_vfp): Likewise.
936 (*cmpdf_vfp): Likewise.
937 (*cmpdf_trap_vfp): Likewise.
939 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
941 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
942 (*truncdfsf2_vfp): Likewise.
943 (*truncsisf2_vfp): Likewise.
944 (*truncsidf2_vfp): Likewise.
945 (fixuns_truncsfsi2): Likewise.
946 (fixuns_truncdfsi2): Likewise.
947 (*floatsisf2_vfp): Likewise.
948 (*floatsidf2_vfp): Likewise.
949 (floatunssisf2): Likewise.
950 (floatunssidf2): Likewise.
952 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
954 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
955 (*muldf3_vfp): Likewise.
956 (*mulsf3negsf_vfp): Likewise.
957 (*muldf3negdf_vfp): Likewise.
958 (*mulsf3addsf_vfp): Likewise.
959 (*muldf3adddf_vfp): Likewise.
960 (*mulsf3subsf_vfp): Likewise.
961 (*muldf3subdf_vfp): Likewise.
962 (*mulsf3negsfaddsf_vfp): Likewise.
963 (*fmuldf3negdfadddf_vfp): Likewise.
964 (*mulsf3negsfsubsf_vfp): Likewise.
965 (*muldf3negdfsubdf_vfp): Likewise.
967 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
969 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
970 (*absdf2_vfp): Likewise.
971 (*negsf2_vfp): Likewise.
972 (*negdf2_vfp): Likewise.
973 (*addsf3_vfp): Likewise.
974 (*adddf3_vfp): Likewise.
975 (*subsf3_vfp): Likewise.
976 (*subdf3_vfp): Likewise.
977 (*divsf3_vfp): Likewise.
978 (*divdf3_vfp): Likewise.
980 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
982 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
984 (arm_print_operand): Don't convert real values to decimal
985 representation in default case.
986 (fp_immediate_constant): Delete.
987 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
988 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
990 (*thumb2_movsi_vfp): Likewise.
991 (*movdi_vfp): Likewise.
992 (*movdi_vfp_cortexa8): Likewise.
993 (*movhf_vfp_neon): Likewise.
994 (*movhf_vfp): Likewise.
995 (*movsf_vfp): Likewise.
996 (*thumb2_movsf_vfp): Likewise.
997 (*movdf_vfp): Likewise.
998 (*thumb2_movdf_vfp): Likewise.
999 (*movsfcc_vfp): Likewise.
1000 (*thumb2_movsfcc_vfp): Likewise.
1001 (*movdfcc_vfp): Likewise.
1002 (*thumb2_movdfcc_vfp): Likewise.
1004 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1006 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1010 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1013 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1014 Use qualifier_immediate for last operand. Rename to...
1015 (aarch64_types_ternop_lane_qualifiers): ... This.
1016 (TYPES_QUADOP): Rename to...
1017 (TYPES_TERNOP_LANE): ... This.
1018 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1019 error. Change return of 0 to return of NULL_RTX.
1020 (aarch64_crc32_expand_builtin): Likewise.
1021 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1022 ICE when expanding unknown builtin.
1023 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1024 TERNOP_LANE qualifiers.
1025 (sqdmlsl_lane): Likewise.
1026 (sqdmlal_laneq): Likewise.
1027 (sqdmlsl_laneq): Likewise.
1028 (sqdmlal2_lane): Likewise.
1029 (sqdmlsl2_lane): Likewise.
1030 (sqdmlal2_laneq): Likewise.
1031 (sqdmlsl2_laneq): Likewise.
1033 2014-09-09 Nick Clifton <nickc@redhat.com>
1035 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1037 (S/390 and zSeries Options): Remove superfluous word from the
1038 description of the -mhotpatch option.
1040 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1042 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1043 * ira.c: #include "shrink-wrap.h"
1044 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1045 * ifcvt.c: #include "shrink-wrap.h"
1046 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1048 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1050 * common/config/picochip/picochip-common.c: Remove.
1051 * config.gcc: Remove support for picochip.
1052 * config/picochip/constraints.md: Remove.
1053 * config/picochip/dfa_space.md: Remove.
1054 * config/picochip/dfa_speed.md: Remove.
1055 * config/picochip/picochip-protos.h: Remove.
1056 * config/picochip/picochip.c: Remove.
1057 * config/picochip/picochip.h: Remove.
1058 * config/picochip/picochip.md: Remove.
1059 * config/picochip/picochip.opt: Remove.
1060 * config/picochip/predicates.md: Remove.
1061 * config/picochip/t-picochip: Remove.
1062 * doc/md.texi: Don't document picochi.
1064 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1066 * basic-block.h (control_flow_insn_p): Strengthen param from
1067 const_rtx to const rtx_insn *.
1068 * cfgbuild.c (control_flow_insn_p): Likewise.
1070 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1072 * gcse.c (modify_mem_list): Strengthen this variable from
1073 vec<rtx> * to vec<rtx_insn *> *.
1074 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1076 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1077 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1078 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1080 (record_last_set_info): Likewise for local "last_set_insn".
1082 2014-09-08 DJ Delorie <dj@redhat.com>
1084 * doc/invoke.texi (MSP430 Options): Add -minrt.
1086 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1088 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1089 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1090 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1092 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1094 (adjust_splat): New function.
1095 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1096 (dump_swap_insn_table): Add case for SH_SPLAT.
1098 2014-09-08 Richard Biener <rguenther@suse.de>
1101 * tree-inline.c (copy_loops): The source loop header should
1103 (tree_function_versioning): If loops need fixup after removing
1104 unreachable blocks fix them.
1105 * omp-low.c (simd_clone_adjust): Do not add incr block to
1106 loop under construction.
1108 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1110 * config/aarch64/aarch64-builtins.c
1111 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1113 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1115 * config/i386/cygming.h (TF_SIZE): Remove.
1116 * config/i386/darwin.h (TF_SIZE): Remove.
1117 * config/i386/dragonfly.h (TF_SIZE): Remove.
1118 * config/i386/freebsd.h (TF_SIZE): Remove.
1119 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1120 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1121 * config/i386/sol2.h (TF_SIZE): Remove.
1122 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1123 * config/ia64/linux.h (TF_SIZE): Remove.
1124 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1125 * doc/tm.texi: Regenerate.
1126 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1128 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1130 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1132 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1134 * doc/tm.texi: Regenerate.
1135 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1137 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1138 * config/cris/cris.h (__make_dp): Remove.
1140 2014-09-08 Richard Biener <rguenther@suse.de>
1143 * cfgloop.c (mark_loop_for_removal): Track former header
1145 * cfgloop.h (struct loop): Add former_header member unconditionally.
1146 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1147 diagnostic unconditionally.
1149 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1152 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1153 constraint for operand0 and remove write only modifier from operand3.
1155 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1157 PR rtl-optimization/62208
1158 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1159 rather than const0_rtx in eq/ne-xor simplifications.
1161 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1163 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1164 (arc_output_mi_thunk): Likewise.
1166 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1167 arguments to silence bogus warning.
1169 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1172 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1174 2014-09-06 Tom de Vries <tom@codesourcery.com>
1176 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1177 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1178 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1180 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1183 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1184 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1186 2014-09-05 Easwaran Raman <eraman@google.com>
1188 PR rtl-optimization/62146
1189 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1190 hoisted instruction unconditional.
1192 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1195 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1196 Do not allow any_mask_operand for operands[2].
1197 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1199 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1201 * config/arc/arc.c (arc_print_operand): Use insn method of
1202 final_sequence for type-safety.
1203 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1204 "insn" from rtx to rtx_insn *.
1205 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1206 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1207 Likewise for locals "branch", "label".
1208 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1209 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1210 (same_cmp_following_p): Likewise for locals "i2", "i3".
1211 * config/sh/sh_optimize_sett_clrt.cc
1212 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1213 param "cbranch_insn".
1214 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1215 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1216 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1218 (condjump_p): Likewise.
1219 (condjump_in_parallel_p): Likewise.
1221 (any_uncondjump_p): Likewise.
1222 (any_condjump_p): Likewise.
1223 (condjump_label): Likewise.
1224 (returnjump_p): Strengthen param "insn" from rtx to
1226 (onlyjump_p): Strengthen param "insn" from const_rtx to
1228 (jump_to_label_p): Likewise.
1229 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1230 (invert_jump): Likewise.
1231 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1233 (get_jump_flags): Strengthen param "insn" from rtx to
1235 (get_branch_condition): Likewise.
1236 (condition_dominates_p): Likewise.
1237 (make_return_insns): Move declaration of local "pat" earlier, to
1238 after we've handled NONJUMP_INSN_P and non-sequences, using its
1239 methods to simplify the code and for type-safety.
1240 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1242 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1243 (condjump_p): Strengthen param from const_rtx to
1245 (any_condjump_p): Likewise.
1246 (any_uncondjump_p): Likewise.
1248 (condjump_label): Likewise.
1249 (simplejump_p): Likewise.
1250 (returnjump_p): Likewise.
1251 (onlyjump_p): Likewise.
1252 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1253 (invert_jump): Likewise.
1254 (condjump_in_parallel_p): Strengthen param from const_rtx to
1256 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1257 to const rtx_insn *.
1258 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1259 to const rtx_insn *.
1260 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1262 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1264 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1265 above the conditional, and convert the check on GET_CODE to a
1266 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1267 the conditional. Simplify the conditional by using methods of
1270 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1272 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1273 "link" from rtx to rtx_insn_list *, and use its methods for
1274 clarity and type-safety.
1275 (toggle_cancelled_flags): Likewise.
1276 (restore_last_backtrack_point): Likewise.
1277 (queue_to_ready): Use insn method of "link" in one place.
1278 (schedule_block): Strengthen local "link" from rtx to
1279 rtx_insn_list *, and use its methods for clarity and type-safety.
1281 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1283 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1284 param "insn" from const_rtx to const rtx_insn *.
1285 (sched_get_reverse_condition_uncached): Likewise.
1286 (sched_get_condition_with_rev): Likewise.
1287 (sched_has_condition_p): Likewise.
1288 (sched_insns_conditions_mutex_p): Likewise for both params.
1289 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1290 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1291 (setup_insn_reg_uses): Move local "list" to be more tightly
1292 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1293 its methods for clarity and type-safety.
1294 (sched_analyze_1): Strengthen local "pending" from rtx to
1295 rtx_insn_list *, and local "pending_mem" from rtx to
1296 rtx_expr_list *. Use methods of each for clarity and type-safety.
1297 (sched_analyze_2): Likewise.
1298 (sched_analyze_insn): Likewise.
1300 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1301 param from const_rtx to const rtx_insn *.
1302 (sched_insns_conditions_mutex_p): Likewise for both params.
1303 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1306 * system.h (CONST_CAST_RTX_INSN): New macro.
1308 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1310 * recog.c (peep2_attempt): Strengthen return type from rtx to
1312 (peep2_update_life): Likewise for params "last", "prev", removing
1313 a checked cast made redundant by this.
1314 (peephole2_optimize): Likewise for local "last".
1316 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1318 * basic-block.h (set_block_for_insn): Eliminate this macro in
1320 * rtl.h (set_block_for_insn): New inline function, imposing the
1321 requirement that the "insn" param is an rtx_insn *.
1323 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1325 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1327 * final.c (get_call_reg_set_usage): Likewise for first param,
1328 eliminating a checked cast.
1329 * regs.h (get_call_reg_set_usage): Likewise for first param.
1330 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1331 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1332 cast, replacing references to "x" with "call_insn" where
1334 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1335 rtx_insn *, adding a checked cast.
1337 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1339 * output.h (final_scan_insn): Strengthen first param from rtx to
1342 * final.c (final_scan_insn): Likewise, renaming it back from
1343 "uncast_insn" to "insn", eliminating the checked cast.
1345 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1346 "vec" with an rtx_sequence * "seq", taking a copy of
1347 "final_sequence", and using methods of "seq" for clarity, and for
1348 type-safety in the calls to final_scan_insn.
1349 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1350 of "final_sequence" for clarity, and for type-safety in the call to
1352 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1353 rtx_sequence * and rename from "insn" to "seq".
1355 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1357 * jump.c (delete_related_insns): Introduce a new local "table" by
1358 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1359 get_labels method of "table" to simplify access to the labels in
1362 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1364 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1365 f_minmaxs, f_minmaxd types.
1367 2014-09-05 Richard Biener <rguenther@suse.de>
1369 * cfgloop.c (mark_loop_for_removal): Record former header
1370 when ENABLE_CHECKING.
1371 * cfgloop.h (strut loop): Add former_header member when
1373 * loop-init.c (fix_loop_structure): Sanity check loops
1374 marked for removal if they re-appeared.
1376 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1378 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1379 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1381 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1382 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1383 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1384 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1385 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1386 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1387 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1388 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1389 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1390 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1391 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1392 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1393 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1394 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1395 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1396 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1397 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1398 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1399 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1400 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1401 with int{32,16,8}_t.
1403 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1405 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1406 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1407 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1408 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1409 Remove temporary __asm__ and reimplement.
1411 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1413 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1414 handling cmge, cmgt, cmeq, cmtst.
1416 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1417 cmlt, cmgeu, cmgtu, cmtst): Remove.
1419 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1420 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1421 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1422 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1424 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1426 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1428 (aarch64_fold_builtin): Update pattern for cmtst.
1430 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1433 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1435 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1436 Switch operands, separate out more cases, refactor.
1438 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1440 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1441 argument; rename old version to...
1442 (aarch64_const_vec_all_same_in_range_p): ...this.
1443 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1445 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1447 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1449 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1450 Remove qualifier_const_pointer, update comment.
1452 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1454 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1456 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1458 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1459 varargs with pointer parameter.
1460 (aarch64_simd_expand_builtin): pass pointer into previous.
1462 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1464 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1467 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1469 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1470 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1471 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1472 Replace temporary asm with call to builtin.
1473 (vrbit_p8, vrbitq_p8): New functions.
1475 2014-09-05 Richard Biener <rguenther@suse.de>
1477 * cfgloop.c (mark_loop_for_removal): New function.
1478 * cfgloop.h (mark_loop_for_removal): Declare.
1479 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1480 (merge_blocks): Likewise.
1481 (duplicate_block): Likewise.
1482 * except.c (sjlj_emit_dispatch_table): Likewise.
1483 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1484 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1485 (thread_through_loop_header): Likewise.
1487 2014-09-05 Richard Biener <rguenther@suse.de>
1490 * fold-const.c (try_move_mult_to_index): Remove.
1491 (fold_binary_loc): Do not call it.
1492 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1493 from the base object again.
1495 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1497 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1500 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1503 * config/arm/arm.md (setmem): New pattern.
1504 * config/arm/arm-protos.h (struct tune_params): New fields.
1505 (arm_gen_setmem): New prototype.
1506 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1507 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1508 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1509 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1510 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1511 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1512 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1513 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1514 (arm_const_inline_cost): New function.
1515 (arm_block_set_max_insns): New function.
1516 (arm_block_set_non_vect_profit_p): New function.
1517 (arm_block_set_vect_profit_p): New function.
1518 (arm_block_set_unaligned_vect): New function.
1519 (arm_block_set_aligned_vect): New function.
1520 (arm_block_set_unaligned_non_vect): New function.
1521 (arm_block_set_aligned_non_vect): New function.
1522 (arm_block_set_vect, arm_gen_setmem): New functions.
1524 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1526 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1528 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1530 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1532 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1534 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1536 * valtrack.h: Adjust.
1538 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1540 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1542 (emit_jump_insn_before_noloc): Likewise.
1543 (emit_call_insn_before_noloc): Likewise.
1544 (emit_label_before): Likewise.
1545 (emit_label_after): Likewise.
1546 (emit_insn_before_setloc): Likewise.
1547 (emit_jump_insn_before_setloc): Likewise.
1548 (emit_call_insn_before_setloc): Likewise.
1549 (emit_call_insn_before): Likewise.
1552 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1554 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1555 rtx_insn *, eliminating a checked cast.
1557 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1559 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1560 const_rtx to const rtx_insn *.
1561 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1564 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1566 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1567 fixup_args_size_notes.
1568 * expr.c (fixup_args_size_notes): Strengthen first two params from
1569 rtx to rtx_insn *, eliminating a checked cast.
1570 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1573 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1575 * haifa-sched.c (get_ready_element): Strengthen return type from
1577 * sched-int.h (get_ready_element): Likewise.
1579 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1582 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1583 indexed_or_indirect_operand instead of memory_operand.
1584 (floatsi<mode>2_lfiwzx_mem): Ditto.
1586 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1588 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1589 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1590 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1592 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1594 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1596 (get_last_nonnote_insn): Likewise.
1597 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1598 * resource.c (find_basic_block): Likewise.
1600 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1603 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1605 * genattr.c (main): Within the prototype of insn_latency written
1606 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1607 * genautomata.c (output_internal_maximal_insn_latency_func):
1608 Within the implementation of insn_latency written out to
1609 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1610 eliminating a pair of checked casts.
1612 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1614 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1617 * rtl.h (eh_returnjump_p): Likewise.
1619 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1621 * Makefile.in (TAGS): Handle constructs in timevar.def.
1623 2014-09-04 Guozhi Wei <carrot@google.com>
1626 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1627 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1628 it into two patterns.
1629 (move_lo_quad_internal_be_<mode>): Likewise.
1631 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1633 * doc/options.texi: Document that Var and Init are required if CPP
1635 * optc-gen.awk: Require Var and Init if CPP is given.
1636 * common.opt (Wpedantic): Use Init.
1638 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1640 * config/rs6000/rs6000.c (special_handling_values): Add
1642 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1643 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1644 as swappable with special handling SH_EXTRACT. Remove
1645 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1647 (adjust_extract): New function.
1648 (handle_special_swappables): Add default to case statement; add
1649 case for SH_EXTRACT that calls adjust_extract.
1650 (dump_swap_insn_table): Handle SH_EXTRACT.
1652 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1654 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1655 selection of 0th memory doubleword, regardless of endianness.
1657 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1659 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1661 2014-09-04 Alan Modra <amodra@gmail.com>
1664 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1667 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1669 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1670 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1671 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1672 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1673 * doc/tm.texi: Regenerate.
1674 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1675 selection logic to default_dwarf_frame_reg_mode.
1677 2014-09-03 Marek Polacek <polacek@redhat.com>
1679 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1682 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1684 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1685 the automodified register.
1687 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1689 * output.h (get_some_local_dynamic_name): Declare.
1690 * final.c (some_local_dynamic_name): New variable.
1691 (get_some_local_dynamic_name): New function.
1692 (final_end_function): Clear some_local_dynamic_name.
1693 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1694 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1695 (print_operand): Report an error if '%&' is used inappropriately.
1696 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1697 (get_some_local_dynamic_name_1): Delete.
1698 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1699 (rs6000_get_some_local_dynamic_name): Delete.
1700 (rs6000_get_some_local_dynamic_name_1): Delete.
1701 (print_operand): Report an error if '%&' is used inappropriately.
1702 * config/s390/s390.c (machine_function): Remove some_ld_name.
1703 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1704 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1705 * config/sparc/sparc.c: Include rtl-iter.h.
1706 (machine_function): Remove some_ld_name.
1707 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1708 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1710 2014-09-03 Richard Henderson <rth@redhat.com>
1712 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1713 (aarch64_popwb_pair_reg): Remove.
1714 (aarch64_set_frame_expr): Remove.
1715 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1716 the restore ops performed by the insns generated.
1717 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1718 insn. Perform the calls_eh_return addition later; do not attempt to
1719 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1720 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1721 special markup at all. Load cfun->machine->frame.hard_fp_offset
1722 into a local variable.
1723 (aarch64_frame_pointer_required): Don't check calls_alloca.
1725 2014-09-03 Richard Biener <rguenther@suse.de>
1727 * opts.c (default_options_optimization): Adjust
1728 max-combine-insns to 2 for -Og.
1730 2014-09-03 Martin Jambor <mjambor@suse.cz>
1733 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1734 pass-trough jump functions correctly.
1736 2014-09-03 Martin Jambor <mjambor@suse.cz>
1739 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1740 created replacements in ascending order of offsets.
1741 (known_aggs_to_agg_replacement_list): Likewise.
1743 2014-09-03 Martin Liska <mliska@suse.cz>
1745 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1746 is set to set uninitialized value for vnresult.
1748 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1750 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1751 for TARGET_MUST_PASS_IN_STACK.
1753 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1755 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1756 for TARGET_ARG_PARTIAL_BYTES.
1758 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1760 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1761 instructions for varargs implementation.
1762 (nds32_expand_epilogue): Emit stack adjustment instructions for
1763 varargs implementation.
1765 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1767 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1768 optimization detection.
1770 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1772 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1774 (nds32_function_arg_advance): Deal with nameless arguments.
1775 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1776 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1777 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1779 2014-09-03 Richard Biener <rguenther@suse.de>
1781 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1782 (struct bb_bitmap_sets): Remove deferred member.
1783 (BB_DEFERRED): Remove.
1784 (defer_or_phi_translate_block): Remove.
1785 (compute_antic_aux): Remove deferring of blocks, assert
1786 proper iteration order.
1787 (compute_antic): Do not set BB_DEFERRED.
1788 (eliminate): Allocate el_avail of proper size initially.
1790 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1792 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1793 according to the value of crtl->args.pretend_args_size.
1795 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1797 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1798 varargs information.
1800 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1802 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1803 implementation for TARGET_SETUP_INCOMING_VARARGS.
1804 (nds32_strict_argument_naming): Refine comment.
1805 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1806 Define for future implementation.
1808 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
1810 * config/i386/adxintrin.h (_subborrow_u32): New.
1811 (_addcarry_u32): Ditto.
1812 (_subborrow_u64): Ditto.
1813 (_addcarry_u64): Ditto.
1814 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1816 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1817 __builtin_ia32_sbb_u64
1819 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1821 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1823 (nds32_function_arg_advance): Likewise.
1824 (nds32_init_cumulative_args): Likewise.
1825 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1826 (NDS32_FIRST_GPR_REGNUM): Define.
1827 (NDS32_LAST_GPR_REGNUM): Define.
1828 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1829 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1830 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1831 (machine_function): Use GRP-specific stuff.
1833 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1835 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1836 (nds32_expand_epilogue): Likewise.
1837 (nds32_expand_prologue_v3push): Likewise.
1838 (nds32_expand_epilogue_v3pop): Likewise.
1840 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1842 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1843 v3push/v3pop for variadic function.
1844 * config/nds32/nds32.md (prologue, epilogue): Likewise.
1846 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1848 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1849 Check rtx for varargs implementation.
1850 (nds32_output_stack_pop): Likewise.
1851 * config/nds32/nds32-protos.h: Have a rtx argument for
1852 nds32_output_stack_push and nds32_output_stack_pop.
1853 * config/nds32/nds32.md: Likewise.
1855 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1857 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1858 to check if FUNC is an interrupt service routine.
1859 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1861 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1863 * config/nds32/nds32.h (machine_function): Add some fields for variadic
1864 arguments implementation.
1866 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1868 * config/nds32/nds32-predicates.c
1869 (nds32_valid_stack_push_pop): Rename to ...
1870 (nds32_valid_stack_push_pop_p): ... this.
1871 * config/nds32/nds32-protos.h: Likewise.
1872 * config/nds32/predicates.md: Likewise.
1874 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1876 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1877 (nds32_emit_stack_v3push): ... this.
1878 (nds32_gen_stack_v3pop): Rename to ...
1879 (nds32_emit_stack_v3pop): ... this and consider CFA restore
1882 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1884 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1885 (nds32_emit_stack_push_multiple): ... this.
1886 (nds32_gen_stack_pop_multiple): Rename to ...
1887 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1890 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1893 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1894 and add a second splitter to handle the remaining cases.
1896 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1898 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1900 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1902 * cfgexpand.c (label_rtx_for_bb): Change type to
1903 hash_map<basic_block, rtx_code_label *> *.
1904 (expand_gimple_basic_block): Adjust.
1905 (pass_expand::execute): Likewise.
1907 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1909 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1910 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1911 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1912 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1913 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1914 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1915 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1918 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1920 * alloc-pool.c: Include coretypes.h.
1921 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1922 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1923 hash_set instead of htab.
1924 * ggc-page.c (in_gc): New variable.
1925 (ggc_free): Do nothing if a collection is taking place.
1926 (ggc_collect): Set in_gc appropriately.
1927 * ggc.h (gt_ggc_mx(const char *)): New function.
1928 (gt_pch_nx(const char *)): Likewise.
1929 (gt_ggc_mx(int)): Likewise.
1930 (gt_pch_nx(int)): Likewise.
1931 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1932 (hash_map::hash_entry::pch_nx): Likewise.
1933 (hash_map::hash_entry::pch_nx_helper): Likewise.
1934 (hash_map::hash_map): Adjust.
1935 (hash_map::create_ggc): New function.
1936 (gt_ggc_mx): Likewise.
1937 (gt_pch_nx): Likewise.
1938 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1939 (default_hashset_traits::pch_nx): Likewise.
1940 (hash_set::hash_entry::ggc_mx): Likewise.
1941 (hash_set::hash_entry::pch_nx): Likewise.
1942 (hash_set::hash_entry::pch_nx_helper): Likewise.
1943 (hash_set::hash_set): Adjust.
1944 (hash_set::create_ggc): New function.
1945 (hash_set::elements): Likewise.
1946 (gt_ggc_mx): Likewise.
1947 (gt_pch_nx): Likewise.
1948 * hash-table.h (hash_table::hash_table): Adjust.
1949 (hash_table::m_ggc): New member.
1950 (hash_table::~hash_table): Adjust.
1951 (hash_table::expand): Likewise.
1952 (hash_table::empty): Likewise.
1953 (gt_ggc_mx): New function.
1954 (hashtab_entry_note_pointers): Likewise.
1955 (gt_pch_nx): Likewise.
1957 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1959 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
1960 built-in definition.
1961 (XVCVUXDDP_SCALE): Likewise.
1962 (XVCVDPSXDS_SCALE): Likewise.
1963 (XVCVDPUXDS_SCALE): Likewise.
1964 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1965 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1966 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1967 VSX_BUILTIN_XVCVDPUXDS_SCALE.
1968 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1970 * config/rs6000/rs6000.c (real.h): New include.
1971 (rs6000_scale_v2df): New function.
1972 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1973 (UNSPEC_VSX_XVCVUXDDP): Likewise.
1974 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1975 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1976 (vsx_xvcvsxddp_scale): New define_expand.
1977 (vsx_xvcvsxddp): New define_insn.
1978 (vsx_xvcvuxddp_scale): New define_expand.
1979 (vsx_xvcvuxddp): New define_insn.
1980 (vsx_xvcvdpsxds_scale): New define_expand.
1981 (vsx_xvcvdpsxds): New define_insn.
1982 (vsx_xvcvdpuxds_scale): New define_expand.
1983 (vsx_xvcvdpuxds): New define_insn.
1984 * doc/extend.texi (vec_ctf): Add new prototypes.
1985 (vec_cts): Likewise.
1986 (vec_ctu): Likewise.
1987 (vec_splat): Likewise.
1988 (vec_div): Likewise.
1989 (vec_mul): Likewise.
1991 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1994 * config/arm/neon.md
1995 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1996 <v_cmp_result>): New pattern.
1997 * config/arm/iterators.md (NEON_VCVT): New int iterator.
1998 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1999 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2000 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2001 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2002 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2004 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2007 * config/arm/iterators.md (FIXUORS): New code iterator.
2008 (VCVT): New int iterator.
2009 (su_optab): New code attribute.
2011 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2013 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2015 * config/aarch64/predicates.md (aarch64_comparison_operation):
2016 New special predicate.
2017 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2018 aarch64_comparison_operation instead of matching an operator.
2019 Update operand numbers.
2020 (csinc3<mode>_insn): Likewise.
2021 (*csinv3<mode>_insn): Likewise.
2022 (*csneg3<mode>_insn): Likewise.
2023 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2024 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2025 Return -1 instead of aborting on invalid condition codes.
2026 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2027 to assert that the returned condition code is valid.
2028 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2030 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2032 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2033 tree.def, and gimple.def
2035 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2036 Balaji V. Iyer <balaji.v.iyer@intel.com>
2037 Igor Zamyatin <igor.zamyatin@intel.com>
2039 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2040 (__cilkrts_cilk_for_64): Likewise.
2041 * cilk-common.c (declare_cilk_for_builtin): New function.
2042 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2043 __cilkrts_cilk_for_64 bultins.
2044 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2046 (cilk_for_32_fndecl): New define.
2047 (cilk_for_64_fndecl): Likewise.
2048 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2049 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2050 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2051 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2052 GF_OMP_FOR_COMBINED_INTO.
2053 * gimplify.c (gimplify_scan_omp_clauses): Added
2054 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2055 (gimplify_adjust_omp_clauses): Ditto.
2056 (gimplify_omp_for): Added CILK_FOR case.
2057 (gimplify_expr): Ditto.
2058 * omp-low.c: Include cilk.h.
2059 (extract_omp_for_data): Set appropriate kind for
2060 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2061 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2062 (create_omp_child_function_name): Added second argument to handle
2064 (cilk_for_check_loop_diff_type): New function.
2065 (expand_cilk_for_call): Likewise.
2066 (expand_cilk_for): Likewise.
2067 (create_omp_child_function): Set cilk_for_count; handle the cases when
2068 it is true; call create_omp_child_function_name with second argument.
2069 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2070 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2071 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2072 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2073 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2074 (convert_local_omp_clauses): Ditto.
2075 * tree-pretty-print.c (dump_omp_clause): Added
2076 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2077 (dump_generic_node): Added CILK_FOR case.
2078 * tree.c (omp_clause_num_ops): New element
2079 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2080 (omp_clause_code_name): New element _Cilk_for_count_.
2081 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2082 * tree.def: Add tree code for CILK_FOR.
2084 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2086 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2087 (ppc403-compare): Add "exts with dot" case.
2088 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2089 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2090 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2091 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2092 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2093 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2094 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2095 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2096 cell-cmp-microcoded): Similarly.
2097 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2098 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2099 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2100 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2101 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2102 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2103 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2104 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2105 (power6-compare): Add "exts with dot" case.
2106 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2107 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2108 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2110 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2111 if avoiding Cell microcode.
2112 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2113 (is_cracked_insn): Ditto.
2114 (insn_must_be_first_in_group): Ditto.
2115 * config/rs6000/rs6000.md (dot): Adjust comment.
2116 (cell_micro): Handle exts+dot.
2117 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2118 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2119 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2120 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2121 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2122 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2123 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2125 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2127 * config/rs6000/rs6000.md (QHSI): Delete.
2128 (EXTQI, EXTHI, EXTSI): New mode iterators.
2129 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2130 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2131 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2132 9 anonymous instructions, and 8 splitters): Delete.
2133 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2134 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2135 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2136 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2137 *zero_extendsi<mode>2_dot2): New.
2139 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2141 * config/rs6000/rs6000.md (any_extend): New code iterator.
2142 (u, su): New code attributes.
2143 (dmode, DMODE): New mode attributes.
2144 (<su>mul<mode>3_highpart): New.
2145 (*<su>mul<mode>3_highpart): New.
2146 (<su>mulsi3_highpart_le): New.
2147 (<su>muldi3_highpart_le): New.
2148 (<su>mulsi3_highpart_64): New.
2149 (<u>mul<mode><dmode>3): New.
2150 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2152 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2155 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2157 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2158 *mulsi3_internal2, and two splitters): Delete.
2159 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2161 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2163 2014-09-02 Richard Biener <rguenther@suse.de>
2165 PR tree-optimization/62695
2166 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2169 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2172 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2174 2014-09-01 Andi Kleen <ak@linux.intel.com>
2176 * file-find.c (add_prefix_begin): Add.
2177 (do_add_prefix): Rename from add_prefix with first argument.
2178 (add_prefix): Add new wrapper.
2179 * file-find.h (add_prefix_begin): Add.
2180 * gcc-ar.c (main): Support -B option.
2182 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2184 * genemit.c: Include dumpfile.h.
2185 (gen_split): Print name of splitter function to dump file.
2187 2014-09-01 Richard Biener <rguenther@suse.de>
2189 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2190 Use stack auto_vecs for constraint expressions.
2191 (find_func_aliases_for_call): Likewise.
2192 (find_func_aliases): Likewise.
2193 (find_func_clobbers): Likewise.
2195 2014-09-01 Richard Biener <rguenther@suse.de>
2197 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2198 operands vector in most cases. Remove redundant code.
2200 2014-09-01 Olivier Hainque <hainque@adacore.com>
2202 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2203 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2204 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2206 2014-09-01 Richard Biener <rguenther@suse.de>
2208 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2209 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2210 vn_reference_compute_hash, vn_reference_insert): Remove.
2211 (vn_reference_lookup_call): New function.
2212 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2213 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2214 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2215 (create_reference_ops_from_call): Remove.
2216 (vn_reference_lookup_3): Properly update shared_lookup_references.
2217 (vn_reference_lookup_pieces): Assert that we updated
2218 shared_lookup_references properly.
2219 (vn_reference_lookup): Likewise.
2220 (vn_reference_lookup_call): New function.
2221 (visit_reference_op_call): Use it. Avoid re-building the
2223 (visit_reference_op_load): Remove redundant lookup.
2224 (visit_reference_op_store): Perform special tail-merging work
2225 only when possibly doing tail-merging.
2226 (visit_use): Likewise.
2227 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2229 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2232 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2233 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2234 (find_inc): Revert 2014-08-13 change.
2236 2014-09-01 Marek Polacek <polacek@redhat.com>
2239 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2240 Change the type of V to unsigned HOST_WIDE_INT.
2242 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2244 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2245 the size of byte markers.
2246 (do_shift_rotate): Fix confusion between host, target and marker byte
2248 (verify_symbolic_number_p): Likewise.
2249 (find_bswap_or_nop_1): Likewise.
2250 (find_bswap_or_nop): Likewise.
2252 2014-09-01 Olivier Hainque <hainque@adacore.com>
2254 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2255 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2257 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2259 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2260 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2261 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2263 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2267 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2268 (build_check_stmt): Likewise.
2269 (instrument_strlen_call): Likewise.
2270 (asan_expand_check_ifn): Likewise and fix types.
2271 (maybe_cast_to_ptrmode): New function.
2273 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2275 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2277 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2279 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2281 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2283 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2284 prefix to function labels when generating fast indirect calls.
2286 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2290 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2291 param back from rtx_insn * to rtx. Rename param from "label" to
2292 "label_or_return", reintroducing "label" as an rtx_insn * after
2293 we've ensured it's not a RETURN.
2294 (first_active_target_insn): Likewise for return type and param;
2295 add a checked cast to rtx_insn * once we've ensured "insn" is not
2297 (steal_delay_list_from_target): Convert param "pnew_thread" back
2298 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2300 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2301 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2302 cast once we've established we're not dealing with a RETURN,
2303 renaming subsequent uses of "thread" to "thread_insn".
2304 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2306 (follow_jumps): Convert return type and param "label" from
2307 rtx_insn * back to rtx. Move initialization of "value" to after
2308 the handling for ANY_RETURN_P, adding a checked cast there to
2309 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2310 rename to "this_label_or_return", reintroducing "this_label" as
2311 an rtx_insn * once we've handled the case where it could be an
2313 (fill_slots_from_thread): Rename param "thread" to
2314 "thread_or_return", converting from an rtx_insn * back to an rtx.
2315 Reintroduce name "thread" as an rtx_insn * local with a checked
2316 cast once we've handled the case of it being an ANY_RETURN_P.
2317 Convert local "new_thread" from an rtx_insn * back to an rtx.
2318 Add a checked cast when assigning to "trial" from "new_thread".
2319 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2320 checked cast to rtx_insn * from "new_thread" when invoking
2322 (fill_eager_delay_slots): Convert locals "target_label",
2323 "insn_at_target" from rtx_insn * back to rtx.
2324 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2325 (relax_delay_slots): Convert locals "trial", "target_label" from
2326 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2327 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2328 invoking update_block.
2329 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2330 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2332 * resource.h (mark_target_live_regs): Undo erroneous conversion
2333 of second param of r214693, converting it back from rtx_insn * to
2334 rtx, since it could be a RETURN.
2336 * resource.c (find_dead_or_set_registers): Similarly, convert
2337 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2338 could be writing back a RETURN. Rename local rtx_insn * "next" to
2339 "next_insn", and introduce "lab_or_return" as a local rtx,
2340 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2341 (mark_target_live_regs): Undo erroneous conversion
2342 of second param of r214693, converting it back from rtx_insn * to
2343 rtx, since it could be a RETURN. Rename it from "target" to
2344 "target_maybe_return", reintroducing the name "target" as a local
2345 rtx_insn * with a checked cast, after we've handled the case of
2348 2014-08-29 DJ Delorie <dj@redhat.com>
2350 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2351 pointer size up to a power of two.
2352 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2353 (POINTER_SIZE_UNITS): New, rounded up value.
2354 * dwarf2asm.c (size_of_encoded_value): Use it.
2355 (dw2_output_indirect_constant_1): Likewise.
2356 * expmed.c (init_expmed_one_conv): We now know the sizes of
2358 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2359 * optabs.c (expand_float): Use precision, not size.
2360 (expand_fix): Likewise.
2361 * simplify-rtx (simplify_unary_operation_1): Likewise.
2362 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2363 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2364 (default_assemble_integer) Likewise.
2365 (dump_tm_clone_pairs): Likewise.
2366 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2367 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2368 (prepare_call_arguments): Likewise.
2369 * stor-layout.c (finalize_type_size): Preserve precision.
2370 (layout_type): Use precision, not size.
2372 * expr.c (convert_move): If the target has an explicit converter,
2375 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2377 * gdbinit.in: Skip various inline functions in rtl.h when
2380 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2383 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2385 2014-08-29 Richard Biener <rguenther@suse.de>
2387 PR tree-optimization/62291
2388 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2389 exactly the vector size needed and use quick_push.
2390 (phi_translate_1): Adjust comment.
2391 (valid_in_sets): Remove block argument and remove pointless
2393 (dependent_clean): Adjust for removal of block argument.
2395 (compute_antic_aux): Likewise.
2396 (compute_partial_antic_aux): Likewise.
2398 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2399 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2400 Anna Tikhonova <anna.tikhonova@intel.com>
2401 Ilya Tocar <ilya.tocar@intel.com>
2402 Andrey Turetskiy <andrey.turetskiy@intel.com>
2403 Ilya Verbin <ilya.verbin@intel.com>
2404 Kirill Yukhin <kirill.yukhin@intel.com>
2405 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2407 * config/i386/sse.md
2408 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2409 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2410 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2411 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2413 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2414 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2415 Anna Tikhonova <anna.tikhonova@intel.com>
2416 Ilya Tocar <ilya.tocar@intel.com>
2417 Andrey Turetskiy <andrey.turetskiy@intel.com>
2418 Ilya Verbin <ilya.verbin@intel.com>
2419 Kirill Yukhin <kirill.yukhin@intel.com>
2420 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2422 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2423 * config/i386/sse.md
2424 (define_mode_iterator VI4_128_8_256): New.
2425 (define_mode_iterator VI2_128_4_256): Ditto.
2426 (define_mode_iterator PMOV_DST_MODE): Rename into
2427 (define_mode_iterator PMOV_DST_MODE_1): this.
2428 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2429 Use PMOV_DST_MODE_1 mode iterator.
2430 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2432 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2434 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2435 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2436 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2437 (define_mode_iterator PMOV_DST_MODE_2): New.
2438 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2439 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2440 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2442 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2443 (define_mode_attr pmov_dst_3): Ditto.
2444 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2445 (define_mode_attr pmov_suff_3): Ditto.
2446 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2447 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2448 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2449 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2450 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2451 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2452 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2453 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2454 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2455 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2456 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2457 (define_mode_attr pmov_dst_4): Ditto.
2458 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2459 (define_mode_attr pmov_suff_4): Ditto.
2460 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2461 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2462 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2463 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2464 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2465 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2466 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2467 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2468 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2469 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2470 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2472 2014-08-29 Richard Biener <rguenther@suse.de>
2474 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2475 NON_LVALUE_EXPR in gimple.
2477 2014-08-29 Richard Biener <rguenther@suse.de>
2480 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2481 from previous refactoring.
2482 (gimple_fold_builtin_strncpy): Likewise.
2484 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2487 * function.c (assign_parm_setup_reg): Remove erroneous checked
2488 cast to rtx_insn * on result of gen_extend_insn in favor of
2489 introducing a new local rtx "pat".
2491 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2493 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2495 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2497 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2499 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2500 (next_insn): Likewise.
2501 * emit-rtl.c (next_insn): Likewise.
2502 (previous_insn): Likewise.
2503 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2504 "insn" and "next" from rtx to rtx_insn *.
2505 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2506 "insn", "insn1", "vliw_start", "prologue_end_note",
2507 "last_insn_in_packet".
2509 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2511 * shrink-wrap.h (active_insn_between): Strengthen both params from
2513 * function.c (active_insn_between): Likewise.
2515 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2517 * genattr.c (main): When writing out insn-attr.h, strengthen param
2518 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2519 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2520 writing out the definition of dfa_clear_single_insn_cache to the
2521 generated insn-automata.c
2523 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2525 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2527 (incr_ticks_for_insn): Likewise.
2528 (init_resource_info): Likewise.
2530 * resource.c (init_resource_info): Likewise.
2531 (clear_hashed_info_for_insn): Likewise.
2532 (incr_ticks_for_insn): Likewise.
2534 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2536 (steal_delay_list_from_target): Use methods of "seq".
2537 (try_merge_delay_insns): Use methods of "merged_insns".
2538 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2539 (reorg_redirect_jump): Likewise for param "jump".
2541 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2543 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2545 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2546 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2548 (s390_mainpool_finish): In three places, split out a local rtx
2549 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2550 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2551 and split another local rtx "insn" out into rtx "pat" and
2553 * config/sh/sh.c (output_branchy_insn): Rather than working
2554 directly on operands[9], introduce local rtx_code_label *
2555 variables named "lab" in two places, working on them, and then
2556 assigning them to operands[9], so that the intervening operations
2557 are known by the type system to be on insns.
2559 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2561 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2564 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2565 in invocation of INSN_HAS_LOCATION.
2567 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2569 * config/rs6000/altivec.h (vec_xl): New #define.
2570 (vec_xst): Likewise.
2571 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2572 (XXSPLTD_V2DI): Likewise.
2573 (DIV_V2DI): Likewise.
2574 (UDIV_V2DI): Likewise.
2575 (MUL_V2DI): Likewise.
2576 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2577 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2578 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2579 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2580 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2581 (UNSPEC_VSX_DIVSD): Likewise.
2582 (UNSPEC_VSX_DIVUD): Likewise.
2583 (UNSPEC_VSX_MULSD): Likewise.
2584 (vsx_mul_v2di): New insn-and-split.
2585 (vsx_div_v2di): Likewise.
2586 (vsx_udiv_v2di): Likewise.
2587 (vsx_xxspltd_<mode>): New insn.
2589 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2591 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2593 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2594 (NEXT_INSN): Likewise.
2595 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2596 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2598 (no_labels_between_p): Likewise for both params.
2600 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2601 cast when using NEXT_INSN on operands[2].
2602 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2603 "insn" from rtx to rtx_insn *, adding a checked cast.
2604 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2606 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2608 (arc_text_label): Likewise for param "insn".
2609 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2611 (arc_ccfsm_record_condition): Likewise for param "jump".
2612 (arc_text_label): Likewise for local "label".
2613 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2614 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2615 a method for typesafety. Add a checked cast.
2616 * config/arc/constraints.md (Clb): Add a checked cast when getting
2617 the CODE_LABEL from a LABEL_REF.
2618 * config/arm/arm.c (require_pic_register): Strengthen locals
2619 "seq", "insn" from rtx to rtx_insn *.
2620 (create_fix_barrier): Likewise for locals "selected", "next".
2621 (thumb1_reorg): Likewise for locals "prev", "insn".
2622 (arm_expand_prologue): Likewise for local "last".
2623 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2625 (thumb2_output_casesi): Likewise for operands[2].
2626 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2627 strengthen local "insn" from rtx to rtx_insn *.
2628 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2629 type and param "insn".
2630 (find_prev_insn_start): Likewise.
2631 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2633 (gen_one_bundle): Likewise for loal "t".
2634 (find_load): Likewise for param "insn".
2635 (workaround_speculation): Likewise for locals "insn", "next",
2636 "target", "next_tgt".
2637 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2638 and for locals "insn", "within", "last".
2639 (count_unit_reqs): Likewise for params "head", "tail" and local
2641 (try_rename_operands): Likewise for params "head", "tail".
2642 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2643 (struct c6x_sched_context): Likewise for fields
2644 "last_scheduled_insn", "last_scheduled_iter0".
2645 (init_sched_state): Replace NULL_RTX with NULL.
2646 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2648 (undo_split_delayed_nonbranch): Likewise for param and for local
2650 (conditionalize_after_sched): Likewise for local "insn".
2651 (bb_earliest_end_cycle): Likewise.
2652 (filter_insns_above): Likewise for locals "insn", "next".
2653 (hwloop_optimize): Remove redundant checked cast.
2654 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2655 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2657 (cris_simple_epilogue): Likewise.
2658 (cris_expand_prologue): Likewise.
2659 (cris_expand_epilogue): Likewise.
2660 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2661 local "insn" from rtx to rtx_insn *.
2662 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2663 (struct frv_packet_group): Likewise for the elements within array
2664 fields "insns", "sorted", and for field "nop".
2665 (frv_packet): Likewise for the elements within array field
2667 (frv_add_insn_to_packet): Likewise for param "insn".
2668 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2670 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2671 (frv_sort_insn_group_1): Likewise for local "insn".
2672 (frv_optimize_membar_local): Likewise.
2673 (frv_align_label): Likewise for locals "x", "last", "barrier",
2675 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2677 (ia64_sched_init): Likewise for local "insn".
2678 (scheduled_good_insn): Likewise for param "last".
2679 (struct _ia64_sched_context): Likewise for field
2680 "last_scheduled_insn".
2681 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2682 (struct bundle_state): Likewise for field "insn".
2683 (issue_nops_and_insn): Likewise for param "insn".
2684 (get_next_important_insn): Likewise for return type and both
2686 (ia64_add_bundle_selector_before): Likewise for param "insn".
2687 (bundling): Likewise for params "prev_head_insn", "tail" and
2688 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2689 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2690 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2691 Strengthen final param from rtx to rtx_insn *.
2692 (iq2000_move_1word): Likewise for second param.
2693 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2694 param "cur_insn" and local "next_insn".
2695 (iq2000_move_1word): Likewise for param "insn".
2696 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2697 casts when using NEXT_INSN on operands[1].
2698 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2699 "insn" from rtx to rtx_insn *.
2700 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2701 "x", introducing local rtx_insn * "insn" for when working with the
2702 CODE_LABEL of the LABEL_REF.
2703 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2705 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2707 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2709 (conditionalize_block): Likewise for return type and param.
2710 (mcore_is_dead): Likewise for param "first" and local "insn".
2711 (emit_new_cond_insn): Likewise for return type.
2712 (conditionalize_block): Likewise for return type, param, and
2713 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2715 (conditionalize_optimization): Likewise for local "insn".
2716 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2718 * config/microblaze/microblaze.md: Add checked casts when using
2720 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2721 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2722 and rtx_insn * "insn".
2723 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2724 checked cast when using NEXT_INSN on operands[2].
2725 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2726 local "insn" from rtx to rtx_insn *.
2727 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2729 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2730 Add a checked cast when using NEXT_INSN on operands[1].
2731 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2733 (pa_output_cbranch): Likewise for final param.
2734 (pa_output_lbranch): Likewise for second param.
2735 (pa_output_bb): Likewise for third param.
2736 (pa_output_bvb): Likewise.
2737 (pa_output_dbra): Likewise for second param.
2738 (pa_output_movb): Likewise.
2739 (pa_output_parallel_movb): Likewise.
2740 (pa_output_parallel_addb): Likewise.
2741 (pa_output_millicode_call): Likewise for first param.
2742 (pa_output_mul_insn): Likewise for second param.
2743 (pa_output_div_insn): Likewise for third param.
2744 (pa_output_mod_insn): Likewise for second param.
2745 (pa_jump_in_call_delay): Likewise for param.
2746 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2747 (pa_output_div_insn): Likewise.
2748 (pa_output_mod_insn): Likewise.
2749 (pa_output_cbranch): Likewise.
2750 (pa_output_lbranch): Likewise.
2751 (pa_output_bb): Likewise.
2752 (pa_output_bvb): Likewise.
2753 (pa_output_dbra): Likewise.
2754 (pa_output_movb): Likewise.
2755 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2756 to simplify and for typesafety.
2757 (pa_output_call): Use method of rtx_sequence *.
2758 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2759 (pa_jump_in_call_delay): Likewise.
2760 (pa_output_parallel_movb): Likewise.
2761 (pa_output_parallel_addb): Likewise.
2762 (pa_following_call): Likewise.
2763 (pa_combine_instructions): Likewise for locals "anchor",
2765 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2766 locals "start", "end".
2767 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2768 param "insn" and local "local_insn".
2769 (picochip_final_prescan_insn): Likewise for local "local_insn".
2770 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2772 (uses_TOC): Likewise.
2773 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2774 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2775 splitting out to more tightly-scoped locals, 3 as rtx and one as
2777 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2779 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2781 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2783 (fixup_addr_diff_vecs): Likewise.
2784 (reg_unused_after): Likewise for param 2.
2785 (sh_can_redirect_branch): Likewise for both params.
2786 (check_use_sfunc_addr): Likewise for param 1.
2787 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2788 (find_barrier): Likewise for local "last_got".
2789 (gen_block_redirect): Likewise for return type, param "jump" and
2790 locals "prev", "scan", "next", "insn".
2791 (struct far_branch): Likewise for fields "near_label",
2792 "insert_place", "far_label".
2793 (gen_far_branch): Likewise for local "jump".
2794 (fixup_addr_diff_vecs): Likewise for param "first" and locals
2796 (barrier_align): Likewise for param and for locals "prev", "x".
2797 Introduce local rtx_sequence * "prev_seq" and use insn method for
2798 typesafety and clarity.
2799 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2800 (get_dest_uid): Likewise for local "dest".
2801 (split_branches): Likewise for locals "next", "beyond", "label",
2802 "block", "far_label". Add checked casts when assigning to
2803 bp->far_label and "far_label".
2804 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2805 (sequence_insn_p): Likewise.
2806 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
2807 more loop-scoped rtx "insn" when walking LABEL_REFS.
2808 (sh_can_redirect_branch): Strengthen both params from rtx to
2810 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
2811 new local rtx_sequence * "seq" via a dyn_cast, and use a method
2812 for clarity and typesafety.
2813 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2814 "insn" from rtx to rtx_insn *.
2815 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2816 when using NEXT_INSN on the CODE_LABEL in operands[2].
2817 (define_insn "casesi_worker_2"): Likewise.
2818 (define_insn "casesi_shift_media"): Likewise.
2819 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2821 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2822 Strengthen field "insn" from rtx to rtx_insn *.
2823 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2824 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2825 param "start_insn" and local "start_insn".
2826 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2828 (find_set_of_reg_bb): Likewise for param "insn".
2829 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2830 (trace_reg_uses): Likewise for param "start_insn".
2831 (sh_treg_combine::cbranch_trace): Likewise for field
2833 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2835 (sh_treg_combine::record_set_of_reg): Likewise for param
2836 "start_insn" and local "i".
2837 (sh_treg_combine::can_remove_cstore): Likewise for local
2839 (sh_treg_combine::try_optimize_cbranch): Likewise for param
2841 (sh_treg_combine::execute): Likewise for local "i".
2842 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2844 (sparc_check_64): Likewise for second param.
2845 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2846 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
2847 dyn_cast, using its insn method for typesafety and clarity.
2848 (empty_delay_slot): Strengthen param "insn" from rtx to
2850 (set_extends): Likewise.
2851 (sparc_check_64): Likewise.
2852 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2853 for locals "seq", "last_insn".
2854 (combine_bnp): Likewise for param "insn".
2855 (xstormy16_reorg): Likewise for local "insn".
2856 * config/v850/v850.c (substitute_ep_register): Likewise for params
2857 "first_insn", "last_insn" and local "insn".
2858 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2859 elements of "regs" array, and local "insn".
2860 * except.c (emit_note_eh_region_end): Likewise for param "insn".
2861 * final.c (final_sequence): Strengthen this global from rtx to
2863 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2865 (final_scan_insn): Update assignment to "final_sequence" to be
2866 from "seq", the cast version of "body", for type-safety.
2867 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2868 "insns" from rtx to rtx_insn *.
2869 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2870 * genattr.c (main): When writing out generated insn-attr.h,
2871 strengthen params 1 and 3 of eligible_for_delay,
2872 eligible_for_annul_true, eligible_for_annul_false from rtx to
2874 * genattrtab.c (write_eligible_delay): Likewise when writing out
2875 generated insn-attrtab.c; also local "insn" the generated
2877 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2879 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2880 "start_label" from rtx to rtx_insn *.
2881 * ira.c (decrease_live_ranges_number): Likewise for local "p".
2882 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2883 "insns" and local "insn".
2884 (validate_equiv_mem): Likewise for param "start" and local "insn".
2885 (memref_used_between_p): Likewise for params "start", "end" and
2887 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2889 * loop-doloop.c (doloop_optimize): Within region guarded by
2890 INSN_P (doloop_pat), introduce a new local rtx_insn *
2891 "doloop_insn" via a checked cast, and use it for typesafety,
2892 eventually writing the value back into doloop_pat.
2893 * output.h (final_sequence): Strengthen this global from rtx to
2895 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2896 reintroducing "insn" as an rtx_insn * via a checked cast.
2897 Strengthen param "attempt" and local "new_insn"from rtx to
2899 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2901 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2902 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2903 "p" in favor of more tightly-scoped replacements, sometimes rtx
2904 and sometimes rtx_insn *, as appropriate.
2905 (delete_output_reload): Eliminate top-level rtx "i1", splitting
2906 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2907 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
2908 local "trial" from rtx to rtx_insn *.
2909 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2910 rtx to rtx_insn *. Strenghten local "pat" from rtx to
2911 rtx_sequence * and use methods for clarity and typesafety.
2912 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2913 rtx to rtx_insn *. Strenghten local "li" from rtx to
2914 rtx_insn_list * and use its methods for clarity and typesafety.
2915 (steal_delay_list_from_target): Strengthen param "insn" from rtx
2917 (steal_delay_list_from_fallthrough): Likewise.
2918 (try_merge_delay_insns): Likewise for param "thread" and locals
2919 "trial", "next_trial", "delay_insn".
2920 (redundant_insn): Likewise for param "target" and local "trial".
2921 (own_thread_p): Likewise for param "thread" and locals
2922 "active_insn", "insn".
2923 (get_label_before): Likewise for param "insn".
2924 (fill_simple_delay_slots): Likewise for local "new_label"; use
2925 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2926 (label_before_next_insn): Strengthen return type and local "insn"
2927 from rtx to rtx_insn *.
2928 (relax_delay_slots): Likewise for locals "other", "tmp".
2929 (make_return_insns): Likewise for param "first" and locals "insn",
2930 "jump_insn", "prev". Move declaration of "pat" to its assignment
2931 and strengthen from rtx to rtx_sequence *. Use its methods for
2932 clarity and typesafety.
2933 * rtlanal.c (no_labels_between_p): Strengthen params from
2934 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
2936 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2937 from const_rtx to const rtx_insn *.
2938 (reg_set_between_p): Rename param "from_insn" to
2939 "uncast_from_insn", and reintroduce "from_insn" as a
2940 const rtx_insn * via a checked cast.
2941 (modified_between_p): Likewise for param "start" as "uncast_start".
2942 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2943 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2944 "tmp", head" from rtx to rtx_insn *.
2945 (recompute_rev_top_order): Likewise for local "insn".
2946 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2947 * store-motion.c (build_store_vectors): Likewise for local "insn".
2948 Strengthen local "st" from rtx to rtx_insn_list * and use methods
2949 for clarity and typesafety.
2950 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2952 (computation_cost): Likewise for local "seq".
2953 (get_address_cost): Likewise.
2955 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2957 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2959 (label_is_jump_target_p): Likewise for second param.
2961 * rtlanal.c (tablejump_p): Likewise for param "insn".
2962 (label_is_jump_target_p): Likewise for param "jump_insn".
2964 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2966 * rtl.h (find_first_parameter_load): Strengthen return type and
2967 both params from rtx to rtx_insn *.
2968 * rtlanal.c (find_first_parameter_load): Strengthen return type,
2969 both params and locals "before", "first_set" from rtx to
2970 rtx_insn *. Remove now-redundant cast.
2971 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2973 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2975 * rtl.h (find_last_value): Delete.
2976 * rtlanal.c (find_last_value): Delete.
2978 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2980 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2981 from rtx to rtx_insn *.
2982 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2983 rtx "note" with new local rtx_insn * "new_head" when calculating
2984 head insn of new basic block.
2985 * combine.c (combine_split_insns): Strengthen return type and local
2986 "ret" from rtx to rtx_insn *.
2987 (likely_spilled_retval_p): Likewise for locals "use" and "p".
2988 (try_combine): Eliminate local "m_split", splitting into new
2989 locals "m_split_insn" and "m_split_pat".
2990 (find_split_point): Strengthen local "seq" from rtx into
2992 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2993 locals "label", "branch".
2994 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2996 (define_expand "umulsi3_highpart"): Likewise for local "insn".
2997 * dse.c (note_add_store_info): Likewise for fields "first",
2999 (note_add_store): Likewise for local "insn".
3000 (emit_inc_dec_insn_before): Likewise for locals "insn",
3002 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3003 (replace_read): Likewise for locals "insns", "this_insn".
3004 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3005 (notice_eh_throw): Likewise for param "insn".
3006 (before_next_cfi_note): Likewise for return type, param, and local
3008 (connect_traces): Likewise for local "note".
3009 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3010 (verify_rtl_sharing): Likewise.
3011 (unshare_all_rtl_in_chain): Likewise for param "insn".
3012 (get_first_nonnote_insn): Likewise for local "insn".
3013 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3014 "seq" and use its methods to clarify things.
3015 (next_insn): Strengthen return type from rtx to rtx_insn *.
3016 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3017 local rtx_insn * using a checked cast, dropping a checked cast
3018 made redundant by this change. Use a cast to and method of
3019 rtx_sequence to clarify the code.
3020 (previous_insn): Rename param "insn" to "uncast_insn" and
3021 reintroduce "insn" as a local rtx_insn * using a checked cast,
3022 dropping a checked cast made redundant by this change. Use a cast
3023 to and method of rtx_sequence to clarify the code.
3024 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3025 reintroduce "insn" as a local rtx_insn * using a checked cast,
3026 dropping a checked cast made redundant by this change.
3027 (next_nonnote_insn_bb): Likewise.
3028 (prev_nonnote_insn): Likewise.
3029 (prev_nonnote_insn_bb): Likewise.
3030 (next_nondebug_insn): Likewise.
3031 (prev_nondebug_insn): Likewise.
3032 (next_nonnote_nondebug_insn): Likewise.
3033 (prev_nonnote_nondebug_insn): Likewise.
3034 (next_real_insn): Likewise.
3035 (prev_real_insn): Likewise.
3036 (next_active_insn): Likewise.
3037 (prev_active_insn): Likewise.
3038 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3040 (prev_cc0_setter): Likewise.
3041 (try_split): Rename param "trial" to "uncast_trial" and
3042 reintroduce "insn" as a local rtx_insn * using a checked cast,
3043 dropping checked casts made redundant by this change.
3044 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3046 (remove_insn): Rename param "insn" to "uncast_insn" and
3047 reintroduce "insn" as a local rtx_insn * using a checked cast.
3048 (emit_pattern_after_setloc): Likewise for param "after", as
3050 (emit_pattern_after): Likewise. Strengthen local "prev" from
3052 (emit_pattern_before_setloc): Rename param "before" to
3053 "uncast_before" and reintroduce "before" as a local rtx_insn *
3054 using a checked cast. Strengthen locals "first", "last" from
3056 (emit_pattern_before): Likewise rename/cast param "before" to
3057 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3058 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3059 "first" and local "insn" from rtx to rtx_insn *.
3060 (copy_reg_eh_region_note_backward): Likewise for param "last"
3062 * expr.c (fixup_args_size_notes): Rename param "last" to
3063 "uncast_last" and reintroduce "last" as a local rtx_insn *
3064 using a checked cast. Strengthen local "insn" from rtx to
3066 * function.c (set_insn_locations): Strengthen param "insn" from
3068 (record_insns): Likewise for param "insns" and local "tmp".
3069 (active_insn_between): Rename param "tail" to
3070 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3071 using a checked cast.
3072 (thread_prologue_and_epilogue_insns): Split out top-level local
3073 rtx "seq" into three different rtx_insn * locals. Strengthen
3074 local "prologue_seq" from rtx to rtx_insn *.
3075 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3076 from rtx to rtx_insn *.
3077 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3078 (priority): Likewise for locals "prev_first", "twin".
3079 (setup_insn_max_reg_pressure): Likewise for param "after".
3080 (sched_setup_bb_reg_pressure_info): Likewise.
3081 (no_real_insns_p): Strengthen params from const_rtx to
3083 (schedule_block): Strengthen local "next_tail" from rtx to
3085 * ifcvt.c (find_active_insn_before): Strengthen return type and
3086 param "insn" from rtx to rtx_insn *.
3087 (find_active_insn_after): Likewise.
3088 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3089 (cond_exec_process_if_block): Likewise for locals "then_start",
3090 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3091 (noce_process_if_block): Likewise for local "jump".
3092 (merge_if_block): Likewise for two locals named "end".
3093 (cond_exec_find_if_block): Likewise for local "last_insn".
3094 * jump.c (delete_related_insns): Rename param "insn" to
3095 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3096 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3097 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3099 (split_reg): Likewise.
3100 * lra.c (lra_process_new_insns): Likewise.
3101 * modulo-sched.c (permute_partial_schedule): Strengthen param
3102 "last" from rtx to rtx_insn *.
3103 * optabs.c (add_equal_note): Likewise for param "insns" and local
3105 (expand_binop_directly): Add checked casts to rtx_insn * within
3106 NEXT_INSN (pat) uses.
3107 (expand_unop_direct): Likewise.
3108 (maybe_emit_unop_insn): Likewise.
3109 * recog.c (peep2_attempt): Strengthen locals "last",
3110 "before_try", "x" from rtx to rtx_insn *.
3111 * reorg.c (optimize_skip): Strengthen return type and local
3112 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3113 and locals "trial", "next_trial" from rtx to rtx_insn *.
3114 * resource.c (next_insn_no_annul): Strengthen return type and
3115 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3116 rtx_sequence to clarify the code.
3117 (mark_referenced_resources): Add a checked cast to rtx_insn *
3118 within PREV_INSN (x).
3119 (find_dead_or_set_registers): Strengthen return type, param
3120 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3121 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3123 (mark_target_live_regs): Strengthen params "insns" and "target",
3124 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3125 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3127 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3128 from rtx to rtx_insn *.
3129 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3130 from rtx to rtx_insn *.
3131 (copy_reg_eh_region_note_backward): Likewise.
3132 (unshare_all_rtl_in_chain): Likewise for sole param.
3133 (dump_rtl_slim): Strengthen second and third params from const_rtx
3134 to const rtx_insn *.
3135 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3136 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3137 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3138 "next_tail" from rtx to rtx_insn *.
3139 (begin_move_insn): Likewise for local "next".
3140 * sched-int.h (sched_free_deps): Likewise for first and second
3142 (no_real_insns_p): Strengthen both params from const_rtx to
3144 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3146 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3148 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3149 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3150 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3152 (debug_rtl_slim): Strengthen params "first" and "last" from
3153 const_rtx to const rtx_insn *.
3154 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3155 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3156 (convert_to_simple_return): Likewise for param "returnjump".
3157 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3159 (convert_to_simple_return): Likewise for param "returnjump".
3160 * valtrack.c (propagate_for_debug): Likewise for params
3162 * valtrack.h (propagate_for_debug): Likewise for second param.
3164 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3166 * output.h (insn_current_reference_address): Strengthen param
3167 from rtx to rtx_insn *.
3168 * final.c (insn_current_reference_address): Likewise.
3170 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3172 * basic-block.h (inside_basic_block_p): Strengthen param from
3173 const_rtx to const rtx_insn *.
3174 * cfgbuild.c (inside_basic_block_p): Likewise.
3176 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3178 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3180 (get_trace_info): Likewise for param "insn".
3181 (save_point_p): Likewise.
3182 (maybe_record_trace_start): Likewise for both params.
3183 (maybe_record_trace_start_abnormal): Likewise.
3184 (create_trace_edges): Likewise for sole param and for three of the
3186 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3187 to rtx_insn *, and update a call to pat->element to pat->insn.
3189 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3191 * function.h (struct expr_status): Convert field "x_forced_labels"
3192 from rtx_expr_list * to rtx_insn_list *.
3194 * cfgbuild.c (make_edges): Convert local "x" from an
3195 rtx_expr_list * to an rtx_insn_list *, replacing use of
3196 "element" method with "insn" method.
3197 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3198 * except.c (sjlj_emit_dispatch_table): Replace use of
3199 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3201 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3202 rtx_expr_list * to an rtx_insn_list *, replacing use of
3203 "element" method with "insn" method.
3204 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3205 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3206 rtx_insn *, adding a checked cast. Replace use of
3207 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3209 (expand_label): Likewise for local "label_r".
3211 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3213 * function.h (struct rtl_data): Convert field
3214 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3216 * rtl.h (remove_node_from_insn_list): New prototype.
3218 * builtins.c (expand_builtin): When prepending to
3219 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3221 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3222 to rtx_insn_list *, and use its "insn" method rather than
3224 * cfgrtl.c (delete_insn): Use new function
3225 remove_node_from_insn_list rather than
3226 remove_node_from_expr_list.
3227 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3228 to rtx_insn_list *, and use its "insn" method rather than
3230 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3231 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3232 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3233 from remove_node_from_expr_list.
3234 * stmt.c (expand_label): When prepending to
3235 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3238 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3240 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3241 and "x_naked_return_label" from rtx to rtx_code_label *.
3243 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3245 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3246 (SET_NEXT_INSN): Likewise.
3247 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3249 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3250 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3251 to split out the SEQUENCE from local "bundle", strengthening the
3252 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3253 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3254 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3255 and the type of the elements of the "slot" array from rtx to
3257 (reorg_split_calls): Likewise for locals "insn" and "next", and
3258 the type of the elements of the "slot" array.
3260 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3262 (frv_function_prologue): Likewise for locals "insn", "next",
3264 (frv_register_nop): Introduce a local "nop_insn" to be the
3265 rtx_insn * containing rtx "nop".
3267 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3268 used as an insn and sometimes as a pattern, so rename it to
3269 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3270 using it where dealing with the core insn.
3272 * config/picochip/picochip.c (reorder_var_tracking_notes):
3273 Strengthen locals "insn", "next", "last_insn", "queue",
3274 "next_queue", "prev" from rtx to rtx_insn *.
3276 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3277 the second param is an rtx_insn ** rather than an rtx **.
3278 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3279 from rtx to rtx_sequence *, and introduce local named "sequence",
3280 using methods of rtx_sequence to clarify the code.
3281 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3283 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3284 Rename param "after" to "uncast_after", reintroducing "after" as a
3285 local rtx_insn * with a checked cast.
3286 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3287 reintroducing "after" as a local rtx_insn * with a checked cast.
3288 Strengthen local "last" from rtx to rtx_insn * and remove the
3289 now-redundant checked casts.
3290 (copy_delay_slot_insn): Strengthen return type and param from rtx
3293 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3294 "last" from rtx to rtx_insn *.
3296 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3298 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3299 param from rtx to rtx_insn *.
3301 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3303 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3304 and local "insn" from rtx to rtx_insn *.
3305 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3306 (unfilled_slots_next): Likewise.
3307 (function_return_label): Strengthen from rtx to rtx_code_label *.
3308 (function_simple_return_label): Likewise.
3309 (first_active_target_insn): Strengthen return type and param from
3311 (find_end_label): Strengthen return type from rtx to
3312 rtx_code_label *; strengthen locals as appropriate.
3313 (emit_delay_sequence): Strengthen return type, param "insn" and
3314 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3315 and local "li" from rtx to rtx_insn_list *, using methods of
3316 rtx_insn_list for clarity and typesafety.
3317 (add_to_delay_list): Strengthen return type and param "insn" from
3318 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3319 rtx_insn_list * and use methods of rtx_insn_list.
3320 (delete_from_delay_slot): Strengthen return type, param "insn",
3321 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3322 Strengthen local "seq" from rtx to rtx_sequence *, and local
3323 "delay_list" from rtx to rtx_insn_list *, using methods of
3324 rtx_sequence for clarity and type-safety.
3325 (delete_scheduled_jump): Add checked cast when invoking
3326 delete_from_delay_slot. Strengthen local "trial" from rtx to
3328 (optimize_skip): Strengthen return type and local "delay_list"
3329 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3331 (steal_delay_list_from_target): Strengthen return type, param
3332 "delay_list" and local "new_delay_list" from rtx to
3333 rtx_insn_list *. Strengthen param "seq" from rtx to
3334 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3336 Split out local "temp" into multiple more-tightly scoped locals:
3337 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3338 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3339 Strengthen locals named "trial" from rtx to rtx_insn *.
3340 (steal_delay_list_from_fallthrough): Strengthen return type and
3341 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3342 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3343 Strengthen local "trial" from rtx to rtx_insn *.
3344 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3345 to rtx_insn_list * and use its methods. Strengthen local "pat"
3346 from rtx to rtx_sequence * and use its methods. Strengthen locals
3347 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3348 (get_label_before): Strengthen return type and local "label" from
3350 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3351 "next_trial", "next", prev". Strengthen local "delay_list" from
3352 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3354 (follow_jumps): Strengthen return type, param "label" and locals
3355 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3356 (fill_slots_from_thread): Strengthen return type, param
3357 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3358 "insn", "thread", "opposite_thread" and locals "new_thread",
3359 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3360 "sequence" from a checked cast to rtx_sequence so that we can call
3361 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3362 with an rtx_sequence *.
3363 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3364 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3365 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3366 (relax_delay_slots): Strengthen param "first" and locals "insn",
3367 "next", "trial", "delay_insn", "target_label" from rtx to
3368 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3369 Introduce a local "trial_seq" for PATTERN (trial) of type
3370 rtx_sequence *, in both cases using methods of rtx_sequence.
3371 (dbr_schedule): Strengthen param "first" and locals "insn",
3372 "next", "epilogue_insn" from rtx to rtx_insn *.
3374 2014-08-28 Richard Biener <rguenther@suse.de>
3376 PR tree-optimization/62283
3377 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3378 Do not peel loops for alignment where the vector loop likely
3379 doesn't run at least VF times.
3381 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3383 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3384 important_candidates. Consider all important candidates if
3385 IVS doesn't give any result. Remove check on ivs->upto.
3386 (try_add_cand_for): Call iv_ca_add_use only once.
3388 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3389 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3390 Anna Tikhonova <anna.tikhonova@intel.com>
3391 Ilya Tocar <ilya.tocar@intel.com>
3392 Andrey Turetskiy <andrey.turetskiy@intel.com>
3393 Ilya Verbin <ilya.verbin@intel.com>
3394 Kirill Yukhin <kirill.yukhin@intel.com>
3395 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3397 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3398 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3400 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3401 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3402 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3403 (define_insn "*mul<mode>3"): Add EVEX version.
3405 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3406 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3407 Anna Tikhonova <anna.tikhonova@intel.com>
3408 Ilya Tocar <ilya.tocar@intel.com>
3409 Andrey Turetskiy <andrey.turetskiy@intel.com>
3410 Ilya Verbin <ilya.verbin@intel.com>
3411 Kirill Yukhin <kirill.yukhin@intel.com>
3412 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3414 * config/i386/sse.md
3415 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3416 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3417 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3418 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3419 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3420 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3421 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3422 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3423 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3424 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3425 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3426 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3427 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3428 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3429 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3430 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3432 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3433 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3434 Anna Tikhonova <anna.tikhonova@intel.com>
3435 Ilya Tocar <ilya.tocar@intel.com>
3436 Andrey Turetskiy <andrey.turetskiy@intel.com>
3437 Ilya Verbin <ilya.verbin@intel.com>
3438 Kirill Yukhin <kirill.yukhin@intel.com>
3439 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3441 * config/i386/sse.md
3442 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3443 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3444 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3446 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3447 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3448 Anna Tikhonova <anna.tikhonova@intel.com>
3449 Ilya Tocar <ilya.tocar@intel.com>
3450 Andrey Turetskiy <andrey.turetskiy@intel.com>
3451 Ilya Verbin <ilya.verbin@intel.com>
3452 Kirill Yukhin <kirill.yukhin@intel.com>
3453 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3455 * config/i386/sse.md
3456 (define_mode_iterator VI128_256): New.
3457 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3459 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3460 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3461 Anna Tikhonova <anna.tikhonova@intel.com>
3462 Ilya Tocar <ilya.tocar@intel.com>
3463 Andrey Turetskiy <andrey.turetskiy@intel.com>
3464 Ilya Verbin <ilya.verbin@intel.com>
3465 Kirill Yukhin <kirill.yukhin@intel.com>
3466 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3468 * config/i386/sse.md
3469 (define_mode_iterator VI8_256_512): New.
3470 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3472 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3473 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3475 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3477 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3479 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3480 pointer to the cumulative reloc value and return the value for
3482 (compute_reloc_for_rtx): Take a const_rtx. Call
3483 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3484 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3485 for_each_rtx for the CONST case.
3487 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3489 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3490 (mark_constants_in_pattern): ...this new function to iterate over
3492 (mark_constants): Update accordingly.
3494 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3496 * varasm.c: Include rtl-iter.h.
3497 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3498 Remove the pointer to the cumulative hashval_t and just return
3499 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3500 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3501 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3503 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3505 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3506 Give real type of data parameter. Remove return value.
3507 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3508 to iterate over subrtxes.
3510 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3512 * var-tracking.c (use_narrower_mode_test): Turn from being a
3513 for_each_rtx callback to being a function that examines each
3515 (adjust_mems): Update accordingly.
3517 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3519 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3520 callback to being a function that examines each subrtx itself.
3521 Remove handling of null rtxes.
3522 (add_uses): Update accordingly.
3524 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3526 * var-tracking.c: Include rtl-iter.h.
3527 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3528 to being a function that examines each subrtx itself.
3529 (use_type): Update accordingly.
3531 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3533 * store-motion.c: Include rtl-iter.h.
3534 (extract_mentioned_regs_1): Delete.
3535 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3536 for_each_rtx to iterate over subrtxes.
3538 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3540 * sel-sched.c: Include rtl-iter.h
3541 (count_occurrences_1): Delete.
3542 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3543 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3545 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3547 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3548 * rtlanal.c (tls_referenced_p_1): Delete.
3549 (tls_referenced_p): Take a const_rtx rather than an rtx.
3550 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3552 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3554 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3555 (for_each_inc_dec): Take an rtx rather than an rtx *.
3556 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3557 (cselib_record_sets): Likewise.
3558 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3559 (check_for_inc_dec): Likewise.
3560 * rtlanal.c (for_each_inc_dec_ops): Delete.
3561 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3562 rather than a pointer to the memory address. Replace
3563 for_each_inc_dec_ops argument with separate function and data
3564 arguments. Abort on non-autoinc addresses.
3565 (for_each_inc_dec_find_mem): Delete.
3566 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3567 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3569 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3571 * rtl.h (find_all_hard_regs): Declare.
3572 * rtlanal.c (find_all_hard_regs): New function.
3573 (record_hard_reg_uses_1): Delete.
3574 (record_hard_reg_uses): Use find_all_hard_regs.
3576 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3578 * rtl.h (replace_label_data): Delete.
3579 (replace_label): Take the old label, new label and update-nuses flag
3580 as direct arguments. Return void.
3581 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3582 * rtlanal.c (replace_label): Update interface as above. Handle
3583 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3584 iterator. Use FOR_EACH_SUBRTX_PTR.
3586 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3588 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3589 with const_rtx parameters.
3590 * varasm.c (get_pool_constant): Likewise.
3591 * rtlanal.c (rtx_referenced_p_1): Delete.
3592 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3593 Assert that the rtx we're looking for is nonnull. Allow searches
3594 for constant pool SYMBOL_REFs.
3596 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3598 * reload1.c: Include rtl-iter.h.
3599 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3600 to being a function that examines each subrtx itself.
3601 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3603 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3605 * regcprop.c (cprop_find_used_regs_1): Delete.
3606 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3608 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3610 * regcprop.c: Include rtl-iter.h.
3611 (kill_value): Take a const_rtx.
3612 (kill_autoinc_value): Turn from being a for_each_rtx callback
3613 to being a function that examines each subrtx itself.
3614 (copyprop_hardreg_forward_1): Update accordingly.
3616 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3618 * reg-stack.c: Include rtl-iter.h.
3619 (subst_stack_regs_in_debug_insn): Delete.
3620 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3621 instead of for_each_rtx.
3623 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3625 * lower-subreg.c (find_decomposable_subregs): Turn from being
3626 a for_each_rtx callback to being a function that examines each
3627 subrtx itself. Remove handling of null rtxes.
3628 (decompose_multiword_subregs): Update accordingly.
3630 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3632 * lower-subreg.c (adjust_decomposed_uses): Delete.
3633 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3634 Remove handling of null rtxes.
3636 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3638 * lower-subreg.c: Include rtl-iter.h.
3639 (resolve_subreg_use): Turn from being a for_each_rtx callback
3640 to being a function that examines each subrtx itself. Remove
3641 handling of null rtxes.
3642 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3643 (decompose_multiword_subregs): Likewise.
3645 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3647 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3648 to being a function that examines each subrtx itself.
3649 (simplify_using_condition, simplify_using_initial_values): Update
3652 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3654 * loop-iv.c: Include rtl-iter.h.
3655 (find_single_def_src): New function.
3656 (replace_single_def_regs): Turn from being a for_each_rtx callback
3657 to being a function that examines each subrtx itself.
3658 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3660 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3662 * jump.c (eh_returnjump_p_1): Delete.
3663 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3664 Remove handling of null rtxes.
3666 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3668 * jump.c: Include rtl-iter.h.
3669 (returnjump_p_1): Delete.
3670 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3671 Remove handling of null rtxes.
3673 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3675 * ira.c: Include rtl-iter.h.
3676 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3677 to being a function that examines each subrtx itself. Remove
3678 handling of null rtxes.
3679 (update_equiv_regs): Update call accordingly.
3681 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3683 * fwprop.c: Include rtl-iter.h.
3684 (varying_mem_p): Turn from being a for_each_rtx callback to being
3685 a function that examines each subrtx itself.
3686 (propagate_rtx): Update accordingly.
3688 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3690 * function.c: Include rtl-iter.h
3691 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3692 callback to being a function that examines each subrtx itself.
3693 Return the changed flag.
3694 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3695 (instantiate_virtual_regs): Update calls accordingly.
3697 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3699 * final.c: Include rtl-iter.h.
3700 (mark_symbol_ref_as_used): Delete.
3701 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3704 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3706 * emit-rtl.c: Include rtl-iter.h.
3707 (find_auto_inc): Turn from being a for_each_rtx callback to being
3708 a function that examines each subrtx itself. Assume the first operand
3709 to an RTX_AUTOINC is the automodified register.
3710 (try_split): Update call accordingly.
3712 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3714 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3715 Return a bool, inverting the result so that 0/false means "not ok".
3716 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3717 subrtxes of a CONST.
3718 (mem_loc_descriptor, add_const_value_attribute)
3719 (resolve_addr_in_expr): Update calls accordingly.
3721 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3723 * dwarf2out.c: Include rtl-iter.h.
3724 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3725 Remove unused data parameter. Return a bool, inverting the result
3726 so that 0/false means "not ok".
3727 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3728 instead of for_each_rtx.
3730 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3732 * dse.c: Include rtl-iter.h.
3733 (check_mem_read_rtx): Change void * parameter to real type.
3734 Remove return value.
3735 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3736 for_each_rtx. Don't handle null rtxes.
3738 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3740 * df-problems.c: Include rtl-iter.h.
3741 (find_memory): Turn from being a for_each_rtx callback to being
3742 a function that examines each subrtx itself. Continue to look for
3743 volatile references even after a nonvolatile one has been found.
3744 (can_move_insns_across): Update calls accordingly.
3746 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3748 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3749 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3750 to iterate over subrtxes. Return a bool rather than an int.
3752 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3754 * ddg.c: Include rtl-iter.h.
3755 (mark_mem_use_1): Rename to...
3756 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3757 instead of for_each_rtx.
3758 (mem_read_insn_p): Update accordingly.
3760 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3762 * cse.c (change_cc_mode_args): Delete.
3763 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3764 a function that examines each subrtx itself. Take the fields of
3765 change_cc_mode_args as argument and return void.
3766 (cse_change_cc_mode_insn): Update calls accordingly.
3768 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3770 * cse.c (is_dead_reg): Change argument to const_rtx.
3771 (dead_debug_insn_data): Delete.
3772 (is_dead_debug_insn): Expand commentary. Turn from being a
3773 for_each_rtx callback to being a function that examines
3774 each subrtx itself. Take the fields of dead_debug_insn_data
3776 (delete_trivially_dead_insns): Update call accordingly.
3778 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3780 * cse.c (check_for_label_ref): Move earlier in file. Turn from
3781 being a for_each_rtx callback to being a function that examines
3783 (cse_extended_basic_block): Update call accordingly.
3785 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3787 * cse.c (check_dependence_data): Delete.
3788 (check_dependence): Change from being a for_each_rtx callback to being
3789 a function that examines all subrtxes itself. Don't handle null rtxes.
3790 (invalidate): Update call accordingly.
3792 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3794 * cse.c: Include rtl-iter.h.
3795 (approx_reg_cost_1): Delete.
3796 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3797 Don't handle null rtxes.
3799 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3801 * cfgcleanup.c: Include rtl-iter.h.
3802 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3803 to being a function that examines each subrtx itself.
3804 (thread_jump): Update accordingly.
3806 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3808 * combine-stack-adj.c: Include rtl-iter.h.
3809 (record_stack_refs_data): Delete.
3810 (record_stack_refs): Turn from being a for_each_rtx callback
3811 to being a function that examines each subrtx itself.
3812 Take a pointer to the reflist. Invert sense of return value
3813 so that true means success and false means failure. Don't
3815 (combine_stack_adjustments_for_block): Update accordingly.
3817 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3819 * combine.c (record_truncated_value): Turn from being a for_each_rtx
3820 callback to a function that takes an rtx and returns a bool
3821 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3824 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3826 * combine.c: Include rtl-iter.h.
3827 (unmentioned_reg_p_1): Delete.
3828 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3829 Don't handle null rtxes.
3831 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3833 * calls.c: Include rtl-iter.h.
3834 (internal_arg_pointer_based_exp_1): Delete.
3835 (internal_arg_pointer_based_exp): Take a const_rtx.
3836 Use FOR_EACH_SUBRTX to iterate over subrtxes.
3838 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3840 * caller-save.c: Include rtl-iter.h.
3841 (add_used_regs_1): Delete.
3842 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3843 to iterate over subrtxes. Assert that any remaining pseudos
3846 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3848 * bt-load.c: Include rtl-iter.h.
3849 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3850 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
3851 to iterate over subrtxes.
3852 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3853 find_btr_use rather than btr_referenced_p.
3855 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3857 * alias.c: Include rtl-iter.h.
3858 (refs_newer_value_cb): Delete.
3859 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3861 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3863 * rtl-iter.h: New file.
3864 * rtlanal.c: Include it.
3865 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3866 (generic_subrtx_iterator <T>::add_single_to_queue)
3867 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3868 (generic_subrtx_iterator <T>::free_array): New functions.
3869 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3870 (generic_subrtx_iterator <const_rtx_accessor>)
3871 (generic_subrtx_iterator <rtx_var_accessor>
3872 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3873 (setup_reg_subrtx_bounds): New function.
3874 (init_rtlanal): Call it.
3876 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3879 * config/sh/sh.md (ashlsi3): Handle negative shift count for
3881 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3883 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
3885 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3887 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3889 * rtl.h (JUMP_LABEL_AS_INSN): New.
3891 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3893 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3895 (alloc_EXPR_LIST): Strengthen return type from rtx to
3897 (remove_free_EXPR_LIST_node): Likewise for param.
3898 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3899 from rtx to rtx_expr_list *.
3900 * sched-int.h (struct deps_desc): Strengthen fields
3901 "pending_read_mems" and "pending_write_mems" from rtx to
3904 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3905 rtx to rtx_expr_list *.
3906 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3907 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3909 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
3910 from rtx to rtx_expr_list *.
3911 * loop-iv.c (simplify_using_initial_values): Strengthen local
3912 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3913 "pnote_next" from rtx * to rtx_expr_list **.
3914 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
3915 param "exprp" from rtx * to rtx_expr_list **.
3916 (add_insn_mem_dependence): Strengthen local "mem_list" from
3917 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
3919 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3920 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
3921 param "old_mems_p" from rtx * to rtx_expr_list **.
3922 * var-tracking.c (struct adjust_mem_data): Strengthen field
3923 "side_effects" from rtx to rtx_expr_list *.
3924 (adjust_insn): Replace NULL_RTX with NULL when assigning to
3926 (prepare_call_arguments): Likewise.
3928 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3930 * function.h (struct rtl_data): Strengthen field
3931 "x_stack_slot_list" from rtx to rtx_expr_list *.
3933 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3934 when assigning to stack_slot_list.
3936 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3938 * function.h (struct rtl_data): Strengthen field
3939 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3940 * rtl.h (remove_node_from_expr_list): Strengthen second param from
3941 rtx * to rtx_expr_list **.
3943 * cfgbuild.c (make_edges): In loop over
3944 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3945 rtx_expr_list *, and use methods of the latter class to clarify
3947 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3948 rtx_expr_list *, and use methods of the latter class to clarify
3950 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3951 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3952 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3953 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
3954 to rtx_expr_list *. Use methods of the latter class to clarify
3957 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3959 * function.h (struct expr_status): Strengthen field
3960 "x_forced_labels" from rtx to rtx_expr_list *.
3962 * cfgbuild.c (make_edges): Split local "x" into two locals,
3963 strengthening one from rtx to rtx_expr_list *, and using methods
3965 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3966 loop over forced_labels, introduce strengthen it from rtx to
3967 rtx_expr_list *, using methods to clarify the code.
3968 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3969 to rtx_expr_list *, using methods of said class to clarify the
3971 * reload1.c (set_initial_label_offsets): Split local "x" into two
3972 per-loop variables, strengthening the first from rtx to
3973 rtx_expr_list * and using methods.
3975 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3977 * coretypes.h (class rtx_expr_list): Add forward declaration.
3978 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3979 * gengenrtl.c (special_rtx): Add EXPR_LIST.
3980 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3981 invariant: GET_CODE (X) == EXPR_LIST.
3982 (is_a_helper <rtx_expr_list *>::test): New.
3983 (rtx_expr_list::next): New.
3984 (rtx_expr_list::element): New.
3985 (gen_rtx_EXPR_LIST): New.
3987 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3989 * varasm.c (mark_constants): Convert a GET_CODE check into a
3990 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3991 Use methods of rtx_sequence to clarify the code.
3993 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3995 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3996 local "seq" via a checked cast, and use methods of rtx_sequence
3997 to simplify the code.
3999 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4001 * resource.c (mark_referenced_resources): Strengthen local
4002 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4003 using methods of rtx_sequence to clarify the code.
4004 (find_dead_or_set_registers): Within the switch statement, convert
4005 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4006 the JUMP_P handling, introduce another local "seq", adding a
4007 checked cast to rtx_sequence *. In both cases, use methods of
4008 rtx_sequence to clarify the code.
4009 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4010 via a checked cast, and use methods of rtx_sequence to simplify
4013 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4015 * reorg.c (redundant_insn): In two places in the function, replace
4016 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4017 usings methods of rtx_sequence to clarify the code.
4019 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4021 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4022 local "seq" with a checked cast, and use methods of rtx_sequence
4023 to clarify the code.
4025 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4027 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4028 with a checked cast, in the region for where we know it's a
4029 SEQUENCE. Use methods of rtx_sequence.
4031 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4033 * final.c (get_attr_length_1): Replace GET_CODE check with a
4034 dyn_cast, introducing local "seq" and the use of methods of
4036 (shorten_branches): Likewise, introducing local "body_seq".
4037 Strengthen local "inner_insn" from rtx to rtx_insn *.
4038 (reemit_insn_block_notes): Replace GET_CODE check with a
4039 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4040 Use methods of rtx_sequence.
4041 (final_scan_insn): Likewise, introducing local "seq" for when
4042 "body" is known to be a SEQUENCE, using its methods.
4044 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4046 * except.c (can_throw_external): Strengthen local "seq" from rtx
4047 to rtx_sequence *. Use methods of rtx_sequence.
4048 (insn_nothrow_p): Likewise.
4050 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4052 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4053 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4054 Use methods of rtx_sequence.
4055 (scan_trace): Likewise for local "pat".
4057 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4059 * coretypes.h (class rtx_sequence): Add forward declaration.
4060 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4061 invariant: GET_CODE (X) == SEQUENCE.
4062 (is_a_helper <rtx_sequence *>::test): New.
4063 (is_a_helper <const rtx_sequence *>::test): New.
4064 (rtx_sequence::len): New.
4065 (rtx_sequence::element): New.
4066 (rtx_sequence::insn): New.
4068 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4070 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4072 (alloc_INSN_LIST): Strengthen return type from rtx to
4074 (copy_INSN_LIST): Likewise for return type and param.
4075 (concat_INSN_LIST): Likewise for both params and return type.
4076 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4077 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4078 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4079 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4081 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4082 "implicit_sets", "control_uses", "clobbers" from rtx to
4084 (struct deps_desc): Likewise for fields "pending_read_insns",
4085 "pending_write_insns", "pending_jump_insns",
4086 "last_pending_memory_flush", "last_function_call",
4087 "last_function_call_may_noreturn", "sched_before_next_call",
4088 "sched_before_next_jump".
4089 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4090 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4092 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4093 from rtx to rtx_insn_list *.
4094 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4097 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4098 to rtx_insn_list **.
4099 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4101 (queue_insn): Likewise for local "link".
4102 (struct haifa_saved_data): Strengthen field "insn_queue" from
4103 rtx * to rtx_insn_list **.
4104 (save_backtrack_point): Update allocation of save->insn_queue to
4105 reflect the strengthening of elements from rtx to rtx_insn_list *.
4106 (queue_to_ready): Strengthen local "link" from rtx to
4107 rtx_insn_list *; use methods "next" and "insn" when traversing the
4109 (early_queue_to_ready): Likewise for locals "link", "next_link",
4111 (schedule_block): Update allocation of insn_queue to reflect the
4112 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4113 local "link" from rtx to rtx_insn_list *, and use methods when
4115 (add_to_speculative_block): Strengthen locals "twins" and
4116 "next_node" from rtx to rtx_insn_list *, and use methods when
4117 working with them. Strengthen local "twin" from rtx to
4118 rtx_insn *, eliminating a checked cast.
4119 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4120 from rtx to rtx_insn_list *, and use methods when working with
4123 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4124 from rtx to rtx_insn_list *, adding a checked cast.
4125 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4127 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4128 "newlink" from rtx to rtx_insn_list *. Strengthen local
4129 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4130 from rtx to rtx_insn *.
4131 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4132 from rtx to rtx_insn_list *. Use methods of the latter class.
4133 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4134 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4135 (remove_free_INSN_LIST_node): Strengthen return type and local
4136 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4137 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4138 rtx_insn_list *, using "insn" method.
4140 * sched-deps.c (add_dependence_list): Strengthen param "list"
4141 from rtx to rtx_insn_list *, and use methods when working with it.
4142 (add_dependence_list_and_free): Strengthen param "listp" from
4143 rtx * to rtx_insn_list **.
4144 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4145 to rtx_insn_list **, and use methods when working with *listp.
4146 (remove_from_both_dependence_lists): Strengthen param "listp" from
4147 rtx * to rtx_insn_list **
4148 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4149 to rtx_insn_list **. Eliminate local "link", in favor of two new
4150 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4152 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4153 by introducing local "cond_deps".
4154 (remove_from_deps): Strengthen param "insn" from rtx to
4157 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4158 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4159 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4160 Use methods of rtx_insn_list.
4162 * store-motion.c (struct st_expr): Strengthen fields
4163 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4164 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4166 (find_moveable_store): Split out "tmp" into multiple more-tightly
4167 scoped locals. Use methods of rtx_insn_list *.
4168 (compute_store_table): Strengthen local "tmp" from rtx to
4169 rtx_insn *. Use methods of rtx_insn_list *.
4171 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4173 * coretypes.h (class rtx_insn_list): Add forward declaration.
4174 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4175 (is_a_helper <rtx_insn_list *>::test): New.
4176 (rtx_insn_list::next): New.
4177 (rtx_insn_list::insn): New.
4178 (gen_rtx_INSN_LIST): Add prototype.
4179 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4180 * gengenrtl.c (special_rtx): Add INSN_LIST.
4182 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4184 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4185 "prev" from rtx to rtx_insn *.
4187 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4189 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4190 functions. Require merely an rtx for now, not an rtx_insn *.
4191 (BLOCK_FOR_INSN): Likewise.
4192 (INSN_LOCATION): Likewise.
4193 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4195 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4197 * rtl.h (PATTERN): Convert this macro into a pair of inline
4198 functions, for now, requiring const_rtx and rtx.
4200 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4202 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4204 (final_postscan_insn): Likewise.
4205 (adjust_cost): Likewise.
4206 (adjust_priority): Likewise.
4207 (variable_issue): Likewise.
4208 (macro_fusion_pair_p): Likewise.
4209 (dfa_post_cycle_insn): Likewise.
4210 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4211 (first_cycle_multipass_issue): Likewise.
4212 (dfa_new_cycle): Likewise.
4213 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4214 (speculate_insn): Likewise for param "insn".
4215 (gen_spec_check): Likewise for params "insn" and "label".
4216 (get_insn_spec_ds): Likewise for param "insn".
4217 (get_insn_checked_ds): Likewise.
4218 (dispatch_do): Likewise.
4219 (dispatch): Likewise.
4220 (cannot_copy_insn_p): Likewise.
4221 (invalid_within_doloop): Likewise.
4222 (legitimate_combined_insn): Likewise.
4226 * doc/tm.texi: Automatically updated to reflect changes to
4229 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4231 (schedule_block): Likewise.
4232 (sched_init): Likewise.
4233 (sched_speculate_insn): Strengthen param "insn" from rtx to
4235 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4237 * hooks.c (hook_bool_rtx_true): Rename to...
4238 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4240 (hook_constcharptr_const_rtx_null): Rename to...
4241 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4242 first param from const_rtx to const rtx_insn *.
4243 (hook_bool_rtx_int_false): Rename to...
4244 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4245 param from rtx to rtx_insn *.
4246 (hook_void_rtx_int): Rename to...
4247 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4250 * hooks.h (hook_bool_rtx_true): Rename to...
4251 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4253 (hook_bool_rtx_int_false): Rename to...
4254 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4255 param from rtx to rtx_insn *.
4256 (hook_void_rtx_int): Rename to...
4257 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4259 (hook_constcharptr_const_rtx_null): Rename to...
4260 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4261 first param from const_rtx to const rtx_insn *.
4263 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4264 and local "prev" from rtx to rtx_insn *.
4266 * sched-int.h (sched_speculate_insn): Strengthen first param from
4269 * sel-sched.c (create_speculation_check): Likewise for local "label".
4270 * targhooks.c (default_invalid_within_doloop): Strengthen param
4271 "insn" from const_rtx to const rtx_insn *.
4272 * targhooks.h (default_invalid_within_doloop): Strengthen param
4273 from const_rtx to const rtx_insn *.
4275 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4276 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4278 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4280 (arc_invalid_within_doloop): Likewise, with const.
4282 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4283 (arm_cannot_copy_insn_p): Likewise for param "insn".
4284 (arm_unwind_emit): Likewise.
4286 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4289 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4290 (c6x_variable_issue): Likewise. Removed now-redundant checked
4292 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4294 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4295 Likewise for param "insn".
4296 (epiphany_mode_after): Likewise.
4297 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4298 params "insn", "dep_insn".
4299 (epiphany_mode_needed): Likewise for param "insn".
4300 (epiphany_mode_after): Likewise.
4302 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4303 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4304 (ix86_avx_u128_mode_needed): Likewise.
4305 (ix86_i387_mode_needed): Likewise.
4306 (ix86_mode_needed): Likewise.
4307 (ix86_avx_u128_mode_after): Likewise.
4308 (ix86_mode_after): Likewise.
4309 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4310 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4311 (ix86_adjust_priority): Likewise for param "insn".
4312 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4313 (do_dispatch): Likewise.
4314 (has_dispatch): Likewise.
4315 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4317 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4318 reflect renaming of default hook implementation from
4319 hook_constcharptr_const_rtx_null to
4320 hook_constcharptr_const_rtx_insn_null.
4321 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4323 (ia64_variable_issue): Likewise for param "insn".
4324 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4325 (ia64_dfa_new_cycle): Likewise.
4326 (ia64_get_insn_spec_ds): Likewise.
4327 (ia64_get_insn_checked_ds): Likewise.
4328 (ia64_speculate_insn): Likewise.
4329 (ia64_gen_spec_check): Likewise for params "insn", "label".
4330 (ia64_asm_unwind_emit): Likewise for param "insn".
4332 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4334 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4336 (m68k_sched_variable_issue): Likewise for param "insn".
4338 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4341 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4342 Likewise for params "insn", "dep".
4344 * config/mips/mips.c (mips_adjust_cost): Likewise.
4345 (mips_variable_issue): Likewise for param "insn".
4346 (mips_final_postscan_insn): Likewise.
4348 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4349 for params "insn", "dep".
4351 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4353 (pa_adjust_priority): Likewise for param "insn".
4355 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4356 Likewise for params "insn", "dep_insn".
4358 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4360 (rs6000_variable_issue): Likewise.
4361 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4362 (rs6000_debug_adjust_cost): Likewise.
4363 (rs6000_adjust_priority): Likewise for param "insn".
4364 (rs6000_use_sched_lookahead_guard): Likewise.
4365 (get_next_active_insn): Likewise for return type and both params.
4366 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4367 and locals "insn", "next_insn".
4368 (pad_groups): Likewise.
4370 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4372 (s390_cannot_copy_insn_p): Likewise.
4373 (s390_sched_variable_issue): Likewise for third param, eliminating
4375 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4376 default hook implementation from hook_constcharptr_const_rtx_null
4377 to hook_constcharptr_const_rtx_insn_null.
4379 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4380 from rtx to rtx_insn *.
4381 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4382 (sh_variable_issue): Likewise for param "insn".
4383 (sh_dfa_new_cycle): Likewise.
4384 (sh_mode_needed): Likewise.
4385 (sh_mode_after): Likewise.
4387 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4388 params "insn", "dep_insn".
4389 (hypersparc_adjust_cost): Likewise.
4390 (sparc_adjust_cost): Likewise.
4392 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4393 param, eliminated checked cast.
4394 (spu_sched_adjust_cost): Likewise for first and third params.
4396 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4397 params "insn" and "dep_insn" from rtx to rtx_insn *.
4399 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4401 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4403 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4404 (set_is_load_p): ...this, updating to work on a SET pattern rather
4406 (is_store_insn): Rename to...
4407 (set_is_store_p): ...this, updating to work on a SET pattern
4408 rather than an insn.
4409 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4410 top of function to where it is needed. Rewrite the bogus
4411 condition that checks for "insn" and "dep" being PARALLEL to
4412 instead use single_set, introducing locals "insn_set" and
4413 "dep_set". Given that we only ever returned "cost" for a non-pair
4414 of SETs, bail out early if we don't have a pair of SET.
4415 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4416 use the new locals "insn_set" and "dep_set", and update calls to
4417 is_load_insn and is_store_insn to be calls to set_is_load_p and
4420 2014-08-27 Guozhi Wei <carrot@google.com>
4423 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4424 amount before using it.
4426 2014-08-27 Richard Biener <rguenther@suse.de>
4428 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4429 get_maxval_strlen inside a more useful API.
4430 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4431 (gimple_fold_builtin): ... caller.
4432 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4433 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4434 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4435 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4436 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4437 gimple_fold_builtin_sprintf): Adjust to compute maxval
4440 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4443 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4445 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4446 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4447 Anna Tikhonova <anna.tikhonova@intel.com>
4448 Ilya Tocar <ilya.tocar@intel.com>
4449 Andrey Turetskiy <andrey.turetskiy@intel.com>
4450 Ilya Verbin <ilya.verbin@intel.com>
4451 Kirill Yukhin <kirill.yukhin@intel.com>
4452 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4454 * config/i386/sse.md
4455 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4456 Use `concat_tg_mode' attribute to determine asm register size.
4458 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4459 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4460 Anna Tikhonova <anna.tikhonova@intel.com>
4461 Ilya Tocar <ilya.tocar@intel.com>
4462 Andrey Turetskiy <andrey.turetskiy@intel.com>
4463 Ilya Verbin <ilya.verbin@intel.com>
4464 Kirill Yukhin <kirill.yukhin@intel.com>
4465 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4467 * config/i386/sse.md
4468 (define_mode_iterator VI48_AVX512VL): New.
4469 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4470 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4471 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4472 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4473 with VI1): Change mode iterator.
4474 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4475 with VI_ULOADSTORE_BW_AVX512VL): New.
4476 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4477 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4478 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4479 with VI1): Change mode iterator.
4480 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4481 with VI_ULOADSTORE_BW_AVX512VL): New.
4482 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4483 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4484 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4485 with VI1): Change mode iterator.
4486 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4487 with VI_ULOADSTORE_BW_AVX512VL): New.
4488 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4489 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4490 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4491 (define_insn "<avx512>_storedqu<mode>_mask" with
4492 VI48_AVX512VL): New.
4493 (define_insn "<avx512>_storedqu<mode>_mask" with
4494 VI12_AVX512VL): Ditto.
4496 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4497 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4498 Anna Tikhonova <anna.tikhonova@intel.com>
4499 Ilya Tocar <ilya.tocar@intel.com>
4500 Andrey Turetskiy <andrey.turetskiy@intel.com>
4501 Ilya Verbin <ilya.verbin@intel.com>
4502 Kirill Yukhin <kirill.yukhin@intel.com>
4503 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4505 * config/i386/sse.md
4506 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4507 (define_mode_iterator VI48_AVX512BW): New.
4508 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4509 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4510 with VI48_AVX2_48_AVX512F): New.
4511 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4512 with VI2_AVX512VL): Ditto.
4514 2014-08-27 Richard Biener <rguenther@suse.de>
4517 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4518 (fold_builtin_3): Do not fold strcat_chk here.
4519 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4521 (gimple_fold_builtin): Fold strcat_chk here.
4523 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4525 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4526 * dwarf2out.c (dwarf2out_decl): Make static.
4528 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4530 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4532 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4534 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4535 from rtx to rtx_insn *.
4536 (cselib_lookup_from_insn): Likewise for final param.
4537 (cselib_subst_to_values_from_insn): Likewise.
4538 (cselib_add_permanent_equiv): Likewise.
4540 * cselib.c (cselib_current_insn): Likewise for this variable.
4541 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4542 (cselib_lookup_from_insn): Likewise.
4543 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4544 "save_cselib_current_insn".
4545 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4547 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4548 from rtx to rtx_insn *.
4550 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4552 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4555 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4557 * df.h (df_dump_insn_problem_function): Strengthen first param of
4558 this callback from const_rtx to const rtx_insn *.
4559 (struct df_insn_info): Strengthen field "insn" from rtx to
4561 (DF_REF_INSN): Eliminate this function, reinstating the older
4563 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4564 (df_reg_defined): Likewise.
4565 (df_find_use): Likewise.
4566 (df_reg_used): Likewise.
4567 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4569 (df_dump_insn_bottom): Likewise.
4570 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4571 (df_insn_debug_regno): Likewise.
4572 (debug_df_insn): Likewise.
4573 (df_rd_simulate_one_insn): Likewise for param 2.
4574 (df_word_lr_simulate_defs): Likewise for param 1.
4575 (df_word_lr_simulate_uses): Likewise.
4576 (df_md_simulate_one_insn): Likewise for param 2.
4577 (df_simulate_find_noclobber_defs): Likewise for param 1.
4578 (df_simulate_find_defs): Likewise.
4579 (df_simulate_defs): Likewise.
4580 (df_simulate_uses): Likewise.
4581 (df_simulate_one_insn_backwards): Likewise for param 2.
4582 (df_simulate_one_insn_forwards): Likewise.
4583 (df_uses_create): Likewise for param 2.
4584 (df_insn_create_insn_record): Likewise for param 1.
4585 (df_insn_delete): Likewise.
4586 (df_insn_rescan): Likewise.
4587 (df_insn_rescan_debug_internal): Likewise.
4588 (df_insn_change_bb): Likewise.
4589 (df_notes_rescan): Likewise.
4590 * rtl.h (remove_death): Likewise for param 2.
4591 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4593 * sched-int.h (reemit_notes): Strengthen param from rtx to
4595 * valtrack.h (propagate_for_debug): Likewise for param 1.
4597 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4598 local "tmp_rtx" from const_rtx to const rtx_insn *.
4599 * combine.c (remove_death): Strengthen param "insn" from rtx to
4601 (move_deaths): Likewise for local "where_dead".
4602 * cse.c (delete_trivially_dead_insns): Introduce local
4603 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4604 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4606 (df_reg_defined): Likewise.
4607 (df_find_use): Likewise.
4608 (df_reg_used): Likewise.
4609 (df_dump_insn_problem_data): Strengthen param "insn" from
4610 const_rtx to const rtx_insn *.
4611 (df_dump_insn_top): Likewise.
4612 (df_dump_insn_bottom): Likewise.
4613 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4614 (df_insn_debug_regno): Likewise.
4615 (debug_df_insn): Likewise.
4616 (DF_REF_INSN): Delete.
4617 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4618 from rtx to rtx_insn *.
4619 (df_chain_insn_top_dump): Strengthen param "insn" from
4620 const_rtx to const rtx_insn *.
4621 (df_chain_insn_bottom_dump): Likewise.
4622 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4624 (df_word_lr_simulate_uses): Likewise.
4625 (df_print_note): Likewise.
4626 (df_remove_dead_and_unused_notes): Likewise.
4627 (df_set_unused_notes_for_mw): Likewise.
4628 (df_set_dead_notes_for_mw): Likewise.
4629 (df_create_unused_note): Likewise.
4630 (df_simulate_find_defs): Likewise.
4631 (df_simulate_find_uses): Likewise.
4632 (df_simulate_find_noclobber_defs): Likewise.
4633 (df_simulate_defs): Likewise.
4634 (df_simulate_uses): Likewise.
4635 (df_simulate_one_insn_backwards): Likewise.
4636 (df_simulate_one_insn_forwards): Likewise.
4637 (df_md_simulate_one_insn): Likewise.
4638 * df-scan.c (df_uses_create): Likewise.
4639 (df_insn_create_insn_record): Likewise.
4640 (df_insn_delete): Likewise.
4641 (df_insn_rescan): Likewise.
4642 (df_insn_rescan_debug_internal): Likewise.
4643 (df_insn_change_bb): Likewise.
4644 (df_notes_rescan): Likewise.
4645 (df_refs_add_to_chains): Likewise.
4646 (df_insn_refs_verify): Likewise.
4647 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4648 when invoking df_insn_delete.
4649 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4650 (set_unique_reg_note): Add checked cast.
4651 * final.c (cleanup_subreg_operands): Likewise.
4652 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4653 "insn" from rtx to rtx_insn *.
4654 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4655 "last" from rtx to rtx_insn *.
4656 * ira-emit.c (change_regs_in_insn): New function.
4657 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4658 Invoke change_regs_in_insn rather than change_regs.
4659 * ira.c (update_equiv_regs): Strengthen locals "insn",
4660 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4661 for_each_rtx_in_insn rather than for_each_rtx.
4662 * recog.c (confirm_change_group): Add checked casts.
4663 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4665 (peep2_fill_buffer): Add checked cast.
4666 * rtlanal.c (remove_note): Likewise.
4667 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4668 locals "next" "end" from rtx to rtx_insn *.
4670 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4672 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4674 (struct reg_use_data): Likewise for field "insn".
4675 (insn_cost): Likewise for param.
4676 (real_insn_for_shadow): Likewise for return type and param.
4677 (increase_insn_priority): Likewise for param 1.
4678 (debug_dependencies): Likewise for both params.
4680 * haifa-sched.c (insn_delay): Likewise for param "insn".
4681 (real_insn_for_shadow): Likewise for return type and param "insn".
4682 (update_insn_after_change): Likewise for param "insn".
4683 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4685 (insn_cost): Likewise for param "insn".
4686 (increase_insn_priority): Likewise.
4687 (calculate_reg_deaths): Likewise.
4688 (setup_insn_reg_pressure_info): Likewise.
4689 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4690 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4691 (model_recompute): Likewise.
4692 (must_restore_pattern_p): Likewise for param "next".
4693 (model_excess_cost): Likewise for param "insn".
4694 (queue_remove): Likewise.
4695 (adjust_priority): Likewise for param "prev".
4696 (update_register_pressure): Likewise for param "insn".
4697 (setup_insn_max_reg_pressure): Likewise for local "insn".
4698 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4699 (model_add_to_schedule): Likewise.
4700 (model_reset_queue_indices): Likewise for local "insn".
4701 (unschedule_insns_until): Strengthen local "recompute_vec" from
4702 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4703 "con" from rtx to rtx_insn *.
4704 (restore_last_backtrack_point): Likewise for both locals "x". Add
4706 (estimate_insn_tick): Likewise for param "insn".
4707 (commit_schedule): Likewise for params "prev_head", "tail" and
4709 (verify_shadows): Likewise for locals "i1", "i2".
4710 (dump_insn_stream): Likewise for params "head", "tail" and locals
4711 "next_tail", "insn".
4712 (schedule_block): Likewise for locals "insn", "x". Add a checked
4714 (fix_inter_tick): Likewise for params "head", "tail".
4715 (create_check_block_twin): Likewise for local "jump".
4716 (haifa_change_pattern): Likewise for param "insn".
4717 (haifa_speculate_insn): Likewise.
4718 (dump_new_block_header): Likewise for params "head", "tail".
4719 (fix_jump_move): Likewise for param "jump".
4720 (move_block_after_check): Likewise.
4721 (sched_init_insn_luid): Likewise for param "insn".
4722 (sched_init_luids): Likewise for local "insn".
4723 (insn_luid): Likewise for param "insn".
4724 (init_h_i_d): Likewise.
4725 (haifa_init_h_i_d): Likewise for local "insn".
4726 (haifa_init_insn): Likewise for param "insn".
4727 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4729 (create_insn_reg_use): Likewise for param "insn".
4730 (setup_insn_reg_uses): Likewise. Add a checked cast.
4731 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4732 "tail" from rtx to rtx_insn *.
4733 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4734 "insn", "next_tail".
4736 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4738 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4739 from rtx to rtx_insn *.
4740 (model_add_to_schedule): Likewise for locals "start", "end",
4743 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4745 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4747 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4748 "to" and locals "insn", "next", "copy". Remove now-redundant
4751 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4753 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4754 rtx_insn * and param 4 from rtx * to rtx_insn **.
4755 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4756 param 2 from rtx * to rtx_insn **.
4758 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4759 rtx_insn * and final param from rtx * to rtx_insn **.
4761 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4762 from rtx to rtx_insn *.
4763 (try_head_merge_bb): Likewise for both locals named "move_upto".
4764 * df-problems.c (can_move_insns_across): Likewise for params
4765 "from", "to", "across_from", "across_to" and locals "insn",
4766 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4768 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4769 from rtx to rtx_insn *.
4770 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4771 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4772 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4774 (noce_try_abs): Likewise.
4775 (noce_get_condition): Likewise for param "jump". Strengthen param
4776 "earliest" from rtx * to rtx_insn **.
4777 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4779 (find_cond_trap): Likewise.
4780 (dead_or_predicable): Likewise for local "earliest".
4781 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
4783 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4784 and local "prev". Strengthen param "earliest" from rtx * to
4786 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4787 Strengthen param "earliest" from rtx * to rtx_insn **.
4789 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4791 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4792 "to" and local "insn" from rtx to rtx_insn *.
4794 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4796 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4797 from rtx to rtx_insn *.
4798 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4799 (code_motion_path_driver): Likewise for local "last_insn".
4800 (simplify_changed_insns): Likewise for local "insn".
4802 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4804 * rtl.h (push_to_sequence): Strengthen param from rtx to
4806 (push_to_sequence2): Likewise for both params.
4807 (delete_insns_since): Likewise for param.
4808 (reorder_insns_nobb): Likewise for all three params.
4809 (set_new_first_and_last_insn): Likewise for both params.
4811 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4812 rtx_insn *. Remove now-redundant cast.
4813 (set_last_insn): Likewise.
4815 * builtins.c (expand_builtin_return): Strengthen local
4816 "call_fusage" from rtx to rtx_insn *.
4817 * cfgrtl.c (create_basic_block_structure): Likewise for local
4819 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4820 "first", "last" and local "insn".
4821 (delete_insns_since): Likewise for param "from".
4822 (reorder_insns_nobb): Likewise for params "from", "to", "after"
4824 (push_to_sequence): Likewise for param "first" and local "last".
4825 (push_to_sequence2): Likewise for params "first" and "last".
4826 * lra.c (emit_add3_insn): Likewise for local "last".
4827 (lra_emit_add): Likewise.
4828 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4830 (process_address_1): Likewise for locals "insn", last".
4831 * modulo-sched.c (ps_first_note): Likewise for return type.
4832 * optabs.c (expand_binop_directly): Likewise for param "last".
4834 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4836 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4838 * emit-rtl.c (get_last_insn_anywhere): Likewise.
4840 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4842 * function.h (struct sequence_stack): Strengthen fields "first"
4843 and "last" from rtx to rtx_insn *.
4844 (struct emit_status): Likewise for fields "x_first_insn" and
4847 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4848 (set_first_insn): Add checked cast.
4849 (get_last_insn): Remove now-redundant checked cast.
4850 (set_last_insn): Add checked cast.
4852 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4853 "saved_first" and "saved_last" from rtx to rtx_insn *.
4855 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4857 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4858 (unlink_insn_chain): Strengthen both params from rtx to
4861 * cfgrtl.c (cfg_layout_function_header): Likewise for this
4863 (unlink_insn_chain): Likewise for params "first" and "last".
4864 Remove now-redundant checked cast.
4865 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4866 (fixup_reorder_chain): Strengthen local "insn" from rtx to
4868 * emit-rtl.c (link_insn_into_chain): Likewise for all three
4870 (add_insn): Likewise for param "insn" and local "prev".
4871 (add_insn_after_nobb): Likewise for both params and local "next".
4872 (add_insn_before_nobb): Likewise for both params and local "prev".
4873 (add_insn_after): Rename param "after" to "uncast_after",
4874 introducing local "after" with another checked cast.
4875 (add_insn_before): Rename params "insn" and "before", giving them
4876 "uncast_" prefixes, adding the old names back using checked casts.
4877 (emit_note_after): Likewise for param "after".
4878 (emit_note_before): Likewise for param "before".
4879 (emit_label): Add a checked cast.
4881 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4883 * cselib.h (cselib_record_sets_hook): Strengthen initial param
4884 "insn" from rtx to rtx_insn *.
4886 * cselib.c (cselib_record_sets_hook): Likewise.
4888 * var-tracking.c (add_with_sets): Likewise, renaming back from
4889 "uncast_insn" to "insn" and eliminating the checked cast from rtx
4892 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4894 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4895 and "header_" from rtx to rtx_insn *.
4896 (struct basic_block_d): Likewise for field "head_" within "x"
4897 field of union basic_block_il_dependent.
4898 (BB_HEAD): Drop function...
4899 (SET_BB_HEAD): ...and this function in favor of...
4900 (BB_HEAD): ...reinstate macro.
4901 (BB_END): Drop function...
4902 (SET_BB_END): ...and this function in favor of...
4903 (BB_END): ...reinstate macro.
4904 (BB_HEADER): Drop function...
4905 (SET_BB_HEADER): ...and this function in favor of...
4906 (BB_HEADER): ...reinstate macro.
4908 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4909 (fix_crossing_unconditional_branches): Likewise.
4910 * caller-save.c (save_call_clobbered_regs): Likewise.
4911 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4912 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4913 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4914 (merge_blocks_move_successor_nojumps): Likewise.
4915 (outgoing_edges_match): Update use of for_each_rtx to
4916 for_each_rtx_in_insn.
4917 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4918 (expand_gimple_cond): Likewise.
4919 (expand_gimple_tailcall): Likewise.
4920 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4922 (construct_exit_block): Drop use of SET_BB_END.
4923 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4925 (delete_insn): Rename param "insn" to "uncast_insn", introducing
4926 a new local "insn" with a checked cast to rtx_insn *. Drop use of
4927 SET_BB_HEAD and SET_BB_END.
4928 (create_basic_block_structure): Drop use of SET_BB_HEAD and
4930 (rtl_delete_block): Drop use of SET_BB_HEAD.
4931 (rtl_split_block): Drop use of SET_BB_END.
4932 (emit_nop_for_unique_locus_between): Likewise.
4933 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4934 (block_label): Drop use of SET_BB_HEAD.
4935 (fixup_abnormal_edges): Drop use of SET_BB_END.
4936 (record_effective_endpoints): Drop use of SET_BB_HEADER.
4937 (relink_block_chain): Likewise.
4938 (fixup_reorder_chain): Drop use of SET_BB_END.
4939 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4940 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4941 rtx_insn **. Drop use of SET_BB_HEADER.
4942 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4944 (BB_HEAD): Delete this function.
4945 (SET_BB_HEAD): Likewise.
4947 (SET_BB_END): Likewise.
4948 (BB_HEADER): Likewise.
4949 (SET_BB_HEADER): Likewise.
4950 * emit-rtl.c (add_insn_after): Rename param "insn" to
4951 "uncast_insn", adding a new local "insn" and a checked cast to
4952 rtx_insn *. Drop use of SET_BB_END.
4953 (remove_insn): Strengthen locals "next" and "prev" from rtx to
4954 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
4955 (reorder_insns): Drop use of SET_BB_END.
4956 (emit_insn_after_1): Strengthen param "first" and locals "last",
4957 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
4958 (emit_pattern_after_noloc): Add checked cast.
4959 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4960 (restore_other_notes): Likewise.
4961 (move_insn): Likewise.
4962 (sched_extend_bb): Likewise.
4963 (fix_jump_move): Likewise.
4964 * ifcvt.c (noce_process_if_block): Likewise.
4965 (dead_or_predicable): Likewise.
4966 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4967 * reg-stack.c (change_stack): Drop use of SET_BB_END.
4968 * sel-sched-ir.c (sel_move_insn): Likewise.
4969 * sel-sched.c (move_nop_to_previous_block): Likewise.
4971 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4973 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4975 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4977 * basic-block.h (create_basic_block_structure): Strengthen params
4978 1 "head" and 2 "end" from rtx to rtx_insn *.
4979 * cfgrtl.c (create_basic_block_structure): Likewise.
4980 (rtl_create_basic_block): Update casts from void * to rtx to
4981 rtx_insn *, so that we can pass them as rtx_insn * to
4982 create_basic_block_structure.
4983 * sel-sched-ir.c (sel_create_basic_block): Likewise.
4985 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4987 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4989 (check_for_inc_dec): Strengthen param "insn" from rtx to
4992 * cselib.h (cselib_process_insn): Likewise.
4994 * cselib.c (cselib_record_sets): Likewise.
4995 (cselib_process_insn): Likewise.
4997 * dse.c (struct insn_info): Likewise for field "insn".
4998 (check_for_inc_dec_1): Likewise for local "insn".
4999 (check_for_inc_dec): Likewise for param "insn".
5000 (scan_insn): Likewise.
5001 (dse_step1): Likewise for local "insn".
5003 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5004 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5006 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5008 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5009 from rtx to rtx_insn *.
5010 (DEP_PRO): Delete this function and...
5011 (SET_DEP_PRO): ...this function in favor of...
5012 (DEP_PRO): ...reinstate this macro.
5013 (DEP_CON): Delete this function and...
5014 (SET_DEP_CON): ...this function in favor of...
5015 (DEP_CON): ...reinstate this old macro.
5016 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5017 (init_dep): Likewise.
5018 (set_priorities): Likewise for both params.
5019 (sd_copy_back_deps): Likewise for params 1 and 2.
5021 * haifa-sched.c (priority): Likewise for param "insn" and local
5023 (set_priorities): Likewise for params "head" and "tail" and local
5025 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5027 (add_to_speculative_block): Add a checked cast.
5028 (create_check_block_twin): Drop use of SET_DEP_CON.
5029 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5032 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5033 Drop use of SET_DEP_PRO
5034 (init_dep): Strengthen params "pro" and "con" from rtx to
5036 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5040 (SET_DEP_PRO): Delete.
5041 (SET_DEP_CON): Delete.
5043 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5045 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5046 from rtx to rtx_insn *.
5047 (VINSN_INSN_RTX): Eliminate rvalue function and...
5048 (SET_VINSN_INSN): ...lvalue function in favor of...
5049 (VINSN_INSN_RTX): reinstate this old macro.
5051 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5052 in favor of VINSN_INSN_RTX.
5053 (VINSN_INSN_RTX): Delete this function.
5054 (SET_VINSN_INSN_RTX): Likewise.
5056 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5058 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5059 (BND_TO): Delete this function and...
5060 (SET_BND_TO): ...this functions in favor of...
5061 (BND_TO): ...reinstating this macro.
5062 (struct _fence): Strengthen field "executing_insns" from
5063 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5064 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5065 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5066 and param "insn" from rtx to insn_t.
5067 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5070 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5072 (rtx_vec_t): Likewise.
5073 (struct sched_deps_info_def): Strengthen param of "start_insn"
5074 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5075 "note_mem_dep" callback and first param of "note_dep" callback.
5077 * haifa-sched.c (add_to_speculative_block): Strengthen param
5078 "insn" from rtx to rtx_insn *.
5079 (clear_priorities): Likewise.
5080 (calc_priorities): Likewise for local "insn".
5082 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5083 Remove redundant checked cast.
5084 (haifa_note_mem_dep): Likewise for param "pending_insn".
5085 (haifa_note_dep): Likewise for param "elem".
5086 (note_mem_dep): Likewise for param "e".
5087 (sched_analyze_1): Add checked casts.
5088 (sched_analyze_2): Likewise.
5090 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5091 from rtx to rtx_insn *.
5092 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5093 from vec<rtx> * to vec<rtx_insn *> *.
5095 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5097 (flist_add): Strengthen param "executing_insns" from
5098 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5099 (advance_deps_context): Remove now-redundant checked cast.
5100 (init_fences): Replace uses of NULL_RTX with NULL.
5101 (merge_fences): Strengthen params "last_scheduled_insn" and
5102 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5103 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5104 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5105 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5106 an instruction, rather than doing double-duty as a pattern.
5107 (return_nop_to_pool): Update for change of insn_t.
5108 (deps_init_id): Remove now-redundant checked cast.
5109 (struct sched_scan_info_def): Strengthen param of "init_insn"
5110 callback from rtx to insn_t.
5111 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5112 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5114 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5115 "end" from rtx to rtx_insn *.
5116 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5117 (rtx insn_rtx, bool force_unique_p)
5118 (BND_TO): Delete function.
5119 (SET_BND_TO): Delete function.
5121 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5123 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5124 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5126 (undo_transformations): Likewise for param "insn".
5127 (update_liveness_on_insn): Likewise.
5128 (compute_live_below_insn): Likewise for param "insn" and local
5130 (update_data_sets): Likewise for param "insn".
5131 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5132 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5133 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5135 (move_cond_jump): Likewise for param "insn".
5136 (move_cond_jump): Drop use of SET_BND_TO.
5137 (compute_av_set_on_boundaries): Likewise.
5138 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5139 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5140 from rtx to rtx_insn *.
5141 (maybe_emit_renaming_copy): Likewise for param "insn".
5142 (maybe_emit_speculative_check): Likewise.
5143 (handle_emitting_transformations): Likewise.
5144 (remove_insn_from_stream): Likewise.
5145 (code_motion_process_successors): Strengthen local "succ" from rtx
5148 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5150 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5151 ilist_t, not _xlist_t;
5152 (ILIST_INSN): Define in terms of new union field "insn".
5153 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5155 (struct _list_node): Add new field "insn" to the union, of type
5157 (ilist_add): Replace macro with an inline function, requiring an
5159 (ilist_remove): Define this macro directly in terms of
5160 _list_remove, rather than indirectly via _xlist_remove.
5161 (ilist_clear): Likewise, in terms of _list_clear rather than
5163 (ilist_is_in_p): Replace macro with an inline function, requiring
5165 (_list_iter_cond_insn): New function.
5166 (ilist_iter_remove): Define this macro directly in terms of
5167 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5168 (ilist_iterator): Define directly in terms of _list_iterator
5169 rather than indirectly through _xlist_iterator.
5170 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5171 than in terms of _FOR_EACH_X.
5172 (FOR_EACH_INSN_1): Likewise.
5174 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5178 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5179 DECL_HARD_REGISTER and return for invalid register specifications.
5180 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5181 DECL_HARD_REGISTER, call expand_one_error_var.
5182 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5183 CC_REGNUM with non-MODE_CC modes.
5184 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5186 2014-08-26 Marek Polacek <polacek@redhat.com>
5189 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5191 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5193 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5194 qi cost; add di cost.
5195 (cortexa57_addrcost_table): Likewise.
5197 2014-08-26 Marek Polacek <polacek@redhat.com>
5200 * expr.c (is_aligning_offset): Remove logical not.
5202 2014-08-26 Marek Polacek <polacek@redhat.com>
5205 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5206 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5208 2014-08-26 Richard Biener <rguenther@suse.de>
5210 PR tree-optimization/62175
5211 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5212 expand possibly trapping operations.
5214 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5216 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5217 "insn" from rtx to rtx_insn *.
5218 (permute_load): Likewise for param "insn".
5219 (permute_store): Likewise.
5220 (handle_special_swappables): Likewise for local "insn".
5221 (replace_swap_with_copy): Likewise for locals "insn" and
5223 (rs6000_analyze_swaps): Likewise for local "insn".
5225 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5227 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5230 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5232 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5233 "note_list" from rtx to rtx_insn *.
5234 (BB_NOTE_LIST): Replace this function and...
5235 (SET_BB_NOTE_LIST): ...this function with...
5236 (BB_NOTE_LIST): ...the former macro implementation.
5238 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5239 local "from_start" from rtx to rtx_insn *. Strengthen param
5240 "to_endp" from rtx * to rtx_insn **.
5242 * haifa-sched.c (concat_note_lists): Likewise.
5243 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5245 (sel_restore_notes): Likewise.
5246 (move_bb_info): Likewise.
5247 (BB_NOTE_LIST): Delete this function.
5248 (SET_BB_NOTE_LIST): Delete this function.
5249 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5250 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5252 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5254 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5255 from rtx * to rtx_insn **.
5256 (reorder2): Likewise.
5257 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5258 from rtx to rtx_insn *.
5260 * doc/tm.texi: Update mechanically for above change to target.def.
5262 * sched-int.h (note_list): Strengthen this variable from rtx to
5264 (remove_notes): Likewise for both params.
5265 (restore_other_notes): Likewise for return type and first param.
5266 (struct ready_list): Strengthen field "vec" from rtx * to
5268 (struct dep_replacement): Strenghten field "insn" from rtx to
5270 (struct deps_desc): Likewise for fields "last_debug_insn",
5272 (struct haifa_sched_info): Likewise for callback field
5273 "can_schedule_ready_p"'s param, for first param of "new_ready"
5274 callback field, for both params of "rank" callback field, for
5275 first field of "print_insn" callback field (with a const), for
5276 both params of "contributes_to_priority" callback, for param
5277 of "insn_finishes_block_p" callback, for fields "prev_head",
5278 "next_tail", "head", "tail", for first param of "add_remove_insn"
5279 callback, for first param of "begin_schedule_ready" callback, for
5280 both params of "begin_move_insn" callback, and for second param
5281 of "advance_target_bb" callback.
5282 (add_dependence): Likewise for params 1 and 2.
5283 (sched_analyze): Likewise for params 2 and 3.
5284 (deps_analyze_insn): Likewise for param 2.
5285 (ready_element): Likewise for return type.
5286 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5287 (try_ready): Strenghten param from rtx to rtx_insn *.
5288 (sched_emit_insn): Likewise for return type.
5289 (record_delay_slot_pair): Likewise for params 1 and 2.
5290 (add_delay_dependencies): Likewise for param.
5291 (contributes_to_priority): Likewise for both params.
5292 (find_modifiable_mems): Likewise.
5294 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5295 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5296 "first_older_only_insn" from rtx to rtx_insn *.
5297 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5300 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5301 "last_scheduled_iter0" from rtx to rtx_insn *.
5302 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5303 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5304 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5305 "insn" from rtx to rtx_insn *.
5306 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5308 (c6x_sched_reorder2): Strengthen param "ready" and locals
5309 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5310 "insn" from rtx to rtx_insn *.
5311 (c6x_variable_issue): Add a checked cast when assigning from insn
5312 to ss.last_scheduled_iter0.
5313 (split_delayed_branch): Strengthen param "insn" and local "i1"
5314 from rtx to rtx_insn *.
5315 (split_delayed_nonbranch): Likewise.
5316 (undo_split_delayed_nonbranch): Likewise for local "insn".
5317 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5318 "entry_after", "end_packet", "head_insn", "tail_insn",
5319 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5320 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5321 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5322 but add a checked cast on loop->start_label. Consolidate calls to
5323 avoid assigning result of gen_spkernel to "insn", now an
5326 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5327 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5329 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5330 rtx_insn **. Strengthen locals "top", "next" from rtx to
5332 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5333 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5334 (add_parameter_dependencies): Strengthen params "call", "head" and
5335 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5336 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5337 (add_dependee_for_func_arg): Likewise for param "arg" and local
5339 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5340 "tail" and locals "insn", "first_arg".
5342 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5343 for params "head", "tail" and locals "insn", "next", "next_tail".
5344 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5345 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5346 "insn", "lowest", "highest" from rtx to rtx_insn *.
5347 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5349 (ia64_sched_reorder2): Likewise.
5351 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5352 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5353 from rtx * to rtx_insn **.
5354 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5356 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5358 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5359 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5362 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5363 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5365 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5366 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5367 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5369 (vr4130_reorder): Likewise.
5370 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5372 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5374 (mips_sched_reorder): Likewise.
5375 (mips_sched_reorder2): Likewise.
5377 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5379 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5380 Strengthen local "tmp" from rtx to rtx_insn *.
5381 (rs6000_sched_reorder2): Likewise.
5383 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5384 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5385 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5386 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5388 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5389 "tmp2" from rtx to rtx_insn *.
5390 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5391 Strengthen local "insn" from rtx to rtx_insn *.
5392 (ready_reorder): Strengthen param "ready" from rtx * to
5393 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5394 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5395 (sh_reorder2): Likewise.
5397 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5398 local "insn" from rtx to rtx_insn *.
5400 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5402 (scheduled_insns): Strengthen this variable from vec<rtx> to
5404 (set_modulo_params): Likewise for locals "i1", "i2".
5405 (record_delay_slot_pair): Likewise for params "i1", "i2".
5406 (add_delay_dependencies): Likewise for param "insn".
5407 (cond_clobbered_p): Likewise.
5408 (recompute_todo_spec): Likewise for local "prev".
5409 (last_scheduled_insn): Likewise for this variable.
5410 (nonscheduled_insns_begin): Likewise.
5411 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5413 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5415 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5416 Strengthen local "insn" from rtx to rtx_insn *.
5417 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5418 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5419 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5420 (ready_remove_first): Likewise for return type and local "t".
5421 (ready_element): Likewise for return type.
5422 (ready_remove): Likewise for return type and local "t".
5423 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5424 (check_clobbered_conditions): Strengthen local "x" from rtx to
5425 rtx_insn *, adding a checked cast.
5426 (schedule_insn): Likewise for param "insn".
5427 (remove_notes): Likewise for params "head", "tail" and locals
5428 "next_tail", "insn", "next".
5429 (struct haifa_saved_data): Likewise for fields
5430 "last_scheduled_insn", "nonscheduled_insns_begin".
5431 (save_backtrack_point): Update for change to field "vec" of
5433 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5435 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5436 from rtx to rtx_insn *
5437 (resolve_dependencies): Strengthen param "insn" from rtx to
5439 (restore_other_notes): Likewise for return type, for param "head"
5440 and local "note_head".
5441 (undo_all_replacements): Likewise for local "insn".
5442 (first_nonscheduled_insn): Likewise for return type and local "insn".
5443 (queue_to_ready): Likewise for local "insn", adding checked casts.
5444 (early_queue_to_ready): Likewise for local "insn".
5445 (debug_ready_list_1): Strengthen local "p" from rtx * to
5447 (move_insn): Strengthen param "insn" and local "note" from rtx to
5449 (insn_finishes_cycle_p): Likewise for param "insn".
5450 (max_issue): Likewise for local "insn".
5451 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5453 (commit_schedule): Strengthen param "prev_head" and local "insn"
5454 from rtx to rtx_insn *
5455 (prune_ready_list): Likewise for local "insn".
5456 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5457 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5458 (set_priorities): Likewise for local "prev_head".
5459 (try_ready): Likewise for param "next".
5460 (fix_tick_ready): Likewise.
5461 (change_queue_index): Likewise.
5462 (sched_extend_ready_list): Update for change to field "vec" of
5464 (generate_recovery_code): Strengthen param "insn" from rtx to
5466 (begin_speculative_block): Likewise.
5467 (create_check_block_twin): Likewise for param "insn" and locals
5468 "label", "check", "twin". Introduce local "check_pat" to avoid
5469 "check" being used as a plain rtx before being used as an insn.
5470 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5471 extracting elements from ready_list.
5472 (sched_remove_insn): Strengthen param "insn" from rtx to
5474 (sched_emit_insn): Likewise for return type.
5475 (ready_remove_first_dispatch): Likewise for return type and local
5478 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5480 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5483 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5484 from rtx to rtx_insn *.
5485 (add_dependence_list): Likewise for param "insn". Add a checked
5487 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5488 to rtx_insn *. Strengthen param "list_p" from rtx * to
5490 (chain_to_prev_insn): Strengthen param "insn" and locals
5491 "prec_nonnote", "i" from rtx to rtx_insn *.
5492 (flush_pending_lists): Likewise for param "insn".
5493 (cur_insn): Likewise for this variable.
5494 (haifa_start_insn): Add a checked cast.
5495 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5496 (sched_analyze_reg): Likewise for param "insn".
5497 (sched_analyze_1): Likewise.
5498 (sched_analyze_2): Likewise. Add checked casts.
5499 (sched_analyze_insn): Likewise. Also for local "prev".
5500 (deps_analyze_insn): Likewise for param "insn".
5501 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5502 (add_dependence_1): Likewise for params "insn", "elem".
5503 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5504 (parse_add_or_inc): Likewise for param "insn".
5505 (find_inc): Likewise for local "inc_cand".
5506 (find_modifiable_mems): Likewise for params "head", "tail" and
5507 locals "insn", "next_tail".
5509 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5510 (begin_schedule_ready): Likewise for param "insn".
5511 (begin_move_insn): Likewise for params "insn" and "last".
5512 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5514 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5515 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5516 (ebb_add_remove_insn): Likewise for param "insn".
5517 (advance_target_bb): Likewise.
5519 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5521 (check_live): Likewise for param "insn".
5522 (init_ready_list): Likewise for local "insn".
5523 (can_schedule_ready_p): Likewise for param "insn".
5524 (begin_schedule_ready): Likewise.
5525 (new_ready): Likewise for param "next".
5526 (rgn_print_insn): Likewise for param "insn".
5527 (rgn_rank): Likewise for params "insn1", "insn2".
5528 (contributes_to_priority): Likewise for params "next", "insn".
5529 (rgn_insn_finishes_block_p): Likewise for param "insn".
5530 (add_branch_dependences): Likewise for params "head", "tail" and
5531 locals "insn", "last".
5532 (rgn_add_remove_insn): Likewise for param "insn".
5533 (advance_target_bb): Likewise.
5535 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5536 const_rtx to const rtx_insn *.
5538 * sel-sched-dump.h (sel_print_insn): Likewise.
5540 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5541 (deps_init_id): Likewise.
5543 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5544 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5547 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5549 * output.h (final_start_function): Strengthen param 1 from rtx to
5552 * final.c (final_start_function): Likewise, renaming back from
5553 "uncast_first" to "first", and dropping the checked cast from rtx
5556 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5558 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5559 * final.c (final): Likewise. Rename param back from
5560 "uncast_first" to "first" and eliminate the checked cast from rtx
5563 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5565 * output.h (shorten_branches): Strengthen param from rtx to
5568 * final.c (shorten_branches): Likewise, renaming param back from
5569 "uncast_first" to "first", and dropping the checked cast from rtx
5572 * genattr.c (gen_attr): Likewise when writing out the prototype of
5575 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5577 * sched-int.h (struct haifa_sched_info): Strengthen fields
5578 "prev_head" and "next_tail" from rtx to rtx_insn *.
5580 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5582 * rtl.h (rtx_jump_table_data::get_labels): New method.
5583 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5584 with use of the new rtx_jump_table_data::get_labels method.
5585 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5586 to rtx_jump_table_data *. Simplify by using get_labels method.
5587 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5588 a dyn_cast, introducing local "table", using it to replace
5589 label-lookup logic with a get_labels method call.
5590 (patch_jump_insn): Simplify using get_labels method.
5591 * dwarf2cfi.c (create_trace_edges): Likewise.
5592 * rtlanal.c (label_is_jump_target_p): Likewise.
5594 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5596 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5599 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5600 (unshare_all_rtl_again): Likewise, also for local "p".
5602 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5604 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5606 * cfgrtl.c (delete_insn_and_edges): Likewise.
5608 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5610 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5611 from rtx to rtx_insn *.
5613 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5615 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5617 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5618 locals "returnjump", "epilogue_end", "insn", "next".
5620 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5621 "returnjump" from rtx * to rtx_insn **.
5622 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5624 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5626 * basic-block.h (struct edge_def). Strengthen "r" within
5627 union edge_def_insns from rtx to rtx_insn *.
5629 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5630 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5632 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5633 from rtx to rtx_insn *.
5634 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5636 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5637 (reg_used_on_edge): Likewise.
5638 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5639 (gt_pch_nx): New overload for rtx_insn *&.
5640 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5641 from rtx to rtx_insn *.
5643 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5645 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5646 from rtx to rtx_insn *.
5647 (BB_FOOTER): Replace function with access macro.
5648 (SET_BB_FOOTER): Delete.
5650 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5652 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5653 (emit_barrier_after_bb): Likewise.
5654 (record_effective_endpoints): Likewise.
5655 (relink_block_chain): Likewise.
5656 (fixup_fallthru_exit_predecessor): Likewise.
5657 (cfg_layout_duplicate_bb): Likewise.
5658 (cfg_layout_split_block): Likewise.
5659 (cfg_layout_delete_block): Likewise.
5660 (cfg_layout_merge_blocks): Likewise.
5661 (BB_FOOTER): Delete function.
5662 (SET_BB_FOOTER): Delete function.
5663 * combine.c (update_cfg_for_uncondjump): Replace uses of
5664 SET_BB_FOOTER with BB_FOOTER.
5666 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5668 * except.h (struct eh_landing_pad_d): Strengthen field
5669 "landing_pad" from rtx to rtx_code_label *.
5671 * except.c (sjlj_emit_dispatch_table): Likewise for param
5673 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5675 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5677 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5678 first param from rtx to rtx_insn *.
5679 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5680 field "set_frame_ptr_insn".
5681 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5682 "csend" from rtx to rtx_code_label *.
5683 (xtensa_expand_atomic): Likewise for local "csloop".
5684 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5686 (xtensa_call_tls_desc): Likewise for return type and locals
5687 "call_insn", "insns".
5688 (xtensa_legitimize_tls_address): Likewise for local "insns".
5689 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5691 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5693 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5694 first param from rtx to rtx_insn *.
5695 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5698 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5700 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5701 Strengthen param 1 from rtx to rtx_insn *.
5702 (tilepro_output_cbranch): Likewise.
5703 (tilepro_adjust_insn_length): Likewise.
5704 (tilepro_final_prescan_insn): Likewise for sole param.
5706 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5707 Likewise for local "last".
5708 (cbranch_predicted_p): Likewise for param "insn".
5709 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5710 (tilepro_output_cbranch_with_opcode): Likewise.
5711 (tilepro_output_cbranch): Likewise.
5712 (frame_emit_load): Likewise for return type and locals "seq",
5714 (emit_sp_adjust): Likewise for return type and local "insn".
5715 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5717 (tilepro_adjust_insn_length): Likewise for param "insn".
5718 (next_insn_to_bundle): Likewise for return type and params
5720 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5721 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5723 (match_addli_pcrel): Likewise for param "insn".
5724 (replace_addli_pcrel): Likewise.
5725 (match_auli_pcrel): Likewise.
5726 (replace_auli_pcrel): Likewise.
5727 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5729 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5730 "queue", "next_queue", "prev".
5731 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5732 (tilepro_final_prescan_insn): Likewise for param "insn".
5734 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5736 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5737 Strengthen param 1 from rtx to rtx_insn *.
5738 (tilegx_output_cbranch): Likewise.
5739 (tilegx_adjust_insn_length): Likewise.
5740 (tilegx_final_prescan_insn): Likewise for sole param.
5742 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5744 (cbranch_predicted_p): Likewise for param "insn".
5745 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5746 (tilegx_output_cbranch_with_opcode): Likewise.
5747 (tilegx_output_cbranch): Likewise.
5748 (frame_emit_load): Likewise for return type.
5749 (set_frame_related_p): Likewise for locals "seq", "insn".
5750 (emit_sp_adjust): Likewise for return type, and for local "insn".
5751 Introduce local "pat" for use in place of "insn" where the latter
5752 isn't an instruction.
5753 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5754 from rtx to rtx_insn *.
5755 (tilegx_adjust_insn_length): Likewise for param "insn".
5756 (next_insn_to_bundle): Likewise for return type and params "r" and
5758 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5760 (replace_insns): Likewise for params "old_insn", "new_insns".
5761 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5763 (replace_mov_pcrel_step2): Likewise.
5764 (replace_mov_pcrel_step3): Likewise.
5765 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5767 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5768 "queue", "next_queue", "prev".
5769 (tilegx_output_mi_thunk): Likewise for local "insn".
5770 (tilegx_final_prescan_insn): Likewise for param "insn".
5772 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5774 * config/spu/spu.c (frame_emit_store): Strengthen return type from
5776 (frame_emit_load): Likewise.
5777 (frame_emit_add_imm): Likewise, also for local "insn".
5778 (spu_expand_prologue): Likewise for local "insn".
5779 (struct spu_bb_info): Likewise for field "prop_jump".
5780 (emit_nop_for_insn): Likewise for param "insn" and local
5782 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5784 (spu_emit_branch_hint): Likewise for params "before", "branch" and
5785 locals "hint", "insn".
5786 (get_branch_target): Likewise for param "branch".
5787 (insn_clobbers_hbr): Likewise for param "insn".
5788 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5789 locals "insn", "before_4", "before_16".
5790 (insert_hbrp): Likewise for local "insn".
5791 (spu_machine_dependent_reorg): Likewise for locals "branch",
5792 "insn", "next", "bbend".
5793 (uses_ls_unit): Likewise for param "insn".
5794 (get_pipe): Likewise.
5795 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5796 introducing a checked cast.
5797 (spu_sched_adjust_cost): Likewise for params "insn" and
5799 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5800 (spu_sms_res_mii): Likewise.
5802 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5804 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5805 from rtx to rtx_insn *.
5806 (output_cbranch): Likewise for param 6.
5807 (output_return): Likewise for param 1.
5808 (output_sibcall): Likewise.
5809 (output_v8plus_shift): Likewise.
5810 (output_v8plus_mult): Likewise.
5811 (output_v9branch): Likewise for param 7.
5812 (output_cbcond): Likewise for param 3.
5814 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5816 (sparc_legitimize_pic_address): Likewise.
5817 (sparc_emit_call_insn): Likewise.
5818 (emit_save_or_restore_regs): Likewise.
5819 (emit_window_save): Likewise for return type and local "insn".
5820 (sparc_expand_prologue): Likewise for local "insn".
5821 (sparc_flat_expand_prologue): Likewise.
5822 (output_return): Likewise for param "insn".
5823 (output_sibcall): Likewise for param "insn" and local "delay".
5824 (output_ubranch): Likewise for param "insn".
5825 (output_cbranch): Likewise.
5826 (output_cbcond): Likewise.
5827 (output_v9branch): Likewise.
5828 (output_v8plus_shift): Likewise.
5829 (sparc_output_mi_thunk): Likewise for local "insn".
5830 (get_some_local_dynamic_name): Likewise.
5831 (output_v8plus_mult): Likewise for param "insn".
5833 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5835 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5836 from rtx to rtx_insn *.
5837 (output_branchy_insn): Likewise for param 3.
5838 (output_far_jump): Likewise for param 1.
5839 (final_prescan_insn): Likewise.
5840 (sh_insn_length_adjustment): Likewise for sole param.
5842 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5843 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5845 (sh_emit_compare_and_set): Likewise for local "lab".
5846 (output_far_jump): Strengthen param "insn" and local "prev" from
5848 (output_branchy_insn): Likewise for param "insn" and local
5850 (output_ieee_ccmpeq): Likewise for param "insn".
5851 (struct label_ref_list_d): Strengthen field "label" from rtx to
5853 (pool_node): Likewise.
5854 (pool_window_label): Likewise for this global.
5855 (add_constant): Likewise for return type and locals "lab", "new_rtx".
5856 (dump_table): Strengthen params "start", "barrier" and local
5857 "scan" from rtx to rtx_insn *.
5858 (broken_move): Likewise for param "insn".
5859 (untangle_mova): Likewise for params "first_mova" and "new_mova".
5860 Strengthen param "first_mova" from rtx * to rtx_insn **.
5861 (mova_p): Likewise for param "insn".
5862 (fixup_mova): Likewise for param "mova".
5863 (find_barrier): Likewise for return type, params "mova" and
5864 "from", and locals "barrier_before_mova", "found_barrier",
5865 "good_barrier", "orig", "last_symoff", "next". Strengthen local
5866 "label" from rtx to rtx_code_label *.
5867 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5869 (sh_reorg): Likewise for locals "link", "scan", "barrier".
5870 (split_branches): Likewise for param "first" and local "insn".
5871 (final_prescan_insn): Likewise for param "insn".
5872 (sequence_insn_p): Likewise for locals "prev", "next".
5873 (sh_insn_length_adjustment): Likewise for param "insn".
5874 (sh_can_redirect_branch): Likewise for local "insn".
5875 (find_r0_life_regions): Likewise for locals "end", "insn".
5876 (sh_output_mi_thunk): Likewise for local "insns".
5878 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5880 * config/score/score.c (score_output_mi_thunk): Strengthen local
5881 "insn" from rtx to rtx_insn *.
5882 (score_prologue): Likewise.
5884 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5886 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5887 1 from rtx to rtx_insn *.
5888 (s390_emit_jump): Likewise for return type.
5889 (s390_emit_call): Likewise.
5890 (s390_load_got): Likewise.
5892 * config/s390/s390.c (last_scheduled_insn): Likewise for this
5894 (s390_match_ccmode): Likewise for param "insn".
5895 (s390_emit_jump): Likewise for return type.
5896 (s390_split_branches): Likewise for local "label".
5897 (struct constant): Strengthen field "label" from rtx to
5899 (struct constant_pool): Likewise for field "label". Strengthen
5900 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5902 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5904 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5905 (s390_end_pool): Likewise.
5906 (s390_dump_pool): Likewise for local "insn".
5907 (s390_mainpool_start): Likewise.
5908 (s390_chunkify_start): Likewise.
5909 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5910 with insns. Strengthen locals "label", "jump", "barrier", "next",
5911 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5912 (s390_chunkify_finish): Strengthen local "insn" from rtx to
5914 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5915 "jump", "label", "next_insn".
5916 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5917 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5919 (s390_load_got): Likewise for return type and local "insns".
5920 (s390_save_gprs_to_fprs): Likewise for local "insn".
5921 (s390_restore_gprs_from_fprs): Likewise.
5922 (pass_s390_early_mach::execute): Likewise.
5923 (s390_emit_prologue): Likewise for local "insns".
5924 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5926 (s390_emit_call): Strengthen return type and local "insn" from
5928 (s390_emit_tpf_eh_return): Likewise for local "insn".
5929 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5930 "next_insn", introducing locals "s_pat", "rpat" to allow this.
5931 (s390_fix_long_loop_prediction): Likewise for param "insn" and
5933 (s390_non_addr_reg_read_p): Likewise for param "insn".
5934 (find_cond_jump): Likewise for return type and param "insn".
5935 (s390_swap_cmp): Likewise for param "insn".
5936 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5937 "prev_insn", "next_insn".
5938 (s390_reorg): Likewise for locals "insn", "target".
5939 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5940 (s390_sched_variable_issue): For now, rename param "insn" to
5941 "uncast_insn", introducing a checked cast.
5942 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5944 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5945 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
5947 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5949 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5950 param from rtx to rtx_insn *.
5951 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5953 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5955 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5956 4 from rtx to rtx_insn *.
5957 (rs6000_final_prescan_insn): Likewise for first param.
5958 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5960 (rs6000_get_some_local_dynamic_name): Likewise.
5961 (output_cbranch): Likewise for param "insn".
5962 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5963 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5964 (rs6000_emit_allocate_stack): Likewise for local "insn".
5965 (load_cr_save): Likewise.
5966 (restore_saved_cr): Likewise.
5967 (restore_saved_lr): Likewise.
5968 (emit_cfa_restores): Likewise.
5969 (rs6000_output_function_epilogue): Likewise for locals "insn" and
5970 "deleted_debug_label".
5971 (rs6000_output_mi_thunk): Likewise for local "insn".
5972 (rs6000_final_prescan_insn): Likewise for param "insn".
5974 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5976 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5977 Strengthen param "insn" from rtx to rtx_insn *.
5978 * config/picochip/picochip.c (picochip_current_prescan_insn):
5979 Likewise for this variable.
5980 (picochip_final_prescan_insn): Likewise for param "insn".
5982 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5984 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5985 from rtx to rtx_insn *.
5986 (pa_output_indirect_call): Likewise.
5987 (pa_adjust_insn_length): Likewise.
5988 (pa_attr_length_millicode_call): Likewise.
5989 (pa_attr_length_call): Likewise.
5990 (pa_attr_length_indirect_call): Likewise.
5992 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5994 (pa_attr_length_millicode_call): Likewise.
5995 (pa_attr_length_call): Likewise.
5996 (pa_output_call): Likewise.
5997 (pa_attr_length_indirect_call): Likewise.
5998 (pa_output_indirect_call): Likewise.
6000 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6002 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6003 Strengthen first param from rtx to rtx_insn *.
6004 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6007 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6009 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6010 type from rtx to rtx_insn *.
6011 (mips_expand_call): Likewise.
6012 (mips_adjust_insn_length): Likewise for first param.
6013 (mips_output_conditional_branch): Likewise.
6014 (mips_output_order_conditional_branch): Likewise.
6015 (mips_final_prescan_insn): Likewise.
6017 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6018 rtx_insn * for the SEQUENCE case.
6019 (SEQ_END): Likewise.
6020 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6021 (mips_emit_call_insn): Likewise, also for local "insn".
6022 (mips16_gp_pseudo_reg): Likewise for local "scan".
6023 (mips16_build_call_stub): Likewise for return type and for local
6024 "insn". Introduce a new local "pattern" so that "insn" can indeed
6026 (mips_expand_call): Strengthen return type and local "insn" from
6028 (mips_block_move_loop): Strengthen local "label" from rtx to
6030 (mips_expand_synci_loop): Likewise for locals "label",
6032 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6034 (mips16e_collect_argument_saves): Likewise for locals "insn",
6036 (mips_find_gp_ref): Likewise for param of callback for "pred"
6037 param, and for local "insn".
6038 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6039 (mips_insn_has_flexible_gp_ref_p): Likewise.
6040 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6042 (mips_epilogue_set_cfa): Likewise for local "insn".
6043 (mips_expand_epilogue): Likewise.
6044 (mips_adjust_insn_length): Likewise for param "insn".
6045 (mips_output_conditional_branch): Likewise.
6046 (mips_output_order_conditional_branch): Likewise.
6047 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6048 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6049 "falu2_turn_enabled_insn".
6050 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6051 "done_label" from rtx to rtx_code_label *.
6052 (struct mips16_constant): Likewise for field "label".
6053 (mips16_add_constant): Likewise for return type.
6054 (mips16_emit_constants_1): Strengthen return type and param "insn"
6055 from rtx to rtx_insn *.
6056 (mips16_emit_constants): Likewise for param "insn".
6057 (mips16_insn_length): Likewise.
6058 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6059 to rtx_code_label *.
6060 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6061 from rtx to rtx_insn *.
6062 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6063 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6064 (r10k_simplify_address): Strengthen param "insn" and local
6065 "def_insn" from rtx to rtx_insn *.
6066 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6068 (r10k_needs_protection_p_1): Update target type of cast of data
6069 from to rtx to rtx_insn *.
6070 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6071 rtx * to rtx_insn **.
6072 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6074 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6075 (mips_call_expr_from_insn): Likewise for param "insn".
6076 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6077 (mips_find_pic_call_symbol): Likewise for param "insn".
6078 (mips_annotate_pic_calls): Likewise for local "insn".
6079 (mips_sim_insn): Likewise for this variable.
6080 (struct mips_sim): Likewise for field "insn" within elements of
6082 (mips_sim_wait_reg): Likewise for param "insn".
6083 (mips_sim_wait_regs): Likewise.
6084 (mips_sim_wait_units): Likewise.
6085 (mips_sim_wait_insn): Likewise.
6086 (mips_sim_issue_insn): Likewise.
6087 (mips_sim_finish_insn): Likewise.
6088 (mips_seq_time): Likewise for param "seq" and local "insn".
6089 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6090 locals "first", "second".
6091 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6092 "last", "last2", "next".
6093 (mips_avoid_hazard): Likewise for params "after", "insn".
6094 (mips_reorg_process_insns): Likewise for locals "insn",
6095 "last_insn", "subinsn", "next_insn".
6096 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6097 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6099 (mips_output_mi_thunk): Likewise for local "insn".
6100 (mips_final_prescan_insn): Likewise for param "insn".
6102 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6104 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6105 Strengthen return type and local "insns" from rtx to rtx_insn *.
6106 (microblaze_legitimize_tls_address): Likewise for local "insns".
6107 (microblaze_block_move_loop): Strengthen local "label" from rtx
6108 to rtx_code_label *.
6109 (microblaze_expand_prologue): Strengthen two locals named "insn"
6110 from rtx to rtx_insn *.
6111 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6112 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6113 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6114 to rtx_code_label *.
6116 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6118 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6119 param from rtx to rtx_insn *.
6120 (mep_reuse_lo): Likewise for third param.
6121 (mep_use_post_modify_p): Likewise for first param.
6122 (mep_core_address_length): Likewise.
6123 (mep_cop_address_length): Likewise.
6124 (mep_final_prescan_insn): Likewise.
6125 (mep_store_data_bypass_p): Likewise for both params.
6126 (mep_mul_hilo_bypass_p): Likewise.
6127 (mep_ipipe_ldc_p): Likewise for param.
6129 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6130 (mep_rewrite_mult): Likewise.
6131 (mep_rewrite_mulsi3): Likewise.
6132 (mep_rewrite_maddsi3): Likewise.
6133 (mep_reuse_lo_p_1): Likewise.
6134 (mep_reuse_lo_p): Likewise.
6135 (mep_frame_expr): Likewise.
6136 (mep_make_parallel): Likewise for both params.
6137 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6139 (mep_use_post_modify_p): Likewise for param "insn".
6140 (mep_core_address_length): Likewise.
6141 (mep_cop_address_length): Likewise.
6142 (mep_reg_set_in_function): Likewise for local "insn".
6143 (mep_asm_without_operands_p): Likewise.
6144 (F): Likewise for return type and param "x".
6145 (add_constant): Likewise for local "insn".
6146 (maybe_dead_move): Likewise for return type and local "insn".
6147 (mep_expand_prologue): Likewise for local "insn".
6148 (mep_final_prescan_insn): Likewise for param "insn".
6149 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6150 "next", "follow", "x".
6151 (mep_insert_repeat_label_last): Likewise for return type, param
6152 "last_insn", and locals "next", "prev". Strengthen param "label"
6153 from rtx to rtx_code_label *.
6154 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6156 (struct mep_doloop_end): Likewise for fields "insn" and
6158 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6159 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6160 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6162 (mep_invert_branch): Likewise for params "insn" and "after".
6163 (mep_reorg_erepeat): Likewise for param "insns" and locals
6164 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6165 "l" from rtx to rtx_code_label *.
6166 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6167 from rtx to rtx_insn *.
6168 (mep_reorg_addcombine): Likewise for param "insns" and locals
6170 (add_sp_insn_p): Likewise for param "insn".
6171 (mep_reorg_noframe): Likewise for param "insns" and locals
6172 "start_frame_insn", "end_frame_insn", "next".
6173 (mep_reorg): Likewise for local "insns".
6174 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6176 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6177 (mep_mul_hilo_bypass_p): Likewise.
6178 (mep_ipipe_ldc_p): Likewise for param "insn".
6179 (mep_make_bundle): Likewise for return type, param "cop" and local
6180 "insn", splitting out the latter into a new local "seq" for when it
6181 is a SEQUENCE rather than an insn.
6182 (core_insn_p): Likewise for param "insn".
6183 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6184 "last", "first", "note", "prev", "core_insn".
6186 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6188 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6190 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6191 (m68k_final_prescan_insn): Likewise for first param.
6193 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6194 (m68k_set_frame_related): Likewise for param "insn".
6195 (output_btst): Likewise for param "insn".
6196 (m68k_final_prescan_insn): Likewise.
6197 (m68k_move_to_reg): Likewise for local "insn".
6198 (m68k_call_tls_get_addr): Likewise for local "insns".
6199 (m68k_call_m68k_read_tp): Likewise.
6200 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6201 (m68k_output_mi_thunk): Likewise for local "insn".
6203 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6205 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6206 first param from rtx to rtx_insn *.
6207 (iq2000_adjust_insn_length): Likewise.
6208 (iq2000_output_conditional_branch): Likewise.
6209 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6210 "insn" and local "nop_insn".
6211 (iq2000_annotate_frame_insn): Likewise for param "insn".
6212 (iq2000_expand_prologue): Likewise for both locals "insn".
6213 (iq2000_adjust_insn_length): Likewise for param "insn".
6214 (iq2000_output_conditional_branch): Likewise.
6216 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6218 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6219 "insns" from rtx to rtx_insn *.
6220 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6221 (struct spill_fill_data): Likewise for field "init_after" and for
6222 elements of array field "prev_insn".
6223 (spill_restore_mem): Likewise for locals "insn", "first".
6224 (do_spill): Likewise for local "insn".
6225 (do_restore): Likewise.
6226 (ia64_expand_prologue): Likewise.
6227 (ia64_expand_epilogue): Likewise.
6228 (emit_insn_group_barriers): Likewise for locals "insn",
6230 (emit_all_insn_group_barriers): Likewise for locals "insn",
6232 (dfa_stop_insn): Likewise for this global.
6233 (dfa_pre_cycle_insn): Likewise.
6234 (ia64_nop): Likewise.
6235 (final_emit_insn_group_barriers): Likewise for locals "insn",
6237 (emit_predicate_relation_info): Likewise for locals "head", "n",
6239 (ia64_reorg): Likewise for local "insn".
6240 (ia64_output_mi_thunk): Likewise.
6241 (expand_vec_perm_interleave_2): Likewise for local "seq".
6243 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6245 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6246 param 1 "insn" from rtx to rtx_insn *.
6247 (ix86_use_lea_for_mov): Likewise.
6248 (ix86_avoid_lea_for_addr): Likewise.
6249 (ix86_split_lea_for_addr): Likewise.
6250 (ix86_lea_for_add_ok): Likewise.
6251 (ix86_output_call_insn): Likewise.
6253 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6254 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6255 (ix86_output_function_epilogue): Likewise for locals "insn",
6256 "deleted_debug_label".
6257 (legitimize_tls_address): Likewise for local "insn".
6258 (get_some_local_dynamic_name): Likewise.
6259 (increase_distance): Likewise for params "prev", "next".
6260 (distance_non_agu_define_in_bb): Likewise for params "insn",
6261 "start" and locals "prev", "next".
6262 (distance_non_agu_define): Likewise for param "insn".
6263 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6264 locals "next", "prev".
6265 (distance_agu_use): Likewise for param "insn".
6266 (ix86_lea_outperforms): Likewise.
6267 (ix86_ok_to_clobber_flags): Likewise.
6268 (ix86_avoid_lea_for_add): Likewise.
6269 (ix86_use_lea_for_mov): Likewise.
6270 (ix86_avoid_lea_for_addr): Likewise.
6271 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6272 (ix86_split_lea_for_addr): Likewise for param "insn".
6273 (ix86_lea_for_add_ok): Likewise for param "insn".
6274 (ix86_expand_carry_flag_compare): Likewise for local
6276 (ix86_expand_int_movcc): Likewise.
6277 (ix86_output_call_insn): Likewise for param "insn".
6278 (ix86_output_call_insn): Likewise for local "i".
6279 (x86_output_mi_thunk): Introduce local "insn", using it in place
6280 of "tmp" when dealing with insns.
6281 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6283 (ix86_pad_returns): Likewise for locals "ret", "prev".
6284 (ix86_count_insn_bb): Likewise for local "insn".
6285 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6286 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6287 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6288 (expand_vec_perm_interleave2): Likewise for local "seq".
6289 (expand_vec_perm_vperm2f128_vblend): Likewise.
6290 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6291 call to for_each_rtx with for_each_rtx_in_insn.
6293 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6295 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6296 "label" from rtx to rtx_code_label *.
6297 (ix86_expand_prologue): Likewise.
6298 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6300 (ix86_split_idivmod): Likewise for locals "end_label" and
6302 (ix86_expand_branch): Likewise for local "label2".
6303 (ix86_expand_aligntest): Likewise for return type and local "label".
6304 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6306 (expand_movmem_epilogue): Likewise for the various locals named
6308 (expand_setmem_epilogue): Likewise.
6309 (expand_small_movmem_or_setmem): Likewise for local "label".
6310 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6311 Strengthen param "done_label" from rtx * to rtx_code_label **.
6312 Strengthen locals "loop_label" and "label" from rtx to
6314 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6315 Likewise for locals "loop_label", "label".
6316 (ix86_expand_set_or_movmem): Likewise for locals "label",
6317 "jump_around_label", "hot_label".
6318 (ix86_expand_strlensi_unroll_1): Likewise for locals
6319 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6321 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6322 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6323 "label2", "jump_label".
6324 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6326 (ix86_expand_lfloorceil): Likewise for local "label".
6327 (ix86_expand_rint): Likewise.
6328 (ix86_expand_floorceildf_32): Likewise.
6329 (ix86_expand_floorceil): Likewise.
6330 (ix86_expand_rounddf_32): Likewise.
6331 (ix86_expand_trunc): Likewise.
6332 (ix86_expand_truncdf_32): Likewise.
6333 (ix86_expand_round): Likewise.
6335 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6337 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6338 first param from rtx to rtx_insn *.
6339 (h8300_insn_length_from_table): Likewise.
6340 * config/h8300/h8300.c (F): Likewise for return type and param
6342 (Fpa): Add a checked cast to rtx_insn *.
6343 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6345 (final_prescan_insn): Likewise for param "insn".
6346 (h8300_binary_length): Likewise.
6347 (h8300_insn_length_from_table): Likewise.
6349 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6351 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6352 Strengthen first param "insn" from rtx to rtx_insn *.
6354 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6356 (frame_insn): Likewise for return type. Introduce local "insn"
6357 for use in place of local "x" for use as an rtx_insn *.
6358 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6359 (epiphany_expand_prologue): Likewise for local "insn".
6360 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6361 * config/epiphany/resolve-sw-modes.c
6362 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6365 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6367 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6368 param from rtx to rtx_insn *.
6369 (c6x_final_prescan_insn): Likewise for first param.
6371 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6372 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6373 (c6x_expand_compare): Strengthen local "insns" from rtx to
6375 (c6x_get_unit_specifier): Likewise for param "insn".
6376 (c6x_print_unit_specifier_field): Likewise.
6377 (c6x_final_prescan_insn): Likewise.
6378 (emit_add_sp_const): Likewise for local "insn".
6379 (c6x_expand_prologue): Likewise.
6381 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6383 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6384 param 1 from rtx to rtx_insn *.
6385 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6386 the various locals named "insn".
6387 (expand_epilogue_reg_restore): Likewise.
6388 (frame_related_constant_load): Likewise.
6389 (add_to_reg): Likewise.
6390 (emit_link_insn): Likewise.
6391 (do_link): Likewise.
6392 (expand_interrupt_handler_prologue): Likewise.
6393 (branch_dest): Likewise for param "branch".
6394 (asm_conditional_branch): Likewise for param "insn".
6395 (gen_one_bundle): Likewise for elements of param "slot" and local
6397 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6398 elements of local "slot".
6399 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6400 "queue", "next_queue", "prev".
6401 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6402 (add_sched_insns_for_speculation): Likewise for local "insn".
6404 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6406 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6407 from rtx to rtx_insn *.
6408 (output_movhi): Likewise.
6409 (output_movsisf): Likewise.
6410 (avr_out_tstsi): Likewise.
6411 (avr_out_tsthi): Likewise.
6412 (avr_out_tstpsi): Likewise.
6413 (avr_out_compare): Likewise.
6414 (avr_out_compare64): Likewise.
6415 (avr_out_movpsi): Likewise.
6416 (ashlqi3_out): Likewise.
6417 (ashlhi3_out): Likewise.
6418 (ashlsi3_out): Likewise.
6419 (ashrqi3_out): Likewise.
6420 (ashrhi3_out): Likewise.
6421 (ashrsi3_out): Likewise.
6422 (lshrqi3_out): Likewise.
6423 (lshrhi3_out): Likewise.
6424 (lshrsi3_out): Likewise.
6425 (avr_out_ashlpsi3): Likewise.
6426 (avr_out_ashrpsi3): Likewise.
6427 (avr_out_lshrpsi3): Likewise.
6428 (avr_out_fract): Likewise.
6429 (avr_out_sbxx_branch): Likewise.
6430 (avr_out_round): Likewise.
6431 (avr_out_xload): Likewise.
6432 (avr_out_movmem): Likewise.
6433 (adjust_insn_length): Likewise.
6434 (avr_out_lpm): Likewise.
6435 (reg_unused_after): Likewise.
6436 (_reg_unused_after): Likewise.
6437 (avr_jump_mode): Likewise for second param.
6438 (jump_over_one_insn): Likewise for first param.
6439 (avr_final_prescan_insn): Likewise.
6440 (out_shift_with_cnt): Likewise for second param.
6442 * config/avr/avr.c (get_sequence_length): Likewise for param
6443 "insns" and local "insn".
6444 (emit_push_byte): Likewise for local "insn".
6445 (emit_push_sfr): Likewise.
6446 (avr_prologue_setup_frame): Likewise for locals "insn",
6447 "fp_plus_insns", "sp_plus_insns".
6448 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6450 (avr_jump_mode): Likewise for param "insn".
6451 (avr_final_prescan_insn): Likewise.
6452 (avr_find_unused_d_reg): Likewise.
6453 (avr_out_lpm_no_lpmx): Likewise.
6454 (avr_out_lpm): Likewise.
6455 (avr_out_xload): Likewise.
6456 (output_movqi): Likewise.
6457 (output_movhi): Likewise.
6458 (out_movqi_r_mr): Likewise.
6459 (out_movhi_r_mr): Likewise.
6460 (out_movsi_r_mr): Likewise.
6461 (out_movsi_mr_r): Likewise.
6462 (output_movsisf): Likewise.
6463 (avr_out_load_psi): Likewise.
6464 (avr_out_store_psi): Likewise.
6465 (avr_out_movpsi): Likewise.
6466 (out_movqi_mr_r): Likewise.
6467 (avr_out_movhi_mr_r_xmega): Likewise.
6468 (out_movhi_mr_r): Likewise.
6469 (compare_condition): Likewise for param "insn" and local "next".
6470 (compare_sign_p): Likewise for param "insn".
6471 (compare_diff_p): Likewise.
6472 (compare_eq_p): Likewise.
6473 (avr_out_compare): Likewise.
6474 (avr_out_compare64): Likewise.
6475 (avr_out_tsthi): Likewise.
6476 (avr_out_tstpsi): Likewise.
6477 (avr_out_tstsi): Likewise.
6478 (out_shift_with_cnt): Likewise.
6479 (ashlqi3_out): Likewise.
6480 (ashlhi3_out): Likewise.
6481 (avr_out_ashlpsi3): Likewise.
6482 (ashlsi3_out): Likewise.
6483 (ashrqi3_out): Likewise.
6484 (ashrhi3_out): Likewise.
6485 (avr_out_ashrpsi3): Likewise.
6486 (ashrsi3_out): Likewise.
6487 (lshrqi3_out): Likewise.
6488 (lshrhi3_out): Likewise.
6489 (avr_out_lshrpsi3): Likewise.
6490 (lshrsi3_out): Likewise.
6491 (avr_out_fract): Likewise.
6492 (avr_out_round): Likewise.
6493 (avr_adjust_insn_length): Likewise.
6494 (reg_unused_after): Likewise.
6495 (_reg_unused_after): Likewise.
6496 (avr_compare_pattern): Likewise.
6497 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6498 and locals "branch1", "branch2", "insn2", "jump".
6499 (avr_reorg): Likewise for local "insn".
6500 (avr_2word_insn_p): Likewise for param "insn".
6501 (jump_over_one_insn_p): Likewise.
6502 (avr_out_sbxx_branch): Likewise.
6503 (avr_out_movmem): Likewise.
6505 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6507 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6508 param from rtx to rtx_insn *.
6509 (thumb1_final_prescan_insn): Likewise.
6510 (thumb2_final_prescan_insn): Likewise.
6512 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6514 (struct minipool_node): Likewise for field "insn".
6515 (dump_minipool): Likewise for param "scan".
6516 (create_fix_barrier): Likewise for local "from". Strengthen local
6517 "label" from rtx to rtx_code_label *.
6518 (push_minipool_barrier): Strengthen param "insn" from rtx to
6520 (push_minipool_fix): Likewise.
6521 (note_invalid_constants): Likewise.
6522 (thumb2_reorg): Likewise for local "insn".
6523 (arm_reorg): Likewise.
6524 (thumb2_final_prescan_insn): Likewise for param
6525 "insn" and local "first_insn".
6526 (arm_final_prescan_insn): Likewise for param "insn" and locals
6527 "start_insn", "this_insn".
6528 (arm_debugger_arg_offset): Likewise for param "insn".
6529 (thumb1_emit_multi_reg_push): Likewise for return type and local
6531 (thumb1_final_prescan_insn): Likewise for param "insn".
6532 (thumb_far_jump_used_p): Likewise for local "insn".
6533 (thumb1_expand_prologue): Likewise.
6534 (arm_expand_epilogue_apcs_frame): Likewise.
6535 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6536 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6537 from rtx to rtx_code_label *.
6538 (arm_split_atomic_op): Likewise for local "label".
6539 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6541 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6543 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6544 first param from rtx to rtx_insn *.
6545 (arc_verify_short): Likewise.
6546 (arc_short_long): Likewise.
6547 (arc_need_delay): Likewise.
6549 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6551 (arc_ccfsm_advance): Likewise for param "insn" and locals
6552 "start_insn", "this_insn".
6553 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6554 (arc_ccfsm_post_advance): Likewise for param "insn".
6555 (arc_next_active_insn): Likewise for return type and param "insn".
6556 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6557 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6558 (output_short_suffix): Likewise for local "insn".
6559 (arc_final_prescan_insn): Likewise for param "insn". Remove
6560 now-redundant checked cast.
6561 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6562 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6563 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6564 for use where lc_set became an insn.
6565 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6567 (arc_get_insn_variants): Likewise for local "prev".
6568 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6570 (arc_predicate_delay_insns): Likewise for local "insn".
6571 (arc_pad_return): Likewise for local "prev". For now, add a
6572 checked cast when extracting the insn from "final_sequence".
6573 (arc_short_long): Likewise for param "insn".
6574 (arc_need_delay): Likewise for param "insn" and local "next".
6575 (arc_label_align): Likewise for locals "prev", "next".
6577 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6579 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6580 "insn" from rtx to rtx_insn *.
6581 (alpha_gp_save_rtx): Likewise for local "seq".
6582 (alpha_instantiate_decls): Likewise for local "top".
6583 (get_some_local_dynamic_name): Likewise for local "insn".
6584 (alpha_does_function_need_gp): Likewise.
6585 (set_frame_related_p): Likewise for return type and for locals
6587 (emit_frame_store_1): Likewise for local "insn".
6588 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6589 (alpha_end_function): Likewise for local "insn".
6590 (alpha_output_mi_thunk_osf): Likewise.
6591 (alphaev4_insn_pipe): Likewise for param "insn".
6592 (alphaev5_insn_pipe): Likewise.
6593 (alphaev4_next_group): Likewise for return type and param 1
6595 (alphaev5_next_group): Likewise.
6596 (alpha_align_insns_1): Likewise for return type and param 1 of
6597 callback param "next_group", and for locals "i", "next", "prev",
6598 "where", "where2", "insn".
6600 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6602 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6603 rather than modifying the stmt.
6605 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6607 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6608 cgraph_state conversion.
6610 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6612 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6613 Strengthen local "insns" from rtx to rtx_insn *.
6614 (aarch64_set_frame_expr): Likewise for local "insn".
6615 (aarch64_save_or_restore_fprs): Likewise.
6616 (aarch64_save_or_restore_callee_save_registers): Likewise.
6617 (aarch64_expand_prologue): Likewise.
6618 (aarch64_expand_epilogue): Likewise.
6619 (aarch64_output_mi_thunk): Likewise.
6620 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6621 "label2" from rtx to rtx_code_label *.
6622 (aarch64_split_atomic_op): Likewise for local "label".
6624 2014-08-25 Martin Liska <mliska@suse.cz>
6626 * cgraph.h (symtab_node):
6627 (bool needed_p (void)): created from decide_is_symbol_needed
6628 (bool referred_to_p (void)): created from referred_to_p
6629 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6630 * cgraph.h (cgraph_node):
6631 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6632 (void expand (void)): created from expand_function
6633 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6634 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6635 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6636 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6637 * cgraph.h (varpool_node):
6638 (static void add (tree decl): created from varpool_add_new_variable
6639 * cgraph.h (cgraph_edge):
6641 (void remove_caller (void)): created from cgraph_edge_remove_caller
6642 (void remove_callee (void)): created from cgraph_edge_remove_callee
6643 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6644 created from cgraph_set_call_stmt
6645 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6646 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6647 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6648 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6649 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6650 created from cgraph_speculative_call_info
6651 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6652 int freq_scale, bool update_original)): created from cgraph_clone_edge
6653 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6654 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6655 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6656 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6657 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6658 (static void rebuild_references (void)): created from cgraph_rebuild_references
6659 * cgraph.h (symbol_table):
6660 (create_reference): renamed from add_reference
6661 (maybe_create_reference): renamed from maybe_add_reference
6662 (void register_symbol (symtab_node *node)): new function
6663 (void clear_asm_symbols (void)): new function
6664 (void unregister (symtab_node *node)): new function
6665 (void release_symbol (cgraph_node *node, int uid)): new function
6666 (cgraph_node * allocate_cgraph_symbol (void)): new function
6667 (void initialize (void)): created from cgraph_init
6668 (symtab_node *first_symbol (void)):new function
6669 (asm_node *first_asm_symbol (void)):new function
6670 (symtab_node *first_defined_symbol (void)):new function
6671 (varpool_node *first_variable (void)):new function
6672 (varpool_node *next_variable (varpool_node *node)):new function
6673 (varpool_node *first_static_initializer (void)):new function
6674 (varpool_node *next_static_initializer (varpool_node *node)):new function
6675 (varpool_node *first_defined_variable (void)):new function
6676 (varpool_node *next_defined_variable (varpool_node *node)):new function
6677 (cgraph_node *first_defined_function (void)):new function
6678 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6679 (cgraph_node *first_function (void)):new function
6680 (cgraph_node *next_function (cgraph_node *node)):new function
6681 (cgraph_node *first_function_with_gimple_body (void)):new function
6682 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6683 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6684 created from symtab_remove_unreachable_nodes
6685 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6686 (void process_new_functions (void)): created from cgraph_process_new_functions
6687 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6688 (bool output_variables (void)): created from varpool_node::output_variables
6689 (void output_asm_statements (void)): created from output_asm_statements
6690 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6691 (void compile (void)): created from compile
6692 (void output_weakrefs (void)): created from output_weakrefs
6693 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6694 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6695 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6696 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6697 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6698 created from cgraph_next_function_with_gimple_body
6699 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6700 created from cgraph_remove_edge_removal_hook
6701 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6702 created from cgraph_add_node_removal_hook
6703 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6704 created from cgraph_remove_node_removal_hook
6705 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6706 created from varpool_add_node_removal_hook
6707 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6708 created from varpool_remove_node_removal_hook
6709 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6710 created from cgraph_add_function_insertion_hook
6711 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6712 created from cgraph_remove_function_insertion_hook
6713 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6714 created from varpool_add_variable_insertion_hook
6715 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6716 created from varpool_remove_variable_insertion_hook
6717 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6718 created from cgraph_add_edge_duplication_hook
6719 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6720 created from cgraph_remove_edge_duplication_hook
6721 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6722 created from cgraph_add_node_duplication_hook
6723 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6724 created from cgraph_remove_node_duplication_hook
6725 (void call_edge_removal_hooks (cgraph_edge *e)):
6726 created from cgraph_call_edge_removal_hooks
6727 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6728 created from call_function_insertion_hooks
6729 (void call_cgraph_removal_hooks (cgraph_node *node)):
6730 created from cgraph_call_node_removal_hooks
6731 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6732 created from cgraph_node::call_duplication_hooks
6733 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6734 created from cgraph_call_edge_duplication_hooks
6735 (void call_varpool_removal_hooks (varpool_node *node)):
6736 created from varpool_call_node_removal_hooks
6737 (void call_varpool_insertion_hooks (varpool_node *node)):
6738 created from varpool_call_variable_insertion_hooks
6739 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6740 created from insert_to_assembler_name_hash
6741 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6742 created from unlink_from_assembler_name_hash
6743 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6744 created from symtab_prevail_in_asm_name_hash
6745 (void symtab_initialize_asm_name_hash (void)):
6746 created from symtab_initialize_asm_name_hash
6747 (void change_decl_assembler_name (tree decl, tree name)):
6748 created from change_decl_assembler_name
6749 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6750 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6751 created from decl_assembler_name_hash
6752 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6753 created from decl_assembler_name_equal
6754 (static hashval_t hash_node_by_assembler_name (const void *p)):
6755 created from hash_node_by_assembler_name
6756 (static int eq_assembler_name (const void *p1, const void *p2)):
6757 created from eq_assembler_name
6759 2014-08-25 Marek Polacek <polacek@redhat.com>
6761 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6763 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6765 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6766 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6767 SWI1248_AVX512BW mode iterator.
6769 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6772 * config/sh/predicates.md (general_extend_operand): Disable
6773 TRUNCATE before reload completes.
6775 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
6777 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6779 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
6782 * config/sh/sh.opt (musermode): Allow negative form.
6783 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6784 targets that don't support it.
6785 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6786 Document -mno-usermode option.
6788 2014-08-24 Kito Cheng <kito@0xlab.org>
6790 * system.h (CALLER_SAVE_PROFITABLE): Poison.
6791 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6792 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6793 * doc/tm.texi: Regenerate.
6795 2014-08-24 Kito Cheng <kito@0xlab.org>
6797 * ira.c: Fix typo in comment.
6799 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6801 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6802 Deprecate c++1y. Change language to reflect greater confidence in C++14.
6804 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
6807 * config/pa/pa.c (pa_output_function_epilogue): Don't set
6808 last_address when the current function is a thunk.
6809 (pa_asm_output_mi_thunk): When we don't have named sections or they
6810 are not being used, check that thunk can reach the stub table with a
6813 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6815 * web.c (union_match_dups): Strengthen param "insn" from rtx to
6817 (pass_web::execute): Likewise for local "insn".
6819 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6821 * var-tracking.c (struct micro_operation_def): Strengthen field
6822 "insn" from rtx to rtx_insn *.
6823 (struct emit_note_data_def): Likewise.
6824 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6825 (vt_stack_adjustments): Likewise for local "insn".
6826 (adjust_insn): Likewise for param "insn".
6827 (val_store): Likewise.
6828 (val_resolve): Likewise.
6829 (struct count_use_info): Likewise for field "insn".
6830 (log_op_type): Likewise for param "insn".
6831 (reverse_op): Likewise.
6832 (prepare_call_arguments): Likewise.
6833 (add_with_sets): The initial param takes an insn, but we can't
6834 yet strengthen it from rtx to rtx_insn * since it's used as a
6835 cselib_record_sets_hook callback. For now rename initial param
6836 from "insn" to "uncast_insn", and introduce a local "insn" of
6837 the stronger rtx_insn * type, with a checked cast.
6838 (compute_bb_dataflow): Strengthen local "insn" from rtx to
6840 (emit_note_insn_var_location): Likewise.
6841 (emit_notes_for_changes): Likewise.
6842 (emit_notes_for_differences): Likewise.
6843 (next_non_note_insn_var_location): Likewise for return type and
6845 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6846 (vt_initialize): Likewise for local "insn".
6847 (delete_debug_insns): Likewise for locals "insn" and "next".
6849 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6851 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6853 (mark_constant_pool): Likewise for local "insn".
6855 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6857 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6859 (dead_debug_promote_uses): Likewise.
6860 (dead_debug_insert_temp): Likewise.
6862 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6864 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6865 from const_rtx to const rtx_insn *.
6866 (store_killed_after): Likewise. Strengthen locals "last", "act"
6867 from rtx to rtx_insn *.
6868 (store_killed_before): Strengthen param "insn" from const_rtx to
6869 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
6870 (find_moveable_store): Strengthen param "insn" from rtx to
6872 (compute_store_table): Likewise for local "insn".
6873 (insert_insn_start_basic_block): Likewise for param "insn" and
6874 locals "prev", "before", "insn".
6875 (insert_store): For now, add a checked cast to rtx_insn * on the
6876 result of gen_move_insn.
6877 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6879 (replace_store_insn): Likewise. For now, add a checked cast to
6880 rtx_insn * on the result of gen_move_insn.
6882 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6884 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6886 (expand_sjlj_dispatch_table): Likewise.
6888 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6890 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6891 "insn" from rtx to rtx_insn *.
6893 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6895 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6896 "insn" from rtx to rtx_insn *.
6897 (dup_block_and_redirect): Likewise for param 3 "before".
6899 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6900 from rtx to rtx_insn *.
6901 (move_insn_for_shrink_wrap): Likewise.
6902 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6903 (dup_block_and_redirect): Likewise for param "before" and local
6905 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6907 (convert_to_simple_return): Likewise for local "start".
6909 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6910 Strengthen local "insn" from rtx to rtx_insn *, for use when
6911 invoking requires_stack_frame_p.
6913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6915 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6917 (speculate_expr): Likewise for locals "orig_insn_rtx",
6919 (eq_transformed_insns): Likewise for locals "i1", "i2".
6920 (check_for_new_jump): Likewise for return type and local "end".
6921 (find_new_jump): Likewise for return type and local "jump".
6922 (sel_split_edge): Likewise for local "jump".
6923 (sel_create_recovery_block): Likewise.
6924 (sel_redirect_edge_and_branch_force): Likewise.
6925 (sel_redirect_edge_and_branch): Likewise.
6927 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6929 * sel-sched.c (substitute_reg_in_expr): Strengthen local
6930 "new_insn" from rtx to rtx_insn *.
6931 (create_insn_rtx_with_rhs): Likewise for return type and for local
6933 (create_insn_rtx_with_lhs): Likewise.
6934 (create_speculation_check): Likewise for local "insn_rtx".
6935 (implicit_clobber_conflict_p): Likewise for local "insn".
6936 (get_expr_cost): Likewise.
6937 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6938 (move_cond_jump): Likewise for locals "next", "prev", "link",
6939 "head", "from", "to".
6941 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6943 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6944 "next" from rtx to rtx_insn *.
6945 (find_conditional_protection): Likewise for local "next".
6946 (is_conditionally_protected): Likewise for local "insn1".
6947 (is_pfree): Likewise for locals "insn1", "insn2".
6949 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6951 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6952 from rtx to rtx_insn *.
6954 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6955 locals "insn1", "insn2" from rtx to rtx_insn *.
6956 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6957 locals "insn", "prev", "last_jump", "next_tail".
6958 (schedule_ebb): Likewise for params "head", "tail".
6959 (schedule_ebbs): Likewise for locals "tail", "head".
6961 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6962 to rtx_insn on "last_insn" in one of the invocations of
6965 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6967 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6968 "elem", "insn" from rtx to rtx_insn *.
6969 (change_spec_dep_to_hard): Likewise.
6970 (get_back_and_forw_lists): Likewise for local "con".
6971 (sd_add_dep): Likewise for locals "elem", "insn".
6972 (sd_resolve_dep): Likewise for locals "pro", "con".
6973 (sd_unresolve_dep): Likewise.
6974 (sd_delete_dep): Likewise.
6975 (chain_to_prev_insn): Likewise for local "pro".
6976 (find_inc): Likewise for locals "pro", "con".
6978 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6980 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6982 (reg_set_between_p): Strengthen local "insn" from const_rtx to
6984 (modified_between_p): Strengthen local "insn" from rtx to
6986 (remove_reg_equal_equiv_notes_for_regno): Likewise.
6987 (keep_with_call_p): Strengthen local "i2" from const_rtx to
6990 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6992 * resource.c (next_insn_no_annul): Strengthen local "next" from
6994 (mark_referenced_resources): Likewise for local "insn".
6996 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6998 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7000 (find_reloads): Likewise for param 1.
7001 (subst_reloads): Likewise for sole param.
7002 (find_equiv_reg): Likwise for param 2.
7003 (regno_clobbered_p): Likwise for param 2.
7004 (reload): Likewise for param 1.
7006 * caller-save.c (save_call_clobbered_regs): Strengthen local
7007 "insn" from rtx to rtx_insn *.
7008 (insert_one_insn): Likewise for local "insn".
7010 * reload.c (this_insn): Likewise for this global.
7011 (find_reloads): Likewise for param "insn".
7012 (find_reloads_toplev): Likewise.
7013 (find_reloads_address): Likewise.
7014 (subst_reg_equivs): Likewise.
7015 (update_auto_inc_notes): Likewise.
7016 (find_reloads_address_1): Likewise.
7017 (find_reloads_subreg_address): Likewise.
7018 (subst_reloads): Likewise.
7019 (find_equiv_reg): Likewise, also for local "p".
7020 (regno_clobbered_p): Likewise for param "insn".
7022 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7024 (spill_reg_store): Likewise for the elements of this array.
7025 (remove_init_insns): Likewise for local "equiv_insn".
7026 (will_delete_init_insn_p): Likewise for param "insn".
7027 (reload): Likewise for param ""first" and local "insn".
7028 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7030 (calculate_elim_costs_all_insns): Likewise.
7031 (delete_caller_save_insns): Likewise.
7032 (spill_failure): Likewise for param "insn".
7033 (delete_dead_insn): Likewise.
7034 (set_label_offsets): Likewise.
7035 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7037 (elimination_costs_in_insn): Likewise for param "insn".
7038 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7039 when referring to an insn.
7040 (set_initial_label_offsets): Likewise.
7041 (set_offsets_for_label): Strengthen param "insn" from rtx to
7043 (init_eliminable_invariants): Likewise for param "first" and local
7045 (fixup_eh_region_note): Likewise for param "insn".
7046 (reload_as_needed): Likewise for locals "prev", "insn",
7047 "old_next", "old_prev", "next".
7048 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7050 (reload_inheritance_insn): Strengthen elements of this array from
7052 (failed_reload): Likewise for param "insn".
7053 (choose_reload_regs): Likewise for local "insn". Replace use of
7054 NULL_RTX with NULL when referring to an insn.
7055 (input_reload_insns): Strengthen elements of this array from rtx
7057 (other_input_address_reload_insns): Likewise for this global.
7058 (other_input_reload_insns): Likewise for this global.
7059 (input_address_reload_insns): Likwise for the elements of this
7061 (inpaddr_address_reload_insns): Likwise for the elements of this
7063 (output_reload_insns): Likewise for the elements of this array.
7064 (output_address_reload_insns): Likewise for the elements of this
7066 (outaddr_address_reload_insns): Likewise for the elements of this
7068 (operand_reload_insns): Likewise for this global.
7069 (other_operand_reload_insns): Likewise for this global.
7070 (other_output_reload_insns): Likewise for the elements of this
7072 (new_spill_reg_store): Likewise for the elements of this
7074 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7075 Strengthen local "where" from rtx * to rtx_insn **.
7076 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7077 from rtx to rtx_insn *.
7078 (do_input_reload): Likewise for local "insn".
7079 (do_output_reload): Likewise for local "insn".
7080 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7081 (emit_insn_if_valid_for_reload): Likewise for return type and local
7082 "last". Add checked cast to rtx_insn when returning "insn" since
7083 this has been through emit_insn.
7084 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7085 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7086 returning "insn" since it's been through
7087 emit_insn_if_valid_for_reload at this point.
7088 (delete_output_reload): Strengthen param "insn" and locals
7089 "output_reload_insn", "i2" from rtx to rtx_insn *.
7090 (delete_address_reloads): Likewise for params "dead_insn",
7091 "current_insn" and locals "prev", "next".
7092 (delete_address_reloads_1): Likewise for params "dead_insn",
7093 "current_insn" and locals "prev", "i2".
7094 (inc_for_reload): Likewise for locals "last", "add_insn".
7095 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7098 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7099 param of this duplicate of the prototype from reload.h
7101 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7103 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7105 (regstat_bb_compute_calls_crossed): Likewise.
7107 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7109 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7111 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7113 (regrename_analyze): Strengthen local "insn" from rtx to
7115 (scan_rtx_reg): Likewise for param "insn".
7116 (scan_rtx_address): Likewise.
7117 (scan_rtx): Likewise.
7118 (restore_operands): Likewise.
7119 (record_out_operands): Likewise.
7120 (build_def_use): Likewise for local "insn". Replace use of
7121 NULL_RTX with NULL when dealing with an insn.
7123 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7125 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7126 * reginfo.c (reg_scan): Likewise, also for local "insn".
7127 (reg_scan_mark_refs): Likewise for param "insn".
7128 (init_subregs_of_mode): Likewise for local "insn".
7130 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7132 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7133 "insn" from rtx to rtx_insn *.
7134 (replace_oldest_value_reg): Likewise for param "insn".
7135 (replace_oldest_value_addr): Likewise.
7136 (replace_oldest_value_mem): Likewise.
7137 (apply_debug_insn_changes): Likewise for local "last_insn".
7138 (copyprop_hardreg_forward_1): Likewise for local "insn".
7140 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7142 * reg-stack.c (next_flags_user): Strengthen return type and param
7143 "insn" from rtx to rtx_insn *.
7144 (straighten_stack): Likewise for param "insn".
7145 (check_asm_stack_operands): Likewise.
7146 (remove_regno_note): Likewise.
7147 (emit_pop_insn): Likewise for return type, param "insn", local
7149 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7150 "limit" from rtx to rtx_insn *.
7151 (swap_to_top): Likewise for param "insn".
7152 (move_for_stack_reg): Likewise.
7153 (move_nan_for_stack_reg): Likewise.
7154 (swap_rtx_condition): Likewise.
7155 (compare_for_stack_reg): Likewise.
7156 (subst_all_stack_regs_in_debug_insn): Likewise.
7157 (subst_stack_regs_pat): Likewise, and local "insn2".
7158 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7160 (subst_stack_regs): Likewise.
7161 (change_stack): Likewise.
7162 (convert_regs_1): Likewise for locals "insn", "next".
7164 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7166 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7168 (combine_set_extension): Likewise for param "curr_insn".
7169 (transform_ifelse): Likewise for param "def_insn".
7170 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7171 from vec<rtx> * to vec<rtx_insn *> *.
7172 (is_cond_copy_insn): Likewise for param "insn".
7173 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7175 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7176 local "def_insn" from rtx to rtx_insn *.
7177 (get_sub_rtx): Likewise for param "def_insn".
7178 (merge_def_and_ext): Likewise.
7179 (combine_reaching_defs): Likewise.
7180 (add_removable_extension): Likewise for param "insn".
7181 (find_removable_extensions): Likewise for local "insn".
7182 (find_and_remove_re): Likewise for locals "curr_insn" and
7183 "def_insn". Strengthen locals "reinsn_del_list" and
7184 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7186 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7188 * recog.c (split_insn): Strengthen param "insn" and locals
7189 "first", "last" from rtx to rtx_insn *.
7190 (split_all_insns): Likewise for locals "insn", "next".
7191 (split_all_insns_noflow): Likewise.
7193 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7195 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7197 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7198 (debug_rtx_find): Likewise for param 1 "x".
7200 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7201 const_rtx to const rtx_insn *. Likewise for local "insn".
7202 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7203 (debug_rtx_find): Likewise for param 1 "x".
7204 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7205 from const_rtx to const rtx_insn * within the appropriate cases of
7206 the switch statement.
7208 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7209 Strengthen local "insns" from rtx to rtx_insn * since this is
7210 passed to a call to debug_rtx_list.
7212 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7214 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7217 * function.c (stack_protect_epilogue): Add checked cast to
7218 rtx_insn for now when invoking predict_insn_def.
7220 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7222 (predict_insn_def): Likewise.
7223 (rtl_predict_edge): Likewise for local "last_insn".
7224 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7226 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7228 (bb_estimate_probability_locally): Likewise for local "last_insn".
7229 (expensive_function_p): Likewise for local "insn".
7231 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7232 local "jmp", since this is used when invoking predict_insn_def.
7234 2014-08-22 Marek Polacek <polacek@redhat.com>
7237 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7239 2014-08-22 Marek Polacek <polacek@redhat.com>
7242 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7243 a comparison in parens.
7244 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7247 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7249 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7252 * cprop.c (fis_get_condition): Likewise.
7254 * postreload.c (reload_cse_regs): Likewise for param "first".
7255 (reload_cse_simplify): Likewise for param "insn".
7256 (reload_cse_regs_1): Likewise for local "insn".
7257 (reload_cse_simplify_set): Likewise for param "insn".
7258 (reload_cse_simplify_operands): Likewise.
7259 (struct reg_use): Likewise for field "insn".
7260 (reload_combine_purge_insn_uses): Likewise for param "insn".
7261 (fixup_debug_insns): Likewise for params "from", "to" and local
7263 (try_replace_in_use): Likewise for local "use_insn".
7264 (reload_combine_recognize_const_pattern): Likewise for param
7265 "insn" and locals "add_moved_after_insn", "use_insn".
7266 (reload_combine_recognize_pattern): Likewise for param "insn" and
7268 (reload_combine): Likewise for locals "insn", "prev".
7269 (reload_combine_note_use): Likewise for param "insn".
7270 (move2add_use_add2_insn): Likewise.
7271 (move2add_use_add3_insn): Likewise.
7272 (reload_cse_move2add): Likewise, also for local "next".
7273 (move2add_note_store): Likewise for local "insn".
7275 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7277 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7279 (struct unoccr): Likewise.
7280 (struct modifies_mem): Likewise.
7281 (alloc_mem): Likewise for local "insn".
7282 (insert_expr_in_table): Likewise for param "insn".
7283 (dump_expr_hash_table_entry): Likewise for local "insn".
7284 (oprs_unchanged_p): Likewise for param "insn".
7285 (load_killed_in_block_p): Likewise for local "setter".
7286 (record_last_reg_set_info): Likewise for param "insn".
7287 (record_last_reg_set_info_regno): Likewise.
7288 (record_last_mem_set_info): Likewise.
7289 (record_last_set_info): Likewise for local "last_set_insn".
7290 (record_opr_changes): Likewise for param "insn".
7291 (hash_scan_set): Likewise.
7292 (compute_hash_table): Likewise for local "insn".
7293 (get_avail_load_store_reg): Likewise for param "insn".
7294 (eliminate_partially_redundant_load): Likewise, also for locals
7295 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7297 (eliminate_partially_redundant_loads): Likewise for local "insn".
7299 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7301 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7303 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7304 (expand_twoval_unop): Likewise for locals entry_last", "last".
7305 (expand_twoval_binop): Likewise.
7306 (expand_twoval_binop_libfunc): Likewise for local "insns".
7307 (widen_leading): Likewise for local "last".
7308 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7309 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7310 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7311 (expand_parity): Likewise for locals "last" and "seq".
7312 (expand_ffs): Likewise for local "seq". Strengthen local
7313 "nonzero_label" from rtx to rtx_code_label *.
7314 (expand_absneg_bit): Strengthen local "insns" from rtx to
7316 (expand_unop_direct): Likewise for local "last".
7317 (expand_unop): Likewise for locals "last", "insns".
7318 (expand_abs_nojump): Likewise for local "last".
7319 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7320 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7322 (expand_copysign_absneg): Strengthen local "label" from rtx to
7324 (expand_copysign_bit): Strengthen local "insns" from rtx to
7326 (struct no_conflict_data): Likewise for fields "first", "insn".
7327 (emit_libcall_block_1): Likewise for param "insns" and locals
7328 "next", "last", "insn".
7329 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7330 on "insns" when invoking emit_libcall_block_1. Ultimately we
7331 want to strengthen insns itself.
7332 (prepare_cmp_insn): Strengthen local "last" from rtx to
7334 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7335 (prepare_float_lib_cmp): Likewise for local "insns".
7336 (emit_conditional_move): Likewise for local "last".
7337 (emit_conditional_add): Likewise.
7338 (have_sub2_insn): Likewise for local "seq".
7339 (expand_float): Likewise for local "insns". Strengthen locals
7340 "label", "neglabel" from rtx to rtx_code_label *.
7341 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7342 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7343 (expand_fixed_convert): Likewise for local "insns" (to
7345 (expand_sfix_optab): Likewise for local "last".
7346 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7347 to rtx_code_label *.
7348 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7349 from rtx to rtx_insn *.
7350 (expand_atomic_fetch_op): Likewise for local "insn".
7351 (maybe_legitimize_operand_same_code): Likewise for local "last".
7352 (maybe_legitimize_operands): Likewise.
7354 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7356 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7357 "insn" from rtx to rtx_insn *.
7358 (ps_rtl_insn): Likewise for return type.
7359 (doloop_register_get): Likewise for params "head", "tail" and
7360 locals "insn", "first_insn_not_to_check".
7361 (schedule_reg_move): Likewise for local "this_insn".
7362 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7363 of gen_move_insn for now.
7364 (reset_sched_times): Strengthen local "insn" from rtx to
7366 (permute_partial_schedule): Likewise.
7367 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7368 (dump_insn_location): Likewise for param "insn".
7369 (loop_canon_p): Likewise for local "insn".
7370 (sms_schedule): Likewise.
7371 (print_partial_schedule): Likewise.
7372 (ps_has_conflicts): Likewise.
7374 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7376 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7377 "tailp" from rtx * to rtx_insn **.
7379 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7380 from rtx to rtx_insn *.
7381 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7382 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7383 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7385 * modulo-sched.c (const_iteration_count): Strengthen return type
7386 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7387 use of NULL_RTX with NULL when working with insns.
7388 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7390 (sms_schedule): Likewise.
7391 * sched-rgn.c (init_ready_list): Likewise, also for locals
7392 "src_head" and "src_next_tail".
7393 (compute_block_dependences): Likewise.
7394 (free_block_dependencies): Likewise.
7395 (debug_rgn_dependencies): Likewise.
7396 (free_rgn_deps): Likewise.
7397 (compute_priorities): Likewise.
7398 (schedule_region): Likewise.
7399 * sel-sched.c (find_ebb_boundaries): Likewise.
7401 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7402 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7404 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7406 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7407 from rtx to rtx_insn *.
7408 (new_seginfo): Likewise for param "insn".
7409 (create_pre_exit): Likewise for locals "last_insn",
7410 "before_return_copy", "return_copy".
7411 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7414 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7416 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7417 from rtx to rtx_insn *.
7418 (lra_push_insn): Likewise for 1st param.
7419 (lra_push_insn_and_update_insn_regno_info): Likewise.
7420 (lra_pop_insn): Likewise for return type.
7421 (lra_invalidate_insn_data): Likewise for 1st param.
7422 (lra_set_insn_deleted): Likewise.
7423 (lra_delete_dead_insn): Likewise.
7424 (lra_process_new_insns): Likewise for first 3 params.
7425 (lra_set_insn_recog_data): Likewise for 1st param.
7426 (lra_update_insn_recog_data): Likewise.
7427 (lra_set_used_insn_alternative): Likewise.
7428 (lra_invalidate_insn_regno_info): Likewise.
7429 (lra_update_insn_regno_info): Likewise.
7430 (lra_former_scratch_operand_p): Likewise.
7431 (lra_eliminate_regs_1): Likewise.
7432 (lra_get_insn_recog_data): Likewise.
7434 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7437 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7439 (substitute_within_insn): New.
7440 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7441 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7442 Replace call to "substitute" with call to substitute_within_insn.
7444 * lra-constraints.c (curr_insn): Strengthen from rtx to
7446 (get_equiv_with_elimination): Likewise for param "insn".
7447 (match_reload): Strengthen params "before" and "after" from rtx *
7449 (emit_spill_move): Likewise for return type. Add a checked cast
7450 to rtx_insn * on result of gen_move_insn for now.
7451 (check_and_process_move): Likewise for local "before". Replace
7452 NULL_RTX with NULL when referring to insns.
7453 (process_addr_reg): Strengthen params "before" and "after" from
7454 rtx * to rtx_insn **.
7455 (insert_move_for_subreg): Likewise.
7456 (simplify_operand_subreg): Strengthen locals "before" and "after"
7457 from rtx to rtx_insn *.
7458 (process_address_1): Strengthen params "before" and "after" from
7459 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7461 (process_address): Strengthen params "before" and "after" from
7462 rtx * to rtx_insn **.
7463 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7464 (curr_insn_transform): Strengthen locals "before" and "after"
7465 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7467 (loc_equivalence_callback): Update cast of "data", changing
7468 resulting type from rtx to rtx_insn *.
7469 (substitute_pseudo_within_insn): New.
7470 (inherit_reload_reg): Strengthen param "insn" from rtx to
7471 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7472 NULL when referring to insns. Add a checked cast to rtx_insn *
7473 when using usage_insn to invoke lra_update_insn_regno_info.
7474 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7475 likewise for locals "restore", "save". Add checked casts to
7476 rtx_insn * when using usage_insn to invoke
7477 lra_update_insn_regno_info and lra_process_new_insns. Replace
7478 NULL_RTX with NULL when referring to insns.
7479 (split_if_necessary): Strengthen param "insn" from rtx to
7481 (update_ebb_live_info): Likewise for params "head", "tail" and local
7483 (get_last_insertion_point): Likewise for return type and local "insn".
7484 (get_live_on_other_edges): Likewise for local "last".
7485 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7486 "prev_insn", "next_insn", "restore".
7487 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7488 (undo_optional_reloads): Likewise for local "insn".
7490 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7492 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7494 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7496 (spill_pseudos): Likewise for local "insn".
7497 (init_elimination): Likewise.
7498 (process_insn_for_elimination): Likewise for param "insn".
7500 * lra-lives.c (curr_insn): Likewise.;
7502 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7503 (remove_pseudos): Likewise for param "insn".
7504 (spill_pseudos): Likewise for local "insn".
7505 (lra_final_code_change): Likewise for locals "insn", "curr".
7507 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7508 (lra_set_insn_deleted): Likewise.
7509 (lra_delete_dead_insn): Likewise, and for local "prev".
7510 (new_insn_reg): Likewise for param "insn".
7511 (lra_set_insn_recog_data): Likewise.
7512 (lra_update_insn_recog_data): Likewise.
7513 (lra_set_used_insn_alternative): Likewise.
7514 (get_insn_freq): Likewise.
7515 (invalidate_insn_data_regno_info): Likewise.
7516 (lra_invalidate_insn_regno_info): Likewise.
7517 (lra_update_insn_regno_info): Likewise.
7518 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7520 (lra_push_insn_1): Strengthen param "insn" from rtx to
7522 (lra_push_insn): Likewise.
7523 (lra_push_insn_and_update_insn_regno_info): Likewise.
7524 (lra_pop_insn): Likewise for return type and local "insn".
7525 (push_insns): Likewise for params "from", "to", and local "insn".
7526 (setup_sp_offset): Likewise for params "from", "last" and locals
7528 (lra_process_new_insns): Likewise for params "insn", "before",
7529 "after" and local "last".
7530 (struct sloc): Likewise for field "insn".
7531 (lra_former_scratch_operand_p): Likewise for param "insn".
7532 (remove_scratches): Likewise for locals "insn", "last".
7533 (check_rtl): Likewise for local "insn".
7534 (add_auto_inc_notes): Likewise for param "insn".
7535 (update_inc_notes): Likewise for local "insn".
7536 (lra): Replace NULL_RTX with NULL when referring to insn.
7538 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7540 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7542 (resolve_reg_notes): Likewise.
7543 (resolve_simple_move): Likewise for return type, param "insn", and
7544 locals "insns", "minsn".
7545 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7546 (resolve_use): Likewise.
7547 (resolve_debug): Likewise.
7548 (find_decomposable_shift_zext): Likewise.
7549 (resolve_shift_zext): Likewise for return type, param "insn", and
7550 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7551 (decompose_multiword_subregs): Likewise for local "insn",
7552 "orig_insn", "decomposed_shift", "end".
7554 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7556 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7557 param "insns" from rtx to rtx_insn *.
7559 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7561 (struct iv_to_split): Likewise.
7562 (loop_exit_at_end_p): Likewise for local "insn".
7563 (split_edge_and_insert): Likewise for param "insns".
7564 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7565 and locals "seq", "jump".
7566 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7567 "branch_code"; update invocations of compare_and_jump_seq to
7568 eliminate NULL_RTX in favor of NULL.
7569 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7571 (reset_debug_uses_in_loop): Likewise.
7572 (analyze_insn_to_expand_var): Likewise for param "insn".
7573 (analyze_iv_to_split_insn): Likewise.
7574 (analyze_insns_in_loop): Likewise for local "insn".
7575 (insert_base_initialization): Likewise for param
7576 "insn" and local "seq".
7577 (split_iv): Likewise for param "insn" and local "seq".
7578 (expand_var_during_unrolling): Likewise for param "insn".
7579 (insert_var_expansion_initialization): Likewise for local "seq".
7580 (combine_var_copies_in_loop_exit): Likewise.
7581 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7583 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7584 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7587 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7589 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7591 (iv_analyze_result): Likewise.
7592 (iv_analyze_expr): Likewise.
7595 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7596 local "def_insn" from rtx to rtx_insn *.
7597 (get_biv_step_1): Likewise for local "insn".
7598 (iv_analyze_expr): Likewise for param "insn".
7599 (iv_analyze_def): Likewise for local "insn".
7600 (iv_analyze_op): Likewise for param "insn".
7601 (iv_analyze): Likewise.
7602 (iv_analyze_result): Likewise.
7604 (suitable_set_for_replacement): Likewise.
7605 (simplify_using_initial_values): Likewise for local "insn".
7606 (iv_number_of_iterations): Likewise for param "insn".
7607 (check_simple_exit): Add checked cast to rtx_insn when invoking
7608 iv_number_of_iterations for now (until get_condition is
7611 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7612 "insn" from rtx to rtx_insn *.
7613 (analyze_insns_in_loop): Likewise for local "insn".
7615 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7617 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7619 (struct invariant): Likewise.
7620 (hash_invariant_expr_1): Likewise for param "insn".
7621 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7622 (find_exits): Likewise for local "insn".
7623 (create_new_invariant): Likewise for param "insn".
7624 (check_dependencies): Likewise.
7625 (find_invariant_insn): Likewise.
7626 (record_uses): Likewise.
7627 (find_invariants_insn): Likewise.
7628 (find_invariants_bb): Likewise for local "insn".
7629 (get_pressure_class_and_nregs): Likewise for param "insn".
7630 (calculate_loop_reg_pressure): Likewise for local "insn".
7632 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7634 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7636 (add_test): Likewise for locals "seq", "jump".
7637 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7639 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7641 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7643 (rebuild_jump_labels_chain): Likewise for param "chain".
7645 * cfgexpand.c (pass_expand::execute): Add checked cast to
7646 rtx_insn * when calling rebuild_jump_labels_chain in region where
7647 we know e->insns.r is non-NULL.
7649 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7651 (rebuild_jump_labels): Likewise.
7652 (rebuild_jump_labels_chain): Likewise for param "chain".
7653 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7654 (init_label_info): Likewise for param "f".
7655 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7656 "prev_nonjump_insn".
7657 (mark_all_labels): Likewise for param "f" and locals "insn",
7658 "prev_nonjump_insn".
7660 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7662 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7663 from rtx to rtx_insn *insn.
7664 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7665 (ira_add_allocno_copy): Likewise.
7666 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7668 (ira_create_copy): Likewise.
7669 (ira_add_allocno_copy): Likewise.
7670 (create_bb_allocnos): Likewise for local "insn".
7671 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7672 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7673 process_regs_for_copy for rtx_insn * param.
7674 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7675 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7676 process_regs_for_copy for rtx_insn * param.
7677 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7678 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7679 (record_operand_costs): Likewise.
7680 (scan_one_insn): Likewise for return type, and for param "insn".
7681 (process_bb_for_costs): Likewise for local "insn".
7682 (process_bb_node_for_hard_reg_moves): Likewise.
7683 * ira-emit.c (struct move): Likewise for field "insn".
7684 (create_move): Eliminate use of NULL_RTX when dealing with an
7686 (emit_move_list): Strengthen return type and locals "result",
7687 "insn" from rtx to rtx_insn *insn.
7688 (emit_moves): Likewise for locals "insns", "tmp".
7689 (ira_emit): Likewise for local "insn".
7690 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7692 (find_call_crossed_cheap_reg): Likewise.
7693 (process_bb_node_lives): Likewise for local "insn".
7694 * ira.c (decrease_live_ranges_number): Likewise.
7695 (compute_regs_asm_clobbered): Likewise.
7696 (build_insn_chain): Likewise.
7697 (find_moveable_pseudos): Likewise, also locals "def_insn",
7698 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7699 to rtx_insn **. Add a checked cast when assigning from
7700 "closest_use" into closest_uses array in a region where we know
7701 it's a non-NULL insn.
7702 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7704 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7705 "last_interesting_insn", "uin".
7706 (move_unallocated_pseudos): Likewise for locals "def_insn",
7707 "move_insn", "newinsn".
7709 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7711 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7712 Strengthen locals "done_label", "do_error" from rtx to
7714 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7715 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7717 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7718 "done_label", "do_error" to rtx_code_label * and local "last" to
7720 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7721 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7722 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7723 "after_lopart_neg", "do_overflow", "hipart_different" to
7724 rtx_code_label * and local "last" to rtx_insn *.
7726 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7728 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7729 "insn" and "move_insn" from rtx to rtx_insn *.
7731 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7733 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7735 (cheap_bb_rtx_cost_p): Likewise.
7736 (first_active_insn): Likewise for return type and local "insn".
7737 (last_active_insn): Likewise for return type and locals "insn",
7739 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7741 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7743 (noce_try_move): Likewise for local "seq".
7744 (noce_try_store_flag): Likewise.
7745 (noce_try_store_flag_constants): Likewise.
7746 (noce_try_addcc): Likewise.
7747 (noce_try_store_flag_mask): Likewise.
7748 (noce_try_cmove): Likewise.
7749 (noce_try_minmax): Likewise.
7750 (noce_try_abs): Likewise.
7751 (noce_try_sign_mask): Likewise.
7752 (noce_try_bitop): Likewise.
7753 (noce_can_store_speculate_p): Likewise for local "insn".
7754 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7756 (check_cond_move_block): Likewise for local "insn".
7757 (cond_move_convert_if_block): Likewise.
7758 (cond_move_process_if_block): Likewise for locals "seq",
7760 (noce_find_if_block): Likewise for local "jump".
7761 (merge_if_block): Likewise for local "last".
7762 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7763 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7764 (block_has_only_trap): Likewise for return type and local "trap".
7765 (find_if_case_1): Likewise for local "jump".
7766 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7769 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7771 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7772 "last_insn", "loop_end" from rtx to rtx_insn *.
7774 * hw-doloop.c (scan_loop): Likewise for local "insn".
7775 (discover_loop): Likewise for param "tail_insn".
7776 (discover_loops): Likewise for local "tail".
7778 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7779 cast to rtx_insn * when assigning from an rtx local to a
7780 hwloop_info's "last_insn" field.
7782 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7784 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7785 (add_delay_dependencies): Strengthen local "pro" from rtx to
7787 (recompute_todo_spec): Likewise.
7788 (dep_cost_1): Likewise for locals "insn", "used".
7789 (schedule_insn): Likewise for local "dbg".
7790 (schedule_insn): Likewise for locals "pro", "next".
7791 (unschedule_insns_until): Likewise for local "con".
7792 (restore_pattern): Likewise for local "next".
7793 (estimate_insn_tick): Likewise for local "pro".
7794 (resolve_dependencies): Likewise for local "next".
7795 (fix_inter_tick): Likewise.
7796 (fix_tick_ready): Likewise for local "pro".
7797 (add_to_speculative_block): Likewise for locals "check", "twin",
7799 (sched_extend_bb): Likewise for locals "end", "insn".
7800 (init_before_recovery): Likewise for local "x".
7801 (sched_create_recovery_block): Likewise for local "barrier".
7802 (create_check_block_twin): Likewise for local "pro".
7803 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7805 (unlink_bb_notes): Update for change to type of bb_header.
7806 Strengthen locals "prev", "label", "note", "next" from rtx to
7808 (clear_priorities): Likewise for local "pro".
7810 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7812 * gcse.c (struct occr): Strengthen field "insn" from rtx to
7814 (test_insn): Likewise for this global.
7815 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7817 (oprs_anticipatable_p): Likewise.
7818 (oprs_available_p): Likewise.
7819 (insert_expr_in_table): Strengthen param "insn" from rtx to
7821 (hash_scan_set): Likewise.
7822 (hash_scan_clobber): Likewise.
7823 (hash_scan_call): Likewise.
7824 (hash_scan_insn): Likewise.
7825 (compute_hash_table_work): Likewise for local "insn".
7826 (process_insert_insn): Likewise for return type and local "pat".
7827 (insert_insn_end_basic_block): Likewise for locals "new_insn",
7828 "pat", "pat_end", "maybe_cc0_setter".
7829 (pre_edge_insert): Likewise for local "insn".
7830 (pre_insert_copy_insn): Likewise for param "insn".
7831 (pre_insert_copies): Likewise for local "insn".
7832 (struct set_data): Likewise for field "insn".
7833 (single_set_gcse): Likewise for param "insn".
7834 (gcse_emit_move_after): Likewise.
7835 (pre_delete): Likewise for local "insn".
7836 (update_bb_reg_pressure): Likewise for param "from" and local
7838 (should_hoist_expr_to_dom): Likewise for param "from".
7839 (hoist_code): Likewise for local "insn".
7840 (get_pressure_class_and_nregs): Likewise for param "insn".
7841 (calculate_bb_reg_pressure): Likewise for local "insn".
7842 (compute_ld_motion_mems): Likewise.
7844 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7846 * genpeep.c (main): Rename param back from "uncast_ins1" to
7847 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
7850 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7852 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7855 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7856 documentation to state it is only for VSX operations.
7858 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7859 constraint only active if VSX.
7861 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7862 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7865 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7867 * fwprop.c (single_def_use_dom_walker::before_dom_children):
7868 Strengthen local "insn" from rtx to rtx_insn *.
7869 (use_killed_between): Likewise for param "target_insn".
7870 (all_uses_available_at): Likewise for param "target_insn" and
7872 (update_df_init): Likewise for params "def_insn", "insn".
7873 (update_df): Likewise for param "insn".
7874 (try_fwprop_subst): Likewise for param "def_insn" and local
7876 (free_load_extend): Likewise for param "insn".
7877 (forward_propagate_subreg): Likewise for param "def_insn" and
7879 (forward_propagate_asm): Likewise for param "def_insn" and local
7881 (forward_propagate_and_simplify): Likewise for param "def_insn"
7882 and local "use_insn".
7883 (forward_propagate_into): Likewise for locals "def_insn" and
7886 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7888 * function.c (emit_initial_value_sets): Strengthen local "seq"
7889 from rtx to rtx_insn *.
7890 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7892 (instantiate_virtual_regs): Likewise for local "insn".
7893 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7894 (reorder_blocks_1): Likewise for param "insns" and local "insn".
7895 (expand_function_end): Likewise for locals "insn" and "seq".
7896 (epilogue_done): Likewise for local "insn".
7897 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7899 (reposition_prologue_and_epilogue_notes): Likewise for locals
7900 "insn", "last", "note", "first".
7901 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7902 (pass_match_asm_constraints::execute): Likewise for local "insn".
7904 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7906 * output.h (final_scan_insn): Strengthen return type from rtx to
7908 (final_forward_branch_p): Likewise for param.
7909 (current_output_insn): Likewise for this global.
7911 * final.c (rtx debug_insn): Likewise for this variable.
7912 (current_output_insn): Likewise.
7913 (get_attr_length_1): Rename param "insn" to "uncast_insn",
7914 adding "insn" back in as an rtx_insn * with a checked cast, so
7915 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7917 (compute_alignments): Strengthen local "label" from rtx to
7919 (shorten_branches): Rename param from "first" to "uncast_first",
7920 introducing a new local rtx_insn * "first" using a checked cast to
7921 effectively strengthen "first" from rtx to rtx_insn * without
7922 affecting the type signature. Strengthen locals "insn", "seq",
7923 "next", "label" from rtx to rtx_insn *.
7924 (change_scope): Strengthen param "orig_insn" and local "insn" from
7926 (final_start_function): Rename param from "first" to "uncast_first",
7927 introducing a new local rtx_insn * "first" using a checked cast to
7928 effectively strengthen "first" from rtx to rtx_insn * without
7929 affecting the type signature. Strengthen local "insn" from rtx to
7931 (dump_basic_block_info): Strengthen param "insn" from rtx to
7933 (final): Rename param from "first" to "uncast_first",
7934 introducing a new local rtx_insn * "first" using a checked cast to
7935 effectively strengthen "first" from rtx to rtx_insn * without
7936 affecting the type signature. Strengthen locals "insn", "next"
7937 from rtx to rtx_insn *.
7938 (output_alternate_entry_point): Strengthen param "insn" from rtx to
7940 (call_from_call_insn): Strengthen param "insn" from rtx to
7942 (final_scan_insn): Rename param from "insn" to "uncast_insn",
7943 introducing a new local rtx_insn * "insn" using a checked cast to
7944 effectively strengthen "insn" from rtx to rtx_insn * without
7945 affecting the type signature. Strengthen return type and locals
7946 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
7947 now-redundant checked cast to rtx_insn * from both invocations of
7948 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
7949 introducing a local "call_insn" for use when invoking
7950 call_from_call_insn.
7951 (notice_source_line): Strengthen param "insn" from rtx to
7953 (leaf_function_p): Likewise for local "insn".
7954 (final_forward_branch_p): Likewise.
7955 (leaf_renumber_regs): Likewise for param "first".
7956 (rest_of_clean_state): Likewise for locals "insn" and "next".
7957 (self_recursive_call_p): Likewise for param "insn".
7958 (collect_fn_hard_reg_usage): Likewise for local "insn".
7959 (get_call_fndecl): Likewise for param "insn".
7960 (get_call_cgraph_rtl_info): Likewise.
7961 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7962 introducing a new local rtx_insn * "insn" using a checked cast to
7963 effectively strengthen "insn" from rtx to rtx_insn * without
7964 affecting the type signature.
7966 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7967 cast when assigning from param "insn" to current_output_insn.
7968 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7969 so that we can assign it back to current_output_insn.
7971 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7973 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7974 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7975 atmxt540s and atmxt540sreva devices.
7976 * config/avr/avr-tables.opt: Regenerate.
7977 * config/avr/t-multilib: Regenerate.
7978 * doc/avr-mmcu.texi: Regenerate.
7980 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7982 * expr.c (convert_move): Strengthen local "insns" from rtx to
7984 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7985 "top_label" from rtx to rtx_code_label *.
7986 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7988 (emit_single_push_insn): Likewise for locals "prev", "last".
7989 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7990 to rtx_code_label *.
7991 (store_constructor): Likewise for locals "loop_start", "loop_end".
7992 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7994 (expand_expr_real_2): Likewise.
7995 (expand_expr_real_1): Strengthen local "label" from rtx to
7998 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8000 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8001 from rtx to rtx_insn *.
8002 (store_bit_field_1): Likewise.
8003 (extract_bit_field_1): Likewise.
8004 (expand_mult_const): Likewise for local "insns".
8005 (expmed_mult_highpart): Strengthen local "label" from rtx to
8007 (expand_smod_pow2): Likewise.
8008 (expand_sdiv_pow2): Likewise.
8009 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8010 rtx_insn *. Strengthen locals "label", "label1", "label2",
8011 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8012 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8013 (emit_store_flag): Likewise.
8014 (emit_store_flag_force): Strengthen local "label" from rtx to
8016 (do_cmp_and_jump): Likewise for param "label".
8018 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8020 * explow.c (force_reg): Strengthen local "insn" from rtx to
8022 (adjust_stack_1): Likewise.
8023 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8024 "final_label", "available_label", "space_available" from rtx to
8026 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8027 (anti_adjust_stack_and_probe): Likewise.
8029 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8031 * except.h (sjlj_emit_function_exit_after): Strengthen param
8032 "after" from rtx to rtx_insn *. This is only called with
8033 result of get_last_insn (in function.c) so type-change should be
8036 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8037 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8038 to rtx_insn *. These fields are only used from except.c so this
8039 type-change should be self-contained to this patch.
8041 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8042 local "last" from rtx to rtx_insn *.
8043 (dw2_build_landing_pads): Likewise for local "seq".
8044 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8045 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8046 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8048 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8050 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8051 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8052 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8053 referring to an insn. Strengthen local "dispatch_label" from
8054 rtx to rtx_code_label *.
8055 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8057 (expand_eh_return): Strengthen local "around_label" from
8058 rtx to rtx_code_label *.
8059 (convert_to_eh_region_ranges): Strengthen locals "iter",
8060 "last_action_insn", "first_no_action_insn",
8061 "first_no_action_insn_before_switch",
8062 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8064 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8066 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8067 from rtx to rtx_insn *.
8068 (cached_next_real_insn): Likewise.
8069 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8071 (dwarf2out_var_location): Strengthen locals "next_real",
8072 "next_note", "expected_next_loc_note", "last_start", "insn" from
8075 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8077 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8078 from rtx to rtx_insn *.
8079 (create_pseudo_cfg): Likewise for local "insn".
8081 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8083 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8084 from rtx to rtx_insn *.
8085 (df_bb_regno_last_def_find): Likewise.
8087 * df-problems.c (df_rd_bb_local_compute): Likewise.
8088 (df_lr_bb_local_compute): Likewise.
8089 (df_live_bb_local_compute): Likewise.
8090 (df_chain_remove_problem): Likewise.
8091 (df_chain_create_bb): Likewise.
8092 (df_word_lr_bb_local_compute): Likewise.
8093 (df_remove_dead_eq_notes): Likewise for param "insn".
8094 (df_note_bb_compute): Likewise for local "insn".
8095 (simulate_backwards_to_point): Likewise.
8096 (df_md_bb_local_compute): Likewise.
8098 * df-scan.c (df_scan_free_bb_info): Likewise.
8099 (df_scan_start_dump): Likewise.
8100 (df_scan_start_block): Likewise.
8101 (df_install_ref_incremental): Likewise for local "insn".
8102 (df_insn_rescan_all): Likewise.
8103 (df_reorganize_refs_by_reg_by_insn): Likewise.
8104 (df_reorganize_refs_by_insn_bb): Likewise.
8105 (df_recompute_luids): Likewise.
8106 (df_bb_refs_record): Likewise.
8107 (df_update_entry_exit_and_calls): Likewise.
8108 (df_bb_verify): Likewise.
8110 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8112 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8113 "first_note" from rtx to rtx_insn *.
8114 (get_node_of_insn): Likewise for param 2 "insn".
8115 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8117 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8119 (mem_write_insn_p): Likewise.
8120 (mem_access_insn_p): Likewise.
8121 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8122 (def_has_ccmode_p): Likewise for param "insn".
8123 (add_cross_iteration_register_deps): Likewise for locals
8124 "def_insn" and "use_insn".
8125 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8126 (build_intra_loop_deps): Likewise for local "src_insn".
8127 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8129 (get_node_of_insn): Likewise for param "insn".
8131 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8133 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8134 (deletable_insn_p): Strengthen param "insn" from rtx to
8135 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8136 find_call_stack_args, since this is guarded by CALL_P (insn).
8137 (marked_insn_p): Strengthen param "insn" from rtx to
8139 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8140 invoking find_call_stack_args, since this is guarded by
8142 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8143 rtx_insn *; we know this is an insn since this was called by
8145 (mark_nonreg_stores_2): Likewise.
8146 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8148 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8149 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8151 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8152 from rtx to rtx_insn *.
8153 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8155 (delete_unmarked_insns): Likewise for locals "insn", "next".
8156 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8157 (mark_reg_dependencies): Likewise for param "insn".
8158 (rest_of_handle_ud_dce): Likewise for local "insn".
8159 (word_dce_process_block): Likewise.
8160 (dce_process_block): Likewise.
8162 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8164 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8165 from rtx to rtx_insn *.
8166 (struct change_cc_mode_args): Likewise for field "insn".
8167 (this_insn): Strengthen from rtx to rtx_insn *.
8168 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8170 (validate_canon_reg): Strengthen param "insn" from rtx to
8172 (canon_reg): Likewise.
8173 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8175 (record_jump_equiv): Strengthen param "insn" from rtx to
8177 (try_back_substitute_reg): Likewise, also for locals "prev",
8179 (find_sets_in_insn): Likewise for param "insn".
8180 (canonicalize_insn): Likewise.
8181 (cse_insn): Likewise. Add a checked cast.
8182 (invalidate_from_clobbers): Likewise for param "insn".
8183 (invalidate_from_sets_and_clobbers): Likewise.
8184 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8186 (cse_prescan_path): Strengthen local "insn" from rtx to
8188 (cse_extended_basic_block): Likewise for locals "insn" and
8190 (cse_main): Likewise for param "f".
8191 (check_for_label_ref): Likewise for local "insn".
8192 (set_live_p): Likewise for second param ("insn").
8193 (insn_live_p): Likewise for first param ("insn") and for local
8195 (cse_change_cc_mode_insn): Likewise for first param "insn".
8196 (cse_change_cc_mode_insns): Likewise for first and second params
8198 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8200 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8203 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8204 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8205 Anna Tikhonova <anna.tikhonova@intel.com>
8206 Ilya Tocar <ilya.tocar@intel.com>
8207 Andrey Turetskiy <andrey.turetskiy@intel.com>
8208 Ilya Verbin <ilya.verbin@intel.com>
8209 Kirill Yukhin <kirill.yukhin@intel.com>
8210 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8212 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8214 * config/i386/sse.md
8215 (define_mode_iterator VI248_AVX2): Delete.
8216 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8217 (define_mode_iterator VI48_AVX2): Ditto.
8218 (define_insn <shift_insn><mode>3): Delete.
8219 (define_insn "<shift_insn><mode>3<mask_name>" with
8220 VI2_AVX2_AVX512BW): New.
8221 (define_insn "<shift_insn><mode>3<mask_name>" with
8224 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8225 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8226 Anna Tikhonova <anna.tikhonova@intel.com>
8227 Ilya Tocar <ilya.tocar@intel.com>
8228 Andrey Turetskiy <andrey.turetskiy@intel.com>
8229 Ilya Verbin <ilya.verbin@intel.com>
8230 Kirill Yukhin <kirill.yukhin@intel.com>
8231 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8233 * config/i386/sse.md
8234 (define_mode_iterator VI4F_BRCST32x2): New.
8235 (define_mode_attr 64x2_mode): Ditto.
8236 (define_mode_attr 32x2mode): Ditto.
8237 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8238 with VI4F_BRCST32x2): Ditto.
8239 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8240 with V16FI mode iterator): Ditto.
8241 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8243 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8244 with VI8F_BRCST64x2): Ditto.
8246 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8247 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8248 Anna Tikhonova <anna.tikhonova@intel.com>
8249 Ilya Tocar <ilya.tocar@intel.com>
8250 Andrey Turetskiy <andrey.turetskiy@intel.com>
8251 Ilya Verbin <ilya.verbin@intel.com>
8252 Kirill Yukhin <kirill.yukhin@intel.com>
8253 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8255 * config/i386/sse.md
8256 (define_mode_iterator VI8_AVX512VL): New.
8257 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8259 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8261 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8262 (define_mode_iterator V48_AVX512VL): New.
8263 (define_mode_iterator V12_AVX512VL): Ditto.
8264 (define_insn <avx512>_load<mode>_mask): Split into two similar
8265 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8266 Refactor output template.
8267 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8269 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8271 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8273 (reg_available_p): Likewise for param "insn".
8274 (insert_set_in_table): Likewise.
8275 (hash_scan_set): Likewise.
8276 (hash_scan_insn): Likewise.
8277 (make_set_regs_unavailable): Likewise.
8278 (compute_hash_table_work): Likewise for local "insn".
8279 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8281 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8282 (try_replace_reg): Likewise.
8283 (find_avail_set): Likewise.
8284 (cprop_jump): Likewise for params "setcc", "jump".
8285 (constprop_register): Likewise for param "insn".
8286 (cprop_insn): Likewise.
8287 (do_local_cprop): Likewise.
8288 (local_cprop_pass): Likewise for local "insn".
8289 (bypass_block): Likewise for params "setcc" and "jump".
8290 (bypass_conditional_jumps): Likewise for locals "setcc" and
8292 (one_cprop_pass): Likewise for local "insn".
8294 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8296 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8297 from rtx to rtx_insn *.
8298 (struct comparison): Likewise, also for field "prev_clobber".
8299 (conforming_compare): Likewise for param "insn".
8300 (arithmetic_flags_clobber_p): Likewise.
8301 (find_flags_uses_in_insn): Likewise.
8302 (find_comparison_dom_walker::before_dom_children): Likewise for
8303 locals "insn", "next", "last_clobber".
8304 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8306 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8308 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8309 "insn" from rtx to rtx_insn *.
8310 (single_set_for_csa): Likewise for param "insn".
8311 (record_one_stack_ref): Likewise.
8312 (try_apply_stack_adjustment): Likewise.
8313 (struct record_stack_refs_data): Likewise for field "insn".
8314 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8315 (prev_active_insn_bb): Likewise for return type and param "insn".
8316 (next_active_insn_bb): Likewise.
8317 (force_move_args_size_note): Likewise for params "prev" and "last"
8318 and locals "test", "next_candidate", "prev_candidate".
8319 (combine_stack_adjustments_for_block): Strengthen locals
8320 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8323 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8325 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8326 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8327 (subst_insn): Likewise for this variable.
8328 (added_links_insn): Likewise.
8329 (struct insn_link): Likewise for field "insn".
8330 (alloc_insn_link): Likewise for param "insn".
8331 (struct undobuf): Likewise for field "other_insn".
8332 (find_single_use): Likewise for param "insn" and local "next".
8333 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8334 (delete_noop_moves): Likewise for locals "insn", "next".
8335 (create_log_links): Likewise for locals "insn", "use_insn".
8336 Strengthen local "next_use" from rtx * to rtx_insn **.
8337 (insn_a_feeds_b): Likewise for params "a", "b".
8338 (combine_instructions): Likewise for param "f" and locals "insn",
8339 "next", "prev", "first", "last_combined_insn", "link", "link1",
8340 "temp". Replace use of NULL_RTX with NULL when referring to
8342 (setup_incoming_promotions): Likewise for param "first"
8343 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8344 (can_combine_p): Likewise for params "insn", "i3", "pred",
8345 "pred2", "succ", "succ2" and for local "p".
8346 (combinable_i3pat): Likewise for param "i3".
8347 (cant_combine_insn_p): Likewise for param "insn".
8348 (likely_spilled_retval_p): Likewise.
8349 (adjust_for_new_dest): Likewise.
8350 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8351 (try_combine): Likewise for return type and for params "i3", "i2",
8352 "i1", "i0", "last_combined_insn", and for locals "insn",
8353 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8354 "i0_insn". Eliminate local "tem" in favor of new locals
8355 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8356 checked cast for now to rtx_insn * on the return type of
8357 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8359 (find_split_point): Strengthen param "insn" from rtx to
8361 (simplify_set): Likewise for local "other_insn".
8362 (recog_for_combine): Likewise for param "insn".
8363 (record_value_for_reg): Likewise.
8364 (record_dead_and_set_regs_1): Likewise for local
8366 (record_dead_and_set_regs): Likewise for param "insn".
8367 (record_promoted_value): Likewise.
8368 (check_promoted_subreg): Likewise.
8369 (get_last_value_validate): Likewise.
8370 (reg_dead_at_p): Likewise.
8371 (move_deaths): Likewise for param "to_insn".
8372 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8373 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8374 in favor of new locals "tem_note" and "tem_insn", the latter being
8376 (distribute_links): Strengthen locals "place", "insn" from rtx to
8379 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8381 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8383 (can_delete_label_p): Require a const rtx_code_label * rather than
8385 (delete_insn): Add checked cast to rtx_code_label * when we know
8386 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8388 (delete_insn_chain): Strengthen locals "prev" and "current" from
8389 rtx to rtx_insn *. Add a checked cast when assigning from
8390 "finish" (strengthening the params will come later). Add a
8391 checked cast to rtx_note * in region where we know
8393 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8395 (compute_bb_for_insn): Likewise.
8396 (free_bb_for_insn): Likewise for local "insn".
8397 (compute_bb_for_insn): Likewise.
8398 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8399 local "insn" from rtx to rtx_insn *
8400 (flow_active_insn_p): Require a const rtx_insn * rather than a
8402 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8404 (can_fallthru): Likewise for locals "insn" and "insn2".
8405 (bb_note): Likewise for local "note".
8406 (first_insn_after_basic_block_note): Likewise for local "note" and
8408 (rtl_split_block): Likewise for locals "insn" and "next".
8409 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8411 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8412 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8414 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8415 them), "kill_from", "barrier", "new_insn".
8416 (patch_jump_insn): Likewise for params "insn", "old_label".
8417 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8418 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8419 "old_label", "new_label".
8420 (rtl_tidy_fallthru_edge): Likewise for local "q".
8421 (rtl_split_edge): Likewise for locals "before", "last".
8422 (commit_one_edge_insertion): Likewise for locals "before",
8423 "after", "insns", "tmp", "last", adding a checked cast where
8424 currently necessary.
8425 (commit_edge_insertions): Likewise.
8426 (rtl_dump_bb): Likewise for locals "insn", "last".
8427 (print_rtl_with_bb): Likewise for local "x".
8428 (rtl_verify_bb_insns): Likewise for local "x".
8429 (rtl_verify_bb_pointers): Likewise for local "insn".
8430 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8432 (rtl_verify_fallthru): Likewise for local "insn".
8433 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8434 (purge_dead_edges): Likewise for local "insn".
8435 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8436 (skip_insns_after_block): Likewise for return type and for locals
8437 "insn", "last_insn", "next_head", "prev".
8438 (record_effective_endpoints): Likewise for locals "next_insn",
8440 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8441 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8442 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8443 (duplicate_insn_chain): For now, add checked cast from rtx to
8444 rtx_insn * when returning insn.
8445 (cfg_layout_duplicate_bb): Likewise for local "insn".
8446 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8448 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8449 (rtl_block_empty_p): Likewise.
8450 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8451 "split_point", "last".
8452 (rtl_block_ends_with_call_p): Likewise for local "insn".
8453 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8455 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8456 "split_at_insn" from rtx to rtx_insn *.
8457 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8458 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8459 to const rtx_insn *.
8460 (rtl_account_profile_record): Likewise.
8462 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8464 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8466 (average_num_loop_insns): Likewise.
8467 (init_set_costs): Likewise for local "seq".
8468 (seq_cost): Likewise for param "seq", from const_rtx to const
8471 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8473 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8476 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8478 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8479 "f1" and "f2" from rtx * to rtx_insn **.
8480 (flow_find_head_matching_sequence): Likewise.
8482 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8483 "cbranch_insn" from rtx to rtx_insn *.
8484 (thread_jump): Likewise for local "insn".
8485 (try_forward_edges): Likewise for local "last".
8486 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8487 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8489 (can_replace_by): Likewise for params "i1", "i2".
8490 (old_insns_match_p): Likewise.
8491 (merge_notes): Likewise.
8492 (walk_to_nondebug_insn): Likewise for param "i1".
8493 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8494 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8495 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8496 (flow_find_head_matching_sequence): Strengthen params "f1" and
8497 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8498 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8500 (outgoing_edges_match): Likewise for locals "last1", "last2".
8501 (try_crossjump_to_edge): Likewise for local "insn".
8502 Replace call to for_each_rtx with for_each_rtx_in_insn.
8504 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8505 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8506 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8507 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8508 (try_optimize_cfg): Strengthen local "last" from rtx to
8510 (delete_dead_jumptables): Likewise for locals "insn", "next",
8513 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8514 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8515 "rtx else_first_tail", to reflect the basic-block.h changes above.
8517 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8519 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8521 (purge_dead_tablejump_edges): Likewise.
8522 (find_bb_boundaries): Likewise for locals "insn", "end",
8523 "flow_transfer_insn".
8525 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8527 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8528 "ins" and "prev" from rtx to rtx_insn *.
8530 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8532 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8534 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8535 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8537 (load_register_parameters): Likewise for local "before_arg".
8538 (check_sibcall_argument_overlap): Likewise for param "insn".
8539 (expand_call): Likewise for locals "normal_call_insns",
8540 "tail_call_insns", "insns", "before_call", "after_args",
8541 "before_arg", "last", "prev". Strengthen one of the "last" from
8542 rtx to rtx_call_insn *.
8543 (fixup_tail_calls): Strengthen local "insn" from rtx to
8545 (emit_library_call_value_1): Likewise for locals "before_call" and
8548 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8550 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8551 and "last" from rtx to rtx_insn *.
8552 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8553 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8555 (expand_errno_check): Strengthen local "lab" from rtx to
8557 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8559 (expand_builtin_mathfn_2): Likewise.
8560 (expand_builtin_mathfn_ternary): Likewise.
8561 (expand_builtin_mathfn_3): Likewise.
8562 (expand_builtin_interclass_mathfn): Likewise for local "last".
8563 (expand_builtin_int_roundingfn): Likewise for local "insns".
8564 (expand_builtin_int_roundingfn_2): Likewise.
8565 (expand_builtin_strlen): Likewise for local "before_strlen".
8566 (expand_builtin_strncmp): Likewise for local "seq".
8567 (expand_builtin_signbit): Likewise for local "last".
8568 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8569 from rtx to rtx_code_label *.
8570 (expand_stack_restore): Strengthen local "prev" from rtx to
8573 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8575 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8577 (struct btr_def_s): Likewise.
8578 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8580 (add_btr_def): Likewise.
8581 (new_btr_user): Likewise.
8582 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8584 (link_btr_uses): Likewise.
8585 (move_btr_def): Likewise for locals "insp", "old_insn",
8586 "new_insn". Add checked cast to rtx_insn * for now on result of
8588 (can_move_up): Strengthen param "insn" from const_rtx to
8591 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8593 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8595 (get_uncond_jump_length): Likewise for locals "label", "jump".
8596 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8598 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8599 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8600 (find_jump_block): Likewise for local "insn".
8601 (fix_crossing_conditional_branches): Likewise for locals
8602 "old_jump", "new_jump".
8603 (fix_crossing_unconditional_branches): Likewise for locals
8604 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8605 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8607 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8609 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8611 (struct mem_insn): Likewise for field "insn".
8612 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8613 (reg_next_inc_use): Likewise.
8614 (reg_next_def): Likewise.
8615 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8616 from rtx to rtx_insn *.
8617 (move_insn_before): Likewise for param "next_insn" and local "insns".
8618 (attempt_change): Likewise for local "mov_insn".
8619 (try_merge): Likewise for param "last_insn".
8620 (get_next_ref): Likewise for return type and local "insn".
8621 Strengthen param "next_array" from rtx * to rtx_insn **.
8622 (parse_add_or_inc): Strengthen param "insn" from rtx to
8624 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8626 (merge_in_block): Likewise for locals "insn", "curr",
8628 (pass_inc_dec::execute): Update allocations of the arrays to
8629 reflect the stronger types.
8631 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8633 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8634 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8635 from rtx to rtx_code_label *.
8637 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8639 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8642 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8644 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8645 generated a warning and prevented bootstrapping the compiler.
8647 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8649 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8652 * jump.c (delete_related_insns): Likewise, also for locals "next"
8655 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8657 * genautomata.c (output_internal_insn_latency_func): When writing
8658 the function "internal_insn_latency" to insn-automata.c,
8659 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8660 allowing the optional guard function of (define_bypass) clauses to
8661 expect a pair of rtx_insn *, rather than a pair of rtx.
8662 (output_insn_latency_func): When writing the function
8663 "insn_latency", add an "uncast_" prefix to params "insn" and
8664 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8665 using checked casts from the params, thus enabling the above
8666 change to the generated "internal_insn_latency" function.
8668 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8670 PR tree-optimization/62091
8671 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8672 handle correctly arrays.
8673 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8675 (record_known_type): Walk into inner type.
8676 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8677 condition on no type changes.
8679 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8681 * genattrtab.c (write_attr_get): Within the generated get_attr_
8682 functions, rename param "insn" to "uncast_insn" and reintroduce
8683 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8684 is an rtx_insn * within insn-attrtab.c
8686 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8688 * output.h (peephole): Strengthen return type from rtx to
8690 * rtl.h (delete_for_peephole): Likewise for both params.
8691 * genpeep.c (main): In generated "peephole" function, strengthen
8692 return type and local "insn" from rtx to rtx_insn *. For now,
8693 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8694 rtx_insn *, with a checked cast.
8695 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8696 locals "insn", "next", "prev" from rtx to rtx_insn *.
8698 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8700 PR tree-optimization/62112
8701 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8702 * gimple-iterator.h (gsi_replace): Return bool.
8703 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8704 moved from ref_may_alias_global_p.
8705 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8707 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8708 (stmt_kills_ref_p_1): Rename...
8709 (stmt_kills_ref_p): ... to this.
8710 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8711 stmt_kills_ref_p): Declare.
8712 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8713 Move the self-assignment case...
8714 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8716 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8718 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8720 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8721 "after". For now, don't strengthen param "trial", which requires
8722 adding checked casts when returning it.
8724 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8726 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8727 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8728 "var_location" hook from rtx to rtx_insn *.
8729 (debug_nothing_rtx): Delete in favor of...
8730 (debug_nothing_rtx_code_label): New prototype.
8731 (debug_nothing_rtx_rtx): Delete unused prototype.
8732 (debug_nothing_rtx_insn): New prototype.
8734 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8735 invoking debug_hooks->var_location (in two places, one in a NOTE
8736 case of a switch statement, the other guarded by a CALL_P
8737 conditional. Add checked cast to rtx_code_label * when invoking
8738 debug_hooks->label (within CODE_LABEL case of switch statement).
8740 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8741 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8742 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8743 (xcoff_debug_hooks): Likewise.
8744 * debug.c (do_nothing_debug_hooks): Likewise.
8745 (debug_nothing_rtx): Delete in favor of...
8746 (debug_nothing_rtx_insn): New function.
8747 (debug_nothing_rtx_rtx): Delete unused function.
8748 (debug_nothing_rtx_code_label): New function.
8749 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8750 debug_nothing_rtx to debug_nothing_rtx_code_label.
8751 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8753 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8754 debug_nothing_rtx to debug_nothing_rtx_insn.
8755 (sdbout_label): Strengthen param "insn" from rtx to
8757 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8758 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8759 "var_location" hook from debug_nothing_rtx to
8760 debug_nothing_rtx_insn.
8762 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8764 * recog.h (insn_output_fn): Update this function typedef to match
8765 the changes below to the generated output functions, strengthening
8766 the 2nd param from rtx to rtx_insn *.
8768 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8769 insn when invoking an output function, to match the new signature
8770 of insn_output_fn with a stronger second param.
8772 * genconditions.c (write_header): In the generated code for
8773 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8774 to match the other changes in this patch.
8776 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8777 the generated "gen_" functions from rtx to rtx_insn * within their
8780 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8781 the subfunctions within the generated "recog_", "split", "peephole2"
8782 function trees from rtx to rtx_insn *. For now, the top-level
8783 generated functions ("recog", "split", "peephole2") continue to
8784 take a plain rtx for "insn", to avoid introducing dependencies on
8785 other patches. Rename this 2nd param from "insn" to
8786 "uncast_insn", and reintroduce "insn" as a local variable of type
8787 rtx_insn *, initialized at the top of the generated function with
8788 a checked cast on "uncast_insn".
8789 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8790 the generated "gen_" functions from rtx to rtx_insn * within their
8793 * genoutput.c (process_template): Strengthen the 2nd param within
8794 the generated "output_" functions "insn" from rtx to rtx_insn *.
8796 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8798 * tree-profile.c (tree_profiling): Skip external functions
8799 when doing coverage instrumentation.
8800 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8802 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8804 * config/rs6000/altivec.h (vec_cpsgn): New #define.
8805 (vec_mergee): Likewise.
8806 (vec_mergeo): Likewise.
8807 (vec_cntlz): Likewise.
8808 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8809 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8810 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8812 * doc/extend.texi: Document various forms of vec_cpsgn,
8813 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8814 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8815 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8816 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8817 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8819 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8821 * config/rs6000/rs6000.c (context.h): New include.
8822 (tree-pass.h): Likewise.
8823 (make_pass_analyze_swaps): New decl.
8824 (rs6000_option_override): Register pass_analyze_swaps.
8825 (swap_web_entry): New subsclass of web_entry_base (df.h).
8826 (special_handling_values): New enum.
8827 (union_defs): New function.
8828 (union_uses): Likewise.
8829 (insn_is_load_p): Likewise.
8830 (insn_is_store_p): Likewise.
8831 (insn_is_swap_p): Likewise.
8832 (rtx_is_swappable_p): Likewise.
8833 (insn_is_swappable_p): Likewise.
8834 (chain_purpose): New enum.
8835 (chain_contains_only_swaps): New function.
8836 (mark_swaps_for_removal): Likewise.
8837 (swap_const_vector_halves): Likewise.
8838 (adjust_subreg_index): Likewise.
8839 (permute_load): Likewise.
8840 (permute_store): Likewise.
8841 (handle_special_swappables): Likewise.
8842 (replace_swap_with_copy): Likewise.
8843 (dump_swap_insn_table): Likewise.
8844 (rs6000_analyze_swaps): Likewise.
8845 (pass_data_analyze_swaps): New pass_data.
8846 (pass_analyze_swaps): New rtl_opt_pass.
8847 (make_pass_analyze_swaps): New function.
8848 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8850 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8852 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8853 type from rtx to rtx_insn *.
8854 (create_copy_of_insn_rtx): Likewise.
8855 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8856 (create_copy_of_insn_rtx): Likewise, also for local "res".
8858 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8860 * rtl.h (find_first_parameter_load): Strengthen return type from
8862 * rtlanal.c (find_first_parameter_load): Strengthen return type
8863 from rtx to rtx_insn *. Add checked cast for now, to postpone
8864 strengthening the params.
8866 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8869 * diagnostic.c: Set default caret.
8870 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8872 * diagnostic.h (struct diagnostic_context):
8874 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8876 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8877 (sel_bb_head): Strengthen return type insn_t (currently just an
8879 (sel_bb_end): Likewise.
8881 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8882 (sel_bb_head): Strengthen return type and local "head" from
8883 insn_t (currently just an rtx) to rtx_insn *.
8884 (sel_bb_end): Likewise for return type.
8885 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8888 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8890 * basic-block.h (get_last_bb_insn): Strengthen return type from
8892 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8895 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8898 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8900 (diagnostic_report_diagnostic): ... from here.
8901 * toplev.c (general_init): Move code to c-family.
8903 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8905 * df.h (web_entry_base): Replace existing struct web_entry with a
8906 new class web_entry_base with only the predecessor member.
8907 (unionfind_root): Remove declaration and move to class member.
8908 (unionfind_union): Remove declaration and move to friend
8910 (union_defs): Remove declaration.
8911 * web.c (web_entry_base::unionfind_root): Modify to be member
8912 function and adjust accessors.
8913 (unionfind_union): Modify to be friend function and adjust
8915 (web_entry): New subclass of web_entry_base containing the reg
8917 (union_match_dups): Modify for struct -> class changes.
8918 (union_defs): Likewise.
8919 (entry_register): Likewise.
8920 (pass_web::execute): Likewise.
8922 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
8924 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8925 builtin define __VEC_ELEMENT_REG_ORDER__.
8927 2014-08-20 Martin Jambor <mjambor@suse.cz>
8928 Wei Mi <wmi@google.com>
8932 * tree-ssa-operands.c (update_stmt_operands): Remove
8933 MODIFIED_NORETURN_CALLS.
8934 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8935 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8936 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8937 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8938 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8939 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8940 (gimple_call_set_ctrl_altering): New func.
8941 (gimple_call_ctrl_altering_p): Ditto.
8942 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8943 (make_blocks): Use gimple_call_initialize_ctrl_altering.
8944 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8945 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8946 remove MODIFIED_NORETURN_CALLS.
8948 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8950 * coverage.c (coverage_compute_profile_id): Return non-0;
8951 also handle symbols with unique name.
8952 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8954 2014-08-20 Steve Ellcey <sellcey@mips.com>
8957 * doc/sourcebuild.texi (non_strict_align): New.
8959 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8961 * cgraphunit.c (ipa_passes, compile): Reshedule
8962 symtab_remove_unreachable_nodes passes; update comments.
8963 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8964 TODO_remove_functions before the pass; the functions ought to be
8966 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8967 TODO_remove_functions.
8968 * passes.c (pass_data_early_local_passes): Do not schedule function
8970 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8972 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8975 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8976 before setting the option.
8977 * diagnostic.c (diagnostic_classify_diagnostic): Record
8978 command-line status.
8980 2014-08-20 Richard Biener <rguenther@suse.de>
8983 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8984 to build uint{16,32,64}_type_node.
8986 2014-08-20 Terry Guo <terry.guo@arm.com>
8988 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8989 with immediate_operand.
8991 2014-08-20 David Malcolm <dmalcolm@redhat.com>
8993 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8994 "insn" from an as_a to a safe_as_a, for the case when "insn" is
8997 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8999 PR preprocessor/51303
9000 * incpath.c (remove_duplicates): Use cpp_warning.
9002 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9006 * doc/options.texi (CPP): Document it.
9007 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9008 * optc-gen.awk: Handle CPP.
9009 * opth-gen.awk: Likewise.
9011 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9013 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9015 (duplicate_insn_chain): Likewise.
9016 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9017 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9018 checked cast for now (until we can strengthen the params in the
9020 (duplicate_insn_chain): Likewise.
9022 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9024 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9026 (prev_cc0_setter): Likewise.
9028 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9029 rtx_insn *, adding checked casts for now as necessary.
9030 (prev_cc0_setter): Likewise.
9032 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9034 * expr.h (emit_move_insn): Strengthen return type from rtx to
9036 (emit_move_insn_1): Likewise.
9037 (emit_move_complex_push): Likewise.
9038 (emit_move_complex_parts): Likewise.
9040 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9041 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9043 (emit_move_complex_push): Strengthen return type from rtx to
9045 (emit_move_complex): Likewise, also for local "ret".
9046 (emit_move_ccmode): Likewise.
9047 (emit_move_multi_word): Likewise for return type and locals
9049 (emit_move_insn_1): Likewise for return type and locals "result",
9051 (emit_move_insn): Likewise for return type and local "last_insn".
9052 (compress_float_constant): Likewise.
9054 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9056 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9057 from rtx to rtx_insn *.
9059 * rtl.h (emit_insn_before): Likewise.
9060 (emit_insn_before_noloc): Likewise.
9061 (emit_insn_before_setloc): Likewise.
9062 (emit_jump_insn_before): Likewise.
9063 (emit_jump_insn_before_noloc): Likewise.
9064 (emit_jump_insn_before_setloc): Likewise.
9065 (emit_call_insn_before): Likewise.
9066 (emit_call_insn_before_noloc): Likewise.
9067 (emit_call_insn_before_setloc): Likewise.
9068 (emit_debug_insn_before): Likewise.
9069 (emit_debug_insn_before_noloc): Likewise.
9070 (emit_debug_insn_before_setloc): Likewise.
9071 (emit_label_before): Likewise.
9072 (emit_insn_after): Likewise.
9073 (emit_insn_after_noloc): Likewise.
9074 (emit_insn_after_setloc): Likewise.
9075 (emit_jump_insn_after): Likewise.
9076 (emit_jump_insn_after_noloc): Likewise.
9077 (emit_jump_insn_after_setloc): Likewise.
9078 (emit_call_insn_after): Likewise.
9079 (emit_call_insn_after_noloc): Likewise.
9080 (emit_call_insn_after_setloc): Likewise.
9081 (emit_debug_insn_after): Likewise.
9082 (emit_debug_insn_after_noloc): Likewise.
9083 (emit_debug_insn_after_setloc): Likewise.
9084 (emit_label_after): Likewise.
9085 (emit_insn): Likewise.
9086 (emit_debug_insn): Likewise.
9087 (emit_jump_insn): Likewise.
9088 (emit_call_insn): Likewise.
9089 (emit_label): Likewise.
9090 (gen_clobber): Likewise.
9091 (emit_clobber): Likewise.
9092 (gen_use): Likewise.
9093 (emit_use): Likewise.
9096 (emit_barrier_before): Strengthen return type from rtx to
9098 (emit_barrier_after): Likewise.
9099 (emit_barrier): Likewise.
9101 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9102 from rtx to rtx_insn *. Add checked casts for now when converting
9103 "last" from rtx to rtx_insn *.
9104 (emit_insn_before_noloc): Likewise for return type.
9105 (emit_jump_insn_before_noloc): Likewise.
9106 (emit_call_insn_before_noloc): Likewise.
9107 (emit_debug_insn_before_noloc): Likewise.
9108 (emit_barrier_before): Strengthen return type and local "insn"
9109 from rtx to rtx_barrier *.
9110 (emit_label_before): Strengthen return type from rtx to
9111 rtx_insn *. Add checked cast for now when returning param
9112 (emit_pattern_after_noloc): Strengthen return type from rtx to
9113 rtx_insn *. Add checked casts for now when converting "last" from
9115 (emit_insn_after_noloc): Strengthen return type from rtx to
9117 (emit_jump_insn_after_noloc): Likewise.
9118 (emit_call_insn_after_noloc): Likewise.
9119 (emit_debug_insn_after_noloc): Likewise.
9120 (emit_barrier_after): Strengthen return type from rtx to
9122 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9123 Add checked cast for now when converting "label" from rtx to
9125 (emit_pattern_after_setloc): Strengthen return type from rtx to
9126 rtx_insn *. Add checked casts for now when converting "last" from
9128 (emit_pattern_after): Strengthen return type from rtx to
9130 (emit_insn_after_setloc): Likewise.
9131 (emit_insn_after): Likewise.
9132 (emit_jump_insn_after_setloc): Likewise.
9133 (emit_jump_insn_after): Likewise.
9134 (emit_call_insn_after_setloc): Likewise.
9135 (emit_call_insn_after): Likewise.
9136 (emit_debug_insn_after_setloc): Likewise.
9137 (emit_debug_insn_after): Likewise.
9138 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9139 when converting "last" from rtx to rtx_insn *.
9140 (emit_pattern_before): Strengthen return type from rtx to
9142 (emit_insn_before_setloc): Likewise.
9143 (emit_insn_before): Likewise.
9144 (emit_jump_insn_before_setloc): Likewise.
9145 (emit_jump_insn_before): Likewise.
9146 (emit_call_insn_before_setloc): Likewise.
9147 (emit_call_insn_before): Likewise.
9148 (emit_debug_insn_before_setloc): Likewise.
9149 (emit_debug_insn_before): Likewise.
9150 (emit_insn): Strengthen return type and locals "last", "insn",
9151 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9152 within cases where we know we have an insn.
9153 (emit_debug_insn): Likewise.
9154 (emit_jump_insn): Likewise.
9155 (emit_call_insn): Strengthen return type and local "insn" from rtx
9157 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9158 a checked cast to rtx_insn * for now on "label".
9159 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9160 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9161 (emit_use): Likewise.
9162 (gen_use): Likewise, also for local "seq".
9163 (emit): Likewise for return type and local "insn".
9164 (rtx_insn): Likewise for return type and local "new_rtx".
9166 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9167 from rtx to rtx_barrier *.
9169 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9170 changed return type from rtx to rtx_insn *, we must update
9171 "emit_fn" type, and this in turn means updating...
9172 (frame_insn): ...this. Strengthen return type from rtx to
9173 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9175 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9177 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9178 rtx to rtx_jump_table_data *. Also for local.
9179 * rtl.h (emit_jump_table_data): Likewise.
9181 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9183 * basic-block.h (create_basic_block_structure): Strengthen third
9184 param "bb_note" from rtx to rtx_note *.
9185 * rtl.h (emit_note_before): Strengthen return type from rtx to
9187 (emit_note_after): Likewise.
9188 (emit_note): Likewise.
9189 (emit_note_copy): Likewise. Also, strengthen param similarly.
9190 * function.h (struct rtl_data): Strengthen field
9191 "x_stack_check_probe_note" from rtx to rtx_note *.
9193 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9194 from rtx to rtx_note *.
9195 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9196 "bb_note" from rtx to rtx_note *.
9197 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9198 when calling emit_note_copy.
9199 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9201 (emit_note_after): Likewise.
9202 (emit_note_before): Likewise.
9203 (emit_note_copy): Likewise. Also, strengthen param similarly.
9204 (emit_note): Likewise.
9205 * except.c (emit_note_eh_region_end): Likewise for return type.
9206 Strengthen local "next" from rtx to rtx_insn *.
9207 (convert_to_eh_region_ranges): Strengthen local "note"
9208 from rtx to rtx_note *.
9209 * final.c (change_scope): Likewise.
9210 (reemit_insn_block_notes): Likewise, for both locals named "note".
9211 Also, strengthen local "insn" from rtx to rtx_insn *.
9212 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9214 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9215 strengthen local "seq" from rtx to rtx_insn *.
9216 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9218 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9220 (get_bb_note_from_pool): Strengthen return type from rtx to
9222 (sel_create_basic_block): Strengthen local "new_bb_note" from
9223 insn_t to rtx_note *.
9224 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9225 "note" from rtx to rtx_note *.
9226 (emit_notes_in_bb): Likewise.
9228 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9230 * function.h (struct rtl_data): Strengthen field
9231 "x_parm_birth_insn" from rtx to rtx_insn *.
9232 * function.c (struct assign_parm_data_all): Strengthen fields
9233 "first_conversion_insn" and "last_conversion_insn" from rtx to
9236 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9238 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9239 to rtx_insn *; also for local "var_end_seq".
9240 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9241 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9243 (expand_gimple_cond): Likewise for locals "last2" and "last".
9244 (mark_transaction_restart_calls): Likewise for local "insn".
9245 (expand_gimple_stmt): Likewise for return type and locals "last"
9247 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9248 (avoid_complex_debug_insns): Likewise for param "insn".
9249 (expand_debug_locations): Likewise for locals "insn", "last",
9250 "prev_insn" and "insn2".
9251 (expand_gimple_basic_block): Likewise for local "last".
9252 (construct_exit_block): Likewise for locals "head", "end",
9254 (pass_expand::execute): Likewise for locals "var_seq",
9255 "var_ret_seq", "next".
9257 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9259 * asan.h (asan_emit_stack_protection): Strengthen return type from
9261 * asan.c (asan_emit_stack_protection): Likewise. Add local
9262 "insns" to hold the return value.
9264 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9266 * basic-block.h (bb_note): Strengthen return type from rtx to
9268 * sched-int.h (bb_note): Likewise.
9269 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9271 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9273 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9276 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9277 "insn" from rtx to rtx_insn *.
9278 (make_debug_insn_raw): Strengthen return type from rtx to
9279 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9280 (make_jump_insn_raw): Strengthen return type from rtx to
9281 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9282 (make_call_insn_raw): Strengthen return type from rtx to
9283 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9284 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9285 callback from rtx to rtx_insn *; likewise for local "insn" and
9286 "next", adding a checked cast to rtx_insn in the relevant cases of
9287 the switch statement.
9288 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9289 callback from rtx to rtx_insn *.
9290 (emit_pattern_after_setloc): Likewise.
9291 (emit_pattern_after): Likewise.
9292 (emit_pattern_before_setloc): Likewise.
9293 (emit_pattern_before): Likewise.
9295 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9297 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9299 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9300 accepting an rtx_insn *.
9301 (last_call_insn): Strengthen return type from rtx to
9304 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9306 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9307 "insns" from rtx to rtx_insn *.
9308 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9309 locals "insn" and "prev".
9311 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9313 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9314 rtx_jump_table_data **.
9316 * cfgbuild.c (make_edges): Introduce local "table", using it in
9317 place of "tmp" for jump table data.
9318 (find_bb_boundaries): Strengthen local "table" from rtx to
9319 rtx_jump_table_data *.
9320 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9321 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9322 (try_crossjump_to_edge): Likewise.
9323 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9325 (patch_jump_insn): Introduce local "table", using it in place of
9326 "tmp" for jump table data.
9327 (force_nonfallthru_and_redirect): Introduce local "table", so that
9328 call to tablejump_p can receive an rtx_jump_table_data **. Update
9329 logic around the call to overwrite "note" appropriately if
9330 tablejump_p returns non-zero.
9331 (get_last_bb_insn): Introduce local "table", using it in place of
9332 "tmp" for jump table data.
9333 * dwarf2cfi.c (create_trace_edges): Likewise.
9335 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9336 from rtx to rtx_jump_table_data *.
9337 (create_fix_barrier): Strengthen local "tmp" from rtx to
9338 rtx_jump_table_data *.
9339 (arm_reorg): Likewise for local "table".
9341 * config/s390/s390.c (s390_chunkify_start): Likewise.
9343 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9345 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9346 rtx to rtx_jump_table_data *.
9348 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9349 rtx_jump_table_data **. Add a checked cast when writing through
9350 the pointer: we know there that local "table" is non-NULL and that
9351 JUMP_TABLE_DATA_P (table) holds.
9352 (label_is_jump_target_p): Introduce local "table", using it in
9353 place of "tmp" for jump table data.
9355 2014-08-19 Marek Polacek <polacek@redhat.com>
9358 * doc/invoke.texi: Document -Wbool-compare.
9360 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9362 * rtl.h (entry_of_function): Strengthen return type from rtx to
9364 * cfgrtl.c (entry_of_function): Likewise.
9366 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9368 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9369 rtx_insn *, adding a checked cast for now.
9370 (get_last_insn): Likewise.
9372 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9374 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9377 * emit-rtl.c (gen_label_rtx): Likewise.
9379 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9381 * rtl.h (previous_insn): Strengthen return type from rtx to
9383 (next_insn): Likewise.
9384 (prev_nonnote_insn): Likewise.
9385 (prev_nonnote_insn_bb): Likewise.
9386 (next_nonnote_insn): Likewise.
9387 (next_nonnote_insn_bb): Likewise.
9388 (prev_nondebug_insn): Likewise.
9389 (next_nondebug_insn): Likewise.
9390 (prev_nonnote_nondebug_insn): Likewise.
9391 (next_nonnote_nondebug_insn): Likewise.
9392 (prev_real_insn): Likewise.
9393 (next_real_insn): Likewise.
9394 (prev_active_insn): Likewise.
9395 (next_active_insn): Likewise.
9397 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9398 rtx_insn *, adding a checked cast.
9399 (previous_insn): Likewise.
9400 (next_nonnote_insn): Likewise.
9401 (next_nonnote_insn_bb): Likewise.
9402 (prev_nonnote_insn): Likewise.
9403 (prev_nonnote_insn_bb): Likewise.
9404 (next_nondebug_insn): Likewise.
9405 (prev_nondebug_insn): Likewise.
9406 (next_nonnote_nondebug_insn): Likewise.
9407 (prev_nonnote_nondebug_insn): Likewise.
9408 (next_real_insn): Likewise.
9409 (prev_real_insn): Likewise.
9410 (next_active_insn): Likewise.
9411 (prev_active_insn): Likewise.
9413 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9414 param "stepfunc" so that it returns an rtx_insn * rather than an
9415 rtx, to track the change to prev_nonnote_insn_bb, which is the
9416 only function this is called with.
9417 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9419 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9421 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9424 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9426 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9427 (class rtx_nonjump_insn): Likewise.
9428 (class rtx_jump_insn): Likewise.
9429 (class rtx_call_insn): Likewise.
9430 (class rtx_jump_table_data): Likewise.
9431 (class rtx_barrier): Likewise.
9432 (class rtx_code_label): Likewise.
9433 (class rtx_note): Likewise.
9435 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9436 adding the invariant DEBUG_INSN_P (X).
9437 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9438 the invariant NONJUMP_INSN_P (X).
9439 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9440 the invariant JUMP_P (X).
9441 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9442 the invariant CALL_P (X).
9443 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9444 invariant JUMP_TABLE_DATA_P (X).
9445 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9446 invariant BARRIER_P (X).
9447 (class rtx_code_label): New, a subclass of rtx_insn, adding
9448 the invariant LABEL_P (X).
9449 (class rtx_note): New, a subclass of rtx_insn, adding
9450 the invariant NOTE_P(X).
9451 (is_a_helper <rtx_debug_insn *>::test): New.
9452 (is_a_helper <rtx_nonjump_insn *>::test): New.
9453 (is_a_helper <rtx_jump_insn *>::test): New.
9454 (is_a_helper <rtx_call_insn *>::test): New.
9455 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9456 overloaded for both rtx and rtx_insn *.
9457 (is_a_helper <rtx_barrier *>::test): New.
9458 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9459 for both rtx and rtx_insn *.
9460 (is_a_helper <rtx_note *>::test): New.
9462 2014-08-19 Marek Polacek <polacek@redhat.com>
9464 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9465 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9466 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9467 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9469 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9471 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9472 rtx_insn *. To help with transition, for now, convert from an
9473 access macro into a pair of functions: BND_TO, returning an
9475 (SET_BND_TO): New function, for use where BND_TO is used as an
9478 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9480 (BND_TO): New function, adding a checked cast.
9481 (SET_BND_TO): New function.
9483 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9485 (compute_av_set_on_boundaries): Likewise.
9487 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9489 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9490 destination if it is used in source.
9491 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9492 (*popcount<mode>2_falsedep_1): Likewise.
9494 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9497 * configure.ac: Set install_gold_as_default to no first.
9498 * configure: Regenerated.
9500 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9502 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9503 "note_list" field will eventually be an rtx_insn *. To help with
9504 transition, for now, convert from an access macro into a pair of
9505 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9506 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9509 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9510 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9512 * sel-sched-ir.c (init_bb): Likewise.
9513 (sel_restore_notes): Likewise.
9514 (move_bb_info): Likewise.
9515 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9516 (SET_BB_NOTE_LIST): New function.
9518 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9520 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9521 field will eventually be an rtx_insn *. To help with transition,
9522 for now, convert from an access macro into a pair of functions:
9523 VINSN_INSN_RTX, returning an rtx_insn *, and...
9524 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9525 is used as an lvalue.
9527 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9528 SET_VINSN_INSN_RTX where it's used as an lvalue.
9529 (VINSN_INSN_RTX): New function.
9530 (SET_VINSN_INSN_RTX): New function.
9532 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9534 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9535 eventually be rtx_insn *, but to help with transition, for now,
9536 convert from an access macro into a pair of functions: DEP_PRO
9537 returning an rtx_insn * and...
9538 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9539 lvalue, returning an rtx&.
9540 (DEP_CON): Analogous changes to DEP_PRO above.
9541 (SET_DEP_CON): Likewise.
9543 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9544 an lvalue to SET_DEP_CON.
9545 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9546 (sd_copy_back_deps): Likewise for DEP_CON.
9547 (DEP_PRO): New function, adding a checked cast for now.
9548 (DEP_CON): Likewise.
9549 (SET_DEP_PRO): New function.
9550 (SET_DEP_CON): Likewise.
9552 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9554 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9555 (extra_options): Add i386/cygwin.opt.
9556 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9557 (CPP_SPEC): Accept -pthread.
9559 (GOMP_SELF_SPECS): Update comment.
9560 * config/i386/cygwin.opt: New file for -pthread flag.
9562 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9564 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9565 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9566 that we can return an rtx_insn *.
9568 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9570 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9571 when building executables, not DLLs. Add --large-address-aware
9572 under the same conditions.
9573 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9574 when building executables, not DLLs. Add --large-address-aware
9575 under the same conditions when using -m32.
9577 * config/i386/cygwin-stdint.h: Throughout, make type
9578 definitions dependent on target architecture, not host.
9580 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9582 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9583 the return type from rtx to rtx_insn *, which will enable various
9584 conversions in followup patches. For now this is is done by a
9586 (NEXT_INSN): Likewise.
9587 (SET_PREV_INSN): Convert to an inline function. This is intended
9588 for use as an lvalue, and so returns an rtx& to allow in-place
9590 (SET_NEXT_INSN): Likewise.
9592 2014-07-08 Mark Wielaard <mjw@redhat.com>
9595 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9597 2014-08-19 Marek Polacek <polacek@redhat.com>
9600 * cgraphunit.c (handle_alias_pairs): Fix condition.
9602 2014-08-19 Richard Biener <rguenther@suse.de>
9604 * gimple-fold.c (fold_gimple_assign): Properly build a
9605 null-pointer constant when devirtualizing addresses.
9607 2014-07-07 Mark Wielaard <mjw@redhat.com>
9609 * dwarf2out.c (decl_quals): New function.
9610 (modified_type_die): Take one cv_quals argument instead of two,
9611 one for const and one for volatile.
9612 (add_type_attribute): Likewise.
9613 (generic_parameter_die): Call add_type_attribute with one modifier
9615 (base_type_for_mode): Likewise.
9616 (add_bounds_info): Likewise.
9617 (add_subscript_info): Likewise.
9618 (gen_array_type_die): Likewise.
9619 (gen_descr_array_type_die): Likewise.
9620 (gen_entry_point_die): Likewise.
9621 (gen_enumeration_type_die): Likewise.
9622 (gen_formal_parameter_die): Likewise.
9623 (gen_subprogram_die): Likewise.
9624 (gen_variable_die): Likewise.
9625 (gen_const_die): Likewise.
9626 (gen_field_die): Likewise.
9627 (gen_pointer_type_die): Likewise.
9628 (gen_reference_type_die): Likewise.
9629 (gen_ptr_to_mbr_type_die): Likewise.
9630 (gen_inheritance_die): Likewise.
9631 (gen_subroutine_type_die): Likewise.
9632 (gen_typedef_die): Likewise.
9633 (force_type_die): Likewise.
9635 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9637 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9639 * configure: Regenerate.
9641 2014-08-19 Richard Biener <rguenther@suse.de>
9643 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9644 DECL_EXTERNALs in BLOCKs as non-references.
9645 * tree-streamer-out.c (streamer_write_chain): Likewise.
9647 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9648 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9649 Anna Tikhonova <anna.tikhonova@intel.com>
9650 Ilya Tocar <ilya.tocar@intel.com>
9651 Andrey Turetskiy <andrey.turetskiy@intel.com>
9652 Ilya Verbin <ilya.verbin@intel.com>
9653 Kirill Yukhin <kirill.yukhin@intel.com>
9654 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9656 * config/i386/sse.md
9657 (define_mode_iterator VI48_AVX512F): Delete.
9658 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9659 (define_mode_iterator VI2_AVX512VL): Ditto.
9660 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9663 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9665 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9666 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9667 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9668 with VI48_AVX512F_AVX512VL): New.
9669 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9670 with VI2_AVX512VL): Ditto.
9672 2014-08-19 Marek Polacek <polacek@redhat.com>
9674 * doc/invoke.texi: Document -Wc99-c11-compat.
9676 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9678 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9680 (SET_PREV_INSN): New macro, for use as an lvalue.
9681 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9683 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9684 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9685 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9686 (fixup_abnormal_edges): Likewise.
9687 (unlink_insn_chain): Likewise.
9688 (fixup_reorder_chain): Likewise.
9689 (cfg_layout_delete_block): Likewise.
9690 (cfg_layout_merge_blocks): Likewise.
9691 * combine.c (update_cfg_for_uncondjump): Likewise.
9692 * emit-rtl.c (link_insn_into_chain): Likewise.
9693 (remove_insn): Likewise.
9694 (delete_insns_since): Likewise.
9695 (reorder_insns_nobb): Likewise.
9696 (emit_insn_after_1): Likewise.
9697 * final.c (rest_of_clean_state): Likewise.
9698 (final_scan_insn): Likewise.
9699 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9700 * haifa-sched.c (concat_note_lists): Likewise.
9701 (remove_notes): Likewise.
9702 (restore_other_notes): Likewise.
9703 (move_insn): Likewise.
9704 (unlink_bb_notes): Likewise.
9705 (restore_bb_notes): Likewise.
9706 * jump.c (delete_for_peephole): Likewise.
9707 * optabs.c (emit_libcall_block_1): Likewise.
9708 * reorg.c (emit_delay_sequence): Likewise.
9709 (fill_simple_delay_slots): Likewise.
9710 * sel-sched-ir.c (sel_move_insn): Likewise.
9711 (sel_remove_insn): Likewise.
9712 (get_bb_note_from_pool): Likewise.
9713 * sel-sched.c (move_nop_to_previous_block): Likewise.
9715 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9716 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9717 (c6x_gen_bundles): Likewise.
9718 (hwloop_optimize): Likewise.
9719 * config/frv/frv.c (frv_function_prologue): Likewise.
9720 (frv_register_nop): Likewise.
9721 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9722 (ia64_reorg): Likewise.
9723 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9724 (mep_make_bundle): Likewise.
9725 (mep_bundle_insns): Likewise.
9726 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9727 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9728 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9730 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9732 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9733 return type from rtx to rtx_insn *.
9735 (BB_HEADER): Likewise.
9736 (BB_FOOTER): Likewise.
9737 (SET_BB_HEAD): Convert to a function.
9738 (SET_BB_END): Likewise.
9739 (SET_BB_HEADER): Likewise.
9740 (SET_BB_FOOTER): Likewise.
9742 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9743 Strengthen the return type from rtx to rtx_insn *. For now, this
9744 is done by adding a checked cast, but this will eventually
9745 become a field lookup.
9747 (BB_HEADER): Likewise.
9748 (BB_FOOTER): Likewise.
9749 (SET_BB_HEAD): New function, from macro of same name. This is
9750 intended for use as an lvalue, and so returns an rtx& to allow
9751 in-place modification.
9752 (SET_BB_END): Likewise.
9753 (SET_BB_HEADER): Likewise.
9754 (SET_BB_FOOTER): Likewise.
9756 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9758 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9760 (SET_BB_HEAD): New macro, for use as a lvalue.
9761 (BB_END, SET_BB_END): Likewise.
9762 (BB_HEADER, SET_BB_HEADER): Likewise.
9763 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9765 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9766 of BB_* macros into SET_BB_* macros.
9767 (fix_crossing_unconditional_branches): Likewise.
9768 * caller-save.c (save_call_clobbered_regs): Likewise.
9769 (insert_one_insn): Likewise.
9770 * cfgbuild.c (find_bb_boundaries): Likewise.
9771 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9772 (outgoing_edges_match): Likewise.
9773 (try_optimize_cfg): Likewise.
9774 * cfgexpand.c (expand_gimple_cond): Likewise.
9775 (expand_gimple_tailcall): Likewise.
9776 (expand_gimple_basic_block): Likewise.
9777 (construct_exit_block): Likewise.
9778 * cfgrtl.c (delete_insn): Likewise.
9779 (create_basic_block_structure): Likewise.
9780 (rtl_delete_block): Likewise.
9781 (rtl_split_block): Likewise.
9782 (emit_nop_for_unique_locus_between): Likewise.
9783 (rtl_merge_blocks): Likewise.
9784 (block_label): Likewise.
9785 (try_redirect_by_replacing_jump): Likewise.
9786 (emit_barrier_after_bb): Likewise.
9787 (fixup_abnormal_edges): Likewise.
9788 (record_effective_endpoints): Likewise.
9789 (relink_block_chain): Likewise.
9790 (fixup_reorder_chain): Likewise.
9791 (fixup_fallthru_exit_predecessor): Likewise.
9792 (cfg_layout_duplicate_bb): Likewise.
9793 (cfg_layout_split_block): Likewise.
9794 (cfg_layout_delete_block): Likewise.
9795 (cfg_layout_merge_blocks): Likewise.
9796 * combine.c (update_cfg_for_uncondjump): Likewise.
9797 * emit-rtl.c (add_insn_after): Likewise.
9798 (remove_insn): Likewise.
9799 (reorder_insns): Likewise.
9800 (emit_insn_after_1): Likewise.
9801 * haifa-sched.c (get_ebb_head_tail): Likewise.
9802 (restore_other_notes): Likewise.
9803 (move_insn): Likewise.
9804 (sched_extend_bb): Likewise.
9805 (fix_jump_move): Likewise.
9806 * ifcvt.c (noce_process_if_block): Likewise.
9807 (dead_or_predicable): Likewise.
9808 * ira.c (update_equiv_regs): Likewise.
9809 * reg-stack.c (change_stack): Likewise.
9810 * sel-sched-ir.c (sel_move_insn): Likewise.
9811 * sel-sched.c (move_nop_to_previous_block): Likewise.
9813 * config/c6x/c6x.c (hwloop_optimize): Likewise.
9814 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9816 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9818 * rtl.h (for_each_rtx_in_insn): New function.
9819 * rtlanal.c (for_each_rtx_in_insn): Likewise.
9821 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9823 * coretypes.h (class rtx_insn): Add forward declaration.
9825 * rtl.h: Include is-a.h.
9826 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9827 workaround to ensure gengtype knows inheritance is occurring,
9828 whilst continuing to use the pre-existing special-casing for
9830 (class rtx_insn): New subclass of rtx_def, adding the
9831 invariant that we're dealing with something we can sanely use
9832 INSN_UID, NEXT_INSN, PREV_INSN on.
9833 (is_a_helper <rtx_insn *>::test): New.
9834 (is_a_helper <const rtx_insn *>::test): New.
9836 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9838 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9840 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9842 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9845 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9847 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9848 to BUILT_IN_UNREACHABLE.
9850 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
9853 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9855 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9856 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9857 (ffs<mode>2): Do not expand with tzcnt for
9858 TARGET_AVOID_FALSE_DEP_FOR_BMI.
9859 (ffssi2_no_cmove): Ditto.
9860 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9861 (ctz<mode>2): New expander.
9862 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9863 (*ctz<mode>2_falsedep): New insn.
9864 (*ctz<mode>2): Rename from ctz<mode>2.
9865 (clz<mode>2_lzcnt): New expander.
9866 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9867 (*clz<mode>2_lzcnt_falsedep): New insn.
9868 (*clz<mode>2): Rename from ctz<mode>2.
9869 (popcount<mode>2): New expander.
9870 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9871 (*popcount<mode>2_falsedep): New insn.
9872 (*popcount<mode>2): Rename from ctz<mode>2.
9873 (*popcount<mode>2_cmp): Remove.
9874 (*popcountsi2_cmp_zext): Ditto.
9876 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
9878 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9879 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9880 * config/microblaze/microblaze.h
9881 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9883 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
9886 * configure.ac: Set install_gold_as_default to no for
9888 * configure: Regenerated.
9890 2014-08-18 Roman Gareev <gareevroman@gmail.com>
9892 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9893 * config.in: Add undef of HAVE_isl.
9894 * configure: Regenerate.
9895 * configure.ac: Add definition of HAVE_isl.
9896 * graphite-blocking.c: Add checking of HAVE_isl.
9897 * graphite-dependences.c: Likewise.
9898 * graphite-interchange.c: Likewise.
9899 * graphite-isl-ast-to-gimple.c: Likewise.
9900 * graphite-optimize-isl.c: Likewise.
9901 * graphite-poly.c: Likewise.
9902 * graphite-scop-detection.c: Likewise.
9903 * graphite-sese-to-poly.c: Likewise.
9904 * graphite.c: Likewise.
9905 * toplev.c: Replace the checking of HAVE_cloog with the checking
9908 2014-08-18 Richard Biener <rguenther@suse.de>
9910 PR tree-optimization/62090
9911 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9912 (fold_builtin_3): Do not fold snprintf.
9913 (fold_builtin_4): Likewise.
9914 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9915 moved from builtins.c.
9916 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9917 (gimple_fold_builtin): Do not fold sprintf here.
9919 2014-08-18 Richard Biener <rguenther@suse.de>
9921 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9923 (maybe_canonicalize_mem_ref_addr): ... this function.
9924 (fold_stmt_1): Apply it here before all simplification.
9926 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
9929 * cgraph.h (cgraph_node::create_indirect_edge): Add
9930 compute_indirect_info param.
9931 * cgraph.c (cgraph_node::create_indirect_edge): Compute
9932 indirect_info only when it is required.
9933 * cgraphclones.c (cgraph_clone_edge): Do not recompute
9934 indirect_info fore cloned indirect edge.
9936 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9937 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9938 Anna Tikhonova <anna.tikhonova@intel.com>
9939 Ilya Tocar <ilya.tocar@intel.com>
9940 Andrey Turetskiy <andrey.turetskiy@intel.com>
9941 Ilya Verbin <ilya.verbin@intel.com>
9942 Kirill Yukhin <kirill.yukhin@intel.com>
9943 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9945 * config/i386/sse.md
9946 (define_mode_iterator VI8_AVX2_AVX512BW): New.
9947 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9949 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9950 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9951 Anna Tikhonova <anna.tikhonova@intel.com>
9952 Ilya Tocar <ilya.tocar@intel.com>
9953 Andrey Turetskiy <andrey.turetskiy@intel.com>
9954 Ilya Verbin <ilya.verbin@intel.com>
9955 Kirill Yukhin <kirill.yukhin@intel.com>
9956 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9958 * config/i386/sse.md
9959 (define_mode_iterator VF1_AVX512VL): New.
9960 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9961 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9964 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9965 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9966 Anna Tikhonova <anna.tikhonova@intel.com>
9967 Ilya Tocar <ilya.tocar@intel.com>
9968 Andrey Turetskiy <andrey.turetskiy@intel.com>
9969 Ilya Verbin <ilya.verbin@intel.com>
9970 Kirill Yukhin <kirill.yukhin@intel.com>
9971 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9973 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9974 * config/i386/i386.md
9975 (define_code_iterator any_float): New.
9976 (define_code_attr floatsuffix): New.
9977 * config/i386/sse.md
9978 (define_mode_iterator VF1_128_256VL): New.
9979 (define_mode_iterator VF2_512_256VL): New.
9980 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9982 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9983 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9985 (define_mode_attr qq2pssuff): New.
9986 (define_mode_attr sselongvecmode): New.
9987 (define_mode_attr sselongvecmodelower): New.
9988 (define_mode_attr sseintvecmode3): New.
9989 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9991 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9992 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9993 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9994 (define_insn "ufloatv2siv2df2<mask_name>"): New.
9996 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9997 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9998 Anna Tikhonova <anna.tikhonova@intel.com>
9999 Ilya Tocar <ilya.tocar@intel.com>
10000 Andrey Turetskiy <andrey.turetskiy@intel.com>
10001 Ilya Verbin <ilya.verbin@intel.com>
10002 Kirill Yukhin <kirill.yukhin@intel.com>
10003 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10005 * config/i386/sse.md
10006 (define_mode_iterator VF2_AVX512VL): New.
10007 (define_mode_attr sseintvecmode2): New.
10008 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10009 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10010 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10012 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10014 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10016 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10019 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10020 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10021 Anna Tikhonova <anna.tikhonova@intel.com>
10022 Ilya Tocar <ilya.tocar@intel.com>
10023 Andrey Turetskiy <andrey.turetskiy@intel.com>
10024 Ilya Verbin <ilya.verbin@intel.com>
10025 Kirill Yukhin <kirill.yukhin@intel.com>
10026 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10028 * config/i386/i386.md
10029 (define_insn "*movoi_internal_avx"): Add evex version.
10030 (define_insn "*movti_internal"): Ditto.
10032 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10033 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10034 Anna Tikhonova <anna.tikhonova@intel.com>
10035 Ilya Tocar <ilya.tocar@intel.com>
10036 Andrey Turetskiy <andrey.turetskiy@intel.com>
10037 Ilya Verbin <ilya.verbin@intel.com>
10038 Kirill Yukhin <kirill.yukhin@intel.com>
10039 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10041 * config/i386/i386.md
10042 (define_attr "isa"): Add avx512dq, noavx512dq.
10043 (define_attr "enabled"): Ditto.
10044 * config/i386/sse.md
10045 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10047 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10048 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10049 Anna Tikhonova <anna.tikhonova@intel.com>
10050 Ilya Tocar <ilya.tocar@intel.com>
10051 Andrey Turetskiy <andrey.turetskiy@intel.com>
10052 Ilya Verbin <ilya.verbin@intel.com>
10053 Kirill Yukhin <kirill.yukhin@intel.com>
10054 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10056 * config/i386/i386.c
10057 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10058 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10059 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10060 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10061 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10062 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10063 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10064 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10065 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10066 * config/i386/sse.md
10067 (define_mode_iterator VMOVE): Allow V4TI mode.
10068 (define_mode_iterator V_AVX512VL): New.
10069 (define_mode_iterator V): New handling for AVX512VL.
10070 (define_insn "avx512f_load<mode>_mask"): Delete.
10071 (define_insn "<avx512>_load<mode>_mask"): New.
10072 (define_insn "avx512f_store<mode>_mask"): Delete.
10073 (define_insn "<avx512>_store<mode>_mask"): New.
10076 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10079 * asan.c (instrument_derefs): Fix bitfield check.
10081 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10083 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10084 * config/rs6000/htm.md (ttest): Remove clobber.
10085 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10086 (and_operand): Reformat.
10087 (and_2rld_operand): New predicate.
10088 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10090 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10091 parameter. Handle AND directly.
10092 (rs6000_split_logical_di): Remove last parameter.
10093 (rs6000_split_logical): Remove last parameter. Remove obsolete
10095 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10096 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10097 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10098 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10099 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10100 and 5 anonymous splitters): Delete.
10101 (and<mode>3): New expander.
10102 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10103 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10104 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10105 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10106 (floatdisf2_internal1): Remove clobbers.
10107 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10108 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10109 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10110 (and<mode>3 for BOOL_128): Remove clobber.
10111 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10112 rs6000_split_logical.
10113 (*bool<mode>3_internal for BOOL_128): Adjust call of
10114 rs6000_split_logical.
10115 (*boolc<mode>3_internal1 for BOOL_128,
10116 *boolc<mode>3_internal2 for BOOL_128,
10117 *boolcc<mode>3_internal1 for BOOL_128,
10118 *boolcc<mode>3_internal2 for BOOL_128,
10119 *eqv<mode>3_internal1 for BOOL_128,
10120 *eqv<mode>3_internal2 for BOOL_128,
10121 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10122 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10124 (*vec_reload_and_reg_<mptrsize>): Delete.
10126 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10128 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10129 and split, *boolccsi3_internal3 and split): Delete.
10130 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10131 *boolccdi3_internal3 and split): Delete.
10132 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10133 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10135 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10137 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10138 and split, *boolcsi3_internal3 and split): Delete.
10139 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10140 *boolcdi3_internal3 and split): Delete.
10141 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10143 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10145 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10146 <'u'>: Also support printing the low-order 16 bits.
10147 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10148 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10149 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10150 *booldi3_internal3 and split): Delete.
10151 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10152 *bool<mode>3_dot2): New.
10153 (two anonymous define_splits for non_logical_cint_operand): Merge.
10155 2014-08-17 Marek Polacek <polacek@redhat.com>
10156 Manuel López-Ibáñez <manu@gcc.gnu.org>
10159 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10160 (diagnostic_show_locus): Don't print caret diagnostic
10161 if a column is larger than the line_width.
10163 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10165 * common.opt: Make the ISL AST generator to be the main code generator
10168 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10170 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10172 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10175 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10177 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10178 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10179 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10181 * config/pa/pa.md (begin_brtab): Delete insn.
10182 (end_brtab): Likewise.
10184 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10186 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10188 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10190 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10191 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10192 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10193 (get_dynamic_type): Remove.
10194 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10195 (clear_speculation): Bring to ipa-deivrt.h
10196 (get_class_context): Rename to ...
10197 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10198 (contains_type_p): Update.
10199 (get_dynamic_type): Rename to ...
10200 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10201 (possible_polymorphic_call_targets): UPdate.
10202 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10203 * ipa-prop.c (ipa_analyze_call_uses): Update.
10205 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10207 * doc/invoke.texi (SH options): Document missing processor variant
10208 options. Remove references to Hitachi. Undocument deprecated mspace
10211 2014-08-15 Jason Merrill <jason@redhat.com>
10213 * tree.c (type_hash_canon): Uncomment assert.
10215 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10217 * input.h (in_system_header_at): Add comment.
10219 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10222 * diagnostic.c (build_message_string): Make it extern.
10223 * diagnostic.h (build_message_string): Make it extern.
10225 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10227 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10228 load/store from/to non-floating class pseudo.
10230 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10232 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10234 2014-08-15 Richard Biener <rguenther@suse.de>
10236 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10237 (get_constraint_for_ssa_var): Remove dead code.
10238 (get_constraint_for_1): Adjust.
10239 (find_what_var_points_to): Likewise.
10240 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10242 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10245 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10246 (_mm512_mask_cmpge_epu32_mask): Ditto.
10247 (_mm512_cmpge_epu32_mask): Ditto.
10248 (_mm512_mask_cmpge_epi64_mask): Ditto.
10249 (_mm512_cmpge_epi64_mask): Ditto.
10250 (_mm512_mask_cmpge_epu64_mask): Ditto.
10251 (_mm512_cmpge_epu64_mask): Ditto.
10252 (_mm512_mask_cmple_epi32_mask): Ditto.
10253 (_mm512_cmple_epi32_mask): Ditto.
10254 (_mm512_mask_cmple_epu32_mask): Ditto.
10255 (_mm512_cmple_epu32_mask): Ditto.
10256 (_mm512_mask_cmple_epi64_mask): Ditto.
10257 (_mm512_cmple_epi64_mask): Ditto.
10258 (_mm512_mask_cmple_epu64_mask): Ditto.
10259 (_mm512_cmple_epu64_mask): Ditto.
10260 (_mm512_mask_cmplt_epi32_mask): Ditto.
10261 (_mm512_cmplt_epi32_mask): Ditto.
10262 (_mm512_mask_cmplt_epu32_mask): Ditto.
10263 (_mm512_cmplt_epu32_mask): Ditto.
10264 (_mm512_mask_cmplt_epi64_mask): Ditto.
10265 (_mm512_cmplt_epi64_mask): Ditto.
10266 (_mm512_mask_cmplt_epu64_mask): Ditto.
10267 (_mm512_cmplt_epu64_mask): Ditto.
10268 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10269 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10270 (_mm512_cmpneq_epu32_mask): Ditto.
10271 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10272 (_mm512_cmpneq_epi64_mask): Ditto.
10273 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10274 (_mm512_cmpneq_epu64_mask): Ditto.
10275 (_mm512_castpd_ps): Ditto.
10276 (_mm512_castpd_si512): Ditto.
10277 (_mm512_castps_pd): Ditto.
10278 (_mm512_castps_si512): Ditto.
10279 (_mm512_castsi512_ps): Ditto.
10280 (_mm512_castsi512_pd): Ditto.
10281 (_mm512_castpd512_pd128): Ditto.
10282 (_mm512_castps512_ps128): Ditto.
10283 (_mm512_castsi512_si128): Ditto.
10284 (_mm512_castpd512_pd256): Ditto.
10285 (_mm512_castps512_ps256): Ditto.
10286 (_mm512_castsi512_si256): Ditto.
10287 (_mm512_castpd128_pd512): Ditto.
10288 (_mm512_castps128_ps512): Ditto.
10289 (_mm512_castsi128_si512): Ditto.
10290 (_mm512_castpd256_pd512): Ditto.
10291 (_mm512_castps256_ps512): Ditto.
10292 (_mm512_castsi256_si512): Ditto.
10293 (_mm512_cmpeq_epu32_mask): Ditto.
10294 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10295 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10296 (_mm512_cmpeq_epu64_mask): Ditto.
10297 (_mm512_cmpgt_epu32_mask): Ditto.
10298 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10299 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10300 (_mm512_cmpgt_epu64_mask): Ditto.
10301 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10302 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10303 * config/i386/i386.c (enum ix86_builtins): Add
10304 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10305 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10306 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10307 (bdesc_args): Add __builtin_ia32_si512_256si,
10308 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10309 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10310 __builtin_ia32_pd512_pd.
10311 (ix86_expand_args_builtin): Handle new FTYPEs.
10312 * config/i386/sse.md (castmode): Add 512-bit modes.
10313 (AVX512MODE2P): New.
10314 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10315 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10317 2014-08-15 Richard Biener <rguenther@suse.de>
10319 * fold-const.c (tree_swap_operands_p): Put all constants
10320 last, also strip sign-changing NOPs when considering further
10321 canonicalization. Canonicalize also when optimizing for size.
10323 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10325 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10326 one_match > zero_match case to just before simple_sequence.
10328 2014-08-15 Richard Biener <rguenther@suse.de>
10330 * data-streamer.h (streamer_string_index, string_for_index):
10332 * data-streamer-out.c (streamer_string_index): Make static.
10333 * data-streamer-in.c (string_for_index): Likewise.
10334 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10335 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10337 2014-08-15 Richard Biener <rguenther@suse.de>
10339 PR tree-optimization/62031
10340 * tree-data-ref.c (dr_analyze_indices): Do not set
10341 DR_UNCONSTRAINED_BASE.
10342 (dr_may_alias_p): All indirect accesses have to go the
10343 formerly DR_UNCONSTRAINED_BASE path.
10344 * tree-data-ref.h (struct indices): Remove
10345 unconstrained_base member.
10346 (DR_UNCONSTRAINED_BASE): Remove.
10348 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10350 PR middle-end/62092
10351 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10352 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10353 in OMP_CLAUSE_MAP in some outer target region.
10355 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10357 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10358 name_expansion_cache.
10359 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10360 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10361 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10362 (difference_cannot_overflow_p): New parameter. Use affine
10363 expansion for equality check.
10364 (iv_elimination_compare_lt): Pass new argument.
10366 2014-08-14 DJ Delorie <dj@redhat.com>
10368 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10369 variables to the accumulator.
10371 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10372 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10373 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10374 with far-far moves.
10376 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10377 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10378 (umulqihi3_virt): Likewise.
10379 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10380 (umulqihi3_real): Likewise.
10382 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10384 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10386 PR tree-optimization/62091
10387 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10388 function_entry_reached.
10389 (walk_aliased_vdefs): Clear it here.
10390 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10392 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10394 * ipa-utils.h (compare_virtual_tables): Declare.
10395 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10397 2014-08-14 Marek Polacek <polacek@redhat.com>
10400 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10401 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10403 2014-08-14 Tom de Vries <tom@codesourcery.com>
10405 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10407 2014-08-14 Tom de Vries <tom@codesourcery.com>
10409 PR rtl-optimization/62004
10410 PR rtl-optimization/62030
10411 * ifcvt.c (rtx_interchangeable_p): New function.
10412 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10413 * emit-rtl.h (mem_attrs_eq_p): Declare.
10415 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10417 * graphite-scop-detection.c:
10418 Add inclusion of cp-tree.h.
10419 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10420 in case they are pointers to object types
10422 2014-08-14 Richard Biener <rguenther@suse.de>
10424 * BASE-VER: Change to 5.0.0
10426 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10427 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10428 Anna Tikhonova <anna.tikhonova@intel.com>
10429 Ilya Tocar <ilya.tocar@intel.com>
10430 Andrey Turetskiy <andrey.turetskiy@intel.com>
10431 Ilya Verbin <ilya.verbin@intel.com>
10432 Kirill Yukhin <kirill.yukhin@intel.com>
10433 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10435 * config/i386/sse.md (define_mode_attr avx512): New.
10436 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10438 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10439 (define_mode_attr ssse3_avx2): Ditto.
10440 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10441 (define_mode_attr avx2_avx512bw): New.
10442 (define_mode_attr ssedoublemodelower): New.
10443 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10444 V32HI, V64QI modes.
10445 (define_mode_attr ssebytemode): Allow V8DI modes.
10446 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10447 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10448 (define_mode_attr ssePSmode2): New.
10449 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10450 V16HI, V32HI modes.
10451 (define_mode_attr dbpsadbwmode): New.
10452 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10453 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10454 (vi8_sse4_1_avx2_avx512): New.
10455 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10457 (define_mode_attr blendbits): Move before its immediate use.
10459 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10460 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10461 Anna Tikhonova <anna.tikhonova@intel.com>
10462 Ilya Tocar <ilya.tocar@intel.com>
10463 Andrey Turetskiy <andrey.turetskiy@intel.com>
10464 Ilya Verbin <ilya.verbin@intel.com>
10465 Kirill Yukhin <kirill.yukhin@intel.com>
10466 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10468 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10469 * config/i386/subst.md
10470 (define_mode_iterator SUBST_V): Update.
10471 (define_mode_iterator SUBST_A): Ditto.
10472 (define_subst_attr "mask_operand7"): New.
10473 (define_subst_attr "mask_operand10"): New.
10474 (define_subst_attr "mask_operand_arg34") : New.
10475 (define_subst_attr "mask_expand_op3"): New.
10476 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10477 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10478 (define_subst_attr "mask_avx512vl_condition"): New.
10479 (define_subst_attr "round_mask_operand4"): Ditto.
10480 (define_subst_attr "round_mask_scalar_op3"): Delete.
10481 (define_subst_attr "round_mask_op4"): New.
10482 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10484 (define_subst_attr "round_modev8sf_condition"): New.
10485 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10487 (define_subst_attr "round_saeonly_mask_operand4"): New.
10488 (define_subst_attr "round_saeonly_mask_op4"): New.
10489 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10490 V8DImode, V16SImode.
10491 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10492 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10493 (define_subst_attr "mask_expand4_args"): New.
10494 (define_subst "mask_expand4"): New.
10496 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10497 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10498 Anna Tikhonova <anna.tikhonova@intel.com>
10499 Ilya Tocar <ilya.tocar@intel.com>
10500 Andrey Turetskiy <andrey.turetskiy@intel.com>
10501 Ilya Verbin <ilya.verbin@intel.com>
10502 Kirill Yukhin <kirill.yukhin@intel.com>
10503 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10505 * config/i386/i386.md
10506 (define_attr "isa"): Add avx512bw,noavx512bw.
10507 (define_attr "enabled"): Ditto.
10508 (define_split): Add 32/64-bit mask logic.
10509 (define_insn "*k<logic>qi"): New.
10510 (define_insn "*k<logic>hi"): New.
10511 (define_insn "*anddi_1"): Add mask version.
10512 (define_insn "*andsi_1"): Ditto.
10513 (define_insn "*<code><mode>_1"): Ditto.
10514 (define_insn "*<code>hi_1"): Ditto.
10515 (define_insn "kxnor<mode>"): New.
10516 (define_insn "kunpcksi"): New.
10517 (define_insn "kunpckdi"): New.
10518 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10519 (define_insn "*one_cmplhi2_1"): Ditto.
10521 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10522 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10523 Anna Tikhonova <anna.tikhonova@intel.com>
10524 Ilya Tocar <ilya.tocar@intel.com>
10525 Andrey Turetskiy <andrey.turetskiy@intel.com>
10526 Ilya Verbin <ilya.verbin@intel.com>
10527 Kirill Yukhin <kirill.yukhin@intel.com>
10528 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10530 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10533 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10534 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10535 Anna Tikhonova <anna.tikhonova@intel.com>
10536 Ilya Tocar <ilya.tocar@intel.com>
10537 Andrey Turetskiy <andrey.turetskiy@intel.com>
10538 Ilya Verbin <ilya.verbin@intel.com>
10539 Kirill Yukhin <kirill.yukhin@intel.com>
10540 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10542 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10544 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10545 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10546 xmm/ymm16+ when availble.
10547 * config/i386/i386.h
10548 (HARD_REGNO_NREGS): Add mask regs.
10549 (VALID_AVX512F_REG_MODE): Ditto.
10550 (VALID_AVX512F_REG_MODE) : Define.
10551 (VALID_MASK_AVX512BW_MODE): Ditto.
10552 (reg_class) (MASK_REG_P(X)): Define.
10553 * config/i386/i386.md: Do not split long moves with mask register,
10554 use kmovb if avx512bw is availible.
10555 (movdi_internal): Handle mask registers.
10557 2014-08-14 Richard Biener <rguenther@suse.de>
10559 PR tree-optimization/62081
10560 * tree-ssa-loop.c (pass_fix_loops): New pass.
10561 (pass_tree_loop::gate): Do not fixup loops here.
10562 * tree-pass.h (make_pass_fix_loops): Declare.
10563 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10565 2014-08-14 Richard Biener <rguenther@suse.de>
10567 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10568 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10570 2014-08-14 Richard Biener <rguenther@suse.de>
10572 PR tree-optimization/62090
10573 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10574 (fold_builtin_2): Do not fold sprintf.
10575 (fold_builtin_3): Likewise.
10576 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10577 moved from builtins.c.
10578 (gimple_fold_builtin): Fold sprintf.
10580 2014-08-14 Richard Biener <rguenther@suse.de>
10582 PR rtl-optimization/62079
10583 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10586 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10588 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10589 current_function_decl.
10591 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10593 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10594 cgraph_function_node to cgraph_node::function_symbol
10597 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10599 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10600 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10602 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10604 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10607 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10609 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10612 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10615 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10616 any registers that are used in mem_insn.
10618 2014-08-12 Steve Ellcey <sellcey@mips.com>
10620 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10622 2014-08-12 Steve Ellcey <sellcey@mips.com>
10624 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10625 (MULTILIB_DIRNAMES): Ditto.
10626 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10627 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10628 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10629 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10630 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10631 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10633 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10636 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10637 of __ARM_SIZEOF_WCHAR_T.
10639 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10642 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10643 Remove unnecessary attributes.
10645 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10647 * internal-fn.c (init_internal_fns): Fix off-by-one.
10649 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10650 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10651 Anna Tikhonova <anna.tikhonova@intel.com>
10652 Ilya Tocar <ilya.tocar@intel.com>
10653 Andrey Turetskiy <andrey.turetskiy@intel.com>
10654 Ilya Verbin <ilya.verbin@intel.com>
10655 Kirill Yukhin <kirill.yukhin@intel.com>
10656 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10658 * config/i386/i386.c (standard_sse_constant_opcode): Use
10659 vpxord/vpternlog if avx512 is availible.
10661 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10663 PR middle-end/62103
10664 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10665 bitfields, that is when size doesn't match the size of type or the
10666 size of the constructor.
10668 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10670 * config/rs6000/constraints.md (wh constraint): New constraint,
10671 for FP registers if direct move is available.
10672 (wi constraint): New constraint, for VSX/FP registers that can
10673 handle 64-bit integers.
10674 (wj constraint): New constraint for VSX/FP registers that can
10675 handle 64-bit integers for direct moves.
10676 (wk constraint): New constraint for VSX/FP registers that can
10677 handle 64-bit doubles for direct moves.
10678 (wy constraint): Make documentation match implementation.
10680 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10681 scalar_in_vmx_p field to simplify tests of whether SFmode or
10682 DFmode can go in the Altivec registers.
10683 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10684 (rs6000_setup_reg_addr_masks): Likewise.
10685 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10686 field, and wh/wi/wj/wk constraints.
10687 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10688 the wh/wi/wj/wk constraints.
10689 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10690 upper registers, prefer VSX registers unless the operation is a
10691 memory operation with REG+OFFSET addressing.
10693 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10694 DImode. Change SFmode to use ww constraint instead of d to allow
10695 SF registers in the upper registers.
10698 (VSr5): Fix thinko in comment.
10699 (VSa): New mode attribute that is an alternative to wa, that
10700 returns the VSX register class that a mode can go in, but may not
10701 be the preferred register class.
10702 (VS_64dm): New mode attribute for appropriate register classes for
10703 referencing 64-bit elements of vectors for direct moves and normal
10705 (VS_64reg): Likewise.
10706 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10707 register allocator to only registers the data type can handle.
10708 (vsx_le_perm_load_<mode>): Likewise.
10709 (vsx_le_perm_store_<mode>): Likewise.
10710 (vsx_xxpermdi2_le_<mode>): Likewise.
10711 (vsx_xxpermdi4_le_<mode>): Likewise.
10712 (vsx_lxvd2x2_le_<mode>): Likewise.
10713 (vsx_lxvd2x4_le_<mode>): Likewise.
10714 (vsx_stxvd2x2_le_<mode>): Likewise.
10715 (vsx_add<mode>3): Likewise.
10716 (vsx_sub<mode>3): Likewise.
10717 (vsx_mul<mode>3): Likewise.
10718 (vsx_div<mode>3): Likewise.
10719 (vsx_tdiv<mode>3_internal): Likewise.
10720 (vsx_fre<mode>2): Likewise.
10721 (vsx_neg<mode>2): Likewise.
10722 (vsx_abs<mode>2): Likewise.
10723 (vsx_nabs<mode>2): Likewise.
10724 (vsx_smax<mode>3): Likewise.
10725 (vsx_smin<mode>3): Likewise.
10726 (vsx_sqrt<mode>2): Likewise.
10727 (vsx_rsqrte<mode>2): Likewise.
10728 (vsx_tsqrt<mode>2_internal): Likewise.
10729 (vsx_fms<mode>4): Likewise.
10730 (vsx_nfma<mode>4): Likewise.
10731 (vsx_eq<mode>): Likewise.
10732 (vsx_gt<mode>): Likewise.
10733 (vsx_ge<mode>): Likewise.
10734 (vsx_eq<mode>_p): Likewise.
10735 (vsx_gt<mode>_p): Likewise.
10736 (vsx_ge<mode>_p): Likewise.
10737 (vsx_xxsel<mode>): Likewise.
10738 (vsx_xxsel<mode>_uns): Likewise.
10739 (vsx_copysign<mode>3): Likewise.
10740 (vsx_float<VSi><mode>2): Likewise.
10741 (vsx_floatuns<VSi><mode>2): Likewise.
10742 (vsx_fix_trunc<mode><VSi>2): Likewise.
10743 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10744 (vsx_x<VSv>r<VSs>i): Likewise.
10745 (vsx_x<VSv>r<VSs>ic): Likewise.
10746 (vsx_btrunc<mode>2): Likewise.
10747 (vsx_b2trunc<mode>2): Likewise.
10748 (vsx_floor<mode>2): Likewise.
10749 (vsx_ceil<mode>2): Likewise.
10750 (vsx_<VS_spdp_insn>): Likewise.
10751 (vsx_xscvspdp): Likewise.
10752 (vsx_xvcvspuxds): Likewise.
10753 (vsx_float_fix_<mode>2): Likewise.
10754 (vsx_set_<mode>): Likewise.
10755 (vsx_extract_<mode>_internal1): Likewise.
10756 (vsx_extract_<mode>_internal2): Likewise.
10757 (vsx_extract_<mode>_load): Likewise.
10758 (vsx_extract_<mode>_store): Likewise.
10759 (vsx_splat_<mode>): Likewise.
10760 (vsx_xxspltw_<mode>): Likewise.
10761 (vsx_xxspltw_<mode>_direct): Likewise.
10762 (vsx_xxmrghw_<mode>): Likewise.
10763 (vsx_xxmrglw_<mode>): Likewise.
10764 (vsx_xxsldwi_<mode>): Likewise.
10765 (vsx_xscvdpspn): Tighten constraints to only use register classes
10767 (vsx_xscvspdpn): Likewise.
10768 (vsx_xscvdpspn_scalar): Likewise.
10770 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10771 wj, and wk constraints.
10772 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10773 general purpose registers.
10775 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10777 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10778 DImode instead of wm. Use wk constraint for direct move of DFmode
10780 (extendsidi2_lfiwax): Likewise.
10781 (lfiwax): Likewise.
10782 (lfiwzx): Likewise.
10783 (movdi_internal64): Likewise.
10785 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10786 wk constraints. Make the wy constraint documentation match them
10789 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
10791 Replacement of isl_int by isl_val
10792 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10793 (compute_bounds_for_param): use isl_val instead of isl_int
10794 (compute_bounds_for_loop): likewise
10795 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10796 (build_linearized_memory_access): use isl_val instead of isl_int
10797 (pdr_stride_in_loop): likewise
10798 * graphite-optimize-isl.c:
10799 (getPrevectorMap): use isl_val instead of isl_int
10801 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10802 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10803 (extern the_isl_ctx): declare
10804 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10805 (extract_affine_gmp): likewise
10807 (build_loop_iteration_domains): likewise
10808 (add_param_constraints): likewise
10810 2014-08-11 Richard Biener <rguenther@suse.de>
10812 PR tree-optimization/62075
10813 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10814 handle uses in patterns.
10816 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10818 Anna Tikhonova <anna.tikhonova@intel.com>
10819 Ilya Tocar <ilya.tocar@intel.com>
10820 Andrey Turetskiy <andrey.turetskiy@intel.com>
10821 Ilya Verbin <ilya.verbin@intel.com>
10822 Kirill Yukhin <kirill.yukhin@intel.com>
10823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10825 * common/config/i386/i386-common.c
10826 (OPTION_MASK_ISA_AVX512VL_SET): Define.
10827 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10828 (ix86_handle_option): Handle OPT_mavx512vl.
10829 * config/i386/cpuid.h (bit_AVX512VL): Define.
10830 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10831 set -mavx512vl accordingly.
10832 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10833 OPTION_MASK_ISA_AVX512VL.
10834 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10835 (ix86_option_override_internal): Define PTA_AVX512VL, handle
10836 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10837 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10838 * config/i386/i386.h (TARGET_AVX512VL): Define.
10839 (TARGET_AVX512VL_P(x)): Ditto.
10840 * config/i386/i386.opt: Add mavx512vl.
10842 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
10844 PR tree-optimization/62073
10845 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10848 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10849 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10850 Anna Tikhonova <anna.tikhonova@intel.com>
10851 Ilya Tocar <ilya.tocar@intel.com>
10852 Andrey Turetskiy <andrey.turetskiy@intel.com>
10853 Ilya Verbin <ilya.verbin@intel.com>
10854 Kirill Yukhin <kirill.yukhin@intel.com>
10855 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10857 * common/config/i386/i386-common.c
10858 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10859 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10860 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10861 (ix86_handle_option): Handle OPT_mavx512bw.
10862 * config/i386/cpuid.h (bit_AVX512BW): Define.
10863 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10864 set -mavx512bw accordingly.
10865 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10866 OPTION_MASK_ISA_AVX512BW.
10867 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10868 (ix86_option_override_internal): Define PTA_AVX512BW, handle
10869 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10870 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10871 * config/i386/i386.h (TARGET_AVX512BW): Define.
10872 (TARGET_AVX512BW_P(x)): Ditto.
10873 * config/i386/i386.opt: Add mavx512bw.
10875 2014-08-11 Richard Biener <rguenther@suse.de>
10877 PR tree-optimization/62070
10878 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10879 Remove SSA checking.
10881 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10883 * asan.c (asan_check_flags): New enum.
10884 (build_check_stmt_with_calls): Removed function.
10885 (build_check_stmt): Split inlining logic to
10886 asan_expand_check_ifn.
10887 (instrument_derefs): Rename parameter.
10888 (instrument_mem_region_access): Rename parameter.
10889 (instrument_strlen_call): Likewise.
10890 (asan_expand_check_ifn): New function.
10891 (asan_instrument): Remove old code.
10892 (pass_sanopt::execute): Change handling of
10893 asan-instrumentation-with-call-threshold.
10894 (asan_clear_shadow): Fix formatting.
10895 (asan_function_start): Likewise.
10896 (asan_emit_stack_protection): Likewise.
10897 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10898 Update description.
10899 * internal-fn.c (expand_ASAN_CHECK): New function.
10900 * internal-fn.def (ASAN_CHECK): New internal function.
10901 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10902 Update description.
10903 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10904 * tree.c: Small comment fix.
10906 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10908 * gimple.c (gimple_call_fnspec): Support internal functions.
10909 (gimple_call_return_flags): Use const.
10910 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10911 * internal-fn.def: Add fnspec information.
10912 * internal-fn.h (internal_fn_fnspec): New function.
10913 (init_internal_fns): Declare new function.
10914 * internal-fn.c (internal_fn_fnspec_array): New global variable.
10915 (init_internal_fns): New function.
10916 * tree-core.h: Update macro call.
10917 * tree.c (build_common_builtin_nodes): Initialize internal fns.
10919 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
10921 * lto-streamer.h (struct output_block::symbol): Change from
10922 struct symtab_node to plain symtab_node.
10923 (referenced_from_this_partition_p): Change first parameter
10924 from struct symtab_node to plain symtab_node.
10926 2014-08-10 Marek Polacek <polacek@redhat.com>
10929 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10931 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
10933 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10934 DECL correctly; do not give up on types in static storage.
10936 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
10938 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10940 2014-08-09 Roman Gareev <gareevroman@gmail.com>
10942 * graphite-isl-ast-to-gimple.c:
10943 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10945 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10947 2014-08-08 Guozhi Wei <carrot@google.com>
10949 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10951 2014-08-08 Cary Coutant <ccoutant@google.com>
10953 * dwarf2out.c (get_skeleton_type_unit): Remove.
10954 (output_skeleton_debug_sections): Remove skeleton type units.
10955 (output_comdat_type_unit): Likewise.
10956 (dwarf2out_finish): Likewise.
10958 2014-08-07 Yi Yang <ahyangyi@google.com>
10960 * predict.c (expr_expected_value_1): Remove the redundant assignment.
10962 2014-08-08 Richard Biener <rguenther@suse.de>
10964 * lto-streamer.h (struct lto_input_block): Make it a class
10965 with a constructor.
10966 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10967 (struct lto_function_header, struct lto_simple_header,
10968 struct lto_simple_header_with_strings,
10969 struct lto_decl_header, struct lto_function_header): Make
10970 a simple inheritance hieararchy. Remove unused fields.
10971 (struct lto_asm_header): Remove.
10972 * lto-streamer-out.c (produce_asm): Adjust.
10973 (lto_output_toplevel_asms): Likewise.
10974 (produce_asm_for_decls): Likewise.
10975 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10976 * data-streamer-in.c (string_for_index): Likewise.
10977 * ipa-inline-analysis.c (inline_read_section): Likewise.
10978 * ipa-prop.c (ipa_prop_read_section): Likewise.
10979 (read_replacements_section): Likewise.
10980 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10981 * lto-section-in.c (lto_create_simple_input_block): Likewise.
10982 (lto_destroy_simple_input_block): Likewise.
10983 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10984 (lto_input_toplevel_asms): Likewise.
10986 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
10987 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10988 Anna Tikhonova <anna.tikhonova@intel.com>
10989 Ilya Tocar <ilya.tocar@intel.com>
10990 Andrey Turetskiy <andrey.turetskiy@intel.com>
10991 Ilya Verbin <ilya.verbin@intel.com>
10992 Kirill Yukhin <kirill.yukhin@intel.com>
10993 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10995 * common/config/i386/i386-common.c
10996 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10997 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10998 (ix86_handle_option): Handle OPT_mavx512dq.
10999 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11000 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11001 set -mavx512dq accordingly.
11002 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11003 OPTION_MASK_ISA_AVX512DQ.
11004 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11005 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11006 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11007 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11008 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11009 (TARGET_AVX512DQ_P(x)): Ditto.
11010 * config/i386/i386.opt: Add mavx512dq.
11012 2014-08-08 Richard Biener <rguenther@suse.de>
11014 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11015 target_percent, target_percent_s): Export.
11016 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11017 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11018 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11019 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11020 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11021 Move to gimple-fold.c.
11022 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11024 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11025 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11026 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11027 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11028 (rewrite_call_expr_array): Remove.
11029 (fold_builtin_sprintf_chk): Likewise.
11030 (fold_builtin_snprintf_chk): Likewise.
11031 (fold_builtin_varargs): Remove handling of sprintf_chk,
11032 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11033 (gimple_fold_builtin_sprintf_chk): Remove.
11034 (gimple_fold_builtin_snprintf_chk): Likewise.
11035 (gimple_fold_builtin_varargs): Likewise.
11036 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11037 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11038 * gimple.c (gimple_seq_add_seq_without_update): New function.
11039 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11040 * gimple-fold.c: Include output.h.
11041 (gsi_replace_with_seq_vops): New function, split out from ...
11042 (gimplify_and_update_call_from_tree): ... here.
11043 (replace_call_with_value): New function.
11044 (replace_call_with_call_and_fold): Likewise.
11045 (var_decl_component_p): Moved from builtins.c.
11046 (gimple_fold_builtin_memory_op): Moved from builtins.c
11047 fold_builtin_memory_op and rewritten to GIMPLE.
11048 (gimple_fold_builtin_memset): Likewise.
11049 (gimple_fold_builtin_strcpy): Likewise.
11050 (gimple_fold_builtin_strncpy): Likewise.
11051 (gimple_fold_builtin_strcat): Likewise.
11052 (gimple_fold_builtin_fputs): Likewise.
11053 (gimple_fold_builtin_memory_chk): Likewise.
11054 (gimple_fold_builtin_stxcpy_chk): Likewise.
11055 (gimple_fold_builtin_stxncpy_chk): Likewise.
11056 (gimple_fold_builtin_snprintf_chk): Likewise.
11057 (gimple_fold_builtin_sprintf_chk): Likewise.
11058 (gimple_fold_builtin_strlen): New function.
11059 (gimple_fold_builtin_with_strlen): New function split out from
11060 gimple_fold_builtin.
11061 (gimple_fold_builtin): Change signature and handle
11062 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11063 here. Call gimple_fold_builtin_with_strlen.
11064 (gimple_fold_call): Adjust.
11066 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11068 * calls.c (precompute_arguments): Check
11069 promoted_for_signed_and_unsigned_p and set the promoted mode.
11070 (promoted_for_signed_and_unsigned_p): New function.
11071 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11072 and set the promoted mode.
11073 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11074 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11075 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11078 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11080 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11081 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11082 (expand_call): Likewise.
11083 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11084 to get promoted mode.
11085 * combine.c (record_promoted_value): Skip > 0 comparison with
11086 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11087 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11088 of SUBREG_PROMOTED_UNSIGNED_P.
11089 (convert_modes): Likewise.
11090 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11091 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11092 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11093 SUBREG_PROMOTED_UNSIGNED_SET.
11094 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11095 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11096 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11097 SUBREG_PROMOTED_SET.
11098 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11099 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11100 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11101 of SUBREG_PROMOTED_UNSIGNED_P.
11102 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11103 (SUBREG_PROMOTED_SET): New define.
11104 (SUBREG_PROMOTED_GET): Likewise.
11105 (SUBREG_PROMOTED_SIGN): Likewise.
11106 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11107 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11108 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11109 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11110 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11111 (nonzero_bits1): Skip > 0 comparison with the results as
11112 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11113 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11114 of !SUBREG_PROMOTED_UNSIGNED_P.
11115 * simplify-rtx.c (simplify_unary_operation_1): Use new
11116 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11117 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11118 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11119 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11121 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11123 * ipa-devirt.c: Include gimple-pretty-print.h
11124 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11126 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11127 (get_polymorphic_call_info): Fix return value
11128 (type_change_info): New sturcture based on ipa-prop
11130 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11131 based on ipa-prop variant.
11132 (extr_type_from_vtbl_ptr_store): New function
11133 based on ipa-prop variant.
11134 (record_known_type): New function.
11135 (check_stmt_for_type_change): New function.
11136 (get_dynamic_type): New function.
11137 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11138 * tree-ssa-pre.c: ipa-utils.h
11139 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11140 machinery; sanity check with ipa-prop devirtualization.
11141 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11144 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11146 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11147 * alias.c, cfgexpand.c, cgraphbuild.c,
11148 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11149 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11150 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11151 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11152 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11153 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11154 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11155 dse.c, except.c, gengtype.c, gimple-expr.c,
11156 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11157 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11158 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11159 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11160 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11161 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11163 * pointer-set.c: Remove file.
11164 * pointer-set.h: Remove file.
11166 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11168 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11169 * config/arm/types.md (f_sels, f_seld): Delete.
11171 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11173 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11174 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11175 (aarch64_movdi_<mode>high): Likewise.
11176 (aarch64_mov<mode>high_di): Likewise.
11177 (aarch64_movdi_<mode>low): Likewise.
11178 (aarch64_mov<mode>low_di): Likewise.
11179 (aarch64_movtilow_tilow): Likewise.
11180 Add comment explaining usage of fp,simd attributes and of
11181 TARGET_FLOAT and TARGET_SIMD.
11183 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11184 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11186 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11187 Use MOVN when one of the half-words is 0xffff.
11189 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11191 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11193 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11195 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11196 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11197 (rfs_str): String corresponding to RFS_* constants.
11198 (rank_for_schedule_stats_t): New typedef.
11199 (rank_for_schedule_stats): New static variable.
11200 (rfs_result): New static function.
11201 (rank_for_schedule): Track statistics for deciding heuristics.
11202 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11204 (ready_sort): Use them for debug printouts.
11205 (schedule_block): Init statistics state. Print statistics on
11206 rank_for_schedule decisions.
11208 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11210 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11212 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11214 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11217 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11219 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11220 function to not conflict.
11221 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11222 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11223 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11224 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11225 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11228 2014-08-07 Marek Polacek <polacek@redhat.com>
11230 * fold-const.c (fold_binary_loc): Add folding of
11231 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11233 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11235 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11236 instead of type size.
11237 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11239 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11241 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11242 (*thumb1_movqi_insn): Likewise.
11243 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11245 2014-08-07 Tom de Vries <tom@codesourcery.com>
11247 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11248 (glibc_2_11_or_earlier): Remove effective-target keywords.
11250 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11252 * config/arm/arm.c (bdesc_2arg): Fix typo.
11253 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11255 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11257 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11259 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11262 * haifa-sched.c (advance_one_cycle): Fix dump.
11263 (schedule_block): Don't advance cycle if we are already at the
11264 beginning of the cycle.
11266 2014-08-06 Martin Jambor <mjambor@suse.cz>
11269 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11271 2014-08-06 Richard Biener <rguenther@suse.de>
11274 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11276 (lto_input_tree): Pop SCCs here.
11278 2014-08-06 Richard Biener <rguenther@suse.de>
11280 PR tree-optimization/61320
11281 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11282 handle misaligned loads.
11284 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11286 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11287 (aarch64_expand_vec_perm_const): Check for dup before zip.
11289 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11291 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11292 CONST_INT_P instead of GET_CODE and compare.
11293 (aarch64_select_cc_mode): Likewise.
11294 (aarch64_print_operand): Likewise.
11295 (aarch64_rtx_costs): Likewise.
11296 (aarch64_simd_valid_immediate): Likewise.
11297 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11298 (aarch64_simd_emit_pair_result_insn): Likewise.
11300 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11302 * gdbhooks.py (find_gcc_source_dir): New helper function.
11303 (class PassNames): New class, locating and parsing passes.def.
11304 (class BreakOnPass): New command "break-on-pass".
11306 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11308 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11311 2014-08-05 Richard Biener <rguenther@suse.de>
11313 PR rtl-optimization/61672
11314 * emit-rtl.h (mem_attrs_eq_p): Declare.
11315 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11316 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11317 * cfgcleanup.c (merge_memattrs): Likewise.
11318 Include emit-rtl.h.
11320 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11322 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11323 rather than singleton vectors.
11324 (vqdmlsls_lane_s32): Likewise.
11326 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11328 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11329 Use VSDQ_HSI mode iterator.
11330 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11331 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11332 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11333 Use BUILTIN_VDQHS macro.
11334 (sqrdmulh_laneq): Likewise.
11335 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11336 (vqdmlals_laneq_s32): Likewise.
11337 (vqdmlslh_laneq_s16): Likewise.
11338 (vqdmlsls_laneq_s32): Likewise.
11339 (vqdmulhh_laneq_s16): Likewise.
11340 (vqdmulhs_laneq_s32): Likewise.
11341 (vqrdmulhh_laneq_s16): Likewise.
11342 (vqrdmulhs_laneq_s32): Likewise.
11344 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11346 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11347 (vmuld_laneq_f64): Likewise.
11348 (vmuls_laneq_f32): Likewise.
11349 (vmul_n_f64): Likewise.
11350 (vmuld_lane_f64): Reimplement in C.
11351 (vmuls_lane_f32): Likewise.
11353 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11355 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11357 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11359 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11361 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11362 (rbitsi2): Likewise.
11363 (*arm_rev): Set predicable and predicable_short_it attributes.
11365 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11367 * convert.c (convert_to_integer): Guard transformation to lrint by
11370 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11372 * config/aarch64/aarch64-builtins.c
11373 (aarch64_simd_builtin_type_mode): Delete.
11374 (v8qi_UP): Remap to V8QImode.
11375 (v4hi_UP): Remap to V4HImode.
11376 (v2si_UP): Remap to V2SImode.
11377 (v2sf_UP): Remap to V2SFmode.
11378 (v1df_UP): Remap to V1DFmode.
11379 (di_UP): Remap to DImode.
11380 (df_UP): Remap to DFmode.
11381 (v16qi_UP):V16QImode.
11382 (v8hi_UP): Remap to V8HImode.
11383 (v4si_UP): Remap to V4SImode.
11384 (v4sf_UP): Remap to V4SFmode.
11385 (v2di_UP): Remap to V2DImode.
11386 (v2df_UP): Remap to V2DFmode.
11387 (ti_UP): Remap to TImode.
11388 (ei_UP): Remap to EImode.
11389 (oi_UP): Remap to OImode.
11390 (ci_UP): Map to CImode.
11391 (xi_UP): Remap to XImode.
11392 (si_UP): Remap to SImode.
11393 (sf_UP): Remap to SFmode.
11394 (hi_UP): Remap to HImode.
11395 (qi_UP): Remap to QImode.
11396 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11397 (VAR1): Build builtin name.
11398 (aarch64_init_simd_builtins): Remove dead code.
11400 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11402 * graphite-isl-ast-to-gimple.c:
11403 (set_options): New function.
11404 (scop_to_isl_ast): Add calling of set_options.
11406 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11408 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11409 (analyze_iv_to_split_insn): Don't initialize them.
11410 (get_ivts_expr): Removed.
11411 (allocate_basic_variable, insert_base_initialization): Use
11412 SET_SRC instead of *get_ivts_expr.
11413 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11415 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11417 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11418 (translate_isl_ast_for_loop): Add checking of the
11419 flag_loop_parallelize_all.
11420 (ast_build_before_for): New function.
11421 (scop_to_isl_ast): Add checking of the
11422 flag_loop_parallelize_all.
11423 * graphite-dependences.c: Move the defenition of the
11424 scop_get_dependences from graphite-optimize-isl.c to this file.
11425 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11426 (carries_deps): Add checking of the x's value.
11427 * graphite-optimize-isl.c: Move the defenition of the
11428 scop_get_dependences to graphite-dependences.c.
11429 * graphite-poly.h: Add declarations of scop_get_dependences
11432 2014-08-04 Rohit <rohitarulraj@freescale.com>
11435 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11437 (alt_reg_names): Likewise.
11438 (rs6000_dwarf_register_span): For SPE high registers, replace
11439 dwarf register numbers with GCC hard register numbers.
11440 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11441 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11442 register number for the corresponding GCC hard register number.
11443 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11444 newly added GCC hard register numbers for SPE high registers.
11445 (DWARF_FRAME_REGISTERS): Likewise.
11446 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11447 (DWARF_FRAME_REGNUM): Likewise.
11448 (FIXED_REGISTERS): Likewise.
11449 (CALL_USED_REGISTERS): Likewise.
11450 (CALL_REALLY_USED_REGISTERS): Likewise.
11451 (REG_ALLOC_ORDER): Likewise.
11452 (enum reg_class): Likewise.
11453 (REG_CLASS_NAMES): Likewise.
11454 (REG_CLASS_CONTENTS): Likewise.
11455 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11457 2014-08-04 Richard Biener <rguenther@suse.de>
11459 * gimple-fold.h (gimple_fold_builtin): Remove.
11460 * gimple-fold.c (gimple_fold_builtin): Make static.
11461 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11462 fold_stmt, not gimple_fold_builtin.
11464 2014-08-04 Martin Liska <mliska@suse.cz>
11466 * cgraph.h (csi_end_p): Removed.
11467 (csi_next): Likewise.
11468 (csi_node): Likewise.
11469 (csi_start): Likewise.
11470 (cgraph_node_in_set_p): Likewise.
11471 (cgraph_node_set_size): Likewise.
11472 (vsi_end_p): Likewise.
11473 (vsi_next): Likewise.
11474 (vsi_node): Likewise.
11475 (vsi_start): Likewise.
11476 (varpool_node_set_size): Likewise.
11477 (cgraph_node_set_nonempty_p): Likewise.
11478 (varpool_node_set_nonempty_p): Likewise.
11479 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11481 * ipa-inline-transform.c: Likewise.
11482 * ipa-utils.c (cgraph_node_set_new): Removed.
11483 (cgraph_node_set_add): Likewise.
11484 (cgraph_node_set_remove): Likewise.
11485 (cgraph_node_set_find): Likewise.
11486 (dump_cgraph_node_set): Likewise.
11487 (debug_cgraph_node_set): Likewise.
11488 (free_cgraph_node_set): Likewise.
11489 (varpool_node_set_new): Likewise.
11490 (varpool_node_set_add): Likewise.
11491 (varpool_node_set_remove): Likewise.
11492 (varpool_node_set_find): Likewise.
11493 (dump_varpool_node_set): Likewise.
11494 (free_varpool_node_set): Likewise.
11495 (debug_varpool_node_set): Likewise.
11496 * tree-emutls.c (struct tls_var_data):
11497 (emutls_index): Removed.
11498 (emutls_decl): Likewise.
11499 (gen_emutls_addr): Function implementation uses newly added
11500 hash_map<varpool_node *, tls_var_data>.
11501 (clear_access_vars): Likewise.
11502 (create_emultls_var): Likewise.
11503 (ipa_lower_emutls): Likewise.
11504 (reset_access): New function.
11506 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11508 * config/i386/i386.c (ix86_option_override_internal): Add
11509 PTA_RDRND and PTA_MOVBE for bdver4.
11511 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11512 James Greenhalgh <james.greenhalgh@arm.com>
11514 * doc/md.texi (clrsb): Document.
11515 (clz): Change reference to x into operand 1.
11517 (popcount): Likewise.
11519 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11522 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11523 move to subtarget in serial version if result is ignored.
11525 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11526 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11528 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11529 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11530 (sched_analyze_insn): Update use of try_group_insn to
11531 sched_macro_fuse_insns.
11532 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11533 arguments that are not conditional jumps.
11535 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11537 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11538 family information. Handle BTVER2 cpu with cpuid family value.
11540 2014-08-04 Tom de Vries <tom@codesourcery.com>
11542 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11543 (glibc_2_11_or_earlier): Document effective-target keywords.
11545 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11547 * ipa-devirt.c (odr_type_warn_count): Add type.
11548 (possible_polymorphic_call_targets): Set it.
11549 (ipa_devirt): Use it.
11551 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11553 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11555 * ipa-devirt.c: Include hash-map.h
11556 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11557 (clear_speculation): Break out of ...
11558 (get_class_context): ... here; speed up handling obviously useless
11560 (odr_type_warn_count, decl_warn_count): New structures.
11561 (final_warning_record): New structure.
11562 (final_warning_records): New static variable.
11563 (possible_polymorphic_call_targets): Cleanup handling of
11564 speculative info; do not build speculation when user do not care;
11565 record info about warnings when asked for.
11566 (add_decl_warning): New function.
11567 (type_warning_cmp): New function.
11568 (decl_warning_cmp): New function.
11569 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11570 (gate): Enable pass when warnings are requested.
11571 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11574 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11576 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11578 (hash_map::remove): New method.
11579 (hash_map::traverse): New method.
11580 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11581 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11582 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11583 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11584 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11585 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11588 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11590 * hash-set.h: new File.
11591 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11592 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11593 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11594 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11595 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11596 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11597 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11598 varpool.c: Use hash_set instead of pointer_set.
11600 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11602 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11604 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11606 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11607 for frame access when strict_p is false.
11609 2014-08-01 Renlin Li <renlin.li@arm.com>
11610 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11612 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11613 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11614 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11616 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11618 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11619 aarch64_mem_pair_offset.
11621 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11623 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11625 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11626 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11628 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11630 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11632 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11634 PR regression/61510
11635 * cgraphunit.c (analyze_functions): Use get_create rather than get
11636 for decls which are clones of abstract functions.
11638 2014-08-01 Martin Liska <mliska@suse.cz>
11640 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11641 * ipa-prop.h (count_formal_params): Global function created from static.
11642 * ipa-prop.c (count_formal_params): Likewise.
11643 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11644 profiles for semantically equivalent functions.
11645 * passes.c (do_per_function): If we load body of a function
11646 during WPA, this condition should behave same.
11647 * varpool.c (ctor_for_folding): More tolerant assert for variable
11648 aliases created during WPA.
11650 2014-08-01 Martin Liska <mliska@suse.cz>
11652 * doc/invoke.texi (Options That Control Optimization): Documentation
11653 for -foptimize-strlen introduced. Optimization levels default options
11656 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11658 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11659 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11660 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11662 * stor-layout.h (min_align_of_type): New prototype.
11663 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11664 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11666 * ubsan.c: Include builtins.h.
11667 (ubsan_expand_bounds_ifn): Change return type to bool,
11668 always return true.
11669 (ubsan_expand_null_ifn): Change return type to bool, change
11670 argument to gimple_stmt_iterator *. Handle both null and alignment
11671 sanitization, take type from ckind argument's type rather than
11673 (instrument_member_call): Removed.
11674 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11675 Handle both null and alignment sanitization, don't say whole
11676 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11677 call instead of 2 argument.
11678 (instrument_null): Adjust instrument_mem_ref caller. Don't
11679 instrument calls here.
11680 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11681 like SANITIZE_NULL.
11682 * stor-layout.c (min_align_of_type): New function.
11683 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11684 Or it into SANITIZE_UNDEFINED.
11685 * doc/invoke.texi (-fsanitize=alignment): Document.
11687 2014-07-31 Andi Kleen <ak@linux.intel.com>
11689 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11691 2014-07-31 Andi Kleen <ak@linux.intel.com>
11693 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11695 (vn_reference_compute_hash): Dito.
11696 (vn_nary_op_compute_hash): Dito.
11697 (vn_phi_compute_hash): Dito.
11698 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11700 2014-07-31 Andi Kleen <ak@linux.intel.com>
11702 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11703 Rename to inchash:add_expr_commutative. Convert to inchash.
11704 (iterative_hash_hashable_expr): Rename to
11705 inchash:add_hashable_expr. Convert to inchash.
11706 (avail_expr_hash): Dito.
11708 2014-07-31 Andi Kleen <ak@linux.intel.com>
11710 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11711 Convert to inchash.
11713 2014-07-31 Andi Kleen <ak@linux.intel.com>
11715 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11717 2014-07-31 Andi Kleen <ak@linux.intel.com>
11719 * Makefile.in (OBJS): Add rtlhash.o
11720 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11721 (loc_checksum): Dito.
11722 (loc_checksum_ordered): Dito.
11723 (hash_loc_operands): Dito.
11725 (hash_loc_list): Dito.
11726 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11727 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11728 * rtlhash.c: New file.
11729 * rtlhash.h: New file.
11731 2014-07-31 Andi Kleen <ak@linux.intel.com>
11733 * inchash.h (inchash): Change inchash class to namespace.
11734 (class hash): ... Rename from inchash.
11735 (add_object): Move from macro to class template.
11736 * lto-streamer-out.c (hash_tree): Change inchash
11738 * tree.c (build_type_attribute_qual_variant): Dito.
11739 (type_hash_list): Dito.
11740 (attribute_hash_list): Dito.
11741 (iterative_hstate_expr): Rename to inchash::add_expr
11742 (build_range_type_1): Change inchash to inchash::hash
11743 and use hash::add_expr.
11744 (build_array_type_1): Dito.
11745 (build_function_type): Dito
11746 (build_method_type_directly): Dito.
11747 (build_offset_type): Dito.
11748 (build_complex_type): Dito.
11749 (make_vector_type): Dito.
11750 * tree.h (iterative_hash_expr): Dito.
11752 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11754 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11756 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11758 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11759 correct alphabetical position.
11760 (vpaddd_f64): Rewrite using builtins.
11761 (vpaddd_s64): Move to correct alphabetical position.
11764 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11767 * config/sh/sh.c (sh_legitimate_address_p,
11768 sh_legitimize_reload_address): Handle reg+reg address modes when
11769 ALLOW_INDEXED_ADDRESS is false.
11770 * config/sh/predicates.md (general_movsrc_operand,
11771 general_movdst_operand): Likewise.
11773 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11775 * config/aarch64/aarch64-builtins.c
11776 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11779 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11781 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11782 the generated mask based on BYTES_BIG_ENDIAN.
11783 (aarch64_simd_check_vect_par_cnst_half): New.
11784 * config/aarch64/aarch64-protos.h
11785 (aarch64_simd_check_vect_par_cnst_half): New.
11786 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11787 the check out to aarch64_simd_check_vect_par_cnst_half.
11788 (vect_par_cnst_lo_half): Likewise.
11789 * config/aarch64/aarch64-simd.md
11790 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11791 (move_hi_quad_<mode>): Always generate a low mask.
11793 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11795 * doc/invoke.texi (AVR Options): Add documentation about
11796 __AVR_DEVICE_NAME__ built-in macro.
11798 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
11801 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11802 constraints are satisfied.
11803 (<shift>di3_neon): Likewise.
11805 2014-07-31 Richard Biener <rguenther@suse.de>
11807 PR tree-optimization/61964
11808 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11809 by structural equality.
11811 2014-07-31 Yury Gribov <y.gribov@samsung.com>
11813 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11814 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11815 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11817 * gcc.c (sanitize_spec_function): Support new option.
11818 (SANITIZER_SPEC): Remove now redundant check.
11819 * opts.c (common_handle_option): Support new option.
11820 (finish_options): Check for incompatibilities.
11821 * toplev.c (process_options): Split userspace-specific checks.
11823 2014-07-31 Richard Biener <rguenther@suse.de>
11825 * lto-streamer.h (struct output_block): Remove global.
11826 (struct data_in): Remove labels, num_named_labels and
11827 num_unnamed_labels.
11828 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11829 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11831 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
11834 * common.opt (-Wreturn-local-addr): Moved from c.opt.
11835 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11836 (isolate_path): New argument to avoid inserting a trap.
11837 (find_implicit_erroneous_behaviour): Handle returning the address
11838 of a local variable.
11839 (find_explicit_erroneous_behaviour): Likewise.
11841 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
11844 * toplev.c (init_random_seed): Move piece of code never called to
11846 (set_random_seed): see above.
11848 2014-07-31 Tom de Vries <tom@codesourcery.com>
11850 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11852 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11854 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11855 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11857 2014-07-31 Richard Biener <rguenther@suse.de>
11859 * data-streamer.h (streamer_write_data_stream): Declare here,
11861 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
11862 * lto-cgraph.c (lto_output_node): Adjust.
11863 (lto_output_varpool_node): Likewise.
11864 * data-streamer-out.c (streamer_string_index): Likewise.
11865 (streamer_write_data_stream, lto_append_block): Move from ...
11866 * lto-section-out.c (lto_output_data_stream,
11867 lto_append_block): ... here.
11869 2014-07-30 Mike Stump <mikestump@comcast.net>
11871 * configure.ac: Also check for popen.
11872 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11873 * configure: Regenerate.
11874 * config.in: Regenerate.
11876 2014-07-30 Martin Jambor <mjambor@suse.cz>
11878 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11879 parameter to gimple.
11881 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11883 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11884 address as second parameter to __tpf_eh_return routine.
11886 2014-07-30 Jiong Wang <jiong.wang@arm.com>
11888 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11891 2014-07-30 Tom Tromey <tromey@redhat.com>
11894 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11895 * doc/extend.texi (Type Attributes): Document designated_init
11898 2014-07-30 Roman Gareev <gareevroman@gmail.com>
11900 * graphite-isl-ast-to-gimple.c:
11901 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11902 (gcc_expression_from_isl_expression): Pass type to
11903 gcc_expression_from_isl_ast_expr_id.
11905 2014-07-30 Richard Biener <rguenther@suse.de>
11907 * lto-streamer.h (lto_write_data): New function.
11908 * langhooks.c (lhd_append_data): Do not free block.
11909 * lto-section-out.c (lto_write_data): New function writing
11910 raw data to the current section.
11911 (lto_write_stream): Adjust for langhook semantic change.
11912 (lto_destroy_simple_output_block): Write header directly.
11913 * lto-opts.c (lto_write_options): Write options directly.
11914 * lto-streamer-out.c (produce_asm): Write heaeder directly.
11915 (lto_output_toplevel_asms): Likewise.
11916 (copy_function_or_variable): Copy data directly.
11917 (write_global_references): Output index table directly.
11918 (lto_output_decl_state_refs): Likewise.
11919 (write_symbol): Write data directly.
11920 (produce_symtab): Adjust.
11921 (produce_asm_for_decls): Output header and refs directly.
11923 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11925 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11926 to speculative_targets
11927 (get_class_context): Fix handling of contextes without outer type;
11928 avoid matching non-polymorphic types in LTO.
11929 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11930 parameter to speculative_targetsp; handle speculation.
11931 (dump_possible_polymorphic_call_targets): Update dumping.
11933 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11935 * common.opt (Wodr): Enable by default.
11937 2014-07-29 Olivier Hainque <hainque@adacore.com>
11939 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11941 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
11944 * gengtype.c (strtoken): New function.
11945 (create_user_defined_type): Replace strtok with strtoken.
11947 2014-07-29 Nathan Sidwell <nathan@acm.org>
11949 * gcov-io.c (gcov_var): Make hidden.
11950 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11951 (gcov_do_dump): Declare.
11952 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11954 2014-07-29 Martin Jambor <mjambor@suse.cz>
11956 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11957 parameter to gimple.
11958 (sra_modify_assign): Likewise.
11960 2014-07-29 Richard Biener <rguenther@suse.de>
11962 PR middle-end/52478
11963 * expr.c (expand_expr_real_2): Revert last change.
11965 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11967 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11968 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11969 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11971 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11972 (contains_type_p): Forward declare.
11973 (polymorphic_call_target_hasher::hash): Hash speculative info.
11974 (polymorphic_call_target_hasher::equal): Compare speculative info.
11975 (get_class_context): Handle speuclation.
11976 (contains_type_p): Update.
11977 (get_polymorphic_call_info_for_decl): Update.
11978 (walk_ssa_copies): Break out from ...
11979 (get_polymorphic_call_info): ... here; set speculative context
11981 * ipa-prop.c (ipa_write_indirect_edge_info,
11982 ipa_read_indirect_edge_info): Stream speculative context.
11983 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11984 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11985 SPECULATIVE_MAYBE_DERIVED_TYPE).
11986 (possible_polymorphic_call_targets overriders): Update.
11987 (dump_possible_polymorphic_call_targets overriders): Update.
11988 (dump_possible_polymorphic_call_target_p overriders): Update.
11990 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11992 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11993 ipa-devirt path; fix thinko there.
11995 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
11997 * config/i386/i386.c (ix86_return_in_memory): Replace one
11998 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12000 2014-07-28 Marek Polacek <polacek@redhat.com>
12002 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12004 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12006 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12007 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12008 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12009 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12010 (USE_LD_AS_NEEDED): Likewise.
12011 (ASM_APP_ON): Likewise.
12012 (ASM_APP_OFF): Likewise.
12013 (TARGET_POSIX_IO): Likewise.
12014 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12015 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12016 (USE_LD_AS_NEEDED): Likewise.
12017 (ASM_APP_ON): Likewise.
12018 (ASM_APP_OFF): Likewise.
12019 (TARGET_POSIX_IO): Likewise.
12021 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12023 PR middle-end/61734
12024 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12025 operators other than the equality operators.
12027 2014-07-28 Richard Biener <rguenther@suse.de>
12029 PR middle-end/52478
12030 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12031 sure to register SImode ones, not only >= word_mode ones.
12032 * expr.c (expand_expr_real_2): When expanding -ftrapv
12033 binops do not use OPTAB_LIB_WIDEN.
12035 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12037 PR middle-end/61919
12038 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12039 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12040 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12041 inserting them in the insn stream.
12043 2014-07-28 Marek Polacek <polacek@redhat.com>
12045 PR middle-end/61913
12046 * common.opt (Wodr): Add Var.
12048 2014-07-28 Richard Biener <rguenther@suse.de>
12050 PR tree-optimization/61921
12051 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12052 if there is a varpool node before dereferencing it.
12054 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12056 * graphite-sese-to-poly.c:
12057 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12058 id of the pbb), which contains pointer to the pbb1.
12060 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12062 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12064 * graphite-isl-ast-to-gimple.c:
12065 (graphite_create_new_guard): New function.
12066 (translate_isl_ast_node_if): New function.
12067 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12069 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12071 2014-07-27 Anthony Green <green@moxielogic.com>
12073 * config.gcc: Add moxie-*-moxiebox* configuration.
12074 * config/moxie/moxiebox.h: New file.
12076 2014-07-26 Andrew Pinski <apinski@cavium.com>
12078 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12079 from the read only register.
12081 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12083 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12084 as the allocation class if it isn't likely to be spilled.
12086 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12088 * rtl.h (tls_referenced_p): Declare.
12089 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12090 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12091 (mips_cannot_force_const_mem): Use tls_referenced_p.
12092 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12093 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12094 instead of pa_tls_referenced_p.
12095 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12096 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12097 (pa_legitimate_constant_p): Likewise.
12098 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12099 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12100 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12101 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12102 rs6000_tls_referenced_p.
12103 (rs6000_tls_symbol_ref_1): Delete.
12105 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12108 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12109 Optimize inverse of a VEC_CONCAT.
12111 2014-07-25 Xinliang David Li <davidxl@google.com>
12113 * params.def: New parameter.
12114 * coverage.c (get_coverage_counts): Check new flag.
12115 (coverage_compute_profile_id): Check new flag.
12116 (coverage_begin_function): Check new flag.
12117 (coverage_end_function): Check new flag.
12118 * value-prof.c (coverage_node_map_initialized_p): New function.
12119 (init_node_map): Populate map with all functions.
12120 * doc/invoke.texi: Document new parameter.
12122 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12123 Richard Biener <rguenther@suse.de>
12125 * lto-streamer-out.c (struct sccs): Turn to ...
12126 (class DFS): ... this one; refactor the DFS walk so it can
12127 be re-done on per-SCC basis.
12128 (DFS::DFS): New constructor.
12129 (DFS::~DFS): New destructor.
12130 (hash_tree): Add new MAP argument holding in-SCC hash values;
12131 remove POINTER_TYPE hashing hack.
12132 (scc_entry_compare): Rename to ...
12133 (DFS::scc_entry_compare): ... this one.
12134 (hash_scc): Rename to ...
12135 (DFS::hash_scc): ... this one; pass output_block instead
12136 of streamer_cache; work harder to get unique and stable SCC
12138 (DFS_write_tree): Rename to ...
12139 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12140 (lto_output_tree): Update.
12142 2014-07-25 Andi Kleen <ak@linux.intel.com>
12144 * lto-streamer-out.c (hash_tree): Convert to inchash.
12146 2014-07-25 Andi Kleen <ak@linux.intel.com>
12148 * tree.c (build_type_attribute_qual_variant): Use inchash.
12149 (type_hash_list): Dito.
12150 (attribute_hash_list): Dito
12151 (iterative_hstate_expr): Dito.
12152 (iterative_hash_expr): Dito.
12153 (build_range_type_1): Dito.
12154 (build_array_type_1): Dito.
12155 (build_function_type): Dito.
12156 (build_method_type_directly): Dito.
12157 (build_offset_type): Dito.
12158 (build_complex_type): Dito.
12159 (make_vector_type): Dito.
12160 * tree.h (iterative_hash_expr): Add compat wrapper.
12161 (iterative_hstate_expr): Add.
12163 2014-07-25 Andi Kleen <ak@linux.intel.com>
12165 * Makefile.in (OBJS): Add inchash.o.
12166 (PLUGIN_HEADERS): Add inchash.h.
12167 * ipa-devirt.c: Include inchash.h.
12168 * lto-streamer-out.c: Dito.
12169 * tree-ssa-dom.c: Dito.
12170 * tree-ssa-pre.c: Dito.
12171 * tree-ssa-sccvn.c: Dito.
12172 * tree-ssa-tail-merge.c: Dito.
12174 * tree.c (iterative_hash_hashval_t): Move to ...
12175 (iterative_hash_host_wide_int): Move to ...
12176 * inchash.c: Here. New file.
12177 * tree.h (iterative_hash_hashval_t): Move to ...
12178 (iterative_hash_host_wide_int): Move to ...
12179 * inchash.h: Here. New file.
12181 2014-07-25 Richard Biener <rguenther@suse.de>
12183 PR middle-end/61762
12184 PR middle-end/61894
12185 * fold-const.c (native_encode_int): Add and handle offset
12186 parameter to do partial encodings of expr.
12187 (native_encode_fixed): Likewise.
12188 (native_encode_real): Likewise.
12189 (native_encode_complex): Likewise.
12190 (native_encode_vector): Likewise.
12191 (native_encode_string): Likewise.
12192 (native_encode_expr): Likewise.
12193 * fold-const.c (native_encode_expr): Add offset parameter
12195 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12196 (fold_ctor_reference): Handle all reads from tcc_constant
12199 2014-07-25 Richard Biener <rguenther@suse.de>
12201 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12202 as possibly unused.
12204 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12206 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12208 2014-07-24 Kyle McMartin <kyle@redhat.com>
12210 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12212 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12214 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12216 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12218 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12219 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12220 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12222 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12224 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12225 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12226 aggregate types. Instead, *all* aggregate types, except for single-
12227 element or homogeneous float/vector aggregates, are quadword-aligned
12228 if required by their type alignment. Issue -Wpsabi note when a type
12229 is now treated differently than before.
12231 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12233 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12234 does not fit fully into floating-point registers, and there is still
12235 space in the register parameter area, use GPRs to pass those parts
12236 of the argument. Issue -Wpsabi note if any parameter is now treated
12237 differently than before.
12238 (rs6000_arg_partial_bytes): Update.
12240 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12242 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12244 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12246 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12247 * toplev.c (initialize_rtl): Don't use it. Move previously
12248 "language-dependent" calls to...
12249 (backend_init): ...here.
12250 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12251 Assert that RTL initialization hasn't happend yet.
12253 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12255 PR rtl-optimization/61629
12256 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12257 they have already been initialized.
12259 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12261 PR middle-end/61268
12262 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12263 DECL_INCOMING_RTL and entry_parm.
12264 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12265 * calls.c (load_register_parameters): Likewise argument values.
12266 (emit_library_call_value_1, store_one_arg): Likewise argument
12268 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12270 * explow.c (validize_mem): Modify the argument in-place.
12272 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12274 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12275 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12277 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12279 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12280 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12282 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12284 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12285 (aarch64_save_callee_saves): New parameter "skip_wb".
12286 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12288 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12290 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12292 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12294 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12296 * graphite-isl-ast-to-gimple.c:
12297 (graphite_create_new_loop): Add calling of isl_id_free to properly
12298 decrement reference counts.
12300 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12302 2014-07-24 Martin Liska <mliska@suse.cz>
12303 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12305 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12306 (rs6000_code_end): Likewise.
12308 2014-07-24 Martin Liska <mliska@suse.cz>
12310 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12311 symtab_node funtion used.
12312 (rs6000_xcoff_declare_object_name): Likewise.
12314 2014-07-24 Martin Liska <mliska@suse.cz>
12316 * cgraphunit.c (compile): Correct function used.
12318 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12320 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12323 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12326 * varasm.c (bss_initializer_p): Handle offlined ctors.
12327 (align_variable, get_variable_align): Likewise.
12328 (make_decl_one_only): Likewise.
12329 (default_binds_local_p_1): Likewise.
12330 (decl_binds_to_current_def_p): Likewise.
12331 (get_variable_section): Get constructor if it is offlined.
12332 (assemble_variable_contents): Sanity check that the caller
12333 streamed in the ctor in LTO.
12335 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12337 * graphite-isl-ast-to-gimple.c:
12338 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12339 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12340 isl_ast_op_pdiv_r to the different case.
12342 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12344 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12346 PR middle-end/61876
12347 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12348 when flag_errno_math is on.
12350 2014-07-24 Martin Liska <mliska@suse.cz>
12352 * cgraph.h (varpool_node):
12353 (availability get_availability (void)):
12354 created from cgraph_variable_initializer_availability
12355 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12356 created from: cgraph_variable_initializer_availability
12357 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12358 (void finalize_named_section_flags (void)):
12359 created from varpool_finalize_named_section_flags
12360 (bool assemble_decl (void)): created from varpool_assemble_decl
12361 (void analyze (void)): created from varpool_analyze_node
12362 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12363 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12364 (void remove_initializer (void)): created from varpool_remove_initializer
12365 (tree get_constructor (void)): created from varpool_get_constructor
12366 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12367 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12368 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12369 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12370 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12371 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12372 (static bool output_variables (void)): created from varpool_output_variables
12373 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12374 created from varpool_extra_name_alias
12375 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12376 (static void dump_varpool (FILE *f)): created from dump_varpool
12377 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12378 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12379 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12380 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12381 (void assemble_aliases (void)): created from assemble_aliases
12383 2014-07-24 Martin Liska <mliska@suse.cz>
12385 * cgraph.h (symtab_node):
12386 (void register_symbol (void)): created from symtab_register_node
12387 (void remove (void)): created from symtab_remove_node
12388 (void dump (FILE *f)): created from dump_symtab_node
12389 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12390 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12391 (struct ipa_ref *add_reference (symtab_node *referred_node,
12392 enum ipa_ref_use use_type)): created from add_reference
12393 (struct ipa_ref *add_reference (symtab_node *referred_node,
12394 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12395 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12396 gimple stmt)): created from maybe_add_reference
12397 (bool semantically_equivalent_p (symtab_node *target)): created from
12398 symtab_semantically_equivalent_p
12399 (void remove_from_same_comdat_group (void)): created from
12400 remove_from_same_comdat_group
12401 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12402 symtab_add_to_same_comdat_group
12403 (void dissolve_same_comdat_group_list (void)): created from
12404 symtab_dissolve_same_comdat_group_list
12405 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12406 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12407 created from symtab_alias_ultimate_target
12408 (inline symtab_node *next_defined_symbol (void)): created from
12409 symtab_next_defined_symbol
12410 (bool resolve_alias (symtab_node *target)): created from
12411 symtab_resolve_alias
12412 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12413 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12414 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12415 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12416 (void set_section (const char *section)): created from set_section_1
12417 (enum availability get_availability (void)): created from symtab_node_availability
12418 (void make_decl_local (void)): created from symtab_make_decl_local
12419 (bool real_symbol_p (void)): created from symtab_read_node
12420 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12421 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12422 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12423 symtab_in_same_comdat_p;
12424 (bool address_taken_from_non_vtable_p (void)): created from
12425 address_taken_from_non_vtable_p
12426 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12427 (static void dump_table (FILE *)): created from dump_symtab
12428 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12429 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12430 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12431 symtab_used_from_object_file_p
12432 (void dump_base (FILE *)): created from dump_symtab_base
12433 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12434 (void unregister (void)): created from symtab_unregister_node
12435 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12436 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12437 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12438 symtab_nonoverwritable_alias_1
12439 * cgraph.h (cgraph_node):
12440 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12441 created from cgraph_remove_node_and_inline_clones
12442 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12443 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12444 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12445 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12446 created from cgraph_function_node
12447 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12448 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12449 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12450 created from cgraph_create_clone
12451 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12452 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12453 created from cgraph_create_virtual_clone
12454 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12455 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12456 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12457 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12458 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12459 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12460 created from cgraph_function_version_info
12461 (struct cgraph_function_version_info *insert_new_function_version (void)):
12462 created from insert_new_cgraph_node_version
12463 (struct cgraph_function_version_info *function_version (void)): created from
12464 get_cgraph_node_version
12465 (void analyze (void)): created from analyze_function
12466 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12467 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12468 tree real_alias) cgraph_add_thunk
12469 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12470 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12471 created from cgraph_function_or_thunk_node
12472 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12473 created from expand_thunk
12474 (void reset (void)): created from cgraph_reset_node
12475 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12476 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12477 (void remove (void)): created from cgraph_remove_node
12478 (void dump (FILE *f)): created from dump_cgraph_node
12479 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12480 (bool get_body (void)): created from cgraph_get_body
12481 (void release_body (void)): created from cgraph_release_function_body
12482 (void unnest (void)): created from cgraph_unnest_node
12483 (void make_local (void)): created from cgraph_make_node_local
12484 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12485 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12486 gcov_type count, int freq)): created from cgraph_create_edge
12487 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12488 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12489 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12490 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12491 created from cgraph_create_edge_including_clones
12492 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12493 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12494 (void remove_callers (void)): created from cgraph_node_remove_callers
12495 (void remove_callees (void)): created from cgraph_node_remove_callees
12496 (enum availability get_availability (void)): created from cgraph_function_body_availability
12497 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12498 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12499 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12500 (void call_duplication_hooks (cgraph_node *node2)): created from
12501 cgraph_call_node_duplication_hooks
12502 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12503 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12504 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12505 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12506 (void call_function_insertion_hooks (void)):
12507 created from cgraph_call_function_insertion_hooks
12508 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12509 (bool local_p (void)): created from cgraph_local_node
12510 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12511 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12512 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12513 (inline bool only_called_directly_or_aliased_p (void)):
12514 created from cgraph_only_called_directly_or_aliased_p
12515 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12516 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12517 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12518 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12519 (bool can_remove_if_no_direct_calls_p (void)):
12520 created from cgraph_can_remove_if_no_direct_calls_p
12521 (inline bool has_gimple_body_p (void)):
12522 created from cgraph_function_with_gimple_body_p
12523 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12524 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12525 (static inline void debug_cgraph (void)): created from debug_cgraph
12526 (static void record_function_versions (tree decl1, tree decl2)):
12527 created from record_function_versions
12528 (static void delete_function_version (tree decl)):
12529 created from delete_function_version
12530 (static void add_new_function (tree fndecl, bool lowered)):
12531 created from cgraph_add_new_function
12532 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12533 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12534 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12535 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12536 (static cgraph_node *get_for_asmname (tree asmname)):
12537 created from cgraph_node_for_asm
12538 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12539 created from cgraph_same_body_alias
12540 (static bool used_from_object_file_p_worker (cgraph_node *node,
12541 void *): new function
12542 (static bool non_local_p (cgraph_node *node, void *)):
12543 created from cgraph_non_local_node_p_1
12544 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12545 created from verify_cgraph
12546 (static bool make_local (cgraph_node *node, void *)):
12547 created from cgraph_make_node_local
12548 (static cgraph_node *create_alias (tree alias, tree target)):
12549 created from cgraph_create_function_alias
12550 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12551 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12552 created from cgraph_create_edge_1
12553 * cgraph.h (varpool_node):
12554 (void remove (void)): created from varpool_remove_node
12555 (void dump (FILE *f)): created from dump_varpool_node
12557 2014-07-24 Richard Biener <rguenther@suse.de>
12560 * tree-ssa-structalias.c (create_variable_info_for_1):
12561 Use varpool_get_constructor.
12562 (create_variable_info_for): Likewise.
12564 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12566 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12567 subtract outgoing area size when restoring stack_pointer_rtx.
12569 2014-07-24 Nick Clifton <nickc@redhat.com>
12571 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12572 that operations are taking place in parallel.
12573 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12575 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12577 * omp-low.c (extract_omp_for_data): Add missing break statement.
12579 2014-07-24 Richard Biener <rguenther@suse.de>
12581 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12582 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12583 and adjust MOVE_RATIO query accordingly.
12584 (estimate_num_insns): Adjust callers.
12585 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12586 * ipa-cp.c (gather_context_independent_values,
12587 estimate_local_effects): Likewise.
12588 * ipa-split.c (consider_split): Likewise.
12590 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12592 * config/i386/driver-i386.c: Remove names of unused arguments and
12593 unnecessary unused attributes.
12594 * config/i386/host-mingw32.c: Likewise.
12595 * config/i386/i386.c: Likewise.
12596 * config/i386/winnt-stubs.c: Likewise.
12597 * config/i386/winnt.c: Likewise.
12599 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12601 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12602 (aarch64_gen_loadwb_pair): New helper function.
12603 (aarch64_expand_epilogue): Simplify code using new helper functions.
12604 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12606 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12608 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12609 (aarch64_gen_storewb_pair): New helper function.
12610 (aarch64_expand_prologue): Simplify code using new helper functions.
12611 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12613 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12615 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12616 Rename to aarch64_save_callee_saves, remove restore code.
12617 (aarch64_restore_callee_saves): New function.
12619 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12621 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12622 (aarch64_save_callee_saves): New function to handle reg save
12623 for both core and vectore regs.
12625 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12627 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12628 (aarch64_gen_store_pair): New helper function.
12629 (aarch64_save_or_restore_callee_save_registers)
12630 (aarch64_save_or_restore_fprs): Use new helper functions.
12632 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12634 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12635 (aarch64_save_or_restore_callee_save_registers)
12636 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12638 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12640 * config/aarch64/aarch64.c
12641 (aarch64_save_or_restore_callee_save_registers)
12642 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12644 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12646 * config/aarch64/aarch64.c
12647 (aarch64_save_or_restore_callee_save_registers)
12648 (aarch64_save_or_restore_fprs): Remove 'increment'.
12650 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12652 * config/aarch64/aarch64.c
12653 (aarch64_save_or_restore_callee_save_registers)
12654 (aarch64_save_or_restore_fprs): Use register offset in
12655 cfun->machine->frame.reg_offset.
12657 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12659 * config/aarch64/aarch64.c
12660 (aarch64_save_or_restore_callee_save_registers)
12661 (aarch64_save_or_restore_fprs): Remove base_rtx.
12663 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12665 * config/aarch64/aarch64.c
12666 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12667 to 'start_offset'. Remove local variable 'start_offset'.
12669 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12671 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12672 type to HOST_WIDE_INT.
12674 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12676 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12677 (aarch64_save_or_restore_fprs)
12678 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12680 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12682 * config/arm/t-rtems-eabi: Add
12683 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12684 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12685 mbig-endian/mthumb/march=armv7-r, and
12686 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12689 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12690 Chris Johns <chrisj@rtems.org>
12691 Joel Sherrill <joel.sherrill@oarcorp.com>
12693 * config.gcc: Add nios2-*-rtems*.
12694 * config/nios2/rtems.h: New file.
12695 * gcc/config/nios2/t-rtems: New file.
12697 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12700 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12701 constant numbers, not general constants.
12702 (rs6000_expand_vector_init): Ditto.
12704 2014-07-23 Nathan Sidwell <nathan@acm.org>
12706 * gcov-tool.c (gcov_list): Declare here.
12707 (set_gcov_list): Remove.
12708 (gcov_output_files): Set gcov_list directly.
12710 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12712 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12714 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12716 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12717 callee-saved registers are available for padding purpose
12718 and r3 is not mandatory, then prefer use those callee-saved
12721 2014-07-23 Richard Biener <rguenther@suse.de>
12723 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12724 * combine.c: Include statistics.h and params.h.
12725 (combine_instructions): Guard three and four insn combines
12726 with max-combine-insns value. Record statistics for combines
12728 * doc/invoke.texi (max-combine-insns): Document new param.
12730 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12732 * graphite-isl-ast-to-gimple.c:
12733 (translate_isl_ast_node_block): New function.
12734 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12736 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12737 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12739 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12741 * graphite-isl-ast-to-gimple.c:
12742 (get_max_schedule_dimensions): New function.
12743 (extend_schedule): Likewise.
12744 (generate_isl_schedule): Add calling of extend_schedule and
12745 get_max_schedule_dimensions.
12747 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12749 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12750 (case UNSPEC): Handle UNSPEC_RBIT.
12752 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12754 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12755 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12757 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12759 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12761 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12763 * graphite-isl-ast-to-gimple.c:
12764 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12765 (ivs_params_clear):
12766 (build_iv_mapping): New function.
12767 (translate_isl_ast_node_user): Likewise.
12768 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12770 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12771 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12772 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12774 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12777 * config/arm/arm.md (setmem): New pattern.
12778 * config/arm/arm-protos.h (struct tune_params): New fields.
12779 (arm_gen_setmem): New prototype.
12780 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12781 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12782 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12783 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12784 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12785 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12786 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12787 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12788 (arm_const_inline_cost): New function.
12789 (arm_block_set_max_insns): New function.
12790 (arm_block_set_non_vect_profit_p): New function.
12791 (arm_block_set_vect_profit_p): New function.
12792 (arm_block_set_unaligned_vect): New function.
12793 (arm_block_set_aligned_vect): New function.
12794 (arm_block_set_unaligned_non_vect): New function.
12795 (arm_block_set_aligned_non_vect): New function.
12796 (arm_block_set_vect, arm_gen_setmem): New functions.
12798 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12800 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12802 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
12805 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12806 out of #ifdef __OPTIMIZE__.
12808 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12810 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12811 different trapping status if -fnon-call-exceptions is enabled.
12813 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12815 * expr.c (store_field): Handle VOIDmode for calls that return values
12816 in multiple locations.
12818 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12820 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
12821 (altivec_vsldoi_<mode>): Likewise.
12823 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12825 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12826 to the number of characters in the line.
12828 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12830 * graphite-isl-ast-to-gimple.c: Add using of
12831 build_nonstandard_integer_type instead of int128_integer_type_node.
12833 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
12835 * toplev.c (output_stack_usage): Adjust the location of the warning.
12837 2014-07-19 Daniel Cederman <cederman@gaisler.com>
12839 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12840 (*membar_storeload): Disable for LEON3.
12842 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12844 PR rtl-optimization/61461
12845 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12847 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
12850 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12851 Fix instruction constraint.
12852 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12854 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
12856 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12858 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
12860 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12861 GNU coding standards.
12862 (nds32_register_move_cost): Likewise.
12863 (nds32_memory_move_cost): Likewise.
12864 (nds32_address_cost): Likewise.
12866 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12868 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12870 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
12872 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12873 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12874 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12875 (HAVE_sync_compare_and_swapqi): Define.
12876 (HAVE_sync_compare_and_swaphi): Likewise.
12877 (HAVE_sync_compare_and_swapsi): Likewise.
12879 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
12881 * config/mips/p5600.md: Add missing cpu tests.
12883 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12885 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12886 (vmla_f64): Likewise.
12887 (vfms_f64): Likewise.
12888 (vmls_f64): Likewise.
12890 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12892 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12893 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12895 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12897 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12898 (vmlal_high_lane_s32): Likewise.
12899 (vmlal_high_lane_u16): Likewise.
12900 (vmlal_high_lane_u32): Likewise.
12901 (vmlsl_high_lane_s16): Likewise.
12902 (vmlsl_high_lane_s32): Likewise.
12903 (vmlsl_high_lane_u16): Likewise.
12904 (vmlsl_high_lane_u32): Likewise.
12906 2014-07-17 Terry Guo <terry.guo@arm.com>
12908 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12909 (alus_reg): Renamed to alus_sreg.
12910 * config/arm/arm-fixed.md: Change type of non-dsp instructions
12911 from alu_reg to alu_sreg. Change type of dsp instructions from
12912 alu_reg to alu_dsp_reg.
12913 * config/arm/thumb1.md: Likewise.
12914 * config/arm/thumb2.md: Likewise.
12915 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12916 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12917 with alu_sreg and alus_sreg.
12918 * config/arm/arm1026ejs.md (alu_op): Likewise.
12919 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12920 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12921 * config/arm/fa526.md (526_alu_op): Likewise.
12922 * config/arm/fa606te.md (606te_alu_op): Likewise.
12923 * config/arm/fa626te.md (626te_alu_op): Likewise.
12924 * config/arm/fa726te.md (726te_alu_op): Likewise.
12925 * config/arm/fmp626.md (mp626_alu_op): Likewise.
12926 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12927 alu_sreg, alu_dsp_reg and alus_sreg.
12928 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12929 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12930 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12931 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12932 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12933 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12934 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12935 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12936 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12937 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12938 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12939 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12940 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12941 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12942 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12943 alus_reg to alus_sreg.
12945 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
12947 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12950 2014-07-17 Richard Biener <rguenther@suse.de>
12952 PR rtl-optimization/61801
12953 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12954 don't set reg_pending_barrier if it appears in a debug-insn.
12956 2014-07-16 DJ Delorie <dj@redhat.com>
12958 * config/rx/rx.c (rx_option_override): Fix alignment values.
12959 (rx_align_for_label): Likewise.
12961 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
12964 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12965 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12966 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12968 (cris_print_index, cris_print_operand, cris_constant_index_p)
12969 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12970 (cris_address_cost): Ditto last CONSTANT_P.
12971 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
12972 callers changed. Yield cris_offsettable_symbol for non-PIC
12973 constant symbolic expressions including labels. Yield cris_unspec
12975 (cris_expand_pic_call_address): New parameter MARKERP. Set its
12976 target to pic_offset_table_rtx for calls that will likely go
12977 through PLT, const0_rtx when they can't. All callers changed.
12978 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12979 symbolic expressions to be PICified. Remove second, redundant,
12980 assert on can_create_pseudo_p returning non-zero. Use
12981 replace_equiv_address_nv, not replace_equiv_address, for final
12983 * config/cris/cris.md ("movsi"): Move variable t to pattern
12984 toplevel. Adjust assert for new cris_symbol_type member. Use
12985 CONSTANT_P instead of CONSTANT_ADDRESS_P.
12986 ("*movsi_internal") <case 9>: Make check for valid unspec operands
12988 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12989 ("call", "call_value"): Use second incoming operand as a marker
12990 for pic-offset-table-register being used.
12991 ("*expanded_call_non_v32", "*expanded_call_v32")
12992 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12993 second incoming operand to CALL, match cris_call_type_marker.
12994 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
12995 ("*expanded_call_side"): Ditto. Fix typo in comment.
12996 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12998 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12999 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13000 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13001 users changed. Add members cris_offsettable_symbol and cris_unspec.
13002 (cris_symbol_type): Rename from cris_pic_symbol_type.
13003 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13005 * config/cris/cris-protos.h (cris_symbol_type_of,
13006 cris_expand_pic_call_address): Adjust prototypes.
13007 (cris_legitimate_constant_p): New prototype.
13009 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13010 an existing tmake_file. Don't add t-slibgcc and t-linux.
13012 2014-07-17 Jason Merrill <jason@redhat.com>
13015 * symtab.c (symtab_remove_from_same_comdat_group): Also
13016 set_comdat_group to NULL_TREE.
13017 (verify_symtab): Fix diagnostic.
13019 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13022 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13024 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13026 Support location tracking for built-in macro tokens
13027 * input.h (is_location_from_builtin_token): New function declaration.
13028 * input.c (is_location_from_builtin_token): New function definition.
13029 * toplev.c (general_init): Tell libcpp what the pre-defined
13030 spelling location for built-in tokens is.
13032 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13034 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13035 on the FUNCTION_DECL.
13037 2014-07-16 Richard Biener <rguenther@suse.de>
13040 * doc/extend.texi (always_inline): Clarify.
13042 2014-07-15 Eric Christopher <echristo@gmail.com>
13044 * doc/invoke.texi (Link Options): Document -z option.
13046 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13048 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13049 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13051 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13053 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13055 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13057 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13058 varpool_assemble_decl.
13059 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13062 2014-07-15 Michael Matz <matz@suse.de>
13064 PR rtl-optimization/61772
13065 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13067 2014-07-15 Richard Biener <rguenther@suse.de>
13069 * opts.c (default_options_table): Disable bit-ccp at -Og.
13071 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13073 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13075 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13077 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13078 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13079 call langhook for unknown declaration.
13080 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13081 * tree.h (DECL_ARGUMENTS): Update.
13082 * print-tree.c (print_node): Update.
13083 * tree-core.h (tree_decl_non_common): Remove arguments.
13084 (tree_function_decl): Add arguments.
13086 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13088 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13090 2014-07-14 Richard Biener <rguenther@suse.de>
13092 PR tree-optimization/61779
13093 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13094 simplifying a condition.
13096 2014-07-14 Richard Biener <rguenther@suse.de>
13098 * builtins.c (c_strlen): Make only_value == 2 really only
13099 affect warning generation.
13101 2014-07-14 Richard Biener <rguenther@suse.de>
13103 PR tree-optimization/61757
13104 PR tree-optimization/61783
13105 PR tree-optimization/61787
13106 * tree-ssa-dom.c (record_equality): Revert canonicalization
13107 change and add comment.
13108 (propagate_rhs_into_lhs): Revert previous fix, removing
13109 loop depth restriction again.
13111 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13113 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13114 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13115 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13116 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13117 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13118 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13119 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13121 2014-07-14 Richard Biener <rguenther@suse.de>
13123 * cgraph.h (decl_in_symtab_p): Make inline.
13125 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13127 PR middle-end/61294
13128 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13131 * config/i386/i386.c (classify_argument): Don't merge classes above
13134 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13136 * cgraph.h (symtab_node): Add nonzero_address.
13137 (decl_in_symtab_p): Break out from ...
13138 (symtab_get_node): ... here.
13139 * fold-const.c: Include cgraph.h
13140 (tree_single_nonzero_warnv_p): Use symtab to determine
13141 if symbol is non-zero.
13142 * symtab.c (symtab_node::nonzero_address): New method.
13144 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13146 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13147 forgotten in previous commit.
13149 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13151 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13153 * ipa-devirt.c: Include stor-layout.h and intl.h
13154 (odr_subtypes_equivalent_p): New function.
13155 (warn_odr): New function.
13156 (warn_type_mismatch): New function.
13157 (odr_types_equivalent_p): New function.
13158 (add_type_duplicate): Use it.
13159 * common.opt (Wodr): New flag.
13160 * doc/invoke.texi (Wodr): Document new warning.
13162 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13164 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13165 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13166 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13167 (varpool_get_constructor): Push CTORS_IN timevar.
13168 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13170 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13172 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13173 Remove VOID_FTYPE_PUSHORT.
13174 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13175 Change code to USHORT_FTYPE_VOID.
13176 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13177 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13178 (ix86_atomic_assign_expand_fenv): Update for
13179 __builtin_ia32_fnstsw changes.
13180 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13181 (fnstsw): Change operand 0 to nonimmediate operand.
13183 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13185 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13186 (varpool_get_constructor): New function.
13187 (varpool_ctor_useable_for_folding_p): Break out from ...
13188 (ctor_for_folding): ... here; use varpool_get_constructor.
13189 (varpool_assemble_decl): Likewise.
13190 * lto-streamer.h (struct output_block): Turn cgraph_node
13192 (lto_input_variable_constructor): Declare.
13193 * ipa-visibility.c (function_and_variable_visibility): Use
13194 varpool_get_constructor.
13195 * cgraph.h (varpool_get_constructor): Declare.
13196 (varpool_ctor_useable_for_folding_p): New function.
13197 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13198 parameter; return error_mark_node for non-trivial constructors.
13199 (lto_write_tree_1, DFS_write_tree): Update use of
13200 get_symbol_initial_value.
13201 (output_function): Update initialization of symbol.
13202 (output_constructor): New function.
13203 (copy_function): Rename to ..
13204 (copy_function_or_variable): ... this one; handle vars too.
13205 (lto_output): Output variable sections.
13206 * lto-streamer-in.c (input_constructor): New function.
13207 (lto_read_body): Rename from ...
13208 (lto_read_body_or_constructor): ... this one; handle vars too.
13209 (lto_input_variable_constructor): New function.
13210 * ipa-prop.c (ipa_prop_write_jump_functions,
13211 ipa_prop_write_all_agg_replacement): Update.
13212 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13213 (output_cgraph_opt_summary): Set symbol to NULL.
13215 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13217 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13218 non-polymorphic types.
13219 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13220 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13221 of types is not polymorphic.
13223 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13225 * lra-constraints.c (remove_inheritance_pseudos): Process
13226 destination pseudo too.
13228 2014-07-11 Rong Xu <xur@google.com>
13230 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13233 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13235 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13236 * config/avr/avr-devices.c (AVR_MCU): Same.
13237 (avr_mcu_types): add text start value to end of device list.
13238 * config/avr/avr-mcus.def: Add text section start for all devices.
13239 (ata5782): Add new avr5 device.
13241 * config/avr/avr-tables.opt: Regenerate.
13242 * config/avr/avr.h: Add declaration for text section start handler.
13243 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13245 (LINK_SPEC): Include text section start handler to linker spec.
13246 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13247 pass -Ttext option to linker if the text section start for the device
13249 * config/avr/t-multilib: Regenerate.
13250 * doc/avr-mmcu.texi: Regenerate.
13252 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13254 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13255 * config/rs6000/aix52.h (LINK_SPEC): Same.
13256 * config/rs6000/aix53.h (LINK_SPEC): Same.
13257 * config/rs6000/aix61.h (LINK_SPEC): Same.
13258 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13260 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13262 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13263 (graphite_verify): New function.
13264 (ivs_params_clear): New function.
13265 (gcc_expression_from_isl_ast_expr_id): New function.
13266 (gcc_expression_from_isl_expr_int): New function.
13267 (binary_op_to_tree): New function.
13268 (ternary_op_to_tree): New function.
13269 (unary_op_to_tree): New function.
13270 (nary_op_to_tree): New function.
13271 (gcc_expression_from_isl_expr_op): New function.
13272 (gcc_expression_from_isl_expression): New function.
13273 (graphite_create_new_loop): New function.
13274 (translate_isl_ast_for_loop): New function.
13275 (get_upper_bound): New function.
13276 (graphite_create_new_loop_guard): New function.
13277 (translate_isl_ast_node_for): New function.
13278 (translate_isl_ast): New function.
13279 (add_parameters_to_ivs_params): New function.
13280 (scop_to_isl_ast): New parameter ip.
13281 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13283 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13285 * config/xtensa/predicates.md (call expander): Update for
13286 DECL_SECTION_NAME being string.
13288 2014-07-11 Richard Biener <rguenther@suse.de>
13290 PR middle-end/61473
13291 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13292 can be implemented with a single load followed by a single store.
13293 (c_strlen): Only warn when only_value is not 2.
13295 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13297 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13299 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13302 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13303 (*movhi_bytes): Likewise.
13304 (*arm_movqi_insn): Likewise.
13306 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13309 * config/alpha/alpha.c: Include tree-pass.h, context.h
13310 and pass_manager.h.
13311 (pass_data_handle_trap_shadows): New pass.
13312 (pass_handle_trap_shadows::gate): New pass gate function.
13313 (make_pass_handle_trap_shadows): New function.
13314 (rest_of_handle_trap_shadows): Ditto.
13316 (alpha_align_insns_1): Rename from alpha_align_insns.
13317 (pass_data_align_insns): New pass.
13318 (pass_align_insns::gate): New pass gate function.
13319 (make_pass_aling_insns): New function.
13320 (rest_of_align_insns): Ditto.
13321 (alpha_align_insns): Ditto.
13323 (alpha_option_override): Declare handle_trap_shadows info
13324 and align_insns_info. Register handle_trap_shadows and align_insns
13326 (alpha_reorg): Do not call alpha_trap_shadows and
13327 alpha_align_insn from here.
13329 (alpha_pad_function_end): Do not skip BARRIERs.
13331 2014-07-10 Rong Xu <xur@google.com>
13333 Add gcov-tool: an offline gcda profile processing tool support.
13334 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13335 (gcov_is_error): Ditto.
13336 (gcov_read_string): Ditto.
13337 (gcov_read_sync): Ditto.
13338 * gcov-io.h: Move counter defines to gcov-counter.def.
13339 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13340 * coverage.c: Ditto.
13341 * gcov-tool.c: Offline gcda profile processing tool.
13342 (unlink_gcda_file): Remove one gcda file.
13343 (unlink_profile_dir): Remove gcda files from the profile path.
13344 (gcov_output_files): Output gcda files to an output dir.
13345 (profile_merge): Merge two profiles in directory.
13346 (print_merge_usage_message): Print merge usage.
13347 (merge_usage): Print merge usage and exit.
13348 (do_merge): Driver for profile merge sub-command.
13349 (profile_rewrite): Rewrite profile.
13350 (print_rewrite_usage_message): Print rewrite usage.
13351 (rewrite_usage): Print rewrite usage and exit.
13352 (do_rewrite): Driver for profile rewrite sub-command.
13353 (print_usage): Print gcov-info usage and exit.
13354 (print_version): Print gcov-info version.
13355 (process_args): Process arguments.
13356 (main): Main routine for gcov-tool.
13357 * Makefile.in: Build and install gcov-tool.
13358 * gcov-counter.def: New file split from gcov-io.h.
13359 * doc/gcc.texi: Include gcov-tool.texi.
13360 * doc/gcov-tool.texi: Document for gcov-tool.
13362 2014-07-10 Richard Biener <rguenther@suse.de>
13364 PR tree-optimization/61757
13365 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13366 (propagate_rhs_into_lhs): Revert part of last change.
13368 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13370 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13373 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13375 PR middle-end/53590
13376 * function.c (allocate_struct_function): Revert r188667 change.
13378 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13380 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13382 * doc/install.texi: Remove links to defunct package providers for
13385 2014-07-09 Tom de Vries <tom@codesourcery.com>
13387 * final.c (get_call_fndecl): Declare.
13388 (self_recursive_call_p): New function.
13389 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13391 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13393 * ipa-devirt.c (record_node): Walk through aliases.
13395 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13397 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13399 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13402 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13404 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13406 * ipa-visibility.c (function_and_variable_visibility): Remove
13407 temporary hack disabling local aliases on AIX.
13409 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13411 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13412 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13414 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13416 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13417 * rs6000/rs6000.c: Inline output of .set instruction.
13418 (declare_alias_data): New struct.
13419 (rs6000_declare_alias): New function.
13420 (rs6000_xcoff_declare_function_name): Use it.
13421 (rs6000_xcoff_declare_object_name): New function.
13422 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13423 (ASM_OUTPUT_DEF): Turn to empty definition.
13425 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13428 * hash-table.h: use hash_table::value_type instead of
13429 Descriptor::value_type in the return types of several methods.
13431 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13433 * tree-pass.h (pass_data): Remove has_execute member.
13434 * passes.c (execute_one_pass): Don't check pass->has_execute.
13435 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13436 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13437 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13438 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13439 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13440 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13441 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13442 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13443 gimple-low.c, gimple-ssa-isolate-paths.c,
13444 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13445 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13446 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13447 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13448 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13449 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13450 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13451 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13452 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13453 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13454 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13455 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13456 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13457 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13458 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13459 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13460 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13461 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13462 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13463 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13464 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13465 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13466 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13467 web.c: Remove initializer for pass_data::has_execute.
13469 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13471 * graphite-htab.h: Use hash_map instead of hash_table.
13472 * graphite-clast-to-gimple.c: Adjust.
13473 * passes.c: Use hash_map instead of hash_table.
13474 * sese.c: Likewise.
13475 * sese.h: Remove now unused code.
13477 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13480 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13483 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13485 PR rtl-optimization/61673
13486 * combine.c (simplify_comparison): Test just mode's sign bit
13487 in tmode rather than the sign bit and any bits above it.
13489 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13491 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13492 Add __isl_give to the declaration.
13493 (generate_isl_schedule): Likewise.
13494 (scop_to_isl_ast): Likewise.
13496 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13498 * config/arm/arm.c (cortexa5_extra_costs): New table.
13499 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13501 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13503 PR tree-optimization/61725
13504 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13505 range, use range_includes_zerop_p instead of integer_zerop on
13506 vr0->min, only use log2 of max if min is not negative.
13508 2014-07-08 Richard Biener <rguenther@suse.de>
13510 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13511 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13512 restriction on loop depth difference.
13513 (record_equality): Likewise.
13514 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13515 (loop_depth_of_name): Remove.
13516 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13517 restriction on loop depth difference.
13518 (init_copy_prop): Likewise.
13520 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13522 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13524 (walk_aliased_vdefs): Likewise.
13525 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13526 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13527 (detect_type_change_from_memory_writes): Check if entry was reached.
13529 2014-07-08 Richard Biener <rguenther@suse.de>
13531 PR tree-optimization/61681
13532 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13533 NONLOCAL inside ESCAPED.
13535 2014-07-08 Richard Biener <rguenther@suse.de>
13537 PR tree-optimization/61680
13538 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13539 Handle properly all read-write dependences with group accesses.
13541 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13543 PR tree-optimization/61576
13544 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13545 block containing reduction statement is predecessor of phi basi block.
13547 2014-07-08 Marek Polacek <polacek@redhat.com>
13550 * fold-const.c (round_up_loc): Change the parameter type.
13552 * fold-const.h (round_up_loc): Adjust declaration.
13553 * stor-layout.c (finalize_record_size): Check for too large types.
13555 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13557 * symtab.c: Include calls.h.
13558 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13560 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13562 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13563 little-endian code generation.
13564 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13565 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13566 (spe_evmergehilo): Rename to...
13567 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13568 (spe_evmergelo): Rename to...
13569 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13570 (spe_evmergelohi): Rename to...
13571 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13572 (spe_evmergehi, spe_evmergehilo): New expanders.
13573 (spe_evmergelo, spe_evmergelohi): Likewise.
13574 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13575 (*frob_tf_ti): Likewise.
13576 (*frob_<mode>_di_2): Likewise.
13577 (*frob_tf_di_8_2): Likewise.
13578 (*frob_di_<mode>): Likewise.
13579 (*frob_ti_tf): Likewise.
13580 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13581 (*frob_ti_<mode>_8_2): Likewise.
13582 (*frob_ti_tf_2): Likewise.
13583 (mov_si<mode>_e500_subreg0): Rename to...
13584 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13586 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13587 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13588 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13589 the big endianness only.
13590 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13591 (*mov_si<mode>_e500_subreg0_2): Rename to...
13592 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13593 big big endianness only.
13594 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13595 (*mov_si<mode>_e500_subreg4): Rename to...
13596 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13598 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13599 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13600 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13601 the big endianness only.
13602 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13604 (*mov_si<mode>_e500_subreg4_2): Rename to...
13605 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13607 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13608 (*mov_sitf_e500_subreg8): Rename to...
13609 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13611 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13612 (*mov_sitf_e500_subreg8_2): Rename to...
13613 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13615 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13616 (*mov_sitf_e500_subreg12): Rename to...
13617 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13619 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13620 (*mov_sitf_e500_subreg12_2): Rename to...
13621 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13623 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13625 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13627 * asan.c (instrument_strlen_call): Do not instrument first byte
13628 in strlen if already instrumented.
13630 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13632 * config/arm/arm.opt (mwords-little-endian): Delete.
13633 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13634 of TARGET_LITTLE_WORDS.
13635 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13636 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13638 * doc/invoke.texi: Remove references to -mwords-little-endian.
13640 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13642 * expmed.c (struct init_expmed_rtl): Change all fields but
13643 pow2 and cint from struct rtx_def to rtx.
13644 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13645 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13648 2014-07-06 Marek Polacek <polacek@redhat.com>
13651 * doc/invoke.texi: Document -Wsizeof-array-argument.
13653 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13655 * wide-int.h (wide_int_storage): Change declaration from struct
13658 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13660 * cgraph.c (cgraph_create_indirect_edge): Update call of
13661 get_polymorphic_call_info.
13662 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13663 (possible_polymorphic_call_targets): Add parameter call.
13664 (decl_maybe_in_construction_p): New predicate.
13665 (get_polymorphic_call_info): Add parameter call;
13666 use decl_maybe_in_construction_p.
13667 * gimple-fold.c (fold_gimple_assign): Update use of
13668 possible_polymorphic_call_targets.
13669 (gimple_fold_call): Likewise.
13670 * ipa-prop.c: Inlcude calls.h
13671 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13672 (param_type_may_change_p): New predicate.
13673 (detect_type_change_from_memory_writes): Break out from ...
13674 (detect_type_change): ... this one; use param_type_may_change_p.
13675 (detect_type_change_ssa): Use param_type_may_change_p.
13676 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13678 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13681 * config/arm/arm-protos.h (arm_legitimate_address_p,
13682 arm_is_constant_pool_ref): Add prototypes.
13683 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13684 (arm_is_constant_pool_ref) New function.
13685 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13686 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13687 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13688 operand. Remove pool_range and neg_pool_range attributes.
13689 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13690 pool_range and neg_pool_range attributes.
13691 * config/arm/constraints.md (Uh): New constraint.
13692 (Uq): Don't allow constant pool references.
13694 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13696 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13697 (move_lo_quad_internal_be_<mode>): Likewise.
13698 (move_lo_quad_<mode>): Convert to define_expand.
13699 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13700 (aarch64_simd_move_hi_quad_be_<mode>): New.
13701 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13702 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13703 (aarch64_combinez_be<mode>): New.
13704 (aarch64_combine<mode>): Convert to define_expand.
13705 (aarch64_combine_internal<mode>): New.
13706 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13708 2014-07-04 Tom de Vries <tom@codesourcery.com>
13710 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13711 combination of earlyclobber and read/write modifiers.
13713 2014-07-04 Tom de Vries <tom@codesourcery.com>
13715 * config/aarch64/aarch64-simd.md
13716 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13718 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13721 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13723 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13725 PR middle-end/61654
13726 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13728 PR tree-optimization/61684
13729 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13730 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13732 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13733 Kito Cheng <kito@0xlab.org>
13734 Monk Chiang <sh.chiang04@gmail.com>
13736 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13737 (nds32_symbol_load_store_p): Move to ...
13738 (nds32_fp_as_gp_check_available): Move to ...
13739 * config/nds32/nds32-fp-as-gp.c: ... here.
13740 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13741 extern declaration.
13743 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13744 Kito Cheng <kito@0xlab.org>
13745 Monk Chiang <sh.chiang04@gmail.com>
13747 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13748 (nds32_expand_store_multiple): Move to ...
13749 (nds32_expand_movmemqi): Move to ...
13750 * config/nds32/nds32-memory-manipulation.c: ... here.
13752 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13753 Kito Cheng <kito@0xlab.org>
13754 Monk Chiang <sh.chiang04@gmail.com>
13756 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13757 (nds32_output_casesi_pc_relative): Move to ...
13758 (nds32_output_casesi): Move to ...
13759 (nds32_mem_format): Move to ...
13760 (nds32_output_16bit_store): Move to ...
13761 (nds32_output_16bit_load): Move to ...
13762 (nds32_output_32bit_store): Move to ...
13763 (nds32_output_32bit_load): Move to ...
13764 (nds32_output_32bit_load_s): Move to ...
13765 (nds32_output_stack_push): Move to ...
13766 (nds32_output_stack_pop): Move to ...
13767 * config/nds32/nds32-md-auxiliary.c: ... here.
13769 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13770 Ling-Hua Tseng <uranus@tinlans.org>
13772 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13773 the purpose of this file.
13775 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13776 Kito Cheng <kito@0xlab.org>
13777 Monk Chiang <sh.chiang04@gmail.com>
13779 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13780 (nds32_address_cost): Move implementation to ...
13781 * config/nds32/nds32-cost.c: ... here.
13782 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13783 (nds32_address_cost_impl): Declare.
13785 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13786 Kito Cheng <kito@0xlab.org>
13787 Monk Chiang <sh.chiang04@gmail.com>
13789 * config/nds32/nds32.c
13790 (nds32_consecutive_registers_load_store_p): Move to ...
13791 (nds32_valid_multiple_load_store): Move to ...
13792 (nds32_valid_stack_push_pop): Move to ...
13793 (nds32_can_use_bclr_p): Move to ...
13794 (nds32_can_use_bset_p): Move to ...
13795 (nds32_can_use_btgl_p): Move to ...
13796 (nds32_can_use_bitci_p): Move to ...
13797 * config/nds32/nds32-predicates.c: ... here.
13799 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13800 Kito Cheng <kito@0xlab.org>
13801 Monk Chiang <sh.chiang04@gmail.com>
13803 * config/nds32/nds32.c
13804 (nds32_expand_builtin_null_ftype_reg): Move to ...
13805 (nds32_expand_builtin_reg_ftype_imm): Move to ...
13806 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13807 (nds32_init_builtins): Move implementation to ...
13808 (nds32_expand_builtin): Move implementation to ...
13809 * config/nds32/nds32-intrinsic.c: ... here.
13810 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13811 (nds32_expand_builtin_impl): Declare.
13813 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13814 Kito Cheng <kito@0xlab.org>
13815 Monk Chiang <sh.chiang04@gmail.com>
13817 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13818 (nds32_emit_section_tail_template): Move to ...
13819 (nds32_emit_isr_jmptbl_section): Move to ...
13820 (nds32_emit_isr_vector_section): Move to ...
13821 (nds32_emit_isr_reset_conten): Move to ...
13822 (nds32_check_isr_attrs_conflict): Move to ...
13823 (nds32_construct_isr_vectors_information): Move to ...
13824 (nds32_asm_file_start): Move implementation to ...
13825 (nds32_asm_file_end): Move implementation to ...
13826 * config/nds32/nds32-isr.c: ... here.
13827 * config/nds32/nds32-protos.h
13828 (nds32_check_isr_attrs_conflict): Declare.
13829 (nds32_construct_isr_vectors_information): Declare.
13830 (nds32_asm_file_start_for_isr): Declare.
13831 (nds32_asm_file_end_for_isr): Declare.
13833 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13834 Kito Cheng <kito@0xlab.org>
13835 Monk Chiang <sh.chiang04@gmail.com>
13837 * config.gcc (nds32*): Add new modules to extra_objs.
13838 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13839 (nds32be-*-*): Likewise.
13840 * config/nds32/nds32-cost.c: New file.
13841 * config/nds32/nds32-fp-as-gp.c: New file.
13842 * config/nds32/nds32-intrinsic.c: New file.
13843 * config/nds32/nds32-isr.c: New file.
13844 * config/nds32/nds32-md-auxiliary.c: New file.
13845 * config/nds32/nds32-memory-manipulation.c: New file.
13846 * config/nds32/nds32-pipelines-auxiliary.c: New file.
13847 * config/nds32/nds32-predicates.c: New file.
13848 * config/nds32/t-nds32: New file.
13850 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13852 PR tree-optimization/61682
13853 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13854 using cases and when one of the operands is equal to 1.
13856 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
13858 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13859 ashr<mode>3): Correct mode of operands[2].
13860 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13861 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13862 Correct mode of operands[2]. Fix split condition.
13864 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
13866 * arm.md (arch): Add armv6_or_vfpv3.
13867 (arch_enabled): Add test for the above.
13868 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13870 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13872 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13874 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13875 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13876 HWI 1 and negate the unsigned value.
13877 * expmed.c (expand_sdiv_pow2): For modes wider than word always
13878 use AND instead of shift.
13879 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13881 2014-07-03 Marek Polacek <polacek@redhat.com>
13883 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13884 (-fsanitize=float-divide-by-zero): Move to the table with
13885 -fsanitize=undefined suboptions.
13886 (-fsanitize=float-cast-overflow): Likewise.
13888 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
13890 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13891 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13894 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13896 * loop-invariant.c (struct invariant): Add a new member: eqno;
13897 (find_identical_invariants): Update eqno;
13898 (create_new_invariant): Init eqno;
13899 (get_inv_cost): Compute comp_cost with eqno;
13901 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13903 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13904 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13905 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13906 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13907 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13909 2014-07-02 Christian Bruel <christian.bruel@st.com>
13913 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13914 (make_preds_opaque): Delete.
13915 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13916 (commit_mode_sets): New function.
13917 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13918 Process all modes at once.
13919 * basic-block.h (pre_edge_lcm_avs): Declare.
13920 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13921 Call clear_aux_for_edges. Fix comments.
13922 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13923 (pre_edge_rev_lcm): Idem.
13924 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13926 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13927 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13929 * config/i386/i386.c (x96_emit_mode_set): Idem.
13930 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13931 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
13932 (fpscr_toggle) Disallow from delay slot.
13933 * target.def (emit_mode_set): Add prev_mode parameter.
13934 * doc/tm.texi: Regenerate.
13936 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13938 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13941 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13943 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13944 vtable_pointer_value_to_vtable): Constify.
13945 (contains_polymorphic_type_p): Declare.
13946 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13947 vtable_pointer_value_to_vtable): Constify.
13948 (contains_polymorphic_type_p): New predicate.
13949 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13951 (ipa_set_ancestor_jf): Likewise.
13952 (detect_type_change): Return false in easy cases.
13953 (compute_complex_assign_jump_func): Require type to contain
13955 (compute_known_type_jump_func): Likewise.
13957 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13959 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13961 (type_in_anonymous_namespace_p): Constify argument.
13962 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13963 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13964 (main_odr_variant): New function.
13965 (hash_type_name): Make static; update assert; do not ICE on
13967 (types_same_for_odr): Bring here from tree.c; simplify and remove
13968 old structural comparing code that doesn't work for templates.
13969 (odr_hasher::equal): Update assert.
13970 (add_type_duplicate): Return true when bases should be computed;
13971 replace incomplete loader by complete; do not output duplicated
13972 warnings; do not ICE on non-records; set odr_violated flag.
13973 (get_odr_type): Be ready to replace incomplete type by complete
13974 one; work on ODR variants instead of main variants; reorder item
13975 in array so bases have still smaller indexes.
13976 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13977 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13979 2014-07-01 Cary Coutant <ccoutant@google.com>
13981 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13983 (resolve_addr_in_expr): When replacing the rtx in a location list
13984 entry, get a new address table entry.
13985 (dwarf2out_finish): Call index_location_lists even if there are no
13986 addr_index_table entries yet.
13988 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13990 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13991 change for not being obvious.
13993 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13995 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13998 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14000 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14001 (vcagt_f64): Likewise.
14002 (vcale_f64): Likewise.
14003 (vcaled_f64): Likewise.
14004 (vcales_f32): Likewise.
14005 (vcalt_f64): Likewise.
14006 (vcaltd_f64): Likewise.
14007 (vcalts_f32): Likewise.
14009 2014-07-01 Marek Polacek <polacek@redhat.com>
14011 * doc/invoke.texi: Document -Wint-conversion.
14013 2014-07-01 Marek Polacek <polacek@redhat.com>
14016 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14018 2014-07-01 Martin Liska <mliska@suse.cz>
14020 IPA REF alias refactoring
14021 * cgraph.h (iterate_direct_aliases): New function.
14022 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14023 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14024 FOR_EACH_ALIAS added.
14025 (cgraph_for_node_and_aliases): Likewise.
14026 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14027 * ipa-inline.c (reset_edge_caches): Likewise.
14028 (update_caller_keys): Likewise.
14029 * trans-mem.c (ipa_tm_execute): Likewise.
14030 *varpool.c (varpool_analyze_node): Likewise.
14031 (varpool_for_node_and_aliases): Likewise.
14032 * ipa-ref.h (first_alias): New function.
14033 (last_alias): Likewise.
14034 (has_aliases_p): Likewise.
14035 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14036 is sensitive to IPA_REF_ALIASes.
14037 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14038 are put at the beginning of the list.
14039 (symtab_node::iterate_direct_aliases): New function.
14041 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14044 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14046 (write_ts_type_common_tree_pointers): Do not stream fields not set
14047 for incomplete types; do not stream duplicated fields for variants;
14048 sanity check that variant and type match.
14049 (write_ts_type_non_common_tree_pointers): Likewise.
14050 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14051 TYPE_SIZE whether type is complete.
14052 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14053 write_ts_type_common_tree_pointers
14054 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14056 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14058 * var-tracking.c (add_stores): Return instead of asserting if old
14059 and new values for conditional store are the same.
14061 2014-06-30 Richard Henderson <rth@redhat.com>
14065 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14066 the cfg if there were any changes.
14067 * passes.def: Revert move of peephole2 after reorder_blocks;
14068 move duplicate_computed_gotos before peephole2.
14070 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14072 * except.c (emit_note_eh_region_end): New helper function.
14073 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14074 emit EH_REGION_END note.
14075 * jump.c (cleanup_barriers): Do not split a call and its
14076 corresponding CALL_ARG_LOCATION note.
14078 2014-06-30 Jeff Law <law@redhat.com>
14080 PR tree-optimization/61607
14081 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14082 deeper into the SSA_NAME_VALUE chain.
14084 2014-06-30 Marek Polacek <polacek@redhat.com>
14086 * convert.c (convert_to_integer): Don't instrument conversions if the
14087 function has no_sanitize_undefined attribute.
14088 * ubsan.c: Don't run the ubsan pass if the function has
14089 no_sanitize_undefined attribute.
14091 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14093 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14094 -fsanitize=undefined suboptions.
14096 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14098 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14099 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14100 against bigendian and adjust indices.
14102 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14104 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14106 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14109 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14110 Add alternative; make early clobber. Adjust both split patterns
14111 to use operand 0 as the working register.
14113 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14115 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14116 as ira_object_id_map might be NULL, or 1.
14118 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14120 * loop-invariant.c (get_inv_cost): Handle register class.
14121 (gain_for_invariant): Check the register pressure of the inv
14122 and its overlapped register class, other than all.
14124 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14126 * doc/invoke.texi (Optimize Options): Fix descriptions of
14127 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14129 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14131 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14134 2014-06-29 Tobias Grosser <tobias@grosser.es>
14137 * graphite-isl-ast-to-gimple.c: Add missing guards.
14139 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14141 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14142 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14143 * flag-types.h: Add new enum fgraphite_generator.
14144 * graphite-isl-ast-to-gimple.c: New.
14145 * graphite-isl-ast-to-gimple.h: New.
14146 * graphite.c (graphite_transform_loops): Add choice of Graphite
14147 code generator, which depends on flag_graphite_code_gen.
14149 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14151 * graphite-dependences.c (subtract_commutative_associative_deps):
14152 Add NULL checking of the following variables: must_raw_no_source,
14153 may_raw_no_source, must_war_no_source, may_war_no_source,
14154 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14155 must_war, may_war, must_waw, may_waw.
14157 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14159 * graphite-clast-to-gimple.c: gloog is renamed to
14160 graphite_regenerate_ast_cloog. gloog_error is renamed to
14161 graphite_regenerate_error.
14162 * graphite-clast-to-gimple.h: The definition of the struct
14163 bb_pbb_def is moved to graphite-htab.h.
14164 Add inclusion of the hash-table.h.
14165 * graphite-htab.h: The declaration of the function gloog is moved
14166 to graphite-clast-to-gimple.h and renamed to
14167 graphite_regenerate_ast_cloog.
14168 * graphite.c (graphite_transform_loops): gloog is renamed
14169 to graphite_regenerate_ast_cloog.
14171 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14173 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14175 (write_ts_type_common_tree_pointers): Do not stream fields not set
14176 for incomplete types; do not stream duplicated fields for variants;
14177 sanity check that variant and type match.
14178 (write_ts_type_non_common_tree_pointers): Likewise.
14179 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14180 TYPE_SIZE whether type is complete.
14181 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14182 write_ts_type_common_tree_pointers
14183 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14185 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14187 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14189 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14191 * tree-inline.c (remap_type_1): Do not duplicate fields
14192 that are shared in between type and its main variant.
14194 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14196 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14198 (ipa_set_ancestor_jf) Likewise.
14199 (check_stmt_for_type_change): Check that we work on main variant.
14200 (detect_type_change): Look into main variant.
14201 (compute_known_type_jump_func): Check that main variant has BINFO.
14203 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14205 * ipa-devirt.c (set_type_binfo): New function.
14206 (add_type_duplicate): Use it.
14207 (get_odr_type): Sanity check that binfos points to main variants.
14208 (get_class_context): Be sure the context's outer_type is main variant.
14209 (contains_type_p): Walk main variant.
14210 (get_polymorphic_call_info_for_decl): Set outer_type to be
14212 (get_polymorphic_call_info): Likewise.
14213 (possible_polymorphic_call_targets): Sanity check that we operate
14216 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14218 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14220 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14222 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14223 accidental change due to wide-int branch merge.
14225 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14227 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14228 compressed debug support.
14229 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14230 * configure: Regenerate.
14231 * config.in: Regenerate.
14232 * common.opt (compressed_debug_sections): New enum.
14233 (gz, gz=): New options.
14234 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14235 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14236 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14237 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14238 LINK_COMPRESS_DEBUG_SPEC.
14239 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14240 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14241 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14242 (Debugging Options): Document -gz[=type].
14244 2014-06-27 Martin Jambor <mjambor@suse.cz>
14247 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14248 args_to_skip, use those from node instead. Copy args_to_skip and
14249 combined_args_to_skip from node to the new thunk.
14250 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14251 (cgraph_create_virtual_clone): Moved computation of
14252 combined_args_to_skip...
14253 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14255 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14257 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14258 redundant diagnostic machinary.
14260 2014-06-27 Richard Biener <rguenther@suse.de>
14262 * tree-ssa-math-opts.c (bswap_replace): Fix
14263 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14265 2014-06-27 Martin Liska <mliska@suse.cz>
14267 * gimple.h (gimple_location_safe): New function introduced.
14268 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14269 of gimple_location_safe replaces gimple_location.
14270 (gimple_fold_call): Likewise.
14271 * ipa-devirt.c (ipa_devirt): Likewise.
14272 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14273 * ipa.c (walk_polymorphic_call_targets): Likewise.
14274 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14276 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14278 PR tree-optimization/57233
14279 PR tree-optimization/61299
14280 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14282 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14283 would be lowered to scalar shifts, check if corresponding
14284 shifts and vector BIT_IOR_EXPR are supported and don't lower
14285 or lower just to narrower vector type in that case.
14286 * expmed.c (expand_shift_1): Fix up handling of vector
14287 shifts and rotates.
14289 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14292 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14294 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14296 * doc/invoke.texi (-fsemantic-interposition): Document.
14297 * common.opt (fsemantic-interposition): New flag.
14298 * varasm.c (decl_replaceable_p): Use it.
14300 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14303 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14304 extraction other than index 3.
14306 2014-06-26 Teresa Johnson <tejohnson@google.com>
14308 * doc/invoke.texi: Fix typo.
14309 * dumpfile.c: Add support for documented -fdump-* options
14310 optimized/missed/note/optall.
14312 2014-06-26 Martin Jambor <mjambor@suse.cz>
14314 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14315 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14316 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14317 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14318 * opts.c (default_options_optimization): Set
14319 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14320 * doc/invoke.texi (allow-load-data-races)
14321 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14322 (allow-store-data-races): Document the new default.
14324 2014-06-26 Martin Jambor <mjambor@suse.cz>
14326 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14327 renamed to ipa_impossible_devirt_target. Fix typo.
14328 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14329 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14330 ipa_impossible_devirt_target.
14332 2014-06-26 Richard Biener <rguenther@suse.de>
14334 PR tree-optimization/61607
14335 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14336 explaining why we restrict copies on loop depth.
14337 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14339 (record_equivalences_from_phis): Instead add it here.
14341 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14343 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14344 (LTO_WRAPPER_OBJS): New variable.
14345 (lto-wrapper$(exeext)): Use it.
14346 * collect2.c: Include "collect-utils.h".
14347 (verbose, debug): Remove variables.
14348 (at_file_supplied): No longer static.
14349 (tool_name): New variable.
14350 (do_wait, fork_execute, maybe_unlink): Don't declare.
14351 (tool_cleanup): No longer static.
14352 (notice): Remove function.
14353 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14354 fork_execute calls.
14355 (collect_wait, do_wait, collect_execute): Remove functions.
14356 (maybe_unlink): No longer static.
14357 * collect2.h (verbose, debug): Don't declare.
14358 (at_file_supplied): Declare.
14359 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14361 (collect_execute): Replace with implementation from collect2, plus a
14362 new arg use_atfile. All callers changed.
14363 (collect_wait): Replace with implementation from collect2.
14364 (maybe_unlink_file): Remove function.
14365 (fork_execute): Replace with implementation from collect2, plus a
14366 new arg use_atfile. All callers changed.
14367 (do_wait): Add call to utils_cleanup to the error path.
14368 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14369 (tool_cleanup): Adjust declarations.
14370 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14371 * tlink.c: Include "collect-utils.h".
14372 (tlink_execute): New arg use_atfile. All callers changed.
14373 (tlink_init, tlink_execute): Remove declarations.
14375 * collect-utils.c (save_temps): New variable.
14376 (do_wait): Use it instead of debug. Use fatal_error.
14377 * collect-utils.h (save_temps): Declare.
14378 * collect2.c (verbose): Rename from vflag. All uses changed.
14379 (tool_cleanup): New function, copied from collect_atexit.
14380 (collect_atexit, handler): Just call it.
14381 * collect2.h (verbose): Declaration renamed from vflag.
14382 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14385 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14386 (lto-wrapper$(exeext)): Link with collect-utils.o.
14387 * collect-utils.c: New file.
14388 * collect-utils.h: New file.
14389 * lto-wrapper.c: Include "collect-utils.h".
14390 (args_name): Delete variable.
14391 (tool_name): New variable.
14392 (tool_cleanup): New function.
14393 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14394 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14395 (fork_execute): Remove functions.
14397 2014-06-26 Nick Clifton <nickc@redhat.com>
14399 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14401 * doc/extend.texi (Function Attributes): Fix typo in description
14402 of RX vector attribute.
14404 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14406 * config.gcc (supported_defaults): Error when passing either
14407 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14409 2014-06-26 Richard Biener <rguenther@suse.de>
14411 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14412 propagating volatile pointers.
14414 2014-06-26 Richard Biener <rguenther@suse.de>
14416 PR tree-optimization/61607
14417 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14418 loop if we redirected its latch edge.
14419 (thread_block_1): Do not cancel loops prematurely.
14421 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14423 * toplev.c (backend_init_target): Move init_emit_regs and
14425 (backend_init) ... here; skip ira_init_once and backend_init_target.
14426 (target_reinit) ... and here; clear
14427 this_target_rtl->lang_dependent_initialized.
14428 (lang_dependent_init_target): Clear
14429 this_target_rtl->lang_dependent_initialized;
14430 break out rtl initialization to ...
14431 (initialize_rtl): ... here; call also backend_init_target
14433 * toplev.h (initialize_rtl): New function.
14434 * function.c: Include toplev.h
14435 (init_function_start): Call initialize_rtl.
14436 * rtl.h (target_rtl): Add target_specific_initialized,
14437 lang_dependent_initialized.
14439 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14440 Jakub Jelinek <jakub@redhat.com>
14442 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14444 2014-06-25 Tom de Vries <tom@codesourcery.com>
14446 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14448 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14450 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14451 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14452 Issue a strict overflow warning if appropriate.
14454 2014-06-25 Martin Liska <mliska@suse.cz>
14456 IPA REF refactoring
14457 * Makefile.in: Removed header file (ipa-ref-inline.h).
14458 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14460 (cgraph_speculative_call_info): Likewise.
14461 (cgraph_for_node_thunks_and_aliases): Likewise.
14462 (cgraph_for_node_and_aliases): Likewise.
14463 (verify_cgraph_node): Likewise.
14464 * cgraph.h: Batch of IPA REF functions become member functions of
14465 symtab_node: add_reference, maybe_add_reference, clone_references,
14466 clone_referring, clone_reference, find_reference,
14467 remove_stmt_references, remove_all_references,
14468 remove_all_referring, dump_references, dump_referring,
14469 has_alias_p, iterate_reference, iterate_referring.
14470 * cgraphbuild.c (record_reference): New IPA REF function used.
14471 (record_type_list): Likewise.
14472 (record_eh_tables): Likewise.
14473 (mark_address): Likewise.
14474 (mark_load): Likewise.
14475 (mark_store): Likewise.
14476 (pass_build_cgraph_edges): Likewise.
14477 (rebuild_cgraph_edge): Likewise.
14478 (cgraph_rebuild_references): Likewise.
14479 (pass_remove_cgraph_callee_edges): Likewise.
14480 * cgraphclones.c (cgraph_clone_node): Likewise.
14481 (cgraph_create_virtual_clone): Likewise.
14482 (cgraph_materialize_clone): Likewise.
14483 (cgraph_materialize_all_clones): Likewise.
14484 * cgraphunit.c (cgraph_reset_node): Likewise.
14485 (cgraph_reset_node): Likewise.
14486 (analyze_function): Likewise.
14487 (assemble_thunks_and_aliases): Likewise.
14488 (expand_function): Likewise.
14489 * ipa-comdats.c (propagate_comdat_group): Likewise.
14490 (enqueue_references): Likewise.
14491 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14492 (create_specialized_node): Likewise.
14493 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14494 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14495 * ipa-inline.c (reset_edge_caches): Likewise.
14496 (update_caller_keys): Likewise.
14497 (execute): Likewise.
14498 * ipa-prop.c (remove_described_reference): Likewise.
14499 (propagate_controlled_uses): Likewise.
14500 (ipa_edge_duplication_hook): Likewise.
14501 (ipa_modify_call_arguments): Likewise.
14502 * ipa-pure-const.c (propagate_pure_const): Likewise.
14503 * ipa-ref-inline.h: Header file removed, functions moved
14504 to symtab_node class.
14505 * ipa-ref.c (remove_reference): New class member function.
14506 (cannot_lead_to_return): New class member function.
14507 (referring_ref_list): Likewise.
14508 (referred_ref_list): Likewise.
14509 Rest of functions moved to symtab_node class.
14510 * ipa-ref.h: New member functions remove_reference,
14511 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14513 ipa_ref_list class has new member functions: first_reference,
14514 first_referring, clear, nreferences.
14515 * ipa-reference.c (analyze_function): New IPA REF function used.
14516 (write_node_summary_p): Likewise.
14517 (ipa_reference_write_optimization_summary): Likewise.
14518 * ipa-split.c (split_function): Likewise.
14519 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14520 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14521 (function_and_variable_visibility): Likewise.
14522 * ipa.c (has_addr_references_p): Likewise.
14523 (process_references): Argument type changed.
14524 (symtab_remove_unreachable_nodes): New IPA REF function used.
14525 (process_references): Likewise.
14526 (set_writeonly_bit): Likewise.
14527 * lto-cgraph.c: Implementation of new symtab_node member functions
14528 that uses new IPA REF functions.
14529 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14531 * lto-streamer-out.c (output_symbol_p): Likewise.
14532 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14534 * symtab.c: Implementation of new IPA REF API.
14535 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14536 (ipa_tm_create_version): Likewise.
14537 (ipa_tm_execute): Likewise.
14538 * tree-emutls.c (gen_emutls_addr): Likewise.
14539 * tree-inline.c (copy_bb): Likewise.
14540 (delete_unreachable_blocks_update_callgraph): Likewise.
14541 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14542 (varpool_for_node_and_aliases): Likewise.
14544 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14546 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14548 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14551 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14552 tree_node * instead of tree_node *.
14554 (print_fold_checksum): Likewise.
14555 (fold_check_failed): Likewise.
14556 (debug_fold_checksum): Likewise.
14557 (fold_build1_stat_loc): Likewise.
14558 (fold_build2_stat_loc): Likewise.
14559 (fold_build3_stat_loc): Likewise.
14560 (fold_build_call_array_loc): Likewise.
14562 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14564 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14565 implementation with call to...
14566 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14568 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14571 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14573 PR tree-optimization/57742
14574 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14575 after replacing the statement.
14577 2014-06-25 Nick Clifton <nickc@redhat.com>
14579 * config/v850/v850.c (GHS_default_section_names): Change to const
14581 (GHS_current_section_names): Likewise.
14582 (v850_insert_attributes): Do not build strings, just assign the
14583 names directly. Change the type of 'chosen_section' to const
14585 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14586 directly to the array entry.
14587 * config/v850/v850.h (GHS_default_section_names): Change to const
14589 (GHS_current_section_names): Likewise.
14591 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14593 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14594 (LANG_HOOKS_DECLS): Add it.
14595 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14597 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14598 * langhooks.h (struct lang_hooks_for_decls): Add
14599 omp_clause_linear_ctor hook.
14600 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14601 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14602 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14603 combined simd loop use omp_clause_linear_ctor hook.
14605 2014-06-24 Cong Hou <congh@google.com>
14607 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14608 pattern recognition.
14609 (type_conversion_p): PROMOTION is true if it's a type promotion
14610 conversion, and false otherwise. Return true if the given expression
14611 is a type conversion one.
14612 * tree-vectorizer.h: Adjust the number of patterns.
14613 * tree.def: Add SAD_EXPR.
14614 * optabs.def: Add sad_optab.
14615 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14616 * expr.c (expand_expr_real_2): Likewise.
14617 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14618 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14619 * optabs.c (optab_for_tree_code): Likewise.
14620 * tree-cfg.c (estimate_operator_cost): Likewise.
14621 * tree-ssa-operands.c (get_expr_operands): Likewise.
14622 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14623 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14624 * doc/generic.texi: Add document for SAD_EXPR.
14625 * doc/md.texi: Add document for ssad and usad.
14627 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14629 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14630 qualification in cast.
14632 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14634 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14635 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14636 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14637 (tree_function_decl): ... here.
14638 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14639 streaming of vindex to ...
14640 (write_ts_function_decl_tree_pointers): ... here.
14641 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14642 Do not stream DECL_VINDEX.
14643 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14645 2014-06-24 Catherine Moore <clm@codesourcery.com>
14646 Sandra Loosemore <sandra@codesourcery.com>
14648 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14649 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14650 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14652 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14654 * doc/invoke.texi (Warning Options): Remove duplicated
14655 -Wmaybe-uninitialized.
14657 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14659 PR tree-optimization/57742
14660 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14661 (handle_builtin_malloc, handle_builtin_memset): New functions.
14662 (strlen_optimize_stmt): Call them.
14663 * passes.def: Move strlen after loop+dom but before vrp.
14665 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14668 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14669 model family 6 CPU with has_longmode never use a CPU without
14672 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14675 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14678 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14680 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14681 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14683 * hash-map.h: New file.
14684 * ipa-comdats.c: Use hash_map instead of pointer_map.
14686 * lto-section-out.c: Adjust.
14687 * lto-streamer.h: Replace pointer_map with hash_map.
14688 * symtab.c (verify_symtab): Likewise.
14689 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14690 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14691 * tree-streamer.h: Likewise.
14692 * tree-streamer.c: Adjust.
14693 * pointer-set.h: Remove pointer_map.
14695 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14697 * hash-table.h: Add a template arg to choose between storing values
14698 and storing pointers to values, and then provide partial
14699 specializations for both.
14700 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14701 should store, not the type values should point to.
14702 * tree-into-ssa.c (var_info_hasher): Likewise.
14703 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14704 * tree-complex.c: Adjust.
14705 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14706 table instead of int_tree_map *.
14707 * tree-parloops.c: Adjust.
14708 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14709 type is being stored.
14710 * tree-vectorizer.c: Adjust.
14712 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14714 * hash-table.h: Remove a layer of indirection from hash_table so that
14715 it contains the hash table's data instead of a pointer to the data.
14716 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14717 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14718 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14719 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14720 fold-const.c, gcse.c, ggc-common.c,
14721 gimple-ssa-strength-reduction.c, gimplify.c,
14722 graphite-clast-to-gimple.c, graphite-dependences.c,
14723 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14724 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14725 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14726 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14727 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14728 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14729 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14730 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14731 tree-ssa-live.c, tree-ssa-loop-im.c,
14732 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14733 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14734 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14735 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14736 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14737 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14738 vtable-verify.c, vtable-verify.h: Adjust.
14740 2014-06-24 Richard Biener <rguenther@suse.de>
14742 PR tree-optimization/61572
14743 * tree-ssa-sink.c (statement_sink_location): Do not sink
14744 loads from hard registers.
14746 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14748 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14749 not mentioned in clauses use private clause if the iterator is
14750 declared in #pragma omp for simd, and when adding lastprivate
14751 instead, add it to the outer #pragma omp for too. Diagnose
14752 if the variable is private in outer context. For simd collapse > 1
14753 loops, replace all iterators with temporaries.
14754 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14755 same even in collapse > 1 loops.
14757 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14758 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14760 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14761 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14763 (gimplify_adjust_omp_clauses): Likewise.
14764 * omp-low.c (lower_rec_simd_input_clauses,
14765 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14766 safelen the same as safelen(1).
14767 * tree-nested.c (convert_nonlocal_omp_clauses,
14768 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14769 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14770 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14771 Fixup handling of GIMPLE_OMP_TARGET.
14772 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14775 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
14777 PR tree-optimization/61554
14778 * tree-ssa-propagate.c: Include "bitmap.h".
14779 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14780 properly update constructor/destructor.
14781 (substitute_and_fold_dom_walker::before_dom_children):
14782 Remove call to gimple_purge_dead_eh_edges, add bb->index to
14783 need_eh_cleaup instead.
14784 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14787 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14789 * varpool.c (dump_varpool_node): Dump used_by_single_function.
14790 * tree-pass.h (make_pass_ipa_single_use): New pass.
14791 * cgraph.h (used_by_single_function): New flag.
14792 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14794 * passes.def (pass_ipa_single_use): Scedule.
14795 * ipa.c (BOTTOM): New macro.
14796 (meet): New function
14797 (propagate_single_user): New function.
14798 (ipa_single_use): New function.
14799 (pass_data_ipa_single_use): New pass.
14800 (pass_ipa_single_use): New pass.
14801 (pass_ipa_single_use::gate): New gate.
14802 (make_pass_ipa_single_use): New function.
14804 2014-06-23 Kai Tietz <ktietz@redhat.com>
14807 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14808 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14810 2014-06-23 Richard Biener <rguenther@suse.de>
14812 * tree-ssa-loop.c (gate_loop): New function.
14813 (pass_tree_loop::gate): Call it.
14814 (pass_data_tree_no_loop, pass_tree_no_loop,
14815 make_pass_tree_no_loop): New.
14816 * tree-vectorizer.c: Include tree-scalar-evolution.c
14817 (pass_slp_vectorize::execute): Initialize loops and SCEV if
14819 (pass_slp_vectorize::clone): New method.
14820 * timevar.def (TV_TREE_NOLOOP): New.
14821 * tree-pass.h (make_pass_tree_no_loop): Declare.
14822 * passes.def (pass_tree_no_loop): New pass group with
14825 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
14828 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14829 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14831 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14833 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14834 "yes" where needed.
14836 2014-06-23 Alan Modra <amodra@gmail.com>
14839 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14840 to zero on debug statements.
14842 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14845 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14846 Ignore third operand if present by marking qualifier_internal.
14848 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14850 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14852 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14853 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14854 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14855 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14856 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14857 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14858 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14859 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14860 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14861 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14862 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14863 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14864 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14865 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14866 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14867 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14868 logic in GCC vector extensions
14870 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14871 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14872 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14873 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14874 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14875 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14876 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14877 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14878 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14879 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14881 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14883 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14886 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14887 (vget_low_s64): Use __GET_LOW macro.
14888 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14889 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14890 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14891 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14892 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14894 (vcombine_s64): Use GCC vector extensions; remove cast.
14895 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14896 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14897 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14898 Fix type signature; remove cast.
14900 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14903 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14905 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14907 (BUILTIN_VD1): New.
14908 (BUILTIN_VD_RE): Remove.
14909 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14910 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14911 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14912 variant but not df.
14913 (vreinterpretv1df*, vreinterpret*v1df): New.
14914 (vreinterpretdf*, vreinterpret*df): Remove.
14915 * config/aarch64/aarch64-simd.md (aarch64_create,
14916 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14917 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14919 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14920 (vcreate_f64): Remove cast, use v1df builtin.
14921 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14922 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14923 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14924 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14925 vmov_n_f64, vst1_f64): Use gcc vector extensions.
14926 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14927 add range check using __builtin_aarch64_im_lane_boundsi.
14928 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14929 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14930 type signature, use gcc vector extensions.
14931 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14932 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14933 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14934 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14935 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14936 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14937 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14938 vreinterpret_u64_f64): Use v1df builtin not df.
14940 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14942 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14945 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14947 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14950 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14952 * loop-invariant.c (pre_check_invariant_p): New function.
14953 (find_invariant_insn): Call pre_check_invariant_p.
14955 2014-06-22 Richard Henderson <rth@redhat.com>
14958 * compare-elim.c (struct comparison): Add eh_note.
14959 (find_comparison_dom_walker::before_dom_children): Don't eliminate
14960 a redundant comparison in a different EH region. Purge EH edges if
14963 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14965 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14966 (var_shift): Use it.
14967 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14968 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14969 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14970 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14971 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14972 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14973 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14974 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14975 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14976 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14977 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14978 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14979 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14980 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14981 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14982 *rotldi3_internal15be): Use the new attribute. Merge register and
14983 integer alternatives.
14985 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14987 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14988 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14989 split, *ashrdi3_internal3 and split): Delete, merge into...
14990 (ashr<mode>3): New expander.
14991 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14992 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
14994 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14996 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14997 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14998 *rotldi3_internal3 and split): Delete, merge into...
14999 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15000 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15001 Use "rotlw" extended mnemonic.
15003 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15005 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15006 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15007 and split, *ashldi3_internal3 and split): Delete, merge into...
15008 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15009 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15011 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15013 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15014 (lshrsi3, two anonymous define_insns and define_splits,
15015 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15016 *lshrdi3_internal3 and split): Delete, merge into...
15017 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15018 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15020 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15022 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15023 Remove "O" alternative.
15025 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15027 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15028 (mips_move_from_gpr_cost): Likewise.
15029 (mips_register_move_cost): Update accordingly.
15030 (mips_secondary_reload_class): Remove name of in_p.
15032 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15035 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15036 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15038 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15040 * config/nios2/nios2.c: Include "builtins.h".
15042 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15044 * cgraph.h (tls_model_names): New variable.
15045 * print-tree.c (print_node): Simplify.
15046 * varpool.c (tls_model_names): New variable.
15047 (dump_varpool_node): Output tls model.
15049 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15051 * ipa-visibility.c (function_and_variable_visibility): Disable
15052 temporarily local aliases for some targets.
15054 2014-06-20 Marek Polacek <polacek@redhat.com>
15056 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15057 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15058 into SANITIZE_UNDEFINED.
15059 * doc/invoke.texi: Describe -fsanitize=bounds.
15060 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15061 functions created in the FEs.
15062 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15063 (expand_UBSAN_BOUNDS): New function.
15064 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15065 * internal-fn.h: Don't define internal functions here.
15066 * opts.c (common_handle_option): Add -fsanitize=bounds.
15067 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15068 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15069 * tree-core.h: Define internal functions here.
15070 (struct tree_base): Add ifn field.
15071 * tree-pretty-print.c: Include "internal-fn.h".
15072 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15073 * tree.c (get_callee_fndecl): Likewise.
15074 (build_call_expr_internal_loc): New function.
15075 * tree.def (CALL_EXPR): Update description.
15076 * tree.h (CALL_EXPR_IFN): Define.
15077 (build_call_expr_internal_loc): Declare.
15078 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15080 (ubsan_type_descriptor): Change bool parameter to enum
15081 ubsan_print_style. Adjust the code. Add handling of
15083 (ubsan_expand_bounds_ifn): New function.
15084 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15085 (ubsan_build_overflow_builtin): Likewise.
15086 (instrument_bool_enum_load): Likewise.
15087 (ubsan_instrument_float_cast): Likewise.
15088 * ubsan.h (enum ubsan_print_style): New enum.
15089 (ubsan_expand_bounds_ifn): Declare.
15090 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15092 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15094 * config/rs6000/rs6000.md: Append `DONE' to preparation
15095 statements of `bswap' pattern splitters.
15097 2014-06-20 Tom de Vries <tom@codesourcery.com>
15099 * target.def (call_fusage_contains_non_callee_clobbers): Update
15101 * doc/tm.texi: Regenerate.
15103 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15104 Max Ostapenko <m.ostapenko@partner.samsung.com>
15107 * asan.c (instrument_strlen_call): Fixed instrumentation of
15110 2014-06-20 Martin Jambor <mjambor@suse.cz>
15113 * ipa-prop.c (impossible_devirt_target): New function.
15114 (try_make_edge_direct_virtual_call): Use it, also instead of
15117 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15118 Max Ostapenko <m.ostapenko@partner.samsung.com>
15121 * asan.c (build_check_stmt): Add condition.
15123 2014-06-20 Martin Jambor <mjambor@suse.cz>
15126 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15129 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15131 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15133 (VCONQ): Make comment more helpful.
15135 * config/aarch64/aarch64-simd.md
15136 (aarch64_sqdmulh_lane<mode>):
15137 Use VCOND for operands 2. Update lane checking and flipping logic.
15138 (aarch64_sqrdmulh_lane<mode>): Likewise.
15139 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15140 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15141 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15142 attribute of operand 3 to VCOND.
15143 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15144 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15145 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15146 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15147 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15148 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15150 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15151 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15152 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15153 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15154 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15155 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15156 operand to VCOND. Update lane flipping and bounds checking logic.
15157 (aarch64_sqdmlal2_lane<mode>): Likewise.
15158 (aarch64_sqdmlsl_lane<mode>): Likewise.
15159 (aarch64_sqdmull_lane<mode>): Likewise.
15160 (aarch64_sqdmull2_lane<mode>): Likewise.
15161 (aarch64_sqdmlal_laneq<mode>):
15162 Replace VCON usage with VCONQ.
15163 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15164 (aarch64_sqdmlal2_laneq<mode>): Emit
15165 aarch64_sqdmlal2_laneq<mode>_internal insn.
15166 Replace VCON with VCONQ.
15167 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15168 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15169 (aarch64_sqdmull_laneq<mode>): Emit
15170 aarch64_sqdmull_laneq<mode>_internal insn.
15171 Replace VCON with VCONQ.
15172 (aarch64_sqdmull2_laneq<mode>): Emit
15173 aarch64_sqdmull2_laneq<mode>_internal insn.
15174 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15175 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15176 of 3rd argument to int16x4_t.
15177 (vqdmlalh_lane_s16): Likewise.
15178 (vqdmlslh_lane_s16): Likewise.
15179 (vqdmull_high_lane_s16): Likewise.
15180 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15181 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15182 (vqdmlsl_lane_s16): Likewise.
15183 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15184 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15185 (vqdmlals_lane_s32): Likewise.
15186 (vqdmlsls_lane_s32): Likewise.
15187 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15188 (vqdmulls_lane_s32): Likewise.
15189 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15190 (vqdmlsl_lane_s32): Likewise.
15191 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15192 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15193 (vqrdmulhh_lane_s16): Likewise.
15194 (vqdmlsl_high_lane_s16): Likewise.
15195 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15196 (vqdmlsl_high_lane_s32): Likewise.
15197 (vqrdmulhs_lane_s32): Likewise.
15199 2014-06-20 Tom de Vries <tom@codesourcery.com>
15201 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15202 get_call_reg_set_usage.
15204 2014-06-20 Tom de Vries <tom@codesourcery.com>
15206 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15207 it contains all call_used_regs.
15209 2014-06-20 Tom de Vries <tom@codesourcery.com>
15211 * final.c (collect_fn_hard_reg_usage): Add and use variable
15212 function_used_regs.
15214 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15216 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15217 (set_init_priority, get_init_priority, set_fini_priority,
15218 get_fini_priority): New methods.
15219 * tree.c (init_priority_for_decl): Remove.
15220 (init_ttree): Do not initialize init priority.
15221 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15222 (decl_priority_info): Remove.
15223 (decl_init_priority_insert): Rewrite.
15224 (decl_fini_priority_insert): Rewrite.
15225 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15226 tree_priority_map_marked_p): Remove.
15227 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15228 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15229 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15230 not output priorities.
15231 (pack_ts_function_decl_value_fields): Likewise.
15232 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15233 not input priorities.
15234 (unpack_ts_function_decl_value_fields): Likewise.
15235 * symtab.c (symbol_priority_map): Declare.
15236 (init_priority_hash): Declare.
15237 (symtab_unregister_node): Unregister from priority hash, too.
15238 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15240 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15241 (symbol_priority_info): New function.
15242 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15244 * tree-core.h (tree_priority_map): Remove.
15246 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15248 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15249 0xff to uint64_t before shifting it up.
15251 2014-06-20 Julian Brown <julian@codesourcery.com>
15252 Chung-Lin Tang <cltang@codesourcery.com>
15254 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15255 TARGET_THUMB1_ONLY. Add comments.
15257 2014-06-19 Tom de Vries <tom@codesourcery.com>
15259 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15260 return type to void.
15261 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15263 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15265 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15266 as "move", from depends_on.
15268 2014-06-19 Terry Guo <terry.guo@arm.com>
15270 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15273 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15275 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15277 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15279 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15282 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15283 addresses here if reload in progress or completed.
15285 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15287 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15288 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15289 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15290 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15291 (mips_register_priority): New function that implements the target
15292 hook TARGET_REGISTER_PRIORITY.
15293 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15294 (mips_lra_p): Likewise for TARGET_LRA_P.
15295 (TARGET_REGISTER_PRIORITY): Define macro.
15296 (TARGET_SPILL_CLASS): Likewise.
15297 (TARGET_LRA_P): Likewise.
15298 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15300 (REG_CLASS_NAMES): Likewise.
15301 (REG_CLASS_CONTENTS): Likewise.
15302 (BASE_REG_CLASS): Use M16_SP_REGS.
15303 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15304 New set attribute to enable alternatives depending on the register
15306 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15307 (*lea64): Disable pattern for MIPS16.
15308 * config/mips/mips.opt (mlra): New option.
15310 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15312 * lra-constraints.c (base_to_reg): New function.
15313 (process_address): Use new function.
15315 2014-06-18 Tom de Vries <tom@codesourcery.com>
15317 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15318 * config/aarch64/aarch64.c
15319 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15320 (aarch64_emit_call_insn): New function.
15321 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15323 * config/aarch64/aarch64.md (define_expand "call_internal")
15324 (define_expand "call_value_internal", define_expand "sibcall_internal")
15325 (define_expand "sibcall_value_internal"): New.
15326 (define_expand "call", define_expand "call_value")
15327 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15328 expand variant and aarch64_emit_call_insn.
15330 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15331 Tom de Vries <tom@codesourcery.com>
15333 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15334 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15336 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15337 clobbers to CALL_INSN_FUNCTION_USAGE.
15338 (define_expand "sibcall_internal")
15339 (define_expand "sibcall_value_internal"): New.
15340 (define_expand "call", define_expand "call_value"): Add argument to
15341 arm_emit_call_insn.
15342 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15343 (define_expand "sibcall_value"): Use sibcall_value_internal and
15344 arm_emit_call_insn.
15346 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15348 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15350 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15352 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15355 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15357 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15358 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15359 annotations. Fix DWARF information.
15361 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15363 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15364 __udivmoddi4, and fixups for negative operands.
15366 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15368 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15370 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15372 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15375 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15377 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15380 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15382 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15383 describing register usage on function entry and exit.
15385 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15387 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15388 (__aeabi_ldivmod): Fix whitespace.
15390 2014-06-18 Andreas Schwab <schwab@suse.de>
15392 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15393 Remove blank line after @item.
15395 2014-06-18 Richard Henderson <rth@redhat.com>
15398 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15400 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15402 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15403 POST_MODIFY for neon loads and stores.
15404 (arm_print_operand): Output post-index register for neon loads and
15407 2014-06-18 Richard Biener <rguenther@suse.de>
15409 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15411 2014-06-18 Richard Biener <rguenther@suse.de>
15413 * tree-pass.h (make_pass_dce_loop): Remove.
15414 * passes.def: Replace pass_dce_loop with pass_dce.
15415 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15416 changed free niter estimates and reset the scev cache.
15417 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15418 make_pass_dce_loop): Remove.
15419 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15420 (fini_copy_prop): Return whether something changed. Always
15421 let substitute_and_fold perform DCE and free niter estimates
15422 and reset the scev cache if so.
15423 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15424 (pass_data_copy_prop): Do not unconditionally schedule
15425 cleanup-cfg or update-ssa.
15427 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15429 PR tree-optimization/61518
15430 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15431 reduction var is used in reduction stmt or phi-function only.
15433 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15435 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15437 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15439 PR tree-optimization/61517
15440 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15441 whose rhs's first tree is the source expression instead of the
15443 (find_bswap_or_nop): Likewise.
15444 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15445 gimple stmt whose rhs's first tree is the source. In the memory source
15446 case, move the stmt to be replaced close to one of the original load to
15447 avoid the problem of a store between the load and the stmt's original
15449 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15452 2014-06-18 Andreas Schwab <schwab@suse.de>
15454 PR rtl-optimization/54555
15455 * postreload.c (move2add_use_add2_insn): Substitute
15456 STRICT_LOW_PART only if it is cheaper.
15458 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15460 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15461 Do not use unspec as call operand. Use memory_operand instead of
15462 memory_nox32_operand and add "m" operand constraint. Disable
15463 pattern for TARGET_X32.
15464 (*sibcall_pop_memory): Ditto.
15465 (*sibcall_value_memory): Ditto.
15466 (*sibcall_value_pop_memory): Ditto.
15467 (sibcall peepholes): Merge SImode and DImode patterns using
15468 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15469 Disable pattern for TARGET_X32. Check if eliminated register is
15470 really dead after call insn. Generate call RTX without unspec operand.
15471 (sibcall_value peepholes): Ditto.
15472 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15473 instead of memory_nox32_operand. Check if eliminated register is
15474 really dead after call insn. Generate call RTX without unspec operand.
15475 (sibcall_value_pop peepholes): Ditto.
15476 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15478 2014-06-18 Terry Guo <terry.guo@arm.com>
15481 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15484 2014-06-18 Olivier Hainque <hainque@adacore.com>
15486 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15487 memorization of the end of block source location.
15488 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15489 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15490 end source location info we have on the block entry/exit code we
15493 2014-06-18 Richard Biener <rguenther@suse.de>
15495 * common.opt (fssa-phiopt): New option.
15496 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15498 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15499 * doc/invoke.texi (-fssa-phiopt): Document.
15501 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15503 * genattrtab.c (n_bypassed): New variable.
15504 (process_bypasses): Initialise n_bypassed.
15505 Count number of bypassed reservations.
15506 (make_automaton_attrs): Allocate space for bypassed reservations
15507 rather than number of bypasses.
15509 2014-06-18 Richard Biener <rguenther@suse.de>
15511 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15512 we propagated anything.
15513 (substitute_and_fold_dom_walker::before_dom_children): Something
15514 changed if we propagated into PHI arguments.
15515 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15518 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15520 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15522 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15523 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15524 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15525 Introduces alternative way of loads group permutaions.
15526 (vect_transform_grouped_load): Try alternative way of permutations.
15528 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15530 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15531 changed in ORT_TARGET region, don't jump to do_outer.
15532 (struct gimplify_adjust_omp_clauses_data): New type.
15533 (gimplify_adjust_omp_clauses_1): Adjust for data being
15534 a struct gimplify_adjust_omp_clauses_data pointer instead
15535 of tree *. Pass pre_p as a new argument to
15536 lang_hooks.decls.omp_finish_clause hook.
15537 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15538 splay_tree_foreach to pass both list_p and pre_p.
15539 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15540 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15541 gimplify_adjust_omp_clauses callers.
15542 * langhooks.c (lhd_omp_finish_clause): New function.
15543 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15544 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15545 * langhooks.h (struct lang_hooks_for_decls): Add a new
15546 gimple_seq * argument to omp_finish_clause hook.
15547 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15548 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15549 (scan_omp_parallel, lower_omp_for): When adding
15550 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15551 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15552 * tree-nested.c (convert_nonlocal_omp_clauses,
15553 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15554 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15556 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15558 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15559 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15561 2014-06-17 Xinliang David Li <davidxl@google.com>
15563 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15564 * passes.c (pass_init_dump_file): Do not set initialize
15565 flag to false unconditionally.
15567 2014-06-17 Richard Biener <rguenther@suse.de>
15569 * genopinit.c (main): Use vec<>::qsort method.
15570 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15572 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15574 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15576 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15577 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15578 (mips_move_to_gpr_cost): Remove ST_REGS case.
15579 (mips_move_from_gpr_cost): Likewise.
15580 (mips_register_move_cost): Likewise.
15581 (mips_secondary_reload_class): Likewise.
15583 2014-06-17 Richard Biener <rguenther@suse.de>
15585 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15586 (pass_all_optimizations): Move 3rd copy-prop pass from after
15587 fre to before ifcombine/phiopt.
15589 2014-06-17 Richard Biener <rguenther@suse.de>
15591 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15592 and allow all blocks to be forwarders.
15594 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15597 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15598 variable 'size'; calculate 'size' right in the front; use
15599 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15600 pcum->aapcs_stack_words.
15602 2014-06-17 Nick Clifton <nickc@redhat.com>
15604 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15605 (umulhi3, mulsidi3, umulsidi3): Likewise.
15607 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15609 PR middle-end/61508
15610 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15611 check for section name.
15613 2014-06-17 Richard Biener <rguenther@suse.de>
15615 * tree-ssa-propagate.c: Include domwalk.h.
15616 (substitute_and_fold): Outline main worker into a domwalker ...
15617 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15618 Schedule stmts we can fully propagate for removal. Remove
15620 (substitute_and_fold): Apply a dominator walk to perform
15621 substitution. Process stmts scheduled for removal here.
15623 2014-06-17 Richard Biener <rguenther@suse.de>
15625 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15626 of PHI node moving.
15628 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15630 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15631 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15632 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15633 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15634 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15636 (get_fpscr) : Likewise.
15638 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15640 PR rtl-optimization/61325
15641 * lra-constraints.c (valid_address_p): Add forward declaration.
15642 (simplify_operand_subreg): Check address validity before and after
15643 alter_reg of memory subreg.
15645 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15647 * config/i386/i386.c (decide_alg): Correctly handle
15648 maximum size of stringop algorithm.
15650 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15652 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15654 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15656 PR rtl-optimization/61522
15657 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15659 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15662 * symtab.c (symtab_node::reset_section): New method.
15663 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15665 * cgraph.h (reset_section): Declare.
15666 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15667 do not consider comdat locals.
15668 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15670 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15671 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15672 reset sections of symbols dragged out of the comdats.
15673 (function_and_variable_visibility): Reset sections of
15676 2014-06-16 Richard Biener <rguenther@suse.de>
15678 PR tree-optimization/61482
15679 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15680 [-INF(OVF), +INF(OVF)] range.
15682 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15684 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15685 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15686 handling 32-bit multiplication.
15688 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15690 PR middle-end/61430
15691 * lra-lives.c (process_bb_lives): Skip creating copy during
15692 insn scan when src/dest has constrained to same regno.
15694 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15696 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15697 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15699 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15701 * asan.c (check_func): New function.
15702 (maybe_create_ssa_name): Likewise.
15703 (build_check_stmt_with_calls): Likewise.
15704 (use_calls_p): Likewise.
15705 (report_error_func): Change interface.
15706 (build_check_stmt): Allow non-integer lengths; add support
15708 (asan_instrument): Likewise.
15709 (instrument_mem_region_access): Moved code to build_check_stmt.
15710 (instrument_derefs): Likewise.
15711 (instrument_strlen_call): Likewise.
15712 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15713 * doc/invoke.texi: Describe new parameter.
15714 * params.def: Define new parameter.
15715 * params.h: Likewise.
15716 * sanitizer.def: Describe new builtins.
15718 2014-06-16 Richard Biener <rguenther@suse.de>
15720 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15721 Make all defs available at the end.
15722 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15724 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15727 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15729 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15732 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15733 initialization. Replace remaining use of uid.
15735 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15737 * c-family/c-common.c (handle_tls_model_attribute): Use
15738 set_decl_tls_model.
15739 * c-family/c-common.c (handle_tls_model_attribute): Use
15740 set_decl_tls_model.
15741 * cgraph.h (struct varpool_node): Add tls_model.
15742 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15743 * tree.h (DECL_TLS_MODEL): Update.
15744 (DECL_THREAD_LOCAL_P): Check that variable is static.
15745 (decl_tls_model): Declare.
15746 (set_decl_tls_model): Declare.
15747 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15748 set symbol prorperties.
15749 (get_emutls_init_templ_addr): Cleanup.
15750 (new_emutls_decl): Update.
15751 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15752 (lto_input_varpool_node): Likewise.
15753 * lto-streamer-out.c (hash_tree): Likewise.
15754 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15755 not stream DECL_TLS_MODEL.
15756 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15757 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15759 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15761 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15763 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15765 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15766 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15768 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15769 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15770 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15771 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15772 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15773 (df_get_artificial_defs, df_get_artificial_uses)
15774 (df_single_def, df_single_use): Update accordingly.
15775 (df_refs_chain_dump): Take the first element in a linked list as
15776 parameter, rather than a pointer to an array of pointers.
15777 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15778 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15779 (df_chain_create_bb_process_use): Likewise.
15780 (df_md_bb_local_compute_process_def): Likewise.
15781 * fwprop.c (process_defs, process_uses): Likewise.
15782 (register_active_defs, update_uses): Likewise.
15783 (forward_propagate_asm): Update for new df_ref linking.
15784 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15785 (df_null_ref_rec, df_null_mw_rec): Likewise.
15786 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15788 (df_scan_free_bb_info): Remove check for null artificial_defs.
15789 (df_install_ref_incremental): Adjust for new df_ref linking.
15790 Use a single-element insertion rather than a full sort.
15791 (df_ref_chain_delete_du_chain): Take the first element
15792 in a linked list as parameter, rather than a pointer to an array of
15794 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15795 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15796 (df_insn_info_delete): Remove check for null defs and call to
15797 df_scan_free_mws_vec.
15798 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15799 null rather than df_null_*_rec.
15800 (df_insn_rescan_debug_internal): Likewise, and update null
15801 checks in the same way. Remove check for null defs.
15802 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15803 Move a single element rather doing a full sort.
15804 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15806 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
15807 Initialize df_ref and df_mw_hardreg lists to null rather than
15809 (df_ref_compare): Take df_refs as parameter, transferring the
15810 old interface to...
15811 (df_ref_ptr_compare): ...this new function.
15812 (df_sort_and_compress_refs): Update accordingly.
15813 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15814 old interface to...
15815 (df_mw_ptr_compare): ...this new function.
15816 (df_sort_and_compress_mws): Update accordingly.
15817 (df_install_refs, df_install_mws): Return a linked list rather than
15818 an array of pointers.
15819 (df_refs_add_to_chains): Assert that old lists are empty rather
15821 (df_insn_refs_verify): Don't handle null defs speciailly.
15822 * web.c (union_match_dups): Update for new df_ref linking.
15824 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15826 * df.h (df_ref_create, df_ref_remove): Delete.
15827 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15828 (df_ref_remove): Likewise.
15830 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15832 * df.h (df_single_def, df_single_use): New functions.
15833 * ira.c (find_moveable_pseudos): Use them.
15835 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15837 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15838 * df-problems.c (df_note_bb_compute): Use it.
15839 * regstat.c (regstat_bb_compute_ri): Likewise.
15841 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15843 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15844 * cse.c (cse_extended_basic_block): Use them.
15845 * dce.c (mark_artificial_use): Likewise.
15846 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15847 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15848 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15849 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15850 (df_simulate_initialize_backwards): Likewise.
15851 (df_simulate_finalize_backwards): Likewise.
15852 (df_simulate_initialize_forwards): Likewise.
15853 (df_md_simulate_artificial_defs_at_top): Likewise.
15854 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15855 * regrename.c (init_rename_info): Likewise.
15856 * regstat.c (regstat_bb_compute_ri): Likewise.
15857 (regstat_bb_compute_calls_crossed): Likewise.
15859 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15861 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15862 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15863 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15864 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15865 * combine.c (create_log_links): Likewise.
15866 * compare-elim.c (find_flags_uses_in_insn): Likewise.
15867 (try_eliminate_compare): Likewise.
15868 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15869 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15870 (remove_reg_equal_equiv_notes_for_defs): Likewise.
15871 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15872 (word_dce_process_block, dce_process_block): Likewise.
15873 * ddg.c (def_has_ccmode_p): Likewise.
15874 * df-core.c (df_bb_regno_first_def_find): Likewise.
15875 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15876 * df-problems.c (df_rd_simulate_one_insn): Likewise.
15877 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15878 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15879 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15880 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15881 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15882 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15883 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15884 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15885 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15886 * fwprop.c (local_ref_killed_between_p): Likewise.
15887 (all_uses_available_at, free_load_extend): Likewise.
15888 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15889 * hw-doloop.c (scan_loop): Likewise.
15890 * ifcvt.c (dead_or_predicable): Likewise.
15891 * init-regs.c (initialize_uninitialized_regs): Likewise.
15892 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15893 (process_bb_node_lives): Likewise.
15894 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15895 (find_moveable_pseudos): Likewise.
15896 * loop-invariant.c (check_dependencies, record_uses): Likewise.
15897 * recog.c (peep2_find_free_register): Likewise.
15898 * ree.c (get_defs): Likewise.
15899 * regstat.c (regstat_bb_compute_ri): Likewise.
15900 (regstat_bb_compute_calls_crossed): Likewise.
15901 * sched-deps.c (find_inc, find_mem): Likewise.
15902 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15903 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15904 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15905 (prepare_shrink_wrap): Likewise.
15906 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15907 * web.c (union_defs, pass_web::execute): Likewise.
15908 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15909 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15911 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
15913 * lra-assign.c (assign_by_spills): Add code to assign vector regs
15914 to inheritance pseudos.
15915 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15917 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
15920 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15921 (BU_MISC_2): Rename to ...
15922 (BU_LDBL128_2): ... this.
15923 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15924 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15925 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15926 RS6000_BTM_LDBL128.
15927 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15928 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15929 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15930 (unpacktf_1): Likewise.
15931 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15932 (__builtin_longdouble_dw1): Likewise.
15933 * doc/sourcebuild.texi (longdouble128): Document.
15935 2014-06-13 Jeff Law <law@redhat.com>
15937 PR rtl-optimization/61094
15938 PR rtl-optimization/61446
15939 * ree.c (combine_reaching_defs): Get the mode for the copy from
15940 the extension insn rather than the defining insn.
15942 2014-06-13 Dehao Chen <dehao@google.com>
15944 * dwarf2out.c (add_linkage_name): Emit more linkage name.
15946 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
15948 * doc/install.texi (--enable-linker-plugin-configure-flags)
15949 (--enable-linker-plugin-flags): Document new flags.
15951 2014-06-13 Martin Jambor <mjambor@suse.cz>
15954 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15955 cache_token if returning early.
15957 2014-06-13 Nick Clifton <nickc@redhat.com>
15959 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15960 requested alignment is active.
15961 (LABEL_ALIGN): Likewise.
15962 (LOOP_ALIGN): Likewise.
15964 2014-06-13 Richard Biener <rguenther@suse.de>
15966 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15967 Rewrite to propagate the VN result into all uses where
15968 possible and to remove stmts becoming dead because of that.
15969 (eliminate): Generalize stmt removal handling, remove in
15970 reverse dominator order to support proper debug stmt
15971 generation. Update stmts before removing stmts.
15972 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15974 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15976 PR tree-optimization/61375
15977 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15978 symbolic number cannot be represented in an uint64_t.
15979 (find_bswap_or_nop_1): Likewise.
15981 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15983 * symtab.c (symtab_node::reset_section): New method.
15984 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15986 * cgraph.h (reset_section): Declare.
15987 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15988 do not consider comdat locals.
15989 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15991 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15992 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15993 reset sections of symbols dragged out of the comdats.
15994 (function_and_variable_visibility): Reset sections of
15997 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15999 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16000 to use symtab and decl_binds_to_current_def_p
16001 * tree-vectorizer.c (increase_alignment): Increase alignment
16002 of alias target, too.
16004 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16006 PR middle-end/61486
16007 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16008 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16009 if outer combined construct is distribute.
16010 (gimplify_omp_for): For OMP_DISTRIBUTE set
16011 gimplify_omp_ctxp->distribute.
16012 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16013 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16014 mapping into decl map.
16016 2014-06-12 Jason Merrill <jason@redhat.com>
16018 * common.opt (fabi-version): Change default to 0.
16020 2014-06-12 Jason Merrill <jason@redhat.com>
16022 * toplev.c (process_options): Reject -fabi-version=1.
16024 2014-06-12 Jeff Law <law@redhat.com>
16026 PR tree-optimization/61009
16027 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16028 value when we stop processing a block due to problematic PHIs.
16030 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16032 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16033 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16034 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16035 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16036 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16037 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16038 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16039 are not in the spec.
16041 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16044 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16045 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16048 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16050 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16052 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16055 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16056 loading from address spaces.
16058 2014-06-12 Martin Liska <mliska@suse.cz>
16061 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16062 statement is reachable.
16064 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16066 * symtab.c (section_hash): New hash.
16067 (symtab_unregister_node): Clear section before freeing.
16068 (hash_section_hash_entry): New haser.
16069 (eq_sections): New function.
16070 (symtab_node::set_section_for_node): New method.
16071 (set_section_1): Update.
16072 (symtab_node::set_section): Take string instead of tree as parameter.
16073 (symtab_resolve_alias): Update.
16074 * cgraph.h (section_hash_entry_d): New structure.
16075 (section_hash_entry): New typedef.
16076 (cgraph_node): Change comdat_group_ to x_comdat_group,
16077 change section_ to x_section and turn into section_hash_entry;
16078 update accestors; put set_section_for_node offline.
16079 * tree.c (decl_section_name): Turn into string.
16080 (set_decl_section_name): Change parameter to be string.
16081 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16082 * sdbout.c (sdbout_one_type): Update.
16083 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16084 * varasm.c (IN_NAMED_SECTION, get_named_section,
16085 resolve_unique_section, hot_function_section, get_named_text_section,
16086 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16087 make_decl_rtl, default_unique_section): Update.
16088 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16089 (c6x_elf_unique_section): Update.
16090 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16091 * config/pa/pa.c (pa_function_section): Update.
16092 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16093 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16094 * config/arc/arc.c (arc_in_small_data_p): Update.
16095 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16096 * config/mcore/mcore.c (mcore_unique_section): Update.
16097 * config/mips/mips.c (mips16_build_function_stub): Update.
16098 (mips16_build_call_stub): Update.
16099 (mips_function_rodata_section): Update.
16100 (mips_in_small_data_p): Update.
16101 * config/score/score.c (score_in_small_data_p): Update.
16102 * config/rx/rx.c (rx_in_small_data): Update.
16103 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16104 (rs6000_xcoff_asm_named_section): Update.
16105 (rs6000_xcoff_unique_section): Update.
16106 * config/frv/frv.c (frv_string_begins_with): Update.
16107 (frv_in_small_data_p): Update.
16108 * config/v850/v850.c (v850_encode_data_area): Update.
16109 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16110 (bfin_handle_l1_data_attribute): Update.
16111 (bfin_handle_l2_attribute): Update.
16112 * config/mep/mep.c (mep_unique_section): Update.
16113 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16115 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16116 (h8300_handle_tiny_data_attribute): Update.
16117 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16118 (m32r_in_small_data_p): Update.
16119 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16120 * config/i386/i386.c (ix86_in_large_data_p): Update.
16121 * config/i386/winnt.c (i386_pe_unique_section): Update.
16122 * config/darwin.c (darwin_function_section): Update.
16123 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16124 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16125 (new_emutls_decl): Update.
16126 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16127 input_varpool_node): Update.
16128 (ead_string_cst): Turn to ...
16129 (read_string): ... this one.
16130 * dwarf2out.c (secname_for_decl): Update.
16131 * asan.c (asan_protect_global): Update.
16133 2014-06-11 DJ Delorie <dj@redhat.com>
16135 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16137 * config/rx/rx.c (rx_option_override): Likewise.
16138 (rx_align_for_label): Likewise.
16140 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16142 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16144 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16147 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16149 * common.md: New file.
16150 * doc/md.texi: Update description of generic, machine-independent
16152 * config/s390/constraints.md (e): Delete.
16153 * Makefile.in (md_file): Include common.md.
16154 * config/m32c/t-m32c (md_file): Likewise.
16155 * genpreds.c (general_mem): New array.
16156 (generic_constraint_letters): Remove constraints now defined by
16158 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16159 Allow the first character to be '<' or '>' as well.
16160 * genoutput.c (general_mem): New array.
16161 (indep_constraints): Remove constraints now defined by common.md.
16162 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16163 Remove special handling of 'm'.
16164 * ira-costs.c (record_reg_classes): Remove special handling of
16165 constraints now defined by common.md.
16166 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16167 * ira-lives.c (single_reg_class): Likewise.
16168 (ira_implicitly_set_insn_hard_regs): Likewise.
16169 * lra-constraints.c (reg_class_from_constraints): Likewise.
16170 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16171 * postreload.c (reload_cse_simplify_operands): Likewise.
16172 * reload.c (push_secondary_reload, scratch_reload_class)
16173 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16174 * reload1.c (maybe_fix_stack_asms): Likewise.
16175 * targhooks.c (default_secondary_reload): Likewise.
16176 * stmt.c (parse_output_constraint): Likewise.
16177 * recog.c (preprocess_constraints): Likewise.
16178 (constrain_operands, peep2_find_free_register): Likewise.
16179 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16180 must be handled specially.
16182 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16184 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16185 * genpreds.c (have_const_dbl_constraints): Delete.
16186 (add_constraint): Don't set it.
16187 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16188 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16189 constraints using the lookup_constraint logic.
16190 * ira-lives.c (single_reg_class): Likewise.
16191 * ira.c (ira_setup_alts): Likewise.
16192 * lra-constraints.c (process_alt_operands): Likewise.
16193 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16194 * reload.c (find_reloads): Likewise.
16196 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16198 * genpreds.c (const_int_start, const_int_end): New variables.
16199 (choose_enum_order): Output CONST_INT constraints before memory
16201 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16203 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16204 * ira.c (ira_setup_alts): Likewise.
16205 * lra-constraints.c (process_alt_operands): Likewise.
16206 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16207 * reload.c (find_reloads): Likewise.
16209 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16211 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16212 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16213 * recog.c (preprocess_constraints): Update accordingly.
16215 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16217 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16218 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16219 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16220 * genpreds.c (print_type_tree): New function.
16221 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16222 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16223 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16224 Write out enum constraint_type and get_constraint_type.
16225 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16226 constraint_num rather than a constraint string.
16227 (satisfies_address_constraint_p): Likewise.
16228 (reg_class_from_constraints): Avoid old constraint macros.
16229 (process_alt_operands, process_address_1): Likewise.
16230 (curr_insn_transform): Likewise.
16231 * ira-costs.c (record_reg_classes): Likewise.
16232 (record_operand_costs): Likewise.
16233 * ira-lives.c (single_reg_class): Likewise.
16234 (ira_implicitly_set_insn_hard_regs): Likewise.
16235 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16236 * postreload.c (reload_cse_simplify_operands): Likewise.
16237 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16238 (constrain_operands, peep2_find_free_register): Likewise.
16239 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16240 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16241 * reload1.c (maybe_fix_stack_asms): Likewise.
16242 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16243 * targhooks.c (default_secondary_reload): Likewise.
16244 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16245 to EXTRA_CONSTRAINT_STR.
16246 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16248 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16250 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16251 (write_constraint_satisfied_p_array): ...this new function.
16252 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16254 (write_insn_preds_c): Update accordingly.
16256 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16258 * genpreds.c (write_lookup_constraint): Rename to...
16259 (write_lookup_constraint_1): ...this.
16260 (write_lookup_constraint_array): New function.
16261 (write_tm_preds_h): Define lookup_constraint as an inline function
16262 that uses write_lookup_constraint_array where possible.
16263 (write_insn_preds_c): Update for the changes above.
16265 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16267 * doc/md.texi (regclass_for_constraint): Rename to...
16268 (reg_class_for_constraint): ...this.
16269 * genpreds.c (num_constraints, enum_order, register_start)
16270 (register_end, satisfied_start, memory_start, memory_end)
16271 (address_start, address_end): New variables.
16272 (add_constraint): Count the number of constraints.
16273 (choose_enum_order): New function.
16274 (write_enum_constraint_num): Iterate over enum_order.
16275 (write_regclass_for_constraint): Rename to...
16276 (write_reg_class_for_constraint_1): ...this and update output
16278 (write_constraint_satisfied_p): Rename to...
16279 (write_constraint_satisfied_p_1): ...this and update output
16280 accordingly. Do nothing if all extra constraints are register
16282 (write_insn_extra_memory_constraint): Delete.
16283 (write_insn_extra_address_constraint): Delete.
16284 (write_range_function): New function.
16285 (write_tm_preds_h): Define constraint_satisfied_p and
16286 reg_class_for_constraint as inline functions that do a range check
16287 before calling the out-of-line function. Use write_range_function
16288 to implement insn_extra_{register,memory,address}_constraint,
16289 the first of which is new.
16290 (write_insn_preds_c): Update after above changes to write_* functions.
16291 (main): Call choose_enum_order.
16293 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16295 PR tree-optimization/61306
16296 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16297 expression instead of its size.
16298 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16299 false to prevent optimization when the result is unpredictable due to
16300 arithmetic right shift of signed type with highest byte is set.
16301 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16302 (init_symbolic_number): Likewise.
16303 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16304 when the result is unpredictable due to sign extension.
16306 2014-06-11 Terry Guo <terry.guo@arm.com>
16308 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16309 (*thumb1_addsi3): Ditto.
16310 (*thumb_subdi3): Ditto.
16311 (thumb1_subsi3_insn): Ditto.
16312 (*thumb_mulsi3): Ditto.
16313 (*thumb_mulsi3_v6): Ditto.
16314 (*thumb1_andsi3_insn): Ditto.
16315 (thumb1_bicsi3): Ditto.
16316 (*thumb1_iorsi3_insn): Ditto.
16317 (*thumb1_xorsi3_insn): Ditto.
16318 (*thumb1_ashlsi3): Ditto.
16319 (*thumb1_ashrsi3): Ditto.
16320 (*thumb1_lshrsi3): Ditto.
16321 (*thumb1_rotrsi3): Ditto.
16322 (*thumb1_negdi2): Ditto.
16323 (*thumb1_negsi2): Ditto.
16324 (*thumb1_abssi2): Ditto.
16325 (*thumb1_neg_abssi2): Ditto.
16326 (*thumb1_one_cmplsi2): Ditto.
16327 (*thumb1_zero_extendhisi2): Ditto.
16328 (*thumb1_zero_extendqisi2): Ditto.
16329 (*thumb1_zero_extendqisi2_v6): Ditto.
16330 (thumb1_extendhisi2): Ditto.
16331 (thumb1_extendqisi2): Ditto.
16332 (*thumb1_movdi_insn): Ditto.
16333 (*thumb1_movsi_insn): Ditto.
16334 (*thumb1_movhi_insn): Ditto.
16335 (thumb_movhi_clobber): Ditto.
16336 (*thumb1_movqi_insn): Ditto.
16337 (*thumb1_movhf): Ditto.
16338 (*thumb1_movsf_insn): Ditto.
16339 (*thumb_movdf_insn): Ditto.
16340 (movmem12b): Ditto.
16342 (cbranchqi4): Ditto.
16343 (cbranchsi4_insn): Ditto.
16344 (cbranchsi4_scratch): Ditto.
16345 (*negated_cbranchsi4): Ditto.
16346 (*tbit_cbranch): Ditto.
16347 (*tlobits_cbranch): Ditto.
16348 (*tstsi3_cbranch): Ditto.
16349 (*cbranchne_decr1): Ditto.
16350 (*addsi3_cbranch): Ditto.
16351 (*addsi3_cbranch_scratch): Ditto.
16352 (*thumb_cmpdi_zero): Ditto.
16353 (cstoresi_eq0_thumb1): Ditto.
16354 (cstoresi_ne0_thumb1): Ditto.
16355 (*cstoresi_eq0_thumb1_insn): Ditto.
16356 (*cstoresi_ne0_thumb1_insn): Ditto.
16357 (cstoresi_nltu_thumb1): Ditto.
16358 (cstoresi_ltu_thumb1): Ditto.
16359 (thumb1_addsi3_addgeu): Ditto.
16360 (*thumb_jump): Ditto.
16361 (*call_reg_thumb1_v5): Ditto.
16362 (*call_reg_thumb1): Ditto.
16363 (*call_value_reg_thumb1_v5): Ditto.
16364 (*call_value_reg_thumb1): Ditto.
16365 (*call_insn): Ditto.
16366 (*call_value_insn): Ditto.
16367 (thumb1_casesi_internal_pic): Ditto.
16368 (thumb1_casesi_dispatch): Ditto.
16369 (*thumb1_indirect_jump): Ditto.
16370 (prologue_thumb1_interwork): Ditto.
16371 (*epilogue_insns): Ditto.
16372 (consttable_1): Ditto.
16373 (consttable_2): Ditto.
16374 (tablejump): Ditto.
16375 (*thumb1_tablejump): Ditto.
16376 (thumb_eh_return): Ditto.
16377 (define_peephole2): Two of them are thumb1 only and got moved into
16378 new file thumb1.md.
16379 (define_split): Six of them are thumb1 only and got moved into new
16381 * config/arm/thumb1.md: New file comprised of above thumb1 only
16384 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16386 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16387 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16389 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16390 (aarch64_crc_builtin_datum): New struct.
16391 (aarch64_crc_builtin_data): New.
16392 (aarch64_init_crc32_builtins): New function.
16393 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16394 (aarch64_crc32_expand_builtin): New.
16395 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16396 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16397 __ARM_FEATURE_CRC32 when appropriate.
16398 (TARGET_CRC32): Define.
16399 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16400 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16401 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16402 (aarch64_<crc_variant>): New pattern.
16403 * config/aarch64/arm_acle.h: New file.
16404 * config/aarch64/iterators.md (CRC): New int iterator.
16405 (crc_variant, crc_mode): New int attributes.
16406 * doc/aarch64-acle-intrinsics.texi: New file.
16407 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16408 Include aarch64-acle-intrinsics.texi.
16410 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16412 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16413 check for stores group of length 3.
16414 (vect_permute_store_chain): New permutations for stores group of
16416 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16417 of vec_perm_shuffle for the new permutations.
16419 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16421 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16422 table rewriting temporarily on targets not supporting ONE_ONLY.
16424 2014-06-11 Richard Biener <rguenther@suse.de>
16426 PR middle-end/61437
16428 2014-06-04 Richard Biener <rguenther@suse.de>
16430 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16431 TREE_PUBLIC and DECL_EXTERNAL decls.
16433 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16435 * varasm.c (set_implicit_section): New function.
16436 (resolve_unique_section): Use it to set implicit section
16438 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16439 (default_function_section): Likewise.
16440 (decl_binds_to_current_def_p): Constify argument.
16441 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16442 * asan.c (asan_protect_global): Use
16443 symtab_get_node (decl)->implicit_section.
16444 * symtab.c (dump_symtab_base): Dump implicit sections.
16445 (verify_symtab_base): Verify sanity of sectoins and comdats.
16446 (symtab_resolve_alias): Alias share the section of its target.
16447 (set_section_1): New function.
16448 (symtab_node::set_section): Move here, recurse to aliases.
16449 (verify_symtab): Check for duplicated symtab lists.
16450 * tree-core.h (implicit_section_name_p): Remove.
16451 * tree-vect-data-refs.c: Include varasm.h.
16452 (vect_can_force_dr_alignment_p): Fix conditional on when
16453 decl bints to current definition; use
16454 symtab_get_node (decl)->implicit_section.
16455 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16456 * cgraph.h (struct symtab_node): Add implicit_section.
16457 (set_section): Rename to ...
16458 (set_section_for_node): ... this one.
16459 (set_section): Declare.
16460 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16461 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16462 input_overwrite_node, input_varpool_node): Stream implicit_section.
16463 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16464 removal; it will fail in LTO.
16466 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16468 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16469 Change second alternative type to f_mcr.
16470 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16471 and 12th alternatives' types to f_mcr and f_mrc.
16472 (*movdi_aarch64): Same for 12th and 13th alternatives.
16473 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16474 (aarch64_movtilow_tilow): Change type to fmov.
16476 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16478 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16479 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16481 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16483 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16485 (aarch64_sqrdmulh_lane<mode>): Likewise.
16486 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16487 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16488 (aarch64_sqdmulh_laneq<mode>): New expander.
16489 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16490 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16491 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16492 (aarch64_sqdmulh_lane<mode>): New expander.
16493 (aarch64_sqrdmulh_lane<mode>): Likewise.
16494 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16495 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16496 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16497 (aarch64_sqdmlal_laneq<mode>): Likewise.
16498 (aarch64_sqdmlsl_lane<mode>): Likewise.
16499 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16500 (aarch64_sqdmlal2_lane<mode>): Likewise.
16501 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16502 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16503 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16504 (aarch64_sqdmull_lane<mode>): Likewise.
16505 (aarch64_sqdmull_laneq<mode>): Likewise.
16506 (aarch64_sqdmull2_lane<mode>): Likewise.
16507 (aarch64_sqdmull2_laneq<mode>): Likewise.
16509 2014-06-10 Richard Biener <rguenther@suse.de>
16511 PR tree-optimization/61438
16512 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16513 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16514 insertion of IVs if running PRE.
16515 (eliminate): Adjust.
16516 (pass_pre::execute): Likewise.
16517 (pass_fre::execute): Likewise.
16519 2014-06-10 Richard Biener <rguenther@suse.de>
16521 PR middle-end/61456
16522 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16523 Do not use the main variant for the type comparison.
16524 (ncr_compar): Likewise.
16525 (nonoverlapping_component_refs_p): Likewise.
16527 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16529 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16530 REG_CFA_RESTORE mode.
16532 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16534 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16535 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16536 expand_vec_perm_pblendv.
16538 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16540 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16542 Simplify description of __crc32d and __crc32cd intrinsics.
16543 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16546 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16549 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16550 * config.in: Regenerate.
16551 * configure: Likewise.
16553 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16555 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16557 (intersect_static_var_sets): Remove.
16558 (propagate): Do not prune local statics.
16560 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16563 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16564 Set lastprivate_firstprivate even if omp_private_outer_ref
16565 langhook returns true.
16566 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16567 langhook, call unshare_expr on new_var and call
16568 build_outer_var_ref to get the last argument.
16570 2014-06-10 Marek Polacek <polacek@redhat.com>
16573 * doc/extend.texi: Add cindex for transparent_union.
16575 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16577 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16578 init_symbolic_number ().
16580 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16582 PR middle-end/61141
16583 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16584 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16585 (verify_rtl_sharing): Likewise.
16587 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16590 * tree.c (build_qualified_type): Use a canonical type for
16593 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16595 * config/arm/arm-modes.def: Remove XFmode.
16597 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16600 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16601 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16602 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16603 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16604 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16605 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16606 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16607 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16608 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16610 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16612 * tree-core.h (tree_decl_with_vis): Remove section_name.
16614 2014-06-09 Kito Cheng <kito@0xlab.org>
16616 * ira.c (ira): Don't call init_caller_save if LRA enabled
16617 since LRA use its own infrastructure to handle that.
16619 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16621 * symtab.c (dump_symtab_base): Update dumping.
16622 (symtab_make_decl_local): Clear only DECL_COMDAT.
16623 * tree-vect-data-refs.c (Check that variable is static before
16624 tampering with sections.
16625 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16626 (cgraph_create_virtual_clone): Likewise.
16627 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16628 (decl_section_name, set_decl_section_name): New accessors.
16629 (find_decls_types_r): Do not walk section name
16630 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16631 (decl_comdat_group, decl_comdat_group_id): Constify.
16632 (decl_section_name, set_decl_section_name): Update.
16633 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16634 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16635 (cgraph_make_node_local_1): Clear section and comdat group.
16636 * cgraph.h (set_comdat_group): Sanity check.
16637 (get_section, set_section): New.
16638 * ipa-comdats.c (ipa_comdats): Use get_section.
16639 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16640 * lto-streamer-out.c: Do not follow section names.
16641 * c-family/c-common.c (handle_section_attribute): Update.
16642 * lto-cgraph.c (lto_output_node): Output section.
16643 (lto_output_varpool_node): Likewise.
16644 (read_comdat_group): Rename to ...
16645 (read_identifier): ... this one.
16646 (read_string_cst): New function.
16647 (input_node, input_varpool_node): Input section names.
16648 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16649 (new_emutls_decl): Update.
16650 (secname_for_decl): Check section names only of static vars.
16651 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16652 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16653 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16654 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16655 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16656 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16657 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16658 * config/v850/v850.c (v850_insert_attributes): Likewise.
16659 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16661 (h8300_handle_tiny_data_attribute): Likewise.
16662 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16663 (bfin_handle_l2_attribute): Likewise.
16665 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16667 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16668 remove static initializer.
16670 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16672 * varasm.c (use_blocks_for_decl_p): Check symbol table
16673 instead of alias attribute.
16674 (place_block_symbol): Recurse on aliases.
16676 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16678 * ipa-visibility.c: Include varasm.h
16679 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16681 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16683 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16684 outputting aliases.
16686 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16688 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16689 from test_insn into GGC space escape via SET_SRC.
16691 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16693 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16694 call statement, if any.
16695 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16696 statements, if any. Tidy up.
16698 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16701 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16702 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16703 handles swapping the two 64-bit double words on little endian
16704 systems. Include V1TImode and optionally TImode in VSX_LE so that
16705 these types are properly swapped. Change all of the insns and
16706 splits that do the 64-bit swaps to use VSX_LE.
16707 (vsx_le_perm_load_<mode>): Likewise.
16708 (vsx_le_perm_store_<mode>): Likewise.
16709 (splitters for little endian memory operations): Likewise.
16710 (vsx_xxpermdi2_le_<mode>): Likewise.
16711 (vsx_lxvd2x2_le_<mode>): Likewise.
16712 (vsx_stxvd2x2_le_<mode>): Likewise.
16714 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16717 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16718 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16719 and corresponding splitters. Zero extend general register
16720 or memory input operand to XMM temporary. Enable for
16721 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16722 (floatunssi<mode>2): Update expander predicate.
16724 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16726 PR rtl-optimization/61325
16727 * lra-constraints.c (process_address_1): Check scale equal to one
16728 to prevent transformation: base + scale * index => base + new_reg.
16730 2014-06-06 Richard Biener <rguenther@suse.de>
16732 PR tree-optimization/59299
16733 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16735 (nearest_common_dominator_of_uses): Likewise.
16736 (statement_sink_location): Adjust. Support sinking loads.
16738 2014-06-06 Martin Jambor <mjambor@suse.cz>
16740 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16741 (build_agg_jump_func_from_list): Likewise.
16742 (determine_known_aggregate_parts): Renamed to
16743 determine_locally_known_aggregate_parts. Moved some functionality
16744 to the two functions above, removed bound checks.
16746 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16748 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16749 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16750 (aarch64_progress_pointer): Likewise.
16751 (aarch64_copy_one_part_and_move_pointers): Likewise.
16752 (aarch64_expand_movmen): Likewise.
16753 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16754 * config/aarch64/aarch64.md (movmem<mode>): New.
16756 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16758 * targhooks.c (default_add_stmt_cost): Call target specific
16759 hook instead of default one.
16761 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16763 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16764 endianness instead of host endianness.
16765 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16768 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16771 * function.c (instantiate_decls): Process the saved static chain.
16772 (expand_function_start): If not optimizing, save the static chain
16774 * tree-nested.c (convert_all_function_calls): Always create the static
16775 chain for nested functions if not optimizing.
16777 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16779 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16781 2014-06-06 Richard Biener <rguenther@suse.de>
16783 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16784 (construct_init_block): Likewise.
16785 (construct_exit_block): Likewise.
16786 (pass_expand::execute): Likewise.
16787 * graphite.c (graphite_transforms): Replace check for current_loops
16788 with a check for > 1 loops.
16789 (pass_graphite_transforms::execute): Adjust.
16790 * ipa-split.c (split_function): Remove check for current_loops.
16791 * omp-low.c (expand_parallel_call): Likewise.
16792 (expand_omp_for_init_counts): Likewise.
16793 (extract_omp_for_update_vars): Likewise.
16794 (expand_omp_for_generic): Likewise.
16795 (expand_omp_sections): Likewise.
16796 (expand_omp_target): Likewise.
16797 * tracer.c (tail_duplicate): Likewise.
16798 (pass_tracer::execute): Likewise.
16799 * trans-mem.c (expand_transaction): Likewise.
16800 * tree-complex.c (expand_complex_div_wide): Likewise.
16801 * tree-eh.c (lower_resx): Likewise.
16802 (cleanup_empty_eh_merge_phis): Likewise.
16803 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16804 current_loops with a check for > 1 loops.
16805 (pass_predcom::execute): Adjust.
16806 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16807 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16808 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16809 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16810 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16811 * tree-switch-conversion.c (process_switch): Likewise.
16812 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16813 * tree-vrp.c (vrp_visit_phi_node): Likewise.
16814 (execute_vrp): Likewise.
16815 * ubsan.c (ubsan_expand_null_ifn): Likewise.
16817 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16819 * rtl.h (insn_location): Declare.
16820 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16821 with UNKNOWN_LOCATION.
16822 * emit-rtl.c (insn_location): New function.
16823 * final.c (notice_source_line): Check that the instruction has a
16824 location before retrieving it and use insn_location.
16825 * modulo-sched.c (loop_single_full_bb_p): Likewise.
16826 * print-rtl.c (print_rtx): Likewise.
16828 2014-06-06 Richard Biener <rguenther@suse.de>
16830 * passes.def: Move 2nd VRP pass before phi-only-cprop.
16832 2014-06-06 Christian Bruel <christian.bruel@st.com>
16834 PR tree-optimization/43934
16835 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16838 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16840 * ira-lives.c (single_reg_class): Add missing break. Explicitly
16841 return NO_REGS for extra address and memory constraints. Handle
16842 operands that match (or are equivalent to something that matches)
16843 extra constant constraints. Ignore other non-register operands.
16845 2014-06-06 Alan Modra <amodra@gmail.com>
16848 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16849 * doc/tm.texi: Regenerate.
16850 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16851 Use throughout in place of REG_PARM_STACK_SPACE.
16852 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16853 "incoming" param. Pass to rs6000_function_parms_need_stack.
16854 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16855 prototype_p when incoming. Use function decl when incoming
16856 to handle K&R style functions.
16857 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16858 (INCOMING_REG_PARM_STACK_SPACE): Define.
16860 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16863 * cfgexpand.c (expand_debug_expr): Use address space of nested
16864 TREE_TYPE for ADDR_EXPR and MEM_REF.
16866 2014-06-05 Jeff Law <law@redhat.com>
16868 PR tree-optimization/61289
16869 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16870 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
16871 looking for those which match LHS. All callers changed.
16872 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16873 parameters and code which manipulated them. All callers changed.
16874 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16875 and DST_MAP parameters. Simplify invalidation code by just calling
16876 invalidate_equivalences. All callers changed.
16877 (thread_across_edge): Simplify now that we don't need to maintain
16878 the map of equivalences to invalidate.
16880 2014-06-05 Kai Tietz <ktietz@redhat.com>
16881 Richard Henderson <rth@redhat.com>
16884 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16885 checking for !TARGET_X32.
16886 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16887 (sibcall_intern): New define_insn, plus required peepholes.
16888 (sibcall_pop_intern): Likewise.
16889 (sibcall_value_intern): Likewise.
16890 (sibcall_value_pop_intern): Likewise.
16892 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
16894 * tree-inline.c (tree_function_versioning): Check DF info existence
16895 before accessing it.
16897 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16899 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16901 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16902 aarch64_frame hard_fp_offset and frame_size.
16903 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16904 frame_size; remove original_frame_size.
16905 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16906 (aarch64_initial_elimination_offset): Remove frame_size and
16907 offset. Use aarch64_frame frame_size.
16909 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16910 Jiong Wang <jiong.wang@arm.com>
16911 Renlin <renlin.li@arm.com>
16913 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16914 initialization of R30 offset. Update offset. Iterate core
16915 regisers upto X30. Remove X29, X30 specific code.
16917 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16918 Jiong Wang <jiong.wang@arm.com>
16920 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16921 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16922 (aarch64_register_saved_on_entry): Adjust test.
16924 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16926 * config/aarch64/aarch64.h (machine_function): Move
16927 saved_varargs_size from here...
16928 (aarch64_frame): ... to here.
16930 * config/aarch64/aarch64.c (aarch64_expand_prologue)
16931 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16932 (aarch64_initial_elimination_offset)
16933 (aarch64_setup_incoming_varargs): Adjust location of
16934 saved_varargs_size.
16936 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16938 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16941 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
16942 Prachi Godbole <Prachi.Godbole@imgtec.com>
16944 * config/mips/mips-cpus.def: Add definition for p5600. Updated
16945 mips32r5 entry to use PROCESSOR_P5600.
16946 * config/mips/mips-tables.opt: Regenerate.
16947 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16948 * config/mips/mips.c (mips_fmadd_bypass): New function.
16949 (mips_rtx_cost_data): Add costs for p5600.
16950 (mips_issue_rate): Add support for p5600.
16951 (mips_multipass_dfa_lookahead): Likewise.
16952 * config/mips/mips.h (TUNE_P5600): New define.
16953 (TUNE_MACC_CHAINS): Add TUNE_P5600.
16954 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16955 * config/mips/mips.md: Include p5600.md.
16956 (processor): Add p5600.
16957 * config/mips/p5600.md: New file.
16959 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
16961 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16962 * config/i386/predicates.md (palignr_operand): New.
16963 Indicates if permutation is suitable for palignr instruction.
16965 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
16967 PR tree-optimization/61319
16968 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16969 stmt belongs to loop.
16971 2014-06-05 Richard Biener <rguenther@suse.de>
16973 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16974 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16975 (lookup_tmp_var): Adjust.
16976 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16978 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16980 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16982 2014-06-05 Marek Polacek <polacek@redhat.com>
16985 * doc/invoke.texi: Document -Wlogical-not-parentheses.
16987 2014-06-04 Tom de Vries <tom@codesourcery.com>
16989 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16992 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
16994 PR tree-optimization/61385
16995 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16997 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
16999 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17000 changed to use fatal_error.
17001 (main): Ensure lto_wrapper_cleanup is run atexit.
17003 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17005 * lra-constraints.c (valid_address_p): Move earlier in file.
17006 (address_eliminator): New structure.
17007 (satisfies_memory_constraint_p): New function.
17008 (satisfies_address_constraint_p): Likewise.
17009 (process_alt_operands, process_address, curr_insn_transform): Use them.
17011 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17013 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17015 (target_lra_int, default_target_lra_int, this_target_lra_int)
17016 (op_alt_data): Delete.
17017 * lra.h (lra_init): Delete.
17018 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17019 (init_insn_code_data_once): Remove op_alt_data handling.
17020 (finish_insn_code_data_once): Likewise.
17021 (init_op_alt_data): Delete.
17022 (get_static_insn_data): Initialize operand_alternative to null.
17023 (free_insn_recog_data): Cast operand_alternative before freeing it.
17024 (setup_operand_alternative): Take the operand_alternative as
17025 parameter and assume it isn't already cached in the static
17027 (lra_set_insn_recog_data): Update accordingly.
17028 (lra_init): Delete.
17029 * ira.c (ira_init): Don't call lra_init.
17030 * target-globals.h (this_target_lra_int): Declare.
17031 (target_globals): Remove lra_int.
17032 (restore_target_globals): Update accordingly.
17033 * target-globals.c: Don't include lra-int.h.
17034 (default_target_globals, save_target_globals): Remove lra_int.
17036 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17038 * recog.h (operand_alternative): Convert reg_class, reject,
17039 matched and matches into bitfields.
17040 (preprocess_constraints): New overload.
17041 (preprocess_insn_constraints): New function.
17042 (preprocess_constraints): Take the insn as parameter.
17043 (recog_op_alt): Change into a pointer.
17044 (target_recog): Add x_op_alt.
17045 * recog.c (asm_op_alt): New variable.
17046 (recog_op_alt): Change into a pointer.
17047 (preprocess_constraints): New overload, replacing the old function
17048 definition with one that doesn't use global state.
17049 (preprocess_insn_constraints): New function.
17050 (preprocess_constraints): Use them. Take the insn as parameter.
17051 Use asm_op_alt for asms.
17052 (recog_init): Free existing x_op_alt entries.
17053 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17055 (make_early_clobber_and_input_conflicts): Likewise.
17056 (process_bb_node_lives): Pass the insn to process_constraints.
17057 * reg-stack.c (check_asm_stack_operands): Likewise.
17058 (subst_asm_stack_regs): Likewise.
17059 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17060 * regrename.c (build_def_use): Likewise.
17061 * sched-deps.c (sched_analyze_insn): Likewise.
17062 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17063 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17064 (note_invalid_constants): Likewise.
17065 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17066 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17069 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17071 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17072 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17074 (make_early_clobber_and_input_conflicts): Likewise.
17075 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17077 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17079 * recog.h (alternative_class): New function.
17080 (which_op_alt): Return a const recog_op_alt.
17081 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17082 (subst_asm_stack_regs): Likewise.
17083 * config/arm/arm.c (note_invalid_constants): Likewise.
17084 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17085 the operand_alternative; use alternative class instead.
17086 * sel-sched.c (get_reg_class): Likewise.
17087 * regrename.c (build_def_use): Likewise.
17088 (hide_operands, restore_operands, record_out_operands): Update type
17091 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17093 * recog.h (recog_op_alt): Convert to a flat array.
17094 (which_op_alt): New function.
17095 * recog.c (recog_op_alt): Convert to a flat array.
17096 (preprocess_constraints): Update accordingly, grouping all
17097 operands of the same alternative together, rather than the
17099 * ira-lives.c (check_and_make_def_conflict): Likewise.
17100 (make_early_clobber_and_input_conflicts): Likewise.
17101 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17102 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17103 (subst_asm_stack_regs): Likewise.
17104 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17105 * regrename.c (hide_operands, record_out_operands): Likewise.
17106 (build_def_use): Likewise.
17107 * sel-sched.c (get_reg_class): Likewise.
17108 * config/arm/arm.c (note_invalid_constants): Likewise.
17110 2014-06-04 Jason Merrill <jason@redhat.com>
17114 * gimplify.c (gimplify_arg): Non-static.
17115 * gimplify.h: Declare it.
17117 2014-06-04 Richard Biener <rguenther@suse.de>
17119 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17120 TREE_PUBLIC and DECL_EXTERNAL decls.
17122 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17124 * regcprop.c (copyprop_hardreg_forward_1): Account for
17125 HARD_REGNO_CALL_PART_CLOBBERED.
17127 2014-06-04 Richard Biener <rguenther@suse.de>
17129 * configure.ac: Check whether the underlying type of int64_t
17130 is long or long long.
17131 * configure: Regenerate.
17132 * config.in: Likewise.
17133 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17134 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17136 2014-06-04 Richard Biener <rguenther@suse.de>
17138 PR tree-optimization/60098
17139 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17141 (dse_optimize_stmt): Simplify, now that we found a kill
17144 2014-06-04 Richard Biener <rguenther@suse.de>
17146 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17147 of accesses with non-invariant address.
17149 2014-06-04 Martin Liska <mliska@suse.cz>
17151 * cgraph.h (cgraph_make_wrapper): New function introduced.
17152 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17153 * ipa-inline.h (inline_analyze_function): The function is global.
17154 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17156 2014-06-04 Martin Liska <mliska@suse.cz>
17158 * tree.h (private_lookup_attribute_starting): New function.
17159 (lookup_attribute_starting): Likewise.
17160 * tree.c (private_lookup_attribute_starting): Likewise.
17162 2014-06-04 Martin Liska <mliska@suse.cz>
17164 * cgraph.h (expand_thunk): New argument added.
17165 (address_taken_from_non_vtable_p): New global function.
17166 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17167 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17168 * cgraphunit.c (analyze_function): Likewise.
17169 (assemble_thunks_and_aliases): Argument added to call.
17170 (expand_thunk): New argument forces to produce GIMPLE thunk.
17172 2014-06-04 Martin Liska <mliska@suse.cz>
17174 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17175 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17176 * profile.c (branch_prob): Likewise.
17178 2014-06-04 Martin Jambor <mjambor@suse.cz>
17181 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17182 handler for switch on an ipa_ref_use enum.
17183 * ipa-reference.c (analyze_function): Likewise.
17185 2014-06-04 Kai Tietz <ktietz@redhat.com>
17187 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17188 from old call-instruction.
17190 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17192 * config/aarch64/aarch64.c (aarch64_classify_address)
17193 (aarch64_legitimize_reload_address): Support full addressing modes
17195 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17196 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17198 2014-06-03 Andrew Pinski <apinski@cavium.com>
17200 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17203 2014-06-03 Andrew Pinski <apinski@cavium.com>
17205 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17206 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17208 2014-06-03 Kai Tietz <ktietz@redhat.com>
17210 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17213 2014-06-03 Dehao Chen <dehao@google.com>
17215 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17218 2014-06-03 Marek Polacek <polacek@redhat.com>
17221 * doc/invoke.texi: Document -Wswitch-bool.
17222 * function.c (stack_protect_epilogue): Cast controlling expression of
17224 * gengtype.c (walk_type): Generate switch expression with its
17225 controlling expression cast to int.
17227 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17229 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17231 * config/avr/avr-tables.opt: Regenerate.
17232 * config/avr/t-multilib: Regenerate.
17233 * doc/avr-mmcu.texi: Regenerate.
17235 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17236 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17238 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17239 (ata6617c, ata664251): Add new avr35 devices.
17240 (ata6612c): Add new avr4 device.
17241 (ata6613c, ata6614q): Add new avr5 devices.
17242 * config/avr/avr-tables.opt: Regenerate.
17243 * config/avr/t-multilib: Regenerate.
17244 * doc/avr-mmcu.texi: Regenerate.
17246 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17248 * gcc/config/aarch64/aarch64-builtins.c
17249 (aarch64_types_binop_ssu_qualifiers): New static data.
17250 (TYPES_BINOP_SSU): Define.
17251 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17252 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17253 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17254 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17255 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17256 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17257 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17258 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17259 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17260 suffix to builtin function name, remove cast.
17261 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17262 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17263 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17265 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17267 * gcc/config/aarch64/aarch64-builtins.c
17268 (aarch64_types_binop_uus_qualifiers,
17269 aarch64_types_shift_to_unsigned_qualifiers,
17270 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17271 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17272 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17273 sqshlu_n, uqshl_n): Update qualifiers.
17274 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17275 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17276 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17277 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17278 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17279 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17280 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17281 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17282 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17283 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17284 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17285 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17286 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17287 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17288 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17289 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17290 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17291 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17292 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17293 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17294 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17295 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17296 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17297 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17298 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17299 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17300 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17302 2014-06-03 Teresa Johnson <tejohnson@google.com>
17304 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17306 2014-06-02 Jason Merrill <jason@redhat.com>
17309 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17311 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17313 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17316 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17318 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17320 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17321 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17322 * config/aarch64/iterators.md (REVERSE): New iterator.
17323 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17324 (rev_op): New int_attribute.
17325 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17326 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17327 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17328 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17329 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17330 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17331 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17332 Replace temporary __asm__ with __builtin_shuffle.
17334 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17336 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17338 * config/mips/mips-tables.opt: Regenerate.
17339 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17340 to use mips_isa_rev rather than ISA_MIPS32R2.
17341 * config/mips/mips.h (ISA_MIPS32R3): New define.
17342 (ISA_MIPS32R5): New define.
17343 (ISA_MIPS64R3): New define.
17344 (ISA_MIPS64R5): New define.
17345 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17346 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17347 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17349 (MIPS_ISA_SYNCI_SPEC): Likewise.
17350 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17351 (LINK_SPEC): Added mips32r3 and mips32r5.
17352 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17353 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17354 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17355 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17356 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17357 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17358 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17360 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17362 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17364 * config/mips/mips.opt (mxpa): New option.
17365 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17368 2014-06-03 Martin Jambor <mjambor@suse.cz>
17371 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17374 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17376 PR tree-optimization/61328
17377 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17378 initialization from find_bswap_or_nop_1.
17379 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17380 in source_expr2 before using the size value the function sets. Also
17381 make use of init_symbolic_number () in both the old place and
17382 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17383 doing recursion in the GIMPLE_BINARY_RHS case.
17385 2014-06-03 Richard Biener <rguenther@suse.de>
17387 PR tree-optimization/61383
17388 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17391 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17393 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17394 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17395 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17396 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17398 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17399 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17400 * system.h: ...here and make it unconditional.
17401 * target.def (conditional_register_usage): Mention
17402 define_register_constraint instead of old-style constraint macros.
17403 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17404 * doc/tm.texi: Regenerate.
17405 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17406 protected by !USE_MD_CONSTRAINTS.
17407 * config/frv/frv.md: Remove quote from old version of documentation.
17408 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17409 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17410 CONST_DOUBLE_OK_FOR_LETTER.
17411 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17413 2014-06-02 Andrew Pinski <apinski@cavium.com>
17415 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17416 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17417 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17418 file whose name depends on -mabi= and -mbig-endian.
17419 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17420 Handle LP64 better and handle ilp32 too.
17421 (MULTILIB_OPTIONS): Delete.
17422 (MULTILIB_DIRNAMES): Delete.
17424 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17426 * expr.h: Remove prototypes of functions defined in builtins.c.
17427 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17428 Remove prototypes of functions defined in builtins.c.
17429 * builtins.h: Update prototype list to include all exported functions.
17430 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17431 no_c99_libc_has_function): Move to targhooks.c
17432 (build_string_literal, build_call_expr_loc_array,
17433 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17435 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17436 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17437 no_c99_libc_has_function): Relocate from builtins.c.
17438 * tree.c: Include builtins.h.
17439 (build_call_expr_loc_array, build_call_expr_loc_vec,
17440 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17442 * fold-const.h (fold_fma): Move prototype to builtins.h.
17443 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17444 * asan.c: Include builtins.h.
17445 * cfgexpand.c: Likewise.
17446 * convert.c: Likewise.
17447 * emit-rtl.c: Likewise.
17448 * except.c: Likewise.
17449 * expr.c: Likewise.
17450 * fold-const.c: Likewise.
17451 * gimple-fold.c: Likewise.
17452 * gimple-ssa-strength-reduction.c: Likewise.
17453 * gimplify.c: Likewise.
17454 * ipa-inline.c: Likewise.
17455 * ipa-prop.c: Likewise.
17456 * lto-streamer-out.c: Likewise.
17457 * stmt.c: Likewise.
17458 * tree-inline.c: Likewise.
17459 * tree-object-size.c: Likewise.
17460 * tree-sra.c: Likewise.
17461 * tree-ssa-ccp.c: Likewise.
17462 * tree-ssa-forwprop.c: Likewise.
17463 * tree-ssa-loop-ivcanon.c: Likewise.
17464 * tree-ssa-loop-ivopts.c: Likewise.
17465 * tree-ssa-math-opts.c: Likewise.
17466 * tree-ssa-reassoc.c: Likewise.
17467 * tree-ssa-threadedge.c: Likewise.
17468 * tree-streamer-in.c: Likewise.
17469 * tree-vect-data-refs.c: Likewise.
17470 * tree-vect-patterns.c: Likewise.
17471 * tree-vect-stmts.c: Likewise.
17472 * config/aarch64/aarch64.c: Likewise.
17473 * config/alpha/alpha.c: Likewise.
17474 * config/arc/arc.c: Likewise.
17475 * config/arm/arm.c: Likewise.
17476 * config/avr/avr.c: Likewise.
17477 * config/bfin/bfin.c: Likewise.
17478 * config/c6x/c6x.c: Likewise.
17479 * config/cr16/cr16.c: Likewise.
17480 * config/cris/cris.c: Likewise.
17481 * config/epiphany/epiphany.c: Likewise.
17482 * config/fr30/fr30.c: Likewise.
17483 * config/frv/frv.c: Likewise.
17484 * config/h8300/h8300.c: Likewise.
17485 * config/i386/i386.c: Likewise.
17486 * config/i386/winnt.c: Likewise.
17487 * config/ia64/ia64.c: Likewise.
17488 * config/iq2000/iq2000.c: Likewise.
17489 * config/lm32/lm32.c: Likewise.
17490 * config/m32c/m32c.c: Likewise.
17491 * config/m32r/m32r.c: Likewise.
17492 * config/m68k/m68k.c: Likewise.
17493 * config/mcore/mcore.c: Likewise.
17494 * config/mep/mep.c: Likewise.
17495 * config/microblaze/microblaze.c: Likewise.
17496 * config/mips/mips.c: Likewise.
17497 * config/mmix/mmix.c: Likewise.
17498 * config/mn10300/mn10300.c: Likewise.
17499 * config/moxie/moxie.c: Likewise.
17500 * config/msp430/msp430.c: Likewise.
17501 * config/nds32/nds32.c: Likewise.
17502 * config/pa/pa.c: Likewise.
17503 * config/pdp11/pdp11.c: Likewise.
17504 * config/picochip/picochip.c: Likewise.
17505 * config/rl78/rl78.c: Likewise.
17506 * config/rs6000/rs6000.c: Likewise.
17507 * config/rx/rx.c: Likewise.
17508 * config/s390/s390.c: Likewise.
17509 * config/score/score.c: Likewise.
17510 * config/sh/sh.c: Likewise.
17511 * config/sparc/sparc.c: Likewise.
17512 * config/spu/spu.c: Likewise.
17513 * config/stormy16/stormy16.c: Likewise.
17514 * config/tilegx/tilegx.c: Likewise.
17515 * config/tilepro/tilepro.c: Likewise.
17516 * config/v850/v850.c: Likewise.
17517 * config/vax/vax.c: Likewise.
17518 * config/xtensa/xtensa.c: Likewise.
17520 2014-06-02 Jeff Law <law@redhat.com>
17522 PR rtl-optimization/61094
17523 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17524 was marked as do_no_reextend. If a copy is needed to eliminate
17525 an extension, then mark it as do_not_reextend.
17527 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17529 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17531 2014-06-02 Richard Henderson <rth@redhat.com>
17534 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17535 addresses inside asms. Use output_operand_lossage instead of
17538 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17541 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17542 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17544 2014-06-02 Tom de Vries <tom@codesourcery.com>
17546 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17547 case that x has VOIDmode.
17549 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17551 * varasm.c (copy_constant): Delete function.
17552 (build_constant_desc): Don't call it.
17554 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17557 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17558 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17559 with immediate_operand.
17561 2014-06-02 Andreas Schwab <schwab@suse.de>
17563 * config/ia64/ia64.c
17564 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17565 pending_data_specs first.
17567 2014-06-02 Richard Biener <rguenther@suse.de>
17569 PR tree-optimization/61378
17570 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17571 valueized_anything.
17573 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17575 * config/i386/constraints.md (Bw): Rename from 'w'.
17576 (Bz): Rename from 'z'.
17577 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17579 2014-06-01 Kai Tietz <ktietz@redhat.com>
17582 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17583 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17584 instead of m constraint.
17586 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17588 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17589 a separate alternative where the scratch operand 2 is marked as
17592 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17594 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17595 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17596 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17597 and __builtins_arm_get_fpscr.
17598 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17599 __builtins_arm_get_fpscr.
17600 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17601 __builtins_arm_ldfpscr.
17602 (arm_atomic_assign_expand_fenv): New function.
17603 * config/arm/vfp.md (set_fpscr): New pattern.
17604 (get_fpscr) : Likewise.
17605 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17607 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17608 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17610 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17612 * asan.c (report_error_func): Add SLOW_P argument, use
17613 BUILT_IN_ASAN_*_N if set.
17614 (build_check_stmt): Likewise.
17615 (instrument_derefs): If T has insufficient alignment,
17616 force same handling as for odd sizes.
17618 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17619 BUILT_IN_ASAN_REPORT_STORE_N): New.
17620 * asan.c (struct asan_mem_ref): Change access_size type to
17622 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17623 update_mem_ref_hash_table): Likewise.
17624 (asan_mem_ref_hasher::hash): Hash in a HWI.
17625 (report_error_func): Change size_in_bytes argument to HWI.
17626 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17628 (build_shadow_mem_access): New function.
17629 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17630 Handle size_in_bytes not power of two or larger than 16.
17631 (instrument_derefs): Don't give up if size_in_bytes is not
17632 power of two or is larger than 16.
17634 2014-05-30 Kai Tietz <ktietz@redhat.com>
17637 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17638 for sibling-tail-calls.
17639 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17641 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17642 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17644 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17646 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17647 * config/avr/avr-tables.opt: Regenerate.
17648 * config/avr/t-multilib: Regenerate.
17649 * doc/avr-mmcu.texi: Regenerate.
17651 2014-05-30 Ian Lance Taylor <iant@google.com>
17653 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17656 2014-05-30 Tom de Vries <tom@codesourcery.com>
17658 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17661 2014-05-30 Tom de Vries <tom@codesourcery.com>
17663 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17664 * lra.c (initialize_lra_reg_info_element): Add init of
17665 actual_call_used_reg_set field.
17666 (lra): Call lra_create_live_ranges before lra_inheritance for
17668 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17670 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17671 instead of call_used_reg_set for -fuse-caller-save.
17672 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17674 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17676 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17678 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17680 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17682 * ira.c (ira_get_dup_out_num): Check for output operands at
17683 the start of the loop. Handle cases where an included alternative
17684 follows an excluded one.
17686 2014-05-29 Mike Stump <mikestump@comcast.net>
17689 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17690 post ld passes when lto is used.
17692 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17694 PR rtl-optimization/61325
17695 * lra-constraints.c (process_address): Rename to process_address_1.
17696 (process_address): New function.
17698 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17700 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17701 TYPES_BINOPV): New static data.
17702 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17704 * config/aarch64/aarch64-simd.md (aarch64_ext,
17705 aarch64_im_lane_boundsi): New patterns.
17706 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17708 (aarch64_evpc_ext): New function.
17710 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17712 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17713 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17714 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17715 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17716 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17718 2014-05-29 Tom de Vries <tom@codesourcery.com>
17720 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17722 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17723 Richard Sandiford <rdsandiford@googlemail.com>
17725 * arm/iterators.md (shiftable_ops): New code iterator.
17726 (t2_binop0, arith_shift_insn): New code attributes.
17727 * arm/predicates.md (shift_nomul_operator): New predicate.
17728 * arm/arm.md (insn_enabled): Delete.
17729 (enabled): Remove insn_enabled test.
17730 (*arith_shiftsi): Delete. Replace with ...
17731 (*<arith_shift_insn>_multsi): ... new pattern.
17732 (*<arith_shift_insn>_shiftsi): ... new pattern.
17733 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17735 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17736 Tom de Vries <tom@codesourcery.com>
17738 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17739 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17741 (mips_split_call): Use POST_CALL_TMP_REG.
17742 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17744 2014-05-29 Tom de Vries <tom@codesourcery.com>
17746 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17747 with #ifdef STACK_REGS.
17749 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17751 * varasm.c (get_variable_section): Walk aliases.
17752 (place_block_symbol): Walk aliases.
17754 2014-05-28 Tom de Vries <tom@codesourcery.com>
17757 2014-05-28 Tom de Vries <tom@codesourcery.com>
17759 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17760 * lra.c (initialize_lra_reg_info_element): Add init of
17761 actual_call_used_reg_set field.
17762 (lra): Call lra_create_live_ranges before lra_inheritance for
17764 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17766 * lra-constraints.c (need_for_call_save_p): Use
17767 actual_call_used_reg_set instead of call_used_reg_set for
17769 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17771 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17773 * doc/md.texi: Document that the % constraint character must
17774 be at the beginning of the string.
17775 * genoutput.c (validate_insn_alternatives): Check that '=',
17776 '+' and '%' only appear at the beginning of a constraint.
17777 * ira.c (commutative_constraint_p): Delete.
17778 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17779 at the start of the string.
17780 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17782 * config/arm/neon.md (bicdi3_neon): Likewise.
17783 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17784 (slt_si, sltu_si): Likewise.
17785 * config/vax/vax.md (sbcdi3): Likewise.
17786 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17787 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17788 (mul64): Move '%' to beginning of constraint.
17789 * config/arm/arm.md (*xordi3_insn): Likewise.
17790 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17791 (xorsi3): Likewise.
17793 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17795 * doc/md.texi: Document the restrictions on the "enabled" attribute.
17797 2014-05-28 Jason Merrill <jason@redhat.com>
17800 * cgraph.h (symtab_node::get_comdat_group_id): New.
17801 * cgraphunit.c (analyze_functions): Call it.
17802 * symtab.c (dump_symtab_node): Likewise.
17803 * tree.c (decl_comdat_group_id): New.
17804 * tree.h: Declare it.
17805 * lto-streamer-out.c (write_symbol): Use it.
17806 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17808 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17810 PR bootstrap/PR61146
17811 * wide-int.cc: Do not include longlong.h when compiling with clang.
17813 2014-05-28 Richard Biener <rguenther@suse.de>
17815 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17816 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17817 (vrp_visit_assignment_or_call): Print less vertical space.
17818 (vrp_visit_stmt): Likewise.
17819 (vrp_visit_phi_node): Likewise. For a PHI argument with
17820 VR_VARYING range consider recording it as copy.
17822 2014-05-28 Richard Biener <rguenther@suse.de>
17825 2014-05-28 Richard Biener <rguenther@suse.de>
17827 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17829 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17831 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17832 sufficiently aligned and an offset is used at the same time.
17833 (expand_expr_real_1): Likewise.
17835 2014-05-28 Richard Biener <rguenther@suse.de>
17837 PR middle-end/61045
17838 * fold-const.c (fold_comparison): When folding
17839 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17840 the sign of the remaining constant operand stays the same.
17842 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
17844 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17845 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17846 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17848 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17849 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17850 (m32bit-doubles) Likewise.
17851 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17852 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17855 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17857 * configure.ac ($gcc_cv_ld_clearcap): New test.
17858 * configure: Regenerate.
17859 * config.in: Regenerate.
17860 * config/sol2.opt (mclear-hwcap): New option.
17861 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17862 * config/sol2-clearcap.map: Moved here from
17863 testsuite/gcc.target/i386/clearcap.map.
17864 * config/sol2-clearcapv2.map: Move here from
17865 gcc.target/i386/clearcapv2.map.
17866 * config/t-sol2 (install): Depend on install-clearcap-map.
17867 (install-clearcap-map): New target.
17868 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17871 2014-05-28 Richard Biener <rguenther@suse.de>
17873 * hwint.h (*_HALF_WIDE_INT*): Move to ...
17874 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17875 ... here and remove the rest.
17876 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17878 2014-05-28 Richard Biener <rguenther@suse.de>
17880 PR tree-optimization/61335
17881 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17882 new range fails, drop to varying.
17884 2014-05-28 Olivier Hainque <hainque@adacore.com>
17886 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17887 (CPP_SPEC): Add entry for -mcpu=8548.
17888 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17889 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17891 2014-05-28 Tom de Vries <tom@codesourcery.com>
17893 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17894 * lra.c (initialize_lra_reg_info_element): Add init of
17895 actual_call_used_reg_set field.
17896 (lra): Call lra_create_live_ranges before lra_inheritance for
17898 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17900 * lra-constraints.c (need_for_call_save_p): Use
17901 actual_call_used_reg_set instead of call_used_reg_set for
17903 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17905 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17906 Tom de Vries <tom@codesourcery.com>
17908 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17910 (@item -fuse-caller-save): New item.
17912 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17913 Tom de Vries <tom@codesourcery.com>
17915 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17916 OPT_fuse_caller_save.
17918 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17919 Tom de Vries <tom@codesourcery.com>
17921 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17922 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17923 get_call_reg_set_usage.
17924 * resource.c (mark_set_resources, mark_target_live_regs): Use
17925 get_call_reg_set_usage.
17926 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17928 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17929 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17930 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17931 * ira-build.c (ira_create_allocno): Init
17932 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17933 (create_cap_allocno, propagate_allocno_info)
17934 (propagate_some_info_from_allocno)
17935 (copy_info_to_removed_store_destinations): Handle
17936 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17937 * ira-costs.c (ira_tune_allocno_costs): Use
17938 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17940 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17941 Tom de Vries <tom@codesourcery.com>
17943 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17944 and function_used_regs_valid fields.
17945 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17946 find_all_hard_reg_sets.
17947 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17948 (get_call_reg_set_usage): New function.
17949 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17950 * regs.h (get_call_reg_set_usage): Declare.
17952 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17955 * config/dbx.h (License): Add Runtime Library Exception.
17956 * config/newlib-stdint.h (License): Same.
17957 * config/rtems.h (License): Same
17958 * config/initfini-array.h (License): Same
17959 * config/v850/v850.h (License): Same.
17960 * config/v850/v850-opts.h (License): Same
17961 * config/v850/rtems.h (License): Same.
17963 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17966 * doc/extend.texi (Local Labels): Note that label differences are
17967 not supported for AVR.
17969 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17970 Olivier Hainque <hainque@adacore.com>
17972 * rtl.h (set_for_reg_notes): Declare.
17973 * emit-rtl.c (set_for_reg_notes): New function.
17974 (set_unique_reg_note): Use it.
17975 * optabs.c (add_equal_note): Likewise
17977 2014-05-27 Andrew Pinski <apinski@cavium.com>
17979 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17980 Use <w> for the register in assembly template.
17981 (stack_protect_test): Use the mode of operands[0] for the result.
17982 (stack_protect_test_<mode>): Use <w> for the register
17983 in assembly template.
17985 2014-05-27 DJ Delorie <dj@redhat.com>
17987 * config/rx/rx.c (add_vector_labels): New.
17988 (rx_output_function_prologue): Call it.
17989 (rx_handle_func_attribute): Don't require empty arguments.
17990 (rx_handle_vector_attribute): New.
17991 (rx_attribute_table): Add "vector" attribute.
17992 * doc/extend.texi (interrupt, vector): Document new/changed
17993 RX-specific attributes.
17995 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17997 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17999 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18000 predicate to detect a negative quotient.
18002 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18004 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18005 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18006 Add X - Y CMP 0 to X CMP Y transformation.
18007 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18009 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18011 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18014 2014-05-27 Steve Ellcey <sellcey@mips.com>
18016 * config/mips/mips.c: Add include of cgraph.h.
18018 2014-05-27 Richard Biener <rguenther@suse.de>
18020 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18022 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18025 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18026 * config/arm/arm-cores.def (License): Same.
18027 * config/arm/arm-opts.h (License): Same.
18028 * config/arm/aout.h (License): Same.
18029 * config/arm/bpabi.h (License): Same.
18030 * config/arm/elf.h (License): Same.
18031 * config/arm/linux-elf.h (License): Same.
18032 * config/arm/linux-gas.h (License): Same.
18033 * config/arm/netbsd-elf.h (License): Same.
18034 * config/arm/uclinux-eabi.h (License): Same.
18035 * config/arm/uclinux-elf.h (License): Same.
18036 * config/arm/vxworks.h (License): Same.
18038 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18040 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18041 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18042 (arm_init_neon_builtins): Handle NEON_BSWAP.
18043 Define required type nodes.
18044 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18045 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18046 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18047 * config/arm/iterators.md (VDQHSD): New mode iterator.
18049 2014-05-27 Richard Biener <rguenther@suse.de>
18051 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18052 Try using literal operands when comparing value-ranges failed.
18054 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18056 * ira.c (commutative_operand): Adjust for change to recog_data.
18057 [Missing from previous commit.]
18059 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18061 * system.h (TEST_BIT): New macro.
18062 * recog.h (alternative_mask): New type.
18063 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18064 (recog_data_d): Replace alternative_enabled_p array with
18065 enabled_alternatives.
18066 (target_recog): New structure.
18067 (default_target_recog, this_target_recog): Declare.
18068 (get_enabled_alternatives, recog_init): Likewise.
18069 * recog.c (default_target_recog, this_target_recog): New variables.
18070 (get_enabled_alternatives): New function.
18071 (extract_insn): Use it.
18072 (recog_init): New function.
18073 (preprocess_constraints, constrain_operands): Adjust for change to
18075 * postreload.c (reload_cse_simplify_operands): Likewise.
18076 * reload.c (find_reloads): Likewise.
18077 * ira-costs.c (record_reg_classes): Likewise.
18078 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18079 all alternatives after a disabled one would be skipped.
18080 (ira_implicitly_set_insn_hard_regs): Likewise.
18081 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18082 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18083 with enabled_alternatives.
18084 * lra.c (free_insn_recog_data): Update accordingly.
18085 (lra_update_insn_recog_data): Likewise.
18086 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18087 * lra-constraints.c (process_alt_operands): Likewise. Handle
18088 only_alternative as part of the enabled mask.
18089 * target-globals.h (this_target_recog): Declare.
18090 (target_globals): Add a recog field.
18091 (restore_target_globals): Restore this_target_recog.
18092 * target-globals.c: Include recog.h.
18093 (default_target_globals): Initialize recog field.
18094 (save_target_globals): Likewise.
18095 * reginfo.c (reinit_regs): Call recog_init.
18096 * toplev.c (backend_init_target): Likewise.
18098 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18100 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18101 rather than any named insn's code.
18103 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18106 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18107 * config/arm/arm-cores.def (License): Same.
18109 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18111 * tree.h (decl_comdat_group): Declare.
18112 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18113 * tree.c (decl_comdat_group): Here.
18115 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18117 PR rtl-optimization/61222
18118 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18119 the shift, truncate the PLUS operand to the result mode.
18121 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18124 * config/i386/i386.c (ix86_rtx_costs)
18125 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18128 2014-05-26 Martin Jambor <mjambor@suse.cz>
18130 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18133 2014-05-26 Richard Biener <rguenther@suse.de>
18135 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18136 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18137 Provide specializations.
18138 (wi::int_traits <HOST_WIDE_INT>,
18139 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18141 2014-05-26 Alan Modra <amodra@gmail.com>
18144 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18145 params and return a bool. Remove dead code. Update comment.
18146 Assert we have a const_int source. Remove bogus code from
18147 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18148 handling of constants > 2G and reg_equal note, from..
18149 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18150 return value. Update comment. If we can, use a new pseudo
18151 for intermediate calculations.
18152 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18154 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18155 call to rs6000_emit_set_const in splitter.
18156 (movdi_internal64+2, +3): Likewise.
18158 2014-05-26 Richard Biener <rguenther@suse.de>
18160 * system.h: Define __STDC_FORMAT_MACROS before
18161 including inttypes.h.
18162 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18163 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18164 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18165 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18166 HOST_WIDEST_INT_C): Remove.
18167 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18168 if C99 inttypes.h is not available.
18169 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18170 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18171 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18172 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18173 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18174 (struct output_info): Likewise.
18175 (print_statistics): Adjust.
18176 (dump_bitmap_statistics): Likewise.
18177 * bt-load.c (migrate_btr_defs): Print with PRId64.
18178 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18179 (MAX_SAFE_MULTIPLIER): Adjust.
18180 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18181 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18182 dump_cgraph_node): Likewise.
18183 * final.c (dump_basic_block_info): Likewise.
18184 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18185 * gcov.c (format_gcov): Likewise.
18186 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18188 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18189 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18190 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18191 Use PRId64 for dumping.
18192 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18193 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18194 (add_allocno_hard_regs): Adjust.
18195 * loop-doloop.c (doloop_modify): Print using PRId64.
18196 * loop-iv.c (inverse): Compute in uint64_t.
18197 (determine_max_iter, iv_number_of_iterations): Likewise.
18198 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18199 Print using PRId64.
18200 * lto-streamer-out.c (write_symbol): Use uint64_t.
18201 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18202 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18203 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18204 * modulo-sched.c (const_iteration_count): Use int64_t.
18205 (sms_schedule): Dump using PRId64.
18206 * predict.c (dump_prediction): Likewise.
18207 * pretty-print.h (pp_widest_integer): Remove.
18208 * profile.c (get_working_sets, is_edge_inconsistent,
18209 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18210 * tree-pretty-print.c (pp_double_int): Remove case handling
18211 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18212 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18214 (pass_optimize_bswap::execute): Remove restriction on hosts.
18215 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18216 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18217 * tree.c (widest_int_cst_value): Remove.
18218 * tree.h (widest_int_cst_value): Likewise.
18219 * value-prof.c (dump_histogram_value): Print using PRId64.
18220 * gengtype.c (main): Also inject int64_t.
18221 * ggc-page.c (struct max_alignment): Use int64_t.
18222 * alloc-pool.c (struct allocation_object_def): Likewise.
18223 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18225 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18226 * doc/tm.texi: Regenerated.
18227 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18228 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18229 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18230 mmix_output_register_setting): Use [u]int64_t in prototypes.
18231 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18232 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18233 mmix_output_octa, mmix_output_shifted_value): Adjust.
18234 (mmix_intval): Adjust. Remove unreachable case.
18235 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18237 2014-05-26 Richard Biener <rguenther@suse.de>
18239 * configure.ac: Drop __int64 type check. Insist that we
18240 found uint64_t and int64_t.
18241 * hwint.h (HOST_BITS_PER___INT64): Remove.
18242 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18243 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18244 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18245 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18246 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18247 for dst_q_src_df_rms_cdt.
18248 * configure: Regenerate.
18249 * config.in: Likewise.
18251 2014-05-26 Michael Tautschnig <mt@debian.org>
18254 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18255 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18257 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18259 PR rtl-optimization/61278
18260 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18262 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18264 PR rtl-optimization/61220
18265 Part of PR rtl-optimization/61225
18266 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18267 insn; skip split_edge for a block with only one successor.
18269 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18271 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18274 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18276 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18277 (update_vtable_references): New function.
18278 (function_and_variable_visibility): Rewrite also vtable initializers.
18279 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18281 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18283 * ggc.h (ggc_grow): New function.
18284 * ggc-none.c (ggc_grow): New function.
18285 * ggc-page.c (ggc_grow): Likewise.
18287 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18289 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18290 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18291 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18292 varpool_externally_visible_p, can_replace_by_local_alias,
18293 update_visibility_by_resolution_info, function_and_variable_visibility,
18294 pass_data_ipa_function_and_variable_visibility,
18295 make_pass_ipa_function_and_variable_visibility,
18296 whole_program_function_and_variable_visibility,
18297 pass_data_ipa_whole_program_visibility,
18298 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18299 * cgraph.h (cgraph_local_node_p): Declare.
18300 * ipa-visibility.c: New file.
18301 * Makefile.in (OBJS): Add ipa-visiblity.o
18303 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18305 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18306 that var decl is available.
18308 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18310 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18311 symtab_node pointer.
18312 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18313 (find_decls_types_r): Do not walk COMDAT_GROUP.
18314 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18315 * varasm.c (make_decl_one_only): Use set_comdat_group;
18316 create node if needed.
18317 * ipa-inline-transform.c (save_inline_function_body): Update
18318 way we decl->symtab mapping.
18319 * symtab.c (symtab_hash, hash_node, eq_node
18320 symtab_insert_node_to_hashtable): Remove.
18321 (symtab_register_node): Update.
18322 (symtab_unregister_node): Update.
18323 (symtab_get_node): Reimplement as inline function.
18324 (symtab_add_to_same_comdat_group): Update.
18325 (symtab_dissolve_same_comdat_group_list): Update.
18326 (dump_symtab_base): Update.
18327 (verify_symtab_base): Update.
18328 (symtab_make_decl_local): Update.
18329 (fixup_same_cpp_alias_visibility): Update.
18330 (symtab_nonoverwritable_alias): Update.
18331 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18332 * ipa.c (update_visibility_by_resolution_info): UPdate.
18333 * bb-reorder.c: Include cgraph.h
18334 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18335 with comdat groups.
18336 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18337 * cgraph.c (cgraph_get_create_node): Update.
18338 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18340 (symtab_get_node): Make inline.
18341 (symtab_insert_node_to_hashtable): Remove.
18342 (symtab_can_be_discarded): Update.
18343 (decl_comdat_group): New function.
18344 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18346 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18348 (read_comdat_group): New function.
18349 (input_node, input_varpool_node): Use it.
18350 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18352 * mips.c (mips_start_unique_function): Likewise.
18353 (ix86_code_end): Likewise.
18354 (rs6000_code_end): Likweise.
18355 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18357 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18359 * gengtype-state.c (fatal_reading_state): Bring offline.
18360 * optabs.c (widening_optab_handler): Bring offline.
18361 * optabs.h (widening_optab_handler): Likewise.
18362 * final.c (get_attr_length_1): Likewise.
18364 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18366 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18368 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18370 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18371 (ppc440-compare): Include shift with dot.
18372 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18373 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18375 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18377 (e6500_sfx2): Include it.
18378 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18379 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18380 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18381 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18382 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18383 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18384 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18385 *lshiftrt_internal1le, *lshiftrt_internal1be,
18386 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18387 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18388 *rotldi3_internal10le, *rotldi3_internal10be,
18389 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18390 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18391 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18392 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18393 define_insns): Use type "shift" in the appropriate alternatives.
18395 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18397 * config/rs6000/rs6000.md (type): Add "logical". Delete
18399 (dot): Adjust comment.
18400 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18401 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18402 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18403 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18404 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18405 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18406 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18407 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18409 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18410 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18411 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18412 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18413 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18414 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18415 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18416 * config/rs6000/8540.md (ppc8540_su): Adjust.
18417 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18418 cell-cmp-microcoded): Adjust.
18419 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18420 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18421 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18422 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18423 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18424 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18425 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18426 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18427 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18429 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18430 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18431 Adjust. Adjust comment.
18432 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18433 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18435 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18437 * config/rs6000/rs6000.md (type): Add "add".
18438 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18439 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18440 define_insns): Use it.
18441 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18443 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18444 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18445 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18446 * config/rs6000/601.md (ppc601-integer): Adjust.
18447 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18448 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18449 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18450 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18451 * config/rs6000/8540.md (ppc8540_su): Adjust.
18452 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18453 cell-cmp-microcoded): Adjust.
18454 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18455 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18456 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18457 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18458 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18459 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18460 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18461 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18462 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18464 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18465 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18466 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18467 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18469 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18471 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18472 "delayed_compare", "var_delayed_compare".
18473 (var_shift): New attribute.
18474 (cell_micro): Adjust.
18475 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18476 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18477 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18478 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18479 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18480 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18481 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18482 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18483 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18484 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18485 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18486 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18487 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18488 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18489 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18490 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18491 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18492 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18493 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18494 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18495 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18496 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18497 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18498 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18499 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18501 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18502 * config/rs6000/440.md (ppc440-integer): Adjust.
18503 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18504 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18505 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18506 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18507 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18508 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18509 * config/rs6000/8540.md (ppc8540_su): Adjust.
18510 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18511 cell-cmp-microcoded): Adjust.
18512 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18513 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18514 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18515 e500mc64_delayed): Adjust.
18516 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18517 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18518 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18519 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18520 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18521 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18522 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18523 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18524 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18526 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18527 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18529 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18531 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18532 (bits): New mode_attr.
18533 (idiv_ldiv): Delete mode_attr.
18534 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18535 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18536 rs6000_adjust_priority, is_nonpipeline_insn,
18537 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18539 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18540 * config/rs6000/440.md (ppc440-idiv): Adjust.
18541 * config/rs6000/476.md (ppc476-idiv): Adjust.
18542 * config/rs6000/601.md (ppc601-idiv): Adjust.
18543 * config/rs6000/603.md (ppc603-idiv): Adjust.
18544 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18545 ppc620-ldiv): Adjust.
18546 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18547 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18548 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18549 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18550 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18551 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18552 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18553 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18554 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18555 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18556 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18557 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18558 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18559 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18560 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18561 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18562 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18563 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18565 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18567 * config/rs6000/rs6000.md (type): Delete "insert_word",
18568 "insert_dword". Add "insert".
18569 (size): Update comment.
18570 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18571 insn_must_be_first_in_group): Adjust.
18572 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18573 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18574 *insvsi_internal6, insvdi_internal): Adjust.
18576 * config/rs6000/40x.md (ppc403-integer): Adjust.
18577 * config/rs6000/440.md (ppc440-integer): Adjust.
18578 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18579 * config/rs6000/601.md (ppc601-integer): Adjust.
18580 * config/rs6000/603.md (ppc603-integer): Adjust.
18581 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18582 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18583 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18584 * config/rs6000/8540.md (ppc8540_su): Adjust.
18585 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18586 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18587 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18588 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18589 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18590 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18591 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18592 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18593 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18594 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18595 * config/rs6000/power7.md (power7-integer): Adjust.
18596 * config/rs6000/power8.md (power8-1cyc): Adjust.
18597 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18598 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18600 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18602 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18603 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18604 (size): New attribute.
18605 (dot): New attribute.
18606 (cell_micro): Adjust.
18607 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18608 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18609 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18610 umuldi3_highpart): Adjust.
18611 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18612 rs6000_adjust_priority, is_nonpipeline_insn,
18613 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18615 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18616 ppc405-imul3): Adjust.
18617 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18618 * config/rs6000/476.md (ppc476-imul): Adjust.
18619 * config/rs6000/601.md (ppc601-imul): Adjust.
18620 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18621 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18622 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18623 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18624 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18626 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18627 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18628 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18629 cell-imul): Adjust.
18630 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18631 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18632 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18633 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18634 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18635 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18636 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18637 power4-lmul, power4-imul, power4-imul3): Adjust.
18638 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18639 power5-lmul, power5-imul, power5-imul3): Adjust.
18640 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18641 power6-lmul, power6-imul, power6-imul3): Adjust.
18642 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18643 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18645 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18646 rs64a-lmul): Adjust.
18647 * config/rs6000/titan.md (titan_imul): Adjust.
18649 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18651 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18652 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18653 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18654 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18655 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18656 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18657 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18658 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18659 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18660 * config/rs6000/titan.md: Delete nonsensical comment.
18661 (titan_imul): Add type imul3.
18662 (titan_mulhw): Remove type imul3; add type halfmul.
18664 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18666 * config/rs6000/rs6000.md (type): Reorder, reformat.
18668 2014-05-23 Martin Jambor <mjambor@suse.cz>
18670 PR tree-optimization/53787
18671 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18672 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18673 analysis_done, update all uses.
18674 * ipa-prop.c: Include domwalk.h
18675 (param_analysis_info): Removed.
18676 (param_aa_status): New type.
18677 (ipa_bb_info): Likewise.
18678 (func_body_info): Likewise.
18679 (ipa_get_bb_info): New function.
18680 (aa_overwalked): Likewise.
18681 (find_dominating_aa_status): Likewise.
18682 (parm_bb_aa_status_for_bb): Likewise.
18683 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18684 (load_from_unmodified_param): Accept func_body_info as a parameter
18685 instead of parms_ainfo.
18686 (parm_ref_data_preserved_p): Changed to use new param AA info.
18687 (parm_ref_data_pass_through_p): Likewise.
18688 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18689 (compute_complex_assign_jump_func): Changed to use new param AA info.
18690 (compute_complex_ancestor_jump_func): Likewise.
18691 (ipa_compute_jump_functions_for_edge): Likewise.
18692 (ipa_compute_jump_functions): Removed.
18693 (ipa_compute_jump_functions_for_bb): New function.
18694 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18696 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18697 and info, moved variable declarations down.
18698 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18700 (ipa_analyze_stmt_uses): Likewise.
18701 (ipa_analyze_params_uses): Removed.
18702 (ipa_analyze_params_uses_in_bb): New function.
18703 (ipa_analyze_controlled_uses): Likewise.
18704 (free_ipa_bb_info): Likewise.
18705 (analysis_dom_walker): New class.
18706 (ipa_analyze_node): Handle node-specific forbidden analysis,
18707 initialize and free func_body_info, use dominator walker.
18708 (ipcp_modif_dom_walker): New class.
18709 (ipcp_transform_function): Create and free func_body_info, use
18710 ipcp_modif_dom_walker, moved a lot of functionality there.
18712 2014-05-23 Marek Polacek <polacek@redhat.com>
18713 Jakub Jelinek <jakub@redhat.com>
18715 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18716 * gcc.c (sanitize_spec_function): Likewise.
18717 * convert.c (convert_to_integer): Include "ubsan.h". Add
18718 floating-point to integer instrumentation.
18719 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18720 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18721 SANITIZE_NONDEFAULT.
18722 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18723 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18724 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18725 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18726 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18727 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18728 float/double/long double.
18729 (ubsan_instrument_float_cast): New function.
18730 * ubsan.h (ubsan_instrument_float_cast): Declare.
18732 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18734 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18736 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18737 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18738 Adjust for tailcalling through registers.
18739 * config/aarch64/aarch64.h (enum reg_class): New caller save
18741 (REG_CLASS_NAMES): Likewise.
18742 (REG_CLASS_CONTENTS): Likewise.
18743 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18744 Allow tailcalling without decls.
18746 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18748 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18749 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18751 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18752 gsi, and variables v_* to v*.
18754 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18756 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18758 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18760 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18761 * omp-low.c: Update accordingly.
18763 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18764 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18765 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18766 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18767 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18768 GF_OMP_TARGET_KIND_UPDATE.
18770 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18771 Explicitly enumerate the expected region types.
18773 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
18776 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
18777 documentation; the old documentation didn't clearly state the
18778 constraints on the contents of the pointed-to storage.
18780 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18782 Fix bootstrap error on ia64
18783 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18784 Return default value.
18786 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
18788 PR tree-optimization/54733
18789 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18791 (find_bswap_or_nop_load): New.
18792 (find_bswap_1): Renamed to ...
18793 (find_bswap_or_nop_1): This. Also add support for memory source.
18794 (find_bswap): Renamed to ...
18795 (find_bswap_or_nop): This. Also add support for memory source and
18796 detection of bitwise operations equivalent to load in target
18798 (execute_optimize_bswap): Likewise. Also move its leading comment back
18799 in place and split statement transformation into ...
18800 (bswap_replace): This.
18802 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18804 PR rtl-optimization/61215
18805 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18806 simplify_gen_subreg until final substitution.
18808 2014-05-23 Alan Modra <amodra@gmail.com>
18811 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18812 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18813 Use "Y" constraint rather than "m".
18815 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18817 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18819 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18820 New function declaration.
18821 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18822 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18823 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18824 (aarch64_init_builtins) : Initialize builtins
18825 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18826 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18827 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18828 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18829 and __builtins_aarch64_set_fpsr.
18830 (aarch64_atomic_assign_expand_fenv): New function.
18831 * config/aarch64/aarch64.md (set_fpcr): New pattern.
18832 (get_fpcr) : Likewise.
18833 (set_fpsr) : Likewise.
18834 (get_fpsr) : Likewise.
18835 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18836 and UNSPECV_SET_FPSR.
18837 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18838 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18839 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18841 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18843 PR rtl-optimization/60969
18844 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18845 constraints. Set up mem cost for NO_REGS case.
18847 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
18849 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18851 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
18853 * config/darwin.c: Include "lto-section-names.h".
18854 (LTO_SEGMENT_NAME): Don't define.
18855 * config/i386/winnt.c: Include "lto-section-names.h".
18856 * lto-streamer.c: Include "lto-section-names.h".
18857 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18858 * lto-wrapper.c: Include "lto-section-names.h".
18859 (LTO_SECTION_NAME_PREFIX): Don't define.
18860 * lto-section-names.h: New file.
18861 * cgraphunit.c: Include "lto-section-names.h".
18863 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
18865 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18867 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
18870 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18872 2014-05-22 Nick Clifton <nickc@redhat.com>
18874 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18876 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
18878 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18879 -> (T)A transformation to integer types.
18881 2014-05-22 Teresa Johnson <tejohnson@google.com>
18883 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18884 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18885 (gcov_rewrite): Use gcov_nonruntime_assert.
18886 (gcov_open): Ditto.
18887 (gcov_write_words): Ditto.
18888 (gcov_write_length): Ditto.
18889 (gcov_read_words): Use gcov_nonruntime_assert, and remove
18890 gcc_assert from IN_LIBGCOV code.
18891 (gcov_read_summary): Use gcov_error to flag profile corruption.
18892 (gcov_sync): Use gcov_nonruntime_assert.
18893 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18894 (gcov_histo_index): Use gcov_nonruntime_assert.
18895 (static void gcov_histogram_merge): Ditto.
18896 (compute_working_sets): Ditto.
18897 * gcov-io.h (gcov_nonruntime_assert): Define.
18898 (gcov_error): Define for !IN_LIBGCOV
18900 2014-05-22 Richard Biener <rguenther@suse.de>
18902 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18903 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18904 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18905 and deallocation site.
18906 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18907 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18908 passing through the incoming points-to set.
18909 (handle_lhs_call): Use flags argument instead of recomputing it.
18910 (find_func_aliases_for_call): Call handle_lhs_call with proper
18913 2014-05-22 Jakub Jelinek <jakub@redhat.com>
18915 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18916 all padding bits in REAL_VALUE_TYPE are cleared.
18918 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18920 Cleanup and improve multipass_dfa_lookahead_guard
18921 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18922 (core2i7_first_cycle_multipass_begin,)
18923 (core2i7_first_cycle_multipass_issue,)
18924 (core2i7_first_cycle_multipass_backtrack): Update signature.
18925 * config/ia64/ia64.c
18926 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18927 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18928 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18930 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18931 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
18933 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18935 * doc/tm.texi: Regenerate.
18937 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18938 * haifa-sched.c (ready_try): Make signed to allow negative values.
18939 (rebug_ready_list_1): Update.
18940 (choose_ready): Simplify.
18941 (sched_extend_ready_list): Update.
18943 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18945 Remove IA64 speculation tweaking flags
18946 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18947 speculation tuning flags.
18948 (msched-prefer-non-data-spec-insns,)
18949 (msched-prefer-non-control-spec-insns): Obsolete options.
18950 * haifa-sched.c (choose_ready): Remove handling of
18951 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18952 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18953 and PREFER_NON_DATA_SPEC.
18954 * sel-sched.c (process_spec_exprs): Remove handling of
18955 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18957 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18959 Improve scheduling debug output
18960 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18961 (advance_one_cycle): Update.
18962 (schedule_insn, queue_to_ready): Add debug printouts.
18963 (debug_ready_list_1): New static function.
18964 (debug_ready_list): Update.
18965 (max_issue): Add debug printouts.
18966 (dump_insn_stream): New static function.
18967 (schedule_block): Use it. Also better indent printouts.
18969 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18971 Fix sched_insn debug counter
18972 * haifa-sched.c (schedule_insn): Update.
18973 (struct haifa_saved_data): Add nonscheduled_insns_begin.
18974 (save_backtrack_point, restore_backtrack_point): Update.
18975 (first_nonscheduled_insn): New static function.
18976 (queue_to_ready, choose_ready): Use it.
18977 (schedule_block): Init nonscheduled_insns_begin.
18978 (sched_emit_insn): Update.
18981 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18983 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18985 (aarch64_secondary_reload) : LikeWise.
18986 (aarch64_class_max_nregs) : Remove CORE_REGS.
18987 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18988 (REG_CLASS_NAMES) : Likewise.
18989 (REG_CLASS_CONTENTS) : LikeWise.
18990 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18992 2014-05-21 Guozhi Wei <carrot@google.com>
18995 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18997 (vqdmulhq_n_s16): Likewise.
18999 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19001 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19003 2014-05-21 Marek Polacek <polacek@redhat.com>
19006 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19008 2014-05-21 Martin Jambor <mjambor@suse.cz>
19010 * doc/invoke.texi (Optimize Options): Document parameters
19011 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19012 ipa-cp-array-index-hint-bonus.
19014 2014-05-21 Mark Wielaard <mjw@redhat.com>
19017 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19018 version >= 3 or not strict DWARF.
19019 * langhooks.h (struct lang_hooks_for_types): Add
19020 enum_underlying_base_type.
19021 * langhooks.c (lhd_enum_underlying_base_type): New function.
19022 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19023 enum_underlying_base_type.
19024 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19025 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19026 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19028 2014-05-21 Richard Biener <rguenther@suse.de>
19030 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19032 2014-05-21 John Marino <gnugcc@marino.st>
19034 * config.gcc (*-*-dragonfly*): New target.
19035 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19036 * configure: Regenerate.
19037 * config/dragonfly-stdint.h: New.
19038 * config/dragonfly.h: New.
19039 * config/dragonfly.opt: New.
19040 * config/i386/dragonfly.h: New.
19041 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19043 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19045 * tree.def (VOID_CST): New.
19046 * tree-core.h (TI_VOID): New.
19047 * tree.h (void_node): New.
19048 * tree.c (tree_node_structure_for_code, tree_code_size)
19049 (iterative_hash_expr): Handle VOID_CST.
19050 (build_common_tree_nodes): Initialize void_node.
19052 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19054 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19056 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19058 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19061 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19062 flag_reorder_blocks_and_partition.
19063 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19065 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19068 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19070 (*addc_r_t): Add new insn_and_split.
19072 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19074 PR middle-end/61252
19075 * omp-low.c (handle_simd_reference): New function.
19076 (lower_rec_input_clauses): Use it. Defer adding reference
19077 initialization even for reduction without placeholder if in simd,
19078 handle it properly later on.
19080 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19082 PR tree-optimization/60899
19083 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19084 assume all static symbols will have definition wile parsing and
19085 check the do have definition later in compilation; check that
19086 variable referring symbol will be output before concluding that
19087 reference is safe; be conservative for referring local statics;
19088 be more precise about when comdat is output in other partition.
19090 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19093 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19095 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19096 (ipa_inline): Loop inline_to_all_callers until no more aliases
19099 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19101 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19102 set writeonly flag only for vars actually written to.
19104 2014-05-20 Dehao Chen <dehao@google.com>
19106 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19107 and callee count to get clone count.
19108 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19109 count in copy_body.
19111 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19113 PR rtl-optimization/61243
19114 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19116 2014-05-20 Xinliang David Li <davidxl@google.com>
19118 * cgraphunit.c (walk_polymorphic_call_targets): Add
19119 dbgcnt and fopt-info support.
19120 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19121 * ipa-devirt.c (ipa_devirt): Ditto.
19122 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19123 * ipa.c (walk_polymorphic_call_targets): Ditto.
19124 * gimple-fold.c (fold_gimple_assign): Ditto.
19125 (gimple_fold_call): Ditto.
19126 * dbgcnt.def: New counter.
19128 2014-05-20 DJ Delorie <dj@redhat.com>
19130 * config/msp430/msp430.md (split): Don't allow subregs when
19131 splitting SImode adds.
19132 (andneghi): Fix subtraction logic.
19133 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19135 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19137 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19139 * except.c (switch_to_exception_section, resolve_unique_section,
19140 get_named_text_section, default_function_rodata_section,
19141 align_variable, get_block_for_decl, default_section_type_flags):
19142 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19143 * symtab.c (symtab_add_to_same_comdat_group,
19144 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19145 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19147 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19148 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19149 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19150 (c6x_function_in_section_p): Likewise.
19151 * config/darwin.c (machopic_select_section): Likewise.
19152 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19153 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19154 * config/mep/mep.c (mep_select_section): LIkewise.
19155 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19157 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19159 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19160 EH region of calls to pure functions that can throw an exception.
19161 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19162 (copy_reference_ops_from_call): Also copy the EH region of the call if
19163 it can throw an exception.
19165 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19167 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19168 nested VEC_SELECTs that are inverses of each other.
19170 2014-05-20 Richard Biener <rguenther@suse.de>
19172 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19173 (extract_and_process_scc_for_name): not here.
19174 (cond_dom_walker::before_dom_children): Only process
19175 stmts that end the BB in interesting ways.
19176 (run_scc_vn): Mark param uses as visited.
19178 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19180 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19183 2014-05-20 Nick Clifton <nickc@redhat.com>
19185 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19186 (msp430_gimplify_va_arg_expr): New function.
19187 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19189 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19190 operand 0 in order to prevent confusion about the number of
19191 registers involved.
19193 2014-05-20 Richard Biener <rguenther@suse.de>
19195 PR tree-optimization/61221
19196 * tree-ssa-pre.c (el_to_update): Remove.
19197 (eliminate_dom_walker::before_dom_children): Handle released
19198 VDEFs by value-numbering them to the associated VUSE. Update
19199 stmt immediately for substituted call address.
19200 (eliminate): Remove delayed stmt updating code.
19201 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19202 possibly late re-numbered vuses.
19203 (vn_reference_lookup_2): Adjust.
19204 (vn_reference_lookup_pieces): Likewise.
19205 (vn_reference_lookup): Likewise.
19207 2014-05-20 Richard Biener <rguenther@suse.de>
19209 * config.gcc: Remove need_64bit_hwint.
19210 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19211 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19213 * config.in: Regenerate.
19214 * configure: Likewise.
19216 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19218 * doc/extend.texi: Create Label Attributes section,
19219 move all label attributes into it and reference it.
19221 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19223 * arm.c (thumb1_reorg): When scanning backwards skip anything
19224 that's not a proper insn.
19226 2014-05-19 Richard Biener <rguenther@suse.de>
19228 PR tree-optimization/61221
19229 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19230 Do nothing for unreachable blocks.
19231 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19232 Improve unreachability detection.
19234 2014-05-19 Richard Biener <rguenther@suse.de>
19236 PR tree-optimization/61209
19237 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19239 2014-05-19 Nick Clifton <nickc@redhat.com>
19241 * except.c (init_eh): Fix computation of builtin setjmp buffer
19242 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19244 2014-05-19 Richard Biener <rguenther@suse.de>
19246 PR tree-optimization/61184
19247 * tree-vrp.c (is_negative_overflow_infinity): Use
19248 TREE_OVERFLOW_P and do that check first.
19249 (is_positive_overflow_infinity): Likewise.
19250 (is_overflow_infinity): Likewise.
19251 (vrp_operand_equal_p): Properly treat operands with
19252 differing overflow as not equal.
19254 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19256 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19257 shift simplification where it was intended.
19259 2014-05-19 Christian Bruel <christian.bruel@st.com>
19262 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19264 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19267 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19270 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19272 * reg-notes.def (CROSSING_JUMP): Likewise.
19273 * rtl.h (rtx_def): Update comment for jump flag.
19274 (CROSSING_JUMP_P): Define.
19275 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19276 of a REG_CROSSING_JUMP note.
19277 * cfghooks.c (tidy_fallthru_edges): Likewise.
19278 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19279 * emit-rtl.c (try_split): Likewise.
19280 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19281 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19282 * jump.c (redirect_jump_2): Likewise.
19283 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19284 (relax_delay_slots): Likewise.
19285 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19286 (bbit_di): Likewise.
19287 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19288 * config/sh/sh.md (jump_compact): Likewise.
19289 * bb-reorder.c (rotate_loop): Likewise.
19290 (pass_duplicate_computed_gotos::execute): Likewise.
19291 (add_reg_crossing_jump_notes): Rename to...
19292 (update_crossing_jump_flags): ...this.
19293 (pass_partition_blocks::execute): Update accordingly.
19295 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19297 * tree.h: Remove extraneous template <>.
19299 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19301 * ipa.c (symtab_remove_unreachable_nodes): Remove
19302 symbol from comdat group if its body was eliminated.
19303 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19304 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19305 (symtab_unregister_node): ... this one.
19306 (verify_symtab_base): More strict checking of comdats.
19307 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19309 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19311 * tree-pass.h (make_pass_ipa_comdats): New pass.
19312 * timevar.def (TV_IPA_COMDATS): New timevar.
19313 * passes.def (pass_ipa_comdats): Add.
19314 * Makefile.in (OBJS): Add ipa-comdats.o
19315 * ipa-comdats.c: New file.
19317 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19319 * ipa.c (update_visibility_by_resolution_info): New function.
19320 (function_and_variable_visibility): Use it.
19322 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19324 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19326 (FOR_EACH_DEFINED_SYMBOL): New macro.
19327 (varpool_first_static_initializer, varpool_next_static_initializer,
19328 varpool_first_defined_variable, varpool_next_defined_variable):
19330 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19332 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19334 * ggc-page.c (ggc_handle_finalizers): Add comment.
19336 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19338 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19339 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19340 (ggc_internal_cleared_alloc): Likewise.
19341 * ggc-page.c (finalizer): New class.
19342 (vec_finalizer): Likewise.
19343 (globals::finalizers): New member.
19344 (globals::vec_finalizers): Likewise.
19345 (ggc_internal_alloc): Record the finalizer if any for the block being
19347 (ggc_handle_finalizers): New function.
19348 (ggc_collect): Call ggc_handle_finalizers.
19349 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19351 (ggc_internal_cleared_alloc): Likewise.
19352 (finalize): New function.
19353 (need_finalization_p): Likewise.
19354 (ggc_alloc): Install the type's destructor as the finalizer if it
19355 might do something.
19356 (ggc_cleared_alloc): Likewise.
19357 (ggc_vec_alloc): Likewise.
19358 (ggc_cleared_vec_alloc): Likewise.
19360 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19362 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19364 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19366 * alias.c (record_alias_subset): Adjust.
19367 * bitmap.c (bitmap_element_allocate): Likewise.
19368 (bitmap_gc_alloc_stat): Likewise.
19369 * cfg.c (init_flow): Likewise.
19370 (alloc_block): Likewise.
19371 (unchecked_make_edge): Likewise.
19372 * cfgloop.c (alloc_loop): Likewise.
19373 (flow_loops_find): Likewise.
19374 (rescan_loop_exit): Likewise.
19375 * cfgrtl.c (init_rtl_bb_info): Likewise.
19376 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19377 (cgraph_allocate_node): Likewise.
19378 (cgraph_create_edge_1): Likewise.
19379 (cgraph_allocate_init_indirect_info): Likewise.
19380 * cgraphclones.c (cgraph_clone_edge): Likewise.
19381 * cgraphunit.c (add_asm_node): Likewise.
19382 (init_lowered_empty_function): Likewise.
19383 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19384 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19385 (alpha_use_linkage): Likewise.
19386 * config/arc/arc.c (arc_init_machine_status): Likewise.
19387 * config/arm/arm.c (arm_init_machine_status): Likewise.
19388 * config/avr/avr.c (avr_init_machine_status): Likewise.
19389 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19390 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19391 * config/cris/cris.c (cris_init_machine_status): Likewise.
19392 * config/darwin.c (machopic_indirection_name): Likewise.
19393 (darwin_build_constant_cfstring): Likewise.
19394 (darwin_enter_string_into_cfstring_table): Likewise.
19395 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19396 * config/frv/frv.c (frv_init_machine_status): Likewise.
19397 * config/i386/i386.c (get_dllimport_decl): Likewise.
19398 (ix86_init_machine_status): Likewise.
19399 (assign_386_stack_local): Likewise.
19400 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19401 (i386_pe_maybe_record_exported_symbol): Likewise.
19402 (i386_pe_record_stub): Likewise.
19403 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19404 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19405 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19406 (m32c_note_pragma_address): Likewise.
19407 * config/mep/mep.c (mep_init_machine_status): Likewise.
19408 (mep_note_pragma_flag): Likewise.
19409 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19410 (mips16_local_alias): Likewise.
19411 (mips_init_machine_status): Likewise.
19412 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19413 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19414 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19415 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19416 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19417 * config/pa/pa.c (pa_init_machine_status): Likewise.
19418 (pa_get_deferred_plabel): Likewise.
19419 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19420 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19421 (rs6000_init_machine_status): Likewise.
19422 (output_toc): Likewise.
19423 * config/s390/s390.c (s390_init_machine_status): Likewise.
19424 * config/score/score.c (score_output_external): Likewise.
19425 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19426 * config/spu/spu.c (spu_init_machine_status): Likewise.
19427 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19428 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19429 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19430 * coverage.c (coverage_end_function): Likewise.
19431 * dbxout.c (dbxout_init): Likewise.
19432 * doc/gty.texi: Don't mention variable_size attribute.
19433 * dwarf2cfi.c (new_cfi): Adjust.
19434 (new_cfi_row): Likewise.
19435 (copy_cfi_row): Likewise.
19436 (create_cie_data): Likewise.
19437 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19438 (new_loc_descr): Likewise.
19439 (find_AT_string_in_table): Likewise.
19440 (add_addr_table_entry): Likewise.
19441 (new_die): Likewise.
19442 (add_var_loc_to_decl): Likewise.
19443 (clone_die): Likewise.
19444 (clone_as_declaration): Likewise.
19445 (break_out_comdat_types): Likewise.
19446 (new_loc_list): Likewise.
19447 (add_loc_descr_to_each): Likewise.
19448 (add_location_or_const_value_attribute): Likewise.
19449 (add_linkage_name): Likewise.
19450 (lookup_filename): Likewise.
19451 (dwarf2out_var_location): Likewise.
19452 (new_line_info_table): Likewise.
19453 (dwarf2out_init): Likewise.
19454 (mem_loc_descriptor): Likewise.
19455 (loc_descriptor): Likewise.
19456 (add_const_value_attribute): Likewise.
19457 (tree_add_const_value_attribute): Likewise.
19458 (comp_dir_string): Likewise.
19459 (dwarf2out_vms_debug_main_pointer): Likewise.
19460 (string_cst_pool_decl): Likewise.
19461 * emit-rtl.c (set_mem_attrs): Likewise.
19462 (get_reg_attrs): Likewise.
19463 (start_sequence): Likewise.
19464 (init_emit): Likewise.
19465 (init_emit_regs): Likewise.
19466 * except.c (init_eh_for_function): Likewise.
19467 (gen_eh_region): Likewise.
19468 (gen_eh_region_catch): Likewise.
19469 (gen_eh_landing_pad): Likewise.
19470 (add_call_site): Likewise.
19471 * function.c (add_frame_space): Likewise.
19472 (insert_temp_slot_address): Likewise.
19473 (assign_stack_temp_for_type): Likewise.
19474 (get_hard_reg_initial_val): Likewise.
19475 (allocate_struct_function): Likewise.
19476 (prepare_function_start): Likewise.
19477 (types_used_by_var_decl_insert): Likewise.
19478 * gengtype.c (variable_size_p): Remove function.
19479 (enum alloc_quantity): Remove enum.
19480 (write_typed_alloc_def): Remove function.
19481 (write_typed_struct_alloc_def): Likewise.
19482 (write_typed_typedef_alloc_def): Likewise.
19483 (write_typed_alloc_defns): Likewise.
19485 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19486 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19487 * ggc.h (ggc_alloc): new function.
19488 (ggc_cleared_alloc): Likewise.
19489 (ggc_vec_alloc): Template on type of vector element, and remove
19490 element size argument.
19491 (ggc_cleared_vec_alloc): Likewise.
19492 * gimple.c (gimple_build_omp_for): Adjust.
19493 (gimple_copy): Likewise.
19494 * ipa-cp.c (get_replacement_map): Likewise.
19495 (find_aggregate_values_for_callers_subset): Likewise.
19496 (known_aggs_to_agg_replacement_list): Likewise.
19497 * ipa-devirt.c (get_odr_type): Likewise.
19498 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19499 (read_agg_replacement_chain): Likewise.
19500 * loop-iv.c (get_simple_loop_desc): Likewise.
19501 * lto-cgraph.c (input_node_opt_summary): Likewise.
19502 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19503 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19504 (input_eh_region): Likewise.
19505 (input_eh_lp): Likewise.
19506 (input_cfg): Likewise.
19507 * optabs.c (set_optab_libfunc): Likewise.
19508 (init_tree_optimization_optabs): Likewise.
19509 (set_conv_libfunc): Likewise.
19510 * passes.c (do_per_function_toporder): Likewise.
19511 * rtl.h: Don't use variable_size gty attribute.
19512 * sese.c (if_region_set_false_region): Adjust.
19513 * stringpool.c (gt_pch_save_stringpool): Likewise.
19514 * target-globals.c (save_target_globals): Likewise.
19515 * toplev.c (general_init): Likewise.
19516 * trans-mem.c (record_tm_replacement): Likewise.
19517 (split_bb_make_tm_edge): Likewise.
19518 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19519 * tree-data-ref.h (lambda_vector_new): Likewise.
19520 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19521 * tree-iterator.c (tsi_link_before): Likewise.
19522 (tsi_link_after): Likewise.
19523 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19524 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19525 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19526 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19527 * tree-ssa.c (init_tree_ssa): Adjust.
19528 * tree-ssanames.c (set_range_info): Likewise.
19529 (get_ptr_info): Likewise.
19530 (duplicate_ssa_name_ptr_info): Likewise.
19531 (duplicate_ssa_name_range_info): Likewise.
19532 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19533 (unpack_ts_fixed_cst_value_fields): Likewise.
19534 * tree.c (build_fixed): Likewise.
19535 (build_real): Likewise.
19536 (build_string): Likewise.
19537 (decl_priority_info): Likewise.
19538 (decl_debug_expr_insert): Likewise.
19539 (decl_value_expr_insert): Likewise.
19540 (decl_debug_args_insert): Likewise.
19541 (type_hash_add): Likewise.
19542 (build_omp_clause): Likewise.
19543 * ubsan.c (decl_for_type_insert): Likewise.
19544 * varasm.c (get_unnamed_section): Likewise.
19545 (get_noswitch_section): Likewise.
19546 (get_section): Likewise.
19547 (get_block_for_section): Likewise.
19548 (create_block_symbol): Likewise.
19549 (build_constant_desc): Likewise.
19550 (create_constant_pool): Likewise.
19551 (force_const_mem): Likewise.
19552 (record_tm_clone_pair): Likewise.
19553 * varpool.c (varpool_create_empty_node): Likewise.
19555 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19557 * dwarf2out.c (tree_add_const_value_attribute): Call
19558 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19559 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19560 instead of ggc_internal_<x>alloc_stat.
19561 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19562 (ggc_realloc): Likewise.
19563 * ggc-none.c (ggc_internal_alloc): Likewise.
19564 (ggc_internal_cleared_alloc): Likewise.
19565 * ggc-page.c: Likewise.
19566 * ggc.h (ggc_internal_alloc_stat): Likewise.
19567 (ggc_internal_alloc): Remove macro.
19568 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19569 (ggc_internal_cleared_alloc): Remove macro.
19570 (GGC_RESIZEVEC): Adjust.
19571 (ggc_resizevar): Remove macro.
19572 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19573 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19574 (ggc_internal_vec_cleared_alloc): Remove macro.
19575 (ggc_alloc_atomic_stat): Drop _stat suffix.
19576 (ggc_alloc_atomic): Remove macro.
19577 (ggc_alloc_cleared_atomic): Remove macro.
19578 (ggc_alloc_string_stat): Drop _stat suffix.
19579 (ggc_alloc_string): Remove macro.
19580 (ggc_alloc_rtx_def_stat): Adjust.
19581 (ggc_alloc_tree_node_stat): Likewise.
19582 (ggc_alloc_cleared_tree_node_stat): Likewise.
19583 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19584 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19585 * gimple.c (gimple_build_omp_for): Likewise.
19586 (gimple_copy): Likewise.
19587 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19588 * toplev.c (realloc_for_line_map): Adjust.
19589 * tree-data-ref.h (lambda_vector_new): Likewise.
19590 * tree-phinodes.c (allocate_phi_node): Likewise.
19591 * tree.c (grow_tree_vec_stat): Likewise.
19592 * vec.h (va_gc::reserve): Adjust.
19594 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19596 * config/microblaze/microblaze.c (break_handler): New Declaration.
19597 (microblaze_break_function_p,microblaze_is_break_handler): New.
19598 (compute_frame_size): Use microblaze_break_function_p.
19599 Add the test of break_handler.
19600 (microblaze_function_prologue) : Add the test of variable
19601 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19602 (microblaze_function_epilogue) : Add the test of break_handler.
19603 (microblaze_globalize_label) : Add the test of break_handler.
19604 Check the name by BREAK_HANDLER_NAME.
19606 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19608 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19609 microblaze_is_break_handler test.
19610 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19611 Use SYMBOL_REF_DECL.
19613 * config/microblaze/microblaze-protos.h
19614 (microblaze_break_function_p,microblaze_is_break_handler):
19617 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19618 new MicroBlaze break_handler functions.
19620 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19622 * doc/extend.texi (Size of an asm): Move node text according
19623 to its @menu entry position.
19625 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19627 PR tree-optimization/61140
19628 PR tree-optimization/61150
19629 PR tree-optimization/61197
19630 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19632 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19634 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19636 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19638 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19639 __SIZEOF_INT128__ is defined.
19641 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19643 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19644 (rs6000_delegitimize_address): Use it.
19646 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19648 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19649 inplace argument. Store the new address in the original MEM when true.
19650 * emit-rtl.c (change_address_1): Likewise.
19651 (adjust_address_1, adjust_automodify_address_1, offset_address):
19652 Update accordingly.
19653 * rtl.h (plus_constant): Add an inplace argument.
19654 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19655 when true. Avoid generating (plus X (const_int 0)).
19656 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19657 in-place. Pass true to plus_constant.
19658 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19660 2014-05-16 Dehao Chen <dehao@google.com>
19662 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19664 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19667 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19669 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19671 2014-05-16 Dehao Chen <dehao@google.com>
19673 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19674 optimize_function_for_size_p.
19675 * regs.h (REG_FREQ_FROM_BB): Likewise.
19677 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19680 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19681 negt_reg_operand cases.
19682 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19684 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19686 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19688 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19691 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19694 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19696 * tree-cfg.c (dump_function_to_file): Dump the return type of
19697 functions, in a line to itself before the function body, mimicking
19698 the layout of a C function.
19700 2014-05-16 Dehao Chen <dehao@google.com>
19702 * cfghooks.c (make_forwarder_block): Use direct computation to
19703 get fall-through edge's count and frequency.
19705 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19707 * config/arc/arc.c (arc_init): Fix typo in error message.
19708 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19709 (split_stack_prologue_scratch_regno): Likewise.
19710 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19711 word from error message.
19713 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19715 * ira-costs.c: Fix typo in comment.
19717 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19719 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19721 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19723 * varpool.c (dump_varpool_node): Dump write-only flag.
19724 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19726 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19727 write-only variables.
19728 * ipa.c (process_references): New function.
19729 (set_readonly_bit): New function.
19730 (set_writeonly_bit): New function.
19731 (clear_addressable_bit): New function.
19732 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19733 fix handling of aliases.
19734 * cgraph.h (struct varpool_node): Add writeonly flag.
19736 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19738 PR rtl-optimization/60969
19739 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19740 Calculate costs for this case.
19742 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19744 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19745 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19747 2014-05-16 Richard Biener <rguenther@suse.de>
19749 PR tree-optimization/61194
19750 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19751 bool patterns ending in a COND_EXPR.
19753 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19755 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19757 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19759 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19760 where we were unable to cost an RTX.
19762 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19764 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19767 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19768 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19770 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19772 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19773 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19775 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19776 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19778 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19779 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19781 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19784 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19785 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19787 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19790 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19791 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19793 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19794 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19796 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19797 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19799 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19800 rotates and shifts.
19802 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19803 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19805 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19806 ZERO_EXTEND and SIGN_EXTEND better.
19808 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19809 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19811 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19812 logical operations.
19814 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19815 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19817 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19818 costs when costing loads and stores to memory.
19820 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19821 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
19823 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19826 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19828 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19830 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19831 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19833 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19835 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19837 (aarch64_rtx_mult_cost): New.
19838 (aarch64_rtx_costs): Use it, refactor as appropriate.
19840 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19841 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19843 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19844 emit instructions, return number of instructions which would
19846 (aarch64_add_constant): Update call to aarch64_build_constant.
19847 (aarch64_output_mi_thunk): Likewise.
19848 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19851 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19853 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19854 (TARGET_RTX_COSTS): Call it.
19856 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19858 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19859 (cortexa57_vector_cost): Likewise.
19860 (cortexa57_tunings): Use them.
19862 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19864 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19865 (cpu_addrcost_table): Use it.
19866 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19867 (aarch64_address_cost): Rewrite using aarch64_classify_address,
19870 2014-05-16 Richard Biener <rguenther@suse.de>
19872 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19873 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19874 (visit_phi): Ignore edges marked as not executable.
19875 (class cond_dom_walker): New.
19876 (cond_dom_walker::before_dom_children): Value-number
19877 control statements and mark successor edges as not
19878 executable if possible.
19879 (run_scc_vn): First walk all control statements in
19880 dominator order, marking edges as not executable.
19881 * tree-inline.c (copy_edges_for_bb): Be not confused
19882 about random edge flags.
19884 2014-05-16 Richard Biener <rguenther@suse.de>
19886 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19888 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
19891 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19892 (__TM_simple_begin): Use it.
19893 (__TM_begin): Likewise.
19895 2014-05-15 Martin Jambor <mjambor@suse.cz>
19898 * ipa-prop.c (update_indirect_edges_after_inlining): Check
19899 type_preserved flag when the indirect edge is polymorphic.
19901 2014-05-15 Martin Jambor <mjambor@suse.cz>
19903 PR tree-optimization/61090
19904 * tree-sra.c (sra_modify_expr): Pass the current gsi to
19905 build_ref_for_model.
19907 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19909 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19910 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19912 2014-05-15 Jakub Jelinek <jakub@redhat.com>
19914 PR tree-optimization/61158
19915 * fold-const.c (fold_binary_loc): If X is zero-extended and
19916 shiftc >= prec, make sure zerobits is all ones instead of
19917 invoking undefined behavior.
19919 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19921 * regcprop.h: New file.
19922 * regcprop.c (skip_debug_insn_p): New decl.
19923 (replace_oldest_value_reg): Check skip_debug_insn_p.
19924 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19925 * shrink-wrap.c: Include regcprop.h.
19926 (prepare_shrink_wrap): Call
19927 copyprop_hardreg_forward_bb_without_debug_insn.
19929 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19931 * shrink-wrap.h: Update comment.
19932 * shrink-wrap.c: Update comment.
19933 (next_block_for_reg): Rename to live_edge_for_reg.
19934 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19935 (move_insn_for_shrink_wrap): Split live_edge.
19936 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19938 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19940 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19942 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19943 * config/sparc/sparc.md (fptype_ut699): New attribute.
19944 (in_branch_delay): Return false if -mfix-ut699 is specified and
19945 fptype_ut699 is set to single.
19946 (truncdfsf2): Add fptype_ut699 attribute.
19947 (fix_truncdfsi2): Likewise.
19948 (floatsisf2): Change fptype attribute.
19949 (fix_truncsfsi2): Likewise.
19950 (negtf2_notv9): Delete.
19951 (negtf2_v9): Likewise.
19952 (negtf2_hq): New instruction.
19953 (negtf2): New instruction and splitter.
19954 (negdf2_notv9): Rewrite.
19955 (abstf2_notv9): Delete.
19956 (abstf2_hq_v9): Likewise.
19957 (abstf2_v9): Likewise.
19958 (abstf2_hq): New instruction.
19959 (abstf2): New instruction and splitter.
19960 (absdf2_notv9): Rewrite.
19962 2014-05-14 Cary Coutant <ccoutant@google.com>
19965 * opts.c (common_handle_option): Don't special-case "-g".
19966 (set_debug_level): Default to at least level 2 with "-g".
19968 2014-05-14 DJ Delorie <dj@redhat.com>
19970 * config/msp430/msp430.c (msp430_builtin): Add
19971 MSP430_BUILTIN_DELAY_CYCLES.
19972 (msp430_init_builtins): Register void __delay_cycles(long long).
19973 (msp430_builtin_decl): Add it.
19974 (cg_magic_constant): New.
19975 (msp430_expand_delay_cycles): New.
19976 (msp430_expand_builtin): Call it.
19977 (msp430_print_operand_raw): Change integer printing from "int" to
19979 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19980 (delay_cycles_start): New.
19981 (delay_cycles_end): New.
19982 (delay_cycles_32): New.
19983 (delay_cycles_32x): New.
19984 (delay_cycles_16): New.
19985 (delay_cycles_16x): New.
19986 (delay_cycles_2): New.
19987 (delay_cycles_1): New.
19988 * doc/extend.texi: Document __delay_cycles().
19990 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
19992 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19993 length attribute computation.
19995 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
19998 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20000 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20003 * config/sparc/sparc.md: Fix types of low and high in DI constant
20004 splitter. Use gen_int_mode in some other splitters.
20006 2014-05-14 Martin Jambor <mjambor@suse.cz>
20009 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20011 2014-05-14 James Norris <jnorris@codesourcery.com>
20013 * omp-low.c (expand_parallel_call): Remove shadow variable.
20014 (expand_omp_taskreg): Likewise.
20016 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20018 * common/config/i386/i386-common.c
20019 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20020 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20021 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20022 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20023 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20024 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20025 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20026 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20027 xsavecintrin.h, xsavesintrin.h.
20028 (x86_64-*-*): Ditto.
20029 * config/i386/clflushoptintrin.h: New.
20030 * config/i386/xsavecintrin.h: Ditto.
20031 * config/i386/xsavesintrin.h: Ditto.
20032 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20033 (bit_XSAVES): Ditto.
20034 (bit_XSAVES): Ditto.
20035 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20036 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20038 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20039 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20040 OPTION_MASK_ISA_XSAVES.
20041 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20042 -mxsavec, -mxsaves.
20043 (PTA_CLFLUSHOPT) Define.
20044 (PTA_XSAVEC): Ditto.
20045 (PTA_XSAVES): Ditto.
20046 (ix86_option_override_internal): Handle new options.
20047 (ix86_valid_target_attribute_inner_p): Ditto.
20048 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20049 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20050 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20051 (bdesc_special_args): Add __builtin_ia32_xsaves,
20052 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20053 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20054 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20055 (ix86_expand_builtin): Handle new builtins.
20056 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20057 (TARGET_CLFLUSHOPT_P): Ditto.
20058 (TARGET_XSAVEC): Ditto.
20059 (TARGET_XSAVEC_P): Ditto.
20060 (TARGET_XSAVES): Ditto.
20061 (TARGET_XSAVES_P): Ditto.
20062 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20063 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20064 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20066 (ANY_XRSTOR64): Ditto.
20068 (xrstor): Change into <xrstor>.
20069 (xrstor_rex64): Change into <xrstor>_rex64.
20070 (xrstor64): Change into <xrstor>64
20072 * config/i386/i386.opt (mclflushopt): New.
20075 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20077 * doc/invoke.texi: Document new options.
20079 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20081 PR rtl-optimization/60866
20082 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20083 Default it to -1. Pass it down to init_simplejump_data.
20084 (init_simplejump_data): New parameter old_seqno. Pass it down
20085 to get_seqno_for_a_jump.
20086 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20087 initializing new jump seqno as a last resort. Add comment.
20088 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20089 jump and pass it down to sel_init_new_insn.
20090 (sel_redirect_edge_and_branch_force): Likewise.
20092 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20094 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20095 shifted values to avoid build warning.
20097 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20099 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20100 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20101 (cfg_layout_merge_blocks): Likewise.
20102 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20104 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20106 PR rtl-optimization/60901
20107 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20108 bb predecessor belongs to the same scheduling region. Adjust comment.
20110 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20112 * doc/sourcebuild.texi: (dfp_hw): Document.
20113 (p8vector_hw): Likewise.
20114 (powerpc_eabi_ok): Likewise.
20115 (powerpc_elfv2): Likewise.
20116 (powerpc_htm_ok): Likewise.
20117 (ppc_recip_hw): Likewise.
20118 (vsx_hw): Likewise.
20120 2014-05-13 Cary Coutant <ccoutant@google.com>
20122 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20124 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20126 * gengtype-parse.c (require3): Eliminate in favor of...
20128 (require_template_declaration): Update to support optional single *
20131 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20132 (create_user_defined_type): Handle a single level of explicit
20133 pointerness within template arguments.
20134 (struct write_types_data): Add field "kind".
20135 (filter_type_name): Handle "*" character.
20136 (write_user_func_for_structure_ptr): Require a write_types_data
20137 rather than just a prefix string, so that we can look up the kind
20138 of the wtd and use it as an index into wrote_user_func_for_ptr,
20139 ensuring that such functions are written at most once. Support
20140 subclasses by invoking the marking function of the ultimate base class.
20141 (write_user_func_for_structure_body): Require a write_types_data
20142 rather than just a prefix string, so that we can pass this to
20143 write_user_func_for_structure_ptr.
20144 (write_func_for_structure): Likewise.
20145 (ggc_wtd): Add initializer of new "kind" field.
20146 (pch_wtd): Likewise.
20148 * gengtype.h (enum write_types_kinds): New.
20149 (struct type): Add field wrote_user_func_for_ptr to the "s"
20152 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20154 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20155 instead of const_binop.
20156 (fold_binary_loc): Likewise.
20158 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20160 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20161 calculation to match get_ref_base_and_extent.
20163 2014-05-13 Catherine Moore <clm@codesourcery.com>
20164 Sandra Loosemore <sandra@codesourcery.com>
20166 * configure.ac: Fix assembly for explicit JALR relocation check.
20167 * configure: Regenerate.
20169 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20171 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20172 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20173 Remove associated type declarations and initialisations.
20174 (arm_expand_neon_builtin): Likewise.
20175 (neon_emit_pair_result_insn): Delete.
20176 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20177 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20178 (neon_vzip<mode>): Likewise.
20179 (neon_vuzp<mode>): Likewise.
20181 2014-05-13 Richard Biener <rguenther@suse.de>
20184 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20185 it needs revisiting whether the call still may be tail-called.
20187 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20189 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20190 * rtl.h (block_symbol): Reduce number of fields to 2.
20191 (rtx_def): Add u2.symbol_ref_flags.
20192 (SYMBOL_REF_FLAGS): Use it.
20193 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20194 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20195 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20196 Lower index of SYMBOL_REF_DATA.
20197 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20198 Print SYMBOL_REF_FLAGS at the same time.
20199 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20201 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20203 * rtl.def (VAR_LOCATION): Remove "i" field.
20204 * rtl.h (rtx_def): Add u2.var_location_status.
20205 (PAT_VAR_LOCATION_STATUS): Use it.
20206 (gen_rtx_VAR_LOCATION): Declare.
20207 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20208 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20209 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20211 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20213 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20214 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20216 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20218 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20219 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20220 * rtl.h (rtx_def): Add insn_uid to u2 field.
20221 (RTX_FLAG_CHECK8): Delete in favor of...
20222 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20223 (INSN_DELETED_P): Update accordingly.
20224 (INSN_UID): Use u2.insn_uid.
20225 (INSN_CHAIN_CODE_P): Define.
20226 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20227 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20228 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20229 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20230 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20231 indices accordingly.
20232 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20233 Update indices for insn-chain rtxes.
20234 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20235 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20236 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20237 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20238 * combine.c (try_combine): Likewise.
20239 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20241 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20243 * rtl.def (REG): Remove middle field.
20244 * rtl.h (rtx_def): Add orignal_regno to u2.
20245 (ORIGINAL_REGNO): Use it instead of field 1.
20246 (REG_ATTRS): Lower field index accordingly.
20247 * gengtype.c (adjust_field_rtx_def): Remove handling of
20248 ORIGINAL_REGNO. Move REG_ATTRS index down.
20249 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20250 code that prints the REGNO.
20252 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20254 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20257 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20259 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20261 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20263 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20264 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20266 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20268 * config/aarch64/aarch64-protos.h
20269 (aarch64_hard_regno_caller_save_mode): New prototype.
20270 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20272 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20274 2014-05-13 Christian Bruel <christian.bruel@st.com>
20276 * target.def (mode_switching): New hook vector.
20277 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20278 (mode_exit, modepriority_to_mode): Likewise.
20279 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20280 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20281 * target.h: Include tm.h and hard-reg-set.h.
20282 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20283 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20284 * doc/tm.texi Regenerate.
20285 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20286 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20287 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20288 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20289 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20290 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20291 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20292 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20293 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20294 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20295 (ix86_emit_mode_set): Hookify.
20296 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20298 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20299 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20300 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20301 (epiphany_mode_priority_to_mode): Remove declaration.
20302 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20303 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20304 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20306 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20307 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20308 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20310 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20313 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20314 is const0_rtx, return immediately. Don't test count == 0 when
20317 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20319 * Makefile.in: add shrink-wrap.o.
20320 * config/i386/i386.c: include "shrink-wrap.h"
20321 * function.c: Likewise.
20322 (requires_stack_frame_p, next_block_for_reg,
20323 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20324 dup_block_and_redirect): Move to shrink-wrap.c
20325 (thread_prologue_and_epilogue_insns): Extract three code segments
20326 as functions in shrink-wrap.c
20327 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20329 * shrink-wrap.c: New file.
20330 * shrink-wrap.h: New file.
20332 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20334 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20335 reference to Solaris.
20337 2014-05-12 Mike Stump <mikestump@comcast.net>
20340 * genattrtab.c (filename): Add.
20341 (convert_set_attr_alternative): Improve error message.
20342 (check_defs): Restore read_md_filename for error messages.
20343 (gen_insn): Save filename.
20345 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20347 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20348 -fno-local-ivars and -fivar-visibility.
20349 * c-family/c.opt: Make -Wshadow also implicitly enable
20352 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20354 * doc/tm.texi: Remove reference to deleted macro.
20355 * doc/tm.texi.in: Likewise.
20357 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20360 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20363 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20366 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20367 * config/arm/aout.h (License): Same.
20368 * config/arm/bpabi.h (License): Same.
20369 * config/arm/elf.h (License): Same.
20370 * config/arm/linux-elf.h (License): Same.
20371 * config/arm/linux-gas.h (License): Same.
20372 * config/arm/netbsd-elf.h (License): Same.
20373 * config/arm/uclinux-eabi.h (License): Same.
20374 * config/arm/uclinux-elf.h (License): Same.
20375 * config/arm/vxworks.h (License): Same.
20377 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20379 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20380 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20381 number of operands to 3.
20382 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20383 * tree-nested.c (convert_nonlocal_omp_clauses,
20384 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20385 * gimplify.c (gimplify_scan_omp_clauses): Handle
20386 OMP_CLAUSE_LINEAR_STMT.
20387 * omp-low.c (lower_rec_input_clauses): Fix typo.
20388 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20389 cast between Fortran boolean_type_node and C _Bool if
20392 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20394 PR tree-optimization/61136
20395 * wide-int.h (multiple_of_p): Define a version that doesn't return
20397 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20398 integer_zerop/const_binop pair.
20399 (multiple_of_p): Likewise, converting both operands to widest_int
20402 2014-05-09 Teresa Johnson <tejohnson@google.com>
20404 * cgraphunit.c (analyze_functions): Use correct dump file.
20406 2014-05-09 Florian Weimer <fweimer@redhat.com>
20408 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20410 (stack_protect_return_slot_p): New function.
20411 (expand_used_vars): Call stack_protect_decl_p and
20412 stack_protect_return_slot_p for -fstack-protector-strong.
20414 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20415 Andrew Haley <aph@redhat.com>
20416 Richard Sandiford <rdsandiford@googlemail.com>
20418 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20421 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20423 PR middle-end/61111
20424 * fold-const.c (fold_binary_loc): Changed width of mask.
20426 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20428 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20429 unsigned int initializers for regno_in, regno_out.
20431 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20434 * config/avr/avr.md (cc): Add new attribute set_vzn.
20435 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20436 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20437 with INC, DEC or NEG.
20438 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20439 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20440 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20442 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20445 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20447 * wide-int.cc (UTItype): Define.
20448 (UDWtype): Define for appropriate W_TYPE_SIZE.
20450 2014-05-09 Richard Biener <rguenther@suse.de>
20452 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20453 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20454 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20455 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20456 ssa_propagate): Adjust.
20458 2014-05-08 Jeff Law <law@redhat.com>
20460 PR tree-optimization/61009
20461 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20462 tri-state rather than a boolean. When a block is too big to
20463 thread through, inform caller via negative return value.
20464 (thread_across_edge): If a block was too big for normal threading,
20465 then it's too big for a joiner too, so remove temporary equivalences
20466 and return immediately.
20468 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20469 Matthias Klose <doko@ubuntu.com>
20472 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20474 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20477 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20479 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20482 * config/alpha/alpha.c: Include gimple-iterator.h.
20483 (alpha_gimple_fold_builtin): New function. Move
20484 ALPHA_BUILTIN_UMULH folding from ...
20485 (alpha_fold_builtin): ... here.
20486 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20488 2014-05-08 Wei Mi <wmi@google.com>
20491 * config/i386/i386.c (ix86_compute_frame_layout): Update
20492 preferred_stack_boundary for call, expanded from tls descriptor.
20493 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20494 to depend on SP register.
20495 (*tls_local_dynamic_base_32_gnu): Ditto.
20496 (*tls_local_dynamic_32_once): Ditto.
20497 (tls_global_dynamic_64_<mode>): Set
20498 ix86_tls_descriptor_calls_expanded_in_cfun.
20499 (tls_local_dynamic_base_64_<mode>): Ditto.
20500 (tls_global_dynamic_32): Set
20501 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20502 to depend on SP register.
20503 (tls_local_dynamic_base_32): Ditto.
20505 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20507 * config/arm/arm_neon.h: Update comment.
20508 * config/arm/neon-docgen.ml: Delete.
20509 * config/arm/neon-gen.ml: Delete.
20510 * doc/arm-neon-intrinsics.texi: Update comment.
20512 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20514 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20516 (vand, vorr, veor, vorn, vbic): Remove.
20517 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20519 (neon_vsub_unspec): Likewise.
20520 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20522 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20524 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20525 (vadd_s16): Likewise.
20526 (vadd_s32): Likewise.
20527 (vadd_f32): Likewise.
20528 (vadd_u8): Likewise.
20529 (vadd_u16): Likewise.
20530 (vadd_u32): Likewise.
20531 (vadd_s64): Likewise.
20532 (vadd_u64): Likewise.
20533 (vaddq_s8): Likewise.
20534 (vaddq_s16): Likewise.
20535 (vaddq_s32): Likewise.
20536 (vaddq_s64): Likewise.
20537 (vaddq_f32): Likewise.
20538 (vaddq_u8): Likewise.
20539 (vaddq_u16): Likewise.
20540 (vaddq_u32): Likewise.
20541 (vaddq_u64): Likewise.
20542 (vmul_s8): Likewise.
20543 (vmul_s16): Likewise.
20544 (vmul_s32): Likewise.
20545 (vmul_f32): Likewise.
20546 (vmul_u8): Likewise.
20547 (vmul_u16): Likewise.
20548 (vmul_u32): Likewise.
20549 (vmul_p8): Likewise.
20550 (vmulq_s8): Likewise.
20551 (vmulq_s16): Likewise.
20552 (vmulq_s32): Likewise.
20553 (vmulq_f32): Likewise.
20554 (vmulq_u8): Likewise.
20555 (vmulq_u16): Likewise.
20556 (vmulq_u32): Likewise.
20557 (vsub_s8): Likewise.
20558 (vsub_s16): Likewise.
20559 (vsub_s32): Likewise.
20560 (vsub_f32): Likewise.
20561 (vsub_u8): Likewise.
20562 (vsub_u16): Likewise.
20563 (vsub_u32): Likewise.
20564 (vsub_s64): Likewise.
20565 (vsub_u64): Likewise.
20566 (vsubq_s8): Likewise.
20567 (vsubq_s16): Likewise.
20568 (vsubq_s32): Likewise.
20569 (vsubq_s64): Likewise.
20570 (vsubq_f32): Likewise.
20571 (vsubq_u8): Likewise.
20572 (vsubq_u16): Likewise.
20573 (vsubq_u32): Likewise.
20574 (vsubq_u64): Likewise.
20575 (vand_s8): Likewise.
20576 (vand_s16): Likewise.
20577 (vand_s32): Likewise.
20578 (vand_u8): Likewise.
20579 (vand_u16): Likewise.
20580 (vand_u32): Likewise.
20581 (vand_s64): Likewise.
20582 (vand_u64): Likewise.
20583 (vandq_s8): Likewise.
20584 (vandq_s16): Likewise.
20585 (vandq_s32): Likewise.
20586 (vandq_s64): Likewise.
20587 (vandq_u8): Likewise.
20588 (vandq_u16): Likewise.
20589 (vandq_u32): Likewise.
20590 (vandq_u64): Likewise.
20591 (vorr_s8): Likewise.
20592 (vorr_s16): Likewise.
20593 (vorr_s32): Likewise.
20594 (vorr_u8): Likewise.
20595 (vorr_u16): Likewise.
20596 (vorr_u32): Likewise.
20597 (vorr_s64): Likewise.
20598 (vorr_u64): Likewise.
20599 (vorrq_s8): Likewise.
20600 (vorrq_s16): Likewise.
20601 (vorrq_s32): Likewise.
20602 (vorrq_s64): Likewise.
20603 (vorrq_u8): Likewise.
20604 (vorrq_u16): Likewise.
20605 (vorrq_u32): Likewise.
20606 (vorrq_u64): Likewise.
20607 (veor_s8): Likewise.
20608 (veor_s16): Likewise.
20609 (veor_s32): Likewise.
20610 (veor_u8): Likewise.
20611 (veor_u16): Likewise.
20612 (veor_u32): Likewise.
20613 (veor_s64): Likewise.
20614 (veor_u64): Likewise.
20615 (veorq_s8): Likewise.
20616 (veorq_s16): Likewise.
20617 (veorq_s32): Likewise.
20618 (veorq_s64): Likewise.
20619 (veorq_u8): Likewise.
20620 (veorq_u16): Likewise.
20621 (veorq_u32): Likewise.
20622 (veorq_u64): Likewise.
20623 (vbic_s8): Likewise.
20624 (vbic_s16): Likewise.
20625 (vbic_s32): Likewise.
20626 (vbic_u8): Likewise.
20627 (vbic_u16): Likewise.
20628 (vbic_u32): Likewise.
20629 (vbic_s64): Likewise.
20630 (vbic_u64): Likewise.
20631 (vbicq_s8): Likewise.
20632 (vbicq_s16): Likewise.
20633 (vbicq_s32): Likewise.
20634 (vbicq_s64): Likewise.
20635 (vbicq_u8): Likewise.
20636 (vbicq_u16): Likewise.
20637 (vbicq_u32): Likewise.
20638 (vbicq_u64): Likewise.
20639 (vorn_s8): Likewise.
20640 (vorn_s16): Likewise.
20641 (vorn_s32): Likewise.
20642 (vorn_u8): Likewise.
20643 (vorn_u16): Likewise.
20644 (vorn_u32): Likewise.
20645 (vorn_s64): Likewise.
20646 (vorn_u64): Likewise.
20647 (vornq_s8): Likewise.
20648 (vornq_s16): Likewise.
20649 (vornq_s32): Likewise.
20650 (vornq_s64): Likewise.
20651 (vornq_u8): Likewise.
20652 (vornq_u16): Likewise.
20653 (vornq_u32): Likewise.
20654 (vornq_u64): Likewise.
20656 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20658 * wide-int.cc (UTItype): Define.
20659 (UDWtype): Define for appropriate W_TYPE_SIZE.
20661 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20663 PR tree-optimization/59100
20664 * tree-ssa-phiopt.c: Include tree-inline.h.
20665 (neutral_element_p, absorbing_element_p): New functions.
20666 (value_replacement): Handle conditional binary operations with a
20667 neutral or absorbing element.
20669 2014-05-08 Richard Biener <rguenther@suse.de>
20671 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20672 folding the expression.
20673 (valueize_expr): Remove.
20674 (visit_reference_op_load): Do not valueize the result of
20676 (simplify_binary_expression): Likewise.
20677 (simplify_unary_expression): Likewise.
20679 2014-05-08 Richard Biener <rguenther@suse.de>
20681 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20682 looking at TYPE_ARG_TYPES.
20684 2014-05-08 Richard Biener <rguenther@suse.de>
20686 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20687 pointer propagation special-case.
20689 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20691 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20692 core part of address expressions.
20694 2014-05-08 Alan Modra <amodra@gmail.com>
20697 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20698 loads and stores when -mno-strict-align at any alignment.
20699 (expand_block_clear): Similarly. Also correct calculation of
20702 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20704 PR middle-end/39246
20705 * tree-complex.c (expand_complex_move): Keep line info when expanding
20707 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20708 of complex expression. Use new argument to display correct location
20709 for values coming from phi statement.
20710 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20711 (warn_uninitialized_phi): Pass location of phi argument to
20713 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20714 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20716 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20718 * config/rs6000/predicates.md (indexed_address_mem): New.
20719 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20720 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20721 fpstore_ux, fpstore_u.
20722 (sign_extend, indexed, update): New.
20723 (cell_micro): Adjust.
20724 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20725 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20726 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20727 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20728 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20729 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20730 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20731 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20732 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20733 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20734 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20735 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20736 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20737 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20738 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20740 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20741 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20742 *vsx_extract_<mode>_store): Adjust.
20743 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20744 is_cracked_insn, insn_must_be_first_in_group,
20745 insn_must_be_last_in_group): Adjust.
20747 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20749 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20750 ppc440-fpstore): Adjust.
20751 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20752 ppc476-fpstore): Adjust.
20753 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20754 ppc601-fpstore): Adjust.
20755 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20757 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20759 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20760 ppc7450-fpstore): Adjust.
20761 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20762 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20763 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20765 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20766 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20767 cell-fpstore, cell-fpstore-update): Adjust.
20768 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20769 ppce300c3_store, ppce300c3_fpstore): Adjust.
20770 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20771 e500mc_fpstore): Adjust.
20772 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20773 e500mc64_store, e500mc64_fpstore): Adjust.
20774 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20775 e5500_fpstore): Adjust.
20776 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20777 e6500_fpstore): Adjust.
20778 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20780 * config/rs6000/power4.md (power4-load, power4-load-ext,
20781 power4-load-ext-update, power4-load-ext-update-indexed,
20782 power4-load-update-indexed, power4-load-update, power4-fpload,
20783 power4-fpload-update, power4-store, power4-store-update,
20784 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20786 * config/rs6000/power5.md (power5-load, power5-load-ext,
20787 power5-load-ext-update, power5-load-ext-update-indexed,
20788 power5-load-update-indexed, power5-load-update, power5-fpload,
20789 power5-fpload-update, power5-store, power5-store-update,
20790 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20792 * config/rs6000/power6.md (power6-load, power6-load-ext,
20793 power6-load-update, power6-load-update-indexed,
20794 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20795 power6-fpload-update, power6-store, power6-store-update,
20796 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20798 * config/rs6000/power7.md (power7-load, power7-load-ext,
20799 power7-load-update, power7-load-update-indexed,
20800 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20801 power7-fpload-update, power7-store, power7-store-update,
20802 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20804 * config/rs6000/power8.md (power8-load, power8-load-update,
20805 power8-load-ext, power8-load-ext-update, power8-fpload,
20806 power8-fpload-update, power8-store, power8-store-update-indexed,
20807 power8-fpstore, power8-fpstore-update): Adjust.
20808 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20810 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20811 titan_lsu_store, titan_lsu_fpstore): Adjust.
20812 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20814 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20817 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20818 unrolled byte insns. Emit address increments after move insns.
20820 2014-05-07 David Malcolm <dmalcolm@redhat.com>
20822 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20823 const_gimple, rather than a gimple.
20824 (gimple_call_builtin_p): Likewise, for the three variants.
20826 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20827 (gimple_call_builtin_p): Likewise, for the three variants.
20829 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20831 PR tree-optimization/61095
20832 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20834 2014-05-07 Richard Biener <rguenther@suse.de>
20836 PR tree-optimization/61034
20837 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20838 (maybe_skip_until): Use translate to take into account
20839 lattices when trying to do disambiguations.
20840 (get_continuation_for_phi_1): Likewise.
20841 (get_continuation_for_phi): Adjust for added translate arguments.
20842 (walk_non_aliased_vuses): Likewise.
20843 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20844 (walk_non_aliased_vuses): Likewise.
20845 (call_may_clobber_ref_p_1): Declare.
20846 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20847 calls. Stop early if we are only supposed to disambiguate.
20848 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20850 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
20852 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20853 Emit an error when the function has arguments.
20855 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20857 * cfgloop.h (unswitch_loops): Remove.
20858 * doc/passes.texi: Remove references to loop-unswitch.c
20859 * timevar.def (TV_LOOP_UNSWITCH): Remove.
20861 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
20863 * tree-vect-data-refs.c (vect_grouped_load_supported): New
20864 check for loads group of length 3.
20865 (vect_permute_load_chain): New permutations for loads group of
20867 * tree-vect-stmts.c (vect_model_load_cost): Change cost
20868 of vec_perm_shuffle for the new permutations.
20870 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
20872 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20873 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20874 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20875 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20876 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20877 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20878 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20879 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20881 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20883 * loop-unswitch.c: Delete.
20885 2014-05-07 Richard Biener <rguenther@suse.de>
20887 * config.gcc: Always set need_64bit_hwint to yes.
20889 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
20891 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20892 of using optimize_size.
20894 2014-05-06 Mike Stump <mikestump@comcast.net>
20896 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20898 2014-05-06 Joseph Myers <joseph@codesourcery.com>
20900 * config/i386/sse.md (*mov<mode>_internal)
20901 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20902 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20903 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20904 (*<code><mode>3, *andnot<mode>3<mask_name>)
20905 (<mask_codefor><code><mode>3<mask_name>): Only consider
20906 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20908 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20911 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20913 * lra-constraints.c (valid_address_p): Move earlier in file.
20914 Add a constraint argument to the address_info version.
20915 (satisfies_memory_constraint_p): New function.
20916 (satisfies_address_constraint_p): Likewise.
20917 (process_alt_operands, curr_insn_transform): Use them.
20918 (process_address): Pass the constraint to valid_address_p when
20919 checking address operands.
20921 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
20923 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20924 to their respective blocks. Fix inadvertent use of "node".
20926 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20928 * emit-rtl.c (init_derived_machine_modes): New functionm, split
20930 (init_emit_once): ...here.
20931 * rtl.h (init_derived_machine_modes): Declare.
20932 * toplev.c (do_compile): Call it even if no_backend.
20934 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
20935 Mike Stump <mikestump@comcast.net>
20936 Richard Sandiford <rdsandiford@googlemail.com>
20937 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20939 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20940 (rtx_equal_for_memref_p): Update comment.
20941 (adjust_offset_for_component_ref): Use wide-int interfaces.
20942 * builtins.c (get_object_alignment_2): Likewise.
20943 (c_readstr): Likewise.
20944 (target_char_cast): Add comment.
20945 (determine_block_size): Use wide-int interfaces.
20946 (expand_builtin_signbit): Likewise.
20947 (fold_builtin_int_roundingfn): Likewise.
20948 (fold_builtin_bitop): Likewise.
20949 (fold_builtin_bswap): Likewise.
20950 (fold_builtin_logarithm): Use signop.
20951 (fold_builtin_pow): Likewise.
20952 (fold_builtin_memory_op): Use wide-int interfaces.
20953 (fold_builtin_object_size): Likewise.
20954 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20955 nb_iterations_estimate.
20956 (record_niter_bound): Use wide-int interfaces.
20957 (get_estimated_loop_iterations_int): Likewise.
20958 (get_estimated_loop_iterations): Likewise.
20959 (get_max_loop_iterations): Likewise.
20960 * cfgloop.h: Include wide-int.h.
20961 (struct nb_iter_bound): Change bound to widest_int.
20962 (struct loop): Change nb_iterations_upper_bound and
20963 nb_iterations_estimate to widest_int.
20964 (record_niter_bound): Switch to use widest_int.
20965 (get_estimated_loop_iterations): Likewise.
20966 (get_max_loop_iterations): Likewise.
20967 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20968 update for wide-int.
20969 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20970 * combine.c (try_combine): Likewise.
20971 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20972 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20974 (aarch64_float_const_representable_p): Likewise.
20975 * config/arc/arc.c: Include wide-int.h.
20976 (arc_can_use_doloop_p): Use wide-int interfaces.
20977 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20978 (vfp3_const_double_index): Likewise.
20979 * config/avr/avr.c (avr_out_round): Likewise.
20980 (avr_fold_builtin): Likewise.
20981 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20982 (bfin_can_use_doloop_p): Likewise.
20983 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20984 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20985 * config/i386/i386.c: Include wide-int.h.
20986 (ix86_data_alignment): Use wide-int interfaces.
20987 (ix86_local_alignment): Likewise.
20988 (ix86_emit_swsqrtsf): Update real_from_integer.
20989 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20990 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20991 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20992 (zero_constant): Likewise.
20993 (input_operand): Likewise.
20994 (splat_input_operand): Likewise.
20995 (non_logical_cint_operand): Change const_double to const_wide_int.
20996 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20997 (easy_altivec_constant): Remove comment.
20998 (paired_expand_vector_init): Use CONSTANT_P.
20999 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21000 (rs6000_emit_move): Update checks.
21001 (rs6000_aggregate_candidate): Use wide-int interfaces.
21002 (rs6000_expand_ternop_builtin): Likewise.
21003 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21004 (rs6000_assemble_integer): Likewise.
21005 (rs6000_hash_constant): Likewise.
21006 (output_toc): Likewise.
21007 (rs6000_rtx_costs): Likewise.
21008 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21009 * config/rs6000/rs6000-c.c: Include wide-int.h.
21010 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21011 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21012 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21013 Handle CONST_WIDE_INT.
21014 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21015 Use tree_fits_uhwi_p.
21016 * config/sparc/sparc.c: Include wide-int.h.
21017 (sparc_fold_builtin): Use wide-int interfaces.
21018 * config/vax/vax.c: Include wide-int.h.
21019 (vax_float_literal): Use real_from_integer.
21020 * coretypes.h (struct hwivec_def): New.
21022 (const_hwivec): New.
21023 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21024 (equiv_constant): Handle CONST_WIDE_INT.
21025 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21026 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21027 * dbxout.c (stabstr_U): Use wide-int interfaces.
21028 (dbxout_type): Update to use cst_fits_shwi_p.
21029 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21030 (TARGET_SUPPORTS_WIDE_INT): Add default.
21031 * dfp.c: Include wide-int.h.
21032 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21033 decimal_real_to_integer.
21034 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21035 decimal_real_to_integer.
21036 * doc/generic.texi (Constant expressions): Update for wide_int.
21037 * doc/rtl.texi (const_double): Likewise.
21038 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21039 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21040 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21041 (REAL_VALUE_FROM_INT): Remove.
21042 (TARGET_SUPPORTS_WIDE_INT): New.
21043 * doc/tm.texi: Regenerate.
21044 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21045 * double-int.h: Include wide-int.h.
21046 (struct wi::int_traits): New.
21047 * dwarf2out.c (get_full_len): New.
21048 (dw_val_equal_p): Add case dw_val_class_wide_int.
21049 (size_of_loc_descr): Likewise.
21050 (output_loc_operands): Likewise.
21051 (insert_double): Remove.
21052 (insert_wide_int): New.
21053 (add_AT_wide): New.
21054 (print_die): Add case dw_val_class_wide_int.
21055 (attr_checksum): Likewise.
21056 (attr_checksum_ordered): Likewise.
21057 (same_dw_val_p): Likewise.
21058 (size_of_die): Likewise.
21059 (value_format): Likewise.
21060 (output_die): Likewise.
21061 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21063 (clz_loc_descriptor): Use wide-int interfaces.
21064 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21065 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21066 (round_up_to_align): Use wide-int interfaces.
21067 (field_byte_offset): Likewise.
21068 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21069 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21070 CONST_DOUBLE handling. Use wide-int interfaces.
21071 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21072 (gen_enumeration_type_die): Use add_AT_wide.
21073 (hash_loc_operands): Add case dw_val_class_wide_int.
21074 (compare_loc_operands): Likewise.
21075 * dwarf2out.h: Include wide-int.h.
21076 (wide_int_ptr): New.
21077 (enum dw_val_class): Add dw_val_class_wide_int.
21078 (struct dw_val_struct): Add val_wide.
21079 * emit-rtl.c (const_wide_int_htab): New.
21080 (const_wide_int_htab_hash): New.
21081 (const_wide_int_htab_eq): New.
21082 (lookup_const_wide_int): New.
21083 (const_double_htab_hash): Use wide-int interfaces.
21084 (const_double_htab_eq): Likewise.
21085 (rtx_to_double_int): Conditionally compile for wide-int.
21086 (immed_double_int_const): Rename to immed_wide_int_const and
21087 update for wide-int.
21088 (immed_double_const): Conditionally compile for wide-int.
21089 (init_emit_once): Use wide-int interfaces.
21090 * explow.c (plus_constant): Likewise.
21091 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21092 (lshift_value): Use wide-int interfaces.
21093 (expand_mult): Likewise.
21094 (choose_multiplier): Likewise.
21095 (expand_smod_pow2): Likewise.
21096 (make_tree): Likewise.
21097 * expr.c (convert_modes): Consolidate handling of constants.
21098 Use wide-int interfaces.
21099 (emit_group_load_1): Add note.
21100 (store_expr): Update comment.
21101 (get_inner_reference): Use wide-int interfaces.
21102 (expand_constructor): Update comment.
21103 (expand_expr_real_2): Use wide-int interfaces.
21104 (expand_expr_real_1): Likewise.
21105 (reduce_to_bit_field_precision): Likewise.
21106 (const_vector_from_tree): Likewise.
21107 * final.c: Include wide-int-print.h.
21108 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21109 * fixed-value.c: Include wide-int.h.
21110 (fixed_from_string): Use wide-int interfaces.
21111 (fixed_to_decimal): Likewise.
21112 (fixed_convert_from_real): Likewise.
21113 (real_convert_from_fixed): Likewise.
21114 * fold-const.h (mem_ref_offset): Return an offset_int.
21115 (div_if_zero_remainder): Remove code parameter.
21116 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21117 Use wide-int interfaces.
21118 (may_negate_without_overflow_p): Use wide-int interfaces.
21119 (negate_expr_p): Likewise.
21120 (fold_negate_expr): Likewise.
21121 (int_const_binop_1): Likewise.
21122 (const_binop): Likewise.
21123 (fold_convert_const_int_from_int): Likewise.
21124 (fold_convert_const_int_from_real): Likewise.
21125 (fold_convert_const_int_from_fixed): Likewise.
21126 (fold_convert_const_fixed_from_int): Likewise.
21127 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21128 (sign_bit_p): Use wide-int interfaces.
21129 (make_range_step): Likewise.
21130 (build_range_check): Likewise. Pass an integer of the correct type
21131 instead of using integer_one_node.
21132 (range_predecessor): Pass an integer of the correct type instead
21133 of using integer_one_node.
21134 (range_successor): Likewise.
21135 (merge_ranges): Likewise.
21136 (unextend): Use wide-int interfaces.
21137 (extract_muldiv_1): Likewise.
21138 (fold_div_compare): Likewise.
21139 (fold_single_bit_test): Likewise.
21140 (fold_sign_changed_comparison): Likewise.
21141 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21142 (fold_plusminus_mult_expr): Use wide-int interfaces.
21143 (native_encode_int): Likewise.
21144 (native_interpret_int): Likewise.
21145 (fold_unary_loc): Likewise.
21146 (pointer_may_wrap_p): Likewise.
21147 (size_low_cst): Likewise.
21148 (mask_with_tz): Likewise.
21149 (fold_binary_loc): Likewise.
21150 (fold_ternary_loc): Likewise.
21151 (multiple_of_p): Likewise.
21152 (tree_call_nonnegative_warnv_p): Update calls to
21153 tree_int_cst_min_precision and real_from_integer.
21154 (fold_negate_const): Use wide-int interfaces.
21155 (fold_abs_const): Likewise.
21156 (fold_relational_const): Use tree_int_cst_lt.
21157 (round_up_loc): Use wide-int interfaces.
21158 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21159 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21160 * gengtype.c: Remove include of double-int.h.
21161 (do_typedef): Use wide-int interfaces.
21162 (open_base_files): Add wide-int.h.
21163 (main): Add offset_int and widest_int typedefs.
21164 * gengtype-lex.l: Handle "^".
21165 (CXX_KEYWORD): Add "static".
21166 * gengtype-parse.c (require3): New.
21167 (require_template_declaration): Handle constant template arguments
21168 and nested templates.
21169 * gengtype-state.c: Don't include "double-int.h".
21170 * genpreds.c (write_one_predicate_function): Update comment.
21171 (write_tm_constrs_h): Add check for hval and lval use in
21173 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21174 (add_to_sequence): Likewise.
21175 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21176 and const_double_operand.
21177 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21179 * gimple-fold.c (get_base_constructor): Likewise.
21180 (fold_array_ctor_reference): Likewise.
21181 (fold_nonarray_ctor_reference): Likewise.
21182 (fold_const_aggregate_ref_1): Likewise.
21183 (gimple_val_nonnegative_real_p): Likewise.
21184 (gimple_fold_indirect_ref): Likewise.
21185 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21186 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21187 (struct slsr_cand_d): Change index to be widest_int.
21188 (struct incr_info_d): Change incr to be widest_int.
21189 (alloc_cand_and_find_basis): Use wide-int interfaces.
21190 (slsr_process_phi): Likewise.
21191 (backtrace_base_for_ref): Likewise. Return a widest_int.
21192 (restructure_reference): Take a widest_int instead of a double_int.
21193 (slsr_process_ref): Use wide-int interfaces.
21194 (create_mul_ssa_cand): Likewise.
21195 (create_mul_imm_cand): Likewise.
21196 (create_add_ssa_cand): Likewise.
21197 (create_add_imm_cand): Take a widest_int instead of a double_int.
21198 (slsr_process_add): Use wide-int interfaces.
21199 (slsr_process_cast): Likewise.
21200 (slsr_process_copy): Likewise.
21201 (dump_candidate): Likewise.
21202 (dump_incr_vec): Likewise.
21203 (replace_ref): Likewise.
21204 (cand_increment): Likewise. Return a widest_int.
21205 (cand_abs_increment): Likewise.
21206 (replace_mult_candidate): Take a widest_int instead of a double_int.
21207 (replace_unconditional_candidate): Use wide-int interfaces.
21208 (incr_vec_index): Take a widest_int instead of a double_int.
21209 (create_add_on_incoming_edge): Likewise.
21210 (create_phi_basis): Use wide-int interfaces.
21211 (replace_conditional_candidate): Likewise.
21212 (record_increment): Take a widest_int instead of a double_int.
21213 (record_phi_increments): Use wide-int interfaces.
21214 (phi_incr_cost): Take a widest_int instead of a double_int.
21215 (lowest_cost_path): Likewise.
21216 (total_savings): Likewise.
21217 (analyze_increments): Use wide-int interfaces.
21218 (ncd_with_phi): Take a widest_int instead of a double_int.
21219 (ncd_of_cand_and_phis): Likewise.
21220 (nearest_common_dominator_for_cands): Likewise.
21221 (insert_initializers): Use wide-int interfaces.
21222 (all_phi_incrs_profitable): Likewise.
21223 (replace_one_candidate): Likewise.
21224 (replace_profitable_candidates): Likewise.
21225 * godump.c: Include wide-int-print.h.
21226 (go_output_typedef): Use wide-int interfaces.
21227 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21228 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21229 (build_loop_iteration_domains): Likewise.
21230 * hooks.h: Include wide-int.h rather than double-int.h.
21231 (hook_bool_dint_dint_uint_bool_true): Delete.
21232 (hook_bool_wint_wint_uint_bool_true): Declare.
21233 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21234 (hook_bool_wint_wint_uint_bool_true): New.
21235 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21237 (ubsan_expand_si_overflow_mul_check): Likewise.
21238 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21239 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21240 (get_ancestor_addr_info): Likewise.
21241 (ipa_modify_call_arguments): Likewise.
21242 * loop-doloop.c (doloop_modify): Likewise.
21243 (doloop_optimize): Likewise.
21244 * loop-iv.c (iv_number_of_iterations): Likewise.
21245 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21246 (unroll_loop_constant_iterations): Likewise.
21247 (decide_unroll_runtime_iterations): Likewise.
21248 (unroll_loop_runtime_iterations): Likewise.
21249 (decide_peel_simple): Likewise.
21250 (decide_unroll_stupid): Likewise.
21251 * lto-streamer-in.c (streamer_read_wi): Add.
21252 (input_cfg): Use wide-int interfaces.
21253 (lto_input_tree_1): Likewise.
21254 * lto-streamer-out.c (streamer_write_wi): Add.
21255 (hash_tree): Use wide-int interfaces.
21256 (output_cfg): Likewise.
21257 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21258 (GTFILES): Add wide-int.h and signop.h.
21259 (TAGS): Look for .cc files too.
21260 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21261 * optabs.c (expand_subword_shift): Likewise.
21262 (expand_doubleword_shift): Likewise.
21263 (expand_absneg_bit): Likewise.
21264 (expand_copysign_absneg): Likewise.
21265 (expand_copysign_bit): Likewise.
21266 * postreload.c (reload_cse_simplify_set): Likewise.
21267 * predict.c (predict_iv_comparison): Likewise.
21268 * pretty-print.h: Include wide-int-print.h.
21270 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21271 * print-tree.c: Include wide-int-print.h.
21272 (print_node_brief): Use wide-int interfaces.
21273 (print_node): Likewise.
21274 * read-rtl.c (validate_const_wide_int): New.
21275 (read_rtx_code): Add CONST_WIDE_INT case.
21276 * real.c: Include wide-int.h.
21277 (real_to_integer2): Delete.
21278 (real_to_integer): New function, returning a wide_int.
21279 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21280 (ten_to_ptwo): Update call to real_from_integer.
21281 (real_digit): Likewise.
21282 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21283 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21284 (REAL_VALUE_TO_INT): Delete.
21285 (real_to_integer): Declare a wide-int form.
21286 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21287 * recog.c (const_int_operand): Improve comment.
21288 (const_scalar_int_operand): New.
21289 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21290 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21291 (split_double): Likewise.
21292 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21293 (rtx_size): Likewise.
21294 (rtx_alloc_stat_v): New.
21295 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21296 (cwi_output_hex): New.
21297 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21298 (cwi_check_failed_bounds): New.
21299 * rtl.def (CONST_WIDE_INT): New.
21300 * rtl.h: Include <utility> and wide-int.h.
21301 (struct hwivec_def): New.
21302 (CWI_GET_NUM_ELEM): New.
21303 (CWI_PUT_NUM_ELEM): New.
21304 (struct rtx_def): Add num_elem and hwiv.
21305 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21306 (CASE_CONST_UNIQUE): Likewise.
21307 (CASE_CONST_ANY): Likewise.
21308 (CONST_SCALAR_INT_P): Likewise.
21309 (CONST_WIDE_INT_P): New.
21311 (HWIVEC_CHECK): New.
21312 (cwi_check_failed_bounds): New.
21314 (HWIVEC_CHECK): New.
21315 (CONST_WIDE_INT_VEC) New.
21316 (CONST_WIDE_INT_NUNITS) New.
21317 (CONST_WIDE_INT_ELT) New.
21318 (rtx_mode_t): New type.
21319 (wi::int_traits <rtx_mode_t>): New.
21321 (wi::min_value): New.
21322 (wi::max_value): New.
21324 (const_wide_int_alloc): New.
21325 (immed_wide_int_const): New.
21326 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21327 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21328 * signop.h: New file.
21329 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21330 (simplify_const_unary_operation): Use wide-int interfaces.
21331 (simplify_binary_operation_1): Likewise.
21332 (simplify_const_binary_operation): Likewise.
21333 (simplify_const_relational_operation): Likewise.
21334 (simplify_immed_subreg): Likewise.
21335 * stmt.c (expand_case): Likewise.
21336 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21337 signop rather than a bool.
21338 * stor-layout.c (layout_type): Use wide-int interfaces.
21339 (initialize_sizetypes): Update calls to
21340 set_min_and_max_values_for_integral_type.
21341 (set_min_and_max_values_for_integral_type): Take a signop rather
21342 than a bool. Use wide-int interfaces.
21343 (fixup_signed_type): Update accordingly. Remove
21344 HOST_BITS_PER_DOUBLE_INT limit.
21345 (fixup_unsigned_type): Likewise.
21346 * system.h (STATIC_CONSTANT_P): New.
21347 (STATIC_ASSERT): New.
21348 * target.def (can_use_doloop_p): Take widest_ints rather than
21350 * target.h: Include wide-int.h rather than double-int.h.
21351 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21353 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21354 rather than INT_CST_LT_UNSIGNED.
21355 (can_use_doloop_if_innermost): Take widest_ints rather than
21357 * tree-affine.c: Include wide-int-print.h.
21358 (double_int_ext_for_comb): Delete.
21359 (wide_int_ext_for_comb): New.
21360 (aff_combination_zero): Use wide-int interfaces.
21361 (aff_combination_const): Take a widest_int instead of a double_int.
21362 (aff_combination_elt): Use wide-int interfaces.
21363 (aff_combination_scale): Take a widest_int instead of a double_int.
21364 (aff_combination_add_elt): Likewise.
21365 (aff_combination_add_cst): Likewise.
21366 (aff_combination_add): Use wide-int interfaces.
21367 (aff_combination_convert): Likewise.
21368 (tree_to_aff_combination): Likewise.
21369 (add_elt_to_tree): Take a widest_int instead of a double_int.
21370 (aff_combination_to_tree): Use wide-int interfaces.
21371 (aff_combination_remove_elt): Likewise.
21372 (aff_combination_add_product): Take a widest_int instead of
21374 (aff_combination_mult): Use wide-int interfaces.
21375 (aff_combination_expand): Likewise.
21376 (double_int_constant_multiple_p): Delete.
21377 (wide_int_constant_multiple_p): New.
21378 (aff_combination_constant_multiple_p): Take a widest_int pointer
21379 instead of a double_int pointer.
21380 (print_aff): Use wide-int interfaces.
21381 (get_inner_reference_aff): Take a widest_int pointer
21382 instead of a double_int pointer.
21383 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21384 * tree-affine.h: Include wide-int.h.
21385 (struct aff_comb_elt): Change type of coef to widest_int.
21386 (struct affine_tree_combination): Change type of offset to widest_int.
21387 (double_int_ext_for_comb): Delete.
21388 (wide_int_ext_for_comb): New.
21389 (aff_combination_const): Use widest_int instead of double_int.
21390 (aff_combination_scale): Likewise.
21391 (aff_combination_add_elt): Likewise.
21392 (aff_combination_constant_multiple_p): Likewise.
21393 (get_inner_reference_aff): Likewise.
21394 (aff_comb_cannot_overlap_p): Likewise.
21395 (aff_combination_zero_p): Use wide-int interfaces.
21396 * tree.c: Include tree.h.
21397 (init_ttree): Use make_int_cst.
21398 (tree_code_size): Removed code for INTEGER_CST case.
21399 (tree_size): Add INTEGER_CST case.
21400 (make_node_stat): Update comment.
21401 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21402 (build_int_cst_type): Use wide-int interfaces.
21403 (double_int_to_tree): Likewise.
21404 (double_int_fits_to_tree_p): Delete.
21405 (force_fit_type_double): Delete.
21406 (force_fit_type): New.
21407 (int_cst_hash_hash): Use wide-int interfaces.
21408 (int_cst_hash_eq): Likewise.
21409 (build_int_cst_wide): Delete.
21410 (wide_int_to_tree): New.
21411 (cache_integer_cst): Use wide-int interfaces.
21412 (build_low_bits_mask): Likewise.
21413 (cst_and_fits_in_hwi): Likewise.
21414 (real_value_from_int_cst): Likewise.
21415 (make_int_cst_stat): New.
21416 (integer_zerop): Use wide_int interfaces.
21417 (integer_onep): Likewise.
21418 (integer_all_onesp): Likewise.
21419 (integer_pow2p): Likewise.
21420 (integer_nonzerop): Likewise.
21421 (tree_log2): Likewise.
21422 (tree_floor_log2): Likewise.
21423 (tree_ctz): Likewise.
21424 (int_size_in_bytes): Likewise.
21425 (mem_ref_offset): Return an offset_int rather than a double_int.
21426 (build_type_attribute_qual_variant): Use wide_int interfaces.
21427 (type_hash_eq): Likewise
21428 (tree_int_cst_equal): Likewise.
21429 (tree_int_cst_lt): Delete.
21430 (tree_int_cst_compare): Likewise.
21431 (tree_fits_shwi_p): Use wide_int interfaces.
21432 (tree_fits_uhwi_p): Likewise.
21433 (tree_int_cst_sign_bit): Likewise.
21434 (tree_int_cst_sgn): Likewise.
21435 (tree_int_cst_min_precision): Take a signop rather than a bool.
21436 (simple_cst_equal): Use wide_int interfaces.
21437 (compare_tree_int): Likewise.
21438 (iterative_hash_expr): Likewise.
21439 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21441 (get_type_static_bounds): Use wide_int interfaces.
21442 (tree_int_cst_elt_check_failed): New.
21443 (build_common_tree_nodes): Reordered to set prec before filling in
21445 (int_cst_value): Check cst_and_fits_in_hwi.
21446 (widest_int_cst_value): Use wide_int interfaces.
21447 (upper_bound_in_type): Likewise.
21448 (lower_bound_in_type): Likewise.
21449 (num_ending_zeros): Likewise.
21450 (drop_tree_overflow): Likewise.
21451 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21452 (gen_conditions_for_pow_cst_base): Likewise.
21453 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21454 (group_case_labels_stmt): Use wide-int interfaces.
21455 (verify_gimple_assign_binary): Likewise.
21456 (print_loop): Likewise.
21457 * tree-chrec.c (tree_fold_binomial): Likewise.
21458 * tree-core.h (struct tree_base): Add int_length.
21459 (struct tree_int_cst): Change rep of value.
21460 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21461 (dr_may_alias_p): Likewise.
21462 (max_stmt_executions_tree): Likewise.
21463 * tree.def (INTEGER_CST): Update comment.
21464 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21465 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21466 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21467 (dequeue_and_dump): Use wide-int interfaces.
21468 * tree.h: Include wide-int.h.
21469 (NULL_TREE): Moved to earlier loc in file.
21470 (TREE_INT_CST_ELT_CHECK): New.
21471 (tree_int_cst_elt_check_failed): New.
21473 (TREE_INT_CST): Delete.
21474 (TREE_INT_CST_LOW): Use wide-int interfaces.
21475 (TREE_INT_CST_HIGH): Delete.
21476 (TREE_INT_CST_NUNITS): New.
21477 (TREE_INT_CST_EXT_NUNITS): Likewise.
21478 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21479 (TREE_INT_CST_ELT): Likewise.
21480 (INT_CST_LT): Delete.
21481 (tree_int_cst_elt_check): New (two forms).
21482 (type_code_size): Update comment.
21483 (make_int_cst_stat, make_int_cst): New.
21484 (tree_to_double_int): Delete.
21485 (double_int_fits_to_tree_p): Delete.
21486 (force_fit_type_double): Delete.
21487 (build_int_cstu): Replace with out-of-line function.
21488 (build_int_cst_wide): Delete.
21489 (tree_int_cst_lt): Define inline.
21490 (tree_int_cst_le): New.
21491 (tree_int_cst_compare): Define inline.
21492 (tree_int_cst_min_precision): Take a signop rather than a bool.
21493 (wi::int_traits <const_tree>): New.
21494 (wi::int_traits <tree>): New.
21495 (wi::extended_tree): New.
21496 (wi::int_traits <wi::extended_tree>): New.
21497 (wi::to_widest): New.
21498 (wi::to_offset): New.
21499 (wi::fits_to_tree_p): New.
21500 (wi::min_value): New.
21501 (wi::max_value): New.
21502 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21503 (copy_tree_body_r): Likewise.
21504 * tree-object-size.c (compute_object_offset): Likewise.
21505 (addr_object_size): Likewise.
21506 * tree-predcom.c: Include wide-int-print.h.
21507 (struct dref_d): Change type of offset to widest_int.
21508 (dump_dref): Call wide-int printer.
21509 (aff_combination_dr_offset): Use wide-int interfaces.
21510 (determine_offset): Take a widest_int pointer rather than a
21511 double_int pointer.
21512 (split_data_refs_to_components): Use wide-int interfaces.
21513 (suitable_component_p): Likewise.
21514 (order_drefs): Likewise.
21515 (add_ref_to_chain): Likewise.
21516 (valid_initializer_p): Likewise.
21517 (determine_roots_comp): Likewise.
21518 * tree-pretty-print.c: Include wide-int-print.h.
21519 (dump_generic_node): Use wide-int interfaces.
21520 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21521 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21522 (move_fixed_address_to_symbol): Likewise.
21523 (move_hint_to_base): Likewise.
21524 (move_pointer_to_base): Likewise.
21525 (move_variant_to_index): Likewise.
21526 (most_expensive_mult_to_index): Likewise.
21527 (addr_to_parts): Likewise.
21528 (copy_ref_info): Likewise.
21529 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21530 (indirect_refs_may_alias_p): Likewise.
21531 (stmt_kills_ref_p_1): Likewise.
21532 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21533 * tree-ssa-ccp.c: Update comment at top of file. Include
21535 (struct prop_value_d): Change type of mask to widest_int.
21536 (extend_mask): New function.
21537 (dump_lattice_value): Use wide-int interfaces.
21538 (get_default_value): Likewise.
21539 (set_constant_value): Likewise.
21540 (set_value_varying): Likewise.
21541 (valid_lattice_transition): Likewise.
21542 (set_lattice_value): Likewise.
21543 (value_to_double_int): Delete.
21544 (value_to_wide_int): New.
21545 (get_value_from_alignment): Use wide-int interfaces.
21546 (get_value_for_expr): Likewise.
21547 (do_dbg_cnt): Likewise.
21548 (ccp_finalize): Likewise.
21549 (ccp_lattice_meet): Likewise.
21550 (bit_value_unop_1): Use widest_ints rather than double_ints.
21551 (bit_value_binop_1): Likewise.
21552 (bit_value_unop): Use wide-int interfaces.
21553 (bit_value_binop): Likewise.
21554 (bit_value_assume_aligned): Likewise.
21555 (evaluate_stmt): Likewise.
21556 (ccp_fold_stmt): Likewise.
21557 (visit_cond_stmt): Likewise.
21558 (ccp_visit_stmt): Likewise.
21559 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21560 (constant_pointer_difference): Likewise.
21561 (associate_pointerplus): Likewise.
21562 (combine_conversions): Likewise.
21563 * tree-ssa-loop.h: Include wide-int.h.
21564 (struct tree_niter_desc): Change type of max to widest_int.
21565 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21566 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21567 (remove_redundant_iv_tests): Likewise.
21568 (canonicalize_loop_induction_variables): Likewise.
21569 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21570 (constant_multiple_of): Take a widest_int pointer instead of
21571 a double_int pointer.
21572 (get_computation_aff): Use wide-int interfaces.
21573 (ptr_difference_cost): Likewise.
21574 (difference_cost): Likewise.
21575 (get_loop_invariant_expr_id): Likewise.
21576 (get_computation_cost_at): Likewise.
21577 (iv_elimination_compare_lt): Likewise.
21578 (may_eliminate_iv): Likewise.
21579 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21580 instead of double_int.
21581 (max_loop_iterations): Likewise.
21582 (max_stmt_executions): Likewise.
21583 (estimated_stmt_executions): Likewise.
21584 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21585 (split_to_var_and_offset): Use wide-int interfaces.
21586 (determine_value_range): Likewise.
21587 (bound_difference_of_offsetted_base): Likewise.
21588 (bounds_add): Take a widest_int instead of a double_int.
21589 (number_of_iterations_ne_max): Use wide-int interfaces.
21590 (number_of_iterations_ne): Likewise.
21591 (number_of_iterations_lt_to_ne): Likewise.
21592 (assert_loop_rolls_lt): Likewise.
21593 (number_of_iterations_lt): Likewise.
21594 (number_of_iterations_le): Likewise.
21595 (number_of_iterations_cond): Likewise.
21596 (number_of_iterations_exit): Likewise.
21597 (finite_loop_p): Likewise.
21598 (derive_constant_upper_bound_assign): Likewise.
21599 (derive_constant_upper_bound): Return a widest_int.
21600 (derive_constant_upper_bound_ops): Likewise.
21601 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21602 (record_estimate): Take a widest_int rather than a double_int.
21603 (record_nonwrapping_iv): Use wide-int interfaces.
21604 (double_int_cmp): Delete.
21605 (wide_int_cmp): New.
21606 (bound_index): Take a widest_int rather than a double_int.
21607 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21608 (maybe_lower_iteration_bound): Likewise.
21609 (estimate_numbers_of_iterations_loop): Likewise.
21610 (estimated_loop_iterations): Take a widest_int pointer than than
21611 a double_int pointer.
21612 (estimated_loop_iterations_int): Use wide-int interfaces.
21613 (max_loop_iterations): Take a widest_int pointer than than
21614 a double_int pointer.
21615 (max_loop_iterations_int): Use wide-int interfaces.
21616 (max_stmt_executions): Take a widest_int pointer than than
21617 a double_int pointer.
21618 (estimated_stmt_executions): Likewise.
21619 (n_of_executions_at_most): Use wide-int interfaces.
21620 (scev_probably_wraps_p): Likewise.
21621 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21622 to real_to_integer.
21623 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21625 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21626 double_ints. Adjust for trailing_wide_ints <3> representation.
21627 (set_nonzero_bits): Likewise.
21628 (get_range_info): Return wide_ints rather than double_ints.
21629 Adjust for trailing_wide_ints <3> representation.
21630 (get_nonzero_bits): Likewise.
21631 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21633 * tree-ssanames.h (struct range_info_def): Replace min, max and
21634 nonzero_bits with a trailing_wide_ints <3>.
21635 (set_range_info): Use wide_int_refs rather than double_ints.
21636 (set_nonzero_bits): Likewise.
21637 (get_range_info): Return wide_ints rather than double_ints.
21638 (get_nonzero_bits): Likewise.
21639 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21640 * tree-ssa-pre.c (phi_translate_1): Likewise.
21641 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21642 (acceptable_pow_call): Likewise.
21643 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21645 (vn_reference_fold_indirect): Likewise.
21646 (vn_reference_maybe_forwprop_address): Likewise.
21647 (valueize_refs_1): Likewise.
21648 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21649 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21650 tree_int_cst_lt and tree_int_cst_le.
21651 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21653 (streamer_alloc_tree): Likewise.
21654 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21655 (streamer_write_tree_header): Likewise.
21656 (streamer_write_integer_cst): Likewise.
21657 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21658 (build_constructors): Likewise.
21659 (array_value_type): Likewise.
21660 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21661 (vect_check_gather): Likewise.
21662 * tree-vect-generic.c (build_replicated_const): Likewise.
21663 (expand_vector_divmod): Likewise.
21664 * tree-vect-loop.c (vect_transform_loop): Likewise.
21665 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21666 (vect_do_peeling_for_alignment): Likewise.
21667 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21668 * tree-vrp.c: Include wide-int.h.
21669 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21670 (extract_range_from_assert): Use wide-int interfaces.
21671 (vrp_int_const_binop): Likewise.
21672 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21673 double_int pointers.
21674 (ranges_from_anti_range): Use wide-int interfaces.
21675 (quad_int_cmp): Delete.
21676 (quad_int_pair_sort): Likewise.
21677 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21678 (extract_range_from_unary_expr_1): Likewise.
21679 (adjust_range_with_scev): Likewise.
21680 (masked_increment): Take and return wide_ints rather than double_ints.
21681 (register_edge_assert_for_2): Use wide-int interfaces.
21682 (check_array_ref): Likewise.
21683 (search_for_addr_array): Likewise.
21684 (maybe_set_nonzero_bits): Likewise.
21685 (union_ranges): Pass an integer of the correct type instead of
21686 using integer_one_node.
21687 (intersect_ranges): Likewise.
21688 (simplify_truth_ops_using_ranges): Likewise.
21689 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21690 (range_fits_type_p): Likewise.
21691 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21693 (simplify_conversion_using_ranges): Use wide-int interfaces.
21694 (simplify_float_conversion_using_ranges): Likewise.
21695 (vrp_finalize): Likewise.
21696 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21697 (gimple_stringops_transform): Likewise.
21698 * varasm.c (decode_addr_const): Likewise.
21699 (const_hash_1): Likewise.
21700 (const_rtx_hash_1): Likewise
21701 (output_constant): Likewise.
21702 (array_size_for_constructor): Likewise.
21703 (output_constructor_regular_field): Likewise.
21704 (output_constructor_bitfield): Likewise.
21705 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21706 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21708 * gencheck.c: Define BITS_PER_UNIT.
21709 * wide-int.cc: New.
21711 * wide-int-print.cc: New.
21712 * wide-int-print.h: New.
21714 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21716 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21718 2014-05-06 Richard Biener <rguenther@suse.de>
21720 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21721 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21722 (TODO_verify_all): Adjust.
21723 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21724 TODO_verify_stmts and TODO_verify_rtl_sharing.
21725 * bb-reorder.c: Likewise.
21726 * cfgexpand.c: Likewise.
21727 * cprop.c: Likewise.
21729 * function.c: Likewise.
21730 * fwprop.c: Likewise.
21731 * gcse.c: Likewise.
21732 * gimple-ssa-isolate-paths.c: Likewise.
21733 * gimple-ssa-strength-reduction.c: Likewise.
21734 * ipa-split.c: Likewise.
21735 * loop-init.c: Likewise.
21736 * loop-unroll.c: Likewise.
21737 * lower-subreg.c: Likewise.
21738 * modulo-sched.c: Likewise.
21739 * postreload-gcse.c: Likewise.
21740 * predict.c: Likewise.
21741 * recog.c: Likewise.
21742 * sched-rgn.c: Likewise.
21743 * store-motion.c: Likewise.
21744 * tracer.c: Likewise.
21745 * trans-mem.c: Likewise.
21746 * tree-call-cdce.c: Likewise.
21747 * tree-cfg.c: Likewise.
21748 * tree-cfgcleanup.c: Likewise.
21749 * tree-complex.c: Likewise.
21750 * tree-eh.c: Likewise.
21751 * tree-emutls.c: Likewise.
21752 * tree-if-conv.c: Likewise.
21753 * tree-into-ssa.c: Likewise.
21754 * tree-loop-distribution.c: Likewise.
21755 * tree-object-size.c: Likewise.
21756 * tree-parloops.c: Likewise.
21757 * tree-pass.h: Likewise.
21758 * tree-sra.c: Likewise.
21759 * tree-ssa-ccp.c: Likewise.
21760 * tree-ssa-copy.c: Likewise.
21761 * tree-ssa-copyrename.c: Likewise.
21762 * tree-ssa-dce.c: Likewise.
21763 * tree-ssa-dom.c: Likewise.
21764 * tree-ssa-dse.c: Likewise.
21765 * tree-ssa-forwprop.c: Likewise.
21766 * tree-ssa-ifcombine.c: Likewise.
21767 * tree-ssa-loop-ch.c: Likewise.
21768 * tree-ssa-loop-ivcanon.c: Likewise.
21769 * tree-ssa-loop.c: Likewise.
21770 * tree-ssa-math-opts.c: Likewise.
21771 * tree-ssa-phiopt.c: Likewise.
21772 * tree-ssa-phiprop.c: Likewise.
21773 * tree-ssa-pre.c: Likewise.
21774 * tree-ssa-reassoc.c: Likewise.
21775 * tree-ssa-sink.c: Likewise.
21776 * tree-ssa-strlen.c: Likewise.
21777 * tree-ssa-tail-merge.c: Likewise.
21778 * tree-ssa-uncprop.c: Likewise.
21779 * tree-switch-conversion.c: Likewise.
21780 * tree-tailcall.c: Likewise.
21781 * tree-vect-generic.c: Likewise.
21782 * tree-vectorizer.c: Likewise.
21783 * tree-vrp.c: Likewise.
21784 * tsan.c: Likewise.
21785 * var-tracking.c: Likewise.
21786 * bt-load.c: Likewise.
21787 * cfgcleanup.c: Likewise.
21788 * combine-stack-adj.c: Likewise.
21789 * combine.c: Likewise.
21790 * compare-elim.c: Likewise.
21791 * config/epiphany/resolve-sw-modes.c: Likewise.
21792 * config/i386/i386.c: Likewise.
21793 * config/mips/mips.c: Likewise.
21794 * config/s390/s390.c: Likewise.
21795 * config/sh/sh_treg_combine.cc: Likewise.
21796 * config/sparc/sparc.c: Likewise.
21799 * final.c: Likewise.
21800 * ifcvt.c: Likewise.
21801 * mode-switching.c: Likewise.
21802 * passes.c: Likewise.
21803 * postreload.c: Likewise.
21805 * reg-stack.c: Likewise.
21806 * regcprop.c: Likewise.
21807 * regrename.c: Likewise.
21810 2014-05-06 Richard Biener <rguenther@suse.de>
21812 PR middle-end/61070
21813 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21814 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21816 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
21819 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21821 2014-05-05 Radovan Obradovic <robradovic@mips.com>
21822 Tom de Vries <tom@codesourcery.com>
21824 * target.def (call_fusage_contains_non_callee_clobbers): New
21826 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21828 (@node Miscellaneous Register Hooks): New node.
21829 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21830 * doc/tm.texi: Regenerate.
21832 2014-05-05 Marek Polacek <polacek@redhat.com>
21835 * opts.c (common_handle_option): Call error_at instead of warning_at.
21837 2014-05-05 Richard Biener <rguenther@suse.de>
21839 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21840 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
21841 under the TODO_verify_il umbrella.
21843 2014-05-05 Richard Biener <rguenther@suse.de>
21845 * passes.c (execute_function_todo): Move TODO_verify_flow under
21846 the TODO_verify_ul umbrella.
21848 2014-05-05 Richard Biener <rguenther@suse.de>
21850 PR middle-end/61010
21851 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21852 X & CST away from a CST that is the mask of a mode.
21854 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21856 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21857 int argument to enum machine_mode.
21858 (picochip_class_max_nregs): Ditto.
21859 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21860 (picochip_class_max_nregs): Ditto.
21862 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21864 * target.def: Add new target hook.
21865 * doc/tm.texi: Regenerate.
21866 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21867 * targhooks.c (default_keep_leaf_when_profiled): New function.
21869 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21870 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21872 2014-05-05 Bin Cheng <bin.cheng@arm.com>
21874 PR tree-optimization/60363
21875 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21876 (copy_phi_args): New parameters. Call get_value_locus_in_path.
21877 (update_destination_phis): New parameter.
21878 (create_edge_and_update_destination_phis): Ditto.
21879 (ssa_fix_duplicate_block_edges): Pass new arguments.
21880 (thread_single_edge): Ditto.
21882 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
21884 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21885 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21886 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21887 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21888 Use RS6000_BTM_HARD_FLOAT.
21889 (BU_MISC_2): Likewise.
21890 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21891 RS6000_BTM_HARD_FLOAT.
21892 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21893 is explicitly used.
21894 (rs6000_invalid_builtin): Add hard floating builtin support.
21895 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21896 hard float builtins.
21897 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21899 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21901 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21902 Add missing function* argument.
21904 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21906 * lra-constraints.c (valid_address_p): Move earlier in file.
21907 Add a constraint argument to the address_info version.
21908 (satisfies_memory_constraint_p): New function.
21909 (satisfies_address_constraint_p): Likewise.
21910 (process_alt_operands, curr_insn_transform): Use them.
21911 (process_address): Pass the constraint to valid_address_p when
21912 checking address operands.
21914 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21916 * config/mips/mips.c (mips_isa_rev): New variable.
21917 (mips_set_architecture): Set it.
21918 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21920 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21921 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21922 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21923 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21924 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21925 conditions in terms of mips_isa_rev.
21926 (mips_isa_rev): Declare.
21928 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21930 * config/sh/sh-mem.cc: Use tabs instead of spaces.
21931 (prob_unlikely, prob_likely): Make variables const.
21933 2014-05-03 Denis Chertykov <chertykov@gmail.com>
21935 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21937 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21939 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21941 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21943 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21944 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21945 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21947 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21948 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21950 Replace usage of ROUND_REG with sh_round_reg.
21951 Use CEIL instead of ROUND_ADVANCE.
21953 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21956 * config/sh/sh.c: Include stdlib headers before everything else.
21958 2014-05-02 Jakub Jelinek <jakub@redhat.com>
21960 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21961 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21962 (gimplify_adjust_omp_clauses): Simd region is never
21963 directly nested in combined parallel. Instead, for linear
21964 with copyin/copyout, if in combined for simd loop, make decl
21965 firstprivate/lastprivate on OMP_FOR.
21966 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21967 expand_omp_for_static_chunk): When setting endvar, also set
21968 fd->loop.v to the same value.
21970 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21972 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21974 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
21976 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21979 2014-05-02 Marek Polacek <polacek@redhat.com>
21981 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21983 2014-05-02 Kito Cheng <kito@0xlab.org>
21985 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21986 to a C expression marco.
21987 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21988 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21989 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21990 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21991 HONOR_REG_ALLOC_ORDER.
21992 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21994 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21996 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21998 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22000 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22002 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22004 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22005 (convert_scalar_cond_reduction): Likewise.
22006 (predicate_scalar_phi): Add recognition and transformation
22007 of simple conditioanl reduction to be vectorizable.
22009 2014-05-01 Marek Polacek <polacek@redhat.com>
22012 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22014 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22016 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22017 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22018 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22019 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22020 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22021 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22022 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22023 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22025 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22027 * config/arc/arc.opt (mlra): Move comment above option name
22028 to avoid mis-parsing as language options.
22030 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22032 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22033 * config/sol2.h: ... here.
22034 * config/sol2-10.h: Remove.
22036 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22037 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22038 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22039 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22040 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22041 * config/sol2.h: ... here.
22042 (SECTION_NAME_FORMAT): Don't redefine.
22043 (STARTFILE_ARCH32_SPEC): Rename to ...
22044 (STARTFILE_ARCH_SPEC): ... this.
22045 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22046 * config/sparc/sol2.h: ... here.
22047 (SECTION_NAME_FORMAT): Don't undef.
22048 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22049 (SUBTARGET_EXTRA_SPECS): Remove.
22050 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22052 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22053 (MD_STARTFILE_PREFIX): Remove.
22054 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22055 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22056 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22057 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22058 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22059 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22060 * config/i386/sol2.h: ... here.
22061 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22062 * config/i386/sol2-bi.h: Remove.
22063 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22064 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22066 * config/i386/t-sol2-64: Rename to ...
22067 * config/i386/t-sol2: ... this.
22068 * config/sparc/t-sol2-64: Rename to ...
22069 * config/sparc/t-sol2: ... this.
22071 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22072 sol2_tm_file_head, sol2_tm_file_tail.
22073 Include ${cpu_type}/sol2.h before sol2.h.
22075 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22076 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22077 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22078 Reflect i386/t-sol2-64 renaming.
22079 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22080 Reflect sparc/t-sol2-64 renaming.
22082 2014-04-30 Richard Biener <rguenther@suse.de>
22084 * passes.c (execute_function_todo): Move TODO_verify_stmts
22085 and TODO_verify_ssa under the TODO_verify_il umbrella.
22086 * tree-ssa.h (verify_ssa): Adjust prototype.
22087 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22088 we should verify SSA operands.
22089 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22090 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22091 whether we should verify whether not throwing stmts have EH info.
22092 * graphite-scop-detection.c (create_sese_edges): Adjust.
22093 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22094 * tree-eh.c (lower_try_finally_switch): Do not add the
22095 default case label twice.
22097 2014-04-30 Marek Polacek <polacek@redhat.com>
22099 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22100 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22101 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22102 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22104 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22106 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22107 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22108 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22109 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22110 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22111 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22112 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22113 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22115 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22117 * tree-cfg.c (dump_function_to_file): Dump the return type of
22118 functions, in a line to itself before the function body, mimicking
22119 the layout of a C function.
22121 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22123 PR tree-optimization/60971
22124 * tree-tailcall.c (process_assignment): Reject conversions which
22127 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22129 * calls.c (initialize_argument_information): Always treat
22130 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22131 (expand_call): Likewise.
22132 (emit_library_call_calue_1): Likewise.
22133 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22134 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22137 2014-04-29 Nick Clifton <nickc@redhat.com>
22139 * config/msp430/msp430.md (umulsidi): Fix typo.
22140 (mulhisi3): Enable even inside interrupt handlers.
22141 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22142 bigger return address pushed in large mode.
22144 2014-04-29 Nick Clifton <nickc@redhat.com>
22146 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22147 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22149 * config/m32r/m32r.c (init_reg_tables): Likewise.
22150 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22151 enum to hold the modes.
22153 2014-04-29 Richard Biener <rguenther@suse.de>
22155 * dominance.c (free_dominance_info): Add overload with
22156 function parameter.
22157 (dom_info_state): Likewise.
22158 (dom_info_available_p): Likewise.
22159 * basic-block.h (free_dominance_info, dom_info_state,
22160 dom_info_available_p): Declare overloads.
22161 * passes.c (execute_function_todo): Verify that verifiers
22162 don't change dominator info state. Drop dominator info
22163 for IPA pass invocations.
22164 * cgraph.c (release_function_body): Restore asserts that
22165 dominator information is released.
22167 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22169 * doc/invoke.texi: Fix typo.
22170 * tree-vrp.c: Fix typos.
22171 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22173 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22175 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22177 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22179 * config/aarch64/aarch64-builtins.c
22180 (aarch64_types_storestruct_lane_qualifiers): New.
22181 (TYPES_STORESTRUCT_LANE): Likewise.
22182 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22183 (st3_lane): Likewise.
22184 (st4_lane): Likewise.
22185 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22186 (vec_store_lanesci_lane<mode>): Likewise.
22187 (vec_store_lanesxi_lane<mode>): Likewise.
22188 (aarch64_st2_lane<VQ:mode>): Likewise.
22189 (aarch64_st3_lane<VQ:mode>): Likewise.
22190 (aarch64_st4_lane<VQ:mode>): Likewise.
22191 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22192 * config/aarch64/arm_neon.h
22193 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22194 use new macro arguments.
22195 (__ST3_LANE_FUNC): Likewise.
22196 (__ST4_LANE_FUNC): Likewise.
22197 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22198 (V_THREE_ELEM): Likewise.
22199 (V_FOUR_ELEM): Likewise.
22201 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22203 * doc/gimple.texi: Replace the description of the now-defunct
22204 union gimple_statement_d with a diagram showing the
22205 gimple_statement_base class hierarchy and its relationships to
22206 the GSS_ and GIMPLE_ enums.
22208 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22210 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22211 * config/aarch64/aarch64.c
22212 (aarch64_cannot_change_mode_class): Weaken conditions.
22213 (aarch64_modes_tieable_p): New.
22214 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22216 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22218 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22219 (loadsync_<mode>): Change mode.
22220 (load_quadpti, store_quadpti): New.
22221 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22222 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22224 2014-04-28 Martin Jambor <mjambor@suse.cz>
22226 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22227 same alias type as the original statement.
22228 (subreplacement_assignment_data): New type.
22229 (handle_unscalarized_data_in_subtree): New type of parameter,
22230 generate new memory accesses with same alias type as the original
22232 (load_assign_lhs_subreplacements): Likewise.
22233 (sra_modify_constructor_assign): Generate new memory accesses with
22234 same alias type as the original statement.
22236 2014-04-28 Richard Biener <rguenther@suse.de>
22238 * tree-pass.h (TODO_verify_il): Define.
22239 (TODO_verify_all): Complete properly.
22240 * passes.c (execute_function_todo): Move existing loop-closed
22241 SSA verification under TODO_verify_il.
22242 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22243 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22244 Fix tree sharing issue.
22246 2014-04-28 Richard Biener <rguenther@suse.de>
22248 PR middle-end/60092
22249 * builtins.def (DEF_C11_BUILTIN): Add.
22250 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22251 * coretypes.h (enum function_class): Add function_c11_misc.
22252 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22253 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22254 (call_may_clobber_ref_p_1): Likewise.
22255 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22256 (mark_all_reaching_defs_necessary_1): Likewise.
22257 (propagate_necessity): Likewise.
22258 (eliminate_unnecessary_stmts): Likewise.
22259 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22261 2014-04-28 Richard Biener <rguenther@suse.de>
22263 * tree-vrp.c (vrp_var_may_overflow): Remove.
22264 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22265 with overflow immediately bump to one before that value and
22266 let iteration figure out overflow status.
22268 2014-04-28 Richard Biener <rguenther@suse.de>
22270 * configure.ac: Do valgrind header checks unconditionally.
22271 Add --enable-valgrind-annotations.
22272 * system.h: Guard valgrind header inclusion with
22273 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22274 * alloc-pool.c (pool_alloc, pool_free): Use
22275 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22276 to guard possibly dead code.
22277 * config.in: Regenerated.
22278 * configure: Likewise.
22280 2014-04-28 Jeff Law <law@redhat.com>
22282 PR tree-optimization/60902
22283 * tree-ssa-threadedge.c
22284 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22285 over real defs when invalidating outputs from statements that do not
22286 produce useful outputs for threading.
22288 2014-04-28 Richard Biener <rguenther@suse.de>
22290 PR tree-optimization/60979
22291 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22292 SCOPs that end in a block with a successor with abnormal
22295 2014-04-28 Richard Biener <rguenther@suse.de>
22297 * tree-pass.h (execute_pass_list): Adjust prototype.
22298 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22299 (do_per_function): Change callback signature, push all actual
22300 work to the callbals.
22301 (do_per_function_toporder): Likewise.
22302 (execute_function_dump): Adjust.
22303 (execute_function_todo): Likewise.
22304 (clear_last_verified): Likewise.
22305 (verify_curr_properties): Likewise.
22306 (update_properties_after_pass): Likewise.
22307 (execute_pass_list_1): Split out from ...
22308 (execute_pass_list): ... here. Adjust.
22309 (execute_ipa_pass_list): Likewise.
22310 * cgraphunit.c (cgraph_add_new_function): Adjust.
22311 (analyze_function): Likewise.
22312 (expand_function): Likewise.
22313 * cgraph.c (release_function_body): Free dominance info
22314 here instead of asserting it was magically freed elsewhere.
22316 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22318 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22319 * configure: Regenerate.
22320 * config/sparc/sparc.opt (muser-mode): New option.
22321 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22323 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22324 * doc/invoke.texi (SPARC options): Document -muser-mode.
22326 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22328 * cselib.c (find_slot_memmode): Delete.
22329 (cselib_hasher): Change compare_type to a struct.
22330 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22332 (preserve_constants_and_equivs): Adjust for new compare_type.
22333 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22334 (wrap_constant): Delete.
22335 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22337 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22339 * doc/install.texi (Building with profile feedback): Remove
22342 2014-04-26 Tom de Vries <tom@codesourcery.com>
22344 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22347 2014-04-25 Cary Coutant <ccoutant@google.com>
22350 * dwarf2out.c (should_move_die_to_comdat): A type definition
22351 can contain a subprogram definition, but don't move it to a
22353 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22354 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22356 (clone_tree_hash): Rename to...
22357 (clone_tree_partial): ...this; change callers. Copy
22358 DW_TAG_subprogram DIEs as declarations.
22359 (copy_decls_walk): Don't copy children of a declaration into a
22362 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22365 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22368 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22370 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22371 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22373 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22376 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22378 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22380 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22382 PR tree-optimization/60930
22383 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22384 creating a multiply candidate by folding two constant
22385 multiplicands when the result overflows.
22387 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22389 PR tree-optimization/60960
22390 * tree-vect-generic.c (expand_vector_operation): Only call
22391 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22393 2014-04-25 Tom de Vries <tom@codesourcery.com>
22395 * expr.c (clobber_reg_mode): New function.
22396 * expr.h (clobber_reg): New function.
22398 2014-04-25 Tom de Vries <tom@codesourcery.com>
22400 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22403 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22404 Tom de Vries <tom@codesourcery.com>
22406 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22408 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22409 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22410 new argument to find_all_hard_reg_sets call.
22412 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22414 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22415 Use HOST_WIDE_INT_C for mask literal.
22416 (aarch_rev16_shleft_mask_imm_p): Likewise.
22418 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22421 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22423 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22425 PR preprocessor/56540
22426 * config/i386/i386-c.c (ix86_target_macros): Define
22427 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22429 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22431 * configure.ac (tga_func): Remove.
22432 (LIB_TLS_SPEC): Remove.
22433 * configure: Regenerate.
22434 * config.in: Regenerate.
22435 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22437 2014-04-25 Richard Biener <rguenther@suse.de>
22440 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22441 call stmt use/clobber sets during stmt walk instead of
22442 walking the possibly incomplete set of caller edges.
22444 2014-04-25 Richard Biener <rguenther@suse.de>
22447 * passes.c (apply_ipa_transforms): Inline into only caller ...
22448 (execute_one_pass): ... here. Properly bring in function
22449 bodies for nodes we want to apply IPA transforms to.
22451 2014-04-24 Cong Hou <congh@google.com>
22453 PR tree-optimization/60896
22454 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22455 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22456 (vect_mark_pattern_stmts): Set the def type of all statements in
22457 PATTERN_DEF_SEQ as vect_internal_def.
22459 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22461 * doc/extend.texi (PowerPC Built-in Functions): Document new
22462 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22463 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22465 * config/rs6000/predicates.md (const_0_to_3_operand): New
22466 predicate to match 0..3 integer constants.
22468 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22469 to support adding miscellaneous builtin functions.
22470 (BU_DFP_MISC_2): Likewise.
22471 (BU_P7_MISC_1): Likewise.
22472 (BU_P7_MISC_2): Likewise.
22473 (BU_P8V_MISC_3): Likewise.
22474 (BU_MISC_1): Likewise.
22475 (BU_MISC_2): Likewise.
22476 (DIVWE): Add extended divide builtin functions.
22477 (DIVWEO): Likewise.
22478 (DIVWEU): Likewise.
22479 (DIVWEUO): Likewise.
22481 (DIVDEO): Likewise.
22482 (DIVDEU): Likewise.
22483 (DIVDEUO): Likewise.
22484 (DXEX): Add decimal floating-point builtin functions.
22486 (DDEDPD): Likewise.
22487 (DDEDPDQ): Likewise.
22488 (DENBCD): Likewise.
22489 (DENBCDQ): Likewise.
22493 (DSCLIQ): Likewise.
22495 (DSCRIQ): Likewise.
22496 (CDTBCD): Add new BCD builtin functions.
22497 (CBCDTD): Likewise.
22498 (ADDG6S): Likewise.
22499 (BCDADD): Likewise.
22500 (BCDADD_LT): Likewise.
22501 (BCDADD_EQ): Likewise.
22502 (BCDADD_GT): Likewise.
22503 (BCDADD_OV): Likewise.
22504 (BCDSUB): Likewise.
22505 (BCDSUB_LT): Likewise.
22506 (BCDSUB_EQ): Likewise.
22507 (BCDSUB_GT): Likewise.
22508 (BCDSUB_OV): Likewise.
22509 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22510 (UNPACK_TD): Likewise.
22511 (PACK_TF): Likewise.
22512 (UNPACK_TF): Likewise.
22513 (UNPACK_TF_0): Likewise.
22514 (UNPACK_TF_1): Likewise.
22515 (PACK_V1TI): Likewise.
22516 (UNPACK_V1TI): Likewise.
22518 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22519 support for decimal floating point builtin functions.
22520 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22521 functions that take constant arguments.
22522 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22523 (rs6000_init_builtins): Setup long double, _Decimal64, and
22524 _Decimal128 types for new builtin functions.
22525 (builtin_function_type): Set the unsigned flags appropriately for
22526 the new builtin functions.
22527 (rs6000_opt_masks): Add support for decimal floating point builtin
22530 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22531 floating point builtin functions.
22532 (RS6000_BTM_COMMON): Likewise.
22533 (RS6000_BTI_long_double): Likewise.
22534 (RS6000_BTI_dfloat64): Likewise.
22535 (RS6000_BTI_dfloat128): Likewise.
22536 (long_double_type_internal_node): Likewise.
22537 (dfloat64_type_internal_node): Likewise.
22538 (dfloat128_type_internal_node): Likewise.
22540 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22541 2.07 bcd arithmetic instructions.
22542 (UNSPEC_BCDSUB): Likewise.
22543 (UNSPEC_BCD_OVERFLOW): Likewise.
22544 (UNSPEC_BCD_ADD_SUB): Likewise.
22545 (bcd_add_sub): Likewise.
22546 (BCD_TEST): Likewise.
22547 (bcd<bcd_add_sub>): Likewise.
22548 (bcd<bcd_add_sub>_test): Likewise.
22549 (bcd<bcd_add_sub>_test2): Likewise.
22550 (bcd<bcd_add_sub>_<code>): Likewise.
22551 (peephole2 for combined bcd ops): Likewise.
22553 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22554 decimal floating point builtin functions.
22555 (UNSPEC_DENBCD): Likewise.
22556 (UNSPEC_DXEX): Likewise.
22557 (UNSPEC_DIEX): Likewise.
22558 (UNSPEC_DSCLI): Likewise.
22559 (UNSPEC_DSCRI): Likewise.
22560 (D64_D128): Likewise.
22561 (dfp_suffix): Likewise.
22562 (dfp_ddedpd_<mode>): Likewise.
22563 (dfp_denbcd_<mode>): Likewise.
22564 (dfp_dxex_<mode>): Likewise.
22565 (dfp_diex_<mode>): Likewise.
22566 (dfp_dscli_<mode>): Likewise.
22567 (dfp_dscri_<mode>): Likewise.
22569 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22571 (UNSPEC_CDTBCD): Likewise.
22572 (UNSPEC_CBCDTD): Likewise.
22573 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22574 (UNSPEC_DIVEO): Likewise.
22575 (UNSPEC_DIVEU): Likewise.
22576 (UNSPEC_DIVEUO): Likewise.
22577 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22578 pack/unpack 128-bit types.
22579 (UNSPEC_PACK_128BIT): Likewise.
22580 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22581 (udiv<mode>3): Use idiv_ldiv mode attribute.
22582 (div<mode>3): Likewise.
22583 (addg6s): Add new BCD builtin functions.
22584 (cdtbcd): Likewise.
22585 (cbcdtd): Likewise.
22586 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22587 (div_extend): Likewise.
22588 (div<div_extend>_<mode>"): Likewise.
22589 (FP128_64): Add support for new builtin functions to pack/unpack
22591 (unpack<mode>): Likewise.
22592 (unpacktf_0): Likewise.
22593 (unpacktf_1): Likewise.
22594 (unpack<mode>_dm): Likewise.
22595 (unpack<mode>_nodm): Likewise.
22596 (pack<mode>): Likewise.
22597 (unpackv1ti): Likewise.
22598 (packv1ti): Likewise.
22600 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22602 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22605 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22607 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22608 * gimplify.c (omp_is_private): Change last argument's type to int.
22609 Only diagnose lastprivate if the simd argument is 1, only diagnose
22610 linear if the simd argument is 2.
22611 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22612 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22613 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22614 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22615 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22616 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22617 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22618 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22619 * tree-nested.c (convert_nonlocal_omp_clauses,
22620 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22622 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22625 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22628 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22630 * flag-types.h (enum ivar_visibility): Add.
22632 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22634 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22635 function * argument.
22637 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22639 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22641 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22642 Tom de Vries <tom@codesourcery.com>
22644 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22645 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22647 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22648 * emit-rtl.c (try_split): Same.
22650 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22651 Tom de Vries <tom@codesourcery.com>
22653 * common.opt (fuse-caller-save): New option.
22655 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22657 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22658 elements for big-endian.
22660 2014-04-24 Richard Biener <rguenther@suse.de>
22662 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22663 during TER and instead use the sepops interface for expanding
22664 non-GIMPLE_SINGLE_RHS.
22666 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22668 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22669 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22671 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22673 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22674 assembler 64-bit option.
22675 * configure: Regenerate.
22677 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22679 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22680 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22681 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22682 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22683 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22685 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22687 * config/aarch64/aarch64-builtins.c
22688 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22689 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22690 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22691 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22693 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22694 (Vrevsuff): New mode attribute.
22696 2014-04-24 Terry Guo <terry.guo@arm.com>
22698 * config/arm/arm.h (machine_function): Define variable
22699 after_arm_reorg here.
22700 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22701 (arm_split_constant): Update the way to access variable
22703 (arm_reorg): Ditto.
22704 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22706 2014-04-23 Tom de Vries <tom@codesourcery.com>
22708 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22710 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22712 * is-a.h: Update comments to reflect the following changes to the
22713 "pointerness" of the API, making the template parameter match the
22714 return type, allowing use of is-a.h with typedefs of pointers.
22715 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22716 that the return type matches the parameter to the is_a_helper.
22718 (dyn_cast): Likewise.
22720 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22721 pointer from the is-a.h API.
22723 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22724 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22726 (is_a_helper <varpool_node>::test): Likewise, convert to...
22727 (is_a_helper <varpool_node *>::test): ...this.
22729 (varpool_first_variable): Update for removal of implicit pointer
22730 from the is-a.h API.
22731 (varpool_next_variable): Likewise.
22732 (varpool_first_static_initializer): Likewise.
22733 (varpool_next_static_initializer): Likewise.
22734 (varpool_first_defined_variable): Likewise.
22735 (varpool_next_defined_variable): Likewise.
22736 (cgraph_first_defined_function): Likewise.
22737 (cgraph_next_defined_function): Likewise.
22738 (cgraph_first_function): Likewise.
22739 (cgraph_next_function): Likewise.
22740 (cgraph_first_function_with_gimple_body): Likewise.
22741 (cgraph_next_function_with_gimple_body): Likewise.
22742 (cgraph_alias_target): Likewise.
22743 (varpool_alias_target): Likewise.
22744 (cgraph_function_or_thunk_node): Likewise.
22745 (varpool_variable_node): Likewise.
22746 (symtab_real_symbol_p): Likewise.
22747 * cgraphunit.c (referred_to_p): Likewise.
22748 (analyze_functions): Likewise.
22749 (handle_alias_pairs): Likewise.
22750 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22751 * gimple-ssa.h (gimple_vuse_op): Likewise.
22752 (gimple_vdef_op): Likewise.
22753 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22754 * gimple.c (gimple_build_asm_1): Likewise.
22755 (gimple_build_try): Likewise.
22756 (gimple_build_resx): Likewise.
22757 (gimple_build_eh_dispatch): Likewise.
22758 (gimple_build_omp_for): Likewise.
22759 (gimple_omp_for_set_clauses): Likewise.
22761 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22762 (is_a_helper <gimple_statement_asm *>::test): ...this.
22763 (is_a_helper <gimple_statement_bind>::test): Convert to...
22764 (is_a_helper <gimple_statement_bind *>::test): ...this.
22765 (is_a_helper <gimple_statement_call>::test): Convert to...
22766 (is_a_helper <gimple_statement_call *>::test): ...this.
22767 (is_a_helper <gimple_statement_catch>::test): Convert to...
22768 (is_a_helper <gimple_statement_catch *>::test): ...this.
22769 (is_a_helper <gimple_statement_resx>::test): Convert to...
22770 (is_a_helper <gimple_statement_resx *>::test): ...this.
22771 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22772 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22773 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22774 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22775 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22776 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22777 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22778 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22779 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22780 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22781 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22782 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22783 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22784 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22785 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22786 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22787 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22788 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22789 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22790 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22791 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22792 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22793 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22794 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22795 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22796 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22797 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22798 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22799 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22800 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22801 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22802 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22803 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22804 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22805 (is_a_helper <gimple_statement_phi>::test): Convert to...
22806 (is_a_helper <gimple_statement_phi *>::test): ...this.
22807 (is_a_helper <gimple_statement_transaction>::test): Convert to...
22808 (is_a_helper <gimple_statement_transaction *>::test): ...this.
22809 (is_a_helper <gimple_statement_try>::test): Convert to...
22810 (is_a_helper <gimple_statement_try *>::test): ...this.
22811 (is_a_helper <gimple_statement_wce>::test): Convert to...
22812 (is_a_helper <gimple_statement_wce *>::test): ...this.
22813 (is_a_helper <const gimple_statement_asm>::test): Convert to...
22814 (is_a_helper <const gimple_statement_asm *>::test): ...this.
22815 (is_a_helper <const gimple_statement_bind>::test): Convert to...
22816 (is_a_helper <const gimple_statement_bind *>::test): ...this.
22817 (is_a_helper <const gimple_statement_call>::test): Convert to...
22818 (is_a_helper <const gimple_statement_call *>::test): ...this.
22819 (is_a_helper <const gimple_statement_catch>::test): Convert to...
22820 (is_a_helper <const gimple_statement_catch *>::test): ...this.
22821 (is_a_helper <const gimple_statement_resx>::test): Convert to...
22822 (is_a_helper <const gimple_statement_resx *>::test): ...this.
22823 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22824 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22825 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22826 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22827 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22829 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22831 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22833 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22835 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22836 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22837 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22839 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22840 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22842 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22843 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22844 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22845 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22846 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22847 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22849 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22850 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22851 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22852 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22854 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22855 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22856 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22857 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22858 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22859 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22860 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22861 (is_a_helper <const gimple_statement_phi>::test): Convert to...
22862 (is_a_helper <const gimple_statement_phi *>::test): ...this.
22863 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22864 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22865 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22866 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22867 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22868 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22869 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22871 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22873 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22874 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22876 (gimple_use_ops): Update for removal of implicit pointer from the
22878 (gimple_set_use_ops): Likewise.
22879 (gimple_vuse): Likewise.
22880 (gimple_vdef): Likewise.
22881 (gimple_vuse_ptr): Likewise.
22882 (gimple_vdef_ptr): Likewise.
22883 (gimple_set_vuse): Likewise.
22884 (gimple_set_vdef): Likewise.
22885 (gimple_omp_return_set_lhs): Likewise.
22886 (gimple_omp_return_lhs): Likewise.
22887 (gimple_omp_return_lhs_ptr): Likewise.
22888 (gimple_call_fntype): Likewise.
22889 (gimple_call_set_fntype): Likewise.
22890 (gimple_call_set_internal_fn): Likewise.
22891 (gimple_call_use_set): Likewise.
22892 (gimple_call_clobber_set): Likewise.
22893 (gimple_bind_vars): Likewise.
22894 (gimple_bind_set_vars): Likewise.
22895 (gimple_bind_body_ptr): Likewise.
22896 (gimple_bind_set_body): Likewise.
22897 (gimple_bind_add_stmt): Likewise.
22898 (gimple_bind_block): Likewise.
22899 (gimple_bind_set_block): Likewise.
22900 (gimple_asm_ninputs): Likewise.
22901 (gimple_asm_noutputs): Likewise.
22902 (gimple_asm_nclobbers): Likewise.
22903 (gimple_asm_nlabels): Likewise.
22904 (gimple_asm_input_op): Likewise.
22905 (gimple_asm_input_op_ptr): Likewise.
22906 (gimple_asm_output_op): Likewise.
22907 (gimple_asm_output_op_ptr): Likewise.
22908 (gimple_asm_set_output_op): Likewise.
22909 (gimple_asm_clobber_op): Likewise.
22910 (gimple_asm_set_clobber_op): Likewise.
22911 (gimple_asm_label_op): Likewise.
22912 (gimple_asm_set_label_op): Likewise.
22913 (gimple_asm_string): Likewise.
22914 (gimple_catch_types): Likewise.
22915 (gimple_catch_types_ptr): Likewise.
22916 (gimple_catch_handler_ptr): Likewise.
22917 (gimple_catch_set_types): Likewise.
22918 (gimple_catch_set_handler): Likewise.
22919 (gimple_eh_filter_types): Likewise.
22920 (gimple_eh_filter_types_ptr): Likewise.
22921 (gimple_eh_filter_failure_ptr): Likewise.
22922 (gimple_eh_filter_set_types): Likewise.
22923 (gimple_eh_filter_set_failure): Likewise.
22924 (gimple_eh_must_not_throw_fndecl): Likewise.
22925 (gimple_eh_must_not_throw_set_fndecl): Likewise.
22926 (gimple_eh_else_n_body_ptr): Likewise.
22927 (gimple_eh_else_e_body_ptr): Likewise.
22928 (gimple_eh_else_set_n_body): Likewise.
22929 (gimple_eh_else_set_e_body): Likewise.
22930 (gimple_try_eval_ptr): Likewise.
22931 (gimple_try_cleanup_ptr): Likewise.
22932 (gimple_try_set_eval): Likewise.
22933 (gimple_try_set_cleanup): Likewise.
22934 (gimple_wce_cleanup_ptr): Likewise.
22935 (gimple_wce_set_cleanup): Likewise.
22936 (gimple_phi_capacity): Likewise.
22937 (gimple_phi_num_args): Likewise.
22938 (gimple_phi_result): Likewise.
22939 (gimple_phi_result_ptr): Likewise.
22940 (gimple_phi_set_result): Likewise.
22941 (gimple_phi_arg): Likewise.
22942 (gimple_phi_set_arg): Likewise.
22943 (gimple_resx_region): Likewise.
22944 (gimple_resx_set_region): Likewise.
22945 (gimple_eh_dispatch_region): Likewise.
22946 (gimple_eh_dispatch_set_region): Likewise.
22947 (gimple_omp_critical_name): Likewise.
22948 (gimple_omp_critical_name_ptr): Likewise.
22949 (gimple_omp_critical_set_name): Likewise.
22950 (gimple_omp_for_clauses): Likewise.
22951 (gimple_omp_for_clauses_ptr): Likewise.
22952 (gimple_omp_for_set_clauses): Likewise.
22953 (gimple_omp_for_collapse): Likewise.
22954 (gimple_omp_for_index): Likewise.
22955 (gimple_omp_for_index_ptr): Likewise.
22956 (gimple_omp_for_set_index): Likewise.
22957 (gimple_omp_for_initial): Likewise.
22958 (gimple_omp_for_initial_ptr): Likewise.
22959 (gimple_omp_for_set_initial): Likewise.
22960 (gimple_omp_for_final): Likewise.
22961 (gimple_omp_for_final_ptr): Likewise.
22962 (gimple_omp_for_set_final): Likewise.
22963 (gimple_omp_for_incr): Likewise.
22964 (gimple_omp_for_incr_ptr): Likewise.
22965 (gimple_omp_for_set_incr): Likewise.
22966 (gimple_omp_for_pre_body_ptr): Likewise.
22967 (gimple_omp_for_set_pre_body): Likewise.
22968 (gimple_omp_parallel_clauses): Likewise.
22969 (gimple_omp_parallel_clauses_ptr): Likewise.
22970 (gimple_omp_parallel_set_clauses): Likewise.
22971 (gimple_omp_parallel_child_fn): Likewise.
22972 (gimple_omp_parallel_child_fn_ptr): Likewise.
22973 (gimple_omp_parallel_set_child_fn): Likewise.
22974 (gimple_omp_parallel_data_arg): Likewise.
22975 (gimple_omp_parallel_data_arg_ptr): Likewise.
22976 (gimple_omp_parallel_set_data_arg): Likewise.
22977 (gimple_omp_task_clauses): Likewise.
22978 (gimple_omp_task_clauses_ptr): Likewise.
22979 (gimple_omp_task_set_clauses): Likewise.
22980 (gimple_omp_task_child_fn): Likewise.
22981 (gimple_omp_task_child_fn_ptr): Likewise.
22982 (gimple_omp_task_set_child_fn): Likewise.
22983 (gimple_omp_task_data_arg): Likewise.
22984 (gimple_omp_task_data_arg_ptr): Likewise.
22985 (gimple_omp_task_set_data_arg): Likewise.
22986 (gimple_omp_taskreg_clauses): Likewise.
22987 (gimple_omp_taskreg_clauses_ptr): Likewise.
22988 (gimple_omp_taskreg_set_clauses): Likewise.
22989 (gimple_omp_taskreg_child_fn): Likewise.
22990 (gimple_omp_taskreg_child_fn_ptr): Likewise.
22991 (gimple_omp_taskreg_set_child_fn): Likewise.
22992 (gimple_omp_taskreg_data_arg): Likewise.
22993 (gimple_omp_taskreg_data_arg_ptr): Likewise.
22994 (gimple_omp_taskreg_set_data_arg): Likewise.
22995 (gimple_omp_task_copy_fn): Likewise.
22996 (gimple_omp_task_copy_fn_ptr): Likewise.
22997 (gimple_omp_task_set_copy_fn): Likewise.
22998 (gimple_omp_task_arg_size): Likewise.
22999 (gimple_omp_task_arg_size_ptr): Likewise.
23000 (gimple_omp_task_set_arg_size): Likewise.
23001 (gimple_omp_task_arg_align): Likewise.
23002 (gimple_omp_task_arg_align_ptr): Likewise.
23003 (gimple_omp_task_set_arg_align): Likewise.
23004 (gimple_omp_single_clauses): Likewise.
23005 (gimple_omp_single_clauses_ptr): Likewise.
23006 (gimple_omp_single_set_clauses): Likewise.
23007 (gimple_omp_target_clauses): Likewise.
23008 (gimple_omp_target_clauses_ptr): Likewise.
23009 (gimple_omp_target_set_clauses): Likewise.
23010 (gimple_omp_target_child_fn): Likewise.
23011 (gimple_omp_target_child_fn_ptr): Likewise.
23012 (gimple_omp_target_set_child_fn): Likewise.
23013 (gimple_omp_target_data_arg): Likewise.
23014 (gimple_omp_target_data_arg_ptr): Likewise.
23015 (gimple_omp_target_set_data_arg): Likewise.
23016 (gimple_omp_teams_clauses): Likewise.
23017 (gimple_omp_teams_clauses_ptr): Likewise.
23018 (gimple_omp_teams_set_clauses): Likewise.
23019 (gimple_omp_sections_clauses): Likewise.
23020 (gimple_omp_sections_clauses_ptr): Likewise.
23021 (gimple_omp_sections_set_clauses): Likewise.
23022 (gimple_omp_sections_control): Likewise.
23023 (gimple_omp_sections_control_ptr): Likewise.
23024 (gimple_omp_sections_set_control): Likewise.
23025 (gimple_omp_for_set_cond): Likewise.
23026 (gimple_omp_for_cond): Likewise.
23027 (gimple_omp_atomic_store_set_val): Likewise.
23028 (gimple_omp_atomic_store_val): Likewise.
23029 (gimple_omp_atomic_store_val_ptr): Likewise.
23030 (gimple_omp_atomic_load_set_lhs): Likewise.
23031 (gimple_omp_atomic_load_lhs): Likewise.
23032 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23033 (gimple_omp_atomic_load_set_rhs): Likewise.
23034 (gimple_omp_atomic_load_rhs): Likewise.
23035 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23036 (gimple_omp_continue_control_def): Likewise.
23037 (gimple_omp_continue_control_def_ptr): Likewise.
23038 (gimple_omp_continue_set_control_def): Likewise.
23039 (gimple_omp_continue_control_use): Likewise.
23040 (gimple_omp_continue_control_use_ptr): Likewise.
23041 (gimple_omp_continue_set_control_use): Likewise.
23042 (gimple_transaction_body_ptr): Likewise.
23043 (gimple_transaction_label): Likewise.
23044 (gimple_transaction_label_ptr): Likewise.
23045 (gimple_transaction_set_body): Likewise.
23046 (gimple_transaction_set_label): Likewise.
23048 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23049 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23050 * ipa-ref.c (ipa_record_reference): Likewise.
23051 * ipa-reference.c (analyze_function): Likewise.
23052 (ipa_reference_write_optimization_summary): Likewise.
23053 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23054 (address_taken_from_non_vtable_p): Likewise.
23055 (comdat_can_be_unshared_p_1): Likewise.
23056 * lto-cgraph.c (lto_output_ref): Likewise.
23057 (add_references): Likewise.
23058 (compute_ltrans_boundary): Likewise.
23059 (output_symtab): Likewise.
23060 (input_ref): Likewise.
23061 (input_cgraph_1): Likewise.
23062 (output_cgraph_opt_summary): Likewise.
23063 * lto-streamer-out.c (lto_output): Likewise.
23064 (output_symbol_p): Likewise.
23065 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23066 (lsei_start_function_in_partition): Likewise.
23067 (lsei_next_variable_in_partition): Likewise.
23068 (lsei_start_variable_in_partition): Likewise.
23069 * symtab.c (insert_to_assembler_name_hash): Likewise.
23070 (unlink_from_assembler_name_hash): Likewise.
23071 (symtab_unregister_node): Likewise.
23072 (symtab_remove_node): Likewise.
23073 (dump_symtab_node): Likewise.
23074 (verify_symtab_base): Likewise.
23075 (verify_symtab_node): Likewise.
23076 (symtab_make_decl_local): Likewise.
23077 (symtab_alias_ultimate_target): Likewise.
23078 (symtab_resolve_alias): Likewise.
23079 (symtab_get_symbol_partitioning_class): Likewise.
23080 * tree-phinodes.c (allocate_phi_node): Likewise.
23081 (reserve_phi_args_for_new_edge): Likewise.
23082 (remove_phi_args): Likewise.
23083 * varpool.c (varpool_node_for_asm): Likewise.
23084 (varpool_remove_unreferenced_decls): Likewise.
23086 2014-04-23 Jeff Law <law@redhat.com>
23088 PR tree-optimization/60902
23089 * tree-ssa-threadedge.c
23090 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23091 invalidate outputs from statements that do not produce useful
23092 outputs for threading.
23094 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23096 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23097 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23098 machine descriptions for Stack Smashing Protector.
23100 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23102 * aarch64.md (<optab>_rol<mode>3): New pattern.
23103 (<optab>_rolsi3_uxtw): Likewise.
23104 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23106 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23108 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23109 (arm_cortex_a12_tune): Likewise.
23111 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23113 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23115 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23117 * config/arm/arm.md (arm_rev16si2): New pattern.
23118 (arm_rev16si2_alt): Likewise.
23119 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23121 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23123 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23124 (rev16<mode>2_alt): Likewise.
23125 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23126 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23127 (aarch_rev16_shleft_mask_imm_p): Likewise.
23128 (aarch_rev16_p_1): Likewise.
23129 (aarch_rev16_p): Likewise.
23130 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23131 (aarch_rev16_shright_mask_imm_p): Likewise.
23132 (aarch_rev16_shleft_mask_imm_p): Likewise.
23134 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23136 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23137 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23139 (cortex_a53_extra_costs): Likewise.
23140 (cortex_a57_extra_costs): Likewise.
23141 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23142 (cortexa7_extra_costs): Likewise.
23143 (cortexa8_extra_costs): Likewise.
23144 (cortexa12_extra_costs): Likewise.
23145 (cortexa15_extra_costs): Likewise.
23146 (v7m_extra_costs): Likewise.
23147 (arm_new_rtx_costs): Handle BSWAP.
23149 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23151 * config/arm/arm.c (cortexa8_extra_costs): New table.
23152 (arm_cortex_a8_tune): New tuning struct.
23153 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23155 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23157 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23159 2014-04-23 Richard Biener <rguenther@suse.de>
23161 * Makefile.in (OBJS): Remove loop-unswitch.o.
23162 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23163 * passes.def (pass_rtl_unswitch): Likewise.
23164 * loop-init.c (gate_rtl_unswitch): Likewise.
23165 (rtl_unswitch): Likewise.
23166 (pass_data_rtl_unswitch): Likewise.
23167 (pass_rtl_unswitch): Likewise.
23168 (make_pass_rtl_unswitch): Likewise.
23169 * rtl.h (reversed_condition): Likewise.
23170 (compare_and_jump_seq): Likewise.
23171 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23173 * loop-unroll.c (compare_and_jump_seq): Likewise.
23175 2014-04-23 Richard Biener <rguenther@suse.de>
23177 PR tree-optimization/60903
23178 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23179 commented code block.
23180 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23181 loop flags to newly created BBs and edges.
23183 2014-04-23 Nick Clifton <nickc@redhat.com>
23185 * config/msp430/msp430.c (msp430_handle_option): Move function
23187 (msp430_option_override): Simplify mcu and mcpu option handling.
23188 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23189 support for -mhwmult command line option.
23190 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23191 -mhwmult command line option.
23192 (msp430_hwmult_enabled): Delete.
23193 (msp43o_output_labelref): Add support for -mhwmult command line option.
23194 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23195 (umulsidi3): Likewise.
23196 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23197 (mcpu, mlarge, msmall): Likewise.
23198 (mhwmult): New option.
23199 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23201 (msp430_is_f5_mcu): Remove prototype.
23202 (msp430_use_f5_series_hwmult): Add prototype.
23203 * config/msp430/msp430-opts.h: New file.
23204 * common/config/msp430: New directory.
23205 * common/config/msp430/msp430-common.c: New file.
23206 * config.gcc (msp430): Remove target_has_targetm_common.
23207 * doc/invoke.texi: Document -mhwmult command line option.
23209 2014-04-23 Nick Clifton <nickc@redhat.com>
23211 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23212 default-manifest.o if it can be found in the search path.
23213 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23215 2014-04-23 Terry Guo <terry.guo@arm.com>
23217 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23219 2014-04-23 Richard Biener <rguenther@suse.de>
23221 PR middle-end/60895
23222 * tree-inline.c (declare_return_variable): Use mark_addressable.
23224 2014-04-23 Richard Biener <rguenther@suse.de>
23226 PR middle-end/60891
23227 * loop-init.c (loop_optimizer_init): Make sure to apply
23228 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23230 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23233 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23235 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23236 if flag_sanitize_undefined_trap_on_error.
23237 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23238 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23239 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23240 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23241 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23242 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23243 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23244 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23245 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23246 * ubsan.c (ubsan_instrument_unreachable): Return
23247 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23248 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23249 if flag_sanitize_undefined_trap_on_error and
23250 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23251 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23252 instrument_bool_enum_load): Emit __builtin_trap () if
23253 flag_sanitize_undefined_trap_on_error and
23254 __builtin_handle_*_abort () if !flag_sanitize_recover.
23255 * doc/invoke.texi (-fsanitize-recover,
23256 -fsanitize-undefined-trap-on-error): Document.
23258 2014-04-22 Christian Bruel <christian.bruel@st.com>
23260 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23261 Force immediates to SImode.
23263 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23265 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23266 (lroundsfsi2): New.
23267 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23268 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23269 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23270 (nios2_fpu_insn): Add entry for round.
23271 (N2FPU_NO_ERRNO_P): Define.
23272 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23274 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23276 2014-04-22 Richard Henderson <rth@redhat.com>
23278 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23279 (add<GPI>3_compare0): Remove leading * from name.
23280 (add<GPI>3_carryin): Likewise.
23281 (sub<GPI>3_compare0): Likewise.
23282 (sub<GPI>3_carryin): Likewise.
23283 (<su_optab>mulditi3): New expander.
23284 (multi3): New expander.
23285 (madd<GPI>): Remove leading * from name.
23287 2014-04-22 Martin Jambor <mjambor@suse.cz>
23289 * cgraphclones.c (cgraph_function_versioning): Copy
23290 ipa_transforms_to_apply instead of asserting it is empty.
23292 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23295 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23296 on count_exp to get mode.
23298 2014-04-22 Andrew Pinski <apinski@cavium.com>
23300 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23301 Handle TLS for ILP32.
23302 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23303 (tlsie_small_<mode>): this and handle PTR.
23304 (tlsie_small_sidi): New pattern.
23305 (tlsle_small): Change to an expand to handle ILP32.
23306 (tlsle_small_<mode>): New pattern.
23307 (tlsdesc_small): Rename to ...
23308 (tlsdesc_small_<mode>): this and handle PTR.
23310 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23312 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23314 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23316 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23317 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23318 (aarch64_types_signed_poly_qualifiers): Likewise.
23319 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23320 (aarch64_types_poly_signed_qualifiers): Likewise.
23321 (TYPES_REINTERP_SS): Type macro added.
23322 (TYPES_REINTERP_SU): Likewise.
23323 (TYPES_REINTERP_SP): Likewise.
23324 (TYPES_REINTERP_US): Likewise.
23325 (TYPES_REINTERP_PS): Likewise.
23326 (aarch64_fold_builtin): New expression folding added.
23327 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23328 Declarations removed.
23329 (REINTERP_SS): Declarations added.
23330 (REINTERP_US): Likewise.
23331 (REINTERP_PS): Likewise.
23332 (REINTERP_SU): Likewise.
23333 (REINTERP_SP): Likewise.
23334 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23335 (vreinterpretq_p8_f64): Likewise.
23336 (vreinterpret_p16_f64): Likewise.
23337 (vreinterpretq_p16_f64): Likewise.
23338 (vreinterpret_f32_f64): Likewise.
23339 (vreinterpretq_f32_f64): Likewise.
23340 (vreinterpret_f64_f32): Likewise.
23341 (vreinterpret_f64_p8): Likewise.
23342 (vreinterpret_f64_p16): Likewise.
23343 (vreinterpret_f64_s8): Likewise.
23344 (vreinterpret_f64_s16): Likewise.
23345 (vreinterpret_f64_s32): Likewise.
23346 (vreinterpret_f64_s64): Likewise.
23347 (vreinterpret_f64_u8): Likewise.
23348 (vreinterpret_f64_u16): Likewise.
23349 (vreinterpret_f64_u32): Likewise.
23350 (vreinterpret_f64_u64): Likewise.
23351 (vreinterpretq_f64_f32): Likewise.
23352 (vreinterpretq_f64_p8): Likewise.
23353 (vreinterpretq_f64_p16): Likewise.
23354 (vreinterpretq_f64_s8): Likewise.
23355 (vreinterpretq_f64_s16): Likewise.
23356 (vreinterpretq_f64_s32): Likewise.
23357 (vreinterpretq_f64_s64): Likewise.
23358 (vreinterpretq_f64_u8): Likewise.
23359 (vreinterpretq_f64_u16): Likewise.
23360 (vreinterpretq_f64_u32): Likewise.
23361 (vreinterpretq_f64_u64): Likewise.
23362 (vreinterpret_s64_f64): Likewise.
23363 (vreinterpretq_s64_f64): Likewise.
23364 (vreinterpret_u64_f64): Likewise.
23365 (vreinterpretq_u64_f64): Likewise.
23366 (vreinterpret_s8_f64): Likewise.
23367 (vreinterpretq_s8_f64): Likewise.
23368 (vreinterpret_s16_f64): Likewise.
23369 (vreinterpretq_s16_f64): Likewise.
23370 (vreinterpret_s32_f64): Likewise.
23371 (vreinterpretq_s32_f64): Likewise.
23372 (vreinterpret_u8_f64): Likewise.
23373 (vreinterpretq_u8_f64): Likewise.
23374 (vreinterpret_u16_f64): Likewise.
23375 (vreinterpretq_u16_f64): Likewise.
23376 (vreinterpret_u32_f64): Likewise.
23377 (vreinterpretq_u32_f64): Likewise.
23379 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23381 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23382 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23383 (vreinterpret_p8_s8): Likewise.
23384 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23385 (vreinterpret_p8_s16): Likewise.
23386 (vreinterpret_p8_s32): Likewise.
23387 (vreinterpret_p8_s64): Likewise.
23388 (vreinterpret_p8_f32): Likewise.
23389 (vreinterpret_p8_u8): Likewise.
23390 (vreinterpret_p8_u16): Likewise.
23391 (vreinterpret_p8_u32): Likewise.
23392 (vreinterpret_p8_u64): Likewise.
23393 (vreinterpret_p8_p16): Likewise.
23394 (vreinterpretq_p8_s8): Likewise.
23395 (vreinterpretq_p8_s16): Likewise.
23396 (vreinterpretq_p8_s32): Likewise.
23397 (vreinterpretq_p8_s64): Likewise.
23398 (vreinterpretq_p8_f32): Likewise.
23399 (vreinterpretq_p8_u8): Likewise.
23400 (vreinterpretq_p8_u16): Likewise.
23401 (vreinterpretq_p8_u32): Likewise.
23402 (vreinterpretq_p8_u64): Likewise.
23403 (vreinterpretq_p8_p16): Likewise.
23404 (vreinterpret_p16_s8): Likewise.
23405 (vreinterpret_p16_s16): Likewise.
23406 (vreinterpret_p16_s32): Likewise.
23407 (vreinterpret_p16_s64): Likewise.
23408 (vreinterpret_p16_f32): Likewise.
23409 (vreinterpret_p16_u8): Likewise.
23410 (vreinterpret_p16_u16): Likewise.
23411 (vreinterpret_p16_u32): Likewise.
23412 (vreinterpret_p16_u64): Likewise.
23413 (vreinterpret_p16_p8): Likewise.
23414 (vreinterpretq_p16_s8): Likewise.
23415 (vreinterpretq_p16_s16): Likewise.
23416 (vreinterpretq_p16_s32): Likewise.
23417 (vreinterpretq_p16_s64): Likewise.
23418 (vreinterpretq_p16_f32): Likewise.
23419 (vreinterpretq_p16_u8): Likewise.
23420 (vreinterpretq_p16_u16): Likewise.
23421 (vreinterpretq_p16_u32): Likewise.
23422 (vreinterpretq_p16_u64): Likewise.
23423 (vreinterpretq_p16_p8): Likewise.
23424 (vreinterpret_f32_s8): Likewise.
23425 (vreinterpret_f32_s16): Likewise.
23426 (vreinterpret_f32_s32): Likewise.
23427 (vreinterpret_f32_s64): Likewise.
23428 (vreinterpret_f32_u8): Likewise.
23429 (vreinterpret_f32_u16): Likewise.
23430 (vreinterpret_f32_u32): Likewise.
23431 (vreinterpret_f32_u64): Likewise.
23432 (vreinterpret_f32_p8): Likewise.
23433 (vreinterpret_f32_p16): Likewise.
23434 (vreinterpretq_f32_s8): Likewise.
23435 (vreinterpretq_f32_s16): Likewise.
23436 (vreinterpretq_f32_s32): Likewise.
23437 (vreinterpretq_f32_s64): Likewise.
23438 (vreinterpretq_f32_u8): Likewise.
23439 (vreinterpretq_f32_u16): Likewise.
23440 (vreinterpretq_f32_u32): Likewise.
23441 (vreinterpretq_f32_u64): Likewise.
23442 (vreinterpretq_f32_p8): Likewise.
23443 (vreinterpretq_f32_p16): Likewise.
23444 (vreinterpret_s64_s8): Likewise.
23445 (vreinterpret_s64_s16): Likewise.
23446 (vreinterpret_s64_s32): Likewise.
23447 (vreinterpret_s64_f32): Likewise.
23448 (vreinterpret_s64_u8): Likewise.
23449 (vreinterpret_s64_u16): Likewise.
23450 (vreinterpret_s64_u32): Likewise.
23451 (vreinterpret_s64_u64): Likewise.
23452 (vreinterpret_s64_p8): Likewise.
23453 (vreinterpret_s64_p16): Likewise.
23454 (vreinterpretq_s64_s8): Likewise.
23455 (vreinterpretq_s64_s16): Likewise.
23456 (vreinterpretq_s64_s32): Likewise.
23457 (vreinterpretq_s64_f32): Likewise.
23458 (vreinterpretq_s64_u8): Likewise.
23459 (vreinterpretq_s64_u16): Likewise.
23460 (vreinterpretq_s64_u32): Likewise.
23461 (vreinterpretq_s64_u64): Likewise.
23462 (vreinterpretq_s64_p8): Likewise.
23463 (vreinterpretq_s64_p16): Likewise.
23464 (vreinterpret_u64_s8): Likewise.
23465 (vreinterpret_u64_s16): Likewise.
23466 (vreinterpret_u64_s32): Likewise.
23467 (vreinterpret_u64_s64): Likewise.
23468 (vreinterpret_u64_f32): Likewise.
23469 (vreinterpret_u64_u8): Likewise.
23470 (vreinterpret_u64_u16): Likewise.
23471 (vreinterpret_u64_u32): Likewise.
23472 (vreinterpret_u64_p8): Likewise.
23473 (vreinterpret_u64_p16): Likewise.
23474 (vreinterpretq_u64_s8): Likewise.
23475 (vreinterpretq_u64_s16): Likewise.
23476 (vreinterpretq_u64_s32): Likewise.
23477 (vreinterpretq_u64_s64): Likewise.
23478 (vreinterpretq_u64_f32): Likewise.
23479 (vreinterpretq_u64_u8): Likewise.
23480 (vreinterpretq_u64_u16): Likewise.
23481 (vreinterpretq_u64_u32): Likewise.
23482 (vreinterpretq_u64_p8): Likewise.
23483 (vreinterpretq_u64_p16): Likewise.
23484 (vreinterpret_s8_s16): Likewise.
23485 (vreinterpret_s8_s32): Likewise.
23486 (vreinterpret_s8_s64): Likewise.
23487 (vreinterpret_s8_f32): Likewise.
23488 (vreinterpret_s8_u8): Likewise.
23489 (vreinterpret_s8_u16): Likewise.
23490 (vreinterpret_s8_u32): Likewise.
23491 (vreinterpret_s8_u64): Likewise.
23492 (vreinterpret_s8_p8): Likewise.
23493 (vreinterpret_s8_p16): Likewise.
23494 (vreinterpretq_s8_s16): Likewise.
23495 (vreinterpretq_s8_s32): Likewise.
23496 (vreinterpretq_s8_s64): Likewise.
23497 (vreinterpretq_s8_f32): Likewise.
23498 (vreinterpretq_s8_u8): Likewise.
23499 (vreinterpretq_s8_u16): Likewise.
23500 (vreinterpretq_s8_u32): Likewise.
23501 (vreinterpretq_s8_u64): Likewise.
23502 (vreinterpretq_s8_p8): Likewise.
23503 (vreinterpretq_s8_p16): Likewise.
23504 (vreinterpret_s16_s8): Likewise.
23505 (vreinterpret_s16_s32): Likewise.
23506 (vreinterpret_s16_s64): Likewise.
23507 (vreinterpret_s16_f32): Likewise.
23508 (vreinterpret_s16_u8): Likewise.
23509 (vreinterpret_s16_u16): Likewise.
23510 (vreinterpret_s16_u32): Likewise.
23511 (vreinterpret_s16_u64): Likewise.
23512 (vreinterpret_s16_p8): Likewise.
23513 (vreinterpret_s16_p16): Likewise.
23514 (vreinterpretq_s16_s8): Likewise.
23515 (vreinterpretq_s16_s32): Likewise.
23516 (vreinterpretq_s16_s64): Likewise.
23517 (vreinterpretq_s16_f32): Likewise.
23518 (vreinterpretq_s16_u8): Likewise.
23519 (vreinterpretq_s16_u16): Likewise.
23520 (vreinterpretq_s16_u32): Likewise.
23521 (vreinterpretq_s16_u64): Likewise.
23522 (vreinterpretq_s16_p8): Likewise.
23523 (vreinterpretq_s16_p16): Likewise.
23524 (vreinterpret_s32_s8): Likewise.
23525 (vreinterpret_s32_s16): Likewise.
23526 (vreinterpret_s32_s64): Likewise.
23527 (vreinterpret_s32_f32): Likewise.
23528 (vreinterpret_s32_u8): Likewise.
23529 (vreinterpret_s32_u16): Likewise.
23530 (vreinterpret_s32_u32): Likewise.
23531 (vreinterpret_s32_u64): Likewise.
23532 (vreinterpret_s32_p8): Likewise.
23533 (vreinterpret_s32_p16): Likewise.
23534 (vreinterpretq_s32_s8): Likewise.
23535 (vreinterpretq_s32_s16): Likewise.
23536 (vreinterpretq_s32_s64): Likewise.
23537 (vreinterpretq_s32_f32): Likewise.
23538 (vreinterpretq_s32_u8): Likewise.
23539 (vreinterpretq_s32_u16): Likewise.
23540 (vreinterpretq_s32_u32): Likewise.
23541 (vreinterpretq_s32_u64): Likewise.
23542 (vreinterpretq_s32_p8): Likewise.
23543 (vreinterpretq_s32_p16): Likewise.
23544 (vreinterpret_u8_s8): Likewise.
23545 (vreinterpret_u8_s16): Likewise.
23546 (vreinterpret_u8_s32): Likewise.
23547 (vreinterpret_u8_s64): Likewise.
23548 (vreinterpret_u8_f32): Likewise.
23549 (vreinterpret_u8_u16): Likewise.
23550 (vreinterpret_u8_u32): Likewise.
23551 (vreinterpret_u8_u64): Likewise.
23552 (vreinterpret_u8_p8): Likewise.
23553 (vreinterpret_u8_p16): Likewise.
23554 (vreinterpretq_u8_s8): Likewise.
23555 (vreinterpretq_u8_s16): Likewise.
23556 (vreinterpretq_u8_s32): Likewise.
23557 (vreinterpretq_u8_s64): Likewise.
23558 (vreinterpretq_u8_f32): Likewise.
23559 (vreinterpretq_u8_u16): Likewise.
23560 (vreinterpretq_u8_u32): Likewise.
23561 (vreinterpretq_u8_u64): Likewise.
23562 (vreinterpretq_u8_p8): Likewise.
23563 (vreinterpretq_u8_p16): Likewise.
23564 (vreinterpret_u16_s8): Likewise.
23565 (vreinterpret_u16_s16): Likewise.
23566 (vreinterpret_u16_s32): Likewise.
23567 (vreinterpret_u16_s64): Likewise.
23568 (vreinterpret_u16_f32): Likewise.
23569 (vreinterpret_u16_u8): Likewise.
23570 (vreinterpret_u16_u32): Likewise.
23571 (vreinterpret_u16_u64): Likewise.
23572 (vreinterpret_u16_p8): Likewise.
23573 (vreinterpret_u16_p16): Likewise.
23574 (vreinterpretq_u16_s8): Likewise.
23575 (vreinterpretq_u16_s16): Likewise.
23576 (vreinterpretq_u16_s32): Likewise.
23577 (vreinterpretq_u16_s64): Likewise.
23578 (vreinterpretq_u16_f32): Likewise.
23579 (vreinterpretq_u16_u8): Likewise.
23580 (vreinterpretq_u16_u32): Likewise.
23581 (vreinterpretq_u16_u64): Likewise.
23582 (vreinterpretq_u16_p8): Likewise.
23583 (vreinterpretq_u16_p16): Likewise.
23584 (vreinterpret_u32_s8): Likewise.
23585 (vreinterpret_u32_s16): Likewise.
23586 (vreinterpret_u32_s32): Likewise.
23587 (vreinterpret_u32_s64): Likewise.
23588 (vreinterpret_u32_f32): Likewise.
23589 (vreinterpret_u32_u8): Likewise.
23590 (vreinterpret_u32_u16): Likewise.
23591 (vreinterpret_u32_u64): Likewise.
23592 (vreinterpret_u32_p8): Likewise.
23593 (vreinterpret_u32_p16): Likewise.
23594 (vreinterpretq_u32_s8): Likewise.
23595 (vreinterpretq_u32_s16): Likewise.
23596 (vreinterpretq_u32_s32): Likewise.
23597 (vreinterpretq_u32_s64): Likewise.
23598 (vreinterpretq_u32_f32): Likewise.
23599 (vreinterpretq_u32_u8): Likewise.
23600 (vreinterpretq_u32_u16): Likewise.
23601 (vreinterpretq_u32_u64): Likewise.
23602 (vreinterpretq_u32_p8): Likewise.
23603 (vreinterpretq_u32_p16): Likewise.
23605 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23607 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23609 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23611 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23612 (vqnegd_s64): Likewise.
23613 (vqabs_s64): Likewise.
23614 (vqabsd_s64): Likewise.
23616 2014-04-22 Richard Henderson <rth@redhat.com>
23618 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23619 computation to the top of the loop.
23621 2014-04-22 Renlin <renlin.li@arm.com>
23622 Jiong Wang <jiong.wang@arm.com>
23624 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23625 * config/aarch64/aarch64.c (aarch64_layout_frame)
23626 (aarch64_initial_elimination_offset): Likewise.
23628 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23630 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23633 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23635 * machmode.h (bitwise_mode_for_mode): Declare.
23636 * stor-layout.h (bitwise_type_for_mode): Likewise.
23637 * stor-layout.c (bitwise_mode_for_mode): New function.
23638 (bitwise_type_for_mode): Likewise.
23639 * builtins.c (fold_builtin_memory_op): Use it instead of
23640 int_mode_for_mode and build_nonstandard_integer_type.
23642 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23644 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23645 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23646 (*-*-solaris2*): Simplify.
23647 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23648 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23649 *-*-solaris2.9* handling.
23651 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23653 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23654 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23655 handling, simplify.
23656 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23657 * configure: Regenerate.
23659 * config/i386/sol2-9.h: Remove.
23661 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23662 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23663 Remove Solaris 9 references.
23665 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23667 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23668 (floatuns<GPI:mode><GPF:mode>2): Remove.
23669 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23670 and floatuns conversions.
23671 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23672 and floatuns conversions.
23673 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23674 (w1,w2): New mode attributes for inequal width conversions.
23676 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23678 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23679 the output asm format.
23681 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23683 * config/aarch64/aarch64-simd.md
23684 (aarch64_cm<optab>di): Always split.
23685 (*aarch64_cm<optab>di): New.
23686 (aarch64_cmtstdi): Always split.
23687 (*aarch64_cmtstdi): New.
23689 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23691 PR tree-optimization/60823
23692 * omp-low.c (ipa_simd_modify_function_body): Go through
23693 all SSA_NAMEs and for those refering to vector arguments
23694 which are going to be replaced adjust SSA_NAME_VAR and,
23695 if it is a default definition, change it into a non-default
23696 definition assigned at the beginning of function from new_decl.
23697 (ipa_simd_modify_stmt_ops): Rewritten.
23698 * tree-dfa.c (set_ssa_default_def): When removing default def,
23699 check for NULL loc instead of NULL *loc.
23701 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23703 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23704 restrictions on core registers for DImode values in Thumb2.
23706 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23708 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23709 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23711 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23713 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23714 (*iordi_notzesidi_di): Likewise.
23715 (*iordi_notsesidi_di): Likewise.
23717 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23719 * config/arm/arm-protos.h (tune_params): New struct members.
23720 * config/arm/arm.c: Initialise tune_params per processor.
23721 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23722 for speed, based on new tune_params.
23724 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23726 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23727 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23728 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23729 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23730 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23731 (vrnda_f64): Likewise.
23732 (vrndi_f64): Likewise.
23733 (vrndm_f64): Likewise.
23734 (vrndn_f64): Likewise.
23735 (vrndp_f64): Likewise.
23736 (vrndx_f64): Likewise.
23738 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23740 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23741 GET_MODE_SIZE argument is enum machine_mode.
23743 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23746 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23747 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23749 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23751 PR middle-end/60281
23752 * asan.c (asan_emit_stack_protection): Force the base to align to
23753 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23754 appropriate bits if STRICT_ALIGNMENT.
23755 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23757 (expand_used_vars): Leave a space in the stack frame for alignment
23758 if STRICT_ALIGNMENT.
23760 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23762 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23764 (gimple_store_p): Likewise.
23765 (gimple_assign_load_p): Likewise.
23766 (gimple_assign_cast_p): Likewise.
23767 (gimple_clobber_p): Likewise.
23769 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23770 rather than a gimple.
23771 (gimple_assign_cast_p): Likewise.
23773 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23776 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23777 If mode is DDmode and TARGET_E500_DOUBLE allow move.
23779 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23780 more debug information for E500 if -mdebug=reg.
23782 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
23785 * config/i386/i386.c (ix86_expand_builtin)
23786 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23787 register for target RTX.
23788 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23790 2014-04-18 Cong Hou <congh@google.com>
23792 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23793 the widen-mult pattern by handling two operands with different sizes,
23794 and operands whose size is smaller than half of the result type.
23796 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23798 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23799 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23800 (do_estimate_edge_time): Compute it.
23801 * ipa-inline.c (want_inline_small_function_p): Bypass
23802 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23804 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23806 * ipa-inline.c (spec_rem): New static variable.
23807 (dump_overall_stats): New function.
23808 (dump_inline_stats): New function.
23810 2014-04-18 Richard Henderson <rth@redhat.com>
23812 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23813 to GET_MODE_SIZE, not a reg_class_t.
23815 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23817 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23818 (vsx_xxmrglw_<mode>): Likewise.
23820 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
23823 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23824 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23825 (rs6000_init_hard_regno_mode_ok): Likewise.
23827 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
23829 * ipa-inline.c (inline_small_functions): Account only non-cold
23831 * doc/invoke.texi (inline-unit-growth): Update documentation.
23833 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
23835 * config/rs6000/rs6000.md (addti3, subti3): New.
23837 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
23840 * config/i386/i386.c (ix86_expand_clear): Remove outdated
23841 comment. Check optimize_insn_for_size_p instead of
23842 optimize_insn_for_speed_p.
23844 2014-04-17 Martin Jambor <mjambor@suse.cz>
23846 * gimple-iterator.c (gsi_start_edge): New function.
23847 * gimple-iterator.h (gsi_start_edge): Declare.
23848 * tree-sra.c (single_non_eh_succ): New function.
23849 (disqualify_ops_if_throwing_stmt): Renamed to
23850 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
23851 having one non-EH successor BB.
23852 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23853 generate loads into replacements.
23854 (sra_modify_assign): Likewise and and also use the simple path for
23856 (sra_modify_function_body): Commit statements on edges.
23858 2014-04-17 Richard Biener <rguenther@suse.de>
23860 PR middle-end/60849
23861 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23862 comparison results and add clarifying comment.
23864 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23866 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23867 (blank_mode): Initialize it.
23868 (emit_mode_size_inline, emit_mode_nunits_inline,
23869 emit_mode_inner_inline): New functions.
23870 (emit_insn_modes_h): Call them and surround their output with
23871 #if GCC_VERSION >= 4001 ... #endif.
23872 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23873 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23874 mode_* arrays if the argument is __builtin_constant_p.
23875 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23876 is enum machine_mode.
23878 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23880 * passes.c (opt_pass::execute): Adjust.
23881 (pass_manager::execute_pass_mode_switching): Likewise.
23882 (early_local_passes::execute): Likewise.
23883 (execute_one_pass): Pass cfun to the pass's execute method.
23884 * tree-pass.h (opt_pass::execute): Add function * argument.
23885 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23886 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23887 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23888 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23889 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23890 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23891 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23892 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23893 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23894 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23895 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23896 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23897 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23898 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23899 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23900 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23901 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23902 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23903 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23904 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23905 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23906 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23907 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23908 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23909 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23910 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23911 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23912 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23913 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23916 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23918 * passes.c (opt_pass::gate): Take function * argument.
23919 (gate_all_early_local_passes): Merge into
23920 (early_local_passes::gate): this.
23921 (gate_all_early_optimizations): Merge into
23922 (all_early_optimizations::gate): this.
23923 (gate_all_optimizations): Mege into
23924 (all_optimizations::gate): this.
23925 (gate_all_optimizations_g): Merge into
23926 (all_optimizations_g::gate): this.
23927 (gate_rest_of_compilation): Mege into
23928 (rest_of_compilation::gate): this.
23929 (gate_postreload): Merge into
23930 (postreload::gate): this.
23931 (dump_one_pass): Pass cfun to the pass's gate method.
23932 (execute_ipa_summary_passes): Likewise.
23933 (execute_one_pass): Likewise.
23934 (ipa_write_summaries_2): Likewise.
23935 (ipa_write_optimization_summaries_1): Likewise.
23936 (ipa_read_summaries_1): Likewise.
23937 (ipa_read_optimization_summaries_1): Likewise.
23938 (execute_ipa_stmt_fixups): Likewise.
23939 * tree-pass.h (opt_pass::gate): Add function * argument.
23940 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23941 combine-stack-adj.c, combine.c, compare-elim.c,
23942 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23943 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23944 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23945 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
23946 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23947 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23948 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23949 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23950 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23951 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23952 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23953 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23954 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23955 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23956 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23957 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23958 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23959 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23960 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23961 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23962 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23963 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23964 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23965 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23966 var-tracking.c, vtable-verify.c, web.c: Adjust.
23968 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23970 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23971 * configure: Regenerate.
23973 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23975 * passes.c (dump_one_pass): don't check pass->has_gate.
23976 (execute_ipa_summary_passes): Likewise.
23977 (execute_one_pass): Likewise.
23978 (ipa_write_summaries_2): Likewise.
23979 (ipa_write_optimization_summaries_1): Likewise.
23980 (ipa_read_optimization_summaries_1): Likewise.
23981 (execute_ipa_stmt_fixups): Likewise.
23982 * tree-pass.h (pass_data::has_gate): Remove.
23983 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23984 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23985 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23986 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23987 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23988 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23989 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23990 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23991 gimple-low.c, gimple-ssa-isolate-paths.c,
23992 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23993 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23994 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23995 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23996 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23997 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23998 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23999 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24000 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24001 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24002 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24003 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24004 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24005 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24006 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24007 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24008 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24009 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24010 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24011 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24012 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24013 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24016 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24018 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24020 * passes.c (pass_manager::register_dump_files_1): Merge into
24021 (pass_manager::register_dump_files): this, and remove its handling of
24022 properties since the pass always has the properties anyway.
24023 (pass_manager::pass_manager): Adjust.
24025 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24027 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24028 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24029 dealing with properties.
24030 (pass_manager::register_dump_files): Adjust.
24032 2014-03-20 Mark Wielaard <mjw@redhat.com>
24034 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24035 then represent the bound as normal constant value.
24037 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24040 Forward port from 4.8 branch
24041 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24043 * config/i386/bmiintrin.h (_blsi_u32): New.
24044 (_blsi_u64): Ditto.
24045 (_blsr_u32): Ditto.
24046 (_blsr_u64): Ditto.
24047 (_blsmsk_u32): Ditto.
24048 (_blsmsk_u64): Ditto.
24049 (_tzcnt_u32): Ditto.
24050 (_tzcnt_u64): Ditto.
24052 2014-04-17 Kito Cheng <kito@0xlab.org>
24054 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24056 2014-04-17 Richard Biener <rguenther@suse.de>
24058 PR middle-end/60849
24059 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24060 boolean results for comparisons.
24062 2014-04-17 Richard Biener <rguenther@suse.de>
24064 PR tree-optimization/60836
24065 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24066 initial PHI args to be gimple values.
24068 2014-04-17 Richard Biener <rguenther@suse.de>
24070 PR tree-optimization/60841
24071 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24072 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24073 of stmts to SLP build.
24074 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24075 (vect_analyze_slp): Likewise.
24076 (vect_analyze_slp_instance): Likewise.
24077 (vect_build_slp_tree): Limit overall SLP tree growth.
24078 * tree-vectorizer.h (vect_analyze_data_refs,
24079 vect_analyze_slp): Adjust prototypes.
24081 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24083 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24086 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24088 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24089 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24090 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24091 for TARGET_SLOW_PSHUFB
24093 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24095 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24096 * config/i386/i386.c (intel_cost): Ditto.
24098 2014-04-17 Joey Ye <joey.ye@arm.com>
24100 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24102 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24104 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24105 with -fuse-profile.
24107 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24109 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24110 (type_all_derivations_known_p): New predicate.
24111 (type_all_ctors_visible_p): New predicate.
24112 (type_possibly_instantiated_p): New predicate.
24113 (get_odr_type): Compute all_derivations_known.
24114 (dump_odr_type): Dump the flag.
24115 (maybe_record_type): Cleanup.
24116 (record_target_from_binfo): Add bases_to_consider array;
24117 record bases for types w/o instances and skip CXX destructor.
24118 (possible_polymorphic_call_targets_1): Add bases_to_consider
24119 and consider_construction parameters; check if type may have instance.
24120 (get_polymorphic_call_info): Set maybe_in_construction to true
24121 when we know nothing.
24122 (record_targets_from_bases): Skip CXX destructors; they are
24123 never called for types in construction.
24124 (possible_polymorphic_call_targets): Do not record target when
24125 type may not have instance.
24127 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24130 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24131 external aliases alive, too.
24133 2014-04-16 Andrew Pinski <apinski@cavium.com>
24135 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24138 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24140 * final.c (compute_alignments): Do not apply loop alignment to a block
24141 falling through to the exit.
24143 2014-04-16 Catherine Moore <clm@codesourcery.com>
24145 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24146 Adjust constraints for microMIPS store patterns.
24148 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24150 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24152 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24154 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24155 (append_use): Run at -O0.
24156 (append_vdef): Likewise.
24157 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24158 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24160 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24162 PR tree-optimization/60844
24163 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24164 (propagate_op_to_single_use, remove_visited_stmt_chain,
24165 linearize_expr, repropagate_negates, reassociate_bb): Use it
24166 instead of gsi_remove.
24168 2014-04-16 Martin Jambor <mjambor@suse.cz>
24170 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24171 ipa_transforms_to_apply.
24172 (cgraph_function_versioning): Assert that old_node has empty
24173 ipa_transforms_to_apply.
24174 * trans-mem.c (ipa_tm_create_version): Likewise.
24175 * tree-inline.c (tree_function_versioning): Do not duplicate
24176 ipa_transforms_to_apply.
24178 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24181 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24183 Pass necessary as flags on 64-bit Solaris/x86.
24184 Use lowercase relocs for x86_64-*-*.
24185 * configure: Regenerate.
24187 2014-04-15 Jan Hubicka <jh@suse.cz>
24189 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24190 (maybe_record_node, likely_target_p): Use it.
24192 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24195 Revert following patch
24197 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24200 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24201 software floating point or no floating point registers, do not
24202 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24203 in GPRs that occurs after we tested for GPRs that would never be
24206 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24207 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24208 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24209 specifically allow DDmode, since that does not use the SPE SIMD
24212 2014-03-21 Mark Wielaard <mjw@redhat.com>
24214 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24215 as unsigned or int depending on type and value used.
24217 2014-04-15 Richard Biener <rguenther@suse.de>
24219 PR rtl-optimization/56965
24220 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24221 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24223 * alias.c (true_dependence_1): Do not call
24224 nonoverlapping_component_refs_p.
24225 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24226 nonoverlapping_component_refs_p.
24227 (indirect_refs_may_alias_p): Likewise.
24229 2014-04-15 Teresa Johnson <tejohnson@google.com>
24231 * cfg.c (dump_bb_info): Fix flags check.
24232 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24234 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24236 PR rtl-optimization/60663
24237 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24240 2014-04-15 Richard Biener <rguenther@suse.de>
24242 * lto-streamer.h (LTO_major_version): Bump to 4.
24244 2014-04-15 Richard Biener <rguenther@suse.de>
24246 * common.opt (lto_partition_model): New enum.
24247 (flto-partition=): Merge separate options with a single with argument,
24248 add -flto-partition=one support.
24249 * flag-types.h (enum lto_partition_model): Declare.
24250 * opts.c (finish_options): Remove duplicate -flto-partition=
24252 * lto-wrapper.c (run_gcc): Adjust.
24254 2014-04-15 Richard Biener <rguenther@suse.de>
24256 * alias.c (ncr_compar): New function.
24257 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24259 2014-04-15 Richard Biener <rguenther@suse.de>
24261 * alias.c (record_component_aliases): Do not walk BINFOs.
24263 2014-04-15 Richard Biener <rguenther@suse.de>
24265 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24266 Add struct function argument and adjust.
24267 (find_func_aliases_for_call): Likewise.
24268 (find_func_aliases): Likewise.
24269 (find_func_clobbers): Likewise.
24270 (intra_create_variable_infos): Likewise.
24271 (compute_points_to_sets): Likewise.
24272 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24274 2014-04-15 Richard Biener <rguenther@suse.de>
24276 * tree.c (iterative_hash_expr): Use enum tree_code_class
24277 to store TREE_CODE_CLASS.
24278 (tree_block): Likewise.
24279 (tree_set_block): Likewise.
24280 * tree.h (fold_build_pointer_plus_loc): Use
24281 convert_to_ptrofftype_loc.
24283 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24286 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24289 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24291 * cfgloop.h (struct loop): Move force_vectorize down.
24292 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24293 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24294 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24295 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24296 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24297 * tree-core.h (enum annot_expr_kind): Add new kind values.
24298 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24299 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24301 * tree.def (ANNOTATE_EXPR): Tweak comment.
24303 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24305 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24308 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24310 * tree.h (TYPE_IDENTIFIER): Declare.
24311 * tree.c (subrange_type_for_debug_p): Use it.
24312 * godump.c (go_format_type): Likewise.
24313 * dwarf2out.c (is_cxx_auto, modified_type_die,
24314 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24315 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24317 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24320 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24322 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24324 * config/i386/i386.c (examine_argument): Return bool. Return true if
24325 parameter should be passed in memory.
24326 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24327 (construct_container): Update calls to examine_argument.
24328 (function_arg_advance_64): Ditto.
24329 (return_in_memory_32): Merge with ix86_return_in_memory.
24330 (return_in_memory_64): Ditto.
24331 (return_in_memory_ms_64): Ditto.
24333 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24335 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24336 * coverage.c (coverage_compute_profile_id): Handle externally visible
24339 2014-04-14 Martin Jambor <mjambor@suse.cz>
24341 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24342 DECL_DISREGARD_INLINE_LIMITS functions.
24344 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24347 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24349 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24352 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24353 optimize_insn_for_speed_p instead of
24354 optimize_function_for_speed_p.
24356 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24358 * doc/invoke.texi (free): Document AArch64.
24360 2014-04-14 Richard Biener <rguenther@suse.de>
24362 PR tree-optimization/60042
24363 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24364 (insert_into_preds_of_block): Do not prevent PHI insertion
24365 for REFERENCE exprs here ...
24366 (eliminate_dom_walker::before_dom_children): ... but prevent
24367 their use here under similar conditions when applied to the
24368 IL after PRE optimizations.
24370 2014-04-14 Richard Biener <rguenther@suse.de>
24372 * passes.def: Move early points-to after early SRA.
24374 2014-04-14 Richard Biener <rguenther@suse.de>
24376 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24377 check for which sign-changes we allow when forwarding
24378 a converted value into a switch.
24380 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24382 * stor-layout.c (place_field): Finalize non-constant offset for the
24385 2014-04-14 Richard Biener <rguenther@suse.de>
24387 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24389 (expand_switch_using_bit_tests_p): Likewise.
24390 (process_switch): Compute and pass on speed_p based on the
24392 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24393 optimize_bb_for_speed_p.
24395 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24397 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24398 * function.h (struct function): Rename has_force_vect_loops into
24399 has_force_vectorize_loops.
24400 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24401 (input_struct_function_base): Likewise.
24402 * lto-streamer-out.c (output_cfg): Likewise.
24403 (output_struct_function_base): Likewise.
24404 * omp-low.c (expand_omp_simd): Likewise.
24405 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24406 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24407 (version_loop_for_if_conversion): Likewise.
24408 (tree_if_conversion): Likewise.
24409 (main_tree_if_conversion): Likewise.
24410 (gate_tree_if_conversion): Likewise.
24411 * tree-inline.c (copy_loops): Likewise.
24412 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24413 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24414 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24415 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24416 * tree-vectorizer.c (vectorize_loops): Likewise.
24417 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24419 2014-04-14 Richard Biener <rguenther@suse.de>
24422 * lto-streamer-out.c (wrap_refs): New function.
24423 (lto_output): Wrap symbol references in global initializes in
24424 type-preserving MEM_REFs.
24426 2014-04-14 Christian Bruel <christian.bruel@st.com>
24428 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24430 2014-04-14 Christian Bruel <christian.bruel@st.com>
24432 * config/sh/sh.md (setmemqi): New expand pattern.
24433 * config/sh/sh.h (CLEAR_RATIO): Define.
24434 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24435 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24437 2014-04-14 Richard Biener <rguenther@suse.de>
24439 PR middle-end/55022
24440 * fold-const.c (negate_expr_p): Don't negate directional rounding
24442 (fold_negate_expr): Likewise.
24444 2014-04-14 Richard Biener <rguenther@suse.de>
24446 PR tree-optimization/59817
24447 PR tree-optimization/60453
24448 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24449 recursion to catch all CHRECs in the scalar evolution and restrict
24450 the predicate for the remains appropriately.
24452 2014-04-12 Catherine Moore <clm@codesourcery.com>
24454 * config/mips/constraints.md: Add new register constraint "kb".
24455 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24456 (*movhi_internal): Likewise.
24457 (*movqi_internal): Likewise.
24458 * config/mips/mips.h (M16_STORE_REGS): New register class.
24459 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24460 (REG_CLASS_CONTENTS): Likewise.
24461 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24463 2014-04-11 Tobias Burnus <burnus@net-b.de>
24466 * doc/invoke.texi (-Wformat-signedness): Document it.
24467 (Wformat=2): Mention that this enables -Wformat-signedness.
24469 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24471 * common/config/epiphany/epiphany-common.c
24472 (epiphany_option_optimization_table): Enable section anchors by
24473 default at -O1 or higher.
24474 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24475 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24476 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24477 carries no extra cost.
24478 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24479 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24480 * config/epiphany/predicates.md (memclob_operand): New predicate.
24481 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24482 Use memclob_operand predicate and X constraint for operand 3.
24484 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24486 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24487 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24490 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24492 PR rtl-optimization/60651
24493 * mode-switching.c (optimize_mode_switching): Make sure to emit
24494 sets of a lower numbered entity before sets of a higher numbered
24495 entity to a mode of the same or lower priority.
24496 When creating a seginfo for a basic block that starts with a code
24497 label, move the insertion point past the code label.
24498 (new_seginfo): Document and enforce requirement that
24499 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24500 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24501 * doc/tm.texi: Regenerate.
24503 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24506 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24508 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24510 * BASE-VER: Set to 4.10.0.
24512 2014-04-11 Tobias Burnus <burnus@net-b.de>
24515 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24516 * doc/gcc.texi (Service): Update description in the @menu
24517 * doc/invoke.texi (Option Summary): Remove misplaced and
24520 2014-04-11 Steve Ellcey <sellcey@mips.com>
24521 Jakub Jelinek <jakub@redhat.com>
24523 PR middle-end/60556
24524 * expr.c (convert_move): Use emit_store_flag_force instead of
24525 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24528 2014-04-11 Richard Biener <rguenther@suse.de>
24530 PR middle-end/60797
24531 * varasm.c (assemble_alias): Avoid endless error reporting
24532 recursion by setting TREE_ASM_WRITTEN.
24534 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24536 * config/s390/s390.md: Add a splitter for NOT rtx.
24538 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24540 PR rtl-optimization/60663
24541 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24543 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24544 Jakub Jelinek <jakub@redhat.com>
24547 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24548 flag from decl_node to node.
24550 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24553 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24554 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24555 ameliorating the cases where it can be.
24557 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24560 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24562 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24563 (loadsync_<mode>): Change mode.
24564 (load_quadpti, store_quadpti): New.
24565 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24566 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24567 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24569 2014-04-09 Cong Hou <congh@google.com>
24572 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24575 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24577 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24578 instead of vnor to exploit possible fusion opportunity in the
24580 (altivec_expand_vec_perm_const_le): Likewise.
24582 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24584 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24585 (loadsync_<mode>): Change mode.
24586 (load_quadpti, store_quadpti): New.
24587 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24588 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24590 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24593 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24594 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24595 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24597 2014-04-08 Richard Biener <rguenther@suse.de>
24599 PR middle-end/60706
24600 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24601 a 64bit widest int print double-int similar to on HWI64 hosts.
24603 2014-04-08 Richard Biener <rguenther@suse.de>
24605 PR tree-optimization/60785
24606 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24607 default defs properly.
24609 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24611 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24612 (Weffc++): Likewise.
24614 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24616 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24617 set completep to false rather than true.
24619 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24622 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24623 ARM_TARGET2_DWARF_FORMAT.
24625 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24628 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24629 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24632 2014-04-07 Richard Biener <rguenther@suse.de>
24634 PR tree-optimization/60766
24635 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24636 (may_eliminate_iv): Convert cand_value_at result to desired type.
24638 2014-04-07 Jason Merrill <jason@redhat.com>
24641 * common.opt (-fno-gnu-unique): Add.
24642 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24644 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24646 * haifa-sched.c: Fix outdated function reference and minor
24647 grammar errors in introductory comment.
24649 2014-04-07 Richard Biener <rguenther@suse.de>
24651 PR middle-end/60750
24652 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24653 for noreturn calls.
24654 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24656 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24659 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24660 size accounting for thunks.
24661 (pa_asm_output_mi_thunk): Use final_start_function() and
24662 final_end_function() to output function start and end directives.
24664 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24666 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24667 device specific ISA/ feature information. Remove short_sp and
24668 errata_skip ds. Add avr_device_specific_features enum to have device
24670 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24671 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24672 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24673 updated device specific info.
24674 * config/avr/avr-mcus.def: Merge device specific details to
24675 dev_attribute field.
24676 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24678 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24679 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24680 assembler if RMW isa supported by current device.
24681 * config/avr/genmultilib.awk: Update as device info structure changed.
24682 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24684 2014-04-04 Cong Hou <congh@google.com>
24686 PR tree-optimization/60656
24687 * tree-vect-stmts.c (supportable_widening_operation):
24688 Fix a bug that elements in a vector with vect_used_by_reduction
24689 property are incorrectly reordered when the operation on it is not
24690 consistant with the one in reduction operation.
24692 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24694 PR rtl-optimization/60155
24695 * gcse.c (record_set_data): New function.
24696 (single_set_gcse): New function.
24697 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24698 (hoist_code): Likewise.
24699 (get_pressure_class_and_nregs): Likewise.
24701 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24703 * explow.c (probe_stack_range): Emit a final optimization blockage.
24705 2014-04-04 Anthony Green <green@moxielogic.com>
24707 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24710 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24713 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24714 flags are set only during streaming.
24715 * ipa.c (process_references, walk_polymorphic_call_targets,
24716 symtab_remove_unreachable_nodes): Drop bodies of always inline
24717 after early inlining.
24718 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24720 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24721 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24724 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24727 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24730 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24732 (cortex_a53_fdivd): Likewise.
24734 2014-04-04 Martin Jambor <mjambor@suse.cz>
24737 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24738 Adjust all callers.
24739 * cgraph.c (clone_of_p): Also return true if thunks match.
24740 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24741 cgraph_function_or_thunk_node and an obsolete comment.
24742 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24744 (build_function_decl_skip_args): Likewise.
24745 (set_new_clone_decl_and_node_flags): New function.
24746 (duplicate_thunk_for_node): Likewise.
24747 (redirect_edge_duplicating_thunks): Likewise.
24748 (cgraph_clone_node): New parameter args_to_skip, pass it to
24749 redirect_edge_duplicating_thunks which is called instead of
24750 cgraph_redirect_edge_callee.
24751 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24752 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24754 2014-04-04 Jeff Law <law@redhat.com>
24757 * config/arm/predicates.md (const_int_I_operand): New predicate.
24758 (const_int_M_operand): Similarly.
24759 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24761 (insv_t2, extv_reg, extzv_t2): Likewise.
24762 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24763 (pop_multiple_with_writeback_and_return): Likewise.
24764 (vfp_pop_multiple_with_writeback): Likewise
24766 2014-04-04 Richard Biener <rguenther@suse.de>
24769 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24770 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24772 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24773 * gimplify.c (gimple_add_tmp_var_fn): New function.
24774 * gimple-expr.h (create_tmp_reg_fn): Declare.
24775 * gimple-expr.c (create_tmp_reg_fn): New function.
24776 * gimple-low.c (record_vars_into): Don't change cfun.
24777 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24778 code generation without cfun.
24780 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
24783 * Makefile.in (install-driver): Fix shell scripting.
24785 2014-04-03 Cong Hou <congh@google.com>
24787 PR tree-optimization/60505
24788 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24789 threshold of number of iterations below which no vectorization
24791 * tree-vect-loop.c (new_loop_vec_info):
24792 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24793 * tree-vect-loop.c (vect_analyze_loop_operations):
24794 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24795 * tree-vect-loop.c (vect_transform_loop):
24796 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24797 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24798 of iterations of the loop and see if we should build the epilogue.
24800 2014-04-03 Richard Biener <rguenther@suse.de>
24802 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24803 (streamer_tree_cache_create): Adjust.
24804 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24805 to allow optional nodes array.
24806 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24807 (streamer_tree_cache_append): Likewise.
24808 (streamer_tree_cache_create): Create nodes array optionally
24809 as specified by parameter.
24810 * lto-streamer-out.c (create_output_block): Avoid maintaining
24811 the node array in the writer cache.
24812 (DFS_write_tree): Remove assertion.
24813 (produce_asm_for_decls): Free the out decl state hash table early.
24814 * lto-streamer-in.c (lto_data_in_create): Adjust for
24815 streamer_tree_cache_create prototype change.
24817 2014-04-03 Richard Biener <rguenther@suse.de>
24819 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24820 set TREE_CHAIN to NULL_TREE.
24822 2014-04-03 Richard Biener <rguenther@suse.de>
24824 PR tree-optimization/60740
24825 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24826 over all GIMPLE_COND operands.
24828 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
24830 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24831 (Weffc++): Remove Scott's numbering, merge lists and reference
24834 2014-04-03 Nick Clifton <nickc@redhat.com>
24836 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24839 2014-04-03 Martin Jambor <mjambor@suse.cz>
24841 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24842 mention gcc_unreachable before failing.
24843 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24846 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
24849 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24850 inconsistent code and instead mark the context inconsistent.
24851 (possible_polymorphic_call_targets): For inconsistent contexts
24852 return empty complete list.
24854 2014-04-02 Anthony Green <green@moxielogic.com>
24856 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24857 (extendqisi2, extendhisi2): Define.
24858 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24859 (WCHAR_TYPE): Change to unsigned int.
24861 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24863 PR tree-optimization/60733
24864 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24865 insertion point for PHI candidates to be the end of the feeding
24866 block for the PHI argument.
24868 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
24870 PR rtl-optimization/60650
24871 * lra-constraints.c (process_alt_operands): Decrease reject for
24872 earlyclobber matching.
24874 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24876 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24878 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24880 * config/spu/spu.c (pad_bb): Do not crash when the last
24881 insn is CODE_FOR_blockage.
24883 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24885 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24886 lies outside the target mode.
24888 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24891 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24892 software floating point or no floating point registers, do not
24893 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24894 in GPRs that occurs after we tested for GPRs that would never be
24897 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24898 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24899 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24900 specifically allow DDmode, since that does not use the SPE SIMD
24903 2014-04-02 Richard Biener <rguenther@suse.de>
24905 PR middle-end/60729
24906 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24907 MODE_INTs. Properly use negv_optab.
24908 (expand_abs): Likewise.
24910 2014-04-02 Richard Biener <rguenther@suse.de>
24913 * Makefile.in (install-driver): Guard extra installs with special
24916 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
24918 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24919 Document vec_vgbbd.
24921 2014-04-01 Richard Henderson <rth@redhat.com>
24924 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24925 alternative enabled before register allocation.
24927 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
24929 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24930 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24932 (nios2_large_got_address): Remove unneeded 'sym' parameter.
24933 (nios2_got_address): Update nios2_large_got_address call site.
24934 (nios2_delegitimize_address): New function.
24935 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24936 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24937 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24939 2014-04-01 Martin Husemann <martin@duskware.de>
24941 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24944 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
24946 PR rtl-optimization/60604
24947 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24948 check from register_operand.
24949 (register_operand): Redefine in terms of general_operand.
24950 (nonmemory_operand): Use register_operand for the non-constant cases.
24952 2014-04-01 Richard Biener <rguenther@suse.de>
24954 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24956 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
24958 * doc/invoke.texi (mapp-regs): Clarify.
24960 2014-03-31 Ulrich Drepper <drepper@gmail.com>
24962 * config/i386/avx512fintrin.h (__v32hi): Define type.
24963 (__v64qi): Likewise.
24964 (_mm512_set1_epi8): Define.
24965 (_mm512_set1_epi16): Define.
24966 (_mm512_set4_epi32): Define.
24967 (_mm512_set4_epi64): Define.
24968 (_mm512_set4_pd): Define.
24969 (_mm512_set4_ps): Define.
24970 (_mm512_setr4_epi64): Define.
24971 (_mm512_setr4_epi32): Define.
24972 (_mm512_setr4_pd): Define.
24973 (_mm512_setr4_ps): Define.
24974 (_mm512_setzero_epi32): Define.
24976 2014-03-31 Martin Jambor <mjambor@suse.cz>
24978 PR middle-end/60647
24979 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24980 callsite_arguments_match_p. Updated all callers. Also check types of
24981 corresponding formal parameters and actual arguments.
24982 (not_all_callers_have_enough_arguments_p) Renamed to
24983 some_callers_have_mismatched_arguments_p.
24985 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
24987 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24989 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
24992 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24995 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
24997 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24998 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25000 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25001 Use FMAMODE_NOVF512 mode iterator.
25002 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25003 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25004 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25005 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25007 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25008 Use VF_128_256 mode iterator.
25009 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25012 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25014 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25015 static chain if needed.
25017 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25020 * lra-constraints.c (index_part_to_reg): New.
25021 (process_address): Use it.
25023 2014-03-27 Jeff Law <law@redhat.com>
25024 Jakub Jelinek <jakub@redhat.com>
25027 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25028 gen_rtx_{PLUS,MULT} to build up the address expression.
25030 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25031 creating non-canonical RTL.
25033 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25036 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25037 functions; reorganize to make cheap checks first.
25038 (inline_small_functions): Do not estimate growth when dumping;
25040 * ipa-inline.h (inline_summary): Add min_size.
25041 (growth_likely_positive): New function.
25042 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25043 (set_cond_stmt_execution_predicate): Cleanup.
25044 (estimate_edge_size_and_time): Compute min_size.
25045 (estimate_calls_size_and_time): Likewise.
25046 (estimate_node_size_and_time): Likewise.
25047 (inline_update_overall_summary): Update min_size.
25048 (do_estimate_edge_time): Likewise.
25049 (do_estimate_edge_size): Update.
25050 (do_estimate_edge_hints): Update.
25051 (growth_likely_positive): New function.
25053 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25056 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25057 also if addr has VOIDmode.
25059 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25061 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25062 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25064 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25065 instructions as well as AdvancedSIMD loads.
25067 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25069 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25070 Use crypto_aese type.
25071 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25072 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25073 crypto_aese, crypto_aesmc. Move to types.md.
25074 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25076 * config/arm/iterators.md (crypto_type): Likewise.
25078 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25080 * cgraph.c: Include expr.h and tree-dfa.h.
25081 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25084 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25087 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25088 regs from checking multi-reg pseudos.
25090 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25092 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25094 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25096 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25097 if it would clobber the stack pointer, even temporarily.
25099 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25101 * mode-switching.c: Make small adjustments to the top comment.
25103 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25105 * config/rs6000/constraints.md (wD constraint): New constraint to
25106 match the constant integer to get the top DImode/DFmode out of a
25107 vector in a VSX register.
25109 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25110 match the constant integer to get the top DImode/DFmode out of a
25111 vector in a VSX register.
25113 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25116 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25119 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25120 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25122 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25123 Optimize vec_extract of 64-bit values, where the value being
25124 extracted is in the top word, where we can use scalar
25125 instructions. Add direct move and store support. Combine the big
25126 endian/little endian vector select load support into a single insn.
25127 (vsx_extract_<mode>_internal1): Likewise.
25128 (vsx_extract_<mode>_internal2): Likewise.
25129 (vsx_extract_<mode>_load): Likewise.
25130 (vsx_extract_<mode>_store): Likewise.
25131 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25132 combined into vsx_extract_<mode>_load.
25133 (vsx_extract_<mode>_one_le): Likewise.
25135 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25136 define the top 64-bit vector element.
25138 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25141 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25142 Document vec_vbpermq builtin.
25145 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25146 enable use of xxsldwi and xxpermdi builtin functions.
25147 (vec_xxpermdi): Likewise.
25149 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25150 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25152 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25154 PR rtl-optimization/60650
25155 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25157 (find_spills_for): New.
25158 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25159 Spill all pseudos on the second iteration.
25161 2014-03-27 Marek Polacek <polacek@redhat.com>
25164 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25167 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25169 * config/s390/s390.c (s390_can_use_return_insn): Check for
25170 call-saved FPRs on 31 bit.
25172 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25174 PR middle-end/60682
25175 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25176 if they need regimplification, just drop them instead of
25177 calling gimple_regimplify_operands on them.
25179 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25182 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25183 (aarch64_frame_pointer_required): Adjust logic.
25184 (aarch64_can_eliminate): Adjust logic.
25185 (aarch64_override_options_after_change): Adjust logic.
25187 2014-03-27 Dehao Chen <dehao@google.com>
25189 * ipa-inline.c (early_inliner): Update node's inline info.
25191 2014-03-26 Dehao Chen <dehao@google.com>
25193 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25194 compiler inserted conditional jumps for NAN float check.
25196 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25198 * ubsan.h (ubsan_create_data): Change second argument's type
25199 to const location_t *.
25200 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25202 (ubsan_create_data): Change second argument to const location_t *PLOC.
25203 Create Loc field whenever PLOC is non-NULL.
25204 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25205 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25209 * real.c (real_to_integer2): Change type of low to UHWI.
25211 2014-03-26 Tobias Burnus <burnus@net-b.de>
25213 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25214 (CILK_SELF_SPECS): New define.
25215 (driver_self_specs): Use it.
25217 2014-03-26 Richard Biener <rguenther@suse.de>
25219 * tree-pretty-print.c (percent_K_format): Implement special
25220 case for LTO and its stripped down BLOCK tree.
25222 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25225 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25227 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25228 one range is range_int_cst_p, but not both, at least optimize
25229 addition/subtraction of 0 and multiplication by 0 or 1.
25230 * gimple-fold.c (gimple_fold_call): Fold
25231 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25232 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25233 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25235 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25237 PR rtl-optimization/60452
25238 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25239 <case REG>: Return 1 for invalid offsets from the frame pointer.
25241 2014-03-26 Marek Polacek <polacek@redhat.com>
25244 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25247 2014-03-26 Marek Polacek <polacek@redhat.com>
25250 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25253 2014-03-26 Marek Polacek <polacek@redhat.com>
25256 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25257 multiplication in unsigned type.
25259 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25261 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25263 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25265 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25267 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25270 * cif-code.def (UNREACHABLE) New code.
25271 * ipa-inline.c (inline_small_functions): Skip edges to
25272 __builtlin_unreachable.
25273 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25274 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25275 predicate to __bulitin_unreachable.
25276 (set_cond_stmt_execution_predicate): Fix issue when
25277 invert_tree_comparison returns ERROR_MARK.
25278 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25279 propagate to inline clones.
25280 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25282 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25283 * cgraphclones.c (cgraph_clone_node): If call destination is already
25284 ureachable, do not redirect it back.
25285 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25288 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25290 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25291 Do not modify inline clones.
25293 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25295 * config/i386/i386.md (general_sext_operand): New mode attr.
25296 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25297 don't generate (sign_extend (const_int)).
25298 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25299 operands[2]. Use We constraint instead of <i> and
25300 <general_sext_operand> predicate instead of <general_operand>.
25301 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25302 * config/i386/constraints.md (We): New constraint.
25303 * config/i386/predicates.md (x86_64_sext_operand,
25304 sext_operand): New predicates.
25306 2014-03-25 Martin Jambor <mjambor@suse.cz>
25309 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25310 inconsistent devirtualizations to __builtin_unreachable.
25312 2014-03-25 Marek Polacek <polacek@redhat.com>
25315 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25317 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25319 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25320 order of elements for big-endian.
25322 2014-03-25 Richard Biener <rguenther@suse.de>
25324 PR middle-end/60635
25325 * gimplify-me.c (gimple_regimplify_operands): Update the
25328 2014-03-25 Martin Jambor <mjambor@suse.cz>
25331 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25332 (lto_output_varpool_node): Likewise.
25333 (input_overwrite_node): Likewise.
25334 (input_varpool_node): Likewise.
25336 2014-03-25 Richard Biener <rguenther@suse.de>
25338 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25339 (run_gcc): Likewise.
25341 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25343 * combine.c (simplify_compare_const): Add MODE argument.
25344 Handle mode_width 0 as very large mode_width.
25345 (try_combine, simplify_comparison): Adjust callers.
25347 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25348 type to avoid signed integer overflow.
25349 * explow.c (plus_constant): Likewise.
25351 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25353 * doc/generic.texi: Correct typos.
25355 2014-03-24 Tobias Burnus <burnus@net-b.de>
25357 * doc/invoke.texi (-flto): Expand section about
25358 using static libraries with LTO.
25360 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25362 PR rtl-optimization/60501
25363 * optabs.def (addptr3_optab): New optab.
25364 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25365 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25366 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25368 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25370 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25372 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25374 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25377 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25378 (_mm256_undefined_ps): Define.
25379 (_mm256_undefined_pd): Define.
25380 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25381 (_mm_undefined_pd): Define.
25382 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25383 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25384 (_mm512_undefined_ps): Define.
25385 (_mm512_undefined_pd): Define.
25386 Use _mm*_undefined_*.
25387 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25389 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25391 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25392 (lshr_simd): DI mode added.
25393 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25394 (aarch64_ushr_simddi): Likewise.
25395 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25396 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25397 (vshrd_n_u64): Likewise.
25399 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25401 * Makefile.in (s-macro_list): Depend on cc1.
25403 2014-03-23 Teresa Johnson <tejohnson@google.com>
25405 * ipa-utils.c (ipa_print_order): Use specified dump file.
25407 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25409 PR rtl-optimization/60601
25410 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25412 * gcc.c (eval_spec_function): Initialize save_growing_value.
25414 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25417 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25418 code == MINUS_EXPR, never swap op0 with op1.
25420 * toplev.c (init_local_tick): Avoid signed integer multiplication
25422 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25423 shift by first operand's bitsize.
25425 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25428 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25429 redefine to 1 or 0.
25430 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25431 TARGET_ISA_64BIT_P(x).
25433 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25435 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25436 pattern for vector nor instead of subtract from splat(-1).
25437 (altivec_expand_vec_perm_const_le): Likewise.
25439 2014-03-21 Richard Henderson <rth@twiddle.net>
25442 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25443 related insns after epilogue_completed.
25445 2014-03-21 Martin Jambor <mjambor@suse.cz>
25448 * cgraph.h (symtab_node): New flag body_removed.
25449 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25450 when removing bodies.
25451 * symtab.c (dump_symtab_base): Dump body_removed flag.
25452 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25453 had their bodies removed.
25455 2014-03-21 Martin Jambor <mjambor@suse.cz>
25458 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25461 2014-03-21 Richard Biener <rguenther@suse.de>
25463 PR tree-optimization/60577
25464 * tree-core.h (struct tree_base): Document nothrow_flag use
25465 in DECL_NONALIASED.
25466 * tree.h (DECL_NONALIASED): New.
25467 (may_be_aliased): Adjust.
25468 * coverage.c (build_var): Set DECL_NONALIASED.
25470 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25472 * expr.c (expand_expr_real_1): Remove outdated comment.
25474 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25476 PR middle-end/60597
25477 * ira.c (adjust_cleared_regs): Call copy_rtx on
25478 *reg_equiv[REGNO (loc)].src_p before passing it to
25479 simplify_replace_fn_rtx.
25482 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25483 into CONST, put pic register as first operand of PLUS. Use
25484 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25486 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25488 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25490 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25492 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25493 around for store forwarding issue in the FPU on the UT699.
25494 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25495 loads and operations if -mfix-ut699 is specified.
25496 (divtf3_hq): Tweak attribute.
25497 (sqrttf2_hq): Likewise.
25499 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25501 * calls.c (store_one_arg): Remove incorrect const qualification on the
25502 type of the temporary.
25503 * cfgexpand.c (expand_return): Likewise.
25504 * expr.c (expand_constructor): Likewise.
25505 (expand_expr_real_1): Likewise.
25507 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25509 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25512 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25515 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25517 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25519 * config/arm/aarch-common-protos.h
25520 (alu_cost_table): Fix spelling of "extend".
25521 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25523 2014-03-19 Richard Biener <rguenther@suse.de>
25525 PR middle-end/60553
25526 * tree-core.h (tree_type_common): Re-order pointer members
25527 to reduce recursion depth during GC walks.
25529 2014-03-19 Marek Polacek <polacek@redhat.com>
25532 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25533 before accessing it.
25535 2014-03-19 Richard Biener <rguenther@suse.de>
25538 * lto-streamer-in.c (input_function): In WPA stage do not drop
25541 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25543 PR tree-optimization/60559
25544 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25545 with build_zero_cst assignment.
25547 2014-03-18 Kai Tietz <ktietz@redhat.com>
25549 PR rtl-optimization/56356
25550 * sdbout.c (sdbout_parms): Verify that parms'
25551 incoming argument is valid.
25552 (sdbout_reg_parms): Likewise.
25554 2014-03-18 Richard Henderson <rth@redhat.com>
25557 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25558 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25559 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25561 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25563 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25564 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25565 Italicize plugin event names in description. Explain that
25566 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25567 Remind that no GCC functions should be called after PLUGIN_FINISH.
25568 Explain what pragmas with expansion are.
25570 2014-03-18 Martin Liska <mliska@suse.cz>
25572 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25573 gimple call statement is update.
25574 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25575 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25577 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25580 * ubsan.c (ubsan_instrument_unreachable): Call
25581 initialize_sanitizer_builtins.
25582 (ubsan_pass): Likewise.
25585 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25586 varpool_finalize_decl instead of rest_of_decl_compilation.
25588 2014-03-18 Richard Biener <rguenther@suse.de>
25590 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25591 by using bitmap_and_compl instead of bitmap_and_compl_into.
25592 (df_rd_transfer_function): Likewise.
25594 2014-03-18 Richard Biener <rguenther@suse.de>
25596 * doc/lto.texi (fresolution): Fix typo.
25598 2014-03-18 Richard Biener <rguenther@suse.de>
25600 * doc/invoke.texi (flto): Update for changes in 4.9.
25602 2014-03-18 Richard Biener <rguenther@suse.de>
25604 * doc/loop.texi: Remove section on the removed lambda framework.
25605 Update loop docs with recent changes in preserving loop structure.
25607 2014-03-18 Richard Biener <rguenther@suse.de>
25609 * doc/lto.texi (-fresolution): Document.
25611 2014-03-18 Richard Biener <rguenther@suse.de>
25613 * doc/contrib.texi: Adjust my name.
25615 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25618 * internal-fn.c: Include diagnostic-core.h.
25619 (expand_BUILTIN_EXPECT): New function.
25620 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25621 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25622 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25623 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25624 IFN_BUILTIN_EXPECT.
25625 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25626 Revert 3 argument __builtin_expect code.
25627 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25628 * gimple-fold.c (gimple_fold_call): Likewise.
25629 * tree.h (fold_builtin_expect): New prototype.
25630 * builtins.c (build_builtin_expect_predicate): Add predictor
25631 argument, if non-NULL, create 3 argument __builtin_expect.
25632 (fold_builtin_expect): No longer static. Add ARG2 argument,
25633 pass it through to build_builtin_expect_predicate.
25634 (fold_builtin_2): Adjust caller.
25635 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25636 * internal-fn.def (BUILTIN_EXPECT): New.
25638 2014-03-18 Tobias Burnus <burnus@net-b.de>
25641 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25642 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25643 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25645 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25648 * predict.c (combine_predictions_for_bb): Fix up formatting.
25649 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25650 fill what it points to if non-NULL.
25651 (tree_predict_by_opcode): Adjust caller, use the predictor.
25652 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25654 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25656 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25657 proper constant for the store mode.
25659 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25661 * symtab.c (change_decl_assembler_name): Fix transparent alias
25662 chain construction.
25664 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25666 * config/aarch64/aarch64.c: Correct the comments about the
25667 aarch64 stack layout.
25669 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25671 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25672 check for GF_OMP_FOR_KIND_FOR.
25674 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25676 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25677 ymm and zmm register names.
25679 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25682 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25683 note creation for the 2010-08-31 changes.
25685 2014-03-17 Marek Polacek <polacek@redhat.com>
25687 PR middle-end/60534
25688 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25689 as -fno-tree-loop-vectorize.
25690 (expand_omp_simd): Likewise.
25692 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25694 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25695 (eligible_for_call_delay): New prototype.
25696 * config/sparc/sparc.c (tls_call_delay): Rename into...
25697 (eligible_for_call_delay): ...this. Return false if the instruction
25698 cannot be put in the delay slot of a branch.
25699 (eligible_for_restore_insn): Simplify.
25700 (eligible_for_return_delay): Return false if the instruction cannot be
25701 put in the delay slot of a branch and simplify.
25702 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25703 put in the delay slot of a branch.
25704 * config/sparc/sparc.md (fix_ut699): New attribute.
25705 (tls_call_delay): Delete.
25706 (in_call_delay): Reimplement.
25707 (eligible_for_sibcall_delay): Rename into...
25708 (in_sibcall_delay): ...this.
25709 (eligible_for_return_delay): Rename into...
25710 (in_return_delay): ...this.
25711 (in_branch_delay): Reimplement.
25712 (in_uncond_branch_delay): Delete.
25713 (in_annul_branch_delay): Delete.
25715 2014-03-14 Richard Henderson <rth@redhat.com>
25718 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25719 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25720 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25721 (floathi splitters): Remove.
25722 (float<SWI48x>xf2): New pattern.
25723 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25724 code that tried to handle DImode for 32-bit, but which was excluded
25725 by the pattern's condition. Drop allocation of stack temporary.
25726 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25727 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25728 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25729 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25730 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25731 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25732 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25733 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25734 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25735 (*float<SWI48x><X87MODEF>2_i387): Remove.
25736 (all float _with_temp splitters): Remove.
25737 (*float<SWI48x><MODEF>2_i387): New pattern.
25738 (*float<SWI48><MODEF>2_sse): New pattern.
25739 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25740 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25742 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25743 Marek Polacek <polacek@redhat.com>
25745 PR middle-end/60484
25746 * common.opt (dump_base_name_prefixed): New Variable.
25747 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25748 if x_dump_base_name_prefixed is already set, set it at the end.
25750 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25752 PR rtl-optimization/60508
25753 * lra-constraints.c (get_reload_reg): Add new parameter
25755 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25756 Pass the new parameter values.
25758 2014-03-14 Richard Biener <rguenther@suse.de>
25760 * common.opt: Revert unintented changes from r205065.
25761 * opts.c: Likewise.
25763 2014-03-14 Richard Biener <rguenther@suse.de>
25765 PR middle-end/60518
25766 * cfghooks.c (split_block): Properly adjust all loops the
25767 block was a latch of.
25769 2014-03-14 Martin Jambor <mjambor@suse.cz>
25772 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25775 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
25778 * config/avr/avr.c (avr_set_current_function): Pass function name
25779 through default_strip_name_encoding before sanity checking instead
25780 of skipping the first char of the assembler name.
25782 2014-03-13 Richard Henderson <rth@redhat.com>
25785 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25786 (ix86_force_to_memory, ix86_free_from_memory): Remove.
25787 * config/i386/i386-protos.h: Likewise.
25788 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25789 in the expander instead of a splitter.
25790 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25791 any possibility of requiring a memory.
25792 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25793 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25794 (fp branch splitters): Update for ix86_split_fp_branch.
25795 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25796 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25797 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25798 (*fop_<MODEF>_2_i387): Remove f/r alternative.
25799 (*fop_<MODEF>_3_i387): Likewise.
25800 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25801 (splitters for the fop_* register patterns): Remove.
25802 (fscalexf4_i387): Rename from *fscalexf4_i387.
25803 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25805 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25807 PR tree-optimization/59779
25808 * tree-dfa.c (get_ref_base_and_extent): Use double_int
25809 type for bitsize and maxsize instead of HOST_WIDE_INT.
25811 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
25813 PR rtl-optimization/57320
25814 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25815 the CFG after thread_prologue_and_epilogue_insns.
25817 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
25819 PR rtl-optimization/57189
25820 * lra-constraints.c (process_alt_operands): Disfavor spilling
25823 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
25825 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25827 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25829 PR tree-optimization/59025
25830 PR middle-end/60418
25831 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25832 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25834 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
25837 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25838 calls of avr_out_plus_1.
25840 2014-03-13 Bin Cheng <bin.cheng@arm.com>
25842 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25843 BB's single pred and update the father loop's latch info later.
25845 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25847 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25851 (VEC_base): Likewise.
25852 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25853 registers, we need to swap double words in little endian mode.
25855 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25856 to be a container mode for 128-bit integer operations added in ISA
25857 2.07. Unlike TImode and PTImode, the preferred register set is
25858 the Altivec/VMX registers for the 128-bit operations.
25860 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25862 (rs6000_split_128bit_ok_p): Likewise.
25864 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25865 macros for creating ISA 2.07 normal and overloaded builtin
25866 functions with 3 arguments.
25867 (BU_P8V_OVERLOAD_3): Likewise.
25868 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25869 for use as overloaded functions.
25870 (VPERM_1TI_UNS): Likewise.
25871 (VSEL_1TI): Likewise.
25872 (VSEL_1TI_UNS): Likewise.
25873 (ST_INTERNAL_1ti): Likewise.
25874 (LD_INTERNAL_1ti): Likewise.
25875 (XXSEL_1TI): Likewise.
25876 (XXSEL_1TI_UNS): Likewise.
25877 (VPERM_1TI): Likewise.
25878 (VPERM_1TI_UNS): Likewise.
25879 (XXPERMDI_1TI): Likewise.
25880 (SET_1TI): Likewise.
25881 (LXVD2X_V1TI): Likewise.
25882 (STXVD2X_V1TI): Likewise.
25883 (VEC_INIT_V1TI): Likewise.
25884 (VEC_SET_V1TI): Likewise.
25885 (VEC_EXT_V1TI): Likewise.
25886 (EQV_V1TI): Likewise.
25887 (NAND_V1TI): Likewise.
25888 (ORC_V1TI): Likewise.
25889 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25890 added in ISA 2.07. Add both normal 'altivec' builtins, and the
25891 overloaded builtin.
25892 (VADDUQM): Likewise.
25893 (VSUBCUQ): Likewise.
25894 (VADDEUQM): Likewise.
25895 (VADDECUQ): Likewise.
25896 (VSUBEUQM): Likewise.
25897 (VSUBECUQ): Likewise.
25899 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25900 __int128_t and __uint128_t types.
25901 (__uint128_type): Likewise.
25902 (altivec_categorize_keyword): Add support for vector __int128_t,
25903 vector __uint128_t, vector __int128, and vector unsigned __int128
25904 as a container type for TImode operations that need to be done in
25905 VSX/Altivec registers.
25906 (rs6000_macro_to_expand): Likewise.
25907 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25908 to support 128-bit integer instructions vaddcuq, vadduqm,
25909 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25910 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25912 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25913 for V1TImode, and set up preferences to use VSX/Altivec registers.
25914 Setup VSX reload handlers.
25915 (rs6000_debug_reg_global): Likewise.
25916 (rs6000_init_hard_regno_mode_ok): Likewise.
25917 (rs6000_preferred_simd_mode): Likewise.
25918 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25919 (easy_altivec_constant): Likewise.
25920 (output_vec_const_move): Likewise.
25921 (rs6000_expand_vector_set): Convert V1TImode set and extract to
25923 (rs6000_expand_vector_extract): Likewise.
25924 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25926 (rs6000_const_vec): Add support for V1TImode.
25927 (rs6000_emit_le_vsx_load): Swap double words when loading or
25928 storing TImode/V1TImode.
25929 (rs6000_emit_le_vsx_store): Likewise.
25930 (rs6000_emit_le_vsx_move): Likewise.
25931 (rs6000_emit_move): Add support for V1TImode.
25932 (altivec_expand_ld_builtin): Likewise.
25933 (altivec_expand_st_builtin): Likewise.
25934 (altivec_expand_vec_init_builtin): Likewise.
25935 (altivec_expand_builtin): Likewise.
25936 (rs6000_init_builtins): Add support for V1TImode type. Add
25937 support for ISA 2.07 128-bit integer builtins. Define type names
25938 for the VSX/Altivec vector types.
25939 (altivec_init_builtins): Add support for overloaded vector
25940 functions with V1TImode type.
25941 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25942 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25944 (rs6000_split_128bit_ok_p): Likewise.
25945 (rs6000_handle_altivec_attribute): Create V1TImode from vector
25946 __int128_t and vector __uint128_t.
25948 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25949 and mode attributes.
25951 (VSX_M2): Likewise.
25956 (VS_scalar): Likewise.
25957 (VS_double): Likewise.
25958 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25960 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25961 we support the ISA 2.07 128-bit integer arithmetic instructions.
25962 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25963 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25964 and TImode types for use with the builtin functions.
25965 (V1TI_type_node): Likewise.
25966 (unsigned_V1TI_type_node): Likewise.
25967 (intTI_type_internal_node): Likewise.
25968 (uintTI_type_internal_node): Likewise.
25970 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25971 128-bit builtin functions.
25972 (UNSPEC_VADDEUQM): Likewise.
25973 (UNSPEC_VADDECUQ): Likewise.
25974 (UNSPEC_VSUBCUQ): Likewise.
25975 (UNSPEC_VSUBEUQM): Likewise.
25976 (UNSPEC_VSUBECUQ): Likewise.
25977 (VM): Add V1TImode to vector mode iterators.
25979 (VI_unit): Likewise.
25980 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25981 (altivec_vaddcuq): Likewise.
25982 (altivec_vsubuqm): Likewise.
25983 (altivec_vsubcuq): Likewise.
25984 (altivec_vaddeuqm): Likewise.
25985 (altivec_vaddecuq): Likewise.
25986 (altivec_vsubeuqm): Likewise.
25987 (altivec_vsubecuq): Likewise.
25989 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25991 (BOOL_128): Likewise.
25992 (BOOL_REGS_OUTPUT): Likewise.
25993 (BOOL_REGS_OP1): Likewise.
25994 (BOOL_REGS_OP2): Likewise.
25995 (BOOL_REGS_UNARY): Likewise.
25996 (BOOL_REGS_AND_CR0): Likewise.
25998 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25999 128-bit integer builtin support.
26000 (vec_vadduqm): Likewise.
26001 (vec_vaddecuq): Likewise.
26002 (vec_vaddeuqm): Likewise.
26003 (vec_vsubecuq): Likewise.
26004 (vec_vsubeuqm): Likewise.
26005 (vec_vsubcuq): Likewise.
26006 (vec_vsubuqm): Likewise.
26008 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26009 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26010 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26011 128-bit integer add/subtract to ISA 2.07.
26013 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26015 * config/arc/arc.c (arc_predicate_delay_insns):
26016 Fix third argument passed to conditionalize_nonjump.
26018 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26020 * config/aarch64/aarch64-builtins.c
26021 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26022 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26023 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26024 instead of __builtin_lfloor.
26025 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26027 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26029 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26030 (tree_ssa_ifcombine_bb_1): New function.
26031 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26032 is an empty forwarder block to then_bb or vice versa and then_bb
26033 and else_bb are effectively swapped.
26035 2014-03-12 Christian Bruel <christian.bruel@st.com>
26038 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26039 REG_CFA_DEF_CFA note.
26040 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26041 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26043 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26045 PR tree-optimization/60454
26046 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26048 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26050 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26051 Do not define target_cpu_default2 to generic.
26052 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26053 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26054 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26056 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26057 Marc Glisse <marc.glisse@inria.fr>
26059 PR tree-optimization/60502
26060 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26061 instead of build_low_bits_mask.
26063 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26065 PR middle-end/60482
26066 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26067 if there are multiple uses, but op doesn't live on E edge.
26068 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26069 clobber stmts before __builtin_unreachable.
26071 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26073 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26074 hard_frame_pointer_rtx.
26075 * cse.c (cse_insn): Remove volatile check.
26076 * cselib.c (cselib_process_insn): Likewise.
26077 * dse.c (scan_insn): Likewise.
26079 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26081 * config/arc/arc.c (conditionalize_nonjump): New function,
26083 (arc_ifcvt): ... this.
26084 (arc_predicate_delay_insns): Use it.
26086 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26088 * config/arc/predicates.md (extend_operand): During/after reload,
26089 allow const_int_operand.
26090 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26091 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26092 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26094 (umulsi3_highpart_i): Likewise.
26096 2014-03-11 Richard Biener <rguenther@suse.de>
26098 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26099 Add asserts to guard possible wrong-code bugs.
26101 2014-03-11 Richard Biener <rguenther@suse.de>
26103 PR tree-optimization/60429
26104 PR tree-optimization/60485
26105 * tree-ssa-structalias.c (set_union_with_increment): Properly
26106 take into account all fields that overlap the shifted vars.
26107 (do_sd_constraint): Likewise.
26108 (do_ds_constraint): Likewise.
26109 (get_constraint_for_ptr_offset): Likewise.
26111 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26113 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26114 (nios2_compute_frame_layout):
26115 Add calculation of cfun->machine->fp_save_offset.
26116 (nios2_expand_prologue): Correct setting of frame pointer register
26118 (nios2_expand_epilogue): Update recovery of stack pointer from
26119 frame pointer accordingly.
26120 (nios2_initial_elimination_offset): Update calculation of offset
26121 for eliminating to HARD_FRAME_POINTER_REGNUM.
26123 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26126 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26127 cgraph_get_create_node on VAR_DECLs.
26129 2014-03-10 Richard Biener <rguenther@suse.de>
26131 PR middle-end/60474
26132 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26134 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26136 * config/vms/vms.opt (vms_float_format): New variable.
26138 2014-03-08 Tobias Burnus <burnus@net-b.de>
26140 * doc/invoke.texi (-fcilkplus): Update implementation status.
26142 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26143 Richard Biener <rguenther@suse.de>
26145 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26146 consistently accross all TUs.
26147 (run_gcc): Enable -fshort-double automatically at link at link-time
26148 and disallow override.
26150 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26153 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26154 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26155 if they can't be used.
26157 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26159 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26160 for Solaris 11/x86 ld.
26161 * configure: Regenerate.
26163 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26165 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26166 (LIB_TLS_SPEC): Save as ld_tls_libs.
26167 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26168 (HAVE_AS_IX86_TLSLDM): New test.
26169 * configure, config.in: Regenerate.
26170 * config/i386/i386.c (legitimize_tls_address): Fall back to
26171 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26172 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26173 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26174 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26176 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26178 * common.opt (fira-loop-pressure): Mark as optimization.
26180 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26182 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26183 an OpenMP mappable type.
26185 2014-03-06 Matthias Klose <doko@ubuntu.com>
26187 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26188 MULTILIB_OSDIRNAMES is not defined.
26190 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26191 Meador Inge <meadori@codesourcery.com>
26194 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26195 (arm_legitimize_address): Call legitimize_tls_address for any
26196 arm_tls_referenced_p expression, handle constant addend. Call it
26197 before testing for !TARGET_ARM.
26198 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26200 2014-03-06 Richard Biener <rguenther@suse.de>
26202 PR middle-end/60445
26206 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26208 * tree-streamer.c (record_common_node): Assert we don't record
26209 nodes with type double.
26210 (preload_common_node): Skip type double, complex double and double
26211 pointer since it is now frontend dependent due to fshort-double option.
26213 2014-03-06 Richard Biener <rguenther@suse.de>
26215 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26216 or -fno-lto is specified and the linker has full plugin support.
26217 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26218 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26219 * lto-wrapper.c (merge_and_complain): Merge compile-time
26220 optimization levels.
26221 (run_gcc): And pass it through to the link options.
26223 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26227 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26229 * cselib.c (remove_useless_values): Skip to avoid quadratic
26230 behavior if the condition moved from...
26231 (cselib_process_insn): ... here holds.
26233 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26236 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26237 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26240 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26241 (TM_H): Add x86-tune.def.
26243 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26245 * config/aarch64/aarch64.c (generic_tunings):
26246 Use cortexa57_extra_costs.
26248 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26251 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26252 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26253 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26256 2014-03-04 Heiher <r@hev.cc>
26258 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26259 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26261 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26263 * config/i386/predicates.md (const2356_operand): Change to ...
26264 (const2367_operand): ... this.
26265 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26267 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26268 (*avx512pf_scatterpf<mode>sf): Ditto.
26269 (avx512pf_scatterpf<mode>df): Ditto.
26270 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26271 (*avx512pf_scatterpf<mode>df): Ditto.
26272 * config/i386/i386.c (ix86_expand_builtin): Update
26273 incorrect hint operand error message.
26275 2014-03-04 Richard Biener <rguenther@suse.de>
26277 * lto-section-in.c (lto_get_section_data): Fix const cast.
26279 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26281 * tree-streamer.c (record_common_node): Assert we don't record
26282 nodes with type double.
26283 (preload_common_node): Skip type double, complex double and double
26284 pointer since it is now frontend dependent due to fshort-double option.
26286 2014-03-04 Richard Biener <rguenther@suse.de>
26289 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26290 (lto_input_toplevel_asms): Likewise.
26291 * lto-section-in.c (lto_get_section_data): Instead do it here
26294 2014-03-04 Richard Biener <rguenther@suse.de>
26296 PR tree-optimization/60382
26297 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26298 dead PHIs a reduction.
26300 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26302 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26304 (_mm_prefetch): Move out of GCC target("sse") pragma.
26305 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26306 GCC target("prfchw") pragma.
26307 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26309 * config/i386/i386.c (ix86_option_override_internal): Enable
26310 -mprfchw with -mprefetchwt1.
26312 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26314 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26317 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26319 * opts.h (CL_PCH_IGNORE): Define.
26320 * targhooks.c (option_affects_pch_p):
26321 Return false for options that have CL_PCH_IGNORE set.
26322 * opt-functions.awk: Process PchIgnore.
26323 * doc/options.texi: Document PchIgnore.
26325 * config/arc/arc.opt (misize): Add PchIgnore property.
26327 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26329 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26330 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26331 constraint on constants to permit them being loaded into
26332 GENERAL_REGS or BASE_REGS.
26334 2014-03-03 Nick Clifton <nickc@redhat.com>
26336 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26337 anti-cacnonical alternatives.
26338 (negandhi3_real): New pattern.
26339 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26341 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26343 * config/avr/avr-mcus.def: Remove atxmega16x1.
26344 * config/avr/avr-tables.opt: Regenerate.
26345 * config/avr/t-multilib: Regenerate.
26346 * doc/avr-mmcu.texi: Regenerate.
26348 2014-03-03 Tobias Grosser <tobias@grosser.es>
26349 Mircea Namolaru <mircea.namolaru@inria.fr>
26351 PR tree-optimization/58028
26352 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26355 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26357 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26358 not handled by recognizers.
26360 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26362 PR middle-end/60175
26363 * function.c (expand_function_end): Don't emit
26364 clobber_return_register sequence if clobber_after is a BARRIER.
26365 * cfgexpand.c (construct_exit_block): Append instructions before
26366 return_label to prev_bb.
26368 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26370 * config/rs6000/constraints.md: Document reserved use of "wc".
26372 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26375 * ipa.c (function_and_variable_visibility): When dissolving comdat
26376 group, also set all symbols to local.
26378 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26383 2013-12-14 Jan Hubicka <jh@suse.cz>
26384 PR middle-end/58477
26385 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26387 2014-03-02 Jon Beniston <jon@beniston.com>
26393 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26394 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26395 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26396 (simple_return, *simple_return): New patterns
26397 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26398 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26400 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26402 * dwarf2out.c (gen_subprogram_die): Tidy.
26404 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26407 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26408 (*mov_t_msb_neg_negc): ... this new insn.
26410 2014-02-28 Jason Merrill <jason@redhat.com>
26413 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26416 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26419 * dwarf2out.c (decltype_auto_die): New static.
26420 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26421 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26422 (is_cxx_auto): Likewise.
26424 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26426 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26427 we are not using general regs only.
26429 2014-02-28 Richard Biener <rguenther@suse.de>
26432 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26433 previous fix and only allow to remove trivial pre-headers
26434 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26435 (remove_forwarder_block): Properly update the latch of a loop.
26437 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26440 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26441 (cselib_preserved_hash_table): New.
26442 (preserve_constants_and_equivs): Move preserved vals to it.
26443 (cselib_find_slot): Look it up first.
26444 (cselib_init): Initialize it.
26445 (cselib_finish): Release it.
26446 (dump_cselib_table): Dump it.
26448 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26451 * cselib.c (remove_useless_values): Skip to avoid quadratic
26452 behavior if the condition moved from...
26453 (cselib_process_insn): ... here holds.
26455 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26458 * var-tracking.c (vt_initialize): Apply the same condition to
26459 preserve the CFA base value.
26461 2014-02-28 Joey Ye <joey.ye@arm.com>
26464 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26465 if reload in progress or completed.
26467 2014-02-28 Tobias Burnus <burnus@net-b.de>
26469 PR middle-end/60147
26470 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26473 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26475 * doc/tm.texi.in (Condition Code Status): Update documention for
26476 relative locations of cc0-setter and cc0-user.
26478 2014-02-27 Jeff Law <law@redhat.com>
26480 PR rtl-optimization/52714
26481 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26482 into two independent simple sets, if I3 is a jump, ensure the
26483 pattern we place into I3 is a (set (pc) ...).
26485 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26486 Jeff Law <law@redhat.com>
26488 PR rtl-optimization/49847
26489 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26490 are in different blocks.
26491 * doc/tm.texi (Condition Code Status): Update documention for
26492 relative locations of cc0-setter and cc0-user.
26494 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26497 * lra.c (lra_emit_add): Check SUBREG too.
26499 2014-02-27 Andreas Schwab <schwab@suse.de>
26501 * config/m68k/m68k.c (m68k_option_override): Disable
26502 -flive-range-shrinkage for classic m68k.
26503 (m68k_override_options_after_change): Likewise.
26505 2014-02-27 Marek Polacek <polacek@redhat.com>
26507 PR middle-end/59223
26508 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26509 -Wmaybe-uninitialized.
26511 2014-02-27 Alan Modra <amodra@gmail.com>
26514 * reload1.c (emit_input_reload_insns): When reload_override_in,
26515 set old to rl->in_reg when rl->in_reg is a subreg.
26517 2014-02-26 Richard Biener <rguenther@suse.de>
26520 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26522 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26524 * common/config/i386/predicates.md (const1256_operand): Remove.
26525 (const2356_operand): New.
26526 (const_1_to_2_operand): Remove.
26527 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26528 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26529 (*avx512pf_gatherpf<mode>sf): Ditto.
26530 (avx512pf_gatherpf<mode>df): Ditto.
26531 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26532 (*avx512pf_gatherpf<mode>df): Ditto.
26533 (avx512pf_scatterpf<mode>sf): Ditto.
26534 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26535 (*avx512pf_scatterpf<mode>sf): Ditto.
26536 (avx512pf_scatterpf<mode>df): Ditto.
26537 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26538 (*avx512pf_scatterpf<mode>df): Ditto.
26539 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26541 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26543 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26544 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26545 (_mm512_mask_testn_epi64_mask): Move to ...
26546 * config/i386/avx512cdintrin.h: Here.
26547 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26548 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26549 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26550 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26551 TARGET_AVX512F from TARGET_AVX512CD.
26553 2014-02-26 Richard Biener <rguenther@suse.de>
26556 * ipa.c (walk_polymorphic_call_targets): Properly guard
26557 call to inline_update_overall_summary.
26559 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26562 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26563 and latches only if requested. Fix latch if it is removed.
26564 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26565 LOOPS_HAVE_PREHEADERS.
26567 2014-02-25 Andrew Pinski <apinski@cavium.com>
26569 * builtins.c (expand_builtin_thread_pointer): Create a new target
26570 when the target is NULL.
26572 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26574 PR rtl-optimization/60317
26575 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26576 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26577 * lra-assigns.c: Include params.h.
26578 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26579 other reload pseudos considerations.
26581 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26583 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26584 to use canonical form for nor<mode>3.
26586 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26589 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26592 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26594 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26595 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26596 (ix86_handle_option): Handle OPT_mprefetchwt1.
26597 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26598 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26600 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26601 OPTION_MASK_ISA_PREFETCHWT1.
26602 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26603 (PTA_PREFETCHWT1): New.
26604 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26605 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26606 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26607 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26608 (*prefetch_avx512pf_<mode>_: Change into ...
26609 (*prefetch_prefetchwt1_<mode>: This.
26610 * config/i386/i386.opt (mprefetchwt1): New.
26611 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26612 (_mm_prefetch): Handle intent to write.
26613 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26615 2014-02-25 Richard Biener <rguenther@suse.de>
26617 PR middle-end/60291
26618 * emit-rtl.c (mem_attrs_htab): Remove.
26619 (mem_attrs_htab_hash): Likewise.
26620 (mem_attrs_htab_eq): Likewise.
26621 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26622 (init_emit_once): Do not allocate mem_attrs_htab.
26624 2014-02-25 Richard Biener <rguenther@suse.de>
26627 * lto-opts.c (lto_write_options): Output non-explicit conservative
26628 -fwrapv, -fno-trapv and -fno-strict-overflow.
26629 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26630 (run_gcc): And pass them through.
26632 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26634 * sel-sched.c (calculate_new_fences): New parameter ptime.
26635 Calculate it as a maximum over all fence cycles.
26636 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26637 Print the final schedule timing when sched_verbose.
26639 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26641 PR rtl-optimization/60292
26642 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26643 bit fot the fence instruction.
26645 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26647 * calls.h: Fix typo in comment.
26649 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26651 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26652 adjusting offsetable addresses.
26654 2014-02-24 Guozhi Wei <carrot@google.com>
26656 * sparseset.h (sparseset_pop): Fix the wrong index.
26658 2014-02-24 Walter Lee <walt@tilera.com>
26660 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26661 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26663 * common/config/tilegx/tilegx-common.c
26664 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26665 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26666 (LINK_SPEC): Ditto.
26667 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26668 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26669 (tilegx_gimplify_va_arg_expr): Handle big endian.
26670 (tilegx_expand_unaligned_load): Ditto.
26671 (tilegx_expand_unaligned_store): Ditto.
26672 (TARGET_RETURN_IN_MSB): New.
26673 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26674 (TARGET_ENDIAN_DEFAULT): New.
26675 (TARGET_BIG_ENDIAN): Handle big endian.
26676 (BYTES_BIG_ENDIAN): Ditto.
26677 (WORDS_BIG_ENDIAN): Ditto.
26678 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26679 (ENDIAN_SPEC): New.
26680 (EXTRA_SPECS): New.
26681 * config/tilegx/tilegx.md (extv): Handle big endian.
26683 (insn_st<n>): Ditto.
26684 (insn_st<n>_add<bitsuffix>): Ditto.
26685 (insn_stnt<n>): Ditto.
26686 (insn_stnt<n>_add<bitsuffix>):Ditto.
26687 (vec_interleave_highv8qi): Handle big endian.
26688 (vec_interleave_highv8qi_be): New.
26689 (vec_interleave_highv8qi_le): New.
26690 (insn_v1int_h): Handle big endian.
26691 (vec_interleave_lowv8qi): Handle big endian.
26692 (vec_interleave_lowv8qi_be): New.
26693 (vec_interleave_lowv8qi_le): New.
26694 (insn_v1int_l): Handle big endian.
26695 (vec_interleave_highv4hi): Handle big endian.
26696 (vec_interleave_highv4hi_be): New.
26697 (vec_interleave_highv4hi_le): New.
26698 (insn_v2int_h): Handle big endian.
26699 (vec_interleave_lowv4hi): Handle big endian.
26700 (vec_interleave_lowv4hi_be): New.
26701 (vec_interleave_lowv4hi_le): New.
26702 (insn_v2int_l): Handle big endian.
26703 (vec_interleave_highv2si): Handle big endian.
26704 (vec_interleave_highv2si_be): New.
26705 (vec_interleave_highv2si_le): New.
26706 (insn_v4int_h): Handle big endian.
26707 (vec_interleave_lowv2si): Handle big endian.
26708 (vec_interleave_lowv2si_be): New.
26709 (vec_interleave_lowv2si_le): New.
26710 (insn_v4int_l): Handle big endian.
26711 * config/tilegx/tilegx.opt (mbig-endian): New option.
26712 (mlittle-endian): New option.
26713 * doc/install.texi: Document tilegxbe-linux.
26714 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26716 2014-02-24 Martin Jambor <mjambor@suse.cz>
26719 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26720 there are no parameter descriptors.
26722 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26724 PR rtl-optimization/60268
26725 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26726 initialization to ...
26727 (sched_rgn_init): ... here.
26728 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26730 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26732 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26735 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26737 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26740 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26742 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26743 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26745 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26747 * config/microblaze/predicates.md: Add cmp_op predicate.
26748 * config/microblaze/microblaze.md: Add branch_compare instruction
26749 which uses cmp_op predicate and emits cmp insn before branch.
26750 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26751 to microblaze_expand_conditional_branch and consolidate logic.
26752 (microblaze_expand_conditional_branch): emit branch_compare
26753 insn instead of handling cmp op separate from branch insn.
26755 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26757 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26760 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26762 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26763 define_insn with define_expand and new define_insn
26764 *altivec_lve<VI_char>x_internal.
26765 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26766 and new define_insn *altivec_stve<VI_char>x_internal.
26767 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26769 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26771 (altivec_expand_stvex_be): New function.
26773 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
26775 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26776 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26777 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26778 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26780 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
26783 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26784 instead of emit_move_insn.
26786 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26788 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26789 vspltw with vsldoi.
26790 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26791 gen_altivec_vsumsws.
26793 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26795 * config/rs6000/altivec.md (altivec_lvxl): Rename as
26796 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26797 (altivec_lvxl_<mode>): New define_expand incorporating
26798 -maltivec=be semantics where needed.
26799 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26800 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26801 semantics where needed.
26802 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26803 (altivec_stvx_<mode>): New define_expand incorporating
26804 -maltivec=be semantics where needed.
26805 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26806 VM2 iterator instead of V4SI.
26807 (altivec_stvxl_<mode>): New define_expand incorporating
26808 -maltivec=be semantics where needed.
26809 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26810 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26811 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26812 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26813 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26814 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26815 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26816 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26817 ALTIVEC_BUILTIN_STVXL.
26818 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26819 (altivec_expand_stvx_be): Likewise.
26820 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26821 (altivec_expand_lvx_be): Likewise.
26822 (altivec_expand_stvx_be): Likewise.
26823 (altivec_expand_builtin): Add cases for
26824 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26825 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26826 (altivec_init_builtins): Add definitions for
26827 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26828 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26830 2014-02-21 Catherine Moore <clm@codesourcery.com>
26832 * doc/invoke.texi (mvirt, mno-virt): Document.
26833 * config/mips/mips.opt (mvirt): New option.
26834 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26836 2014-02-21 Richard Biener <rguenther@suse.de>
26838 PR tree-optimization/60276
26839 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26840 (STMT_VINFO_MIN_NEG_DIST): New macro.
26841 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26842 STMT_VINFO_MIN_NEG_DIST.
26843 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26844 made for negative dependence distances still hold.
26846 2014-02-21 Richard Biener <rguenther@suse.de>
26848 PR middle-end/60291
26849 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26850 DECL_INITIAL for globals not in the current function context.
26852 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26854 PR tree-optimization/56490
26855 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26856 * tree-ssa-uninit.c: Include params.h.
26857 (compute_control_dep_chain): Add num_calls argument, return false
26858 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26859 num_calls to recursive call.
26860 (find_predicates): Change dep_chain into normal array,
26861 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26862 variable and adjust compute_control_dep_chain caller.
26863 (find_def_preds): Likewise.
26865 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
26867 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26868 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26870 2014-02-21 Nick Clifton <nickc@redhat.com>
26872 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26873 (pushhi1): Likewise.
26874 (popqi1): Add mode to pre_dec.
26875 (pophi1): Likewise.
26877 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26879 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26880 mode for mask of V8SFmode permutation.
26882 2014-02-20 Richard Henderson <rth@redhat.com>
26885 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26886 a new pseudo for OLDVAL.
26888 2014-02-20 Jakub Jelinek <jakub@redhat.com>
26891 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26892 gen_reg_rtx if d->testing_p.
26893 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26894 if d->testing_p and we will certainly return true.
26895 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
26898 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
26900 * emit-rtl.c (gen_reg_rtx): Assert that
26901 crtl->emit.regno_pointer_align_length is non-zero.
26903 2014-02-20 Richard Henderson <rth@redhat.com>
26906 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26907 on failure the store back into EXPECT.
26909 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
26910 Sandra Loosemore <sandra@codesourcery.com>
26912 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26913 * config/nios2/nios2.c (nios2_function_profiler): Add
26914 -fPIC (flag_pic == 2) support.
26915 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26916 (nios2_large_offset_p): New function.
26917 (nios2_unspec_reloc_p): Move up position, update to use
26918 nios2_large_offset_p.
26919 (nios2_unspec_address): Remove function.
26920 (nios2_unspec_offset): New function.
26921 (nios2_large_got_address): New function.
26922 (nios2_got_address): Add large offset support.
26923 (nios2_legitimize_tls_address): Update usage of removed and new
26925 (nios2_symbol_binds_local_p): New function.
26926 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26927 (nios2_legitimize_address): Update to use nios2_large_offset_p.
26928 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26929 (nios2_print_operand): Merge H/L processing, add hiadj/lo
26930 processing for (const (unspec ...)).
26931 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26933 2014-02-20 Richard Biener <rguenther@suse.de>
26935 * tree-cfg.c (replace_uses_by): Mark altered BBs before
26936 doing the substitution.
26937 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26939 2014-02-20 Martin Jambor <mjambor@suse.cz>
26942 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26943 info when checking whether lattices are bottom.
26945 2014-02-20 Richard Biener <rguenther@suse.de>
26947 PR middle-end/60221
26948 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26951 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
26954 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26955 parameter specifying the scaling.
26956 (inline_call): Update.
26957 (want_inline_recursively): Guard division by zero.
26958 (recursive_inlining): Update.
26959 * ipa-inline.h (clone_inlined_nodes): Update.
26961 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26964 * config/i386/i386.c (classify_argument): Pass structures of size
26965 64 bytes or less in register.
26967 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26968 Kirill Yukhin <kirill.yukhin@intel.com>
26970 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26971 (_mm_rcp28_round_ss): Ditto.
26972 (_mm_rsqrt28_round_sd): Ditto.
26973 (_mm_rsqrt28_round_ss): Ditto.
26974 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26975 (_mm_rcp14_round_ss): Ditto.
26976 (_mm_rsqrt14_round_sd): Ditto.
26977 (_mm_rsqrt14_round_ss): Ditto.
26978 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26979 the first input operand, get rid of match_dup.
26980 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26982 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26984 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26985 operand as the first input operand, set type attribute.
26986 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26987 Set type attribute.
26988 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26989 operand as the first input operand, set type attribute.
26991 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26993 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26996 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
26999 * config/i386/i386.c (construct_container): Remove TFmode check
27000 for X86_64_INTEGER_CLASS.
27002 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27005 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27006 only when -Wpsabi is enabled.
27008 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27011 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27012 passing arrays in registers are the same as for structs, so remove the
27013 special case for them.
27015 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27017 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27018 destination type, extract only the valid bits if the source type is not
27019 integral and has a different mode.
27021 2014-02-19 Richard Biener <rguenther@suse.de>
27024 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27027 2014-02-19 Richard Biener <rguenther@suse.de>
27030 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27031 (ipa_modify_call_arguments): Emit an argument load explicitely and
27032 preserve virtual SSA form there and for the replacement call.
27033 Do not update SSA form nor free dominance info.
27035 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27037 * ipa.c (function_and_variable_visibility): Also clear WEAK
27038 flag when disolving COMDAT_GROUP.
27040 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27042 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27043 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27044 not devirtualizing.
27045 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27046 do more sanity checks.
27047 (detect_type_change): Return true when giving up early.
27048 (compute_complex_assign_jump_func): Fix type parameter of
27049 ipa_set_ancestor_jf.
27050 (compute_complex_ancestor_jump_func): Likewise.
27051 (update_jump_functions_after_inlining): Fix updating of
27053 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27055 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27057 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27058 inline clones when edge disappears.
27060 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27063 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27064 Split 64-bit moves into 2 patterns. Do not allow the use of
27065 direct move for TDmode in little endian, since the decimal value
27066 has little endian bytes within a word, but the 64-bit pieces are
27067 ordered in a big endian fashion, and normal subreg's of TDmode are
27069 (mov<mode>_64bit_dm): Likewise.
27070 (movtd_64bit_nodm): Likewise.
27072 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27074 PR tree-optimization/60174
27075 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27076 statement of an SSA_NAME that occurs in an abnormal PHI node.
27078 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27081 * final.c (SEEN_BB): Remove.
27082 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27083 (final_scan_insn): Don't force_source_line on second
27084 NOTE_INSN_BASIC_BLOCK.
27086 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27089 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27090 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27091 (type_natural_mode): Warn ABI change when %zmm register is not
27092 available for AVX512F vector value passing.
27094 2014-02-18 Kai Tietz <ktietz@redhat.com>
27097 * config/i386/i386.c (ix86_expand_prologue): Use value in
27098 rax register as displacement when restoring %r10 or %rax.
27099 Fix wrong offset when restoring both registers.
27101 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27103 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27104 assertion with conditional return.
27106 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27107 Uros Bizjak <ubizjak@gmail.com>
27110 * config/i386/driver-i386.c (host_detect_local_cpu): If
27111 YMM state is not saved by the OS, also clear has_f16c. Move
27112 CPUID 0x80000001 handling before YMM state saving checking.
27114 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27116 PR rtl-optimization/58960
27117 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27118 factored out from ...
27119 (sched_init): ... here.
27120 (free_global_sched_pressure_data): New, factored out from ...
27121 (sched_finish): ... here.
27122 * sched-int.h (free_global_sched_pressure_data): Declare.
27123 * sched-rgn.c (nr_regions_initial): New static global.
27124 (haifa_find_rgns): Initialize it.
27125 (schedule_region): Disable sched-pressure for the newly
27128 2014-02-17 Richard Biener <rguenther@suse.de>
27130 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27131 release SSA defs of pattern stmts.
27133 2014-02-17 Richard Biener <rguenther@suse.de>
27135 * tree-inline.c (expand_call_inline): Release the virtual
27136 operand defined by the call we are about to inline.
27138 2014-02-17 Richard Biener <rguenther@suse.de>
27140 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27142 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27143 Ilya Tocar <ilya.tocar@intel.com>
27145 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27146 arguments order in builtin.
27147 (_mm512_permutexvar_epi64): Ditto.
27148 (_mm512_mask_permutexvar_epi64): Ditto
27149 (_mm512_maskz_permutexvar_epi32): Ditto
27150 (_mm512_permutexvar_epi32): Ditto
27151 (_mm512_mask_permutexvar_epi32): Ditto
27153 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27155 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27156 (p8_vmrgow): Likewise.
27158 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27160 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27163 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27166 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27167 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27168 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27169 using direct move instructions on ISA 2.07. Also adjust
27170 instruction length for 64-bit.
27171 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27172 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27174 2014-02-15 Alan Modra <amodra@gmail.com>
27178 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27179 find_replacement on parts of insn rtl that might be reloaded.
27181 2014-02-15 Richard Biener <rguenther@suse.de>
27183 PR tree-optimization/60183
27184 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27185 (tree_ssa_phiprop): Calculate and free post-dominators.
27187 2014-02-14 Jeff Law <law@redhat.com>
27189 PR rtl-optimization/60131
27190 * ree.c (get_extended_src_reg): New function.
27191 (combine_reaching_defs): Use it rather than assuming location of REG.
27192 (find_and_remove_re): Verify first operand of extension is
27193 a REG before adding the insns to the copy list.
27195 2014-02-14 Roland McGrath <mcgrathr@google.com>
27197 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27198 * configure: Regenerated.
27199 * config.in: Regenerated.
27200 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27201 instead of ASM_SHORT.
27203 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27204 Richard Earnshaw <rearnsha@arm.com>
27206 PR rtl-optimization/59535
27207 * lra-constraints.c (process_alt_operands): Encourage alternative
27208 when unassigned pseudo class is superset of the alternative class.
27209 (inherit_reload_reg): Don't inherit when optimizing for code size.
27210 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27211 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27212 modes not less than 4 for Thumb1.
27214 2014-02-14 Kyle McMartin <kyle@redhat.com>
27217 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27219 2014-02-14 Richard Biener <rguenther@suse.de>
27221 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27222 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27223 Do not strip INDIRECT_REFs.
27225 2014-02-14 Richard Biener <rguenther@suse.de>
27228 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27229 DECL_FUNCTION_SPECIFIC_TARGET.
27230 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27231 * tree-streamer-out.c (pack_ts_target_option): Remove.
27232 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27233 (write_ts_function_decl_tree_pointers): Do not stream
27234 DECL_FUNCTION_SPECIFIC_TARGET.
27235 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27236 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27237 (lto_input_ts_function_decl_tree_pointers): Do not stream
27238 DECL_FUNCTION_SPECIFIC_TARGET.
27240 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27242 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27243 (get_initial_def_for_induction, vectorizable_induction): Ignore
27244 debug stmts when looking for exit_phi.
27245 (vectorizable_live_operation): Fix up condition.
27247 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27249 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27250 nreverse() because it changes the content of original tree list.
27252 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27254 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27255 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27257 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27259 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27260 GNU coding standards.
27262 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27265 * dwarf2out.c (gen_subprogram_die): Don't call
27266 add_calling_convention_attribute if subr_die is old_die.
27268 2014-02-13 Sharad Singhai <singhai@google.com>
27270 * doc/optinfo.texi: Fix order of nodes.
27272 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27274 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27275 operands[2], not operands[3].
27277 2014-02-13 Richard Biener <rguenther@suse.de>
27280 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27281 mention the possibility of an in-tree build.
27282 (CLooG): Update recommended version to 0.18.1, mention the
27283 possibility of an in-tree build and clarify that the ISL
27284 bundled with CLooG does not work.
27286 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27289 * expr.c (compress_float_constant): If x is a hard register,
27290 extend into a pseudo and then move to x.
27292 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27294 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27295 caused by bad second argument to warning_at() with -mhotpatch and
27296 nested functions (e.g. with gfortran).
27298 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27300 * opts.c (option_name): Remove "enabled by default" rider.
27302 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27304 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27306 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27307 Uros Bizjak <ubizjak@gmail.com>
27310 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27311 * configure: Regenerated.
27313 2014-02-12 Richard Biener <rguenther@suse.de>
27315 * vec.c (vec_prefix::calculate_allocation): Move as
27316 inline variant to vec.h.
27317 (vec_prefix::calculate_allocation_1): New out-of-line version.
27318 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27319 (vec_prefix::m_has_auto_buf): Rename to ...
27320 (vec_prefix::m_using_auto_storage): ... this.
27321 (vec_prefix::calculate_allocation): Inline the easy cases
27322 and dispatch to calculate_allocation_1 which doesn't need the
27324 (va_heap::reserve): Use gcc_checking_assert.
27325 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27326 m_using_auto_storage.
27327 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27329 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27330 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27331 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27333 2014-02-12 Richard Biener <rguenther@suse.de>
27335 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27336 when we found a dependence.
27338 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27340 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27342 (maybe_fold_stmt): ... into this new function.
27343 * omp-low.c (lower_omp): Update comment.
27345 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27348 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27351 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27353 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27354 identifiers in comments.
27355 (cortexa53_extra_costs): Likewise.
27356 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27357 (cortexa7_extra_costs): Likewise.
27358 (cortexa12_extra_costs): Likewise.
27359 (cortexa15_extra_costs): Likewise.
27360 (v7m_extra_costs): Likewise.
27362 2014-02-12 Richard Biener <rguenther@suse.de>
27364 PR middle-end/60092
27365 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27366 of posix_memalign being successful.
27367 (lower_stmt): Restrict lowering of posix_memalign to when
27368 -ftree-bit-ccp is enabled.
27370 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27372 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27374 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27376 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27378 PR rtl-optimization/60116
27379 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27380 other_insn once the combination has been validated.
27382 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27385 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27387 * ipa-devirt.c: Include demangle.h
27388 (odr_violation_reported): New static variable.
27389 (add_type_duplicate): Update odr_violations.
27390 (maybe_record_node): Add completep parameter; update it.
27391 (record_target_from_binfo): Add COMPLETEP parameter;
27392 update it as needed.
27393 (possible_polymorphic_call_targets_1): Likewise.
27394 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27395 rename FINAL to COMPLETE.
27396 (record_targets_from_bases): Sanity check we found the binfo;
27397 fix COMPLETEP updating.
27398 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27399 parameter, fix computing of COMPLETEP.
27400 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27401 at LTO time do demangling.
27402 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27403 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27405 (gimple_get_virt_method_for_binfo): Likewise.
27406 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27407 gimple_get_virt_method_for_vtable): Update prototypes.
27409 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27412 * genautomata.c (add_presence_absence): Fix typo with
27413 {final_}presence_list.
27415 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27418 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27419 for VSX/Altivec vectors that land in GPR registers.
27421 2014-02-11 Richard Henderson <rth@redhat.com>
27422 Jakub Jelinek <jakub@redhat.com>
27425 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27426 around drhs if type conversion to lacc->type is not useless.
27428 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27430 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27432 (cortex-a57.cortex-a53): Likewise.
27433 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27435 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27437 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27440 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27442 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27443 add_options_for_arm_vfp3.
27445 2014-02-11 Jeff Law <law@redhat.com>
27447 PR middle-end/54041
27448 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27449 object with an undesirable mode.
27451 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27454 * config/i386/sol2-9.h: New file.
27455 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27456 *-*-solaris2.9*): Use it.
27458 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27460 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27461 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27463 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27465 * config/microblaze/microblaze.c: Extend mcpu version format
27467 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27469 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27471 2014-02-10 Richard Henderson <rth@redhat.com>
27474 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27475 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27476 ms-abi vs -mno-accumulate-outgoing-args.
27477 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27478 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27481 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27483 PR middle-end/60080
27484 * cfgexpand.c (expand_asm_operands): Attach source location to
27485 ASM_INPUT rtx objects.
27486 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27488 2014-02-10 Nick Clifton <nickc@redhat.com>
27490 * config/mn10300/mn10300.c (popcount): New function.
27491 (mn10300_expand_prologue): Include saved registers in stack usage
27494 2014-02-10 Jeff Law <law@redhat.com>
27496 PR middle-end/52306
27497 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27498 when changing the SET_DEST of a prior insn to avoid an input reload.
27500 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27502 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27503 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27504 -mcall-openbsd, or -mcall-linux.
27505 (CC1_ENDIAN_BIG_SPEC): Remove.
27506 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27507 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27508 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27509 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27510 and %cc1_endian_default.
27511 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27513 2014-02-10 Richard Biener <rguenther@suse.de>
27515 PR tree-optimization/60115
27516 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27517 MEM_REF handling. Properly verify that the accesses are not
27518 out of the objects bound.
27520 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27522 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27525 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27527 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27528 proper constants and fix formatting.
27529 (possible_polymorphic_call_targets): Fix formatting.
27531 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27532 Ilya Tocar <ilya.tocar@intel.com>
27534 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27535 (_mm512_loadu_epi32): Renamed into...
27536 (_mm512_loadu_si512): This.
27537 (_mm512_storeu_epi32): Renamed into...
27538 (_mm512_storeu_si512): This.
27539 (_mm512_maskz_ceil_ps): Removed.
27540 (_mm512_maskz_ceil_pd): Ditto.
27541 (_mm512_maskz_floor_ps): Ditto.
27542 (_mm512_maskz_floor_pd): Ditto.
27543 (_mm512_floor_round_ps): Ditto.
27544 (_mm512_floor_round_pd): Ditto.
27545 (_mm512_ceil_round_ps): Ditto.
27546 (_mm512_ceil_round_pd): Ditto.
27547 (_mm512_mask_floor_round_ps): Ditto.
27548 (_mm512_mask_floor_round_pd): Ditto.
27549 (_mm512_mask_ceil_round_ps): Ditto.
27550 (_mm512_mask_ceil_round_pd): Ditto.
27551 (_mm512_maskz_floor_round_ps): Ditto.
27552 (_mm512_maskz_floor_round_pd): Ditto.
27553 (_mm512_maskz_ceil_round_ps): Ditto.
27554 (_mm512_maskz_ceil_round_pd): Ditto.
27555 (_mm512_expand_pd): Ditto.
27556 (_mm512_expand_ps): Ditto.
27557 * config/i386/i386.c (ix86_builtins): Remove
27558 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27559 (bdesc_args): Ditto.
27560 * config/i386/predicates.md (const1256_operand): New.
27561 (const_1_to_2_operand): Ditto.
27562 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27563 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27564 (*avx512pf_gatherpf<mode>sf): Ditto.
27565 (avx512pf_gatherpf<mode>df): Ditto.
27566 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27567 (*avx512pf_gatherpf<mode>df): Ditto.
27568 (avx512pf_scatterpf<mode>sf): Ditto.
27569 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27570 (*avx512pf_scatterpf<mode>sf): Ditto.
27571 (avx512pf_scatterpf<mode>df): Ditto.
27572 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27573 (*avx512pf_scatterpf<mode>df): Ditto.
27574 (avx512f_expand<mode>): Removed.
27575 (<shift_insn><mode>3<mask_name>): Change predicate type.
27577 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27579 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27580 not at the end of datarefs vector use ordered_remove to avoid
27581 reordering datarefs vector.
27584 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27585 mark local addressable non-static vars as GOVD_PRIVATE
27586 instead of GOVD_LOCAL.
27587 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27588 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27591 PR middle-end/60092
27592 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27593 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27594 assume_aligned or alloc_align attributes.
27595 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27596 arguments. Handle also assume_aligned and alloc_align attributes.
27597 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27598 calls to functions with assume_aligned or alloc_align attributes.
27599 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27601 2014-02-08 Terry Guo <terry.guo@arm.com>
27603 * doc/invoke.texi: Document ARM -march=armv7e-m.
27605 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27607 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27608 flag on __cilkrts_rethrow builtin.
27611 * ipa-cp.c (determine_versionability): Fail at -O0
27612 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27613 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27616 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27619 * tree-inline.c (copy_forbidden): Fail for
27620 __attribute__((optimize (0))) functions.
27622 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27624 * varpool.c: Include pointer-set.h.
27625 (varpool_remove_unreferenced_decls): Variables in other partitions
27626 will not be output; be however careful to not lose information
27627 about partitioning.
27629 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27631 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27632 lookup in the vtable constructor.
27634 2014-02-07 Jeff Law <law@redhat.com>
27637 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27638 define_insn_and_split.
27640 * ipa-inline.c (inline_small_functions): Fix typos.
27642 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27644 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27645 (s390_can_use_return_insn): Declare.
27646 * config/s390/s390.h (EPILOGUE_USES): Define.
27647 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27649 (s390_chunkify_start): Handle return JUMP_LABELs.
27650 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27651 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27652 (s390_can_use_return_insn): New functions.
27653 (s390_fix_long_loop_prediction): Handle conditional returns.
27654 (TARGET_SET_UP_BY_PROLOGUE): Define.
27655 * config/s390/s390.md (ANY_RETURN): New code iterator.
27656 (*creturn, *csimple_return, return, simple_return): New patterns.
27658 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27660 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27661 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27662 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27663 REG_CFA_RESTORE list when deciding not to restore a register.
27665 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27667 * config/s390/s390.c: Include tree-pass.h and context.h.
27668 (s390_early_mach): New function, split out from...
27669 (s390_emit_prologue): ...here.
27670 (pass_data_s390_early_mach): New pass structure.
27671 (pass_s390_early_mach): New class.
27672 (s390_option_override): Create and register early_mach pass.
27673 Move to end of file.
27675 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27677 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27678 to match for the exit block.
27680 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27682 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27683 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27684 Reject misaligned operands.
27686 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27688 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27690 2014-02-07 Richard Biener <rguenther@suse.de>
27692 PR middle-end/60092
27693 * gimple-low.c (lower_builtin_posix_memalign): New function.
27694 (lower_stmt): Call it to lower posix_memalign in a way
27695 to make alignment info accessible.
27697 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27700 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27701 __builtin_setjmp_receiver.
27703 2014-02-07 Richard Biener <rguenther@suse.de>
27705 PR middle-end/60092
27706 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27707 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27708 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27709 Handle BUILT_IN_POSIX_MEMALIGN.
27710 (find_func_clobbers): Likewise.
27711 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27712 (call_may_clobber_ref_p_1): Likewise.
27714 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27717 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27720 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27723 * lto-cgraph.c (lto_output_node): Use
27724 symtab_get_symbol_partitioning_class.
27725 (lto_output_varpool_node): likewise.
27726 (symtab_get_symbol_partitioning_class): Move here from
27727 lto/lto-partition.c
27728 * cgraph.h (symbol_partitioning_class): Likewise.
27729 (symtab_get_symbol_partitioning_class): Declare.
27731 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27733 * ggc.h (ggc_internal_cleared_alloc): New macro.
27734 * vec.h (vec_safe_copy): Handle memory stats.
27735 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27736 * target-globals.c (save_target_globals): Likewise.
27738 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27741 * expr.c (emit_move_resolve_push): Export; be bit more selective
27742 on when to clear alias set.
27743 * expr.h (emit_move_resolve_push): Declare.
27744 * function.h (struct function): Add tail_call_marked.
27745 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27746 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27747 * config/i386/i386.md (TImode move expander): De not call
27749 (FP push expanders): Preserve memory attributes.
27750 * config/i386/sse.md (push<mode>1): Remove.
27751 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27752 (ix86_expand_push): Remove.
27753 * config/i386/mmx.md (push<mode>1): Remove.
27755 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27757 PR rtl-optimization/60030
27758 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27759 lopart with paradoxical subreg before shifting it up by hprec.
27761 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27763 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27764 Remove extra newline at end of file.
27765 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27766 (arm_issue_rate): Handle cortexa57.
27767 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27768 (cortex-a57.cortex-a53): Likewise.
27770 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27773 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27774 don't record in REG_FRAME_RELATED_EXPR registers not set in that
27776 (arm_expand_prologue): Adjust all callers.
27777 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27778 info, registers also at the lowest numbered registers side. Use
27779 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27783 * var-tracking.c (adjust_mems): Before adding a SET to
27784 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27786 2014-02-06 Alan Modra <amodra@gmail.com>
27789 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27790 change SDmode to DDmode when lra_in_progress.
27792 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27794 PR middle-end/59150
27795 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27796 free_data_ref on the dr first, and before goto again also set dr
27797 to the next dr. For simd_lane_access, free old datarefs[i] before
27798 overwriting it. For get_vectype_for_scalar_type failure, don't
27799 free_data_ref if simd_lane_access.
27801 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27804 * tree.h (opts_for_fn): New inline function.
27805 (opt_for_fn): Define.
27806 * config/i386/i386.c (ix86_function_regparm): Use
27807 opt_for_fn (decl, optimize) instead of optimize.
27809 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
27811 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27812 for SYMBOL_REF in large memory model.
27814 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27816 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27817 and crypto support.
27818 (cortex-a57): Likewise.
27819 (cortex-a57.cortex-a53): Likewise.
27821 2014-02-06 Yury Gribov <y.gribov@samsung.com>
27822 Kugan Vivekanandarajah <kuganv@linaro.org>
27824 * config/arm/arm.c (arm_vector_alignment_reachable): Check
27826 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27828 2014-02-06 Richard Biener <rguenther@suse.de>
27830 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27831 set_loop_copy and initialize_original_copy_tables.
27833 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
27835 * config/aarch64/aarch64-simd.md
27836 (aarch64_ashr_simddi): Change QI to SI.
27838 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27839 Jakub Jelinek <jakub@redhat.com>
27841 PR middle-end/60013
27842 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27845 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27847 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27848 CODE_FOR_altivec_vpku[hw]um to
27849 CODE_FOR_altivec_vpku[hw]um_direct.
27850 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27851 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27852 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27853 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27855 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27857 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27858 generation for -maltivec=be.
27859 (altivec_vsumsws): Simplify redundant test.
27861 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27863 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27864 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27865 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27866 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27867 gen_altivec_vpkuwum.
27868 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27870 (altivec_vpks<VI_char>ss): Likewise.
27871 (altivec_vpks<VI_char>us): Likewise.
27872 (altivec_vpku<VI_char>us): Likewise.
27873 (altivec_vpku<VI_char>um): Likewise.
27874 (altivec_vpku<VI_char>um_direct): New (copy of
27875 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27877 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27878 target is little endian and -maltivec=be is not specified.
27879 (*altivec_vupkhs<VU_char>_direct): New (copy of
27880 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27881 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27882 target is little endian and -maltivec=be is not specified.
27883 (*altivec_vupkls<VU_char>_direct): New (copy of
27884 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27885 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27886 little endian and -maltivec=be is not specified.
27887 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27888 little endian and -maltivec=be is not specified.
27890 2014-02-05 Richard Henderson <rth@redhat.com>
27893 * combine-stack-adj.c: Revert r206943.
27894 * sched-int.h (struct deps_desc): Add last_args_size.
27895 * sched-deps.c (init_deps): Initialize it.
27896 (sched_analyze_insn): Add OUTPUT dependencies between insns that
27897 contain REG_ARGS_SIZE notes.
27899 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27901 * lto-cgraph.c (asm_nodes_output): Make global.
27902 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27903 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27904 (driver_handle_option): Handle OPT_fwpa.
27906 2014-02-05 Jakub Jelinek <jakub@redhat.com>
27909 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27910 a comment typo and formatting issue. If odr_hash hasn't been
27911 created, return vNULL and set *completep to false.
27913 PR middle-end/57499
27914 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27915 bb with no successors.
27917 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
27920 * doc/invoke.texi (-march): Clarify documentation for ARM.
27921 (-mtune): Likewise.
27924 2014-02-05 Richard Biener <rguenther@suse.de>
27926 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27927 when not vectorizing because of too many alias checks.
27928 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27929 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27931 2014-02-05 Nick Clifton <nickc@redhat.com>
27933 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27934 accept extended registers in any mode when compiling for the MN10300.
27936 2014-02-05 Yury Gribov <y.gribov@samsung.com>
27938 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27939 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27940 sanitization attributes.
27941 (can_inline_edge_p): Likewise.
27942 (sanitize_attrs_match_for_inline_p): New function.
27944 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27946 * ipa-prop.c (detect_type_change): Shor circuit testing of
27947 type changes on THIS pointer.
27949 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
27952 * config/pa/pa.c (legitimize_tls_address): Return original address
27953 if not passed a SYMBOL_REF rtx.
27954 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27956 (pa_emit_move_sequence): Simplify TLS source operands.
27957 (pa_legitimate_constant_p): Reject all TLS constants.
27958 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27959 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27961 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27963 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27964 groups when we know they are controlled by LTO.
27965 * varasm.c (default_binds_local_p_1): If object is in other partition,
27966 it will be resolved locally.
27968 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27970 * config/host-linux.c (linux_gt_pch_use_address): Don't
27971 use SSIZE_MAX because it is not always defined.
27973 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
27976 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27977 threshold for pseudo splitting.
27978 (update_ebb_live_info): Process call argument hard registers and
27979 hard registers from insn definition too.
27980 (max_small_class_regs_num): New constant.
27981 (inherit_in_ebb): Update live hard regs through EBBs. Update
27982 reloads_num only for small register classes. Don't split for
27985 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
27988 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27991 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27993 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27994 visibility is safe.
27996 2014-02-04 Marek Polacek <polacek@redhat.com>
27998 * gdbinit.in (pel): Define.
28000 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28002 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28005 2014-02-04 Richard Biener <rguenther@suse.de>
28008 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28009 in function context local.
28010 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28011 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28012 similar to LTO_imported_decl_ref.
28014 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28016 PR tree-optimization/60002
28017 * cgraphclones.c (build_function_decl_skip_args): Clear
28018 DECL_LANG_SPECIFIC.
28020 PR tree-optimization/60023
28021 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28022 false to gsi_replace.
28023 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28024 has been in some EH region and vec_stmt could throw, add
28025 vec_stmt into the same EH region.
28026 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28027 has no lhs, ignore it.
28028 * internal-fn.c (expand_MASK_LOAD): Likewise.
28031 * tree-inline.c (copy_forbidden): Fail for
28032 __attribute__((optimize (0))) functions.
28035 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28036 is set, copy one less argument.
28037 (expand_simd_clones): Don't subtract clone_info->inbranch
28038 from simd_clone_struct_alloc argument.
28040 PR rtl-optimization/57915
28041 * recog.c (simplify_while_replacing): If all unary/binary/relational
28042 operation arguments are constant, attempt to simplify those.
28044 PR middle-end/59261
28045 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28046 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28048 2014-02-04 Richard Biener <rguenther@suse.de>
28050 PR tree-optimization/60012
28051 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28052 TBAA disambiguation to all DDRs.
28054 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28057 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28058 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28060 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28063 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28065 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28067 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28068 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28070 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28073 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28074 to figure out targets of polymorphic calls with known decl.
28075 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28076 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28077 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28078 (get_polymorphic_call_info): ... here.
28079 (get_polymorphic_call_info_from_invariant): New function.
28081 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28083 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28084 lookup via vtable pointer; check for type consistency
28085 and turn inconsitent facts into UNREACHABLE.
28086 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28087 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28088 type inconsistent querries; return UNREACHABLE instead.
28090 2014-02-03 Richard Henderson <rth@twiddle.net>
28093 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28094 already processed this node.
28095 (normalize_one_pred_1): Pass along mark_set.
28096 (normalize_one_pred): Create and destroy a pointer_set_t.
28097 (normalize_one_pred_chain): Likewise.
28099 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28101 PR gcov-profile/58602
28102 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28104 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28107 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28108 -fno-devirtualize; try to devirtualize by the knowledge of
28109 virtual table pointer given by aggregate propagation.
28110 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28111 (ipa_print_node_jump_functions): Dump also offset that
28112 is relevant for polymorphic calls.
28113 (determine_known_aggregate_parts): Add arg_type parameter; use it
28114 instead of determining the type from pointer type.
28115 (ipa_compute_jump_functions_for_edge): Update call of
28116 determine_known_aggregate_parts.
28117 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28118 (gimple_get_virt_method_for_binfo): ... here; simplify using
28119 vtable_pointer_value_to_vtable.
28120 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28121 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28122 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28123 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28125 (vtable_pointer_value_to_binfo): ... here.
28126 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28128 2014-02-03 Teresa Johnson <tejohnson@google.com>
28130 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28131 redef of outer loop index variable.
28133 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28137 * doc/extend.texi (Function Attributes): Typo.
28139 2014-02-03 Cong Hou <congh@google.com>
28141 PR tree-optimization/60000
28142 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28143 if the vectorized statement is a store. A store statement can only
28144 appear at the end of pattern statements.
28146 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28148 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28149 (ix86_option_override_internal): Default long double to 64-bit for
28150 32-bit Bionic and to 128-bit for 64-bit Bionic.
28152 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28153 TARGET_LONG_DOUBLE_128 is true.
28154 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28156 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28157 (mlong-double-64): Negate -mlong-double-128.
28158 (mlong-double-128): New option.
28160 * config/i386/i386-c.c (ix86_target_macros): Define
28161 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28163 * doc/invoke.texi: Document -mlong-double-128.
28165 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28167 PR rtl-optimization/60024
28168 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28170 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28172 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28174 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28176 PR rtl-optimization/57662
28177 * sel-sched.c (code_motion_path_driver): Do not mark already not
28178 existing blocks in the visiting bitmap.
28180 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28182 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28183 on the insn being emitted.
28185 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28186 Will Deacon <will.deacon@arm.com>
28188 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28190 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28192 * config/arm/arm-tables.opt: Regenerate.
28194 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28196 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28197 for vector types other than V16QImode.
28198 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28199 define_expand, and call altivec_expand_vec_perm_le when producing
28200 code with little endian element order.
28201 (*altivec_vperm_<mode>_internal): New insn having previous
28202 behavior of altivec_vperm_<mode>.
28203 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28204 altivec_expand_vec_perm_le when producing code with little endian
28206 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28207 behavior of altivec_vperm_<mode>_uns.
28209 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28211 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28212 (altivec_vsumsws): Add handling for -maltivec=be with a little
28214 (altivec_vsumsws_direct): New.
28215 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28216 gen_altivec_vsumsws.
28218 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28220 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28221 vtable_pointer_value_to_binfo): New functions.
28222 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28223 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28225 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28227 * config/nios2/nios2.md (load_got_register): Initialize GOT
28228 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28229 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28231 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28233 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28234 preserverd by passthrough, do not propagate the type.
28236 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28238 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28239 (mips_atomic_assign_expand_fenv): New function.
28240 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28242 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28244 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28245 (__builtin_mips_set_fcsr): Likewise.
28246 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28247 MIPS_USI_FTYPE_VOID.
28248 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28249 (mips16_expand_set_fcsr): Likewise.
28250 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28251 (mips16_set_fcsr_stub): Likewise.
28252 (mips16_get_fcsr_one_only_stub): New class.
28253 (mips16_set_fcsr_one_only_stub): Likewise.
28254 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28255 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28256 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28257 (hard_float): New availability predicate.
28258 (mips_builtins): Add get_fcsr and set_fcsr.
28259 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28260 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28261 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28262 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28263 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28266 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28268 * config/mips/mips.c (mips_one_only_stub): New class.
28269 (mips_need_mips16_rdhwr_p): Replace with...
28270 (mips16_rdhwr_stub): ...this new variable.
28271 (mips16_stub_call_address): New function.
28272 (mips16_rdhwr_one_only_stub): New class.
28273 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28274 (mips_output_mips16_rdhwr): Delete.
28275 (mips_finish_stub): New function.
28276 (mips_code_end): Use it to handle rdhwr stubs.
28278 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28281 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28282 when calculating size of integer atomic types.
28284 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28286 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28288 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28290 PR tree-optimization/60003
28291 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28292 * profile.c (branch_prob): Use gimple_call_builtin_p
28293 to check for BUILT_IN_SETJMP_RECEIVER.
28294 * tree-inline.c (copy_bb): Call notice_special_calls.
28296 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28299 * lra-constraints.c (process_alt_operands): Update reload_sum only
28302 2014-01-31 Richard Henderson <rth@redhat.com>
28304 PR middle-end/60004
28305 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28306 until after else_eh is processed.
28308 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28310 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28311 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28312 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28313 in smmintrin.h, remove them.
28314 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28315 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28316 * config/i386/i386.md (ROUND_SAE): Fix value.
28317 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28318 (const48_operand): New.
28319 * config/i386/subst.md (round), (round_expand): Use
28320 const_4_or_8_to_11_operand.
28321 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28323 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28325 * config/i386/constraints.md (Yk): Swap meaning with k.
28326 * config/i386/i386.md (movhi_internal): Change Yk to k.
28327 (movqi_internal): Ditto.
28328 (*k<logic><mode>): Ditto.
28331 (kandn<mode>): Ditto.
28332 (*<code>hi_1): Ditto.
28333 (*<code>qi_1): Ditto.
28334 (kxnor<mode>): Ditto.
28335 (kortestzhi): Ditto.
28336 (kortestchi): Ditto.
28338 (*one_cmplhi2_1): Ditto.
28339 (*one_cmplqi2_1): Ditto.
28340 * config/i386/sse.md (): Change k to Yk.
28341 (avx512f_load<mode>_mask): Ditto.
28342 (avx512f_blendm<mode>): Ditto.
28343 (avx512f_store<mode>_mask): Ditto.
28344 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28345 (avx512f_storedqu<mode>_mask): Ditto.
28346 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28348 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28349 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28350 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28351 (avx512f_maskcmp<mode>3): Ditto.
28352 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28353 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28354 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28355 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28356 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28357 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28358 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28359 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28360 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28361 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28362 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28363 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28364 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28365 (vec_extract_lo_<mode>_maskm): Ditto.
28366 (vec_extract_hi_<mode>_maskm): Ditto.
28367 (avx512f_vternlog<mode>_mask): Ditto.
28368 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28369 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28370 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28371 (avx512f_<code>v8div16qi2_mask): Ditto.
28372 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28373 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28374 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28375 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28376 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28377 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28378 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28379 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28380 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28381 (avx512cd_maskb_vec_dupv8di): Ditto.
28382 (avx512cd_maskw_vec_dupv16si): Ditto.
28383 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28384 (avx512f_vpermi2var<mode>3_mask): Ditto.
28385 (avx512f_vpermi2var<mode>3_mask): Ditto.
28386 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28387 (*avx512f_gathersi<mode>): Ditto.
28388 (*avx512f_gathersi<mode>_2): Ditto.
28389 (*avx512f_gatherdi<mode>): Ditto.
28390 (*avx512f_gatherdi<mode>_2): Ditto.
28391 (*avx512f_scattersi<mode>): Ditto.
28392 (*avx512f_scatterdi<mode>): Ditto.
28393 (avx512f_compress<mode>_mask): Ditto.
28394 (avx512f_compressstore<mode>_mask): Ditto.
28395 (avx512f_expand<mode>_mask): Ditto.
28396 * config/i386/subst.md (mask): Change k to Yk.
28397 (mask_scalar_merge): Ditto.
28400 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28402 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28404 2014-01-31 Richard Biener <rguenther@suse.de>
28406 PR middle-end/59990
28407 * builtins.c (fold_builtin_memory_op): Make sure to not
28408 use a floating-point mode or a boolean or enumeral type for
28409 the copy operation.
28411 2014-01-30 DJ Delorie <dj@redhat.com>
28413 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28414 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28415 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28416 whenever main() has an epilogue.
28418 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28420 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28421 unused variable "field".
28422 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28423 (vsx_mergeh_<mode>): Likewise.
28424 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28425 (altivec_vmrghh): Likewise.
28426 (altivec_vmrghw): Likewise.
28427 (altivec_vmrglb): Likewise.
28428 (altivec_vmrglh): Likewise.
28429 (altivec_vmrglw): Likewise.
28430 (altivec_vspltb): Add missing uses.
28431 (altivec_vsplth): Likewise.
28432 (altivec_vspltw): Likewise.
28433 (altivec_vspltsf): Likewise.
28435 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28438 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28439 frame related instructions.
28441 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28443 PR rtl-optimization/59959
28444 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28445 any reload of register whose subreg is invalid.
28447 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28449 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28450 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28451 Add missing return type - void.
28453 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28455 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28456 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28457 remove element index adjustment for endian (now handled in vsx.md
28459 (altivec_expand_vec_perm_const): Use
28460 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28461 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28462 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28463 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28464 define_expand and a new define_insn *altivec_vspltb_internal;
28465 adjust for -maltivec=be on a little endian target.
28466 (altivec_vspltb_direct): New.
28467 (altivec_vsplth): Divide into a define_expand and a new
28468 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28469 little endian target.
28470 (altivec_vsplth_direct): New.
28471 (altivec_vspltw): Divide into a define_expand and a new
28472 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28473 little endian target.
28474 (altivec_vspltw_direct): New.
28475 (altivec_vspltsf): Divide into a define_expand and a new
28476 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28477 a little endian target.
28479 2014-01-30 Richard Biener <rguenther@suse.de>
28481 PR tree-optimization/59993
28482 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28483 can propagate form the earlier stmt and avoid the transform
28484 when the intermediate result is needed.
28486 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28488 * README.Portability: Fix typo.
28490 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28492 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28493 comparison_operator with ordered_comparison_operator.
28495 2014-01-30 Nick Clifton <nickc@redhat.com>
28497 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28498 Rename to mn10300_store_multiple_regs.
28499 * config/mn10300/mn10300.c: Likewise.
28500 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28501 store_multiple_regs.
28502 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28503 Call mn10300_store_multiple_regs.
28505 2014-01-30 Nick Clifton <nickc@redhat.com>
28506 DJ Delorie <dj@redhat.com>
28508 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28509 %fp 2 to keep registers after it properly word-aligned.
28510 (rl78_alloc_physical_registers_umul): Handle the case where both
28511 input operands are the same.
28513 2014-01-30 Richard Biener <rguenther@suse.de>
28515 PR tree-optimization/59903
28516 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28519 2014-01-30 Jason Merrill <jason@redhat.com>
28522 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28525 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28527 2014-01-30 Richard Biener <rguenther@suse.de>
28529 PR tree-optimization/59951
28530 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28532 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28535 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28536 SFmode to DFmode case.
28538 2014-01-29 DJ Delorie <dj@redhat.com>
28540 * config/msp430/msp430.opt (-minrt): New.
28541 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28543 (ENDFILE_SPEC): Likewise.
28545 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28547 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28548 (estimate_function_body_sizes): Use it.
28550 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28553 * dwarf2out.c (is_cxx_auto): New.
28554 (is_base_type): Use it.
28555 (gen_type_die_with_usage): Likewise.
28557 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28559 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28560 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28561 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28562 -maltivec=be with LE targets.
28563 (vsx_mergeh_<mode>): Likewise.
28564 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28565 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28566 (altivec_vmrghb): Replace with define_expand and new
28567 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28568 (altivec_vmrghb_direct): New define_insn.
28569 (altivec_vmrghh): Replace with define_expand and new
28570 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28571 (altivec_vmrghh_direct): New define_insn.
28572 (altivec_vmrghw): Replace with define_expand and new
28573 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28574 (altivec_vmrghw_direct): New define_insn.
28575 (*altivec_vmrghsf): Adjust for endianness.
28576 (altivec_vmrglb): Replace with define_expand and new
28577 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28578 (altivec_vmrglb_direct): New define_insn.
28579 (altivec_vmrglh): Replace with define_expand and new
28580 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28581 (altivec_vmrglh_direct): New define_insn.
28582 (altivec_vmrglw): Replace with define_expand and new
28583 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28584 (altivec_vmrglw_direct): New define_insn.
28585 (*altivec_vmrglsf): Adjust for endianness.
28586 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28587 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28588 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28589 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28590 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28591 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28592 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28593 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28595 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28597 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28598 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28601 2014-01-29 Richard Biener <rguenther@suse.de>
28603 PR tree-optimization/58742
28604 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28605 associate_pointerplus_align.
28606 (associate_pointerplus_diff): New function.
28607 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28608 and associate_pointerplus_diff.
28610 2014-01-29 Richard Biener <rguenther@suse.de>
28612 * lto-streamer.h (LTO_major_version): Bump to 3.
28613 (LTO_minor_version): Reset to 0.
28615 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28617 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28618 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28619 (arm_file_start): Generate correct asm header for armv7ve.
28620 * config/arm/bpabi.h: Add multilib support for armv7ve.
28621 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28622 and cortex-a15 to armv7ve.
28623 * config/arm/t-aprofile: Add multilib support for armv7ve.
28624 * doc/invoke.texi: Document -march=armv7ve.
28626 2014-01-29 Richard Biener <rguenther@suse.de>
28628 PR tree-optimization/58742
28629 * tree-ssa-forwprop.c (associate_plusminus): Return true
28630 if we changed sth, defer EH cleanup to ...
28631 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28632 (simplify_mult): New function.
28634 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28636 PR middle-end/59917
28637 PR tree-optimization/59920
28638 * tree.c (build_common_builtin_nodes): Remove
28639 __builtin_setjmp_dispatcher initialization.
28640 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28641 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28642 instead of gsi_after_labels + manually skipping debug stmts.
28643 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28644 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28645 * tree-inline.c (copy_edges_for_bb): Remove
28646 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28647 argument. Ignore computed_goto_p stmts. Don't call
28648 make_abnormal_goto_edges. If a call might need abnormal edges
28649 for non-local gotos, see if it already has an edge to
28650 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28651 with true argument, don't do anything then, otherwise add
28652 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28653 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28655 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28656 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28657 (lower_stmt): Don't set data->calls_builtin_setjmp.
28658 (lower_builtin_setjmp): Adjust comment.
28659 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28660 * tree-cfg.c (found_computed_goto): Remove.
28661 (factor_computed_gotos): Remove.
28662 (make_goto_expr_edges): Return bool, true for computed gotos.
28663 Don't call make_abnormal_goto_edges.
28664 (build_gimple_cfg): Don't set found_computed_goto, don't call
28665 factor_computed_gotos.
28666 (computed_goto_p): No longer static.
28667 (make_blocks): Don't set found_computed_goto.
28668 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28669 (make_edges): If make_goto_expr_edges returns true, push bb
28670 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28671 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28672 vector. Record mapping between bbs and OpenMP regions if there
28673 are any, adjust make_gimple_omp_edges caller. Call
28674 handle_abnormal_edges.
28675 (make_abnormal_goto_edges): Remove.
28676 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28677 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28678 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28679 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28680 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28681 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28682 filling *region also set *region_idx to (*region)->entry->index.
28685 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28686 For REGs set ORIGINAL_REGNO.
28688 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28690 * doc/md.texi: Mention that a target shouldn't implement
28691 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28694 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28696 PR tree-optimization/59594
28697 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28698 a copy of the datarefs vector rather than the vector itself.
28700 2014-01-28 Jason Merrill <jason@redhat.com>
28703 * dwarf2out.c (auto_die): New static.
28704 (gen_type_die_with_usage): Handle C++1y 'auto'.
28705 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28708 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28711 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28712 (SPEC_X32): Likewise.
28713 (SPEC_64): Likewise.
28714 * config/i386/i386.c (ix86_option_override_internal): Turn off
28715 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28717 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28718 * config/i386/i386.h (TARGET_16BIT): New macro.
28719 (TARGET_16BIT_P): Likewise.
28720 * config/i386/i386.opt: Add m16.
28721 * doc/invoke.texi: Document -m16.
28723 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28725 PR preprocessor/59935
28726 * input.c (location_get_source_line): Bail out on when line number
28727 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28729 2014-01-28 Richard Biener <rguenther@suse.de>
28731 PR tree-optimization/58742
28732 * tree-ssa-forwprop.c (associate_plusminus): Handle
28733 pointer subtraction of the form (T)(P + A) - (T)P.
28735 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28737 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28740 2014-01-28 Richard Biener <rguenther@suse.de>
28743 2014-01-28 Richard Biener <rguenther@suse.de>
28745 PR rtl-optimization/45364
28746 PR rtl-optimization/59890
28747 * var-tracking.c (local_get_addr_clear_given_value): Handle
28748 already cleared slot.
28749 (val_reset): Handle not allocated local_get_addr_cache.
28750 (vt_find_locations): Use post-order on the inverted CFG.
28752 2014-01-28 Richard Biener <rguenther@suse.de>
28754 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28756 2014-01-28 Richard Biener <rguenther@suse.de>
28758 PR rtl-optimization/45364
28759 PR rtl-optimization/59890
28760 * var-tracking.c (local_get_addr_clear_given_value): Handle
28761 already cleared slot.
28762 (val_reset): Handle not allocated local_get_addr_cache.
28763 (vt_find_locations): Use post-order on the inverted CFG.
28765 2014-01-28 Alan Modra <amodra@gmail.com>
28767 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28768 * configure.ac <recursive call for build != host>: Define
28769 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28770 and LD_FOR_BUILD too.
28771 * configure: Regenerate.
28773 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
28775 * config/i386/i386.c (get_builtin_code_for_version): Separate
28776 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28777 Broadwell from Haswell.
28779 2014-01-27 Steve Ellcey <sellcey@mips.com>
28781 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28782 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28783 * config/mips/mips.c (mips_option_override): Change setting
28785 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28786 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28787 Change from Mask to Var.
28789 2014-01-27 Jeff Law <law@redhat.com>
28791 * ipa-inline.c (inline_small_functions): Fix typo.
28793 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
28795 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28796 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28797 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28798 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28799 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28800 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28801 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28802 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28803 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28804 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28805 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28806 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28807 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28808 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28809 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28810 (_mm512_storeu_epi64): Ditto.
28811 (_mm512_cmpge_epi32_mask): Ditto.
28812 (_mm512_cmpge_epu32_mask): Ditto.
28813 (_mm512_cmpge_epi64_mask): Ditto.
28814 (_mm512_cmpge_epu64_mask): Ditto.
28815 (_mm512_cmple_epi32_mask): Ditto.
28816 (_mm512_cmple_epu32_mask): Ditto.
28817 (_mm512_cmple_epi64_mask): Ditto.
28818 (_mm512_cmple_epu64_mask): Ditto.
28819 (_mm512_cmplt_epi32_mask): Ditto.
28820 (_mm512_cmplt_epu32_mask): Ditto.
28821 (_mm512_cmplt_epi64_mask): Ditto.
28822 (_mm512_cmplt_epu64_mask): Ditto.
28823 (_mm512_cmpneq_epi32_mask): Ditto.
28824 (_mm512_cmpneq_epu32_mask): Ditto.
28825 (_mm512_cmpneq_epi64_mask): Ditto.
28826 (_mm512_cmpneq_epu64_mask): Ditto.
28827 (_mm512_expand_pd): Ditto.
28828 (_mm512_expand_ps): Ditto.
28829 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28830 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28831 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28832 * config/i386/i386.c (ix86_builtins): Add
28833 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28834 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28835 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28836 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28837 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28838 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28839 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28840 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28841 IX86_BUILTIN_PMOVUSQW512_MEM.
28842 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28843 __builtin_ia32_pmovsqd512mem_mask,
28844 __builtin_ia32_pmovqd512mem_mask,
28845 __builtin_ia32_pmovusqw512mem_mask,
28846 __builtin_ia32_pmovsqw512mem_mask,
28847 __builtin_ia32_pmovqw512mem_mask,
28848 __builtin_ia32_pmovusdw512mem_mask,
28849 __builtin_ia32_pmovsdw512mem_mask,
28850 __builtin_ia32_pmovdw512mem_mask,
28851 __builtin_ia32_pmovqb512mem_mask,
28852 __builtin_ia32_pmovusqb512mem_mask,
28853 __builtin_ia32_pmovsqb512mem_mask,
28854 __builtin_ia32_pmovusdb512mem_mask,
28855 __builtin_ia32_pmovsdb512mem_mask,
28856 __builtin_ia32_pmovdb512mem_mask.
28857 (bdesc_args): Add __builtin_ia32_expanddf512,
28858 __builtin_ia32_expandsf512.
28859 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28860 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28861 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28862 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28863 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28864 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28865 (avx512f_<code>v8div16qi2_mask_store): This.
28866 (avx512f_expand<mode>): New.
28868 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
28870 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28872 (_mm512_mask_prefetch_i64gather_pd): Ditto.
28873 (_mm512_prefetch_i32scatter_pd): Ditto.
28874 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28875 (_mm512_prefetch_i64scatter_pd): Ditto.
28876 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28877 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28878 (_mm512_mask_prefetch_i64gather_ps): Ditto.
28879 (_mm512_prefetch_i32scatter_ps): Ditto.
28880 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28881 (_mm512_prefetch_i64scatter_ps): Ditto.
28882 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28883 * config/i386/i386-builtin-types.def: Define
28884 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28885 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28886 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28887 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28888 IX86_BUILTIN_SCATTERPFQPD.
28889 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28890 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28891 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28892 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28893 __builtin_ia32_scatterpfqps.
28894 (ix86_expand_builtin): Expand new built-ins.
28895 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28896 fix memory access data type.
28897 (*avx512pf_gatherpf<mode>_mask): Ditto.
28898 (*avx512pf_gatherpf<mode>): Ditto.
28899 (avx512pf_scatterpf<mode>): Ditto.
28900 (*avx512pf_scatterpf<mode>_mask): Ditto.
28901 (*avx512pf_scatterpf<mode>): Ditto.
28902 (GATHER_SCATTER_SF_MEM_MODE): New.
28903 (avx512pf_gatherpf<mode>df): Ditto.
28904 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28905 (*avx512pf_scatterpf<mode>df): Ditto.
28907 2014-01-27 Jakub Jelinek <jakub@redhat.com>
28910 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28911 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28914 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28916 * common/config/arm/arm-common.c
28917 (arm_rewrite_mcpu): Handle multiple names.
28919 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28921 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28923 * gimple-builder.h (create_gimple_tmp): Delete.
28925 2014-01-27 Christian Bruel <christian.bruel@st.com>
28927 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28930 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
28932 * config/pa/pa.md (call): Generate indirect long calls to non-local
28933 functions when outputing 32-bit code.
28934 (call_value): Likewise except for special call to buggy powf function.
28936 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28937 portable runtime and PIC indirect calls.
28938 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28939 and PIC call sequences. Use ldo instead of blr to set return register
28940 in PIC call sequence.
28942 2014-01-25 Walter Lee <walt@tilera.com>
28944 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28945 avoid clobbering a live register.
28947 2014-01-25 Walter Lee <walt@tilera.com>
28949 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28950 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28951 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28952 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28954 2014-01-25 Walter Lee <walt@tilera.com>
28956 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28957 arguments on even registers.
28958 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28960 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28961 (BIGGEST_ALIGNMENT): Ditto.
28962 (BIGGEST_FIELD_ALIGNMENT): Ditto.
28964 2014-01-25 Walter Lee <walt@tilera.com>
28966 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28967 insns before bundling.
28968 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28970 2014-01-25 Walter Lee <walt@tilera.com>
28972 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28973 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28974 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28976 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28978 * config/mips/constraints.md (kl): Delete.
28979 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28980 define expands, using...
28981 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28982 instructions for MIPS16.
28983 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28984 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28986 2014-01-25 Walter Lee <walt@tilera.com>
28988 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28992 2014-01-25 Walter Lee <walt@tilera.com>
28994 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28995 (TARGET_EXPAND_TO_RTL_HOOK): Define.
28997 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28999 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29002 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29004 * print-rtl.c (in_call_function_usage): New var.
29005 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29006 EXPR_LIST mode as mode and not as reg note name.
29008 PR middle-end/59561
29009 * cfgloopmanip.c (copy_loop_info): If
29010 loop->warned_aggressive_loop_optimizations, make sure
29011 the flag is set in target loop too.
29013 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29015 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29017 * builtins.def: Likewise.
29018 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29019 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29020 * ira.c (ira_setup_eliminable_regset): Likewise.
29021 * omp-low.c (gate_expand_omp): Likewise.
29022 (execute_lower_omp): Likewise.
29023 (diagnose_sb_0): Likewise.
29024 (gate_diagnose_omp_blocks): Likewise.
29025 (simd_clone_clauses_extract): Likewise.
29028 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29030 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29031 correction for little endian...
29032 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29035 2014-01-24 Jeff Law <law@redhat.com>
29037 PR tree-optimization/59919
29038 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29039 for non-returning calls.
29041 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29043 * common/config/aarch64/aarch64-common.c
29044 (aarch64_rewrite_mcpu): Handle multiple names.
29045 * config/aarch64/aarch64.h
29046 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29048 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29050 * input.c (add_file_to_cache_tab): Handle the case where fopen
29053 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29056 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29057 from push operand if code of push isn't PRE_DEC.
29059 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29062 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29063 -mquad-memory-atomic. Update -mquad-memory documentation to say
29064 it is only used for non-atomic loads/stores.
29066 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29067 -mquad-memory or -mquad-memory-atomic switches.
29069 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29070 -mquad-memory-atomic to ISA 2.07 support.
29072 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29073 to separate support of normal quad word memory operations (ldq, stq)
29074 from the atomic quad word memory operations.
29076 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29077 support to separate non-atomic quad word operations from atomic
29078 quad word operations. Disable non-atomic quad word operations in
29079 little endian mode so that we don't have to swap words after the
29080 load and before the store.
29081 (quad_load_store_p): Add comment about atomic quad word support.
29082 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29083 options printed with -mdebug=reg.
29085 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29086 -mquad-memory-atomic as the test for whether we have quad word
29087 atomic instructions.
29088 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29089 or -mp8-vector are used, allow byte/half-word atomic operations.
29091 * config/rs6000/sync.md (load_lockedti): Insure that the address
29092 is a proper indexed or indirect address for the lqarx instruction.
29093 On little endian systems, swap the hi/lo registers after the lqarx
29095 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29096 insure the address is valid for the lqarx instruction.
29097 (store_conditionalti): Insure that the address is a proper indexed
29098 or indirect address for the stqcrx. instruction. On little endian
29099 systems, swap the hi/lo registers before doing the stqcrx.
29101 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29102 insure the address is valid for the stqcrx. instruction.
29104 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29105 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29106 type of quad memory support is available.
29108 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29110 PR regression/59915
29111 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29112 there is a danger of looping.
29114 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29116 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29117 force flag_ira_loop_pressure if set via command line.
29119 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29121 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29122 (ashr_simd): New builtin handling DI mode.
29123 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29124 (aarch64_sshr_simddi): New match pattern.
29125 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29126 (vshrd_n_s64): Likewise.
29127 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29129 2014-01-23 Nick Clifton <nickc@redhat.com>
29131 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29132 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29133 favour of mcu specific scripts.
29134 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29137 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29138 Alex Velenko <Alex.Velenko@arm.com>
29140 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29141 (vaddv_s16): Likewise.
29142 (vaddv_s32): Likewise.
29143 (vaddv_u8): Likewise.
29144 (vaddv_u16): Likewise.
29145 (vaddv_u32): Likewise.
29146 (vaddvq_s8): Likewise.
29147 (vaddvq_s16): Likewise.
29148 (vaddvq_s32): Likewise.
29149 (vaddvq_s64): Likewise.
29150 (vaddvq_u8): Likewise.
29151 (vaddvq_u16): Likewise.
29152 (vaddvq_u32): Likewise.
29153 (vaddvq_u64): Likewise.
29154 (vaddv_f32): Likewise.
29155 (vaddvq_f32): Likewise.
29156 (vaddvq_f64): Likewise.
29157 (vmaxv_f32): Likewise.
29158 (vmaxv_s8): Likewise.
29159 (vmaxv_s16): Likewise.
29160 (vmaxv_s32): Likewise.
29161 (vmaxv_u8): Likewise.
29162 (vmaxv_u16): Likewise.
29163 (vmaxv_u32): Likewise.
29164 (vmaxvq_f32): Likewise.
29165 (vmaxvq_f64): Likewise.
29166 (vmaxvq_s8): Likewise.
29167 (vmaxvq_s16): Likewise.
29168 (vmaxvq_s32): Likewise.
29169 (vmaxvq_u8): Likewise.
29170 (vmaxvq_u16): Likewise.
29171 (vmaxvq_u32): Likewise.
29172 (vmaxnmv_f32): Likewise.
29173 (vmaxnmvq_f32): Likewise.
29174 (vmaxnmvq_f64): Likewise.
29175 (vminv_f32): Likewise.
29176 (vminv_s8): Likewise.
29177 (vminv_s16): Likewise.
29178 (vminv_s32): Likewise.
29179 (vminv_u8): Likewise.
29180 (vminv_u16): Likewise.
29181 (vminv_u32): Likewise.
29182 (vminvq_f32): Likewise.
29183 (vminvq_f64): Likewise.
29184 (vminvq_s8): Likewise.
29185 (vminvq_s16): Likewise.
29186 (vminvq_s32): Likewise.
29187 (vminvq_u8): Likewise.
29188 (vminvq_u16): Likewise.
29189 (vminvq_u32): Likewise.
29190 (vminnmv_f32): Likewise.
29191 (vminnmvq_f32): Likewise.
29192 (vminnmvq_f64): Likewise.
29194 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29196 * config/aarch64/aarch64-simd.md
29197 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29198 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29199 (*aarch64_mul3_elt<mode>): Likewise.
29200 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29201 (*aarch64_mul3_elt_to_64v2df): Likewise.
29202 (*aarch64_mla_elt<mode>): Likewise.
29203 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29204 (*aarch64_mls_elt<mode>): Likewise.
29205 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29206 (*aarch64_fma4_elt<mode>): Likewise.
29207 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29208 (*aarch64_fma4_elt_to_64v2df): Likewise.
29209 (*aarch64_fnma4_elt<mode>): Likewise.
29210 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29211 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29212 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29213 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29214 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29215 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29216 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29217 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29218 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29220 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29222 * config/aarch64/aarch64-simd.md
29223 (aarch64_be_checked_get_lane<mode>): New define_expand.
29224 * config/aarch64/aarch64-simd-builtins.def
29225 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29226 New builtin definition.
29227 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29228 Use new safe be builtin.
29230 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29232 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29234 (aarch64_be_st1<mode>): Likewise.
29235 (aarch_ld1<VALL:mode>): Define_expand modified.
29236 (aarch_st1<VALL:mode>): Likewise.
29237 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29238 (UNSPEC_ST1): Likewise.
29240 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29242 * config/microblaze/microblaze.md: Add trap insn and attribute
29244 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29246 PR preprocessor/58580
29247 * input.h (location_get_source_line): Take an additional line_size
29249 (void diagnostics_file_cache_fini): Declare new function.
29250 * input.c (struct fcache): New type.
29251 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29252 New static constants.
29253 (diagnostic_file_cache_init, total_lines_num)
29254 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29255 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29256 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29257 (get_next_line, read_next_line, goto_next_line, read_line_num):
29258 New static function definitions.
29259 (diagnostic_file_cache_fini): New function.
29260 (location_get_source_line): Take an additional output line_len
29261 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29263 * diagnostic.c (diagnostic_finish): Call
29264 diagnostic_file_cache_fini.
29265 (adjust_line): Take an additional input parameter for the length
29266 of the line, rather than calculating it with strlen.
29267 (diagnostic_show_locus): Adjust the use of
29268 location_get_source_line and adjust_line with respect to their new
29269 signature. While displaying a line now, do not stop at the first
29270 null byte. Rather, display the zero byte as a space and keep
29271 going until we reach the size of the line.
29272 * Makefile.in: Add vec.o to OBJS-libcommon
29274 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29275 Ilya Tocar <ilya.tocar@intel.com>
29277 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29278 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29279 (__builtin_ia32_kmov16): Ditto.
29280 * config/i386/i386.md (UNSPEC_KMOV): New.
29283 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29285 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29286 (_mm512_storeu_si512): Ditto.
29288 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29291 * rtl.h (get_referenced_operands): Declare.
29292 * recog.c (get_referenced_operands): New function.
29293 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29294 operands have been referenced when recording LO_SUM references.
29296 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29298 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29300 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29302 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29303 Enable for generic and recent AMD targets.
29305 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29307 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29308 ARG_SIZE note when adjustment was eliminated.
29310 2014-01-22 Jeff Law <law@redhat.com>
29312 PR tree-optimization/59597
29313 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29314 in file. Accept new argument REGISTERING and use it to modify
29315 dump output appropriately.
29316 (register_jump_thread): Corresponding changes.
29317 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29318 thread paths involving joiner blocks. Add code to dump cancelled
29319 jump threading paths.
29321 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29323 PR rtl-optimization/59477
29324 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29325 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29327 2014-01-22 Tom Tromey <tromey@redhat.com>
29329 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29331 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29333 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29335 PR rtl-optimization/59896
29336 * lra-constraints.c (process_alt_operands): Check unused note for
29337 matched operands of insn with no output reloads.
29339 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29341 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29342 (mips_move_from_gpr_cost): Likewise.
29344 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29346 PR rtl-optimization/59858
29347 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29348 ira_class_hard_regs_num.
29349 (process_alt_operands): Increase reject for dying matched operand.
29351 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29354 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29355 smaller than size, perform several stores or loads and stores
29356 at dst + count - size to store or copy all of size bytes, rather
29357 than just last modesize bytes.
29359 2014-01-20 DJ Delorie <dj@redhat.com>
29361 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29362 that CLOBBERs are REGs before propogating their values.
29364 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29366 PR middle-end/59789
29367 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29368 (cgraph_inline_failed_type): New function.
29369 * cgraph.h (DEFCIFCODE): Add type.
29370 (cgraph_inline_failed_type_t): New enum.
29371 (cgraph_inline_failed_type): New prototype.
29372 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29373 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29374 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29375 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29376 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29377 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29378 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29379 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29380 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29381 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29382 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29383 OPTIMIZATION_MISMATCH.
29384 * tree-inline.c (expand_call_inline): Emit errors during
29385 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29387 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29390 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29391 mode attribute in insn output.
29393 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29395 * output.h (output_constant): Delete.
29396 * varasm.c (output_constant): Make private.
29398 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29400 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29402 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29404 PR middle-end/59860
29405 * tree.h (fold_builtin_strcat): New prototype.
29406 * builtins.c (fold_builtin_strcat): No longer static. Add len
29407 argument, if non-NULL, don't call c_strlen. Optimize
29408 directly into __builtin_memcpy instead of __builtin_strcpy.
29409 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29410 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29412 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29414 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29415 for SImode_address_operand operands, having only a REG argument.
29417 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29419 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29420 loader name using mbig-endian.
29421 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29423 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29425 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29426 (-mtune): Likewise.
29429 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29431 * config/aarch64/aarch64-protos.h
29432 (aarch64_cannot_change_mode_class_ptr): Declare.
29433 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29434 aarch64_cannot_change_mode_class_ptr): New.
29435 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29436 backend hook aarch64_cannot_change_mode_class.
29438 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29440 * common/config/aarch64/aarch64-common.c
29441 (aarch64_handle_option): Don't handle any option order logic here.
29442 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29443 selected_cpu, warn on architecture version mismatch.
29444 (aarch64_override_options): Fix parsing order for option strings.
29446 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29447 Iain Sandoe <iain@codesourcery.com>
29450 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29451 warning. Amend comment to reflect current functionality.
29453 2014-01-20 Richard Biener <rguenther@suse.de>
29455 PR middle-end/59860
29456 * builtins.c (fold_builtin_strcat): Remove case better handled
29457 by tree-ssa-strlen.c.
29459 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29461 * config/aarch64/aarch64.opt
29462 (mcpu, march, mtune): Make case-insensitive.
29464 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29467 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29468 if operands[1] is a REG or ZERO_EXTEND of a REG.
29470 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29472 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29474 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29476 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29477 long non-pic millicode calls.
29479 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29481 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29483 2014-01-19 Kito Cheng <kito@0xlab.org>
29485 * builtins.c (expand_movstr): Check movstr expand done or fail.
29487 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29488 H.J. Lu <hongjiu.lu@intel.com>
29491 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29492 to DImode for zero-extended addresses.
29494 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29496 PR rtl-optimization/57763
29497 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29498 on the new indirect jump_insn and increment LABEL_NUSES (label).
29500 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29504 * config.gcc (x86_archs): New variable.
29505 (x86_64_archs): Likewise.
29506 (x86_cpus): Likewise.
29507 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29508 --with-arch/--with-cpu= options.
29509 Support --with-arch=/--with-cpu={nehalem,westmere,
29510 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29512 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29514 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29515 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29517 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29519 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29521 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29524 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29525 clear cpp_get_options (parse_in)->warn_unused_macros for
29526 ix86_target_macros_internal with cpp_define.
29528 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29530 * jump.c (delete_related_insns): Keep (use (insn))s.
29531 * reorg.c (redundant_insn): Check for barriers too.
29533 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29535 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29537 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29539 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29540 call to $$dyncall when TARGET_LONG_CALLS is true.
29542 2014-01-17 Jeff Law <law@redhat.com>
29544 * ree.c (combine_set_extension): Temporarily disable test for
29545 changing number of hard registers.
29547 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29549 PR middle-end/58125
29550 * ipa-inline-analysis.c (inline_free_summary):
29551 Do not free summary of aliases.
29553 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29555 PR middle-end/59706
29556 * gimplify.c (gimplify_expr): Use create_tmp_var
29557 instead of create_tmp_var_raw. If cond doesn't have
29558 integral type, don't add the IFN_ANNOTATE builtin at all.
29560 2014-01-17 Martin Jambor <mjambor@suse.cz>
29563 * ipa-cp.c (prev_edge_clone): New variable.
29564 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29565 Also resize prev_edge_clone vector.
29566 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29567 (ipcp_edge_removal_hook): New function.
29568 (ipcp_driver): Register ipcp_edge_removal_hook.
29570 2014-01-17 Andrew Pinski <apinski@cavium.com>
29571 Steve Ellcey <sellcey@mips.com>
29574 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29577 2014-01-17 Jeff Law <law@redhat.com>
29579 PR middle-end/57904
29580 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29581 so that pass_ccp runs first.
29583 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29585 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29586 (ix86_adjust_cost): Use !TARGET_XXX.
29587 (do_reorder_for_imul): Likewise.
29588 (swap_top_of_ready_list): Likewise.
29589 (ix86_sched_reorder): Likewise.
29591 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29593 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29594 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29595 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29596 (intel_memset): New. Duplicate slm_memset.
29597 (intel_cost): New. Duplicate slm_cost.
29598 (m_INTEL): New macro.
29599 (processor_target_table): Add "intel".
29600 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29601 with PROCESSOR_INTEL for "intel".
29602 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29603 PROCESSOR_SILVERMONT.
29604 (ix86_issue_rate): Likewise.
29605 (ix86_adjust_cost): Likewise.
29606 (ia32_multipass_dfa_lookahead): Likewise.
29607 (swap_top_of_ready_list): Likewise.
29608 (ix86_sched_reorder): Likewise.
29609 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29610 instead of TARGET_OPT_AGU.
29611 * config/i386/i386.h (TARGET_INTEL): New.
29612 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29613 (processor_type): Add PROCESSOR_INTEL.
29614 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29615 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29617 2014-01-17 Marek Polacek <polacek@redhat.com>
29620 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29623 2014-01-17 Richard Biener <rguenther@suse.de>
29625 PR tree-optimization/46590
29626 * opts.c (default_options_table): Add entries for
29627 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29628 all enabled at -O1 but not for -Og.
29629 * common.opt (fbranch-count-reg): Remove Init(1).
29630 (fmove-loop-invariants): Likewise.
29631 (ftree-pta): Likewise.
29633 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29635 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29636 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29637 decls to at least the GCC 4.8 used alignments.
29640 * tree-nested.c (convert_nonlocal_reference_stmt,
29641 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29642 of GIMPLE_BIND stmts, adjust associated decls.
29644 2014-01-17 Richard Biener <rguenther@suse.de>
29646 PR tree-optimization/46590
29647 * vec.h (vec<>::bseach): New member function implementing
29648 binary search according to C89 bsearch.
29649 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29650 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29651 bitmap pointer again. Make accesses_in_loop a flat array.
29652 (mem_ref_obstack): New global.
29653 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29654 (mark_ref_stored): Likewise.
29655 (ref_indep_loop_p_2): Likewise.
29656 (set_ref_stored_in_loop): New helper function.
29657 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29658 (memref_free): Adjust.
29659 (record_mem_ref_loc): Simplify.
29660 (gather_mem_refs_stmt): Adjust.
29661 (sort_locs_in_loop_postorder_cmp): New function.
29662 (analyze_memory_references): Sort accesses_in_loop after
29663 loop postorder number.
29664 (find_ref_loc_in_loop_cmp): New function.
29665 (for_all_locs_in_loop): Find relevant cluster of locs in
29666 accesses_in_loop and iterate without recursion.
29667 (execute_sm): Avoid uninit warning.
29668 (struct ref_always_accessed): Simplify.
29669 (ref_always_accessed::operator ()): Likewise.
29670 (ref_always_accessed_p): Likewise.
29671 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29672 loop postorder numbers here.
29673 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29676 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29679 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29680 on decls for which assemble_alias has been called.
29682 2014-01-17 Nick Clifton <nickc@redhat.com>
29684 * config/msp430/msp430.opt: (mcpu): New option.
29685 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29686 (msp430_option_override): Parse target_cpu. If the MCU name
29687 matches a generic string, clear target_mcu.
29688 (msp430_attr): Allow numeric interrupt values up to 63.
29689 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29690 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29692 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29694 * config/msp430/msp430.md (popm): Use %J rather than %I.
29695 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29696 (addhi_cy_i): Use immediate_operand for operand 2.
29697 * doc/invoke.texi: Document -mcpu option.
29699 2014-01-17 Richard Biener <rguenther@suse.de>
29701 PR rtl-optimization/38518
29702 * df.h (df_analyze_loop): Declare.
29703 * df-core.c: Include cfgloop.h.
29704 (df_analyze_1): Split out main part of df_analyze.
29705 (df_analyze): Adjust.
29706 (loop_inverted_post_order_compute): New function.
29707 (loop_post_order_compute): Likewise.
29708 (df_analyze_loop): New function avoiding whole-function
29709 postorder computes.
29710 * loop-invariant.c (find_defs): Use df_analyze_loop.
29711 (find_invariants): Adjust.
29712 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29714 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29716 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29717 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29719 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29721 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29722 traversal when removing references.
29724 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29727 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29729 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29731 PR middle-end/56791
29732 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29733 pushing a reload for an autoinc when we had previously reloaded an
29734 inner part of the address.
29736 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29738 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29740 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29741 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29742 when not giving up or versioning for alias only because of
29744 (vect_analyze_data_ref_dependences): Set to true.
29745 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29747 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29748 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29751 PR middle-end/58344
29752 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29755 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29756 operand 0 predicate for gathers, use a new pseudo as subtarget.
29758 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29760 PR middle-end/59609
29761 * lra-constraints.c (process_alt_operands): Add printing debug info.
29762 Check absence of input/output reloads for matched operands too.
29764 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29766 PR rtl-optimization/59835
29767 * ira.c (ira_init_register_move_cost): Increase cost for
29770 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29772 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29774 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
29777 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29778 non-register objects. Use gen_(high/low)part more consistently.
29781 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29784 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29785 endian support, remove tests for WORDS_BIG_ENDIAN.
29786 (p8_mfvsrd_3_<mode>): Likewise.
29787 (reload_gpr_from_vsx<mode>): Likewise.
29788 (reload_gpr_from_vsxsf): Likewise.
29789 (p8_mfvsrd_4_disf): Likewise.
29791 2014-01-16 Richard Biener <rguenther@suse.de>
29793 PR rtl-optimization/46590
29794 * lcm.c (compute_antinout_edge): Use postorder iteration.
29795 (compute_laterin): Use inverted postorder iteration.
29797 2014-01-16 Nick Clifton <nickc@redhat.com>
29799 PR middle-end/28865
29800 * varasm.c (output_constant): Return the number of bytes actually
29802 (output_constructor_array_range): Update the field size with the
29803 number of bytes emitted by output_constant.
29804 (output_constructor_regular_field): Likewise. Also do not
29805 complain if the total number of bytes emitted is now greater
29806 than the expected fieldpos.
29807 * output.h (output_constant): Update prototype and descriptive comment.
29809 2014-01-16 Marek Polacek <polacek@redhat.com>
29811 PR middle-end/59827
29812 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29813 it is error_mark_node.
29815 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
29817 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29818 VALID_AVX256_REG_OR_OI_MODE.
29820 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
29822 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29823 current procedure should be profiled.
29825 2014-01-15 Andrew Pinski <apinski@cavium.com>
29827 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29828 of moving from/to the STACK_REG register class.
29830 2014-01-15 Richard Henderson <rth@redhat.com>
29833 * reginfo.c (global_regs_decl): Globalize.
29834 * rtl.h (global_regs_decl): Declare.
29835 * ira.c (do_reload): Diagnose frame_pointer_needed and it
29836 reserved via global_regs.
29838 2014-01-15 Teresa Johnson <tejohnson@google.com>
29840 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29842 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
29844 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29845 and vmulosh rather than call gen_vec_widen_smult_*.
29846 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29847 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29848 (vec_widen_smult_even_v16qi): Likewise.
29849 (vec_widen_umult_even_v8hi): Likewise.
29850 (vec_widen_smult_even_v8hi): Likewise.
29851 (vec_widen_umult_odd_v16qi): Likewise.
29852 (vec_widen_smult_odd_v16qi): Likewise.
29853 (vec_widen_umult_odd_v8hi): Likewise.
29854 (vec_widen_smult_odd_v8hi): Likewise.
29855 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29856 vmuloub rather than call gen_vec_widen_umult_*.
29857 (vec_widen_umult_lo_v16qi): Likewise.
29858 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29859 vmulosb rather than call gen_vec_widen_smult_*.
29860 (vec_widen_smult_lo_v16qi): Likewise.
29861 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29862 rather than call gen_vec_widen_umult_*.
29863 (vec_widen_umult_lo_v8hi): Likewise.
29864 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29865 rather than call gen_vec_widen_smult_*.
29866 (vec_widen_smult_lo_v8hi): Likewise.
29868 2014-01-15 Jeff Law <law@redhat.com>
29870 PR tree-optimization/59747
29871 * ree.c (find_and_remove_re): Properly handle case where a second
29872 eliminated extension requires widening a copy created for elimination
29873 of a prior extension.
29874 (combine_set_extension): Ensure that the number of hard regs needed
29875 for a destination register does not change when we widen it.
29877 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29879 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29880 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29881 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29882 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29883 (avr-*-rtems*): Likewise.
29884 (bfin*-rtems*): Likewise.
29885 (moxie-*-rtems*): Likewise.
29886 (h8300-*-rtems*): Likewise.
29887 (i[34567]86-*-rtems*): Likewise.
29888 (lm32-*-rtems*): Likewise.
29889 (m32r-*-rtems*): Likewise.
29890 (m68k-*-rtems*): Likewise.
29891 (microblaze*-*-rtems*): Likewise.
29892 (mips*-*-rtems*): Likewise.
29893 (powerpc-*-rtems*): Likewise.
29894 (sh-*-rtems*): Likewise.
29895 (sparc-*-rtems*): Likewise.
29896 (sparc64-*-rtems*): Likewise.
29897 (v850-*-rtems*): Likewise.
29898 (m32c-*-rtems*): Likewise.
29900 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
29902 PR rtl-optimization/59511
29903 * ira.c (ira_init_register_move_cost): Use memory costs for some
29904 cases of register move cost calculations.
29905 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29906 instead of BB frequency.
29907 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29908 * lra-assigns.c (find_hard_regno_for): Ditto.
29910 2014-01-15 Richard Biener <rguenther@suse.de>
29912 PR tree-optimization/59822
29913 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29914 (vectorizable_load): Use it to hoist defs of uses of invariant
29915 loads out of the loop.
29917 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
29918 Kugan Vivekanandarajah <kuganv@linaro.org>
29921 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29924 2014-01-15 Richard Biener <rguenther@suse.de>
29926 PR rtl-optimization/59802
29927 * lcm.c (compute_available): Use inverted postorder to seed
29928 the initial worklist.
29930 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29933 * config/s390/s390.c (s390_preferred_reload_class): Don't return
29934 ADDR_REGS for invalid symrefs in non-PIC code.
29936 2014-01-15 Jakub Jelinek <jakub@redhat.com>
29939 * builtins.c (determine_block_size): Initialize *probable_max_size
29940 even if len_rtx is CONST_INT.
29942 2014-01-14 Andrew Pinski <apinski@cavium.com>
29944 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29945 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29946 (cortexa53_tunings): Likewise.
29947 (aarch64_sched_issue_rate): New function.
29948 (TARGET_SCHED_ISSUE_RATE): Define.
29950 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29952 * ira-costs.c (find_costs_and_classes): Add missed
29953 ira_init_register_move_cost_if_necessary.
29955 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29958 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29960 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
29963 * config/i386/i386.c (type_natural_mode): Add a bool parameter
29964 to indicate if type is used for function return value. Warn ABI
29965 change if the vector mode isn't available for function return value.
29966 (ix86_function_arg_advance): Pass false to type_natural_mode.
29967 (ix86_function_arg): Likewise.
29968 (ix86_gimplify_va_arg): Likewise.
29969 (function_arg_32): Don't warn ABI change.
29970 (ix86_function_value): Pass true to type_natural_mode.
29971 (ix86_return_in_memory): Likewise.
29972 (ix86_struct_value_rtx): Removed.
29973 (TARGET_STRUCT_VALUE_RTX): Likewise.
29975 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29977 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29978 converting a conditional jump into a conditional return.
29980 2014-01-14 Richard Biener <rguenther@suse.de>
29982 PR tree-optimization/58921
29983 PR tree-optimization/59006
29984 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29985 hoisting invariant stmts.
29986 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29987 invariant loads on the preheader edge if possible.
29989 2014-01-14 Joey Ye <joey.ye@arm.com>
29991 * doc/plugin.texi (Building GCC plugins): Update to C++.
29993 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
29995 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29996 (_mm_rcp28_round_ss): Ditto.
29997 (_mm_rsqrt28_round_sd): Ditto.
29998 (_mm_rsqrt28_round_ss): Ditto.
29999 (_mm_rcp28_sd): Ditto.
30000 (_mm_rcp28_ss): Ditto.
30001 (_mm_rsqrt28_sd): Ditto.
30002 (_mm_rsqrt28_ss): Ditto.
30003 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30004 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30005 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30006 (IX86_BUILTIN_RCP28SD): Ditto.
30007 (IX86_BUILTIN_RCP28SS): Ditto.
30008 (IX86_BUILTIN_RSQRT28SD): Ditto.
30009 (IX86_BUILTIN_RSQRT28SS): Ditto.
30010 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30011 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30012 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30013 (ix86_expand_special_args_builtin): Expand new FTYPE.
30014 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30015 (srcp14<mode>): Make insn unary.
30016 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30017 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30018 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30019 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30020 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30021 Fix rounding: make it SAE only.
30022 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30024 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30026 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30027 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30028 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30029 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30030 (round_saeonly_mask_scalar_operand4): Ditto.
30031 (round_saeonly_mask_scalar_op3): Ditto.
30032 (round_saeonly_mask_scalar_op4): Ditto.
30034 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30036 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30037 Implement -maltivec=be for vec_insert and vec_extract.
30039 2014-01-10 DJ Delorie <dj@redhat.com>
30041 * config/msp430/msp430.md (call_internal): Don't allow memory
30042 references with SP as the base register.
30043 (call_value_internal): Likewise.
30044 * config/msp430/constraints.md (Yc): New. For memory references
30045 that don't use SP as a base register.
30047 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30048 "an integer without a # prefix"
30049 * config/msp430/msp430.md (epilogue_helper): Use it.
30051 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30054 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30055 AVX512F gather builtins.
30056 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30057 on gather decls with INTEGER_TYPE masktype.
30058 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30059 directly into the builtin rather than hoisting it before loop.
30061 PR tree-optimization/59387
30062 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30063 (scev_const_prop): If folded_casts and type has undefined overflow,
30064 use force_gimple_operand instead of force_gimple_operand_gsi and
30065 for each added stmt if it is assign with
30066 arith_code_with_undefined_signed_overflow, call
30067 rewrite_to_defined_overflow.
30068 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30069 gimple-fold.h instead.
30070 (arith_code_with_undefined_signed_overflow,
30071 rewrite_to_defined_overflow): Moved to ...
30072 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30073 rewrite_to_defined_overflow): ... here. No longer static.
30074 Include gimplify-me.h.
30075 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30076 rewrite_to_defined_overflow): New prototypes.
30078 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30080 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30082 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30084 * builtins.c (get_object_alignment_2): Minor tweak.
30085 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30087 2014-01-13 Christian Bruel <christian.bruel@st.com>
30089 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30090 optimized non constant lengths.
30092 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30095 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30096 load as __atomic_load_N if possible.
30098 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30100 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30102 (rs6000_expand_builtin): Adjust call.
30104 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30107 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30108 * config/rs6000/rs6000.c: Include target-globals.h.
30109 (rs6000_set_current_function): Instead of doing target_reinit
30110 unconditionally, use save_target_globals_default_opts and
30111 restore_target_globals.
30113 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30115 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30116 (rs6000_expand_builtin): Handle mffs and mtfsf.
30117 (rs6000_init_builtins): Define mffs and mtfsf.
30118 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30119 (rs6000_mffs): New pattern.
30120 (rs6000_mtfsf): New pattern.
30122 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30124 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30125 Start narrowing with START. Apply candidate-use pair
30126 and check overall cost in narrowing.
30127 (iv_ca_prune): Pass new argument.
30129 2014-01-10 Jeff Law <law@redhat.com>
30131 PR middle-end/59743
30132 * ree.c (combine_reaching_defs): Ensure the defining statement
30133 occurs before the extension when optimizing extensions with
30134 different source and destination hard registers.
30136 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30139 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30140 vtables into the type inheritance graph.
30142 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30144 PR rtl-optimization/59754
30145 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30146 modes in the REGNO != REGNO case.
30148 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30150 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30152 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30154 PR tree-optimization/59745
30155 * tree-predcom.c (tree_predictive_commoning_loop): Call
30156 free_affine_expand_cache if giving up because components is NULL.
30158 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30159 GC in payload of target_globals struct instead of allocating them on
30160 the heap and the larger structs separately using GC.
30161 * target-globals.h (struct target_globals): Make regs, hard_regs,
30162 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30163 of GTY((skip)) and change type to void *.
30164 (reset_target_globals): Cast loads from those fields to corresponding
30167 2014-01-10 Steve Ellcey <sellcey@mips.com>
30170 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30171 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30172 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30174 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30177 * aarch64-modes.def (CC_Zmode): New flags mode.
30178 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30179 represents an equality.
30180 (aarch64_get_condition_code): Handle CC_Zmode.
30181 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30183 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30185 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30186 extraction in good case.
30188 2014-01-10 Richard Biener <rguenther@suse.de>
30190 PR tree-optimization/59374
30191 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30192 checking after SLP discovery. Mark stmts not participating
30193 in any SLP instance properly.
30195 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30197 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30198 when handling a SET rtx.
30200 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30202 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30203 (cortex-a57): Likewise.
30204 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30206 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30208 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30209 non-iwmmxt builtins.
30211 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30215 * ipa-devirt.c record_target_from_binfo): Take as argument
30216 stack of binfos and lookup matching one for virtual inheritance.
30217 (possible_polymorphic_call_targets_1): Update.
30219 2014-01-10 Huacai Chen <chenhc@lemote.com>
30221 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30222 kernel strings for Loongson-2E/2F/3A.
30224 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30226 PR middle-end/59670
30227 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30228 is_gimple_call before calling gimple_call_internal_p.
30230 2014-01-09 Steve Ellcey <sellcey@mips.com>
30232 * Makefile.in (TREE_FLOW_H): Remove.
30233 (TREE_SSA_H): Add file names from tree-flow.h.
30234 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30235 * tree.h: Remove tree-flow.h reference.
30236 * hash-table.h: Remove tree-flow.h reference.
30237 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30238 reference with tree-ssa-loop.h.
30240 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30242 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30243 default element-order behavior for -maltivec.
30244 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30245 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30246 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30247 when targeting big endian, at least for now.
30248 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30250 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30252 PR middle-end/47735
30253 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30254 var satisfies use_register_for_decl, just take into account type
30255 alignment, rather than decl alignment.
30257 PR tree-optimization/59622
30258 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30259 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30260 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30261 Don't devirtualize for inplace at all. For targets.length () == 1,
30262 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30264 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30266 * config/i386/i386.md (cpu): Remove the unused btver1.
30268 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30270 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30272 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30275 * tree-core.h (struct target_globals): New forward declaration.
30276 (struct tree_target_option): Add globals field.
30277 * tree.h (TREE_TARGET_GLOBALS): Define.
30278 (prepare_target_option_nodes_for_pch): New prototype.
30279 * target-globals.h (struct target_globals): Define even if
30280 !SWITCHABLE_TARGET.
30281 * tree.c (prepare_target_option_node_for_pch,
30282 prepare_target_option_nodes_for_pch): New functions.
30283 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30284 * config/i386/i386.c: Include target-globals.h.
30285 (ix86_set_current_function): Instead of doing target_reinit
30286 unconditionally, use save_target_globals_default_opts and
30287 restore_target_globals.
30289 2014-01-09 Richard Biener <rguenther@suse.de>
30291 PR tree-optimization/59715
30292 * tree-cfg.h (split_critical_edges): Declare.
30293 * tree-cfg.c (split_critical_edges): Export.
30294 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30296 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30298 * cfgexpand.c (expand_stack_vars): Optionally disable
30299 asan stack protection.
30300 (expand_used_vars): Likewise.
30301 (partition_stack_vars): Likewise.
30302 * asan.c (asan_emit_stack_protection): Optionally disable
30303 after return stack usage.
30304 (instrument_derefs): Optionally disable memory access instrumentation.
30305 (instrument_builtin_call): Likewise.
30306 (instrument_strlen_call): Likewise.
30307 (asan_protect_global): Optionally disable global variables protection.
30308 * doc/invoke.texi: Added doc for new options.
30309 * params.def: Added new options.
30310 * params.h: Likewise.
30312 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30314 PR rtl-optimization/59724
30315 * ifcvt.c (cond_exec_process_if_block): Don't call
30316 flow_find_head_matching_sequence with 0 longest_match.
30317 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30318 non-active insns if !stop_after.
30319 (try_head_merge_bb): Revert 2014-01-07 changes.
30321 2014-01-08 Jeff Law <law@redhat.com>
30323 * ree.c (get_sub_rtx): New function, extracted from...
30324 (merge_def_and_ext): Here.
30325 (combine_reaching_defs): Use get_sub_rtx.
30327 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30329 * cgraph.h (varpool_variable_node): Do not choke on null node.
30331 2014-01-08 Catherine Moore <clm@codesourcery.com>
30333 * config/mips/mips.md (simple_return): Attempt to use JRC
30335 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30337 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30339 PR rtl-optimization/59137
30340 * reorg.c (steal_delay_list_from_target): Call update_block for
30342 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30344 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30346 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30347 two duplicate entries.
30349 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30352 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30354 * config/mips/mips.c (mips_truncated_op_cost): New function.
30355 (mips_rtx_costs): Adjust test for BADDU.
30356 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30358 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30360 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30361 (*baddu_si): ...this new pattern.
30363 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30366 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30368 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30370 PR middle-end/57748
30371 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30373 (expand_expr, expand_normal): Adjust.
30374 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30375 inner_reference_p. Use inner_reference_p to expand inner references.
30376 (store_expr): Adjust.
30377 * cfgexpand.c (expand_call_stmt): Adjust.
30379 2014-01-08 Rong Xu <xur@google.com>
30381 * gcov-io.c (gcov_var): Move from gcov-io.h.
30382 (gcov_position): Ditto.
30383 (gcov_is_error): Ditto.
30384 (gcov_rewrite): Ditto.
30385 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30386 only part to libgcc/libgcov.h.
30388 2014-01-08 Marek Polacek <polacek@redhat.com>
30390 PR middle-end/59669
30391 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30393 2014-01-08 Marek Polacek <polacek@redhat.com>
30396 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30398 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30400 PR rtl-optimization/59649
30401 * stor-layout.c (get_mode_bounds): For BImode return
30402 0 and STORE_FLAG_VALUE.
30404 2014-01-08 Richard Biener <rguenther@suse.de>
30406 PR middle-end/59630
30407 * gimple.h (is_gimple_builtin_call): Remove.
30408 (gimple_builtin_call_types_compatible_p): New.
30409 (gimple_call_builtin_p): New overload.
30410 * gimple.c (is_gimple_builtin_call): Remove.
30411 (validate_call): Rename to ...
30412 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30413 check return types.
30414 (validate_type): New static function.
30415 (gimple_call_builtin_p): New overload and adjust.
30416 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30417 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30418 (gimple_fold_stmt_to_constant_1): Likewise.
30419 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30421 2014-01-08 Richard Biener <rguenther@suse.de>
30423 PR middle-end/59471
30424 * gimplify.c (gimplify_expr): Gimplify register-register type
30425 VIEW_CONVERT_EXPRs to separate stmts.
30427 2014-01-07 Jeff Law <law@redhat.com>
30429 PR middle-end/53623
30430 * ree.c (combine_set_extension): Handle case where source
30431 and destination registers in an extension insn are different.
30432 (combine_reaching_defs): Allow source and destination registers
30433 in extension to be different under limited circumstances.
30434 (add_removable_extension): Remove restriction that the
30435 source and destination registers in the extension are the same.
30436 (find_and_remove_re): Emit a copy from the extension's
30437 destination to its source after the defining insn if
30438 the source and destination registers are different.
30440 PR middle-end/59285
30441 * ifcvt.c (merge_if_block): If we are merging a block with more than
30442 one successor with a block with no successors, remove any BARRIER
30443 after the second block.
30445 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30447 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30449 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30452 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30453 for 14-bit register offsets when INT14_OK_STRICT is false.
30455 2014-01-07 Roland Stigge <stigge@antcom.de>
30456 Michael Meissner <meissner@linux.vnet.ibm.com>
30459 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30460 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30462 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30464 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30467 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30469 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30470 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30471 rtx is const0_rtx or not.
30473 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30476 * target-globals.c (save_target_globals): Remove this_fn_optab
30478 * toplev.c: Include optabs.h.
30479 (target_reinit): Temporarily restore the global options if another
30480 set of options are in force.
30482 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30484 PR rtl-optimization/58668
30485 * cfgcleanup.c (flow_find_cross_jump): Don't count
30486 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30487 to determine what is counted.
30488 (flow_find_head_matching_sequence): Use active_insn_p to determine
30490 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30492 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30493 determine what is counted.
30495 PR tree-optimization/59643
30496 * tree-predcom.c (split_data_refs_to_components): If one dr is
30497 read and one write, determine_offset fails and the write isn't
30498 in the bad component, just put the read into the bad component.
30500 2014-01-07 Mike Stump <mikestump@comcast.net>
30501 Jakub Jelinek <jakub@redhat.com>
30504 * tree-core.h (struct tree_optimization_option): Change optabs
30505 type from unsigned char * to void *.
30506 * optabs.c (init_tree_optimization_optabs): Adjust
30507 TREE_OPTIMIZATION_OPTABS initialization.
30509 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30512 * config/i386/i386.h (struct machine_function): Add
30513 no_drap_save_restore field.
30514 * config/i386/i386.c (ix86_save_reg): Use
30515 !cfun->machine->no_drap_save_restore instead of
30516 crtl->stack_realign_needed.
30517 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30518 this function clears frame_pointer_needed. Set
30519 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30520 and DRAP reg is needed.
30522 2014-01-06 Marek Polacek <polacek@redhat.com>
30525 * doc/implement-c.texi: Mention that other integer types are
30526 permitted as bit-field types in strictly conforming mode.
30528 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30530 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30531 is newly allocated.
30533 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30535 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30537 2014-01-06 Martin Jambor <mjambor@suse.cz>
30540 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30542 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30544 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30548 * var-tracking.c (add_stores): Preserve the value of the source even if
30549 we don't record the store.
30551 2014-01-06 Terry Guo <terry.guo@arm.com>
30553 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30555 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30558 * config/darwin.c (darwin_function_section): Adjust return values to
30559 correspond to optimisation changes made in r206070.
30561 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30563 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30564 from prefetch_block tune setting.
30565 (nocona_cost): Correct size of prefetch block to 64.
30567 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30569 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30570 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30571 used to save the static chain register in the computation of the offset
30572 from which the FP registers need to be restored.
30574 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30576 PR tree-optimization/59519
30577 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30578 ICE if get_current_def (current_new_name) is already non-NULL, as long
30579 as it is a phi result of some other phi in *new_exit_bb that has
30582 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30583 or vmovdqu* for misaligned_operand.
30584 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30585 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30586 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30587 aligned_mem for AVX512F masked aligned load and store builtins and for
30588 non-temporal moves.
30590 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30592 PR tree-optimization/59651
30593 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30594 Address range for negative step should be added by TYPE_SIZE_UNIT.
30596 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30598 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30599 overlapping registers also for registers other than the stack pointer.
30601 2014-01-03 Marek Polacek <polacek@redhat.com>
30604 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30607 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30610 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30613 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30614 (push splitter): Use <P:MODE_SIZE> instead of
30615 GET_MODE_SIZE (<P:MODE>mode).
30616 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30617 (mov -1, reg peephole2): Likewise.
30618 * config/i386/sse.md (*mov<mode>_internal,
30619 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30620 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30621 *<code><mode>3, *andnot<mode>3<mask_name>,
30622 <mask_codefor><code><mode>3<mask_name>): Likewise.
30623 * config/i386/subst.md (mask_mode512bit_condition,
30624 sd_mask_mode512bit_condition): Likewise.
30626 2014-01-02 Xinliang David Li <davidxl@google.com>
30628 PR tree-optimization/59303
30629 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30630 (dump_predicates): Better output format.
30631 (pred_equal_p): New function.
30632 (is_neq_relop_p): Ditto.
30633 (is_neq_zero_form_p): Ditto.
30634 (pred_expr_equal_p): Ditto.
30635 (pred_neg_p): Ditto.
30636 (simplify_pred): Ditto.
30637 (simplify_preds_2): Ditto.
30638 (simplify_preds_3): Ditto.
30639 (simplify_preds_4): Ditto.
30640 (simplify_preds): Ditto.
30641 (push_pred): Ditto.
30642 (push_to_worklist): Ditto.
30643 (get_pred_info_from_cmp): Ditto.
30644 (is_degenerated_phi): Ditto.
30645 (normalize_one_pred_1): Ditto.
30646 (normalize_one_pred): Ditto.
30647 (normalize_one_pred_chain): Ditto.
30648 (normalize_preds): Ditto.
30649 (normalize_cond_1): Remove function.
30650 (normalize_cond): Ditto.
30651 (is_gcond_subset_of): Ditto.
30652 (is_subset_of_any): Ditto.
30653 (is_or_set_subset_of): Ditto.
30654 (is_and_set_subset_of): Ditto.
30655 (is_norm_cond_subset_of): Ditto.
30656 (pred_chain_length_cmp): Ditto.
30657 (convert_control_dep_chain_into_preds): Type change.
30658 (find_predicates): Ditto.
30659 (find_def_preds): Ditto.
30660 (destroy_predicates_vecs): Ditto.
30661 (find_matching_predicates_in_rest_chains): Ditto.
30662 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30663 (is_pred_expr_subset): Ditto.
30664 (is_pred_chain_subset_of): Ditto.
30665 (is_included_in): Ditto.
30666 (is_superset_of): Ditto.
30668 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30670 Update copyright years.
30672 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30674 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30675 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30676 config/arc/arc.md, config/arc/arc.opt,
30677 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30678 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30679 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30680 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30681 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30682 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30683 vtable-verify.c, vtable-verify.h: Use the standard form for the
30686 2014-01-02 Tobias Burnus <burnus@net-b.de>
30688 * gcc.c (process_command): Update copyright notice dates.
30689 * gcov-dump.c: Ditto.
30691 * doc/cpp.texi: Bump @copying's copyright year.
30692 * doc/cppinternals.texi: Ditto.
30693 * doc/gcc.texi: Ditto.
30694 * doc/gccint.texi: Ditto.
30695 * doc/gcov.texi: Ditto.
30696 * doc/install.texi: Ditto.
30697 * doc/invoke.texi: Ditto.
30699 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30701 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30703 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30705 * config/i386/sse.md (*mov<mode>_internal): Guard
30706 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30708 PR rtl-optimization/59647
30709 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30710 new_rtx into UNSIGNED_FLOAT rtxes.
30712 Copyright (C) 2014 Free Software Foundation, Inc.
30714 Copying and distribution of this file, with or without modification,
30715 are permitted in any medium without royalty provided the copyright
30716 notice and this notice are preserved.