1 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
3 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
6 2014-09-10 Jakub Jelinek <jakub@redhat.com>
8 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
9 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
10 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
11 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
12 flag_delete_null_pointer_checks for them.
13 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
14 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
15 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
16 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
17 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
19 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
20 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
21 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
22 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
23 * doc/invoke.texi (-fsanitize=nonnull-attribute,
24 -fsanitize=returns-nonnull-attribute): Document.
26 * ubsan.h (struct ubsan_mismatch_data): Removed.
27 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
28 * ubsan.c (ubsan_source_location): For unknown locations,
29 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
30 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
31 Allow more than one location and arbitrary extra arguments passed
32 in ... instead of through MISMATCH pointer.
33 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
34 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
35 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
38 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
39 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
40 Anna Tikhonova <anna.tikhonova@intel.com>
41 Ilya Tocar <ilya.tocar@intel.com>
42 Andrey Turetskiy <andrey.turetskiy@intel.com>
43 Ilya Verbin <ilya.verbin@intel.com>
44 Kirill Yukhin <kirill.yukhin@intel.com>
45 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
48 (define_mode_iterator VI48F): New.
49 (define_insn "<avx512>_compress<mode>_mask"): Rename from
50 "avx512f_compress<mode>_mask" and update mode iterator.
51 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
52 "avx512f_compressstore<mode>_mask" and update mode iterator.
53 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
54 "avx512f_expand<mode>_maskz" and update mode iterator.
55 (define_insn "<avx512>_expand<mode>_mask"): Rename from
56 "avx512f_expand<mode>_mask" and update mode iterator.
58 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
59 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
60 Anna Tikhonova <anna.tikhonova@intel.com>
61 Ilya Tocar <ilya.tocar@intel.com>
62 Andrey Turetskiy <andrey.turetskiy@intel.com>
63 Ilya Verbin <ilya.verbin@intel.com>
64 Kirill Yukhin <kirill.yukhin@intel.com>
65 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
68 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
69 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
70 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
71 avx512dq_rangepv4sf_mask.
73 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
75 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
76 (define_insn "reduces<mode>"): Ditto.
77 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
79 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
80 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
81 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
83 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
84 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
85 Anna Tikhonova <anna.tikhonova@intel.com>
86 Ilya Tocar <ilya.tocar@intel.com>
87 Andrey Turetskiy <andrey.turetskiy@intel.com>
88 Ilya Verbin <ilya.verbin@intel.com>
89 Kirill Yukhin <kirill.yukhin@intel.com>
90 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
93 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
94 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
95 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
96 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
97 avx512vl_getmantv2df_mask.
98 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
99 avx512f_vgetmantv4sf_round.
101 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
102 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
104 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
105 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
106 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
107 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
109 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
110 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
111 update mode iterator.
113 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
114 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
117 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
118 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
119 update mode iterator.
120 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
121 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
124 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
125 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
127 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
128 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
129 update mode iterator.
130 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
131 "avx512f_getmant<mode><round_saeonly_name>".
133 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
136 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
138 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
139 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
140 Anna Tikhonova <anna.tikhonova@intel.com>
141 Ilya Tocar <ilya.tocar@intel.com>
142 Andrey Turetskiy <andrey.turetskiy@intel.com>
143 Ilya Verbin <ilya.verbin@intel.com>
144 Kirill Yukhin <kirill.yukhin@intel.com>
145 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
147 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
148 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
149 (define_mode_iterator FMAMODE_AVX512): New.
150 (define_mode_iterator FMAMODE): Remove conditions.
151 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
152 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
153 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
155 (define_mode_iterator FMAMODE_NOVF512): Remove.
156 (define_insn "*fma_fmadd_<mode>"): Rename from
157 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
158 FMAMODE mode iterator.
159 (define_mode_iterator VF_SF_AVX512VL): New.
160 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
161 Use VF_SF_AVX512VL mode iterator.
162 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
163 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
165 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
166 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
168 (define_insn "*fma_fmsub_<mode>"): Rename from
169 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
170 FMAMODE mode iterator.
171 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
172 Use VF_SF_AVX512VL mode iterator.
173 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
174 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
176 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
177 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
179 (define_insn "*fma_fnmadd_<mode>"): Rename from
180 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
181 use FMAMODE mode iterator.
182 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
183 Use VF_SF_AVX512VL mode iterator.
184 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
185 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
187 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
188 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
190 (define_insn "*fma_fnmsub_<mode>"): Rename from
191 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
192 FMAMODE mode iterator.
193 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
194 Use VF_SF_AVX512VL mode iterator.
195 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
196 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
198 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
199 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
201 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
202 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
203 use VF_AVX512VL mode iterator.
204 (define_insn "*fma_fmaddsub_<mode>"): Rename from
205 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
207 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
208 Use VF_SF_AVX512VL mode iterator.
209 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
210 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
212 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
213 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
215 (define_insn "*fma_fmsubadd_<mode>"): Rename from
216 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
217 remove usage of subst.
218 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
219 Use VF_SF_AVX512VL mode iterator.
220 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
221 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
223 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
224 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
227 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
230 * calls.c (precompute_arguments): Check
231 promoted_for_signed_and_unsigned_p and set the promoted mode.
232 (promoted_for_signed_and_unsigned_p): New function.
233 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
234 and set the promoted mode.
235 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
236 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
237 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
239 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
241 * opth-gen.awk: Generate mapping from cpp message reasons to the
242 options that enable them.
243 * doc/options.texi (CppReason): Document.
245 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
247 * doc/invoke.texi (Wnormalized=): Update.
249 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
252 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
253 operands. Split off the constant operand alternative to ...
254 (*bool<mode>3_imm): New.
256 2014-09-09 David Malcolm <dmalcolm@redhat.com>
258 * rtl.h (single_set_2): Strengthen first param from const_rtx to
259 const rtx_insn *, and move prototype to above...
260 (single_set): ...this. Convert this from a macro to an inline
261 function, enforcing the requirement that the param is a const
263 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
265 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
266 Strengthen both params from rtx to rtx_insn *.
267 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
268 Likewise; introduce locals "producer_set", "consumer_set", using
269 them in place of "producer" and "consumer" when dealing with SET
271 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
272 when invoking single_set in region guarded by INSN_P.
273 (avr_out_bitop): Likewise.
274 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
275 region guarded by GET_CODE check, using methods to strengthen
276 local "this_insn" from rtx to rtx_insn *, and for clarity.
277 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
278 Strengthen local "insn" from rtx to rtx_insn *.
279 (define_insn_and_split "xload<mode>_A"): Likewise.
280 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
282 (find_load): Likewise for return type.
283 (workaround_speculation): Likewise for both locals named
285 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
287 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
289 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
291 * config/h8300/h8300.c (notice_update_cc): Likewise.
292 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
293 "insn" and "dep_insn".
294 (exact_store_load_dependency): Likewise for both params.
295 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
296 since this now clashes with inline function. Instead, delay
297 calling single_set until the point where its needed, and then
298 assign the result to "compare_set" and rework the conditional that
300 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
301 local "last" from rtx to rtx_insn *.
302 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
304 (mips_store_data_bypass_p): Likewise for both params.
305 * config/mips/mips.c (mips_load_store_insns): Likewise for second
307 (mips_store_data_bypass_p): Likewise for both params.
308 (mips_orphaned_high_part_p): Likewise for param "insn".
309 * config/mn10300/mn10300.c (extract_bundle): Likewise.
310 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
311 Introduce local rtx "insn2_pat".
312 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
314 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
315 Introduce local rtx "set", using it in place of "insn" for the
316 result of single_set. This appears to fix a bug, since the call
317 to find_regno_note on a SET does nothing.
318 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
319 params from rtx to rtx_insn *.
320 (set_to_load_agen): Likewise.
321 * config/s390/s390.c (s390_label_align): Likewise for local
322 "prev_insn". Introduce new rtx locals "set" and "src", using
323 them in place of "prev_insn" for the results of single_set
324 and SET_SRC respectively.
325 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
326 Introduce new rtx local "set" using in place of "jump" for the
327 result of single_set. Use SET_SRC (set) rather than plain
329 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
331 (noncall_uses_reg): Likewise.
332 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
333 guarded by GET_CODE check, using its methods for clarity, and to
334 enable strengthening local "this_insn" from rtx to rtx_insn *.
335 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
336 "insn" from rtx to rtx_insn *.
337 (define_expand "umulhisi3"): Likewise.
338 (define_expand "smulsi3_highpart"): Likewise.
339 (define_expand "umulsi3_highpart"): Likewise.
340 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
341 local "after". Replace GET_CODE check with a dyn_cast,
342 introducing new local rtx_sequence * "seq", using insn method for
345 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
346 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
347 place of "insn" once we're dealing with patterns rather than the
349 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
350 (scan_trace): Likewise for local "elt", updating lookups within
351 sequence to use insn method rather than element method.
352 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
354 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
355 * ifcvt.c (noce_try_abs): Likewise for local "insn".
356 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
358 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
359 "insn" from rtx to rtx_insn *.
360 (skip_usage_debug_insns): Likewise for return type, adding a
362 (check_secondary_memory_needed_p): Likewise for local "insn".
363 (inherit_reload_reg): Likewise.
364 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
365 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
367 (store_data_bypass_p): Likewise for both params.
368 (if_test_bypass_p): Likewise.
369 * recog.h (store_data_bypass_p): Likewise for both params.
370 (if_test_bypass_p): Likewise.
371 * reload.c (find_equiv_reg): Likewise for local "where".
372 * reorg.c (delete_jump): Likewise for param "insn".
373 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
375 * store-motion.c (replace_store_insn): Likewise for param "del".
376 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
377 and use its methods for clarity, and to strengthen local "del"
378 from rtx to rtx_insn *.
379 (build_store_vectors): Use insn method of "st" when calling
380 replace_store_insn for typesafety and clarity.
382 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
384 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
385 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
386 on how to make it legal in future.
388 2014-09-09 David Malcolm <dmalcolm@redhat.com>
390 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
392 (restinsn): Likewise.
393 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
395 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
397 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
399 (arc_hazard): Likewise for both params.
400 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
401 checked casts to rtx_sequence * and uses of the insn method for
403 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
404 (arc_adjust_insn_length): Likewise for param "insn".
405 (struct insn_length_parameters_s): Likewise for first param of
406 "get_variants" callback field.
407 (arc_get_insn_variants): Likewise for first param and local
408 "inner". Replace a check of GET_CODE with a dyn_cast to
409 rtx_sequence *, using methods for type-safety and clarity.
410 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
411 rtx_sequence * and uses of the insn method for type-safety when
412 invoking arc_adjust_insn_length.
413 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
415 (arm_address_offset_is_imm): Likewise.
416 (struct tune_params): Likewise for params 1 and 3 of the
417 "sched_adjust_cost" callback field.
418 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
419 params 1 and 3 ("insn" and "dep").
420 (xscale_sched_adjust_cost): Likewise.
421 (fa726te_sched_adjust_cost): Likewise.
422 (cortexa7_older_only): Likewise for param "insn".
423 (cortexa7_younger): Likewise.
424 (arm_attr_length_move_neon): Likewise.
425 (arm_address_offset_is_imm): Likewise.
426 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
427 * config/avr/avr.c (avr_notice_update_cc): Likewise.
428 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
429 (workaround_speculation): Likewise for local "last_condjump".
430 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
431 (shadow_or_blockage_p): Likewise.
432 (get_unit_reqs): Likewise.
433 (get_unit_operand_masks): Likewise.
434 (c6x_registers_update): Likewise.
435 (returning_call_p): Likewise.
436 (can_use_callp): Likewise.
437 (convert_to_callp): Likewise.
438 (find_last_same_clock): Likwise for local "t".
439 (reorg_split_calls): Likewise for local "shadow".
440 (hwloop_pattern_reg): Likewise for param "insn".
441 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
442 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
443 (frv_extract_membar): Likewise.
444 (frv_optimize_membar_local): Strengthen param "last_membar" from
445 rtx * to rtx_insn **.
446 (frv_optimize_membar_global): Strengthen param "membar" from rtx
448 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
450 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
451 both params from rtx to rtx_insn *.
452 (ia64_ld_address_bypass_p): Likewise.
453 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
455 (ia64_safe_type): Likewise.
456 (group_barrier_needed): Likewise.
457 (safe_group_barrier_needed): Likewise.
458 (ia64_single_set): Likewise.
459 (is_load_p): Likewise.
460 (record_memory_reference): Likewise.
461 (get_mode_no_for_insn): Likewise.
462 (important_for_bundling_p): Likewise.
463 (unknown_for_bundling_p): Likewise.
464 (ia64_st_address_bypass_p): Likewise for both params.
465 (ia64_ld_address_bypass_p): Likewise.
466 (expand_vselect): Introduce new local rtx_insn * "insn", using it
467 in place of rtx "x" after the emit_insn call.
468 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
469 Strengthen param from rtx to rtx_insn *.
470 (ix86_agi_dependent): Likewise for both params.
471 (ix86_attr_length_immediate_default): Likewise for param 1.
472 (ix86_attr_length_address_default): Likewise for param.
473 (ix86_attr_length_vex_default): Likewise for param 1.
474 * config/i386/i386.c (ix86_attr_length_immediate_default):
475 Likewise for param "insn".
476 (ix86_attr_length_address_default): Likewise.
477 (ix86_attr_length_vex_default): Likewise.
478 (ix86_agi_dependent): Likewise for both params.
479 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
480 (vselect_insn): Likewise for this variable.
481 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
483 (m68k_sched_attr_opy_type): Likewise.
484 * config/m68k/m68k.c (sched_get_operand): Likewise.
485 (sched_attr_op_type): Likewise.
486 (m68k_sched_attr_opx_type): Likewise.
487 (m68k_sched_attr_opy_type): Likewise.
488 (sched_get_reg_operand): Likewise.
489 (sched_get_mem_operand): Likewise.
490 (m68k_sched_address_bypass_p): Likewise for both params.
491 (sched_get_indexed_address_scale): Likewise.
492 (m68k_sched_indexed_address_bypass_p): Likewise.
493 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
494 (m68k_sched_indexed_address_bypass_p): Likewise.
495 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
496 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
498 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
499 params from rtx to rtx_insn *.
500 (mips_fmadd_bypass): Likewise.
501 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
502 (mips_linked_madd_p): Likewise.
503 (mips_macc_chains_last_hilo): Likewise for this variable.
504 (mips_macc_chains_record): Likewise for param.
505 (vr4130_last_insn): Likewise for this variable.
506 (vr4130_swap_insns_p): Likewise for both params.
507 (mips_ls2_variable_issue): Likewise for param.
508 (mips_need_noat_wrapper_p): Likewise for param "insn".
509 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
510 in place of "x" after the emit_insn.
511 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
512 params from rtx to rtx_insn *.
513 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
514 (pa_combine_instructions): Introduce local "par" for result of
515 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
517 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
518 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
519 (rl78_alloc_physical_registers_op1): Likewise.
520 (rl78_alloc_physical_registers_op2): Likewise.
521 (rl78_alloc_physical_registers_ro1): Likewise.
522 (rl78_alloc_physical_registers_cmp): Likewise.
523 (rl78_alloc_physical_registers_umul): Likewise.
524 (rl78_alloc_address_registers_macax): Likewise.
525 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
526 * config/s390/predicates.md (execute_operation): Likewise for
528 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
530 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
531 (addr_generation_dependency_p): Likewise for param "insn".
532 (s390_agen_dep_p): Likewise for both params.
533 (s390_fpload_toreg): Likewise for param "insn".
534 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
535 * config/sh/sh.c (sh_loop_align): Likewise for param and local
537 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
538 * config/sh/sh_treg_combine.cc
539 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
541 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
542 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
543 "and_insn", "load", "shift".
544 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
546 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
547 for XEXP (note, 0) of the REG_CC_SETTER note.
548 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
549 rtx_insn *, eliminating a checked cast made redundant by this.
550 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
552 * genattr.c (main): When writing out the prototype to
553 const_num_delay_slots, strengthen the param from rtx to
555 * genattrtab.c (write_const_num_delay_slots): Likewise when
556 writing out the implementation of const_num_delay_slots.
557 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
558 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
559 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
560 favor of new rtx locals "src" and "set" and new local rtx_insn *
562 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
564 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
565 locals "cond", "if_then_else", "set" and new rtx_insn * locals
567 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
568 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
569 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
570 the top-level scope, replacing with new more tightly-scoped rtx
571 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
572 "new_insn", "copy_of_insn_b", and make local rtx "set" more
574 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
576 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
578 (ira_setup_alts): Likewise for param "insn".
579 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
580 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
582 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
583 new more-tightly scoped rtx locals "add3_insn", "insn",
584 "add2_insn" and rtx_insn * "move_insn".
585 * postreload-gcse.c (eliminate_partially_redundant_load): Add
586 checked cast on result of gen_move_insn when invoking
588 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
590 (verify_changes): Add a checked cast on "object" when invoking
592 (extract_insn_cached): Strengthen param "insn" from rtx to
594 (extract_constrain_insn_cached): Likewise.
595 (extract_insn): Likewise.
596 * recog.h (insn_invalid_p): Likewise for param 1.
597 (recog_memoized): Likewise for param.
598 (extract_insn): Likewise.
599 (extract_constrain_insn_cached): Likewise.
600 (extract_insn_cached): Likewise.
601 * reload.c (can_reload_into): Likewise for local "test_insn".
602 * reload.h (cleanup_subreg_operands): Likewise for param.
603 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
604 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
605 result of emit_insn. Remove a checked cast made redundant by this
607 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
609 * sel-sched.c (get_reg_class): Likewise.
611 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
612 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
614 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
615 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
617 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
619 2014-09-09 David Malcolm <dmalcolm@redhat.com>
621 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
622 const rtx_insn *, and from rtx to rtx_insn * for the other
624 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
625 INSN_LOCATION, since we know INSN_P holds.
626 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
627 (insn_file): Likewise.
628 (insn_scope): Likewise.
629 (insn_location): Likewise.
631 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
632 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
633 for the result of gen_load_const_gp.
634 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
635 param from rtx to rtx_insn *.
636 * config/rs6000/rs6000.c (output_call): Likewise.
637 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
638 introducing a checked cast to rtx_sequence * and use of the insn
640 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
641 from rtx to rtx_insn *.
642 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
643 (insn_line): Likewise.
644 (insn_file): Likewise.
645 (insn_location): Likewise.
646 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
647 from rtx to rtx_insn *.
648 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
649 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
650 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
652 * reorg.c (relax_delay_slots): Strengthen locals named "after"
653 from rtx to rtx_insn *; use methods of "pat" for type-safety.
655 2014-09-09 David Malcolm <dmalcolm@redhat.com>
657 * combine.c (try_combine): Eliminate checked cast on result of
659 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
660 autogenerated one by strengthening the return type and params 2 and 3
661 from rtx to rtx_insn *, and by naming the params.
662 * gengenrtl.c (special_rtx): Add INSN to those that are
664 * rtl.h (gen_rtx_INSN): New prototype.
666 2014-09-09 David Malcolm <dmalcolm@redhat.com>
668 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
670 (no_equiv): Likewise.
671 (update_equiv_regs): Likewise.
672 (setup_reg_equiv): Likewise. Strengthen locals "elem",
673 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
674 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
676 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
677 from rtx to rtx_insn_list *.
678 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
679 rtx_insn_list * and use methods for clarity and typesafety.
680 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
682 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
683 redundant check on INSN_P (insns): this cannot hold, as "insns" is
684 an INSN_LIST, not an insn.
685 (reverse_equiv_p): Strengthen local "insns" from rtx to
686 rtx_insn_list * and use methods for clarity and typesafety.
687 (contains_reloaded_insn_p): Likewise for local "list".
689 2014-09-09 Jiong Wang <jiong.wang@arm.com>
691 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
692 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
693 (arm_builtin_vectorized_function): Likewise.
694 * config/arm/arm_neon_builtins.def: New macro for copysignf.
695 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
697 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
699 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
700 * builtins.h (default_target_builtins): Likewise.
701 * gcse.h (default_target_gcse): Likewise.
702 * target-globals.h (target_globals): Add a destructor. Convert
703 void-pointer fields back to their real type and change from
704 GTY((atomic)) to GTY((skip)).
705 (restore_target_globals): Remove casts accordingly.
706 * target-globals.c (save_target_globals): Use XCNEW rather than
707 ggc_internal_cleared_alloc to allocate non-GC structures.
708 Use ggc_cleared_alloc to allocate the target_globals structure
710 (target_globals::~target_globals): Define.
712 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
714 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
715 mnemonic instead of fldmfdd.
716 * config/arm/arm.c (vfp_output_fstmd): Rename to...
717 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
718 Output vpush when address register is SP.
719 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
720 (vfp_output_vstmd): ... This.
721 * config/arm/vfp.md (push_multi_vfp): Update call to
724 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
726 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
728 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
730 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
731 (*sqrtdf2_vfp): Likewise.
732 (*cmpsf_vfp): Likewise.
733 (*cmpsf_trap_vfp): Likewise.
734 (*cmpdf_vfp): Likewise.
735 (*cmpdf_trap_vfp): Likewise.
737 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
739 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
740 (*truncdfsf2_vfp): Likewise.
741 (*truncsisf2_vfp): Likewise.
742 (*truncsidf2_vfp): Likewise.
743 (fixuns_truncsfsi2): Likewise.
744 (fixuns_truncdfsi2): Likewise.
745 (*floatsisf2_vfp): Likewise.
746 (*floatsidf2_vfp): Likewise.
747 (floatunssisf2): Likewise.
748 (floatunssidf2): Likewise.
750 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
752 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
753 (*muldf3_vfp): Likewise.
754 (*mulsf3negsf_vfp): Likewise.
755 (*muldf3negdf_vfp): Likewise.
756 (*mulsf3addsf_vfp): Likewise.
757 (*muldf3adddf_vfp): Likewise.
758 (*mulsf3subsf_vfp): Likewise.
759 (*muldf3subdf_vfp): Likewise.
760 (*mulsf3negsfaddsf_vfp): Likewise.
761 (*fmuldf3negdfadddf_vfp): Likewise.
762 (*mulsf3negsfsubsf_vfp): Likewise.
763 (*muldf3negdfsubdf_vfp): Likewise.
765 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
767 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
768 (*absdf2_vfp): Likewise.
769 (*negsf2_vfp): Likewise.
770 (*negdf2_vfp): Likewise.
771 (*addsf3_vfp): Likewise.
772 (*adddf3_vfp): Likewise.
773 (*subsf3_vfp): Likewise.
774 (*subdf3_vfp): Likewise.
775 (*divsf3_vfp): Likewise.
776 (*divdf3_vfp): Likewise.
778 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
780 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
782 (arm_print_operand): Don't convert real values to decimal
783 representation in default case.
784 (fp_immediate_constant): Delete.
785 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
786 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
788 (*thumb2_movsi_vfp): Likewise.
789 (*movdi_vfp): Likewise.
790 (*movdi_vfp_cortexa8): Likewise.
791 (*movhf_vfp_neon): Likewise.
792 (*movhf_vfp): Likewise.
793 (*movsf_vfp): Likewise.
794 (*thumb2_movsf_vfp): Likewise.
795 (*movdf_vfp): Likewise.
796 (*thumb2_movdf_vfp): Likewise.
797 (*movsfcc_vfp): Likewise.
798 (*thumb2_movsfcc_vfp): Likewise.
799 (*movdfcc_vfp): Likewise.
800 (*thumb2_movdfcc_vfp): Likewise.
802 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
804 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
808 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
811 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
812 Use qualifier_immediate for last operand. Rename to...
813 (aarch64_types_ternop_lane_qualifiers): ... This.
814 (TYPES_QUADOP): Rename to...
815 (TYPES_TERNOP_LANE): ... This.
816 (aarch64_simd_expand_args): Return const0_rtx when encountering user
817 error. Change return of 0 to return of NULL_RTX.
818 (aarch64_crc32_expand_builtin): Likewise.
819 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
820 ICE when expanding unknown builtin.
821 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
822 TERNOP_LANE qualifiers.
823 (sqdmlsl_lane): Likewise.
824 (sqdmlal_laneq): Likewise.
825 (sqdmlsl_laneq): Likewise.
826 (sqdmlal2_lane): Likewise.
827 (sqdmlsl2_lane): Likewise.
828 (sqdmlal2_laneq): Likewise.
829 (sqdmlsl2_laneq): Likewise.
831 2014-09-09 Nick Clifton <nickc@redhat.com>
833 * doc/invoke.texi (Optimization Options): Add missing @gol to the
835 (S/390 and zSeries Options): Remove superfluous word from the
836 description of the -mhotpatch option.
838 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
840 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
841 * ira.c: #include "shrink-wrap.h"
842 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
843 * ifcvt.c: #include "shrink-wrap.h"
844 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
846 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
848 * common/config/picochip/picochip-common.c: Remove.
849 * config.gcc: Remove support for picochip.
850 * config/picochip/constraints.md: Remove.
851 * config/picochip/dfa_space.md: Remove.
852 * config/picochip/dfa_speed.md: Remove.
853 * config/picochip/picochip-protos.h: Remove.
854 * config/picochip/picochip.c: Remove.
855 * config/picochip/picochip.h: Remove.
856 * config/picochip/picochip.md: Remove.
857 * config/picochip/picochip.opt: Remove.
858 * config/picochip/predicates.md: Remove.
859 * config/picochip/t-picochip: Remove.
860 * doc/md.texi: Don't document picochi.
862 2014-09-08 David Malcolm <dmalcolm@redhat.com>
864 * basic-block.h (control_flow_insn_p): Strengthen param from
865 const_rtx to const rtx_insn *.
866 * cfgbuild.c (control_flow_insn_p): Likewise.
868 2014-09-08 David Malcolm <dmalcolm@redhat.com>
870 * gcse.c (modify_mem_list): Strengthen this variable from
871 vec<rtx> * to vec<rtx_insn *> *.
872 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
874 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
875 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
876 (record_last_mem_set_info): Strengthen param "insn" from rtx to
878 (record_last_set_info): Likewise for local "last_set_insn".
880 2014-09-08 DJ Delorie <dj@redhat.com>
882 * doc/invoke.texi (MSP430 Options): Add -minrt.
884 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
886 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
887 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
888 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
890 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
892 (adjust_splat): New function.
893 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
894 (dump_swap_insn_table): Add case for SH_SPLAT.
896 2014-09-08 Richard Biener <rguenther@suse.de>
899 * tree-inline.c (copy_loops): The source loop header should
901 (tree_function_versioning): If loops need fixup after removing
902 unreachable blocks fix them.
903 * omp-low.c (simd_clone_adjust): Do not add incr block to
904 loop under construction.
906 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
908 * config/aarch64/aarch64-builtins.c
909 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
911 2014-09-08 Joseph Myers <joseph@codesourcery.com>
913 * config/i386/cygming.h (TF_SIZE): Remove.
914 * config/i386/darwin.h (TF_SIZE): Remove.
915 * config/i386/dragonfly.h (TF_SIZE): Remove.
916 * config/i386/freebsd.h (TF_SIZE): Remove.
917 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
918 * config/i386/openbsdelf.h (TF_SIZE): Remove.
919 * config/i386/sol2.h (TF_SIZE): Remove.
920 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
921 * config/ia64/linux.h (TF_SIZE): Remove.
922 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
923 * doc/tm.texi: Regenerate.
924 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
926 2014-09-08 Joseph Myers <joseph@codesourcery.com>
928 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
930 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
932 * doc/tm.texi: Regenerate.
933 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
935 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
936 * config/cris/cris.h (__make_dp): Remove.
938 2014-09-08 Richard Biener <rguenther@suse.de>
941 * cfgloop.c (mark_loop_for_removal): Track former header
943 * cfgloop.h (struct loop): Add former_header member unconditionally.
944 * loop-init.c (fix_loop_structure): Enable bogus loop removal
945 diagnostic unconditionally.
947 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
950 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
951 constraint for operand0 and remove write only modifier from operand3.
953 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
955 PR rtl-optimization/62208
956 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
957 rather than const0_rtx in eq/ne-xor simplifications.
959 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
961 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
962 (arc_output_mi_thunk): Likewise.
964 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
965 arguments to silence bogus warning.
967 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
970 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
972 2014-09-06 Tom de Vries <tom@codesourcery.com>
974 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
975 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
976 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
978 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
981 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
982 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
984 2014-09-05 Easwaran Raman <eraman@google.com>
986 PR rtl-optimization/62146
987 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
988 hoisted instruction unconditional.
990 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
993 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
994 Do not allow any_mask_operand for operands[2].
995 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
997 2014-09-05 David Malcolm <dmalcolm@redhat.com>
999 * config/arc/arc.c (arc_print_operand): Use insn method of
1000 final_sequence for type-safety.
1001 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1002 "insn" from rtx to rtx_insn *.
1003 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1004 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1005 Likewise for locals "branch", "label".
1006 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1007 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1008 (same_cmp_following_p): Likewise for locals "i2", "i3".
1009 * config/sh/sh_optimize_sett_clrt.cc
1010 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1011 param "cbranch_insn".
1012 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1013 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1014 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1016 (condjump_p): Likewise.
1017 (condjump_in_parallel_p): Likewise.
1019 (any_uncondjump_p): Likewise.
1020 (any_condjump_p): Likewise.
1021 (condjump_label): Likewise.
1022 (returnjump_p): Strengthen param "insn" from rtx to
1024 (onlyjump_p): Strengthen param "insn" from const_rtx to
1026 (jump_to_label_p): Likewise.
1027 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1028 (invert_jump): Likewise.
1029 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1031 (get_jump_flags): Strengthen param "insn" from rtx to
1033 (get_branch_condition): Likewise.
1034 (condition_dominates_p): Likewise.
1035 (make_return_insns): Move declaration of local "pat" earlier, to
1036 after we've handled NONJUMP_INSN_P and non-sequences, using its
1037 methods to simplify the code and for type-safety.
1038 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1040 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1041 (condjump_p): Strengthen param from const_rtx to
1043 (any_condjump_p): Likewise.
1044 (any_uncondjump_p): Likewise.
1046 (condjump_label): Likewise.
1047 (simplejump_p): Likewise.
1048 (returnjump_p): Likewise.
1049 (onlyjump_p): Likewise.
1050 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1051 (invert_jump): Likewise.
1052 (condjump_in_parallel_p): Strengthen param from const_rtx to
1054 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1055 to const rtx_insn *.
1056 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1057 to const rtx_insn *.
1058 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1060 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1062 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1063 above the conditional, and convert the check on GET_CODE to a
1064 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1065 the conditional. Simplify the conditional by using methods of
1068 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1070 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1071 "link" from rtx to rtx_insn_list *, and use its methods for
1072 clarity and type-safety.
1073 (toggle_cancelled_flags): Likewise.
1074 (restore_last_backtrack_point): Likewise.
1075 (queue_to_ready): Use insn method of "link" in one place.
1076 (schedule_block): Strengthen local "link" from rtx to
1077 rtx_insn_list *, and use its methods for clarity and type-safety.
1079 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1081 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1082 param "insn" from const_rtx to const rtx_insn *.
1083 (sched_get_reverse_condition_uncached): Likewise.
1084 (sched_get_condition_with_rev): Likewise.
1085 (sched_has_condition_p): Likewise.
1086 (sched_insns_conditions_mutex_p): Likewise for both params.
1087 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1088 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1089 (setup_insn_reg_uses): Move local "list" to be more tightly
1090 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1091 its methods for clarity and type-safety.
1092 (sched_analyze_1): Strengthen local "pending" from rtx to
1093 rtx_insn_list *, and local "pending_mem" from rtx to
1094 rtx_expr_list *. Use methods of each for clarity and type-safety.
1095 (sched_analyze_2): Likewise.
1096 (sched_analyze_insn): Likewise.
1098 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1099 param from const_rtx to const rtx_insn *.
1100 (sched_insns_conditions_mutex_p): Likewise for both params.
1101 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1104 * system.h (CONST_CAST_RTX_INSN): New macro.
1106 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1108 * recog.c (peep2_attempt): Strengthen return type from rtx to
1110 (peep2_update_life): Likewise for params "last", "prev", removing
1111 a checked cast made redundant by this.
1112 (peephole2_optimize): Likewise for local "last".
1114 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1116 * basic-block.h (set_block_for_insn): Eliminate this macro in
1118 * rtl.h (set_block_for_insn): New inline function, imposing the
1119 requirement that the "insn" param is an rtx_insn *.
1121 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1123 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1125 * final.c (get_call_reg_set_usage): Likewise for first param,
1126 eliminating a checked cast.
1127 * regs.h (get_call_reg_set_usage): Likewise for first param.
1128 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1129 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1130 cast, replacing references to "x" with "call_insn" where
1132 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1133 rtx_insn *, adding a checked cast.
1135 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1137 * output.h (final_scan_insn): Strengthen first param from rtx to
1140 * final.c (final_scan_insn): Likewise, renaming it back from
1141 "uncast_insn" to "insn", eliminating the checked cast.
1143 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1144 "vec" with an rtx_sequence * "seq", taking a copy of
1145 "final_sequence", and using methods of "seq" for clarity, and for
1146 type-safety in the calls to final_scan_insn.
1147 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1148 of "final_sequence" for clarity, and for type-safety in the call to
1150 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1151 rtx_sequence * and rename from "insn" to "seq".
1153 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1155 * jump.c (delete_related_insns): Introduce a new local "table" by
1156 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1157 get_labels method of "table" to simplify access to the labels in
1160 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1162 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1163 f_minmaxs, f_minmaxd types.
1165 2014-09-05 Richard Biener <rguenther@suse.de>
1167 * cfgloop.c (mark_loop_for_removal): Record former header
1168 when ENABLE_CHECKING.
1169 * cfgloop.h (strut loop): Add former_header member when
1171 * loop-init.c (fix_loop_structure): Sanity check loops
1172 marked for removal if they re-appeared.
1174 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1176 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1177 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1179 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1180 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1181 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1182 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1183 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1184 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1185 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1186 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1187 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1188 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1189 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1190 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1191 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1192 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1193 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1194 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1195 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1196 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1197 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1198 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1199 with int{32,16,8}_t.
1201 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1203 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1204 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1205 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1206 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1207 Remove temporary __asm__ and reimplement.
1209 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1211 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1212 handling cmge, cmgt, cmeq, cmtst.
1214 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1215 cmlt, cmgeu, cmgtu, cmtst): Remove.
1217 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1218 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1219 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1220 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1222 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1224 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1226 (aarch64_fold_builtin): Update pattern for cmtst.
1228 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1231 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1233 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1234 Switch operands, separate out more cases, refactor.
1236 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1238 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1239 argument; rename old version to...
1240 (aarch64_const_vec_all_same_in_range_p): ...this.
1241 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1243 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1245 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1247 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1248 Remove qualifier_const_pointer, update comment.
1250 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1252 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1254 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1256 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1257 varargs with pointer parameter.
1258 (aarch64_simd_expand_builtin): pass pointer into previous.
1260 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1262 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1265 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1267 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1268 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1269 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1270 Replace temporary asm with call to builtin.
1271 (vrbit_p8, vrbitq_p8): New functions.
1273 2014-09-05 Richard Biener <rguenther@suse.de>
1275 * cfgloop.c (mark_loop_for_removal): New function.
1276 * cfgloop.h (mark_loop_for_removal): Declare.
1277 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1278 (merge_blocks): Likewise.
1279 (duplicate_block): Likewise.
1280 * except.c (sjlj_emit_dispatch_table): Likewise.
1281 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1282 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1283 (thread_through_loop_header): Likewise.
1285 2014-09-05 Richard Biener <rguenther@suse.de>
1288 * fold-const.c (try_move_mult_to_index): Remove.
1289 (fold_binary_loc): Do not call it.
1290 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1291 from the base object again.
1293 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1295 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1298 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1301 * config/arm/arm.md (setmem): New pattern.
1302 * config/arm/arm-protos.h (struct tune_params): New fields.
1303 (arm_gen_setmem): New prototype.
1304 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1305 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1306 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1307 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1308 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1309 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1310 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1311 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1312 (arm_const_inline_cost): New function.
1313 (arm_block_set_max_insns): New function.
1314 (arm_block_set_non_vect_profit_p): New function.
1315 (arm_block_set_vect_profit_p): New function.
1316 (arm_block_set_unaligned_vect): New function.
1317 (arm_block_set_aligned_vect): New function.
1318 (arm_block_set_unaligned_non_vect): New function.
1319 (arm_block_set_aligned_non_vect): New function.
1320 (arm_block_set_vect, arm_gen_setmem): New functions.
1322 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1324 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1326 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1328 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1330 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1332 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1334 * valtrack.h: Adjust.
1336 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1338 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1340 (emit_jump_insn_before_noloc): Likewise.
1341 (emit_call_insn_before_noloc): Likewise.
1342 (emit_label_before): Likewise.
1343 (emit_label_after): Likewise.
1344 (emit_insn_before_setloc): Likewise.
1345 (emit_jump_insn_before_setloc): Likewise.
1346 (emit_call_insn_before_setloc): Likewise.
1347 (emit_call_insn_before): Likewise.
1350 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1352 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1353 rtx_insn *, eliminating a checked cast.
1355 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1357 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1358 const_rtx to const rtx_insn *.
1359 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1362 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1364 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1365 fixup_args_size_notes.
1366 * expr.c (fixup_args_size_notes): Strengthen first two params from
1367 rtx to rtx_insn *, eliminating a checked cast.
1368 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1371 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1373 * haifa-sched.c (get_ready_element): Strengthen return type from
1375 * sched-int.h (get_ready_element): Likewise.
1377 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1380 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1381 indexed_or_indirect_operand instead of memory_operand.
1382 (floatsi<mode>2_lfiwzx_mem): Ditto.
1384 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1386 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1387 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1388 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1390 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1392 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1394 (get_last_nonnote_insn): Likewise.
1395 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1396 * resource.c (find_basic_block): Likewise.
1398 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1401 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1403 * genattr.c (main): Within the prototype of insn_latency written
1404 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1405 * genautomata.c (output_internal_maximal_insn_latency_func):
1406 Within the implementation of insn_latency written out to
1407 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1408 eliminating a pair of checked casts.
1410 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1412 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1415 * rtl.h (eh_returnjump_p): Likewise.
1417 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1419 * Makefile.in (TAGS): Handle constructs in timevar.def.
1421 2014-09-04 Guozhi Wei <carrot@google.com>
1424 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1425 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1426 it into two patterns.
1427 (move_lo_quad_internal_be_<mode>): Likewise.
1429 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1431 * doc/options.texi: Document that Var and Init are required if CPP
1433 * optc-gen.awk: Require Var and Init if CPP is given.
1434 * common.opt (Wpedantic): Use Init.
1436 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1438 * config/rs6000/rs6000.c (special_handling_values): Add
1440 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1441 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1442 as swappable with special handling SH_EXTRACT. Remove
1443 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1445 (adjust_extract): New function.
1446 (handle_special_swappables): Add default to case statement; add
1447 case for SH_EXTRACT that calls adjust_extract.
1448 (dump_swap_insn_table): Handle SH_EXTRACT.
1450 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1452 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1453 selection of 0th memory doubleword, regardless of endianness.
1455 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1457 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1459 2014-09-04 Alan Modra <amodra@gmail.com>
1462 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1465 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1467 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1468 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1469 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1470 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1471 * doc/tm.texi: Regenerate.
1472 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1473 selection logic to default_dwarf_frame_reg_mode.
1475 2014-09-03 Marek Polacek <polacek@redhat.com>
1477 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1480 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1482 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1483 the automodified register.
1485 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1487 * output.h (get_some_local_dynamic_name): Declare.
1488 * final.c (some_local_dynamic_name): New variable.
1489 (get_some_local_dynamic_name): New function.
1490 (final_end_function): Clear some_local_dynamic_name.
1491 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1492 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1493 (print_operand): Report an error if '%&' is used inappropriately.
1494 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1495 (get_some_local_dynamic_name_1): Delete.
1496 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1497 (rs6000_get_some_local_dynamic_name): Delete.
1498 (rs6000_get_some_local_dynamic_name_1): Delete.
1499 (print_operand): Report an error if '%&' is used inappropriately.
1500 * config/s390/s390.c (machine_function): Remove some_ld_name.
1501 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1502 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1503 * config/sparc/sparc.c: Include rtl-iter.h.
1504 (machine_function): Remove some_ld_name.
1505 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1506 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1508 2014-09-03 Richard Henderson <rth@redhat.com>
1510 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1511 (aarch64_popwb_pair_reg): Remove.
1512 (aarch64_set_frame_expr): Remove.
1513 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1514 the restore ops performed by the insns generated.
1515 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1516 insn. Perform the calls_eh_return addition later; do not attempt to
1517 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1518 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1519 special markup at all. Load cfun->machine->frame.hard_fp_offset
1520 into a local variable.
1521 (aarch64_frame_pointer_required): Don't check calls_alloca.
1523 2014-09-03 Richard Biener <rguenther@suse.de>
1525 * opts.c (default_options_optimization): Adjust
1526 max-combine-insns to 2 for -Og.
1528 2014-09-03 Martin Jambor <mjambor@suse.cz>
1531 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1532 pass-trough jump functions correctly.
1534 2014-09-03 Martin Jambor <mjambor@suse.cz>
1537 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1538 created replacements in ascending order of offsets.
1539 (known_aggs_to_agg_replacement_list): Likewise.
1541 2014-09-03 Martin Liska <mliska@suse.cz>
1543 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1544 is set to set uninitialized value for vnresult.
1546 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1548 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1549 for TARGET_MUST_PASS_IN_STACK.
1551 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1553 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1554 for TARGET_ARG_PARTIAL_BYTES.
1556 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1558 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1559 instructions for varargs implementation.
1560 (nds32_expand_epilogue): Emit stack adjustment instructions for
1561 varargs implementation.
1563 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1565 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1566 optimization detection.
1568 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1570 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1572 (nds32_function_arg_advance): Deal with nameless arguments.
1573 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1574 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1575 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1577 2014-09-03 Richard Biener <rguenther@suse.de>
1579 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1580 (struct bb_bitmap_sets): Remove deferred member.
1581 (BB_DEFERRED): Remove.
1582 (defer_or_phi_translate_block): Remove.
1583 (compute_antic_aux): Remove deferring of blocks, assert
1584 proper iteration order.
1585 (compute_antic): Do not set BB_DEFERRED.
1586 (eliminate): Allocate el_avail of proper size initially.
1588 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1590 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1591 according to the value of crtl->args.pretend_args_size.
1593 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1595 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1596 varargs information.
1598 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1600 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1601 implementation for TARGET_SETUP_INCOMING_VARARGS.
1602 (nds32_strict_argument_naming): Refine comment.
1603 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1604 Define for future implementation.
1606 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
1608 * config/i386/adxintrin.h (_subborrow_u32): New.
1609 (_addcarry_u32): Ditto.
1610 (_subborrow_u64): Ditto.
1611 (_addcarry_u64): Ditto.
1612 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1614 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1615 __builtin_ia32_sbb_u64
1617 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1619 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1621 (nds32_function_arg_advance): Likewise.
1622 (nds32_init_cumulative_args): Likewise.
1623 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1624 (NDS32_FIRST_GPR_REGNUM): Define.
1625 (NDS32_LAST_GPR_REGNUM): Define.
1626 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1627 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1628 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1629 (machine_function): Use GRP-specific stuff.
1631 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1633 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1634 (nds32_expand_epilogue): Likewise.
1635 (nds32_expand_prologue_v3push): Likewise.
1636 (nds32_expand_epilogue_v3pop): Likewise.
1638 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1640 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1641 v3push/v3pop for variadic function.
1642 * config/nds32/nds32.md (prologue, epilogue): Likewise.
1644 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1646 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1647 Check rtx for varargs implementation.
1648 (nds32_output_stack_pop): Likewise.
1649 * config/nds32/nds32-protos.h: Have a rtx argument for
1650 nds32_output_stack_push and nds32_output_stack_pop.
1651 * config/nds32/nds32.md: Likewise.
1653 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1655 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1656 to check if FUNC is an interrupt service routine.
1657 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1659 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1661 * config/nds32/nds32.h (machine_function): Add some fields for variadic
1662 arguments implementation.
1664 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1666 * config/nds32/nds32-predicates.c
1667 (nds32_valid_stack_push_pop): Rename to ...
1668 (nds32_valid_stack_push_pop_p): ... this.
1669 * config/nds32/nds32-protos.h: Likewise.
1670 * config/nds32/predicates.md: Likewise.
1672 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1674 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1675 (nds32_emit_stack_v3push): ... this.
1676 (nds32_gen_stack_v3pop): Rename to ...
1677 (nds32_emit_stack_v3pop): ... this and consider CFA restore
1680 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1682 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1683 (nds32_emit_stack_push_multiple): ... this.
1684 (nds32_gen_stack_pop_multiple): Rename to ...
1685 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1688 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1691 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1692 and add a second splitter to handle the remaining cases.
1694 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1696 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1698 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1700 * cfgexpand.c (label_rtx_for_bb): Change type to
1701 hash_map<basic_block, rtx_code_label *> *.
1702 (expand_gimple_basic_block): Adjust.
1703 (pass_expand::execute): Likewise.
1705 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1707 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1708 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1709 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1710 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1711 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1712 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1713 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1716 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1718 * alloc-pool.c: Include coretypes.h.
1719 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1720 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1721 hash_set instead of htab.
1722 * ggc-page.c (in_gc): New variable.
1723 (ggc_free): Do nothing if a collection is taking place.
1724 (ggc_collect): Set in_gc appropriately.
1725 * ggc.h (gt_ggc_mx(const char *)): New function.
1726 (gt_pch_nx(const char *)): Likewise.
1727 (gt_ggc_mx(int)): Likewise.
1728 (gt_pch_nx(int)): Likewise.
1729 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1730 (hash_map::hash_entry::pch_nx): Likewise.
1731 (hash_map::hash_entry::pch_nx_helper): Likewise.
1732 (hash_map::hash_map): Adjust.
1733 (hash_map::create_ggc): New function.
1734 (gt_ggc_mx): Likewise.
1735 (gt_pch_nx): Likewise.
1736 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1737 (default_hashset_traits::pch_nx): Likewise.
1738 (hash_set::hash_entry::ggc_mx): Likewise.
1739 (hash_set::hash_entry::pch_nx): Likewise.
1740 (hash_set::hash_entry::pch_nx_helper): Likewise.
1741 (hash_set::hash_set): Adjust.
1742 (hash_set::create_ggc): New function.
1743 (hash_set::elements): Likewise.
1744 (gt_ggc_mx): Likewise.
1745 (gt_pch_nx): Likewise.
1746 * hash-table.h (hash_table::hash_table): Adjust.
1747 (hash_table::m_ggc): New member.
1748 (hash_table::~hash_table): Adjust.
1749 (hash_table::expand): Likewise.
1750 (hash_table::empty): Likewise.
1751 (gt_ggc_mx): New function.
1752 (hashtab_entry_note_pointers): Likewise.
1753 (gt_pch_nx): Likewise.
1755 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1757 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
1758 built-in definition.
1759 (XVCVUXDDP_SCALE): Likewise.
1760 (XVCVDPSXDS_SCALE): Likewise.
1761 (XVCVDPUXDS_SCALE): Likewise.
1762 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1763 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1764 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1765 VSX_BUILTIN_XVCVDPUXDS_SCALE.
1766 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1768 * config/rs6000/rs6000.c (real.h): New include.
1769 (rs6000_scale_v2df): New function.
1770 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1771 (UNSPEC_VSX_XVCVUXDDP): Likewise.
1772 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1773 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1774 (vsx_xvcvsxddp_scale): New define_expand.
1775 (vsx_xvcvsxddp): New define_insn.
1776 (vsx_xvcvuxddp_scale): New define_expand.
1777 (vsx_xvcvuxddp): New define_insn.
1778 (vsx_xvcvdpsxds_scale): New define_expand.
1779 (vsx_xvcvdpsxds): New define_insn.
1780 (vsx_xvcvdpuxds_scale): New define_expand.
1781 (vsx_xvcvdpuxds): New define_insn.
1782 * doc/extend.texi (vec_ctf): Add new prototypes.
1783 (vec_cts): Likewise.
1784 (vec_ctu): Likewise.
1785 (vec_splat): Likewise.
1786 (vec_div): Likewise.
1787 (vec_mul): Likewise.
1789 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1792 * config/arm/neon.md
1793 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1794 <v_cmp_result>): New pattern.
1795 * config/arm/iterators.md (NEON_VCVT): New int iterator.
1796 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1797 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1798 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1799 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1800 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1802 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1805 * config/arm/iterators.md (FIXUORS): New code iterator.
1806 (VCVT): New int iterator.
1807 (su_optab): New code attribute.
1809 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1811 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1813 * config/aarch64/predicates.md (aarch64_comparison_operation):
1814 New special predicate.
1815 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1816 aarch64_comparison_operation instead of matching an operator.
1817 Update operand numbers.
1818 (csinc3<mode>_insn): Likewise.
1819 (*csinv3<mode>_insn): Likewise.
1820 (*csneg3<mode>_insn): Likewise.
1821 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1822 * config/aarch64/aarch64.c (aarch64_get_condition_code):
1823 Return -1 instead of aborting on invalid condition codes.
1824 (aarch64_print_operand): Update aarch64_get_condition_code callsites
1825 to assert that the returned condition code is valid.
1826 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1828 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
1830 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1831 tree.def, and gimple.def
1833 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1834 Balaji V. Iyer <balaji.v.iyer@intel.com>
1835 Igor Zamyatin <igor.zamyatin@intel.com>
1837 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1838 (__cilkrts_cilk_for_64): Likewise.
1839 * cilk-common.c (declare_cilk_for_builtin): New function.
1840 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1841 __cilkrts_cilk_for_64 bultins.
1842 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1844 (cilk_for_32_fndecl): New define.
1845 (cilk_for_64_fndecl): Likewise.
1846 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1847 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1848 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1849 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1850 GF_OMP_FOR_COMBINED_INTO.
1851 * gimplify.c (gimplify_scan_omp_clauses): Added
1852 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1853 (gimplify_adjust_omp_clauses): Ditto.
1854 (gimplify_omp_for): Added CILK_FOR case.
1855 (gimplify_expr): Ditto.
1856 * omp-low.c: Include cilk.h.
1857 (extract_omp_for_data): Set appropriate kind for
1858 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1859 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1860 (create_omp_child_function_name): Added second argument to handle
1862 (cilk_for_check_loop_diff_type): New function.
1863 (expand_cilk_for_call): Likewise.
1864 (expand_cilk_for): Likewise.
1865 (create_omp_child_function): Set cilk_for_count; handle the cases when
1866 it is true; call create_omp_child_function_name with second argument.
1867 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1868 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1869 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1870 * tree-nested.c (convert_nonlocal_omp_clauses): Added
1871 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1872 (convert_local_omp_clauses): Ditto.
1873 * tree-pretty-print.c (dump_omp_clause): Added
1874 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1875 (dump_generic_node): Added CILK_FOR case.
1876 * tree.c (omp_clause_num_ops): New element
1877 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1878 (omp_clause_code_name): New element _Cilk_for_count_.
1879 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1880 * tree.def: Add tree code for CILK_FOR.
1882 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1884 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1885 (ppc403-compare): Add "exts with dot" case.
1886 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1887 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1888 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1889 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1890 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1891 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1892 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1893 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1894 cell-cmp-microcoded): Similarly.
1895 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1896 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1897 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1898 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1899 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1900 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1901 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1902 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
1903 (power6-compare): Add "exts with dot" case.
1904 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
1905 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
1906 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
1908 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
1909 if avoiding Cell microcode.
1910 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
1911 (is_cracked_insn): Ditto.
1912 (insn_must_be_first_in_group): Ditto.
1913 * config/rs6000/rs6000.md (dot): Adjust comment.
1914 (cell_micro): Handle exts+dot.
1915 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
1916 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
1917 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
1918 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
1919 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
1920 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
1921 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
1923 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1925 * config/rs6000/rs6000.md (QHSI): Delete.
1926 (EXTQI, EXTHI, EXTSI): New mode iterators.
1927 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1928 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1929 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1930 9 anonymous instructions, and 8 splitters): Delete.
1931 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1932 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1933 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1934 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1935 *zero_extendsi<mode>2_dot2): New.
1937 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1939 * config/rs6000/rs6000.md (any_extend): New code iterator.
1940 (u, su): New code attributes.
1941 (dmode, DMODE): New mode attributes.
1942 (<su>mul<mode>3_highpart): New.
1943 (*<su>mul<mode>3_highpart): New.
1944 (<su>mulsi3_highpart_le): New.
1945 (<su>muldi3_highpart_le): New.
1946 (<su>mulsi3_highpart_64): New.
1947 (<u>mul<mode><dmode>3): New.
1948 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1950 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1953 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1955 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1956 *mulsi3_internal2, and two splitters): Delete.
1957 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1959 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1961 2014-09-02 Richard Biener <rguenther@suse.de>
1963 PR tree-optimization/62695
1964 * tree-ssa-structalias.c (find_func_clobbers): Add missing
1967 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
1970 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1972 2014-09-01 Andi Kleen <ak@linux.intel.com>
1974 * file-find.c (add_prefix_begin): Add.
1975 (do_add_prefix): Rename from add_prefix with first argument.
1976 (add_prefix): Add new wrapper.
1977 * file-find.h (add_prefix_begin): Add.
1978 * gcc-ar.c (main): Support -B option.
1980 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
1982 * genemit.c: Include dumpfile.h.
1983 (gen_split): Print name of splitter function to dump file.
1985 2014-09-01 Richard Biener <rguenther@suse.de>
1987 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
1988 Use stack auto_vecs for constraint expressions.
1989 (find_func_aliases_for_call): Likewise.
1990 (find_func_aliases): Likewise.
1991 (find_func_clobbers): Likewise.
1993 2014-09-01 Richard Biener <rguenther@suse.de>
1995 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
1996 operands vector in most cases. Remove redundant code.
1998 2014-09-01 Olivier Hainque <hainque@adacore.com>
2000 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2001 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2002 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2004 2014-09-01 Richard Biener <rguenther@suse.de>
2006 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2007 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2008 vn_reference_compute_hash, vn_reference_insert): Remove.
2009 (vn_reference_lookup_call): New function.
2010 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2011 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2012 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2013 (create_reference_ops_from_call): Remove.
2014 (vn_reference_lookup_3): Properly update shared_lookup_references.
2015 (vn_reference_lookup_pieces): Assert that we updated
2016 shared_lookup_references properly.
2017 (vn_reference_lookup): Likewise.
2018 (vn_reference_lookup_call): New function.
2019 (visit_reference_op_call): Use it. Avoid re-building the
2021 (visit_reference_op_load): Remove redundant lookup.
2022 (visit_reference_op_store): Perform special tail-merging work
2023 only when possibly doing tail-merging.
2024 (visit_use): Likewise.
2025 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2027 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2030 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2031 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2032 (find_inc): Revert 2014-08-13 change.
2034 2014-09-01 Marek Polacek <polacek@redhat.com>
2037 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2038 Change the type of V to unsigned HOST_WIDE_INT.
2040 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2042 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2043 the size of byte markers.
2044 (do_shift_rotate): Fix confusion between host, target and marker byte
2046 (verify_symbolic_number_p): Likewise.
2047 (find_bswap_or_nop_1): Likewise.
2048 (find_bswap_or_nop): Likewise.
2050 2014-09-01 Olivier Hainque <hainque@adacore.com>
2052 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2053 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2055 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2057 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2058 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2059 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2061 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2065 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2066 (build_check_stmt): Likewise.
2067 (instrument_strlen_call): Likewise.
2068 (asan_expand_check_ifn): Likewise and fix types.
2069 (maybe_cast_to_ptrmode): New function.
2071 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2073 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2075 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2077 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2079 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2081 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2082 prefix to function labels when generating fast indirect calls.
2084 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2088 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2089 param back from rtx_insn * to rtx. Rename param from "label" to
2090 "label_or_return", reintroducing "label" as an rtx_insn * after
2091 we've ensured it's not a RETURN.
2092 (first_active_target_insn): Likewise for return type and param;
2093 add a checked cast to rtx_insn * once we've ensured "insn" is not
2095 (steal_delay_list_from_target): Convert param "pnew_thread" back
2096 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2098 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2099 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2100 cast once we've established we're not dealing with a RETURN,
2101 renaming subsequent uses of "thread" to "thread_insn".
2102 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2104 (follow_jumps): Convert return type and param "label" from
2105 rtx_insn * back to rtx. Move initialization of "value" to after
2106 the handling for ANY_RETURN_P, adding a checked cast there to
2107 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2108 rename to "this_label_or_return", reintroducing "this_label" as
2109 an rtx_insn * once we've handled the case where it could be an
2111 (fill_slots_from_thread): Rename param "thread" to
2112 "thread_or_return", converting from an rtx_insn * back to an rtx.
2113 Reintroduce name "thread" as an rtx_insn * local with a checked
2114 cast once we've handled the case of it being an ANY_RETURN_P.
2115 Convert local "new_thread" from an rtx_insn * back to an rtx.
2116 Add a checked cast when assigning to "trial" from "new_thread".
2117 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2118 checked cast to rtx_insn * from "new_thread" when invoking
2120 (fill_eager_delay_slots): Convert locals "target_label",
2121 "insn_at_target" from rtx_insn * back to rtx.
2122 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2123 (relax_delay_slots): Convert locals "trial", "target_label" from
2124 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2125 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2126 invoking update_block.
2127 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2128 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2130 * resource.h (mark_target_live_regs): Undo erroneous conversion
2131 of second param of r214693, converting it back from rtx_insn * to
2132 rtx, since it could be a RETURN.
2134 * resource.c (find_dead_or_set_registers): Similarly, convert
2135 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2136 could be writing back a RETURN. Rename local rtx_insn * "next" to
2137 "next_insn", and introduce "lab_or_return" as a local rtx,
2138 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2139 (mark_target_live_regs): Undo erroneous conversion
2140 of second param of r214693, converting it back from rtx_insn * to
2141 rtx, since it could be a RETURN. Rename it from "target" to
2142 "target_maybe_return", reintroducing the name "target" as a local
2143 rtx_insn * with a checked cast, after we've handled the case of
2146 2014-08-29 DJ Delorie <dj@redhat.com>
2148 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2149 pointer size up to a power of two.
2150 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2151 (POINTER_SIZE_UNITS): New, rounded up value.
2152 * dwarf2asm.c (size_of_encoded_value): Use it.
2153 (dw2_output_indirect_constant_1): Likewise.
2154 * expmed.c (init_expmed_one_conv): We now know the sizes of
2156 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2157 * optabs.c (expand_float): Use precision, not size.
2158 (expand_fix): Likewise.
2159 * simplify-rtx (simplify_unary_operation_1): Likewise.
2160 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2161 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2162 (default_assemble_integer) Likewise.
2163 (dump_tm_clone_pairs): Likewise.
2164 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2165 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2166 (prepare_call_arguments): Likewise.
2167 * stor-layout.c (finalize_type_size): Preserve precision.
2168 (layout_type): Use precision, not size.
2170 * expr.c (convert_move): If the target has an explicit converter,
2173 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2175 * gdbinit.in: Skip various inline functions in rtl.h when
2178 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2181 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2183 2014-08-29 Richard Biener <rguenther@suse.de>
2185 PR tree-optimization/62291
2186 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2187 exactly the vector size needed and use quick_push.
2188 (phi_translate_1): Adjust comment.
2189 (valid_in_sets): Remove block argument and remove pointless
2191 (dependent_clean): Adjust for removal of block argument.
2193 (compute_antic_aux): Likewise.
2194 (compute_partial_antic_aux): Likewise.
2196 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2197 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2198 Anna Tikhonova <anna.tikhonova@intel.com>
2199 Ilya Tocar <ilya.tocar@intel.com>
2200 Andrey Turetskiy <andrey.turetskiy@intel.com>
2201 Ilya Verbin <ilya.verbin@intel.com>
2202 Kirill Yukhin <kirill.yukhin@intel.com>
2203 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2205 * config/i386/sse.md
2206 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2207 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2208 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2209 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2211 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2212 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2213 Anna Tikhonova <anna.tikhonova@intel.com>
2214 Ilya Tocar <ilya.tocar@intel.com>
2215 Andrey Turetskiy <andrey.turetskiy@intel.com>
2216 Ilya Verbin <ilya.verbin@intel.com>
2217 Kirill Yukhin <kirill.yukhin@intel.com>
2218 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2220 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2221 * config/i386/sse.md
2222 (define_mode_iterator VI4_128_8_256): New.
2223 (define_mode_iterator VI2_128_4_256): Ditto.
2224 (define_mode_iterator PMOV_DST_MODE): Rename into
2225 (define_mode_iterator PMOV_DST_MODE_1): this.
2226 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2227 Use PMOV_DST_MODE_1 mode iterator.
2228 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2230 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2232 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2233 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2234 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2235 (define_mode_iterator PMOV_DST_MODE_2): New.
2236 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2237 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2238 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2240 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2241 (define_mode_attr pmov_dst_3): Ditto.
2242 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2243 (define_mode_attr pmov_suff_3): Ditto.
2244 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2245 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2246 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2247 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2248 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2249 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2250 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2251 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2252 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2253 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2254 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2255 (define_mode_attr pmov_dst_4): Ditto.
2256 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2257 (define_mode_attr pmov_suff_4): Ditto.
2258 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2259 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2260 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2261 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2262 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2263 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2264 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2265 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2266 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2267 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2268 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2270 2014-08-29 Richard Biener <rguenther@suse.de>
2272 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2273 NON_LVALUE_EXPR in gimple.
2275 2014-08-29 Richard Biener <rguenther@suse.de>
2278 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2279 from previous refactoring.
2280 (gimple_fold_builtin_strncpy): Likewise.
2282 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2285 * function.c (assign_parm_setup_reg): Remove erroneous checked
2286 cast to rtx_insn * on result of gen_extend_insn in favor of
2287 introducing a new local rtx "pat".
2289 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2291 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2293 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2295 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2297 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2298 (next_insn): Likewise.
2299 * emit-rtl.c (next_insn): Likewise.
2300 (previous_insn): Likewise.
2301 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2302 "insn" and "next" from rtx to rtx_insn *.
2303 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2304 "insn", "insn1", "vliw_start", "prologue_end_note",
2305 "last_insn_in_packet".
2307 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2309 * shrink-wrap.h (active_insn_between): Strengthen both params from
2311 * function.c (active_insn_between): Likewise.
2313 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2315 * genattr.c (main): When writing out insn-attr.h, strengthen param
2316 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2317 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2318 writing out the definition of dfa_clear_single_insn_cache to the
2319 generated insn-automata.c
2321 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2323 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2325 (incr_ticks_for_insn): Likewise.
2326 (init_resource_info): Likewise.
2328 * resource.c (init_resource_info): Likewise.
2329 (clear_hashed_info_for_insn): Likewise.
2330 (incr_ticks_for_insn): Likewise.
2332 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2334 (steal_delay_list_from_target): Use methods of "seq".
2335 (try_merge_delay_insns): Use methods of "merged_insns".
2336 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2337 (reorg_redirect_jump): Likewise for param "jump".
2339 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2341 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2343 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2344 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2346 (s390_mainpool_finish): In three places, split out a local rtx
2347 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2348 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2349 and split another local rtx "insn" out into rtx "pat" and
2351 * config/sh/sh.c (output_branchy_insn): Rather than working
2352 directly on operands[9], introduce local rtx_code_label *
2353 variables named "lab" in two places, working on them, and then
2354 assigning them to operands[9], so that the intervening operations
2355 are known by the type system to be on insns.
2357 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2359 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2362 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2363 in invocation of INSN_HAS_LOCATION.
2365 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2367 * config/rs6000/altivec.h (vec_xl): New #define.
2368 (vec_xst): Likewise.
2369 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2370 (XXSPLTD_V2DI): Likewise.
2371 (DIV_V2DI): Likewise.
2372 (UDIV_V2DI): Likewise.
2373 (MUL_V2DI): Likewise.
2374 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2375 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2376 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2377 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2378 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2379 (UNSPEC_VSX_DIVSD): Likewise.
2380 (UNSPEC_VSX_DIVUD): Likewise.
2381 (UNSPEC_VSX_MULSD): Likewise.
2382 (vsx_mul_v2di): New insn-and-split.
2383 (vsx_div_v2di): Likewise.
2384 (vsx_udiv_v2di): Likewise.
2385 (vsx_xxspltd_<mode>): New insn.
2387 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2389 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2391 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2392 (NEXT_INSN): Likewise.
2393 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2394 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2396 (no_labels_between_p): Likewise for both params.
2398 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2399 cast when using NEXT_INSN on operands[2].
2400 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2401 "insn" from rtx to rtx_insn *, adding a checked cast.
2402 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2404 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2406 (arc_text_label): Likewise for param "insn".
2407 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2409 (arc_ccfsm_record_condition): Likewise for param "jump".
2410 (arc_text_label): Likewise for local "label".
2411 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2412 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2413 a method for typesafety. Add a checked cast.
2414 * config/arc/constraints.md (Clb): Add a checked cast when getting
2415 the CODE_LABEL from a LABEL_REF.
2416 * config/arm/arm.c (require_pic_register): Strengthen locals
2417 "seq", "insn" from rtx to rtx_insn *.
2418 (create_fix_barrier): Likewise for locals "selected", "next".
2419 (thumb1_reorg): Likewise for locals "prev", "insn".
2420 (arm_expand_prologue): Likewise for local "last".
2421 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2423 (thumb2_output_casesi): Likewise for operands[2].
2424 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2425 strengthen local "insn" from rtx to rtx_insn *.
2426 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2427 type and param "insn".
2428 (find_prev_insn_start): Likewise.
2429 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2431 (gen_one_bundle): Likewise for loal "t".
2432 (find_load): Likewise for param "insn".
2433 (workaround_speculation): Likewise for locals "insn", "next",
2434 "target", "next_tgt".
2435 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2436 and for locals "insn", "within", "last".
2437 (count_unit_reqs): Likewise for params "head", "tail" and local
2439 (try_rename_operands): Likewise for params "head", "tail".
2440 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2441 (struct c6x_sched_context): Likewise for fields
2442 "last_scheduled_insn", "last_scheduled_iter0".
2443 (init_sched_state): Replace NULL_RTX with NULL.
2444 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2446 (undo_split_delayed_nonbranch): Likewise for param and for local
2448 (conditionalize_after_sched): Likewise for local "insn".
2449 (bb_earliest_end_cycle): Likewise.
2450 (filter_insns_above): Likewise for locals "insn", "next".
2451 (hwloop_optimize): Remove redundant checked cast.
2452 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2453 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2455 (cris_simple_epilogue): Likewise.
2456 (cris_expand_prologue): Likewise.
2457 (cris_expand_epilogue): Likewise.
2458 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2459 local "insn" from rtx to rtx_insn *.
2460 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2461 (struct frv_packet_group): Likewise for the elements within array
2462 fields "insns", "sorted", and for field "nop".
2463 (frv_packet): Likewise for the elements within array field
2465 (frv_add_insn_to_packet): Likewise for param "insn".
2466 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2468 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2469 (frv_sort_insn_group_1): Likewise for local "insn".
2470 (frv_optimize_membar_local): Likewise.
2471 (frv_align_label): Likewise for locals "x", "last", "barrier",
2473 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2475 (ia64_sched_init): Likewise for local "insn".
2476 (scheduled_good_insn): Likewise for param "last".
2477 (struct _ia64_sched_context): Likewise for field
2478 "last_scheduled_insn".
2479 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2480 (struct bundle_state): Likewise for field "insn".
2481 (issue_nops_and_insn): Likewise for param "insn".
2482 (get_next_important_insn): Likewise for return type and both
2484 (ia64_add_bundle_selector_before): Likewise for param "insn".
2485 (bundling): Likewise for params "prev_head_insn", "tail" and
2486 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2487 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2488 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2489 Strengthen final param from rtx to rtx_insn *.
2490 (iq2000_move_1word): Likewise for second param.
2491 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2492 param "cur_insn" and local "next_insn".
2493 (iq2000_move_1word): Likewise for param "insn".
2494 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2495 casts when using NEXT_INSN on operands[1].
2496 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2497 "insn" from rtx to rtx_insn *.
2498 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2499 "x", introducing local rtx_insn * "insn" for when working with the
2500 CODE_LABEL of the LABEL_REF.
2501 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2503 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2505 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2507 (conditionalize_block): Likewise for return type and param.
2508 (mcore_is_dead): Likewise for param "first" and local "insn".
2509 (emit_new_cond_insn): Likewise for return type.
2510 (conditionalize_block): Likewise for return type, param, and
2511 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2513 (conditionalize_optimization): Likewise for local "insn".
2514 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2516 * config/microblaze/microblaze.md: Add checked casts when using
2518 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2519 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2520 and rtx_insn * "insn".
2521 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2522 checked cast when using NEXT_INSN on operands[2].
2523 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2524 local "insn" from rtx to rtx_insn *.
2525 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2527 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2528 Add a checked cast when using NEXT_INSN on operands[1].
2529 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2531 (pa_output_cbranch): Likewise for final param.
2532 (pa_output_lbranch): Likewise for second param.
2533 (pa_output_bb): Likewise for third param.
2534 (pa_output_bvb): Likewise.
2535 (pa_output_dbra): Likewise for second param.
2536 (pa_output_movb): Likewise.
2537 (pa_output_parallel_movb): Likewise.
2538 (pa_output_parallel_addb): Likewise.
2539 (pa_output_millicode_call): Likewise for first param.
2540 (pa_output_mul_insn): Likewise for second param.
2541 (pa_output_div_insn): Likewise for third param.
2542 (pa_output_mod_insn): Likewise for second param.
2543 (pa_jump_in_call_delay): Likewise for param.
2544 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2545 (pa_output_div_insn): Likewise.
2546 (pa_output_mod_insn): Likewise.
2547 (pa_output_cbranch): Likewise.
2548 (pa_output_lbranch): Likewise.
2549 (pa_output_bb): Likewise.
2550 (pa_output_bvb): Likewise.
2551 (pa_output_dbra): Likewise.
2552 (pa_output_movb): Likewise.
2553 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2554 to simplify and for typesafety.
2555 (pa_output_call): Use method of rtx_sequence *.
2556 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2557 (pa_jump_in_call_delay): Likewise.
2558 (pa_output_parallel_movb): Likewise.
2559 (pa_output_parallel_addb): Likewise.
2560 (pa_following_call): Likewise.
2561 (pa_combine_instructions): Likewise for locals "anchor",
2563 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2564 locals "start", "end".
2565 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2566 param "insn" and local "local_insn".
2567 (picochip_final_prescan_insn): Likewise for local "local_insn".
2568 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2570 (uses_TOC): Likewise.
2571 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2572 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2573 splitting out to more tightly-scoped locals, 3 as rtx and one as
2575 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2577 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2579 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2581 (fixup_addr_diff_vecs): Likewise.
2582 (reg_unused_after): Likewise for param 2.
2583 (sh_can_redirect_branch): Likewise for both params.
2584 (check_use_sfunc_addr): Likewise for param 1.
2585 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2586 (find_barrier): Likewise for local "last_got".
2587 (gen_block_redirect): Likewise for return type, param "jump" and
2588 locals "prev", "scan", "next", "insn".
2589 (struct far_branch): Likewise for fields "near_label",
2590 "insert_place", "far_label".
2591 (gen_far_branch): Likewise for local "jump".
2592 (fixup_addr_diff_vecs): Likewise for param "first" and locals
2594 (barrier_align): Likewise for param and for locals "prev", "x".
2595 Introduce local rtx_sequence * "prev_seq" and use insn method for
2596 typesafety and clarity.
2597 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2598 (get_dest_uid): Likewise for local "dest".
2599 (split_branches): Likewise for locals "next", "beyond", "label",
2600 "block", "far_label". Add checked casts when assigning to
2601 bp->far_label and "far_label".
2602 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2603 (sequence_insn_p): Likewise.
2604 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
2605 more loop-scoped rtx "insn" when walking LABEL_REFS.
2606 (sh_can_redirect_branch): Strengthen both params from rtx to
2608 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
2609 new local rtx_sequence * "seq" via a dyn_cast, and use a method
2610 for clarity and typesafety.
2611 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2612 "insn" from rtx to rtx_insn *.
2613 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2614 when using NEXT_INSN on the CODE_LABEL in operands[2].
2615 (define_insn "casesi_worker_2"): Likewise.
2616 (define_insn "casesi_shift_media"): Likewise.
2617 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2619 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2620 Strengthen field "insn" from rtx to rtx_insn *.
2621 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2622 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2623 param "start_insn" and local "start_insn".
2624 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2626 (find_set_of_reg_bb): Likewise for param "insn".
2627 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2628 (trace_reg_uses): Likewise for param "start_insn".
2629 (sh_treg_combine::cbranch_trace): Likewise for field
2631 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2633 (sh_treg_combine::record_set_of_reg): Likewise for param
2634 "start_insn" and local "i".
2635 (sh_treg_combine::can_remove_cstore): Likewise for local
2637 (sh_treg_combine::try_optimize_cbranch): Likewise for param
2639 (sh_treg_combine::execute): Likewise for local "i".
2640 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2642 (sparc_check_64): Likewise for second param.
2643 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2644 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
2645 dyn_cast, using its insn method for typesafety and clarity.
2646 (empty_delay_slot): Strengthen param "insn" from rtx to
2648 (set_extends): Likewise.
2649 (sparc_check_64): Likewise.
2650 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2651 for locals "seq", "last_insn".
2652 (combine_bnp): Likewise for param "insn".
2653 (xstormy16_reorg): Likewise for local "insn".
2654 * config/v850/v850.c (substitute_ep_register): Likewise for params
2655 "first_insn", "last_insn" and local "insn".
2656 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2657 elements of "regs" array, and local "insn".
2658 * except.c (emit_note_eh_region_end): Likewise for param "insn".
2659 * final.c (final_sequence): Strengthen this global from rtx to
2661 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2663 (final_scan_insn): Update assignment to "final_sequence" to be
2664 from "seq", the cast version of "body", for type-safety.
2665 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2666 "insns" from rtx to rtx_insn *.
2667 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2668 * genattr.c (main): When writing out generated insn-attr.h,
2669 strengthen params 1 and 3 of eligible_for_delay,
2670 eligible_for_annul_true, eligible_for_annul_false from rtx to
2672 * genattrtab.c (write_eligible_delay): Likewise when writing out
2673 generated insn-attrtab.c; also local "insn" the generated
2675 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2677 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2678 "start_label" from rtx to rtx_insn *.
2679 * ira.c (decrease_live_ranges_number): Likewise for local "p".
2680 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2681 "insns" and local "insn".
2682 (validate_equiv_mem): Likewise for param "start" and local "insn".
2683 (memref_used_between_p): Likewise for params "start", "end" and
2685 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2687 * loop-doloop.c (doloop_optimize): Within region guarded by
2688 INSN_P (doloop_pat), introduce a new local rtx_insn *
2689 "doloop_insn" via a checked cast, and use it for typesafety,
2690 eventually writing the value back into doloop_pat.
2691 * output.h (final_sequence): Strengthen this global from rtx to
2693 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2694 reintroducing "insn" as an rtx_insn * via a checked cast.
2695 Strengthen param "attempt" and local "new_insn"from rtx to
2697 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2699 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2700 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2701 "p" in favor of more tightly-scoped replacements, sometimes rtx
2702 and sometimes rtx_insn *, as appropriate.
2703 (delete_output_reload): Eliminate top-level rtx "i1", splitting
2704 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2705 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
2706 local "trial" from rtx to rtx_insn *.
2707 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2708 rtx to rtx_insn *. Strenghten local "pat" from rtx to
2709 rtx_sequence * and use methods for clarity and typesafety.
2710 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2711 rtx to rtx_insn *. Strenghten local "li" from rtx to
2712 rtx_insn_list * and use its methods for clarity and typesafety.
2713 (steal_delay_list_from_target): Strengthen param "insn" from rtx
2715 (steal_delay_list_from_fallthrough): Likewise.
2716 (try_merge_delay_insns): Likewise for param "thread" and locals
2717 "trial", "next_trial", "delay_insn".
2718 (redundant_insn): Likewise for param "target" and local "trial".
2719 (own_thread_p): Likewise for param "thread" and locals
2720 "active_insn", "insn".
2721 (get_label_before): Likewise for param "insn".
2722 (fill_simple_delay_slots): Likewise for local "new_label"; use
2723 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2724 (label_before_next_insn): Strengthen return type and local "insn"
2725 from rtx to rtx_insn *.
2726 (relax_delay_slots): Likewise for locals "other", "tmp".
2727 (make_return_insns): Likewise for param "first" and locals "insn",
2728 "jump_insn", "prev". Move declaration of "pat" to its assignment
2729 and strengthen from rtx to rtx_sequence *. Use its methods for
2730 clarity and typesafety.
2731 * rtlanal.c (no_labels_between_p): Strengthen params from
2732 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
2734 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2735 from const_rtx to const rtx_insn *.
2736 (reg_set_between_p): Rename param "from_insn" to
2737 "uncast_from_insn", and reintroduce "from_insn" as a
2738 const rtx_insn * via a checked cast.
2739 (modified_between_p): Likewise for param "start" as "uncast_start".
2740 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2741 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2742 "tmp", head" from rtx to rtx_insn *.
2743 (recompute_rev_top_order): Likewise for local "insn".
2744 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2745 * store-motion.c (build_store_vectors): Likewise for local "insn".
2746 Strengthen local "st" from rtx to rtx_insn_list * and use methods
2747 for clarity and typesafety.
2748 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2750 (computation_cost): Likewise for local "seq".
2751 (get_address_cost): Likewise.
2753 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2755 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2757 (label_is_jump_target_p): Likewise for second param.
2759 * rtlanal.c (tablejump_p): Likewise for param "insn".
2760 (label_is_jump_target_p): Likewise for param "jump_insn".
2762 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2764 * rtl.h (find_first_parameter_load): Strengthen return type and
2765 both params from rtx to rtx_insn *.
2766 * rtlanal.c (find_first_parameter_load): Strengthen return type,
2767 both params and locals "before", "first_set" from rtx to
2768 rtx_insn *. Remove now-redundant cast.
2769 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2771 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2773 * rtl.h (find_last_value): Delete.
2774 * rtlanal.c (find_last_value): Delete.
2776 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2778 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2779 from rtx to rtx_insn *.
2780 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2781 rtx "note" with new local rtx_insn * "new_head" when calculating
2782 head insn of new basic block.
2783 * combine.c (combine_split_insns): Strengthen return type and local
2784 "ret" from rtx to rtx_insn *.
2785 (likely_spilled_retval_p): Likewise for locals "use" and "p".
2786 (try_combine): Eliminate local "m_split", splitting into new
2787 locals "m_split_insn" and "m_split_pat".
2788 (find_split_point): Strengthen local "seq" from rtx into
2790 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2791 locals "label", "branch".
2792 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2794 (define_expand "umulsi3_highpart"): Likewise for local "insn".
2795 * dse.c (note_add_store_info): Likewise for fields "first",
2797 (note_add_store): Likewise for local "insn".
2798 (emit_inc_dec_insn_before): Likewise for locals "insn",
2800 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2801 (replace_read): Likewise for locals "insns", "this_insn".
2802 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2803 (notice_eh_throw): Likewise for param "insn".
2804 (before_next_cfi_note): Likewise for return type, param, and local
2806 (connect_traces): Likewise for local "note".
2807 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2808 (verify_rtl_sharing): Likewise.
2809 (unshare_all_rtl_in_chain): Likewise for param "insn".
2810 (get_first_nonnote_insn): Likewise for local "insn".
2811 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
2812 "seq" and use its methods to clarify things.
2813 (next_insn): Strengthen return type from rtx to rtx_insn *.
2814 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2815 local rtx_insn * using a checked cast, dropping a checked cast
2816 made redundant by this change. Use a cast to and method of
2817 rtx_sequence to clarify the code.
2818 (previous_insn): Rename param "insn" to "uncast_insn" and
2819 reintroduce "insn" as a local rtx_insn * using a checked cast,
2820 dropping a checked cast made redundant by this change. Use a cast
2821 to and method of rtx_sequence to clarify the code.
2822 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2823 reintroduce "insn" as a local rtx_insn * using a checked cast,
2824 dropping a checked cast made redundant by this change.
2825 (next_nonnote_insn_bb): Likewise.
2826 (prev_nonnote_insn): Likewise.
2827 (prev_nonnote_insn_bb): Likewise.
2828 (next_nondebug_insn): Likewise.
2829 (prev_nondebug_insn): Likewise.
2830 (next_nonnote_nondebug_insn): Likewise.
2831 (prev_nonnote_nondebug_insn): Likewise.
2832 (next_real_insn): Likewise.
2833 (prev_real_insn): Likewise.
2834 (next_active_insn): Likewise.
2835 (prev_active_insn): Likewise.
2836 (next_cc0_user): Likewise. Use rtx_sequence and a method for
2838 (prev_cc0_setter): Likewise.
2839 (try_split): Rename param "trial" to "uncast_trial" and
2840 reintroduce "insn" as a local rtx_insn * using a checked cast,
2841 dropping checked casts made redundant by this change.
2842 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2844 (remove_insn): Rename param "insn" to "uncast_insn" and
2845 reintroduce "insn" as a local rtx_insn * using a checked cast.
2846 (emit_pattern_after_setloc): Likewise for param "after", as
2848 (emit_pattern_after): Likewise. Strengthen local "prev" from
2850 (emit_pattern_before_setloc): Rename param "before" to
2851 "uncast_before" and reintroduce "before" as a local rtx_insn *
2852 using a checked cast. Strengthen locals "first", "last" from
2854 (emit_pattern_before): Likewise rename/cast param "before" to
2855 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2856 * except.c (copy_reg_eh_region_note_forward): Strengthen param
2857 "first" and local "insn" from rtx to rtx_insn *.
2858 (copy_reg_eh_region_note_backward): Likewise for param "last"
2860 * expr.c (fixup_args_size_notes): Rename param "last" to
2861 "uncast_last" and reintroduce "last" as a local rtx_insn *
2862 using a checked cast. Strengthen local "insn" from rtx to
2864 * function.c (set_insn_locations): Strengthen param "insn" from
2866 (record_insns): Likewise for param "insns" and local "tmp".
2867 (active_insn_between): Rename param "tail" to
2868 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2869 using a checked cast.
2870 (thread_prologue_and_epilogue_insns): Split out top-level local
2871 rtx "seq" into three different rtx_insn * locals. Strengthen
2872 local "prologue_seq" from rtx to rtx_insn *.
2873 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2874 from rtx to rtx_insn *.
2875 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2876 (priority): Likewise for locals "prev_first", "twin".
2877 (setup_insn_max_reg_pressure): Likewise for param "after".
2878 (sched_setup_bb_reg_pressure_info): Likewise.
2879 (no_real_insns_p): Strengthen params from const_rtx to
2881 (schedule_block): Strengthen local "next_tail" from rtx to
2883 * ifcvt.c (find_active_insn_before): Strengthen return type and
2884 param "insn" from rtx to rtx_insn *.
2885 (find_active_insn_after): Likewise.
2886 (cond_exec_process_insns): Likewise for param "start" and local "insn".
2887 (cond_exec_process_if_block): Likewise for locals "then_start",
2888 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2889 (noce_process_if_block): Likewise for local "jump".
2890 (merge_if_block): Likewise for two locals named "end".
2891 (cond_exec_find_if_block): Likewise for local "last_insn".
2892 * jump.c (delete_related_insns): Rename param "insn" to
2893 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2894 checked cast. Strengthen local "p" from rtx to rtx_insn *.
2895 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2897 (split_reg): Likewise.
2898 * lra.c (lra_process_new_insns): Likewise.
2899 * modulo-sched.c (permute_partial_schedule): Strengthen param
2900 "last" from rtx to rtx_insn *.
2901 * optabs.c (add_equal_note): Likewise for param "insns" and local
2903 (expand_binop_directly): Add checked casts to rtx_insn * within
2904 NEXT_INSN (pat) uses.
2905 (expand_unop_direct): Likewise.
2906 (maybe_emit_unop_insn): Likewise.
2907 * recog.c (peep2_attempt): Strengthen locals "last",
2908 "before_try", "x" from rtx to rtx_insn *.
2909 * reorg.c (optimize_skip): Strengthen return type and local
2910 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
2911 and locals "trial", "next_trial" from rtx to rtx_insn *.
2912 * resource.c (next_insn_no_annul): Strengthen return type and
2913 param "insn" from rtx to rtx_insn *. Use a cast to and method of
2914 rtx_sequence to clarify the code.
2915 (mark_referenced_resources): Add a checked cast to rtx_insn *
2916 within PREV_INSN (x).
2917 (find_dead_or_set_registers): Strengthen return type, param
2918 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
2919 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
2921 (mark_target_live_regs): Strengthen params "insns" and "target",
2922 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
2923 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2925 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2926 from rtx to rtx_insn *.
2927 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2928 from rtx to rtx_insn *.
2929 (copy_reg_eh_region_note_backward): Likewise.
2930 (unshare_all_rtl_in_chain): Likewise for sole param.
2931 (dump_rtl_slim): Strengthen second and third params from const_rtx
2932 to const rtx_insn *.
2933 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2934 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2935 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2936 "next_tail" from rtx to rtx_insn *.
2937 (begin_move_insn): Likewise for local "next".
2938 * sched-int.h (sched_free_deps): Likewise for first and second
2940 (no_real_insns_p): Strengthen both params from const_rtx to
2942 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2944 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2946 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2947 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2948 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2950 (debug_rtl_slim): Strengthen params "first" and "last" from
2951 const_rtx to const rtx_insn *.
2952 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2953 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2954 (convert_to_simple_return): Likewise for param "returnjump".
2955 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2957 (convert_to_simple_return): Likewise for param "returnjump".
2958 * valtrack.c (propagate_for_debug): Likewise for params
2960 * valtrack.h (propagate_for_debug): Likewise for second param.
2962 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2964 * output.h (insn_current_reference_address): Strengthen param
2965 from rtx to rtx_insn *.
2966 * final.c (insn_current_reference_address): Likewise.
2968 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2970 * basic-block.h (inside_basic_block_p): Strengthen param from
2971 const_rtx to const rtx_insn *.
2972 * cfgbuild.c (inside_basic_block_p): Likewise.
2974 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2976 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
2978 (get_trace_info): Likewise for param "insn".
2979 (save_point_p): Likewise.
2980 (maybe_record_trace_start): Likewise for both params.
2981 (maybe_record_trace_start_abnormal): Likewise.
2982 (create_trace_edges): Likewise for sole param and for three of the
2984 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
2985 to rtx_insn *, and update a call to pat->element to pat->insn.
2987 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2989 * function.h (struct expr_status): Convert field "x_forced_labels"
2990 from rtx_expr_list * to rtx_insn_list *.
2992 * cfgbuild.c (make_edges): Convert local "x" from an
2993 rtx_expr_list * to an rtx_insn_list *, replacing use of
2994 "element" method with "insn" method.
2995 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2996 * except.c (sjlj_emit_dispatch_table): Replace use of
2997 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
2999 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3000 rtx_expr_list * to an rtx_insn_list *, replacing use of
3001 "element" method with "insn" method.
3002 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3003 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3004 rtx_insn *, adding a checked cast. Replace use of
3005 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3007 (expand_label): Likewise for local "label_r".
3009 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3011 * function.h (struct rtl_data): Convert field
3012 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3014 * rtl.h (remove_node_from_insn_list): New prototype.
3016 * builtins.c (expand_builtin): When prepending to
3017 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3019 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3020 to rtx_insn_list *, and use its "insn" method rather than
3022 * cfgrtl.c (delete_insn): Use new function
3023 remove_node_from_insn_list rather than
3024 remove_node_from_expr_list.
3025 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3026 to rtx_insn_list *, and use its "insn" method rather than
3028 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3029 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3030 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3031 from remove_node_from_expr_list.
3032 * stmt.c (expand_label): When prepending to
3033 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3036 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3038 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3039 and "x_naked_return_label" from rtx to rtx_code_label *.
3041 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3043 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3044 (SET_NEXT_INSN): Likewise.
3045 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3047 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3048 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3049 to split out the SEQUENCE from local "bundle", strengthening the
3050 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3051 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3052 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3053 and the type of the elements of the "slot" array from rtx to
3055 (reorg_split_calls): Likewise for locals "insn" and "next", and
3056 the type of the elements of the "slot" array.
3058 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3060 (frv_function_prologue): Likewise for locals "insn", "next",
3062 (frv_register_nop): Introduce a local "nop_insn" to be the
3063 rtx_insn * containing rtx "nop".
3065 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3066 used as an insn and sometimes as a pattern, so rename it to
3067 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3068 using it where dealing with the core insn.
3070 * config/picochip/picochip.c (reorder_var_tracking_notes):
3071 Strengthen locals "insn", "next", "last_insn", "queue",
3072 "next_queue", "prev" from rtx to rtx_insn *.
3074 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3075 the second param is an rtx_insn ** rather than an rtx **.
3076 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3077 from rtx to rtx_sequence *, and introduce local named "sequence",
3078 using methods of rtx_sequence to clarify the code.
3079 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3081 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3082 Rename param "after" to "uncast_after", reintroducing "after" as a
3083 local rtx_insn * with a checked cast.
3084 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3085 reintroducing "after" as a local rtx_insn * with a checked cast.
3086 Strengthen local "last" from rtx to rtx_insn * and remove the
3087 now-redundant checked casts.
3088 (copy_delay_slot_insn): Strengthen return type and param from rtx
3091 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3092 "last" from rtx to rtx_insn *.
3094 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3096 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3097 param from rtx to rtx_insn *.
3099 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3101 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3102 and local "insn" from rtx to rtx_insn *.
3103 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3104 (unfilled_slots_next): Likewise.
3105 (function_return_label): Strengthen from rtx to rtx_code_label *.
3106 (function_simple_return_label): Likewise.
3107 (first_active_target_insn): Strengthen return type and param from
3109 (find_end_label): Strengthen return type from rtx to
3110 rtx_code_label *; strengthen locals as appropriate.
3111 (emit_delay_sequence): Strengthen return type, param "insn" and
3112 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3113 and local "li" from rtx to rtx_insn_list *, using methods of
3114 rtx_insn_list for clarity and typesafety.
3115 (add_to_delay_list): Strengthen return type and param "insn" from
3116 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3117 rtx_insn_list * and use methods of rtx_insn_list.
3118 (delete_from_delay_slot): Strengthen return type, param "insn",
3119 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3120 Strengthen local "seq" from rtx to rtx_sequence *, and local
3121 "delay_list" from rtx to rtx_insn_list *, using methods of
3122 rtx_sequence for clarity and type-safety.
3123 (delete_scheduled_jump): Add checked cast when invoking
3124 delete_from_delay_slot. Strengthen local "trial" from rtx to
3126 (optimize_skip): Strengthen return type and local "delay_list"
3127 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3129 (steal_delay_list_from_target): Strengthen return type, param
3130 "delay_list" and local "new_delay_list" from rtx to
3131 rtx_insn_list *. Strengthen param "seq" from rtx to
3132 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3134 Split out local "temp" into multiple more-tightly scoped locals:
3135 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3136 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3137 Strengthen locals named "trial" from rtx to rtx_insn *.
3138 (steal_delay_list_from_fallthrough): Strengthen return type and
3139 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3140 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3141 Strengthen local "trial" from rtx to rtx_insn *.
3142 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3143 to rtx_insn_list * and use its methods. Strengthen local "pat"
3144 from rtx to rtx_sequence * and use its methods. Strengthen locals
3145 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3146 (get_label_before): Strengthen return type and local "label" from
3148 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3149 "next_trial", "next", prev". Strengthen local "delay_list" from
3150 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3152 (follow_jumps): Strengthen return type, param "label" and locals
3153 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3154 (fill_slots_from_thread): Strengthen return type, param
3155 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3156 "insn", "thread", "opposite_thread" and locals "new_thread",
3157 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3158 "sequence" from a checked cast to rtx_sequence so that we can call
3159 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3160 with an rtx_sequence *.
3161 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3162 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3163 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3164 (relax_delay_slots): Strengthen param "first" and locals "insn",
3165 "next", "trial", "delay_insn", "target_label" from rtx to
3166 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3167 Introduce a local "trial_seq" for PATTERN (trial) of type
3168 rtx_sequence *, in both cases using methods of rtx_sequence.
3169 (dbr_schedule): Strengthen param "first" and locals "insn",
3170 "next", "epilogue_insn" from rtx to rtx_insn *.
3172 2014-08-28 Richard Biener <rguenther@suse.de>
3174 PR tree-optimization/62283
3175 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3176 Do not peel loops for alignment where the vector loop likely
3177 doesn't run at least VF times.
3179 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3181 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3182 important_candidates. Consider all important candidates if
3183 IVS doesn't give any result. Remove check on ivs->upto.
3184 (try_add_cand_for): Call iv_ca_add_use only once.
3186 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3187 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3188 Anna Tikhonova <anna.tikhonova@intel.com>
3189 Ilya Tocar <ilya.tocar@intel.com>
3190 Andrey Turetskiy <andrey.turetskiy@intel.com>
3191 Ilya Verbin <ilya.verbin@intel.com>
3192 Kirill Yukhin <kirill.yukhin@intel.com>
3193 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3195 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3196 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3198 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3199 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3200 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3201 (define_insn "*mul<mode>3"): Add EVEX version.
3203 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3204 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3205 Anna Tikhonova <anna.tikhonova@intel.com>
3206 Ilya Tocar <ilya.tocar@intel.com>
3207 Andrey Turetskiy <andrey.turetskiy@intel.com>
3208 Ilya Verbin <ilya.verbin@intel.com>
3209 Kirill Yukhin <kirill.yukhin@intel.com>
3210 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3212 * config/i386/sse.md
3213 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3214 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3215 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3216 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3217 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3218 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3219 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3220 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3221 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3222 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3223 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3224 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3225 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3226 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3227 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3228 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3230 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3231 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3232 Anna Tikhonova <anna.tikhonova@intel.com>
3233 Ilya Tocar <ilya.tocar@intel.com>
3234 Andrey Turetskiy <andrey.turetskiy@intel.com>
3235 Ilya Verbin <ilya.verbin@intel.com>
3236 Kirill Yukhin <kirill.yukhin@intel.com>
3237 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3239 * config/i386/sse.md
3240 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3241 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3242 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3244 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3245 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3246 Anna Tikhonova <anna.tikhonova@intel.com>
3247 Ilya Tocar <ilya.tocar@intel.com>
3248 Andrey Turetskiy <andrey.turetskiy@intel.com>
3249 Ilya Verbin <ilya.verbin@intel.com>
3250 Kirill Yukhin <kirill.yukhin@intel.com>
3251 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3253 * config/i386/sse.md
3254 (define_mode_iterator VI128_256): New.
3255 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3257 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3258 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3259 Anna Tikhonova <anna.tikhonova@intel.com>
3260 Ilya Tocar <ilya.tocar@intel.com>
3261 Andrey Turetskiy <andrey.turetskiy@intel.com>
3262 Ilya Verbin <ilya.verbin@intel.com>
3263 Kirill Yukhin <kirill.yukhin@intel.com>
3264 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3266 * config/i386/sse.md
3267 (define_mode_iterator VI8_256_512): New.
3268 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3270 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3271 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3273 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3275 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3277 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3278 pointer to the cumulative reloc value and return the value for
3280 (compute_reloc_for_rtx): Take a const_rtx. Call
3281 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3282 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3283 for_each_rtx for the CONST case.
3285 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3287 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3288 (mark_constants_in_pattern): ...this new function to iterate over
3290 (mark_constants): Update accordingly.
3292 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3294 * varasm.c: Include rtl-iter.h.
3295 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3296 Remove the pointer to the cumulative hashval_t and just return
3297 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3298 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3299 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3301 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3303 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3304 Give real type of data parameter. Remove return value.
3305 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3306 to iterate over subrtxes.
3308 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3310 * var-tracking.c (use_narrower_mode_test): Turn from being a
3311 for_each_rtx callback to being a function that examines each
3313 (adjust_mems): Update accordingly.
3315 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3317 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3318 callback to being a function that examines each subrtx itself.
3319 Remove handling of null rtxes.
3320 (add_uses): Update accordingly.
3322 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3324 * var-tracking.c: Include rtl-iter.h.
3325 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3326 to being a function that examines each subrtx itself.
3327 (use_type): Update accordingly.
3329 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3331 * store-motion.c: Include rtl-iter.h.
3332 (extract_mentioned_regs_1): Delete.
3333 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3334 for_each_rtx to iterate over subrtxes.
3336 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3338 * sel-sched.c: Include rtl-iter.h
3339 (count_occurrences_1): Delete.
3340 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3341 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3343 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3345 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3346 * rtlanal.c (tls_referenced_p_1): Delete.
3347 (tls_referenced_p): Take a const_rtx rather than an rtx.
3348 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3350 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3352 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3353 (for_each_inc_dec): Take an rtx rather than an rtx *.
3354 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3355 (cselib_record_sets): Likewise.
3356 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3357 (check_for_inc_dec): Likewise.
3358 * rtlanal.c (for_each_inc_dec_ops): Delete.
3359 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3360 rather than a pointer to the memory address. Replace
3361 for_each_inc_dec_ops argument with separate function and data
3362 arguments. Abort on non-autoinc addresses.
3363 (for_each_inc_dec_find_mem): Delete.
3364 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3365 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3367 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3369 * rtl.h (find_all_hard_regs): Declare.
3370 * rtlanal.c (find_all_hard_regs): New function.
3371 (record_hard_reg_uses_1): Delete.
3372 (record_hard_reg_uses): Use find_all_hard_regs.
3374 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3376 * rtl.h (replace_label_data): Delete.
3377 (replace_label): Take the old label, new label and update-nuses flag
3378 as direct arguments. Return void.
3379 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3380 * rtlanal.c (replace_label): Update interface as above. Handle
3381 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3382 iterator. Use FOR_EACH_SUBRTX_PTR.
3384 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3386 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3387 with const_rtx parameters.
3388 * varasm.c (get_pool_constant): Likewise.
3389 * rtlanal.c (rtx_referenced_p_1): Delete.
3390 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3391 Assert that the rtx we're looking for is nonnull. Allow searches
3392 for constant pool SYMBOL_REFs.
3394 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3396 * reload1.c: Include rtl-iter.h.
3397 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3398 to being a function that examines each subrtx itself.
3399 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3401 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3403 * regcprop.c (cprop_find_used_regs_1): Delete.
3404 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3406 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3408 * regcprop.c: Include rtl-iter.h.
3409 (kill_value): Take a const_rtx.
3410 (kill_autoinc_value): Turn from being a for_each_rtx callback
3411 to being a function that examines each subrtx itself.
3412 (copyprop_hardreg_forward_1): Update accordingly.
3414 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3416 * reg-stack.c: Include rtl-iter.h.
3417 (subst_stack_regs_in_debug_insn): Delete.
3418 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3419 instead of for_each_rtx.
3421 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3423 * lower-subreg.c (find_decomposable_subregs): Turn from being
3424 a for_each_rtx callback to being a function that examines each
3425 subrtx itself. Remove handling of null rtxes.
3426 (decompose_multiword_subregs): Update accordingly.
3428 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3430 * lower-subreg.c (adjust_decomposed_uses): Delete.
3431 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3432 Remove handling of null rtxes.
3434 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3436 * lower-subreg.c: Include rtl-iter.h.
3437 (resolve_subreg_use): Turn from being a for_each_rtx callback
3438 to being a function that examines each subrtx itself. Remove
3439 handling of null rtxes.
3440 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3441 (decompose_multiword_subregs): Likewise.
3443 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3445 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3446 to being a function that examines each subrtx itself.
3447 (simplify_using_condition, simplify_using_initial_values): Update
3450 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3452 * loop-iv.c: Include rtl-iter.h.
3453 (find_single_def_src): New function.
3454 (replace_single_def_regs): Turn from being a for_each_rtx callback
3455 to being a function that examines each subrtx itself.
3456 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3458 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3460 * jump.c (eh_returnjump_p_1): Delete.
3461 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3462 Remove handling of null rtxes.
3464 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3466 * jump.c: Include rtl-iter.h.
3467 (returnjump_p_1): Delete.
3468 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3469 Remove handling of null rtxes.
3471 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3473 * ira.c: Include rtl-iter.h.
3474 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3475 to being a function that examines each subrtx itself. Remove
3476 handling of null rtxes.
3477 (update_equiv_regs): Update call accordingly.
3479 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3481 * fwprop.c: Include rtl-iter.h.
3482 (varying_mem_p): Turn from being a for_each_rtx callback to being
3483 a function that examines each subrtx itself.
3484 (propagate_rtx): Update accordingly.
3486 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3488 * function.c: Include rtl-iter.h
3489 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3490 callback to being a function that examines each subrtx itself.
3491 Return the changed flag.
3492 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3493 (instantiate_virtual_regs): Update calls accordingly.
3495 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3497 * final.c: Include rtl-iter.h.
3498 (mark_symbol_ref_as_used): Delete.
3499 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3502 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3504 * emit-rtl.c: Include rtl-iter.h.
3505 (find_auto_inc): Turn from being a for_each_rtx callback to being
3506 a function that examines each subrtx itself. Assume the first operand
3507 to an RTX_AUTOINC is the automodified register.
3508 (try_split): Update call accordingly.
3510 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3512 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3513 Return a bool, inverting the result so that 0/false means "not ok".
3514 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3515 subrtxes of a CONST.
3516 (mem_loc_descriptor, add_const_value_attribute)
3517 (resolve_addr_in_expr): Update calls accordingly.
3519 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3521 * dwarf2out.c: Include rtl-iter.h.
3522 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3523 Remove unused data parameter. Return a bool, inverting the result
3524 so that 0/false means "not ok".
3525 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3526 instead of for_each_rtx.
3528 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3530 * dse.c: Include rtl-iter.h.
3531 (check_mem_read_rtx): Change void * parameter to real type.
3532 Remove return value.
3533 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3534 for_each_rtx. Don't handle null rtxes.
3536 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3538 * df-problems.c: Include rtl-iter.h.
3539 (find_memory): Turn from being a for_each_rtx callback to being
3540 a function that examines each subrtx itself. Continue to look for
3541 volatile references even after a nonvolatile one has been found.
3542 (can_move_insns_across): Update calls accordingly.
3544 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3546 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3547 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3548 to iterate over subrtxes. Return a bool rather than an int.
3550 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3552 * ddg.c: Include rtl-iter.h.
3553 (mark_mem_use_1): Rename to...
3554 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3555 instead of for_each_rtx.
3556 (mem_read_insn_p): Update accordingly.
3558 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3560 * cse.c (change_cc_mode_args): Delete.
3561 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3562 a function that examines each subrtx itself. Take the fields of
3563 change_cc_mode_args as argument and return void.
3564 (cse_change_cc_mode_insn): Update calls accordingly.
3566 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3568 * cse.c (is_dead_reg): Change argument to const_rtx.
3569 (dead_debug_insn_data): Delete.
3570 (is_dead_debug_insn): Expand commentary. Turn from being a
3571 for_each_rtx callback to being a function that examines
3572 each subrtx itself. Take the fields of dead_debug_insn_data
3574 (delete_trivially_dead_insns): Update call accordingly.
3576 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3578 * cse.c (check_for_label_ref): Move earlier in file. Turn from
3579 being a for_each_rtx callback to being a function that examines
3581 (cse_extended_basic_block): Update call accordingly.
3583 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3585 * cse.c (check_dependence_data): Delete.
3586 (check_dependence): Change from being a for_each_rtx callback to being
3587 a function that examines all subrtxes itself. Don't handle null rtxes.
3588 (invalidate): Update call accordingly.
3590 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3592 * cse.c: Include rtl-iter.h.
3593 (approx_reg_cost_1): Delete.
3594 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3595 Don't handle null rtxes.
3597 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3599 * cfgcleanup.c: Include rtl-iter.h.
3600 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3601 to being a function that examines each subrtx itself.
3602 (thread_jump): Update accordingly.
3604 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3606 * combine-stack-adj.c: Include rtl-iter.h.
3607 (record_stack_refs_data): Delete.
3608 (record_stack_refs): Turn from being a for_each_rtx callback
3609 to being a function that examines each subrtx itself.
3610 Take a pointer to the reflist. Invert sense of return value
3611 so that true means success and false means failure. Don't
3613 (combine_stack_adjustments_for_block): Update accordingly.
3615 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3617 * combine.c (record_truncated_value): Turn from being a for_each_rtx
3618 callback to a function that takes an rtx and returns a bool
3619 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3622 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3624 * combine.c: Include rtl-iter.h.
3625 (unmentioned_reg_p_1): Delete.
3626 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3627 Don't handle null rtxes.
3629 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3631 * calls.c: Include rtl-iter.h.
3632 (internal_arg_pointer_based_exp_1): Delete.
3633 (internal_arg_pointer_based_exp): Take a const_rtx.
3634 Use FOR_EACH_SUBRTX to iterate over subrtxes.
3636 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3638 * caller-save.c: Include rtl-iter.h.
3639 (add_used_regs_1): Delete.
3640 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3641 to iterate over subrtxes. Assert that any remaining pseudos
3644 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3646 * bt-load.c: Include rtl-iter.h.
3647 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3648 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
3649 to iterate over subrtxes.
3650 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3651 find_btr_use rather than btr_referenced_p.
3653 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3655 * alias.c: Include rtl-iter.h.
3656 (refs_newer_value_cb): Delete.
3657 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3659 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3661 * rtl-iter.h: New file.
3662 * rtlanal.c: Include it.
3663 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3664 (generic_subrtx_iterator <T>::add_single_to_queue)
3665 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3666 (generic_subrtx_iterator <T>::free_array): New functions.
3667 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3668 (generic_subrtx_iterator <const_rtx_accessor>)
3669 (generic_subrtx_iterator <rtx_var_accessor>
3670 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3671 (setup_reg_subrtx_bounds): New function.
3672 (init_rtlanal): Call it.
3674 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3677 * config/sh/sh.md (ashlsi3): Handle negative shift count for
3679 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3681 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
3683 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3685 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3687 * rtl.h (JUMP_LABEL_AS_INSN): New.
3689 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3691 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3693 (alloc_EXPR_LIST): Strengthen return type from rtx to
3695 (remove_free_EXPR_LIST_node): Likewise for param.
3696 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3697 from rtx to rtx_expr_list *.
3698 * sched-int.h (struct deps_desc): Strengthen fields
3699 "pending_read_mems" and "pending_write_mems" from rtx to
3702 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3703 rtx to rtx_expr_list *.
3704 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3705 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3707 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
3708 from rtx to rtx_expr_list *.
3709 * loop-iv.c (simplify_using_initial_values): Strengthen local
3710 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3711 "pnote_next" from rtx * to rtx_expr_list **.
3712 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
3713 param "exprp" from rtx * to rtx_expr_list **.
3714 (add_insn_mem_dependence): Strengthen local "mem_list" from
3715 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
3717 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3718 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
3719 param "old_mems_p" from rtx * to rtx_expr_list **.
3720 * var-tracking.c (struct adjust_mem_data): Strengthen field
3721 "side_effects" from rtx to rtx_expr_list *.
3722 (adjust_insn): Replace NULL_RTX with NULL when assigning to
3724 (prepare_call_arguments): Likewise.
3726 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3728 * function.h (struct rtl_data): Strengthen field
3729 "x_stack_slot_list" from rtx to rtx_expr_list *.
3731 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3732 when assigning to stack_slot_list.
3734 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3736 * function.h (struct rtl_data): Strengthen field
3737 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3738 * rtl.h (remove_node_from_expr_list): Strengthen second param from
3739 rtx * to rtx_expr_list **.
3741 * cfgbuild.c (make_edges): In loop over
3742 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3743 rtx_expr_list *, and use methods of the latter class to clarify
3745 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3746 rtx_expr_list *, and use methods of the latter class to clarify
3748 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3749 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3750 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3751 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
3752 to rtx_expr_list *. Use methods of the latter class to clarify
3755 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3757 * function.h (struct expr_status): Strengthen field
3758 "x_forced_labels" from rtx to rtx_expr_list *.
3760 * cfgbuild.c (make_edges): Split local "x" into two locals,
3761 strengthening one from rtx to rtx_expr_list *, and using methods
3763 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3764 loop over forced_labels, introduce strengthen it from rtx to
3765 rtx_expr_list *, using methods to clarify the code.
3766 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3767 to rtx_expr_list *, using methods of said class to clarify the
3769 * reload1.c (set_initial_label_offsets): Split local "x" into two
3770 per-loop variables, strengthening the first from rtx to
3771 rtx_expr_list * and using methods.
3773 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3775 * coretypes.h (class rtx_expr_list): Add forward declaration.
3776 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3777 * gengenrtl.c (special_rtx): Add EXPR_LIST.
3778 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3779 invariant: GET_CODE (X) == EXPR_LIST.
3780 (is_a_helper <rtx_expr_list *>::test): New.
3781 (rtx_expr_list::next): New.
3782 (rtx_expr_list::element): New.
3783 (gen_rtx_EXPR_LIST): New.
3785 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3787 * varasm.c (mark_constants): Convert a GET_CODE check into a
3788 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3789 Use methods of rtx_sequence to clarify the code.
3791 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3793 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3794 local "seq" via a checked cast, and use methods of rtx_sequence
3795 to simplify the code.
3797 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3799 * resource.c (mark_referenced_resources): Strengthen local
3800 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3801 using methods of rtx_sequence to clarify the code.
3802 (find_dead_or_set_registers): Within the switch statement, convert
3803 a GET_CODE check to a dyn_cast, introducing local "seq". Within
3804 the JUMP_P handling, introduce another local "seq", adding a
3805 checked cast to rtx_sequence *. In both cases, use methods of
3806 rtx_sequence to clarify the code.
3807 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3808 via a checked cast, and use methods of rtx_sequence to simplify
3811 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3813 * reorg.c (redundant_insn): In two places in the function, replace
3814 a check of GET_CODE with a dyn_cast, introducing local "seq", and
3815 usings methods of rtx_sequence to clarify the code.
3817 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3819 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3820 local "seq" with a checked cast, and use methods of rtx_sequence
3821 to clarify the code.
3823 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3825 * function.c (contains): Introduce local "seq" for PATTERN (insn),
3826 with a checked cast, in the region for where we know it's a
3827 SEQUENCE. Use methods of rtx_sequence.
3829 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3831 * final.c (get_attr_length_1): Replace GET_CODE check with a
3832 dyn_cast, introducing local "seq" and the use of methods of
3834 (shorten_branches): Likewise, introducing local "body_seq".
3835 Strengthen local "inner_insn" from rtx to rtx_insn *.
3836 (reemit_insn_block_notes): Replace GET_CODE check with a
3837 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3838 Use methods of rtx_sequence.
3839 (final_scan_insn): Likewise, introducing local "seq" for when
3840 "body" is known to be a SEQUENCE, using its methods.
3842 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3844 * except.c (can_throw_external): Strengthen local "seq" from rtx
3845 to rtx_sequence *. Use methods of rtx_sequence.
3846 (insn_nothrow_p): Likewise.
3848 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3850 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3851 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3852 Use methods of rtx_sequence.
3853 (scan_trace): Likewise for local "pat".
3855 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3857 * coretypes.h (class rtx_sequence): Add forward declaration.
3858 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3859 invariant: GET_CODE (X) == SEQUENCE.
3860 (is_a_helper <rtx_sequence *>::test): New.
3861 (is_a_helper <const rtx_sequence *>::test): New.
3862 (rtx_sequence::len): New.
3863 (rtx_sequence::element): New.
3864 (rtx_sequence::insn): New.
3866 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3868 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3870 (alloc_INSN_LIST): Strengthen return type from rtx to
3872 (copy_INSN_LIST): Likewise for return type and param.
3873 (concat_INSN_LIST): Likewise for both params and return type.
3874 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3875 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
3876 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3877 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
3879 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3880 "implicit_sets", "control_uses", "clobbers" from rtx to
3882 (struct deps_desc): Likewise for fields "pending_read_insns",
3883 "pending_write_insns", "pending_jump_insns",
3884 "last_pending_memory_flush", "last_function_call",
3885 "last_function_call_may_noreturn", "sched_before_next_call",
3886 "sched_before_next_jump".
3887 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3888 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3890 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3891 from rtx to rtx_insn_list *.
3892 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3895 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3896 to rtx_insn_list **.
3897 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3899 (queue_insn): Likewise for local "link".
3900 (struct haifa_saved_data): Strengthen field "insn_queue" from
3901 rtx * to rtx_insn_list **.
3902 (save_backtrack_point): Update allocation of save->insn_queue to
3903 reflect the strengthening of elements from rtx to rtx_insn_list *.
3904 (queue_to_ready): Strengthen local "link" from rtx to
3905 rtx_insn_list *; use methods "next" and "insn" when traversing the
3907 (early_queue_to_ready): Likewise for locals "link", "next_link",
3909 (schedule_block): Update allocation of insn_queue to reflect the
3910 strengthening of elements from rtx to rtx_insn_list *. Strengthen
3911 local "link" from rtx to rtx_insn_list *, and use methods when
3913 (add_to_speculative_block): Strengthen locals "twins" and
3914 "next_node" from rtx to rtx_insn_list *, and use methods when
3915 working with them. Strengthen local "twin" from rtx to
3916 rtx_insn *, eliminating a checked cast.
3917 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
3918 from rtx to rtx_insn_list *, and use methods when working with
3921 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
3922 from rtx to rtx_insn_list *, adding a checked cast.
3923 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3925 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3926 "newlink" from rtx to rtx_insn_list *. Strengthen local
3927 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3928 from rtx to rtx_insn *.
3929 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3930 from rtx to rtx_insn_list *. Use methods of the latter class.
3931 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3932 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3933 (remove_free_INSN_LIST_node): Strengthen return type and local
3934 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3935 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3936 rtx_insn_list *, using "insn" method.
3938 * sched-deps.c (add_dependence_list): Strengthen param "list"
3939 from rtx to rtx_insn_list *, and use methods when working with it.
3940 (add_dependence_list_and_free): Strengthen param "listp" from
3941 rtx * to rtx_insn_list **.
3942 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3943 to rtx_insn_list **, and use methods when working with *listp.
3944 (remove_from_both_dependence_lists): Strengthen param "listp" from
3945 rtx * to rtx_insn_list **
3946 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3947 to rtx_insn_list **. Eliminate local "link", in favor of two new
3948 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3950 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3951 by introducing local "cond_deps".
3952 (remove_from_deps): Strengthen param "insn" from rtx to
3955 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3956 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3957 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3958 Use methods of rtx_insn_list.
3960 * store-motion.c (struct st_expr): Strengthen fields
3961 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3962 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3964 (find_moveable_store): Split out "tmp" into multiple more-tightly
3965 scoped locals. Use methods of rtx_insn_list *.
3966 (compute_store_table): Strengthen local "tmp" from rtx to
3967 rtx_insn *. Use methods of rtx_insn_list *.
3969 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3971 * coretypes.h (class rtx_insn_list): Add forward declaration.
3972 * rtl.h (class rtx_insn_list): New subclass of rtx_def
3973 (is_a_helper <rtx_insn_list *>::test): New.
3974 (rtx_insn_list::next): New.
3975 (rtx_insn_list::insn): New.
3976 (gen_rtx_INSN_LIST): Add prototype.
3977 * emit-rtl.c (gen_rtx_INSN_LIST): New.
3978 * gengenrtl.c (special_rtx): Add INSN_LIST.
3980 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3982 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
3983 "prev" from rtx to rtx_insn *.
3985 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3987 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
3988 functions. Require merely an rtx for now, not an rtx_insn *.
3989 (BLOCK_FOR_INSN): Likewise.
3990 (INSN_LOCATION): Likewise.
3991 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
3993 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3995 * rtl.h (PATTERN): Convert this macro into a pair of inline
3996 functions, for now, requiring const_rtx and rtx.
3998 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4000 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4002 (final_postscan_insn): Likewise.
4003 (adjust_cost): Likewise.
4004 (adjust_priority): Likewise.
4005 (variable_issue): Likewise.
4006 (macro_fusion_pair_p): Likewise.
4007 (dfa_post_cycle_insn): Likewise.
4008 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4009 (first_cycle_multipass_issue): Likewise.
4010 (dfa_new_cycle): Likewise.
4011 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4012 (speculate_insn): Likewise for param "insn".
4013 (gen_spec_check): Likewise for params "insn" and "label".
4014 (get_insn_spec_ds): Likewise for param "insn".
4015 (get_insn_checked_ds): Likewise.
4016 (dispatch_do): Likewise.
4017 (dispatch): Likewise.
4018 (cannot_copy_insn_p): Likewise.
4019 (invalid_within_doloop): Likewise.
4020 (legitimate_combined_insn): Likewise.
4024 * doc/tm.texi: Automatically updated to reflect changes to
4027 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4029 (schedule_block): Likewise.
4030 (sched_init): Likewise.
4031 (sched_speculate_insn): Strengthen param "insn" from rtx to
4033 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4035 * hooks.c (hook_bool_rtx_true): Rename to...
4036 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4038 (hook_constcharptr_const_rtx_null): Rename to...
4039 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4040 first param from const_rtx to const rtx_insn *.
4041 (hook_bool_rtx_int_false): Rename to...
4042 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4043 param from rtx to rtx_insn *.
4044 (hook_void_rtx_int): Rename to...
4045 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4048 * hooks.h (hook_bool_rtx_true): Rename to...
4049 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4051 (hook_bool_rtx_int_false): Rename to...
4052 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4053 param from rtx to rtx_insn *.
4054 (hook_void_rtx_int): Rename to...
4055 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4057 (hook_constcharptr_const_rtx_null): Rename to...
4058 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4059 first param from const_rtx to const rtx_insn *.
4061 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4062 and local "prev" from rtx to rtx_insn *.
4064 * sched-int.h (sched_speculate_insn): Strengthen first param from
4067 * sel-sched.c (create_speculation_check): Likewise for local "label".
4068 * targhooks.c (default_invalid_within_doloop): Strengthen param
4069 "insn" from const_rtx to const rtx_insn *.
4070 * targhooks.h (default_invalid_within_doloop): Strengthen param
4071 from const_rtx to const rtx_insn *.
4073 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4074 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4076 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4078 (arc_invalid_within_doloop): Likewise, with const.
4080 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4081 (arm_cannot_copy_insn_p): Likewise for param "insn".
4082 (arm_unwind_emit): Likewise.
4084 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4087 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4088 (c6x_variable_issue): Likewise. Removed now-redundant checked
4090 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4092 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4093 Likewise for param "insn".
4094 (epiphany_mode_after): Likewise.
4095 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4096 params "insn", "dep_insn".
4097 (epiphany_mode_needed): Likewise for param "insn".
4098 (epiphany_mode_after): Likewise.
4100 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4101 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4102 (ix86_avx_u128_mode_needed): Likewise.
4103 (ix86_i387_mode_needed): Likewise.
4104 (ix86_mode_needed): Likewise.
4105 (ix86_avx_u128_mode_after): Likewise.
4106 (ix86_mode_after): Likewise.
4107 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4108 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4109 (ix86_adjust_priority): Likewise for param "insn".
4110 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4111 (do_dispatch): Likewise.
4112 (has_dispatch): Likewise.
4113 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4115 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4116 reflect renaming of default hook implementation from
4117 hook_constcharptr_const_rtx_null to
4118 hook_constcharptr_const_rtx_insn_null.
4119 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4121 (ia64_variable_issue): Likewise for param "insn".
4122 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4123 (ia64_dfa_new_cycle): Likewise.
4124 (ia64_get_insn_spec_ds): Likewise.
4125 (ia64_get_insn_checked_ds): Likewise.
4126 (ia64_speculate_insn): Likewise.
4127 (ia64_gen_spec_check): Likewise for params "insn", "label".
4128 (ia64_asm_unwind_emit): Likewise for param "insn".
4130 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4132 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4134 (m68k_sched_variable_issue): Likewise for param "insn".
4136 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4139 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4140 Likewise for params "insn", "dep".
4142 * config/mips/mips.c (mips_adjust_cost): Likewise.
4143 (mips_variable_issue): Likewise for param "insn".
4144 (mips_final_postscan_insn): Likewise.
4146 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4147 for params "insn", "dep".
4149 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4151 (pa_adjust_priority): Likewise for param "insn".
4153 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4154 Likewise for params "insn", "dep_insn".
4156 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4158 (rs6000_variable_issue): Likewise.
4159 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4160 (rs6000_debug_adjust_cost): Likewise.
4161 (rs6000_adjust_priority): Likewise for param "insn".
4162 (rs6000_use_sched_lookahead_guard): Likewise.
4163 (get_next_active_insn): Likewise for return type and both params.
4164 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4165 and locals "insn", "next_insn".
4166 (pad_groups): Likewise.
4168 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4170 (s390_cannot_copy_insn_p): Likewise.
4171 (s390_sched_variable_issue): Likewise for third param, eliminating
4173 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4174 default hook implementation from hook_constcharptr_const_rtx_null
4175 to hook_constcharptr_const_rtx_insn_null.
4177 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4178 from rtx to rtx_insn *.
4179 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4180 (sh_variable_issue): Likewise for param "insn".
4181 (sh_dfa_new_cycle): Likewise.
4182 (sh_mode_needed): Likewise.
4183 (sh_mode_after): Likewise.
4185 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4186 params "insn", "dep_insn".
4187 (hypersparc_adjust_cost): Likewise.
4188 (sparc_adjust_cost): Likewise.
4190 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4191 param, eliminated checked cast.
4192 (spu_sched_adjust_cost): Likewise for first and third params.
4194 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4195 params "insn" and "dep_insn" from rtx to rtx_insn *.
4197 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4199 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4201 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4202 (set_is_load_p): ...this, updating to work on a SET pattern rather
4204 (is_store_insn): Rename to...
4205 (set_is_store_p): ...this, updating to work on a SET pattern
4206 rather than an insn.
4207 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4208 top of function to where it is needed. Rewrite the bogus
4209 condition that checks for "insn" and "dep" being PARALLEL to
4210 instead use single_set, introducing locals "insn_set" and
4211 "dep_set". Given that we only ever returned "cost" for a non-pair
4212 of SETs, bail out early if we don't have a pair of SET.
4213 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4214 use the new locals "insn_set" and "dep_set", and update calls to
4215 is_load_insn and is_store_insn to be calls to set_is_load_p and
4218 2014-08-27 Guozhi Wei <carrot@google.com>
4221 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4222 amount before using it.
4224 2014-08-27 Richard Biener <rguenther@suse.de>
4226 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4227 get_maxval_strlen inside a more useful API.
4228 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4229 (gimple_fold_builtin): ... caller.
4230 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4231 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4232 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4233 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4234 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4235 gimple_fold_builtin_sprintf): Adjust to compute maxval
4238 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4241 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4243 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4244 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4245 Anna Tikhonova <anna.tikhonova@intel.com>
4246 Ilya Tocar <ilya.tocar@intel.com>
4247 Andrey Turetskiy <andrey.turetskiy@intel.com>
4248 Ilya Verbin <ilya.verbin@intel.com>
4249 Kirill Yukhin <kirill.yukhin@intel.com>
4250 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4252 * config/i386/sse.md
4253 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4254 Use `concat_tg_mode' attribute to determine asm register size.
4256 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4257 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4258 Anna Tikhonova <anna.tikhonova@intel.com>
4259 Ilya Tocar <ilya.tocar@intel.com>
4260 Andrey Turetskiy <andrey.turetskiy@intel.com>
4261 Ilya Verbin <ilya.verbin@intel.com>
4262 Kirill Yukhin <kirill.yukhin@intel.com>
4263 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4265 * config/i386/sse.md
4266 (define_mode_iterator VI48_AVX512VL): New.
4267 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4268 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4269 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4270 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4271 with VI1): Change mode iterator.
4272 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4273 with VI_ULOADSTORE_BW_AVX512VL): New.
4274 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4275 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4276 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4277 with VI1): Change mode iterator.
4278 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4279 with VI_ULOADSTORE_BW_AVX512VL): New.
4280 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4281 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4282 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4283 with VI1): Change mode iterator.
4284 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4285 with VI_ULOADSTORE_BW_AVX512VL): New.
4286 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4287 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4288 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4289 (define_insn "<avx512>_storedqu<mode>_mask" with
4290 VI48_AVX512VL): New.
4291 (define_insn "<avx512>_storedqu<mode>_mask" with
4292 VI12_AVX512VL): Ditto.
4294 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4295 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4296 Anna Tikhonova <anna.tikhonova@intel.com>
4297 Ilya Tocar <ilya.tocar@intel.com>
4298 Andrey Turetskiy <andrey.turetskiy@intel.com>
4299 Ilya Verbin <ilya.verbin@intel.com>
4300 Kirill Yukhin <kirill.yukhin@intel.com>
4301 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4303 * config/i386/sse.md
4304 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4305 (define_mode_iterator VI48_AVX512BW): New.
4306 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4307 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4308 with VI48_AVX2_48_AVX512F): New.
4309 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4310 with VI2_AVX512VL): Ditto.
4312 2014-08-27 Richard Biener <rguenther@suse.de>
4315 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4316 (fold_builtin_3): Do not fold strcat_chk here.
4317 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4319 (gimple_fold_builtin): Fold strcat_chk here.
4321 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4323 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4324 * dwarf2out.c (dwarf2out_decl): Make static.
4326 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4328 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4330 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4332 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4333 from rtx to rtx_insn *.
4334 (cselib_lookup_from_insn): Likewise for final param.
4335 (cselib_subst_to_values_from_insn): Likewise.
4336 (cselib_add_permanent_equiv): Likewise.
4338 * cselib.c (cselib_current_insn): Likewise for this variable.
4339 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4340 (cselib_lookup_from_insn): Likewise.
4341 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4342 "save_cselib_current_insn".
4343 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4345 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4346 from rtx to rtx_insn *.
4348 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4350 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4353 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4355 * df.h (df_dump_insn_problem_function): Strengthen first param of
4356 this callback from const_rtx to const rtx_insn *.
4357 (struct df_insn_info): Strengthen field "insn" from rtx to
4359 (DF_REF_INSN): Eliminate this function, reinstating the older
4361 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4362 (df_reg_defined): Likewise.
4363 (df_find_use): Likewise.
4364 (df_reg_used): Likewise.
4365 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4367 (df_dump_insn_bottom): Likewise.
4368 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4369 (df_insn_debug_regno): Likewise.
4370 (debug_df_insn): Likewise.
4371 (df_rd_simulate_one_insn): Likewise for param 2.
4372 (df_word_lr_simulate_defs): Likewise for param 1.
4373 (df_word_lr_simulate_uses): Likewise.
4374 (df_md_simulate_one_insn): Likewise for param 2.
4375 (df_simulate_find_noclobber_defs): Likewise for param 1.
4376 (df_simulate_find_defs): Likewise.
4377 (df_simulate_defs): Likewise.
4378 (df_simulate_uses): Likewise.
4379 (df_simulate_one_insn_backwards): Likewise for param 2.
4380 (df_simulate_one_insn_forwards): Likewise.
4381 (df_uses_create): Likewise for param 2.
4382 (df_insn_create_insn_record): Likewise for param 1.
4383 (df_insn_delete): Likewise.
4384 (df_insn_rescan): Likewise.
4385 (df_insn_rescan_debug_internal): Likewise.
4386 (df_insn_change_bb): Likewise.
4387 (df_notes_rescan): Likewise.
4388 * rtl.h (remove_death): Likewise for param 2.
4389 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4391 * sched-int.h (reemit_notes): Strengthen param from rtx to
4393 * valtrack.h (propagate_for_debug): Likewise for param 1.
4395 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4396 local "tmp_rtx" from const_rtx to const rtx_insn *.
4397 * combine.c (remove_death): Strengthen param "insn" from rtx to
4399 (move_deaths): Likewise for local "where_dead".
4400 * cse.c (delete_trivially_dead_insns): Introduce local
4401 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4402 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4404 (df_reg_defined): Likewise.
4405 (df_find_use): Likewise.
4406 (df_reg_used): Likewise.
4407 (df_dump_insn_problem_data): Strengthen param "insn" from
4408 const_rtx to const rtx_insn *.
4409 (df_dump_insn_top): Likewise.
4410 (df_dump_insn_bottom): Likewise.
4411 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4412 (df_insn_debug_regno): Likewise.
4413 (debug_df_insn): Likewise.
4414 (DF_REF_INSN): Delete.
4415 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4416 from rtx to rtx_insn *.
4417 (df_chain_insn_top_dump): Strengthen param "insn" from
4418 const_rtx to const rtx_insn *.
4419 (df_chain_insn_bottom_dump): Likewise.
4420 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4422 (df_word_lr_simulate_uses): Likewise.
4423 (df_print_note): Likewise.
4424 (df_remove_dead_and_unused_notes): Likewise.
4425 (df_set_unused_notes_for_mw): Likewise.
4426 (df_set_dead_notes_for_mw): Likewise.
4427 (df_create_unused_note): Likewise.
4428 (df_simulate_find_defs): Likewise.
4429 (df_simulate_find_uses): Likewise.
4430 (df_simulate_find_noclobber_defs): Likewise.
4431 (df_simulate_defs): Likewise.
4432 (df_simulate_uses): Likewise.
4433 (df_simulate_one_insn_backwards): Likewise.
4434 (df_simulate_one_insn_forwards): Likewise.
4435 (df_md_simulate_one_insn): Likewise.
4436 * df-scan.c (df_uses_create): Likewise.
4437 (df_insn_create_insn_record): Likewise.
4438 (df_insn_delete): Likewise.
4439 (df_insn_rescan): Likewise.
4440 (df_insn_rescan_debug_internal): Likewise.
4441 (df_insn_change_bb): Likewise.
4442 (df_notes_rescan): Likewise.
4443 (df_refs_add_to_chains): Likewise.
4444 (df_insn_refs_verify): Likewise.
4445 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4446 when invoking df_insn_delete.
4447 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4448 (set_unique_reg_note): Add checked cast.
4449 * final.c (cleanup_subreg_operands): Likewise.
4450 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4451 "insn" from rtx to rtx_insn *.
4452 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4453 "last" from rtx to rtx_insn *.
4454 * ira-emit.c (change_regs_in_insn): New function.
4455 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4456 Invoke change_regs_in_insn rather than change_regs.
4457 * ira.c (update_equiv_regs): Strengthen locals "insn",
4458 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4459 for_each_rtx_in_insn rather than for_each_rtx.
4460 * recog.c (confirm_change_group): Add checked casts.
4461 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4463 (peep2_fill_buffer): Add checked cast.
4464 * rtlanal.c (remove_note): Likewise.
4465 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4466 locals "next" "end" from rtx to rtx_insn *.
4468 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4470 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4472 (struct reg_use_data): Likewise for field "insn".
4473 (insn_cost): Likewise for param.
4474 (real_insn_for_shadow): Likewise for return type and param.
4475 (increase_insn_priority): Likewise for param 1.
4476 (debug_dependencies): Likewise for both params.
4478 * haifa-sched.c (insn_delay): Likewise for param "insn".
4479 (real_insn_for_shadow): Likewise for return type and param "insn".
4480 (update_insn_after_change): Likewise for param "insn".
4481 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4483 (insn_cost): Likewise for param "insn".
4484 (increase_insn_priority): Likewise.
4485 (calculate_reg_deaths): Likewise.
4486 (setup_insn_reg_pressure_info): Likewise.
4487 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4488 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4489 (model_recompute): Likewise.
4490 (must_restore_pattern_p): Likewise for param "next".
4491 (model_excess_cost): Likewise for param "insn".
4492 (queue_remove): Likewise.
4493 (adjust_priority): Likewise for param "prev".
4494 (update_register_pressure): Likewise for param "insn".
4495 (setup_insn_max_reg_pressure): Likewise for local "insn".
4496 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4497 (model_add_to_schedule): Likewise.
4498 (model_reset_queue_indices): Likewise for local "insn".
4499 (unschedule_insns_until): Strengthen local "recompute_vec" from
4500 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4501 "con" from rtx to rtx_insn *.
4502 (restore_last_backtrack_point): Likewise for both locals "x". Add
4504 (estimate_insn_tick): Likewise for param "insn".
4505 (commit_schedule): Likewise for params "prev_head", "tail" and
4507 (verify_shadows): Likewise for locals "i1", "i2".
4508 (dump_insn_stream): Likewise for params "head", "tail" and locals
4509 "next_tail", "insn".
4510 (schedule_block): Likewise for locals "insn", "x". Add a checked
4512 (fix_inter_tick): Likewise for params "head", "tail".
4513 (create_check_block_twin): Likewise for local "jump".
4514 (haifa_change_pattern): Likewise for param "insn".
4515 (haifa_speculate_insn): Likewise.
4516 (dump_new_block_header): Likewise for params "head", "tail".
4517 (fix_jump_move): Likewise for param "jump".
4518 (move_block_after_check): Likewise.
4519 (sched_init_insn_luid): Likewise for param "insn".
4520 (sched_init_luids): Likewise for local "insn".
4521 (insn_luid): Likewise for param "insn".
4522 (init_h_i_d): Likewise.
4523 (haifa_init_h_i_d): Likewise for local "insn".
4524 (haifa_init_insn): Likewise for param "insn".
4525 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4527 (create_insn_reg_use): Likewise for param "insn".
4528 (setup_insn_reg_uses): Likewise. Add a checked cast.
4529 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4530 "tail" from rtx to rtx_insn *.
4531 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4532 "insn", "next_tail".
4534 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4536 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4537 from rtx to rtx_insn *.
4538 (model_add_to_schedule): Likewise for locals "start", "end",
4541 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4543 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4545 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4546 "to" and locals "insn", "next", "copy". Remove now-redundant
4549 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4551 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4552 rtx_insn * and param 4 from rtx * to rtx_insn **.
4553 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4554 param 2 from rtx * to rtx_insn **.
4556 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4557 rtx_insn * and final param from rtx * to rtx_insn **.
4559 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4560 from rtx to rtx_insn *.
4561 (try_head_merge_bb): Likewise for both locals named "move_upto".
4562 * df-problems.c (can_move_insns_across): Likewise for params
4563 "from", "to", "across_from", "across_to" and locals "insn",
4564 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4566 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4567 from rtx to rtx_insn *.
4568 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4569 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4570 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4572 (noce_try_abs): Likewise.
4573 (noce_get_condition): Likewise for param "jump". Strengthen param
4574 "earliest" from rtx * to rtx_insn **.
4575 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4577 (find_cond_trap): Likewise.
4578 (dead_or_predicable): Likewise for local "earliest".
4579 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
4581 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4582 and local "prev". Strengthen param "earliest" from rtx * to
4584 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4585 Strengthen param "earliest" from rtx * to rtx_insn **.
4587 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4589 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4590 "to" and local "insn" from rtx to rtx_insn *.
4592 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4594 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4595 from rtx to rtx_insn *.
4596 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4597 (code_motion_path_driver): Likewise for local "last_insn".
4598 (simplify_changed_insns): Likewise for local "insn".
4600 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4602 * rtl.h (push_to_sequence): Strengthen param from rtx to
4604 (push_to_sequence2): Likewise for both params.
4605 (delete_insns_since): Likewise for param.
4606 (reorder_insns_nobb): Likewise for all three params.
4607 (set_new_first_and_last_insn): Likewise for both params.
4609 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4610 rtx_insn *. Remove now-redundant cast.
4611 (set_last_insn): Likewise.
4613 * builtins.c (expand_builtin_return): Strengthen local
4614 "call_fusage" from rtx to rtx_insn *.
4615 * cfgrtl.c (create_basic_block_structure): Likewise for local
4617 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4618 "first", "last" and local "insn".
4619 (delete_insns_since): Likewise for param "from".
4620 (reorder_insns_nobb): Likewise for params "from", "to", "after"
4622 (push_to_sequence): Likewise for param "first" and local "last".
4623 (push_to_sequence2): Likewise for params "first" and "last".
4624 * lra.c (emit_add3_insn): Likewise for local "last".
4625 (lra_emit_add): Likewise.
4626 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4628 (process_address_1): Likewise for locals "insn", last".
4629 * modulo-sched.c (ps_first_note): Likewise for return type.
4630 * optabs.c (expand_binop_directly): Likewise for param "last".
4632 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4634 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4636 * emit-rtl.c (get_last_insn_anywhere): Likewise.
4638 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4640 * function.h (struct sequence_stack): Strengthen fields "first"
4641 and "last" from rtx to rtx_insn *.
4642 (struct emit_status): Likewise for fields "x_first_insn" and
4645 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4646 (set_first_insn): Add checked cast.
4647 (get_last_insn): Remove now-redundant checked cast.
4648 (set_last_insn): Add checked cast.
4650 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4651 "saved_first" and "saved_last" from rtx to rtx_insn *.
4653 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4655 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4656 (unlink_insn_chain): Strengthen both params from rtx to
4659 * cfgrtl.c (cfg_layout_function_header): Likewise for this
4661 (unlink_insn_chain): Likewise for params "first" and "last".
4662 Remove now-redundant checked cast.
4663 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4664 (fixup_reorder_chain): Strengthen local "insn" from rtx to
4666 * emit-rtl.c (link_insn_into_chain): Likewise for all three
4668 (add_insn): Likewise for param "insn" and local "prev".
4669 (add_insn_after_nobb): Likewise for both params and local "next".
4670 (add_insn_before_nobb): Likewise for both params and local "prev".
4671 (add_insn_after): Rename param "after" to "uncast_after",
4672 introducing local "after" with another checked cast.
4673 (add_insn_before): Rename params "insn" and "before", giving them
4674 "uncast_" prefixes, adding the old names back using checked casts.
4675 (emit_note_after): Likewise for param "after".
4676 (emit_note_before): Likewise for param "before".
4677 (emit_label): Add a checked cast.
4679 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4681 * cselib.h (cselib_record_sets_hook): Strengthen initial param
4682 "insn" from rtx to rtx_insn *.
4684 * cselib.c (cselib_record_sets_hook): Likewise.
4686 * var-tracking.c (add_with_sets): Likewise, renaming back from
4687 "uncast_insn" to "insn" and eliminating the checked cast from rtx
4690 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4692 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4693 and "header_" from rtx to rtx_insn *.
4694 (struct basic_block_d): Likewise for field "head_" within "x"
4695 field of union basic_block_il_dependent.
4696 (BB_HEAD): Drop function...
4697 (SET_BB_HEAD): ...and this function in favor of...
4698 (BB_HEAD): ...reinstate macro.
4699 (BB_END): Drop function...
4700 (SET_BB_END): ...and this function in favor of...
4701 (BB_END): ...reinstate macro.
4702 (BB_HEADER): Drop function...
4703 (SET_BB_HEADER): ...and this function in favor of...
4704 (BB_HEADER): ...reinstate macro.
4706 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4707 (fix_crossing_unconditional_branches): Likewise.
4708 * caller-save.c (save_call_clobbered_regs): Likewise.
4709 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4710 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4711 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4712 (merge_blocks_move_successor_nojumps): Likewise.
4713 (outgoing_edges_match): Update use of for_each_rtx to
4714 for_each_rtx_in_insn.
4715 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4716 (expand_gimple_cond): Likewise.
4717 (expand_gimple_tailcall): Likewise.
4718 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4720 (construct_exit_block): Drop use of SET_BB_END.
4721 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4723 (delete_insn): Rename param "insn" to "uncast_insn", introducing
4724 a new local "insn" with a checked cast to rtx_insn *. Drop use of
4725 SET_BB_HEAD and SET_BB_END.
4726 (create_basic_block_structure): Drop use of SET_BB_HEAD and
4728 (rtl_delete_block): Drop use of SET_BB_HEAD.
4729 (rtl_split_block): Drop use of SET_BB_END.
4730 (emit_nop_for_unique_locus_between): Likewise.
4731 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4732 (block_label): Drop use of SET_BB_HEAD.
4733 (fixup_abnormal_edges): Drop use of SET_BB_END.
4734 (record_effective_endpoints): Drop use of SET_BB_HEADER.
4735 (relink_block_chain): Likewise.
4736 (fixup_reorder_chain): Drop use of SET_BB_END.
4737 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4738 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4739 rtx_insn **. Drop use of SET_BB_HEADER.
4740 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4742 (BB_HEAD): Delete this function.
4743 (SET_BB_HEAD): Likewise.
4745 (SET_BB_END): Likewise.
4746 (BB_HEADER): Likewise.
4747 (SET_BB_HEADER): Likewise.
4748 * emit-rtl.c (add_insn_after): Rename param "insn" to
4749 "uncast_insn", adding a new local "insn" and a checked cast to
4750 rtx_insn *. Drop use of SET_BB_END.
4751 (remove_insn): Strengthen locals "next" and "prev" from rtx to
4752 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
4753 (reorder_insns): Drop use of SET_BB_END.
4754 (emit_insn_after_1): Strengthen param "first" and locals "last",
4755 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
4756 (emit_pattern_after_noloc): Add checked cast.
4757 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4758 (restore_other_notes): Likewise.
4759 (move_insn): Likewise.
4760 (sched_extend_bb): Likewise.
4761 (fix_jump_move): Likewise.
4762 * ifcvt.c (noce_process_if_block): Likewise.
4763 (dead_or_predicable): Likewise.
4764 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4765 * reg-stack.c (change_stack): Drop use of SET_BB_END.
4766 * sel-sched-ir.c (sel_move_insn): Likewise.
4767 * sel-sched.c (move_nop_to_previous_block): Likewise.
4769 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4771 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4773 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4775 * basic-block.h (create_basic_block_structure): Strengthen params
4776 1 "head" and 2 "end" from rtx to rtx_insn *.
4777 * cfgrtl.c (create_basic_block_structure): Likewise.
4778 (rtl_create_basic_block): Update casts from void * to rtx to
4779 rtx_insn *, so that we can pass them as rtx_insn * to
4780 create_basic_block_structure.
4781 * sel-sched-ir.c (sel_create_basic_block): Likewise.
4783 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4785 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4787 (check_for_inc_dec): Strengthen param "insn" from rtx to
4790 * cselib.h (cselib_process_insn): Likewise.
4792 * cselib.c (cselib_record_sets): Likewise.
4793 (cselib_process_insn): Likewise.
4795 * dse.c (struct insn_info): Likewise for field "insn".
4796 (check_for_inc_dec_1): Likewise for local "insn".
4797 (check_for_inc_dec): Likewise for param "insn".
4798 (scan_insn): Likewise.
4799 (dse_step1): Likewise for local "insn".
4801 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4802 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
4804 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4806 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4807 from rtx to rtx_insn *.
4808 (DEP_PRO): Delete this function and...
4809 (SET_DEP_PRO): ...this function in favor of...
4810 (DEP_PRO): ...reinstate this macro.
4811 (DEP_CON): Delete this function and...
4812 (SET_DEP_CON): ...this function in favor of...
4813 (DEP_CON): ...reinstate this old macro.
4814 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4815 (init_dep): Likewise.
4816 (set_priorities): Likewise for both params.
4817 (sd_copy_back_deps): Likewise for params 1 and 2.
4819 * haifa-sched.c (priority): Likewise for param "insn" and local
4821 (set_priorities): Likewise for params "head" and "tail" and local
4823 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4825 (add_to_speculative_block): Add a checked cast.
4826 (create_check_block_twin): Drop use of SET_DEP_CON.
4827 (add_jump_dependencies): Strengthen params "insn" and "jump" from
4830 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4831 Drop use of SET_DEP_PRO
4832 (init_dep): Strengthen params "pro" and "con" from rtx to
4834 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
4838 (SET_DEP_PRO): Delete.
4839 (SET_DEP_CON): Delete.
4841 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4843 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4844 from rtx to rtx_insn *.
4845 (VINSN_INSN_RTX): Eliminate rvalue function and...
4846 (SET_VINSN_INSN): ...lvalue function in favor of...
4847 (VINSN_INSN_RTX): reinstate this old macro.
4849 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4850 in favor of VINSN_INSN_RTX.
4851 (VINSN_INSN_RTX): Delete this function.
4852 (SET_VINSN_INSN_RTX): Likewise.
4854 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4856 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4857 (BND_TO): Delete this function and...
4858 (SET_BND_TO): ...this functions in favor of...
4859 (BND_TO): ...reinstating this macro.
4860 (struct _fence): Strengthen field "executing_insns" from
4861 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
4862 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4863 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4864 and param "insn" from rtx to insn_t.
4865 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4868 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4870 (rtx_vec_t): Likewise.
4871 (struct sched_deps_info_def): Strengthen param of "start_insn"
4872 callback from rtx to rtx_insn *. Likewise for param "insn2" of
4873 "note_mem_dep" callback and first param of "note_dep" callback.
4875 * haifa-sched.c (add_to_speculative_block): Strengthen param
4876 "insn" from rtx to rtx_insn *.
4877 (clear_priorities): Likewise.
4878 (calc_priorities): Likewise for local "insn".
4880 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4881 Remove redundant checked cast.
4882 (haifa_note_mem_dep): Likewise for param "pending_insn".
4883 (haifa_note_dep): Likewise for param "elem".
4884 (note_mem_dep): Likewise for param "e".
4885 (sched_analyze_1): Add checked casts.
4886 (sched_analyze_2): Likewise.
4888 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4889 from rtx to rtx_insn *.
4890 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4891 from vec<rtx> * to vec<rtx_insn *> *.
4893 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4895 (flist_add): Strengthen param "executing_insns" from
4896 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4897 (advance_deps_context): Remove now-redundant checked cast.
4898 (init_fences): Replace uses of NULL_RTX with NULL.
4899 (merge_fences): Strengthen params "last_scheduled_insn" and
4900 "sched_next" from rtx to rtx_insn * and "executing_insns" from
4901 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4902 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
4903 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
4904 an instruction, rather than doing double-duty as a pattern.
4905 (return_nop_to_pool): Update for change of insn_t.
4906 (deps_init_id): Remove now-redundant checked cast.
4907 (struct sched_scan_info_def): Strengthen param of "init_insn"
4908 callback from rtx to insn_t.
4909 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
4910 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
4912 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
4913 "end" from rtx to rtx_insn *.
4914 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
4915 (rtx insn_rtx, bool force_unique_p)
4916 (BND_TO): Delete function.
4917 (SET_BND_TO): Delete function.
4919 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
4921 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
4922 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
4924 (undo_transformations): Likewise for param "insn".
4925 (update_liveness_on_insn): Likewise.
4926 (compute_live_below_insn): Likewise for param "insn" and local
4928 (update_data_sets): Likewise for param "insn".
4929 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4930 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4931 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4933 (move_cond_jump): Likewise for param "insn".
4934 (move_cond_jump): Drop use of SET_BND_TO.
4935 (compute_av_set_on_boundaries): Likewise.
4936 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4937 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4938 from rtx to rtx_insn *.
4939 (maybe_emit_renaming_copy): Likewise for param "insn".
4940 (maybe_emit_speculative_check): Likewise.
4941 (handle_emitting_transformations): Likewise.
4942 (remove_insn_from_stream): Likewise.
4943 (code_motion_process_successors): Strengthen local "succ" from rtx
4946 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4948 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4949 ilist_t, not _xlist_t;
4950 (ILIST_INSN): Define in terms of new union field "insn".
4951 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4953 (struct _list_node): Add new field "insn" to the union, of type
4955 (ilist_add): Replace macro with an inline function, requiring an
4957 (ilist_remove): Define this macro directly in terms of
4958 _list_remove, rather than indirectly via _xlist_remove.
4959 (ilist_clear): Likewise, in terms of _list_clear rather than
4961 (ilist_is_in_p): Replace macro with an inline function, requiring
4963 (_list_iter_cond_insn): New function.
4964 (ilist_iter_remove): Define this macro directly in terms of
4965 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
4966 (ilist_iterator): Define directly in terms of _list_iterator
4967 rather than indirectly through _xlist_iterator.
4968 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
4969 than in terms of _FOR_EACH_X.
4970 (FOR_EACH_INSN_1): Likewise.
4972 2014-08-26 Joseph Myers <joseph@codesourcery.com>
4976 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
4977 DECL_HARD_REGISTER and return for invalid register specifications.
4978 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
4979 DECL_HARD_REGISTER, call expand_one_error_var.
4980 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
4981 CC_REGNUM with non-MODE_CC modes.
4982 (arm_regno_class): Return NO_REGS for PC_REGNUM.
4984 2014-08-26 Marek Polacek <polacek@redhat.com>
4987 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
4989 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
4991 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
4992 qi cost; add di cost.
4993 (cortexa57_addrcost_table): Likewise.
4995 2014-08-26 Marek Polacek <polacek@redhat.com>
4998 * expr.c (is_aligning_offset): Remove logical not.
5000 2014-08-26 Marek Polacek <polacek@redhat.com>
5003 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5004 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5006 2014-08-26 Richard Biener <rguenther@suse.de>
5008 PR tree-optimization/62175
5009 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5010 expand possibly trapping operations.
5012 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5014 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5015 "insn" from rtx to rtx_insn *.
5016 (permute_load): Likewise for param "insn".
5017 (permute_store): Likewise.
5018 (handle_special_swappables): Likewise for local "insn".
5019 (replace_swap_with_copy): Likewise for locals "insn" and
5021 (rs6000_analyze_swaps): Likewise for local "insn".
5023 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5025 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5028 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5030 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5031 "note_list" from rtx to rtx_insn *.
5032 (BB_NOTE_LIST): Replace this function and...
5033 (SET_BB_NOTE_LIST): ...this function with...
5034 (BB_NOTE_LIST): ...the former macro implementation.
5036 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5037 local "from_start" from rtx to rtx_insn *. Strengthen param
5038 "to_endp" from rtx * to rtx_insn **.
5040 * haifa-sched.c (concat_note_lists): Likewise.
5041 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5043 (sel_restore_notes): Likewise.
5044 (move_bb_info): Likewise.
5045 (BB_NOTE_LIST): Delete this function.
5046 (SET_BB_NOTE_LIST): Delete this function.
5047 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5048 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5050 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5052 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5053 from rtx * to rtx_insn **.
5054 (reorder2): Likewise.
5055 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5056 from rtx to rtx_insn *.
5058 * doc/tm.texi: Update mechanically for above change to target.def.
5060 * sched-int.h (note_list): Strengthen this variable from rtx to
5062 (remove_notes): Likewise for both params.
5063 (restore_other_notes): Likewise for return type and first param.
5064 (struct ready_list): Strengthen field "vec" from rtx * to
5066 (struct dep_replacement): Strenghten field "insn" from rtx to
5068 (struct deps_desc): Likewise for fields "last_debug_insn",
5070 (struct haifa_sched_info): Likewise for callback field
5071 "can_schedule_ready_p"'s param, for first param of "new_ready"
5072 callback field, for both params of "rank" callback field, for
5073 first field of "print_insn" callback field (with a const), for
5074 both params of "contributes_to_priority" callback, for param
5075 of "insn_finishes_block_p" callback, for fields "prev_head",
5076 "next_tail", "head", "tail", for first param of "add_remove_insn"
5077 callback, for first param of "begin_schedule_ready" callback, for
5078 both params of "begin_move_insn" callback, and for second param
5079 of "advance_target_bb" callback.
5080 (add_dependence): Likewise for params 1 and 2.
5081 (sched_analyze): Likewise for params 2 and 3.
5082 (deps_analyze_insn): Likewise for param 2.
5083 (ready_element): Likewise for return type.
5084 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5085 (try_ready): Strenghten param from rtx to rtx_insn *.
5086 (sched_emit_insn): Likewise for return type.
5087 (record_delay_slot_pair): Likewise for params 1 and 2.
5088 (add_delay_dependencies): Likewise for param.
5089 (contributes_to_priority): Likewise for both params.
5090 (find_modifiable_mems): Likewise.
5092 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5093 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5094 "first_older_only_insn" from rtx to rtx_insn *.
5095 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5098 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5099 "last_scheduled_iter0" from rtx to rtx_insn *.
5100 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5101 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5102 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5103 "insn" from rtx to rtx_insn *.
5104 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5106 (c6x_sched_reorder2): Strengthen param "ready" and locals
5107 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5108 "insn" from rtx to rtx_insn *.
5109 (c6x_variable_issue): Add a checked cast when assigning from insn
5110 to ss.last_scheduled_iter0.
5111 (split_delayed_branch): Strengthen param "insn" and local "i1"
5112 from rtx to rtx_insn *.
5113 (split_delayed_nonbranch): Likewise.
5114 (undo_split_delayed_nonbranch): Likewise for local "insn".
5115 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5116 "entry_after", "end_packet", "head_insn", "tail_insn",
5117 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5118 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5119 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5120 but add a checked cast on loop->start_label. Consolidate calls to
5121 avoid assigning result of gen_spkernel to "insn", now an
5124 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5125 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5127 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5128 rtx_insn **. Strengthen locals "top", "next" from rtx to
5130 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5131 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5132 (add_parameter_dependencies): Strengthen params "call", "head" and
5133 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5134 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5135 (add_dependee_for_func_arg): Likewise for param "arg" and local
5137 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5138 "tail" and locals "insn", "first_arg".
5140 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5141 for params "head", "tail" and locals "insn", "next", "next_tail".
5142 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5143 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5144 "insn", "lowest", "highest" from rtx to rtx_insn *.
5145 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5147 (ia64_sched_reorder2): Likewise.
5149 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5150 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5151 from rtx * to rtx_insn **.
5152 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5154 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5156 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5157 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5160 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5161 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5163 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5164 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5165 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5167 (vr4130_reorder): Likewise.
5168 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5170 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5172 (mips_sched_reorder): Likewise.
5173 (mips_sched_reorder2): Likewise.
5175 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5177 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5178 Strengthen local "tmp" from rtx to rtx_insn *.
5179 (rs6000_sched_reorder2): Likewise.
5181 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5182 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5183 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5184 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5186 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5187 "tmp2" from rtx to rtx_insn *.
5188 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5189 Strengthen local "insn" from rtx to rtx_insn *.
5190 (ready_reorder): Strengthen param "ready" from rtx * to
5191 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5192 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5193 (sh_reorder2): Likewise.
5195 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5196 local "insn" from rtx to rtx_insn *.
5198 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5200 (scheduled_insns): Strengthen this variable from vec<rtx> to
5202 (set_modulo_params): Likewise for locals "i1", "i2".
5203 (record_delay_slot_pair): Likewise for params "i1", "i2".
5204 (add_delay_dependencies): Likewise for param "insn".
5205 (cond_clobbered_p): Likewise.
5206 (recompute_todo_spec): Likewise for local "prev".
5207 (last_scheduled_insn): Likewise for this variable.
5208 (nonscheduled_insns_begin): Likewise.
5209 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5211 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5213 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5214 Strengthen local "insn" from rtx to rtx_insn *.
5215 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5216 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5217 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5218 (ready_remove_first): Likewise for return type and local "t".
5219 (ready_element): Likewise for return type.
5220 (ready_remove): Likewise for return type and local "t".
5221 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5222 (check_clobbered_conditions): Strengthen local "x" from rtx to
5223 rtx_insn *, adding a checked cast.
5224 (schedule_insn): Likewise for param "insn".
5225 (remove_notes): Likewise for params "head", "tail" and locals
5226 "next_tail", "insn", "next".
5227 (struct haifa_saved_data): Likewise for fields
5228 "last_scheduled_insn", "nonscheduled_insns_begin".
5229 (save_backtrack_point): Update for change to field "vec" of
5231 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5233 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5234 from rtx to rtx_insn *
5235 (resolve_dependencies): Strengthen param "insn" from rtx to
5237 (restore_other_notes): Likewise for return type, for param "head"
5238 and local "note_head".
5239 (undo_all_replacements): Likewise for local "insn".
5240 (first_nonscheduled_insn): Likewise for return type and local "insn".
5241 (queue_to_ready): Likewise for local "insn", adding checked casts.
5242 (early_queue_to_ready): Likewise for local "insn".
5243 (debug_ready_list_1): Strengthen local "p" from rtx * to
5245 (move_insn): Strengthen param "insn" and local "note" from rtx to
5247 (insn_finishes_cycle_p): Likewise for param "insn".
5248 (max_issue): Likewise for local "insn".
5249 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5251 (commit_schedule): Strengthen param "prev_head" and local "insn"
5252 from rtx to rtx_insn *
5253 (prune_ready_list): Likewise for local "insn".
5254 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5255 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5256 (set_priorities): Likewise for local "prev_head".
5257 (try_ready): Likewise for param "next".
5258 (fix_tick_ready): Likewise.
5259 (change_queue_index): Likewise.
5260 (sched_extend_ready_list): Update for change to field "vec" of
5262 (generate_recovery_code): Strengthen param "insn" from rtx to
5264 (begin_speculative_block): Likewise.
5265 (create_check_block_twin): Likewise for param "insn" and locals
5266 "label", "check", "twin". Introduce local "check_pat" to avoid
5267 "check" being used as a plain rtx before being used as an insn.
5268 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5269 extracting elements from ready_list.
5270 (sched_remove_insn): Strengthen param "insn" from rtx to
5272 (sched_emit_insn): Likewise for return type.
5273 (ready_remove_first_dispatch): Likewise for return type and local
5276 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5278 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5281 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5282 from rtx to rtx_insn *.
5283 (add_dependence_list): Likewise for param "insn". Add a checked
5285 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5286 to rtx_insn *. Strengthen param "list_p" from rtx * to
5288 (chain_to_prev_insn): Strengthen param "insn" and locals
5289 "prec_nonnote", "i" from rtx to rtx_insn *.
5290 (flush_pending_lists): Likewise for param "insn".
5291 (cur_insn): Likewise for this variable.
5292 (haifa_start_insn): Add a checked cast.
5293 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5294 (sched_analyze_reg): Likewise for param "insn".
5295 (sched_analyze_1): Likewise.
5296 (sched_analyze_2): Likewise. Add checked casts.
5297 (sched_analyze_insn): Likewise. Also for local "prev".
5298 (deps_analyze_insn): Likewise for param "insn".
5299 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5300 (add_dependence_1): Likewise for params "insn", "elem".
5301 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5302 (parse_add_or_inc): Likewise for param "insn".
5303 (find_inc): Likewise for local "inc_cand".
5304 (find_modifiable_mems): Likewise for params "head", "tail" and
5305 locals "insn", "next_tail".
5307 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5308 (begin_schedule_ready): Likewise for param "insn".
5309 (begin_move_insn): Likewise for params "insn" and "last".
5310 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5312 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5313 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5314 (ebb_add_remove_insn): Likewise for param "insn".
5315 (advance_target_bb): Likewise.
5317 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5319 (check_live): Likewise for param "insn".
5320 (init_ready_list): Likewise for local "insn".
5321 (can_schedule_ready_p): Likewise for param "insn".
5322 (begin_schedule_ready): Likewise.
5323 (new_ready): Likewise for param "next".
5324 (rgn_print_insn): Likewise for param "insn".
5325 (rgn_rank): Likewise for params "insn1", "insn2".
5326 (contributes_to_priority): Likewise for params "next", "insn".
5327 (rgn_insn_finishes_block_p): Likewise for param "insn".
5328 (add_branch_dependences): Likewise for params "head", "tail" and
5329 locals "insn", "last".
5330 (rgn_add_remove_insn): Likewise for param "insn".
5331 (advance_target_bb): Likewise.
5333 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5334 const_rtx to const rtx_insn *.
5336 * sel-sched-dump.h (sel_print_insn): Likewise.
5338 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5339 (deps_init_id): Likewise.
5341 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5342 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5345 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5347 * output.h (final_start_function): Strengthen param 1 from rtx to
5350 * final.c (final_start_function): Likewise, renaming back from
5351 "uncast_first" to "first", and dropping the checked cast from rtx
5354 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5356 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5357 * final.c (final): Likewise. Rename param back from
5358 "uncast_first" to "first" and eliminate the checked cast from rtx
5361 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5363 * output.h (shorten_branches): Strengthen param from rtx to
5366 * final.c (shorten_branches): Likewise, renaming param back from
5367 "uncast_first" to "first", and dropping the checked cast from rtx
5370 * genattr.c (gen_attr): Likewise when writing out the prototype of
5373 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5375 * sched-int.h (struct haifa_sched_info): Strengthen fields
5376 "prev_head" and "next_tail" from rtx to rtx_insn *.
5378 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5380 * rtl.h (rtx_jump_table_data::get_labels): New method.
5381 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5382 with use of the new rtx_jump_table_data::get_labels method.
5383 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5384 to rtx_jump_table_data *. Simplify by using get_labels method.
5385 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5386 a dyn_cast, introducing local "table", using it to replace
5387 label-lookup logic with a get_labels method call.
5388 (patch_jump_insn): Simplify using get_labels method.
5389 * dwarf2cfi.c (create_trace_edges): Likewise.
5390 * rtlanal.c (label_is_jump_target_p): Likewise.
5392 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5394 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5397 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5398 (unshare_all_rtl_again): Likewise, also for local "p".
5400 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5402 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5404 * cfgrtl.c (delete_insn_and_edges): Likewise.
5406 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5408 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5409 from rtx to rtx_insn *.
5411 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5413 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5415 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5416 locals "returnjump", "epilogue_end", "insn", "next".
5418 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5419 "returnjump" from rtx * to rtx_insn **.
5420 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5422 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5424 * basic-block.h (struct edge_def). Strengthen "r" within
5425 union edge_def_insns from rtx to rtx_insn *.
5427 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5428 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5430 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5431 from rtx to rtx_insn *.
5432 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5434 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5435 (reg_used_on_edge): Likewise.
5436 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5437 (gt_pch_nx): New overload for rtx_insn *&.
5438 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5439 from rtx to rtx_insn *.
5441 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5443 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5444 from rtx to rtx_insn *.
5445 (BB_FOOTER): Replace function with access macro.
5446 (SET_BB_FOOTER): Delete.
5448 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5450 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5451 (emit_barrier_after_bb): Likewise.
5452 (record_effective_endpoints): Likewise.
5453 (relink_block_chain): Likewise.
5454 (fixup_fallthru_exit_predecessor): Likewise.
5455 (cfg_layout_duplicate_bb): Likewise.
5456 (cfg_layout_split_block): Likewise.
5457 (cfg_layout_delete_block): Likewise.
5458 (cfg_layout_merge_blocks): Likewise.
5459 (BB_FOOTER): Delete function.
5460 (SET_BB_FOOTER): Delete function.
5461 * combine.c (update_cfg_for_uncondjump): Replace uses of
5462 SET_BB_FOOTER with BB_FOOTER.
5464 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5466 * except.h (struct eh_landing_pad_d): Strengthen field
5467 "landing_pad" from rtx to rtx_code_label *.
5469 * except.c (sjlj_emit_dispatch_table): Likewise for param
5471 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5473 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5475 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5476 first param from rtx to rtx_insn *.
5477 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5478 field "set_frame_ptr_insn".
5479 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5480 "csend" from rtx to rtx_code_label *.
5481 (xtensa_expand_atomic): Likewise for local "csloop".
5482 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5484 (xtensa_call_tls_desc): Likewise for return type and locals
5485 "call_insn", "insns".
5486 (xtensa_legitimize_tls_address): Likewise for local "insns".
5487 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5489 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5491 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5492 first param from rtx to rtx_insn *.
5493 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5496 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5498 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5499 Strengthen param 1 from rtx to rtx_insn *.
5500 (tilepro_output_cbranch): Likewise.
5501 (tilepro_adjust_insn_length): Likewise.
5502 (tilepro_final_prescan_insn): Likewise for sole param.
5504 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5505 Likewise for local "last".
5506 (cbranch_predicted_p): Likewise for param "insn".
5507 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5508 (tilepro_output_cbranch_with_opcode): Likewise.
5509 (tilepro_output_cbranch): Likewise.
5510 (frame_emit_load): Likewise for return type and locals "seq",
5512 (emit_sp_adjust): Likewise for return type and local "insn".
5513 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5515 (tilepro_adjust_insn_length): Likewise for param "insn".
5516 (next_insn_to_bundle): Likewise for return type and params
5518 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5519 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5521 (match_addli_pcrel): Likewise for param "insn".
5522 (replace_addli_pcrel): Likewise.
5523 (match_auli_pcrel): Likewise.
5524 (replace_auli_pcrel): Likewise.
5525 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5527 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5528 "queue", "next_queue", "prev".
5529 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5530 (tilepro_final_prescan_insn): Likewise for param "insn".
5532 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5534 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5535 Strengthen param 1 from rtx to rtx_insn *.
5536 (tilegx_output_cbranch): Likewise.
5537 (tilegx_adjust_insn_length): Likewise.
5538 (tilegx_final_prescan_insn): Likewise for sole param.
5540 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5542 (cbranch_predicted_p): Likewise for param "insn".
5543 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5544 (tilegx_output_cbranch_with_opcode): Likewise.
5545 (tilegx_output_cbranch): Likewise.
5546 (frame_emit_load): Likewise for return type.
5547 (set_frame_related_p): Likewise for locals "seq", "insn".
5548 (emit_sp_adjust): Likewise for return type, and for local "insn".
5549 Introduce local "pat" for use in place of "insn" where the latter
5550 isn't an instruction.
5551 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5552 from rtx to rtx_insn *.
5553 (tilegx_adjust_insn_length): Likewise for param "insn".
5554 (next_insn_to_bundle): Likewise for return type and params "r" and
5556 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5558 (replace_insns): Likewise for params "old_insn", "new_insns".
5559 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5561 (replace_mov_pcrel_step2): Likewise.
5562 (replace_mov_pcrel_step3): Likewise.
5563 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5565 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5566 "queue", "next_queue", "prev".
5567 (tilegx_output_mi_thunk): Likewise for local "insn".
5568 (tilegx_final_prescan_insn): Likewise for param "insn".
5570 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5572 * config/spu/spu.c (frame_emit_store): Strengthen return type from
5574 (frame_emit_load): Likewise.
5575 (frame_emit_add_imm): Likewise, also for local "insn".
5576 (spu_expand_prologue): Likewise for local "insn".
5577 (struct spu_bb_info): Likewise for field "prop_jump".
5578 (emit_nop_for_insn): Likewise for param "insn" and local
5580 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5582 (spu_emit_branch_hint): Likewise for params "before", "branch" and
5583 locals "hint", "insn".
5584 (get_branch_target): Likewise for param "branch".
5585 (insn_clobbers_hbr): Likewise for param "insn".
5586 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5587 locals "insn", "before_4", "before_16".
5588 (insert_hbrp): Likewise for local "insn".
5589 (spu_machine_dependent_reorg): Likewise for locals "branch",
5590 "insn", "next", "bbend".
5591 (uses_ls_unit): Likewise for param "insn".
5592 (get_pipe): Likewise.
5593 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5594 introducing a checked cast.
5595 (spu_sched_adjust_cost): Likewise for params "insn" and
5597 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5598 (spu_sms_res_mii): Likewise.
5600 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5602 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5603 from rtx to rtx_insn *.
5604 (output_cbranch): Likewise for param 6.
5605 (output_return): Likewise for param 1.
5606 (output_sibcall): Likewise.
5607 (output_v8plus_shift): Likewise.
5608 (output_v8plus_mult): Likewise.
5609 (output_v9branch): Likewise for param 7.
5610 (output_cbcond): Likewise for param 3.
5612 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5614 (sparc_legitimize_pic_address): Likewise.
5615 (sparc_emit_call_insn): Likewise.
5616 (emit_save_or_restore_regs): Likewise.
5617 (emit_window_save): Likewise for return type and local "insn".
5618 (sparc_expand_prologue): Likewise for local "insn".
5619 (sparc_flat_expand_prologue): Likewise.
5620 (output_return): Likewise for param "insn".
5621 (output_sibcall): Likewise for param "insn" and local "delay".
5622 (output_ubranch): Likewise for param "insn".
5623 (output_cbranch): Likewise.
5624 (output_cbcond): Likewise.
5625 (output_v9branch): Likewise.
5626 (output_v8plus_shift): Likewise.
5627 (sparc_output_mi_thunk): Likewise for local "insn".
5628 (get_some_local_dynamic_name): Likewise.
5629 (output_v8plus_mult): Likewise for param "insn".
5631 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5633 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5634 from rtx to rtx_insn *.
5635 (output_branchy_insn): Likewise for param 3.
5636 (output_far_jump): Likewise for param 1.
5637 (final_prescan_insn): Likewise.
5638 (sh_insn_length_adjustment): Likewise for sole param.
5640 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5641 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5643 (sh_emit_compare_and_set): Likewise for local "lab".
5644 (output_far_jump): Strengthen param "insn" and local "prev" from
5646 (output_branchy_insn): Likewise for param "insn" and local
5648 (output_ieee_ccmpeq): Likewise for param "insn".
5649 (struct label_ref_list_d): Strengthen field "label" from rtx to
5651 (pool_node): Likewise.
5652 (pool_window_label): Likewise for this global.
5653 (add_constant): Likewise for return type and locals "lab", "new_rtx".
5654 (dump_table): Strengthen params "start", "barrier" and local
5655 "scan" from rtx to rtx_insn *.
5656 (broken_move): Likewise for param "insn".
5657 (untangle_mova): Likewise for params "first_mova" and "new_mova".
5658 Strengthen param "first_mova" from rtx * to rtx_insn **.
5659 (mova_p): Likewise for param "insn".
5660 (fixup_mova): Likewise for param "mova".
5661 (find_barrier): Likewise for return type, params "mova" and
5662 "from", and locals "barrier_before_mova", "found_barrier",
5663 "good_barrier", "orig", "last_symoff", "next". Strengthen local
5664 "label" from rtx to rtx_code_label *.
5665 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5667 (sh_reorg): Likewise for locals "link", "scan", "barrier".
5668 (split_branches): Likewise for param "first" and local "insn".
5669 (final_prescan_insn): Likewise for param "insn".
5670 (sequence_insn_p): Likewise for locals "prev", "next".
5671 (sh_insn_length_adjustment): Likewise for param "insn".
5672 (sh_can_redirect_branch): Likewise for local "insn".
5673 (find_r0_life_regions): Likewise for locals "end", "insn".
5674 (sh_output_mi_thunk): Likewise for local "insns".
5676 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5678 * config/score/score.c (score_output_mi_thunk): Strengthen local
5679 "insn" from rtx to rtx_insn *.
5680 (score_prologue): Likewise.
5682 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5684 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5685 1 from rtx to rtx_insn *.
5686 (s390_emit_jump): Likewise for return type.
5687 (s390_emit_call): Likewise.
5688 (s390_load_got): Likewise.
5690 * config/s390/s390.c (last_scheduled_insn): Likewise for this
5692 (s390_match_ccmode): Likewise for param "insn".
5693 (s390_emit_jump): Likewise for return type.
5694 (s390_split_branches): Likewise for local "label".
5695 (struct constant): Strengthen field "label" from rtx to
5697 (struct constant_pool): Likewise for field "label". Strengthen
5698 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5700 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5702 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5703 (s390_end_pool): Likewise.
5704 (s390_dump_pool): Likewise for local "insn".
5705 (s390_mainpool_start): Likewise.
5706 (s390_chunkify_start): Likewise.
5707 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5708 with insns. Strengthen locals "label", "jump", "barrier", "next",
5709 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5710 (s390_chunkify_finish): Strengthen local "insn" from rtx to
5712 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5713 "jump", "label", "next_insn".
5714 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5715 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5717 (s390_load_got): Likewise for return type and local "insns".
5718 (s390_save_gprs_to_fprs): Likewise for local "insn".
5719 (s390_restore_gprs_from_fprs): Likewise.
5720 (pass_s390_early_mach::execute): Likewise.
5721 (s390_emit_prologue): Likewise for local "insns".
5722 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5724 (s390_emit_call): Strengthen return type and local "insn" from
5726 (s390_emit_tpf_eh_return): Likewise for local "insn".
5727 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5728 "next_insn", introducing locals "s_pat", "rpat" to allow this.
5729 (s390_fix_long_loop_prediction): Likewise for param "insn" and
5731 (s390_non_addr_reg_read_p): Likewise for param "insn".
5732 (find_cond_jump): Likewise for return type and param "insn".
5733 (s390_swap_cmp): Likewise for param "insn".
5734 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5735 "prev_insn", "next_insn".
5736 (s390_reorg): Likewise for locals "insn", "target".
5737 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5738 (s390_sched_variable_issue): For now, rename param "insn" to
5739 "uncast_insn", introducing a checked cast.
5740 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5742 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5743 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
5745 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5747 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5748 param from rtx to rtx_insn *.
5749 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5751 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5753 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5754 4 from rtx to rtx_insn *.
5755 (rs6000_final_prescan_insn): Likewise for first param.
5756 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5758 (rs6000_get_some_local_dynamic_name): Likewise.
5759 (output_cbranch): Likewise for param "insn".
5760 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5761 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5762 (rs6000_emit_allocate_stack): Likewise for local "insn".
5763 (load_cr_save): Likewise.
5764 (restore_saved_cr): Likewise.
5765 (restore_saved_lr): Likewise.
5766 (emit_cfa_restores): Likewise.
5767 (rs6000_output_function_epilogue): Likewise for locals "insn" and
5768 "deleted_debug_label".
5769 (rs6000_output_mi_thunk): Likewise for local "insn".
5770 (rs6000_final_prescan_insn): Likewise for param "insn".
5772 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5774 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5775 Strengthen param "insn" from rtx to rtx_insn *.
5776 * config/picochip/picochip.c (picochip_current_prescan_insn):
5777 Likewise for this variable.
5778 (picochip_final_prescan_insn): Likewise for param "insn".
5780 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5782 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5783 from rtx to rtx_insn *.
5784 (pa_output_indirect_call): Likewise.
5785 (pa_adjust_insn_length): Likewise.
5786 (pa_attr_length_millicode_call): Likewise.
5787 (pa_attr_length_call): Likewise.
5788 (pa_attr_length_indirect_call): Likewise.
5790 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5792 (pa_attr_length_millicode_call): Likewise.
5793 (pa_attr_length_call): Likewise.
5794 (pa_output_call): Likewise.
5795 (pa_attr_length_indirect_call): Likewise.
5796 (pa_output_indirect_call): Likewise.
5798 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5800 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5801 Strengthen first param from rtx to rtx_insn *.
5802 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5805 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5807 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5808 type from rtx to rtx_insn *.
5809 (mips_expand_call): Likewise.
5810 (mips_adjust_insn_length): Likewise for first param.
5811 (mips_output_conditional_branch): Likewise.
5812 (mips_output_order_conditional_branch): Likewise.
5813 (mips_final_prescan_insn): Likewise.
5815 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5816 rtx_insn * for the SEQUENCE case.
5817 (SEQ_END): Likewise.
5818 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5819 (mips_emit_call_insn): Likewise, also for local "insn".
5820 (mips16_gp_pseudo_reg): Likewise for local "scan".
5821 (mips16_build_call_stub): Likewise for return type and for local
5822 "insn". Introduce a new local "pattern" so that "insn" can indeed
5824 (mips_expand_call): Strengthen return type and local "insn" from
5826 (mips_block_move_loop): Strengthen local "label" from rtx to
5828 (mips_expand_synci_loop): Likewise for locals "label",
5830 (mips_set_frame_expr): Strengthen local "insn" from rtx to
5832 (mips16e_collect_argument_saves): Likewise for locals "insn",
5834 (mips_find_gp_ref): Likewise for param of callback for "pred"
5835 param, and for local "insn".
5836 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5837 (mips_insn_has_flexible_gp_ref_p): Likewise.
5838 (mips_epilogue_emit_cfa_restores): Likewise for return type and
5840 (mips_epilogue_set_cfa): Likewise for local "insn".
5841 (mips_expand_epilogue): Likewise.
5842 (mips_adjust_insn_length): Likewise for param "insn".
5843 (mips_output_conditional_branch): Likewise.
5844 (mips_output_order_conditional_branch): Likewise.
5845 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5846 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5847 "falu2_turn_enabled_insn".
5848 (mips_builtin_branch_and_move): Strengthen locals "true_label",
5849 "done_label" from rtx to rtx_code_label *.
5850 (struct mips16_constant): Likewise for field "label".
5851 (mips16_add_constant): Likewise for return type.
5852 (mips16_emit_constants_1): Strengthen return type and param "insn"
5853 from rtx to rtx_insn *.
5854 (mips16_emit_constants): Likewise for param "insn".
5855 (mips16_insn_length): Likewise.
5856 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5857 to rtx_code_label *.
5858 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5859 from rtx to rtx_insn *.
5860 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5861 "jump". Strengthen local "label" from rtx to rtx_code_label *.
5862 (r10k_simplify_address): Strengthen param "insn" and local
5863 "def_insn" from rtx to rtx_insn *.
5864 (r10k_safe_address_p): Strengthen param "insn" from rtx to
5866 (r10k_needs_protection_p_1): Update target type of cast of data
5867 from to rtx to rtx_insn *.
5868 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5869 rtx * to rtx_insn **.
5870 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5872 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5873 (mips_call_expr_from_insn): Likewise for param "insn".
5874 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5875 (mips_find_pic_call_symbol): Likewise for param "insn".
5876 (mips_annotate_pic_calls): Likewise for local "insn".
5877 (mips_sim_insn): Likewise for this variable.
5878 (struct mips_sim): Likewise for field "insn" within elements of
5880 (mips_sim_wait_reg): Likewise for param "insn".
5881 (mips_sim_wait_regs): Likewise.
5882 (mips_sim_wait_units): Likewise.
5883 (mips_sim_wait_insn): Likewise.
5884 (mips_sim_issue_insn): Likewise.
5885 (mips_sim_finish_insn): Likewise.
5886 (mips_seq_time): Likewise for param "seq" and local "insn".
5887 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5888 locals "first", "second".
5889 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5890 "last", "last2", "next".
5891 (mips_avoid_hazard): Likewise for params "after", "insn".
5892 (mips_reorg_process_insns): Likewise for locals "insn",
5893 "last_insn", "subinsn", "next_insn".
5894 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5895 (mips16_split_long_branches): Likewise for locals "insn" "jump",
5897 (mips_output_mi_thunk): Likewise for local "insn".
5898 (mips_final_prescan_insn): Likewise for param "insn".
5900 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5902 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
5903 Strengthen return type and local "insns" from rtx to rtx_insn *.
5904 (microblaze_legitimize_tls_address): Likewise for local "insns".
5905 (microblaze_block_move_loop): Strengthen local "label" from rtx
5906 to rtx_code_label *.
5907 (microblaze_expand_prologue): Strengthen two locals named "insn"
5908 from rtx to rtx_insn *.
5909 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
5910 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
5911 "insn". Strengthen locals "div_label", "div_end_label" from rtx
5912 to rtx_code_label *.
5914 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5916 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
5917 param from rtx to rtx_insn *.
5918 (mep_reuse_lo): Likewise for third param.
5919 (mep_use_post_modify_p): Likewise for first param.
5920 (mep_core_address_length): Likewise.
5921 (mep_cop_address_length): Likewise.
5922 (mep_final_prescan_insn): Likewise.
5923 (mep_store_data_bypass_p): Likewise for both params.
5924 (mep_mul_hilo_bypass_p): Likewise.
5925 (mep_ipipe_ldc_p): Likewise for param.
5927 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5928 (mep_rewrite_mult): Likewise.
5929 (mep_rewrite_mulsi3): Likewise.
5930 (mep_rewrite_maddsi3): Likewise.
5931 (mep_reuse_lo_p_1): Likewise.
5932 (mep_reuse_lo_p): Likewise.
5933 (mep_frame_expr): Likewise.
5934 (mep_make_parallel): Likewise for both params.
5935 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5937 (mep_use_post_modify_p): Likewise for param "insn".
5938 (mep_core_address_length): Likewise.
5939 (mep_cop_address_length): Likewise.
5940 (mep_reg_set_in_function): Likewise for local "insn".
5941 (mep_asm_without_operands_p): Likewise.
5942 (F): Likewise for return type and param "x".
5943 (add_constant): Likewise for local "insn".
5944 (maybe_dead_move): Likewise for return type and local "insn".
5945 (mep_expand_prologue): Likewise for local "insn".
5946 (mep_final_prescan_insn): Likewise for param "insn".
5947 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5948 "next", "follow", "x".
5949 (mep_insert_repeat_label_last): Likewise for return type, param
5950 "last_insn", and locals "next", "prev". Strengthen param "label"
5951 from rtx to rtx_code_label *.
5952 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5954 (struct mep_doloop_end): Likewise for fields "insn" and
5956 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5957 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5958 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5960 (mep_invert_branch): Likewise for params "insn" and "after".
5961 (mep_reorg_erepeat): Likewise for param "insns" and locals
5962 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5963 "l" from rtx to rtx_code_label *.
5964 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
5965 from rtx to rtx_insn *.
5966 (mep_reorg_addcombine): Likewise for param "insns" and locals
5968 (add_sp_insn_p): Likewise for param "insn".
5969 (mep_reorg_noframe): Likewise for param "insns" and locals
5970 "start_frame_insn", "end_frame_insn", "next".
5971 (mep_reorg): Likewise for local "insns".
5972 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
5974 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
5975 (mep_mul_hilo_bypass_p): Likewise.
5976 (mep_ipipe_ldc_p): Likewise for param "insn".
5977 (mep_make_bundle): Likewise for return type, param "cop" and local
5978 "insn", splitting out the latter into a new local "seq" for when it
5979 is a SEQUENCE rather than an insn.
5980 (core_insn_p): Likewise for param "insn".
5981 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
5982 "last", "first", "note", "prev", "core_insn".
5984 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5986 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
5988 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
5989 (m68k_final_prescan_insn): Likewise for first param.
5991 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
5992 (m68k_set_frame_related): Likewise for param "insn".
5993 (output_btst): Likewise for param "insn".
5994 (m68k_final_prescan_insn): Likewise.
5995 (m68k_move_to_reg): Likewise for local "insn".
5996 (m68k_call_tls_get_addr): Likewise for local "insns".
5997 (m68k_call_m68k_read_tp): Likewise.
5998 (strict_low_part_peephole_ok): Likewise for param "first_insn".
5999 (m68k_output_mi_thunk): Likewise for local "insn".
6001 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6003 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6004 first param from rtx to rtx_insn *.
6005 (iq2000_adjust_insn_length): Likewise.
6006 (iq2000_output_conditional_branch): Likewise.
6007 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6008 "insn" and local "nop_insn".
6009 (iq2000_annotate_frame_insn): Likewise for param "insn".
6010 (iq2000_expand_prologue): Likewise for both locals "insn".
6011 (iq2000_adjust_insn_length): Likewise for param "insn".
6012 (iq2000_output_conditional_branch): Likewise.
6014 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6016 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6017 "insns" from rtx to rtx_insn *.
6018 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6019 (struct spill_fill_data): Likewise for field "init_after" and for
6020 elements of array field "prev_insn".
6021 (spill_restore_mem): Likewise for locals "insn", "first".
6022 (do_spill): Likewise for local "insn".
6023 (do_restore): Likewise.
6024 (ia64_expand_prologue): Likewise.
6025 (ia64_expand_epilogue): Likewise.
6026 (emit_insn_group_barriers): Likewise for locals "insn",
6028 (emit_all_insn_group_barriers): Likewise for locals "insn",
6030 (dfa_stop_insn): Likewise for this global.
6031 (dfa_pre_cycle_insn): Likewise.
6032 (ia64_nop): Likewise.
6033 (final_emit_insn_group_barriers): Likewise for locals "insn",
6035 (emit_predicate_relation_info): Likewise for locals "head", "n",
6037 (ia64_reorg): Likewise for local "insn".
6038 (ia64_output_mi_thunk): Likewise.
6039 (expand_vec_perm_interleave_2): Likewise for local "seq".
6041 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6043 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6044 param 1 "insn" from rtx to rtx_insn *.
6045 (ix86_use_lea_for_mov): Likewise.
6046 (ix86_avoid_lea_for_addr): Likewise.
6047 (ix86_split_lea_for_addr): Likewise.
6048 (ix86_lea_for_add_ok): Likewise.
6049 (ix86_output_call_insn): Likewise.
6051 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6052 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6053 (ix86_output_function_epilogue): Likewise for locals "insn",
6054 "deleted_debug_label".
6055 (legitimize_tls_address): Likewise for local "insn".
6056 (get_some_local_dynamic_name): Likewise.
6057 (increase_distance): Likewise for params "prev", "next".
6058 (distance_non_agu_define_in_bb): Likewise for params "insn",
6059 "start" and locals "prev", "next".
6060 (distance_non_agu_define): Likewise for param "insn".
6061 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6062 locals "next", "prev".
6063 (distance_agu_use): Likewise for param "insn".
6064 (ix86_lea_outperforms): Likewise.
6065 (ix86_ok_to_clobber_flags): Likewise.
6066 (ix86_avoid_lea_for_add): Likewise.
6067 (ix86_use_lea_for_mov): Likewise.
6068 (ix86_avoid_lea_for_addr): Likewise.
6069 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6070 (ix86_split_lea_for_addr): Likewise for param "insn".
6071 (ix86_lea_for_add_ok): Likewise for param "insn".
6072 (ix86_expand_carry_flag_compare): Likewise for local
6074 (ix86_expand_int_movcc): Likewise.
6075 (ix86_output_call_insn): Likewise for param "insn".
6076 (ix86_output_call_insn): Likewise for local "i".
6077 (x86_output_mi_thunk): Introduce local "insn", using it in place
6078 of "tmp" when dealing with insns.
6079 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6081 (ix86_pad_returns): Likewise for locals "ret", "prev".
6082 (ix86_count_insn_bb): Likewise for local "insn".
6083 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6084 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6085 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6086 (expand_vec_perm_interleave2): Likewise for local "seq".
6087 (expand_vec_perm_vperm2f128_vblend): Likewise.
6088 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6089 call to for_each_rtx with for_each_rtx_in_insn.
6091 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6093 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6094 "label" from rtx to rtx_code_label *.
6095 (ix86_expand_prologue): Likewise.
6096 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6098 (ix86_split_idivmod): Likewise for locals "end_label" and
6100 (ix86_expand_branch): Likewise for local "label2".
6101 (ix86_expand_aligntest): Likewise for return type and local "label".
6102 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6104 (expand_movmem_epilogue): Likewise for the various locals named
6106 (expand_setmem_epilogue): Likewise.
6107 (expand_small_movmem_or_setmem): Likewise for local "label".
6108 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6109 Strengthen param "done_label" from rtx * to rtx_code_label **.
6110 Strengthen locals "loop_label" and "label" from rtx to
6112 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6113 Likewise for locals "loop_label", "label".
6114 (ix86_expand_set_or_movmem): Likewise for locals "label",
6115 "jump_around_label", "hot_label".
6116 (ix86_expand_strlensi_unroll_1): Likewise for locals
6117 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6119 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6120 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6121 "label2", "jump_label".
6122 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6124 (ix86_expand_lfloorceil): Likewise for local "label".
6125 (ix86_expand_rint): Likewise.
6126 (ix86_expand_floorceildf_32): Likewise.
6127 (ix86_expand_floorceil): Likewise.
6128 (ix86_expand_rounddf_32): Likewise.
6129 (ix86_expand_trunc): Likewise.
6130 (ix86_expand_truncdf_32): Likewise.
6131 (ix86_expand_round): Likewise.
6133 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6135 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6136 first param from rtx to rtx_insn *.
6137 (h8300_insn_length_from_table): Likewise.
6138 * config/h8300/h8300.c (F): Likewise for return type and param
6140 (Fpa): Add a checked cast to rtx_insn *.
6141 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6143 (final_prescan_insn): Likewise for param "insn".
6144 (h8300_binary_length): Likewise.
6145 (h8300_insn_length_from_table): Likewise.
6147 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6149 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6150 Strengthen first param "insn" from rtx to rtx_insn *.
6152 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6154 (frame_insn): Likewise for return type. Introduce local "insn"
6155 for use in place of local "x" for use as an rtx_insn *.
6156 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6157 (epiphany_expand_prologue): Likewise for local "insn".
6158 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6159 * config/epiphany/resolve-sw-modes.c
6160 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6163 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6165 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6166 param from rtx to rtx_insn *.
6167 (c6x_final_prescan_insn): Likewise for first param.
6169 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6170 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6171 (c6x_expand_compare): Strengthen local "insns" from rtx to
6173 (c6x_get_unit_specifier): Likewise for param "insn".
6174 (c6x_print_unit_specifier_field): Likewise.
6175 (c6x_final_prescan_insn): Likewise.
6176 (emit_add_sp_const): Likewise for local "insn".
6177 (c6x_expand_prologue): Likewise.
6179 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6181 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6182 param 1 from rtx to rtx_insn *.
6183 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6184 the various locals named "insn".
6185 (expand_epilogue_reg_restore): Likewise.
6186 (frame_related_constant_load): Likewise.
6187 (add_to_reg): Likewise.
6188 (emit_link_insn): Likewise.
6189 (do_link): Likewise.
6190 (expand_interrupt_handler_prologue): Likewise.
6191 (branch_dest): Likewise for param "branch".
6192 (asm_conditional_branch): Likewise for param "insn".
6193 (gen_one_bundle): Likewise for elements of param "slot" and local
6195 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6196 elements of local "slot".
6197 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6198 "queue", "next_queue", "prev".
6199 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6200 (add_sched_insns_for_speculation): Likewise for local "insn".
6202 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6204 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6205 from rtx to rtx_insn *.
6206 (output_movhi): Likewise.
6207 (output_movsisf): Likewise.
6208 (avr_out_tstsi): Likewise.
6209 (avr_out_tsthi): Likewise.
6210 (avr_out_tstpsi): Likewise.
6211 (avr_out_compare): Likewise.
6212 (avr_out_compare64): Likewise.
6213 (avr_out_movpsi): Likewise.
6214 (ashlqi3_out): Likewise.
6215 (ashlhi3_out): Likewise.
6216 (ashlsi3_out): Likewise.
6217 (ashrqi3_out): Likewise.
6218 (ashrhi3_out): Likewise.
6219 (ashrsi3_out): Likewise.
6220 (lshrqi3_out): Likewise.
6221 (lshrhi3_out): Likewise.
6222 (lshrsi3_out): Likewise.
6223 (avr_out_ashlpsi3): Likewise.
6224 (avr_out_ashrpsi3): Likewise.
6225 (avr_out_lshrpsi3): Likewise.
6226 (avr_out_fract): Likewise.
6227 (avr_out_sbxx_branch): Likewise.
6228 (avr_out_round): Likewise.
6229 (avr_out_xload): Likewise.
6230 (avr_out_movmem): Likewise.
6231 (adjust_insn_length): Likewise.
6232 (avr_out_lpm): Likewise.
6233 (reg_unused_after): Likewise.
6234 (_reg_unused_after): Likewise.
6235 (avr_jump_mode): Likewise for second param.
6236 (jump_over_one_insn): Likewise for first param.
6237 (avr_final_prescan_insn): Likewise.
6238 (out_shift_with_cnt): Likewise for second param.
6240 * config/avr/avr.c (get_sequence_length): Likewise for param
6241 "insns" and local "insn".
6242 (emit_push_byte): Likewise for local "insn".
6243 (emit_push_sfr): Likewise.
6244 (avr_prologue_setup_frame): Likewise for locals "insn",
6245 "fp_plus_insns", "sp_plus_insns".
6246 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6248 (avr_jump_mode): Likewise for param "insn".
6249 (avr_final_prescan_insn): Likewise.
6250 (avr_find_unused_d_reg): Likewise.
6251 (avr_out_lpm_no_lpmx): Likewise.
6252 (avr_out_lpm): Likewise.
6253 (avr_out_xload): Likewise.
6254 (output_movqi): Likewise.
6255 (output_movhi): Likewise.
6256 (out_movqi_r_mr): Likewise.
6257 (out_movhi_r_mr): Likewise.
6258 (out_movsi_r_mr): Likewise.
6259 (out_movsi_mr_r): Likewise.
6260 (output_movsisf): Likewise.
6261 (avr_out_load_psi): Likewise.
6262 (avr_out_store_psi): Likewise.
6263 (avr_out_movpsi): Likewise.
6264 (out_movqi_mr_r): Likewise.
6265 (avr_out_movhi_mr_r_xmega): Likewise.
6266 (out_movhi_mr_r): Likewise.
6267 (compare_condition): Likewise for param "insn" and local "next".
6268 (compare_sign_p): Likewise for param "insn".
6269 (compare_diff_p): Likewise.
6270 (compare_eq_p): Likewise.
6271 (avr_out_compare): Likewise.
6272 (avr_out_compare64): Likewise.
6273 (avr_out_tsthi): Likewise.
6274 (avr_out_tstpsi): Likewise.
6275 (avr_out_tstsi): Likewise.
6276 (out_shift_with_cnt): Likewise.
6277 (ashlqi3_out): Likewise.
6278 (ashlhi3_out): Likewise.
6279 (avr_out_ashlpsi3): Likewise.
6280 (ashlsi3_out): Likewise.
6281 (ashrqi3_out): Likewise.
6282 (ashrhi3_out): Likewise.
6283 (avr_out_ashrpsi3): Likewise.
6284 (ashrsi3_out): Likewise.
6285 (lshrqi3_out): Likewise.
6286 (lshrhi3_out): Likewise.
6287 (avr_out_lshrpsi3): Likewise.
6288 (lshrsi3_out): Likewise.
6289 (avr_out_fract): Likewise.
6290 (avr_out_round): Likewise.
6291 (avr_adjust_insn_length): Likewise.
6292 (reg_unused_after): Likewise.
6293 (_reg_unused_after): Likewise.
6294 (avr_compare_pattern): Likewise.
6295 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6296 and locals "branch1", "branch2", "insn2", "jump".
6297 (avr_reorg): Likewise for local "insn".
6298 (avr_2word_insn_p): Likewise for param "insn".
6299 (jump_over_one_insn_p): Likewise.
6300 (avr_out_sbxx_branch): Likewise.
6301 (avr_out_movmem): Likewise.
6303 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6305 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6306 param from rtx to rtx_insn *.
6307 (thumb1_final_prescan_insn): Likewise.
6308 (thumb2_final_prescan_insn): Likewise.
6310 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6312 (struct minipool_node): Likewise for field "insn".
6313 (dump_minipool): Likewise for param "scan".
6314 (create_fix_barrier): Likewise for local "from". Strengthen local
6315 "label" from rtx to rtx_code_label *.
6316 (push_minipool_barrier): Strengthen param "insn" from rtx to
6318 (push_minipool_fix): Likewise.
6319 (note_invalid_constants): Likewise.
6320 (thumb2_reorg): Likewise for local "insn".
6321 (arm_reorg): Likewise.
6322 (thumb2_final_prescan_insn): Likewise for param
6323 "insn" and local "first_insn".
6324 (arm_final_prescan_insn): Likewise for param "insn" and locals
6325 "start_insn", "this_insn".
6326 (arm_debugger_arg_offset): Likewise for param "insn".
6327 (thumb1_emit_multi_reg_push): Likewise for return type and local
6329 (thumb1_final_prescan_insn): Likewise for param "insn".
6330 (thumb_far_jump_used_p): Likewise for local "insn".
6331 (thumb1_expand_prologue): Likewise.
6332 (arm_expand_epilogue_apcs_frame): Likewise.
6333 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6334 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6335 from rtx to rtx_code_label *.
6336 (arm_split_atomic_op): Likewise for local "label".
6337 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6339 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6341 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6342 first param from rtx to rtx_insn *.
6343 (arc_verify_short): Likewise.
6344 (arc_short_long): Likewise.
6345 (arc_need_delay): Likewise.
6347 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6349 (arc_ccfsm_advance): Likewise for param "insn" and locals
6350 "start_insn", "this_insn".
6351 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6352 (arc_ccfsm_post_advance): Likewise for param "insn".
6353 (arc_next_active_insn): Likewise for return type and param "insn".
6354 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6355 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6356 (output_short_suffix): Likewise for local "insn".
6357 (arc_final_prescan_insn): Likewise for param "insn". Remove
6358 now-redundant checked cast.
6359 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6360 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6361 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6362 for use where lc_set became an insn.
6363 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6365 (arc_get_insn_variants): Likewise for local "prev".
6366 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6368 (arc_predicate_delay_insns): Likewise for local "insn".
6369 (arc_pad_return): Likewise for local "prev". For now, add a
6370 checked cast when extracting the insn from "final_sequence".
6371 (arc_short_long): Likewise for param "insn".
6372 (arc_need_delay): Likewise for param "insn" and local "next".
6373 (arc_label_align): Likewise for locals "prev", "next".
6375 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6377 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6378 "insn" from rtx to rtx_insn *.
6379 (alpha_gp_save_rtx): Likewise for local "seq".
6380 (alpha_instantiate_decls): Likewise for local "top".
6381 (get_some_local_dynamic_name): Likewise for local "insn".
6382 (alpha_does_function_need_gp): Likewise.
6383 (set_frame_related_p): Likewise for return type and for locals
6385 (emit_frame_store_1): Likewise for local "insn".
6386 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6387 (alpha_end_function): Likewise for local "insn".
6388 (alpha_output_mi_thunk_osf): Likewise.
6389 (alphaev4_insn_pipe): Likewise for param "insn".
6390 (alphaev5_insn_pipe): Likewise.
6391 (alphaev4_next_group): Likewise for return type and param 1
6393 (alphaev5_next_group): Likewise.
6394 (alpha_align_insns_1): Likewise for return type and param 1 of
6395 callback param "next_group", and for locals "i", "next", "prev",
6396 "where", "where2", "insn".
6398 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6400 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6401 rather than modifying the stmt.
6403 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6405 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6406 cgraph_state conversion.
6408 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6410 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6411 Strengthen local "insns" from rtx to rtx_insn *.
6412 (aarch64_set_frame_expr): Likewise for local "insn".
6413 (aarch64_save_or_restore_fprs): Likewise.
6414 (aarch64_save_or_restore_callee_save_registers): Likewise.
6415 (aarch64_expand_prologue): Likewise.
6416 (aarch64_expand_epilogue): Likewise.
6417 (aarch64_output_mi_thunk): Likewise.
6418 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6419 "label2" from rtx to rtx_code_label *.
6420 (aarch64_split_atomic_op): Likewise for local "label".
6422 2014-08-25 Martin Liska <mliska@suse.cz>
6424 * cgraph.h (symtab_node):
6425 (bool needed_p (void)): created from decide_is_symbol_needed
6426 (bool referred_to_p (void)): created from referred_to_p
6427 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6428 * cgraph.h (cgraph_node):
6429 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6430 (void expand (void)): created from expand_function
6431 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6432 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6433 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6434 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6435 * cgraph.h (varpool_node):
6436 (static void add (tree decl): created from varpool_add_new_variable
6437 * cgraph.h (cgraph_edge):
6439 (void remove_caller (void)): created from cgraph_edge_remove_caller
6440 (void remove_callee (void)): created from cgraph_edge_remove_callee
6441 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6442 created from cgraph_set_call_stmt
6443 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6444 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6445 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6446 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6447 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6448 created from cgraph_speculative_call_info
6449 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6450 int freq_scale, bool update_original)): created from cgraph_clone_edge
6451 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6452 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6453 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6454 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6455 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6456 (static void rebuild_references (void)): created from cgraph_rebuild_references
6457 * cgraph.h (symbol_table):
6458 (create_reference): renamed from add_reference
6459 (maybe_create_reference): renamed from maybe_add_reference
6460 (void register_symbol (symtab_node *node)): new function
6461 (void clear_asm_symbols (void)): new function
6462 (void unregister (symtab_node *node)): new function
6463 (void release_symbol (cgraph_node *node, int uid)): new function
6464 (cgraph_node * allocate_cgraph_symbol (void)): new function
6465 (void initialize (void)): created from cgraph_init
6466 (symtab_node *first_symbol (void)):new function
6467 (asm_node *first_asm_symbol (void)):new function
6468 (symtab_node *first_defined_symbol (void)):new function
6469 (varpool_node *first_variable (void)):new function
6470 (varpool_node *next_variable (varpool_node *node)):new function
6471 (varpool_node *first_static_initializer (void)):new function
6472 (varpool_node *next_static_initializer (varpool_node *node)):new function
6473 (varpool_node *first_defined_variable (void)):new function
6474 (varpool_node *next_defined_variable (varpool_node *node)):new function
6475 (cgraph_node *first_defined_function (void)):new function
6476 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6477 (cgraph_node *first_function (void)):new function
6478 (cgraph_node *next_function (cgraph_node *node)):new function
6479 (cgraph_node *first_function_with_gimple_body (void)):new function
6480 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6481 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6482 created from symtab_remove_unreachable_nodes
6483 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6484 (void process_new_functions (void)): created from cgraph_process_new_functions
6485 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6486 (bool output_variables (void)): created from varpool_node::output_variables
6487 (void output_asm_statements (void)): created from output_asm_statements
6488 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6489 (void compile (void)): created from compile
6490 (void output_weakrefs (void)): created from output_weakrefs
6491 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6492 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6493 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6494 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6495 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6496 created from cgraph_next_function_with_gimple_body
6497 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6498 created from cgraph_remove_edge_removal_hook
6499 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6500 created from cgraph_add_node_removal_hook
6501 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6502 created from cgraph_remove_node_removal_hook
6503 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6504 created from varpool_add_node_removal_hook
6505 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6506 created from varpool_remove_node_removal_hook
6507 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6508 created from cgraph_add_function_insertion_hook
6509 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6510 created from cgraph_remove_function_insertion_hook
6511 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6512 created from varpool_add_variable_insertion_hook
6513 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6514 created from varpool_remove_variable_insertion_hook
6515 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6516 created from cgraph_add_edge_duplication_hook
6517 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6518 created from cgraph_remove_edge_duplication_hook
6519 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6520 created from cgraph_add_node_duplication_hook
6521 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6522 created from cgraph_remove_node_duplication_hook
6523 (void call_edge_removal_hooks (cgraph_edge *e)):
6524 created from cgraph_call_edge_removal_hooks
6525 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6526 created from call_function_insertion_hooks
6527 (void call_cgraph_removal_hooks (cgraph_node *node)):
6528 created from cgraph_call_node_removal_hooks
6529 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6530 created from cgraph_node::call_duplication_hooks
6531 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6532 created from cgraph_call_edge_duplication_hooks
6533 (void call_varpool_removal_hooks (varpool_node *node)):
6534 created from varpool_call_node_removal_hooks
6535 (void call_varpool_insertion_hooks (varpool_node *node)):
6536 created from varpool_call_variable_insertion_hooks
6537 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6538 created from insert_to_assembler_name_hash
6539 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6540 created from unlink_from_assembler_name_hash
6541 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6542 created from symtab_prevail_in_asm_name_hash
6543 (void symtab_initialize_asm_name_hash (void)):
6544 created from symtab_initialize_asm_name_hash
6545 (void change_decl_assembler_name (tree decl, tree name)):
6546 created from change_decl_assembler_name
6547 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6548 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6549 created from decl_assembler_name_hash
6550 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6551 created from decl_assembler_name_equal
6552 (static hashval_t hash_node_by_assembler_name (const void *p)):
6553 created from hash_node_by_assembler_name
6554 (static int eq_assembler_name (const void *p1, const void *p2)):
6555 created from eq_assembler_name
6557 2014-08-25 Marek Polacek <polacek@redhat.com>
6559 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6561 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6563 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6564 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6565 SWI1248_AVX512BW mode iterator.
6567 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6570 * config/sh/predicates.md (general_extend_operand): Disable
6571 TRUNCATE before reload completes.
6573 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
6575 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6577 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
6580 * config/sh/sh.opt (musermode): Allow negative form.
6581 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6582 targets that don't support it.
6583 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6584 Document -mno-usermode option.
6586 2014-08-24 Kito Cheng <kito@0xlab.org>
6588 * system.h (CALLER_SAVE_PROFITABLE): Poison.
6589 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6590 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6591 * doc/tm.texi: Regenerate.
6593 2014-08-24 Kito Cheng <kito@0xlab.org>
6595 * ira.c: Fix typo in comment.
6597 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6599 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6600 Deprecate c++1y. Change language to reflect greater confidence in C++14.
6602 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
6605 * config/pa/pa.c (pa_output_function_epilogue): Don't set
6606 last_address when the current function is a thunk.
6607 (pa_asm_output_mi_thunk): When we don't have named sections or they
6608 are not being used, check that thunk can reach the stub table with a
6611 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6613 * web.c (union_match_dups): Strengthen param "insn" from rtx to
6615 (pass_web::execute): Likewise for local "insn".
6617 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6619 * var-tracking.c (struct micro_operation_def): Strengthen field
6620 "insn" from rtx to rtx_insn *.
6621 (struct emit_note_data_def): Likewise.
6622 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6623 (vt_stack_adjustments): Likewise for local "insn".
6624 (adjust_insn): Likewise for param "insn".
6625 (val_store): Likewise.
6626 (val_resolve): Likewise.
6627 (struct count_use_info): Likewise for field "insn".
6628 (log_op_type): Likewise for param "insn".
6629 (reverse_op): Likewise.
6630 (prepare_call_arguments): Likewise.
6631 (add_with_sets): The initial param takes an insn, but we can't
6632 yet strengthen it from rtx to rtx_insn * since it's used as a
6633 cselib_record_sets_hook callback. For now rename initial param
6634 from "insn" to "uncast_insn", and introduce a local "insn" of
6635 the stronger rtx_insn * type, with a checked cast.
6636 (compute_bb_dataflow): Strengthen local "insn" from rtx to
6638 (emit_note_insn_var_location): Likewise.
6639 (emit_notes_for_changes): Likewise.
6640 (emit_notes_for_differences): Likewise.
6641 (next_non_note_insn_var_location): Likewise for return type and
6643 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6644 (vt_initialize): Likewise for local "insn".
6645 (delete_debug_insns): Likewise for locals "insn" and "next".
6647 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6649 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6651 (mark_constant_pool): Likewise for local "insn".
6653 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6655 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6657 (dead_debug_promote_uses): Likewise.
6658 (dead_debug_insert_temp): Likewise.
6660 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6662 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6663 from const_rtx to const rtx_insn *.
6664 (store_killed_after): Likewise. Strengthen locals "last", "act"
6665 from rtx to rtx_insn *.
6666 (store_killed_before): Strengthen param "insn" from const_rtx to
6667 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
6668 (find_moveable_store): Strengthen param "insn" from rtx to
6670 (compute_store_table): Likewise for local "insn".
6671 (insert_insn_start_basic_block): Likewise for param "insn" and
6672 locals "prev", "before", "insn".
6673 (insert_store): For now, add a checked cast to rtx_insn * on the
6674 result of gen_move_insn.
6675 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6677 (replace_store_insn): Likewise. For now, add a checked cast to
6678 rtx_insn * on the result of gen_move_insn.
6680 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6682 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6684 (expand_sjlj_dispatch_table): Likewise.
6686 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6688 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6689 "insn" from rtx to rtx_insn *.
6691 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6693 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6694 "insn" from rtx to rtx_insn *.
6695 (dup_block_and_redirect): Likewise for param 3 "before".
6697 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6698 from rtx to rtx_insn *.
6699 (move_insn_for_shrink_wrap): Likewise.
6700 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6701 (dup_block_and_redirect): Likewise for param "before" and local
6703 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6705 (convert_to_simple_return): Likewise for local "start".
6707 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6708 Strengthen local "insn" from rtx to rtx_insn *, for use when
6709 invoking requires_stack_frame_p.
6711 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6713 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6715 (speculate_expr): Likewise for locals "orig_insn_rtx",
6717 (eq_transformed_insns): Likewise for locals "i1", "i2".
6718 (check_for_new_jump): Likewise for return type and local "end".
6719 (find_new_jump): Likewise for return type and local "jump".
6720 (sel_split_edge): Likewise for local "jump".
6721 (sel_create_recovery_block): Likewise.
6722 (sel_redirect_edge_and_branch_force): Likewise.
6723 (sel_redirect_edge_and_branch): Likewise.
6725 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6727 * sel-sched.c (substitute_reg_in_expr): Strengthen local
6728 "new_insn" from rtx to rtx_insn *.
6729 (create_insn_rtx_with_rhs): Likewise for return type and for local
6731 (create_insn_rtx_with_lhs): Likewise.
6732 (create_speculation_check): Likewise for local "insn_rtx".
6733 (implicit_clobber_conflict_p): Likewise for local "insn".
6734 (get_expr_cost): Likewise.
6735 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6736 (move_cond_jump): Likewise for locals "next", "prev", "link",
6737 "head", "from", "to".
6739 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6741 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6742 "next" from rtx to rtx_insn *.
6743 (find_conditional_protection): Likewise for local "next".
6744 (is_conditionally_protected): Likewise for local "insn1".
6745 (is_pfree): Likewise for locals "insn1", "insn2".
6747 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6749 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6750 from rtx to rtx_insn *.
6752 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6753 locals "insn1", "insn2" from rtx to rtx_insn *.
6754 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6755 locals "insn", "prev", "last_jump", "next_tail".
6756 (schedule_ebb): Likewise for params "head", "tail".
6757 (schedule_ebbs): Likewise for locals "tail", "head".
6759 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6760 to rtx_insn on "last_insn" in one of the invocations of
6763 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6765 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6766 "elem", "insn" from rtx to rtx_insn *.
6767 (change_spec_dep_to_hard): Likewise.
6768 (get_back_and_forw_lists): Likewise for local "con".
6769 (sd_add_dep): Likewise for locals "elem", "insn".
6770 (sd_resolve_dep): Likewise for locals "pro", "con".
6771 (sd_unresolve_dep): Likewise.
6772 (sd_delete_dep): Likewise.
6773 (chain_to_prev_insn): Likewise for local "pro".
6774 (find_inc): Likewise for locals "pro", "con".
6776 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6778 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6780 (reg_set_between_p): Strengthen local "insn" from const_rtx to
6782 (modified_between_p): Strengthen local "insn" from rtx to
6784 (remove_reg_equal_equiv_notes_for_regno): Likewise.
6785 (keep_with_call_p): Strengthen local "i2" from const_rtx to
6788 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6790 * resource.c (next_insn_no_annul): Strengthen local "next" from
6792 (mark_referenced_resources): Likewise for local "insn".
6794 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6796 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6798 (find_reloads): Likewise for param 1.
6799 (subst_reloads): Likewise for sole param.
6800 (find_equiv_reg): Likwise for param 2.
6801 (regno_clobbered_p): Likwise for param 2.
6802 (reload): Likewise for param 1.
6804 * caller-save.c (save_call_clobbered_regs): Strengthen local
6805 "insn" from rtx to rtx_insn *.
6806 (insert_one_insn): Likewise for local "insn".
6808 * reload.c (this_insn): Likewise for this global.
6809 (find_reloads): Likewise for param "insn".
6810 (find_reloads_toplev): Likewise.
6811 (find_reloads_address): Likewise.
6812 (subst_reg_equivs): Likewise.
6813 (update_auto_inc_notes): Likewise.
6814 (find_reloads_address_1): Likewise.
6815 (find_reloads_subreg_address): Likewise.
6816 (subst_reloads): Likewise.
6817 (find_equiv_reg): Likewise, also for local "p".
6818 (regno_clobbered_p): Likewise for param "insn".
6820 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6822 (spill_reg_store): Likewise for the elements of this array.
6823 (remove_init_insns): Likewise for local "equiv_insn".
6824 (will_delete_init_insn_p): Likewise for param "insn".
6825 (reload): Likewise for param ""first" and local "insn".
6826 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6828 (calculate_elim_costs_all_insns): Likewise.
6829 (delete_caller_save_insns): Likewise.
6830 (spill_failure): Likewise for param "insn".
6831 (delete_dead_insn): Likewise.
6832 (set_label_offsets): Likewise.
6833 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6835 (elimination_costs_in_insn): Likewise for param "insn".
6836 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6837 when referring to an insn.
6838 (set_initial_label_offsets): Likewise.
6839 (set_offsets_for_label): Strengthen param "insn" from rtx to
6841 (init_eliminable_invariants): Likewise for param "first" and local
6843 (fixup_eh_region_note): Likewise for param "insn".
6844 (reload_as_needed): Likewise for locals "prev", "insn",
6845 "old_next", "old_prev", "next".
6846 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6848 (reload_inheritance_insn): Strengthen elements of this array from
6850 (failed_reload): Likewise for param "insn".
6851 (choose_reload_regs): Likewise for local "insn". Replace use of
6852 NULL_RTX with NULL when referring to an insn.
6853 (input_reload_insns): Strengthen elements of this array from rtx
6855 (other_input_address_reload_insns): Likewise for this global.
6856 (other_input_reload_insns): Likewise for this global.
6857 (input_address_reload_insns): Likwise for the elements of this
6859 (inpaddr_address_reload_insns): Likwise for the elements of this
6861 (output_reload_insns): Likewise for the elements of this array.
6862 (output_address_reload_insns): Likewise for the elements of this
6864 (outaddr_address_reload_insns): Likewise for the elements of this
6866 (operand_reload_insns): Likewise for this global.
6867 (other_operand_reload_insns): Likewise for this global.
6868 (other_output_reload_insns): Likewise for the elements of this
6870 (new_spill_reg_store): Likewise for the elements of this
6872 (emit_input_reload_insns): Likewise for locals "insn", "temp".
6873 Strengthen local "where" from rtx * to rtx_insn **.
6874 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6875 from rtx to rtx_insn *.
6876 (do_input_reload): Likewise for local "insn".
6877 (do_output_reload): Likewise for local "insn".
6878 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6879 (emit_insn_if_valid_for_reload): Likewise for return type and local
6880 "last". Add checked cast to rtx_insn when returning "insn" since
6881 this has been through emit_insn.
6882 (gen_reload): Strengthen return type and locals "last", "insn", "set"
6883 from rtx to rtx_insn *. Add checked cast to rtx_insn when
6884 returning "insn" since it's been through
6885 emit_insn_if_valid_for_reload at this point.
6886 (delete_output_reload): Strengthen param "insn" and locals
6887 "output_reload_insn", "i2" from rtx to rtx_insn *.
6888 (delete_address_reloads): Likewise for params "dead_insn",
6889 "current_insn" and locals "prev", "next".
6890 (delete_address_reloads_1): Likewise for params "dead_insn",
6891 "current_insn" and locals "prev", "i2".
6892 (inc_for_reload): Likewise for locals "last", "add_insn".
6893 (add_auto_inc_notes): Strengthen param "insn" from rtx to
6896 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6897 param of this duplicate of the prototype from reload.h
6899 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6901 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6903 (regstat_bb_compute_calls_crossed): Likewise.
6905 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6907 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
6909 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
6911 (regrename_analyze): Strengthen local "insn" from rtx to
6913 (scan_rtx_reg): Likewise for param "insn".
6914 (scan_rtx_address): Likewise.
6915 (scan_rtx): Likewise.
6916 (restore_operands): Likewise.
6917 (record_out_operands): Likewise.
6918 (build_def_use): Likewise for local "insn". Replace use of
6919 NULL_RTX with NULL when dealing with an insn.
6921 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6923 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
6924 * reginfo.c (reg_scan): Likewise, also for local "insn".
6925 (reg_scan_mark_refs): Likewise for param "insn".
6926 (init_subregs_of_mode): Likewise for local "insn".
6928 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6930 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6931 "insn" from rtx to rtx_insn *.
6932 (replace_oldest_value_reg): Likewise for param "insn".
6933 (replace_oldest_value_addr): Likewise.
6934 (replace_oldest_value_mem): Likewise.
6935 (apply_debug_insn_changes): Likewise for local "last_insn".
6936 (copyprop_hardreg_forward_1): Likewise for local "insn".
6938 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6940 * reg-stack.c (next_flags_user): Strengthen return type and param
6941 "insn" from rtx to rtx_insn *.
6942 (straighten_stack): Likewise for param "insn".
6943 (check_asm_stack_operands): Likewise.
6944 (remove_regno_note): Likewise.
6945 (emit_pop_insn): Likewise for return type, param "insn", local
6947 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6948 "limit" from rtx to rtx_insn *.
6949 (swap_to_top): Likewise for param "insn".
6950 (move_for_stack_reg): Likewise.
6951 (move_nan_for_stack_reg): Likewise.
6952 (swap_rtx_condition): Likewise.
6953 (compare_for_stack_reg): Likewise.
6954 (subst_all_stack_regs_in_debug_insn): Likewise.
6955 (subst_stack_regs_pat): Likewise, and local "insn2".
6956 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6958 (subst_stack_regs): Likewise.
6959 (change_stack): Likewise.
6960 (convert_regs_1): Likewise for locals "insn", "next".
6962 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6964 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
6966 (combine_set_extension): Likewise for param "curr_insn".
6967 (transform_ifelse): Likewise for param "def_insn".
6968 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
6969 from vec<rtx> * to vec<rtx_insn *> *.
6970 (is_cond_copy_insn): Likewise for param "insn".
6971 (struct ext_state): Strengthen the four vec fields from vec<rtx>
6973 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
6974 local "def_insn" from rtx to rtx_insn *.
6975 (get_sub_rtx): Likewise for param "def_insn".
6976 (merge_def_and_ext): Likewise.
6977 (combine_reaching_defs): Likewise.
6978 (add_removable_extension): Likewise for param "insn".
6979 (find_removable_extensions): Likewise for local "insn".
6980 (find_and_remove_re): Likewise for locals "curr_insn" and
6981 "def_insn". Strengthen locals "reinsn_del_list" and
6982 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
6984 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6986 * recog.c (split_insn): Strengthen param "insn" and locals
6987 "first", "last" from rtx to rtx_insn *.
6988 (split_all_insns): Likewise for locals "insn", "next".
6989 (split_all_insns_noflow): Likewise.
6991 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6993 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
6995 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6996 (debug_rtx_find): Likewise for param 1 "x".
6998 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
6999 const_rtx to const rtx_insn *. Likewise for local "insn".
7000 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7001 (debug_rtx_find): Likewise for param 1 "x".
7002 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7003 from const_rtx to const rtx_insn * within the appropriate cases of
7004 the switch statement.
7006 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7007 Strengthen local "insns" from rtx to rtx_insn * since this is
7008 passed to a call to debug_rtx_list.
7010 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7012 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7015 * function.c (stack_protect_epilogue): Add checked cast to
7016 rtx_insn for now when invoking predict_insn_def.
7018 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7020 (predict_insn_def): Likewise.
7021 (rtl_predict_edge): Likewise for local "last_insn".
7022 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7024 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7026 (bb_estimate_probability_locally): Likewise for local "last_insn".
7027 (expensive_function_p): Likewise for local "insn".
7029 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7030 local "jmp", since this is used when invoking predict_insn_def.
7032 2014-08-22 Marek Polacek <polacek@redhat.com>
7035 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7037 2014-08-22 Marek Polacek <polacek@redhat.com>
7040 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7041 a comparison in parens.
7042 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7047 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7050 * cprop.c (fis_get_condition): Likewise.
7052 * postreload.c (reload_cse_regs): Likewise for param "first".
7053 (reload_cse_simplify): Likewise for param "insn".
7054 (reload_cse_regs_1): Likewise for local "insn".
7055 (reload_cse_simplify_set): Likewise for param "insn".
7056 (reload_cse_simplify_operands): Likewise.
7057 (struct reg_use): Likewise for field "insn".
7058 (reload_combine_purge_insn_uses): Likewise for param "insn".
7059 (fixup_debug_insns): Likewise for params "from", "to" and local
7061 (try_replace_in_use): Likewise for local "use_insn".
7062 (reload_combine_recognize_const_pattern): Likewise for param
7063 "insn" and locals "add_moved_after_insn", "use_insn".
7064 (reload_combine_recognize_pattern): Likewise for param "insn" and
7066 (reload_combine): Likewise for locals "insn", "prev".
7067 (reload_combine_note_use): Likewise for param "insn".
7068 (move2add_use_add2_insn): Likewise.
7069 (move2add_use_add3_insn): Likewise.
7070 (reload_cse_move2add): Likewise, also for local "next".
7071 (move2add_note_store): Likewise for local "insn".
7073 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7075 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7077 (struct unoccr): Likewise.
7078 (struct modifies_mem): Likewise.
7079 (alloc_mem): Likewise for local "insn".
7080 (insert_expr_in_table): Likewise for param "insn".
7081 (dump_expr_hash_table_entry): Likewise for local "insn".
7082 (oprs_unchanged_p): Likewise for param "insn".
7083 (load_killed_in_block_p): Likewise for local "setter".
7084 (record_last_reg_set_info): Likewise for param "insn".
7085 (record_last_reg_set_info_regno): Likewise.
7086 (record_last_mem_set_info): Likewise.
7087 (record_last_set_info): Likewise for local "last_set_insn".
7088 (record_opr_changes): Likewise for param "insn".
7089 (hash_scan_set): Likewise.
7090 (compute_hash_table): Likewise for local "insn".
7091 (get_avail_load_store_reg): Likewise for param "insn".
7092 (eliminate_partially_redundant_load): Likewise, also for locals
7093 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7095 (eliminate_partially_redundant_loads): Likewise for local "insn".
7097 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7099 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7101 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7102 (expand_twoval_unop): Likewise for locals entry_last", "last".
7103 (expand_twoval_binop): Likewise.
7104 (expand_twoval_binop_libfunc): Likewise for local "insns".
7105 (widen_leading): Likewise for local "last".
7106 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7107 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7108 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7109 (expand_parity): Likewise for locals "last" and "seq".
7110 (expand_ffs): Likewise for local "seq". Strengthen local
7111 "nonzero_label" from rtx to rtx_code_label *.
7112 (expand_absneg_bit): Strengthen local "insns" from rtx to
7114 (expand_unop_direct): Likewise for local "last".
7115 (expand_unop): Likewise for locals "last", "insns".
7116 (expand_abs_nojump): Likewise for local "last".
7117 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7118 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7120 (expand_copysign_absneg): Strengthen local "label" from rtx to
7122 (expand_copysign_bit): Strengthen local "insns" from rtx to
7124 (struct no_conflict_data): Likewise for fields "first", "insn".
7125 (emit_libcall_block_1): Likewise for param "insns" and locals
7126 "next", "last", "insn".
7127 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7128 on "insns" when invoking emit_libcall_block_1. Ultimately we
7129 want to strengthen insns itself.
7130 (prepare_cmp_insn): Strengthen local "last" from rtx to
7132 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7133 (prepare_float_lib_cmp): Likewise for local "insns".
7134 (emit_conditional_move): Likewise for local "last".
7135 (emit_conditional_add): Likewise.
7136 (have_sub2_insn): Likewise for local "seq".
7137 (expand_float): Likewise for local "insns". Strengthen locals
7138 "label", "neglabel" from rtx to rtx_code_label *.
7139 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7140 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7141 (expand_fixed_convert): Likewise for local "insns" (to
7143 (expand_sfix_optab): Likewise for local "last".
7144 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7145 to rtx_code_label *.
7146 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7147 from rtx to rtx_insn *.
7148 (expand_atomic_fetch_op): Likewise for local "insn".
7149 (maybe_legitimize_operand_same_code): Likewise for local "last".
7150 (maybe_legitimize_operands): Likewise.
7152 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7154 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7155 "insn" from rtx to rtx_insn *.
7156 (ps_rtl_insn): Likewise for return type.
7157 (doloop_register_get): Likewise for params "head", "tail" and
7158 locals "insn", "first_insn_not_to_check".
7159 (schedule_reg_move): Likewise for local "this_insn".
7160 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7161 of gen_move_insn for now.
7162 (reset_sched_times): Strengthen local "insn" from rtx to
7164 (permute_partial_schedule): Likewise.
7165 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7166 (dump_insn_location): Likewise for param "insn".
7167 (loop_canon_p): Likewise for local "insn".
7168 (sms_schedule): Likewise.
7169 (print_partial_schedule): Likewise.
7170 (ps_has_conflicts): Likewise.
7172 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7174 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7175 "tailp" from rtx * to rtx_insn **.
7177 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7178 from rtx to rtx_insn *.
7179 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7180 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7181 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7183 * modulo-sched.c (const_iteration_count): Strengthen return type
7184 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7185 use of NULL_RTX with NULL when working with insns.
7186 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7188 (sms_schedule): Likewise.
7189 * sched-rgn.c (init_ready_list): Likewise, also for locals
7190 "src_head" and "src_next_tail".
7191 (compute_block_dependences): Likewise.
7192 (free_block_dependencies): Likewise.
7193 (debug_rgn_dependencies): Likewise.
7194 (free_rgn_deps): Likewise.
7195 (compute_priorities): Likewise.
7196 (schedule_region): Likewise.
7197 * sel-sched.c (find_ebb_boundaries): Likewise.
7199 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7200 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7202 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7204 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7205 from rtx to rtx_insn *.
7206 (new_seginfo): Likewise for param "insn".
7207 (create_pre_exit): Likewise for locals "last_insn",
7208 "before_return_copy", "return_copy".
7209 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7212 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7214 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7215 from rtx to rtx_insn *.
7216 (lra_push_insn): Likewise for 1st param.
7217 (lra_push_insn_and_update_insn_regno_info): Likewise.
7218 (lra_pop_insn): Likewise for return type.
7219 (lra_invalidate_insn_data): Likewise for 1st param.
7220 (lra_set_insn_deleted): Likewise.
7221 (lra_delete_dead_insn): Likewise.
7222 (lra_process_new_insns): Likewise for first 3 params.
7223 (lra_set_insn_recog_data): Likewise for 1st param.
7224 (lra_update_insn_recog_data): Likewise.
7225 (lra_set_used_insn_alternative): Likewise.
7226 (lra_invalidate_insn_regno_info): Likewise.
7227 (lra_update_insn_regno_info): Likewise.
7228 (lra_former_scratch_operand_p): Likewise.
7229 (lra_eliminate_regs_1): Likewise.
7230 (lra_get_insn_recog_data): Likewise.
7232 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7235 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7237 (substitute_within_insn): New.
7238 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7239 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7240 Replace call to "substitute" with call to substitute_within_insn.
7242 * lra-constraints.c (curr_insn): Strengthen from rtx to
7244 (get_equiv_with_elimination): Likewise for param "insn".
7245 (match_reload): Strengthen params "before" and "after" from rtx *
7247 (emit_spill_move): Likewise for return type. Add a checked cast
7248 to rtx_insn * on result of gen_move_insn for now.
7249 (check_and_process_move): Likewise for local "before". Replace
7250 NULL_RTX with NULL when referring to insns.
7251 (process_addr_reg): Strengthen params "before" and "after" from
7252 rtx * to rtx_insn **.
7253 (insert_move_for_subreg): Likewise.
7254 (simplify_operand_subreg): Strengthen locals "before" and "after"
7255 from rtx to rtx_insn *.
7256 (process_address_1): Strengthen params "before" and "after" from
7257 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7259 (process_address): Strengthen params "before" and "after" from
7260 rtx * to rtx_insn **.
7261 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7262 (curr_insn_transform): Strengthen locals "before" and "after"
7263 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7265 (loc_equivalence_callback): Update cast of "data", changing
7266 resulting type from rtx to rtx_insn *.
7267 (substitute_pseudo_within_insn): New.
7268 (inherit_reload_reg): Strengthen param "insn" from rtx to
7269 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7270 NULL when referring to insns. Add a checked cast to rtx_insn *
7271 when using usage_insn to invoke lra_update_insn_regno_info.
7272 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7273 likewise for locals "restore", "save". Add checked casts to
7274 rtx_insn * when using usage_insn to invoke
7275 lra_update_insn_regno_info and lra_process_new_insns. Replace
7276 NULL_RTX with NULL when referring to insns.
7277 (split_if_necessary): Strengthen param "insn" from rtx to
7279 (update_ebb_live_info): Likewise for params "head", "tail" and local
7281 (get_last_insertion_point): Likewise for return type and local "insn".
7282 (get_live_on_other_edges): Likewise for local "last".
7283 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7284 "prev_insn", "next_insn", "restore".
7285 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7286 (undo_optional_reloads): Likewise for local "insn".
7288 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7290 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7292 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7294 (spill_pseudos): Likewise for local "insn".
7295 (init_elimination): Likewise.
7296 (process_insn_for_elimination): Likewise for param "insn".
7298 * lra-lives.c (curr_insn): Likewise.;
7300 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7301 (remove_pseudos): Likewise for param "insn".
7302 (spill_pseudos): Likewise for local "insn".
7303 (lra_final_code_change): Likewise for locals "insn", "curr".
7305 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7306 (lra_set_insn_deleted): Likewise.
7307 (lra_delete_dead_insn): Likewise, and for local "prev".
7308 (new_insn_reg): Likewise for param "insn".
7309 (lra_set_insn_recog_data): Likewise.
7310 (lra_update_insn_recog_data): Likewise.
7311 (lra_set_used_insn_alternative): Likewise.
7312 (get_insn_freq): Likewise.
7313 (invalidate_insn_data_regno_info): Likewise.
7314 (lra_invalidate_insn_regno_info): Likewise.
7315 (lra_update_insn_regno_info): Likewise.
7316 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7318 (lra_push_insn_1): Strengthen param "insn" from rtx to
7320 (lra_push_insn): Likewise.
7321 (lra_push_insn_and_update_insn_regno_info): Likewise.
7322 (lra_pop_insn): Likewise for return type and local "insn".
7323 (push_insns): Likewise for params "from", "to", and local "insn".
7324 (setup_sp_offset): Likewise for params "from", "last" and locals
7326 (lra_process_new_insns): Likewise for params "insn", "before",
7327 "after" and local "last".
7328 (struct sloc): Likewise for field "insn".
7329 (lra_former_scratch_operand_p): Likewise for param "insn".
7330 (remove_scratches): Likewise for locals "insn", "last".
7331 (check_rtl): Likewise for local "insn".
7332 (add_auto_inc_notes): Likewise for param "insn".
7333 (update_inc_notes): Likewise for local "insn".
7334 (lra): Replace NULL_RTX with NULL when referring to insn.
7336 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7338 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7340 (resolve_reg_notes): Likewise.
7341 (resolve_simple_move): Likewise for return type, param "insn", and
7342 locals "insns", "minsn".
7343 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7344 (resolve_use): Likewise.
7345 (resolve_debug): Likewise.
7346 (find_decomposable_shift_zext): Likewise.
7347 (resolve_shift_zext): Likewise for return type, param "insn", and
7348 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7349 (decompose_multiword_subregs): Likewise for local "insn",
7350 "orig_insn", "decomposed_shift", "end".
7352 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7354 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7355 param "insns" from rtx to rtx_insn *.
7357 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7359 (struct iv_to_split): Likewise.
7360 (loop_exit_at_end_p): Likewise for local "insn".
7361 (split_edge_and_insert): Likewise for param "insns".
7362 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7363 and locals "seq", "jump".
7364 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7365 "branch_code"; update invocations of compare_and_jump_seq to
7366 eliminate NULL_RTX in favor of NULL.
7367 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7369 (reset_debug_uses_in_loop): Likewise.
7370 (analyze_insn_to_expand_var): Likewise for param "insn".
7371 (analyze_iv_to_split_insn): Likewise.
7372 (analyze_insns_in_loop): Likewise for local "insn".
7373 (insert_base_initialization): Likewise for param
7374 "insn" and local "seq".
7375 (split_iv): Likewise for param "insn" and local "seq".
7376 (expand_var_during_unrolling): Likewise for param "insn".
7377 (insert_var_expansion_initialization): Likewise for local "seq".
7378 (combine_var_copies_in_loop_exit): Likewise.
7379 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7381 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7382 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7385 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7387 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7389 (iv_analyze_result): Likewise.
7390 (iv_analyze_expr): Likewise.
7393 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7394 local "def_insn" from rtx to rtx_insn *.
7395 (get_biv_step_1): Likewise for local "insn".
7396 (iv_analyze_expr): Likewise for param "insn".
7397 (iv_analyze_def): Likewise for local "insn".
7398 (iv_analyze_op): Likewise for param "insn".
7399 (iv_analyze): Likewise.
7400 (iv_analyze_result): Likewise.
7402 (suitable_set_for_replacement): Likewise.
7403 (simplify_using_initial_values): Likewise for local "insn".
7404 (iv_number_of_iterations): Likewise for param "insn".
7405 (check_simple_exit): Add checked cast to rtx_insn when invoking
7406 iv_number_of_iterations for now (until get_condition is
7409 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7410 "insn" from rtx to rtx_insn *.
7411 (analyze_insns_in_loop): Likewise for local "insn".
7413 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7415 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7417 (struct invariant): Likewise.
7418 (hash_invariant_expr_1): Likewise for param "insn".
7419 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7420 (find_exits): Likewise for local "insn".
7421 (create_new_invariant): Likewise for param "insn".
7422 (check_dependencies): Likewise.
7423 (find_invariant_insn): Likewise.
7424 (record_uses): Likewise.
7425 (find_invariants_insn): Likewise.
7426 (find_invariants_bb): Likewise for local "insn".
7427 (get_pressure_class_and_nregs): Likewise for param "insn".
7428 (calculate_loop_reg_pressure): Likewise for local "insn".
7430 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7432 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7434 (add_test): Likewise for locals "seq", "jump".
7435 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7437 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7439 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7441 (rebuild_jump_labels_chain): Likewise for param "chain".
7443 * cfgexpand.c (pass_expand::execute): Add checked cast to
7444 rtx_insn * when calling rebuild_jump_labels_chain in region where
7445 we know e->insns.r is non-NULL.
7447 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7449 (rebuild_jump_labels): Likewise.
7450 (rebuild_jump_labels_chain): Likewise for param "chain".
7451 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7452 (init_label_info): Likewise for param "f".
7453 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7454 "prev_nonjump_insn".
7455 (mark_all_labels): Likewise for param "f" and locals "insn",
7456 "prev_nonjump_insn".
7458 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7460 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7461 from rtx to rtx_insn *insn.
7462 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7463 (ira_add_allocno_copy): Likewise.
7464 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7466 (ira_create_copy): Likewise.
7467 (ira_add_allocno_copy): Likewise.
7468 (create_bb_allocnos): Likewise for local "insn".
7469 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7470 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7471 process_regs_for_copy for rtx_insn * param.
7472 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7473 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7474 process_regs_for_copy for rtx_insn * param.
7475 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7476 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7477 (record_operand_costs): Likewise.
7478 (scan_one_insn): Likewise for return type, and for param "insn".
7479 (process_bb_for_costs): Likewise for local "insn".
7480 (process_bb_node_for_hard_reg_moves): Likewise.
7481 * ira-emit.c (struct move): Likewise for field "insn".
7482 (create_move): Eliminate use of NULL_RTX when dealing with an
7484 (emit_move_list): Strengthen return type and locals "result",
7485 "insn" from rtx to rtx_insn *insn.
7486 (emit_moves): Likewise for locals "insns", "tmp".
7487 (ira_emit): Likewise for local "insn".
7488 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7490 (find_call_crossed_cheap_reg): Likewise.
7491 (process_bb_node_lives): Likewise for local "insn".
7492 * ira.c (decrease_live_ranges_number): Likewise.
7493 (compute_regs_asm_clobbered): Likewise.
7494 (build_insn_chain): Likewise.
7495 (find_moveable_pseudos): Likewise, also locals "def_insn",
7496 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7497 to rtx_insn **. Add a checked cast when assigning from
7498 "closest_use" into closest_uses array in a region where we know
7499 it's a non-NULL insn.
7500 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7502 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7503 "last_interesting_insn", "uin".
7504 (move_unallocated_pseudos): Likewise for locals "def_insn",
7505 "move_insn", "newinsn".
7507 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7509 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7510 Strengthen locals "done_label", "do_error" from rtx to
7512 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7513 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7515 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7516 "done_label", "do_error" to rtx_code_label * and local "last" to
7518 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7519 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7520 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7521 "after_lopart_neg", "do_overflow", "hipart_different" to
7522 rtx_code_label * and local "last" to rtx_insn *.
7524 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7526 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7527 "insn" and "move_insn" from rtx to rtx_insn *.
7529 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7531 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7533 (cheap_bb_rtx_cost_p): Likewise.
7534 (first_active_insn): Likewise for return type and local "insn".
7535 (last_active_insn): Likewise for return type and locals "insn",
7537 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7539 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7541 (noce_try_move): Likewise for local "seq".
7542 (noce_try_store_flag): Likewise.
7543 (noce_try_store_flag_constants): Likewise.
7544 (noce_try_addcc): Likewise.
7545 (noce_try_store_flag_mask): Likewise.
7546 (noce_try_cmove): Likewise.
7547 (noce_try_minmax): Likewise.
7548 (noce_try_abs): Likewise.
7549 (noce_try_sign_mask): Likewise.
7550 (noce_try_bitop): Likewise.
7551 (noce_can_store_speculate_p): Likewise for local "insn".
7552 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7554 (check_cond_move_block): Likewise for local "insn".
7555 (cond_move_convert_if_block): Likewise.
7556 (cond_move_process_if_block): Likewise for locals "seq",
7558 (noce_find_if_block): Likewise for local "jump".
7559 (merge_if_block): Likewise for local "last".
7560 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7561 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7562 (block_has_only_trap): Likewise for return type and local "trap".
7563 (find_if_case_1): Likewise for local "jump".
7564 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7567 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7569 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7570 "last_insn", "loop_end" from rtx to rtx_insn *.
7572 * hw-doloop.c (scan_loop): Likewise for local "insn".
7573 (discover_loop): Likewise for param "tail_insn".
7574 (discover_loops): Likewise for local "tail".
7576 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7577 cast to rtx_insn * when assigning from an rtx local to a
7578 hwloop_info's "last_insn" field.
7580 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7582 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7583 (add_delay_dependencies): Strengthen local "pro" from rtx to
7585 (recompute_todo_spec): Likewise.
7586 (dep_cost_1): Likewise for locals "insn", "used".
7587 (schedule_insn): Likewise for local "dbg".
7588 (schedule_insn): Likewise for locals "pro", "next".
7589 (unschedule_insns_until): Likewise for local "con".
7590 (restore_pattern): Likewise for local "next".
7591 (estimate_insn_tick): Likewise for local "pro".
7592 (resolve_dependencies): Likewise for local "next".
7593 (fix_inter_tick): Likewise.
7594 (fix_tick_ready): Likewise for local "pro".
7595 (add_to_speculative_block): Likewise for locals "check", "twin",
7597 (sched_extend_bb): Likewise for locals "end", "insn".
7598 (init_before_recovery): Likewise for local "x".
7599 (sched_create_recovery_block): Likewise for local "barrier".
7600 (create_check_block_twin): Likewise for local "pro".
7601 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7603 (unlink_bb_notes): Update for change to type of bb_header.
7604 Strengthen locals "prev", "label", "note", "next" from rtx to
7606 (clear_priorities): Likewise for local "pro".
7608 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7610 * gcse.c (struct occr): Strengthen field "insn" from rtx to
7612 (test_insn): Likewise for this global.
7613 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7615 (oprs_anticipatable_p): Likewise.
7616 (oprs_available_p): Likewise.
7617 (insert_expr_in_table): Strengthen param "insn" from rtx to
7619 (hash_scan_set): Likewise.
7620 (hash_scan_clobber): Likewise.
7621 (hash_scan_call): Likewise.
7622 (hash_scan_insn): Likewise.
7623 (compute_hash_table_work): Likewise for local "insn".
7624 (process_insert_insn): Likewise for return type and local "pat".
7625 (insert_insn_end_basic_block): Likewise for locals "new_insn",
7626 "pat", "pat_end", "maybe_cc0_setter".
7627 (pre_edge_insert): Likewise for local "insn".
7628 (pre_insert_copy_insn): Likewise for param "insn".
7629 (pre_insert_copies): Likewise for local "insn".
7630 (struct set_data): Likewise for field "insn".
7631 (single_set_gcse): Likewise for param "insn".
7632 (gcse_emit_move_after): Likewise.
7633 (pre_delete): Likewise for local "insn".
7634 (update_bb_reg_pressure): Likewise for param "from" and local
7636 (should_hoist_expr_to_dom): Likewise for param "from".
7637 (hoist_code): Likewise for local "insn".
7638 (get_pressure_class_and_nregs): Likewise for param "insn".
7639 (calculate_bb_reg_pressure): Likewise for local "insn".
7640 (compute_ld_motion_mems): Likewise.
7642 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7644 * genpeep.c (main): Rename param back from "uncast_ins1" to
7645 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
7648 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7650 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7653 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7654 documentation to state it is only for VSX operations.
7656 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7657 constraint only active if VSX.
7659 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7660 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7663 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7665 * fwprop.c (single_def_use_dom_walker::before_dom_children):
7666 Strengthen local "insn" from rtx to rtx_insn *.
7667 (use_killed_between): Likewise for param "target_insn".
7668 (all_uses_available_at): Likewise for param "target_insn" and
7670 (update_df_init): Likewise for params "def_insn", "insn".
7671 (update_df): Likewise for param "insn".
7672 (try_fwprop_subst): Likewise for param "def_insn" and local
7674 (free_load_extend): Likewise for param "insn".
7675 (forward_propagate_subreg): Likewise for param "def_insn" and
7677 (forward_propagate_asm): Likewise for param "def_insn" and local
7679 (forward_propagate_and_simplify): Likewise for param "def_insn"
7680 and local "use_insn".
7681 (forward_propagate_into): Likewise for locals "def_insn" and
7684 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7686 * function.c (emit_initial_value_sets): Strengthen local "seq"
7687 from rtx to rtx_insn *.
7688 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7690 (instantiate_virtual_regs): Likewise for local "insn".
7691 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7692 (reorder_blocks_1): Likewise for param "insns" and local "insn".
7693 (expand_function_end): Likewise for locals "insn" and "seq".
7694 (epilogue_done): Likewise for local "insn".
7695 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7697 (reposition_prologue_and_epilogue_notes): Likewise for locals
7698 "insn", "last", "note", "first".
7699 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7700 (pass_match_asm_constraints::execute): Likewise for local "insn".
7702 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7704 * output.h (final_scan_insn): Strengthen return type from rtx to
7706 (final_forward_branch_p): Likewise for param.
7707 (current_output_insn): Likewise for this global.
7709 * final.c (rtx debug_insn): Likewise for this variable.
7710 (current_output_insn): Likewise.
7711 (get_attr_length_1): Rename param "insn" to "uncast_insn",
7712 adding "insn" back in as an rtx_insn * with a checked cast, so
7713 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7715 (compute_alignments): Strengthen local "label" from rtx to
7717 (shorten_branches): Rename param from "first" to "uncast_first",
7718 introducing a new local rtx_insn * "first" using a checked cast to
7719 effectively strengthen "first" from rtx to rtx_insn * without
7720 affecting the type signature. Strengthen locals "insn", "seq",
7721 "next", "label" from rtx to rtx_insn *.
7722 (change_scope): Strengthen param "orig_insn" and local "insn" from
7724 (final_start_function): Rename param from "first" to "uncast_first",
7725 introducing a new local rtx_insn * "first" using a checked cast to
7726 effectively strengthen "first" from rtx to rtx_insn * without
7727 affecting the type signature. Strengthen local "insn" from rtx to
7729 (dump_basic_block_info): Strengthen param "insn" from rtx to
7731 (final): Rename param from "first" to "uncast_first",
7732 introducing a new local rtx_insn * "first" using a checked cast to
7733 effectively strengthen "first" from rtx to rtx_insn * without
7734 affecting the type signature. Strengthen locals "insn", "next"
7735 from rtx to rtx_insn *.
7736 (output_alternate_entry_point): Strengthen param "insn" from rtx to
7738 (call_from_call_insn): Strengthen param "insn" from rtx to
7740 (final_scan_insn): Rename param from "insn" to "uncast_insn",
7741 introducing a new local rtx_insn * "insn" using a checked cast to
7742 effectively strengthen "insn" from rtx to rtx_insn * without
7743 affecting the type signature. Strengthen return type and locals
7744 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
7745 now-redundant checked cast to rtx_insn * from both invocations of
7746 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
7747 introducing a local "call_insn" for use when invoking
7748 call_from_call_insn.
7749 (notice_source_line): Strengthen param "insn" from rtx to
7751 (leaf_function_p): Likewise for local "insn".
7752 (final_forward_branch_p): Likewise.
7753 (leaf_renumber_regs): Likewise for param "first".
7754 (rest_of_clean_state): Likewise for locals "insn" and "next".
7755 (self_recursive_call_p): Likewise for param "insn".
7756 (collect_fn_hard_reg_usage): Likewise for local "insn".
7757 (get_call_fndecl): Likewise for param "insn".
7758 (get_call_cgraph_rtl_info): Likewise.
7759 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7760 introducing a new local rtx_insn * "insn" using a checked cast to
7761 effectively strengthen "insn" from rtx to rtx_insn * without
7762 affecting the type signature.
7764 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7765 cast when assigning from param "insn" to current_output_insn.
7766 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7767 so that we can assign it back to current_output_insn.
7769 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7771 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7772 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7773 atmxt540s and atmxt540sreva devices.
7774 * config/avr/avr-tables.opt: Regenerate.
7775 * config/avr/t-multilib: Regenerate.
7776 * doc/avr-mmcu.texi: Regenerate.
7778 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7780 * expr.c (convert_move): Strengthen local "insns" from rtx to
7782 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7783 "top_label" from rtx to rtx_code_label *.
7784 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7786 (emit_single_push_insn): Likewise for locals "prev", "last".
7787 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7788 to rtx_code_label *.
7789 (store_constructor): Likewise for locals "loop_start", "loop_end".
7790 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7792 (expand_expr_real_2): Likewise.
7793 (expand_expr_real_1): Strengthen local "label" from rtx to
7796 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7798 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7799 from rtx to rtx_insn *.
7800 (store_bit_field_1): Likewise.
7801 (extract_bit_field_1): Likewise.
7802 (expand_mult_const): Likewise for local "insns".
7803 (expmed_mult_highpart): Strengthen local "label" from rtx to
7805 (expand_smod_pow2): Likewise.
7806 (expand_sdiv_pow2): Likewise.
7807 (expand_divmod): Strengthen locals "last", "insn" from rtx to
7808 rtx_insn *. Strengthen locals "label", "label1", "label2",
7809 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7810 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7811 (emit_store_flag): Likewise.
7812 (emit_store_flag_force): Strengthen local "label" from rtx to
7814 (do_cmp_and_jump): Likewise for param "label".
7816 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7818 * explow.c (force_reg): Strengthen local "insn" from rtx to
7820 (adjust_stack_1): Likewise.
7821 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7822 "final_label", "available_label", "space_available" from rtx to
7824 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7825 (anti_adjust_stack_and_probe): Likewise.
7827 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7829 * except.h (sjlj_emit_function_exit_after): Strengthen param
7830 "after" from rtx to rtx_insn *. This is only called with
7831 result of get_last_insn (in function.c) so type-change should be
7834 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7835 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7836 to rtx_insn *. These fields are only used from except.c so this
7837 type-change should be self-contained to this patch.
7839 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7840 local "last" from rtx to rtx_insn *.
7841 (dw2_build_landing_pads): Likewise for local "seq".
7842 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7843 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7844 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
7846 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7848 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7849 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7850 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7851 referring to an insn. Strengthen local "dispatch_label" from
7852 rtx to rtx_code_label *.
7853 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7855 (expand_eh_return): Strengthen local "around_label" from
7856 rtx to rtx_code_label *.
7857 (convert_to_eh_region_ranges): Strengthen locals "iter",
7858 "last_action_insn", "first_no_action_insn",
7859 "first_no_action_insn_before_switch",
7860 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7862 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7864 * dwarf2out.c (last_var_location_insn): Strengthen this variable
7865 from rtx to rtx_insn *.
7866 (cached_next_real_insn): Likewise.
7867 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7869 (dwarf2out_var_location): Strengthen locals "next_real",
7870 "next_note", "expected_next_loc_note", "last_start", "insn" from
7873 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7875 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7876 from rtx to rtx_insn *.
7877 (create_pseudo_cfg): Likewise for local "insn".
7879 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7881 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7882 from rtx to rtx_insn *.
7883 (df_bb_regno_last_def_find): Likewise.
7885 * df-problems.c (df_rd_bb_local_compute): Likewise.
7886 (df_lr_bb_local_compute): Likewise.
7887 (df_live_bb_local_compute): Likewise.
7888 (df_chain_remove_problem): Likewise.
7889 (df_chain_create_bb): Likewise.
7890 (df_word_lr_bb_local_compute): Likewise.
7891 (df_remove_dead_eq_notes): Likewise for param "insn".
7892 (df_note_bb_compute): Likewise for local "insn".
7893 (simulate_backwards_to_point): Likewise.
7894 (df_md_bb_local_compute): Likewise.
7896 * df-scan.c (df_scan_free_bb_info): Likewise.
7897 (df_scan_start_dump): Likewise.
7898 (df_scan_start_block): Likewise.
7899 (df_install_ref_incremental): Likewise for local "insn".
7900 (df_insn_rescan_all): Likewise.
7901 (df_reorganize_refs_by_reg_by_insn): Likewise.
7902 (df_reorganize_refs_by_insn_bb): Likewise.
7903 (df_recompute_luids): Likewise.
7904 (df_bb_refs_record): Likewise.
7905 (df_update_entry_exit_and_calls): Likewise.
7906 (df_bb_verify): Likewise.
7908 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7910 * ddg.h (struct ddg_node): Strengthen fields "insn" and
7911 "first_note" from rtx to rtx_insn *.
7912 (get_node_of_insn): Likewise for param 2 "insn".
7913 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7915 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
7917 (mem_write_insn_p): Likewise.
7918 (mem_access_insn_p): Likewise.
7919 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7920 (def_has_ccmode_p): Likewise for param "insn".
7921 (add_cross_iteration_register_deps): Likewise for locals
7922 "def_insn" and "use_insn".
7923 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
7924 (build_intra_loop_deps): Likewise for local "src_insn".
7925 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7927 (get_node_of_insn): Likewise for param "insn".
7929 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7931 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7932 (deletable_insn_p): Strengthen param "insn" from rtx to
7933 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7934 find_call_stack_args, since this is guarded by CALL_P (insn).
7935 (marked_insn_p): Strengthen param "insn" from rtx to
7937 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7938 invoking find_call_stack_args, since this is guarded by
7940 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7941 rtx_insn *; we know this is an insn since this was called by
7943 (mark_nonreg_stores_2): Likewise.
7944 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7946 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7947 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7949 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7950 from rtx to rtx_insn *.
7951 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7953 (delete_unmarked_insns): Likewise for locals "insn", "next".
7954 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7955 (mark_reg_dependencies): Likewise for param "insn".
7956 (rest_of_handle_ud_dce): Likewise for local "insn".
7957 (word_dce_process_block): Likewise.
7958 (dce_process_block): Likewise.
7960 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7962 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7963 from rtx to rtx_insn *.
7964 (struct change_cc_mode_args): Likewise for field "insn".
7965 (this_insn): Strengthen from rtx to rtx_insn *.
7966 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
7968 (validate_canon_reg): Strengthen param "insn" from rtx to
7970 (canon_reg): Likewise.
7971 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
7973 (record_jump_equiv): Strengthen param "insn" from rtx to
7975 (try_back_substitute_reg): Likewise, also for locals "prev",
7977 (find_sets_in_insn): Likewise for param "insn".
7978 (canonicalize_insn): Likewise.
7979 (cse_insn): Likewise. Add a checked cast.
7980 (invalidate_from_clobbers): Likewise for param "insn".
7981 (invalidate_from_sets_and_clobbers): Likewise.
7982 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
7984 (cse_prescan_path): Strengthen local "insn" from rtx to
7986 (cse_extended_basic_block): Likewise for locals "insn" and
7988 (cse_main): Likewise for param "f".
7989 (check_for_label_ref): Likewise for local "insn".
7990 (set_live_p): Likewise for second param ("insn").
7991 (insn_live_p): Likewise for first param ("insn") and for local
7993 (cse_change_cc_mode_insn): Likewise for first param "insn".
7994 (cse_change_cc_mode_insns): Likewise for first and second params
7996 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
7998 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8001 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8002 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8003 Anna Tikhonova <anna.tikhonova@intel.com>
8004 Ilya Tocar <ilya.tocar@intel.com>
8005 Andrey Turetskiy <andrey.turetskiy@intel.com>
8006 Ilya Verbin <ilya.verbin@intel.com>
8007 Kirill Yukhin <kirill.yukhin@intel.com>
8008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8010 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8012 * config/i386/sse.md
8013 (define_mode_iterator VI248_AVX2): Delete.
8014 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8015 (define_mode_iterator VI48_AVX2): Ditto.
8016 (define_insn <shift_insn><mode>3): Delete.
8017 (define_insn "<shift_insn><mode>3<mask_name>" with
8018 VI2_AVX2_AVX512BW): New.
8019 (define_insn "<shift_insn><mode>3<mask_name>" with
8022 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8023 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8024 Anna Tikhonova <anna.tikhonova@intel.com>
8025 Ilya Tocar <ilya.tocar@intel.com>
8026 Andrey Turetskiy <andrey.turetskiy@intel.com>
8027 Ilya Verbin <ilya.verbin@intel.com>
8028 Kirill Yukhin <kirill.yukhin@intel.com>
8029 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8031 * config/i386/sse.md
8032 (define_mode_iterator VI4F_BRCST32x2): New.
8033 (define_mode_attr 64x2_mode): Ditto.
8034 (define_mode_attr 32x2mode): Ditto.
8035 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8036 with VI4F_BRCST32x2): Ditto.
8037 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8038 with V16FI mode iterator): Ditto.
8039 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8041 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8042 with VI8F_BRCST64x2): Ditto.
8044 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8045 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8046 Anna Tikhonova <anna.tikhonova@intel.com>
8047 Ilya Tocar <ilya.tocar@intel.com>
8048 Andrey Turetskiy <andrey.turetskiy@intel.com>
8049 Ilya Verbin <ilya.verbin@intel.com>
8050 Kirill Yukhin <kirill.yukhin@intel.com>
8051 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8053 * config/i386/sse.md
8054 (define_mode_iterator VI8_AVX512VL): New.
8055 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8057 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8059 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8060 (define_mode_iterator V48_AVX512VL): New.
8061 (define_mode_iterator V12_AVX512VL): Ditto.
8062 (define_insn <avx512>_load<mode>_mask): Split into two similar
8063 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8064 Refactor output template.
8065 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8067 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8069 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8071 (reg_available_p): Likewise for param "insn".
8072 (insert_set_in_table): Likewise.
8073 (hash_scan_set): Likewise.
8074 (hash_scan_insn): Likewise.
8075 (make_set_regs_unavailable): Likewise.
8076 (compute_hash_table_work): Likewise for local "insn".
8077 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8079 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8080 (try_replace_reg): Likewise.
8081 (find_avail_set): Likewise.
8082 (cprop_jump): Likewise for params "setcc", "jump".
8083 (constprop_register): Likewise for param "insn".
8084 (cprop_insn): Likewise.
8085 (do_local_cprop): Likewise.
8086 (local_cprop_pass): Likewise for local "insn".
8087 (bypass_block): Likewise for params "setcc" and "jump".
8088 (bypass_conditional_jumps): Likewise for locals "setcc" and
8090 (one_cprop_pass): Likewise for local "insn".
8092 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8094 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8095 from rtx to rtx_insn *.
8096 (struct comparison): Likewise, also for field "prev_clobber".
8097 (conforming_compare): Likewise for param "insn".
8098 (arithmetic_flags_clobber_p): Likewise.
8099 (find_flags_uses_in_insn): Likewise.
8100 (find_comparison_dom_walker::before_dom_children): Likewise for
8101 locals "insn", "next", "last_clobber".
8102 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8104 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8106 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8107 "insn" from rtx to rtx_insn *.
8108 (single_set_for_csa): Likewise for param "insn".
8109 (record_one_stack_ref): Likewise.
8110 (try_apply_stack_adjustment): Likewise.
8111 (struct record_stack_refs_data): Likewise for field "insn".
8112 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8113 (prev_active_insn_bb): Likewise for return type and param "insn".
8114 (next_active_insn_bb): Likewise.
8115 (force_move_args_size_note): Likewise for params "prev" and "last"
8116 and locals "test", "next_candidate", "prev_candidate".
8117 (combine_stack_adjustments_for_block): Strengthen locals
8118 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8121 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8123 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8124 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8125 (subst_insn): Likewise for this variable.
8126 (added_links_insn): Likewise.
8127 (struct insn_link): Likewise for field "insn".
8128 (alloc_insn_link): Likewise for param "insn".
8129 (struct undobuf): Likewise for field "other_insn".
8130 (find_single_use): Likewise for param "insn" and local "next".
8131 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8132 (delete_noop_moves): Likewise for locals "insn", "next".
8133 (create_log_links): Likewise for locals "insn", "use_insn".
8134 Strengthen local "next_use" from rtx * to rtx_insn **.
8135 (insn_a_feeds_b): Likewise for params "a", "b".
8136 (combine_instructions): Likewise for param "f" and locals "insn",
8137 "next", "prev", "first", "last_combined_insn", "link", "link1",
8138 "temp". Replace use of NULL_RTX with NULL when referring to
8140 (setup_incoming_promotions): Likewise for param "first"
8141 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8142 (can_combine_p): Likewise for params "insn", "i3", "pred",
8143 "pred2", "succ", "succ2" and for local "p".
8144 (combinable_i3pat): Likewise for param "i3".
8145 (cant_combine_insn_p): Likewise for param "insn".
8146 (likely_spilled_retval_p): Likewise.
8147 (adjust_for_new_dest): Likewise.
8148 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8149 (try_combine): Likewise for return type and for params "i3", "i2",
8150 "i1", "i0", "last_combined_insn", and for locals "insn",
8151 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8152 "i0_insn". Eliminate local "tem" in favor of new locals
8153 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8154 checked cast for now to rtx_insn * on the return type of
8155 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8157 (find_split_point): Strengthen param "insn" from rtx to
8159 (simplify_set): Likewise for local "other_insn".
8160 (recog_for_combine): Likewise for param "insn".
8161 (record_value_for_reg): Likewise.
8162 (record_dead_and_set_regs_1): Likewise for local
8164 (record_dead_and_set_regs): Likewise for param "insn".
8165 (record_promoted_value): Likewise.
8166 (check_promoted_subreg): Likewise.
8167 (get_last_value_validate): Likewise.
8168 (reg_dead_at_p): Likewise.
8169 (move_deaths): Likewise for param "to_insn".
8170 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8171 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8172 in favor of new locals "tem_note" and "tem_insn", the latter being
8174 (distribute_links): Strengthen locals "place", "insn" from rtx to
8177 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8179 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8181 (can_delete_label_p): Require a const rtx_code_label * rather than
8183 (delete_insn): Add checked cast to rtx_code_label * when we know
8184 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8186 (delete_insn_chain): Strengthen locals "prev" and "current" from
8187 rtx to rtx_insn *. Add a checked cast when assigning from
8188 "finish" (strengthening the params will come later). Add a
8189 checked cast to rtx_note * in region where we know
8191 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8193 (compute_bb_for_insn): Likewise.
8194 (free_bb_for_insn): Likewise for local "insn".
8195 (compute_bb_for_insn): Likewise.
8196 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8197 local "insn" from rtx to rtx_insn *
8198 (flow_active_insn_p): Require a const rtx_insn * rather than a
8200 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8202 (can_fallthru): Likewise for locals "insn" and "insn2".
8203 (bb_note): Likewise for local "note".
8204 (first_insn_after_basic_block_note): Likewise for local "note" and
8206 (rtl_split_block): Likewise for locals "insn" and "next".
8207 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8209 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8210 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8212 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8213 them), "kill_from", "barrier", "new_insn".
8214 (patch_jump_insn): Likewise for params "insn", "old_label".
8215 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8216 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8217 "old_label", "new_label".
8218 (rtl_tidy_fallthru_edge): Likewise for local "q".
8219 (rtl_split_edge): Likewise for locals "before", "last".
8220 (commit_one_edge_insertion): Likewise for locals "before",
8221 "after", "insns", "tmp", "last", adding a checked cast where
8222 currently necessary.
8223 (commit_edge_insertions): Likewise.
8224 (rtl_dump_bb): Likewise for locals "insn", "last".
8225 (print_rtl_with_bb): Likewise for local "x".
8226 (rtl_verify_bb_insns): Likewise for local "x".
8227 (rtl_verify_bb_pointers): Likewise for local "insn".
8228 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8230 (rtl_verify_fallthru): Likewise for local "insn".
8231 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8232 (purge_dead_edges): Likewise for local "insn".
8233 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8234 (skip_insns_after_block): Likewise for return type and for locals
8235 "insn", "last_insn", "next_head", "prev".
8236 (record_effective_endpoints): Likewise for locals "next_insn",
8238 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8239 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8240 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8241 (duplicate_insn_chain): For now, add checked cast from rtx to
8242 rtx_insn * when returning insn.
8243 (cfg_layout_duplicate_bb): Likewise for local "insn".
8244 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8246 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8247 (rtl_block_empty_p): Likewise.
8248 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8249 "split_point", "last".
8250 (rtl_block_ends_with_call_p): Likewise for local "insn".
8251 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8253 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8254 "split_at_insn" from rtx to rtx_insn *.
8255 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8256 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8257 to const rtx_insn *.
8258 (rtl_account_profile_record): Likewise.
8260 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8262 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8264 (average_num_loop_insns): Likewise.
8265 (init_set_costs): Likewise for local "seq".
8266 (seq_cost): Likewise for param "seq", from const_rtx to const
8269 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8271 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8274 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8276 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8277 "f1" and "f2" from rtx * to rtx_insn **.
8278 (flow_find_head_matching_sequence): Likewise.
8280 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8281 "cbranch_insn" from rtx to rtx_insn *.
8282 (thread_jump): Likewise for local "insn".
8283 (try_forward_edges): Likewise for local "last".
8284 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8285 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8287 (can_replace_by): Likewise for params "i1", "i2".
8288 (old_insns_match_p): Likewise.
8289 (merge_notes): Likewise.
8290 (walk_to_nondebug_insn): Likewise for param "i1".
8291 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8292 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8293 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8294 (flow_find_head_matching_sequence): Strengthen params "f1" and
8295 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8296 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8298 (outgoing_edges_match): Likewise for locals "last1", "last2".
8299 (try_crossjump_to_edge): Likewise for local "insn".
8300 Replace call to for_each_rtx with for_each_rtx_in_insn.
8302 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8303 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8304 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8305 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8306 (try_optimize_cfg): Strengthen local "last" from rtx to
8308 (delete_dead_jumptables): Likewise for locals "insn", "next",
8311 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8312 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8313 "rtx else_first_tail", to reflect the basic-block.h changes above.
8315 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8317 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8319 (purge_dead_tablejump_edges): Likewise.
8320 (find_bb_boundaries): Likewise for locals "insn", "end",
8321 "flow_transfer_insn".
8323 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8325 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8326 "ins" and "prev" from rtx to rtx_insn *.
8328 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8330 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8332 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8333 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8335 (load_register_parameters): Likewise for local "before_arg".
8336 (check_sibcall_argument_overlap): Likewise for param "insn".
8337 (expand_call): Likewise for locals "normal_call_insns",
8338 "tail_call_insns", "insns", "before_call", "after_args",
8339 "before_arg", "last", "prev". Strengthen one of the "last" from
8340 rtx to rtx_call_insn *.
8341 (fixup_tail_calls): Strengthen local "insn" from rtx to
8343 (emit_library_call_value_1): Likewise for locals "before_call" and
8346 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8348 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8349 and "last" from rtx to rtx_insn *.
8350 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8351 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8353 (expand_errno_check): Strengthen local "lab" from rtx to
8355 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8357 (expand_builtin_mathfn_2): Likewise.
8358 (expand_builtin_mathfn_ternary): Likewise.
8359 (expand_builtin_mathfn_3): Likewise.
8360 (expand_builtin_interclass_mathfn): Likewise for local "last".
8361 (expand_builtin_int_roundingfn): Likewise for local "insns".
8362 (expand_builtin_int_roundingfn_2): Likewise.
8363 (expand_builtin_strlen): Likewise for local "before_strlen".
8364 (expand_builtin_strncmp): Likewise for local "seq".
8365 (expand_builtin_signbit): Likewise for local "last".
8366 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8367 from rtx to rtx_code_label *.
8368 (expand_stack_restore): Strengthen local "prev" from rtx to
8371 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8373 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8375 (struct btr_def_s): Likewise.
8376 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8378 (add_btr_def): Likewise.
8379 (new_btr_user): Likewise.
8380 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8382 (link_btr_uses): Likewise.
8383 (move_btr_def): Likewise for locals "insp", "old_insn",
8384 "new_insn". Add checked cast to rtx_insn * for now on result of
8386 (can_move_up): Strengthen param "insn" from const_rtx to
8389 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8391 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8393 (get_uncond_jump_length): Likewise for locals "label", "jump".
8394 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8396 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8397 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8398 (find_jump_block): Likewise for local "insn".
8399 (fix_crossing_conditional_branches): Likewise for locals
8400 "old_jump", "new_jump".
8401 (fix_crossing_unconditional_branches): Likewise for locals
8402 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8403 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8405 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8407 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8409 (struct mem_insn): Likewise for field "insn".
8410 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8411 (reg_next_inc_use): Likewise.
8412 (reg_next_def): Likewise.
8413 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8414 from rtx to rtx_insn *.
8415 (move_insn_before): Likewise for param "next_insn" and local "insns".
8416 (attempt_change): Likewise for local "mov_insn".
8417 (try_merge): Likewise for param "last_insn".
8418 (get_next_ref): Likewise for return type and local "insn".
8419 Strengthen param "next_array" from rtx * to rtx_insn **.
8420 (parse_add_or_inc): Strengthen param "insn" from rtx to
8422 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8424 (merge_in_block): Likewise for locals "insn", "curr",
8426 (pass_inc_dec::execute): Update allocations of the arrays to
8427 reflect the stronger types.
8429 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8431 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8432 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8433 from rtx to rtx_code_label *.
8435 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8437 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8440 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8442 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8443 generated a warning and prevented bootstrapping the compiler.
8445 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8447 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8450 * jump.c (delete_related_insns): Likewise, also for locals "next"
8453 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8455 * genautomata.c (output_internal_insn_latency_func): When writing
8456 the function "internal_insn_latency" to insn-automata.c,
8457 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8458 allowing the optional guard function of (define_bypass) clauses to
8459 expect a pair of rtx_insn *, rather than a pair of rtx.
8460 (output_insn_latency_func): When writing the function
8461 "insn_latency", add an "uncast_" prefix to params "insn" and
8462 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8463 using checked casts from the params, thus enabling the above
8464 change to the generated "internal_insn_latency" function.
8466 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8468 PR tree-optimization/62091
8469 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8470 handle correctly arrays.
8471 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8473 (record_known_type): Walk into inner type.
8474 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8475 condition on no type changes.
8477 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8479 * genattrtab.c (write_attr_get): Within the generated get_attr_
8480 functions, rename param "insn" to "uncast_insn" and reintroduce
8481 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8482 is an rtx_insn * within insn-attrtab.c
8484 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8486 * output.h (peephole): Strengthen return type from rtx to
8488 * rtl.h (delete_for_peephole): Likewise for both params.
8489 * genpeep.c (main): In generated "peephole" function, strengthen
8490 return type and local "insn" from rtx to rtx_insn *. For now,
8491 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8492 rtx_insn *, with a checked cast.
8493 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8494 locals "insn", "next", "prev" from rtx to rtx_insn *.
8496 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8498 PR tree-optimization/62112
8499 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8500 * gimple-iterator.h (gsi_replace): Return bool.
8501 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8502 moved from ref_may_alias_global_p.
8503 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8505 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8506 (stmt_kills_ref_p_1): Rename...
8507 (stmt_kills_ref_p): ... to this.
8508 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8509 stmt_kills_ref_p): Declare.
8510 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8511 Move the self-assignment case...
8512 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8514 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8516 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8518 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8519 "after". For now, don't strengthen param "trial", which requires
8520 adding checked casts when returning it.
8522 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8524 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8525 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8526 "var_location" hook from rtx to rtx_insn *.
8527 (debug_nothing_rtx): Delete in favor of...
8528 (debug_nothing_rtx_code_label): New prototype.
8529 (debug_nothing_rtx_rtx): Delete unused prototype.
8530 (debug_nothing_rtx_insn): New prototype.
8532 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8533 invoking debug_hooks->var_location (in two places, one in a NOTE
8534 case of a switch statement, the other guarded by a CALL_P
8535 conditional. Add checked cast to rtx_code_label * when invoking
8536 debug_hooks->label (within CODE_LABEL case of switch statement).
8538 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8539 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8540 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8541 (xcoff_debug_hooks): Likewise.
8542 * debug.c (do_nothing_debug_hooks): Likewise.
8543 (debug_nothing_rtx): Delete in favor of...
8544 (debug_nothing_rtx_insn): New function.
8545 (debug_nothing_rtx_rtx): Delete unused function.
8546 (debug_nothing_rtx_code_label): New function.
8547 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8548 debug_nothing_rtx to debug_nothing_rtx_code_label.
8549 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8551 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8552 debug_nothing_rtx to debug_nothing_rtx_insn.
8553 (sdbout_label): Strengthen param "insn" from rtx to
8555 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8556 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8557 "var_location" hook from debug_nothing_rtx to
8558 debug_nothing_rtx_insn.
8560 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8562 * recog.h (insn_output_fn): Update this function typedef to match
8563 the changes below to the generated output functions, strengthening
8564 the 2nd param from rtx to rtx_insn *.
8566 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8567 insn when invoking an output function, to match the new signature
8568 of insn_output_fn with a stronger second param.
8570 * genconditions.c (write_header): In the generated code for
8571 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8572 to match the other changes in this patch.
8574 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8575 the generated "gen_" functions from rtx to rtx_insn * within their
8578 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8579 the subfunctions within the generated "recog_", "split", "peephole2"
8580 function trees from rtx to rtx_insn *. For now, the top-level
8581 generated functions ("recog", "split", "peephole2") continue to
8582 take a plain rtx for "insn", to avoid introducing dependencies on
8583 other patches. Rename this 2nd param from "insn" to
8584 "uncast_insn", and reintroduce "insn" as a local variable of type
8585 rtx_insn *, initialized at the top of the generated function with
8586 a checked cast on "uncast_insn".
8587 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8588 the generated "gen_" functions from rtx to rtx_insn * within their
8591 * genoutput.c (process_template): Strengthen the 2nd param within
8592 the generated "output_" functions "insn" from rtx to rtx_insn *.
8594 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8596 * tree-profile.c (tree_profiling): Skip external functions
8597 when doing coverage instrumentation.
8598 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8600 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8602 * config/rs6000/altivec.h (vec_cpsgn): New #define.
8603 (vec_mergee): Likewise.
8604 (vec_mergeo): Likewise.
8605 (vec_cntlz): Likewise.
8606 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8607 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8608 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8610 * doc/extend.texi: Document various forms of vec_cpsgn,
8611 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8612 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8613 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8614 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8615 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8617 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8619 * config/rs6000/rs6000.c (context.h): New include.
8620 (tree-pass.h): Likewise.
8621 (make_pass_analyze_swaps): New decl.
8622 (rs6000_option_override): Register pass_analyze_swaps.
8623 (swap_web_entry): New subsclass of web_entry_base (df.h).
8624 (special_handling_values): New enum.
8625 (union_defs): New function.
8626 (union_uses): Likewise.
8627 (insn_is_load_p): Likewise.
8628 (insn_is_store_p): Likewise.
8629 (insn_is_swap_p): Likewise.
8630 (rtx_is_swappable_p): Likewise.
8631 (insn_is_swappable_p): Likewise.
8632 (chain_purpose): New enum.
8633 (chain_contains_only_swaps): New function.
8634 (mark_swaps_for_removal): Likewise.
8635 (swap_const_vector_halves): Likewise.
8636 (adjust_subreg_index): Likewise.
8637 (permute_load): Likewise.
8638 (permute_store): Likewise.
8639 (handle_special_swappables): Likewise.
8640 (replace_swap_with_copy): Likewise.
8641 (dump_swap_insn_table): Likewise.
8642 (rs6000_analyze_swaps): Likewise.
8643 (pass_data_analyze_swaps): New pass_data.
8644 (pass_analyze_swaps): New rtl_opt_pass.
8645 (make_pass_analyze_swaps): New function.
8646 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8648 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8650 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8651 type from rtx to rtx_insn *.
8652 (create_copy_of_insn_rtx): Likewise.
8653 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8654 (create_copy_of_insn_rtx): Likewise, also for local "res".
8656 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8658 * rtl.h (find_first_parameter_load): Strengthen return type from
8660 * rtlanal.c (find_first_parameter_load): Strengthen return type
8661 from rtx to rtx_insn *. Add checked cast for now, to postpone
8662 strengthening the params.
8664 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8667 * diagnostic.c: Set default caret.
8668 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8670 * diagnostic.h (struct diagnostic_context):
8672 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8674 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8675 (sel_bb_head): Strengthen return type insn_t (currently just an
8677 (sel_bb_end): Likewise.
8679 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8680 (sel_bb_head): Strengthen return type and local "head" from
8681 insn_t (currently just an rtx) to rtx_insn *.
8682 (sel_bb_end): Likewise for return type.
8683 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8686 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8688 * basic-block.h (get_last_bb_insn): Strengthen return type from
8690 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8693 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8696 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8698 (diagnostic_report_diagnostic): ... from here.
8699 * toplev.c (general_init): Move code to c-family.
8701 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8703 * df.h (web_entry_base): Replace existing struct web_entry with a
8704 new class web_entry_base with only the predecessor member.
8705 (unionfind_root): Remove declaration and move to class member.
8706 (unionfind_union): Remove declaration and move to friend
8708 (union_defs): Remove declaration.
8709 * web.c (web_entry_base::unionfind_root): Modify to be member
8710 function and adjust accessors.
8711 (unionfind_union): Modify to be friend function and adjust
8713 (web_entry): New subclass of web_entry_base containing the reg
8715 (union_match_dups): Modify for struct -> class changes.
8716 (union_defs): Likewise.
8717 (entry_register): Likewise.
8718 (pass_web::execute): Likewise.
8720 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
8722 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8723 builtin define __VEC_ELEMENT_REG_ORDER__.
8725 2014-08-20 Martin Jambor <mjambor@suse.cz>
8726 Wei Mi <wmi@google.com>
8730 * tree-ssa-operands.c (update_stmt_operands): Remove
8731 MODIFIED_NORETURN_CALLS.
8732 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8733 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8734 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8735 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8736 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8737 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8738 (gimple_call_set_ctrl_altering): New func.
8739 (gimple_call_ctrl_altering_p): Ditto.
8740 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8741 (make_blocks): Use gimple_call_initialize_ctrl_altering.
8742 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8743 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8744 remove MODIFIED_NORETURN_CALLS.
8746 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8748 * coverage.c (coverage_compute_profile_id): Return non-0;
8749 also handle symbols with unique name.
8750 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8752 2014-08-20 Steve Ellcey <sellcey@mips.com>
8755 * doc/sourcebuild.texi (non_strict_align): New.
8757 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8759 * cgraphunit.c (ipa_passes, compile): Reshedule
8760 symtab_remove_unreachable_nodes passes; update comments.
8761 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8762 TODO_remove_functions before the pass; the functions ought to be
8764 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8765 TODO_remove_functions.
8766 * passes.c (pass_data_early_local_passes): Do not schedule function
8768 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8770 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8773 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8774 before setting the option.
8775 * diagnostic.c (diagnostic_classify_diagnostic): Record
8776 command-line status.
8778 2014-08-20 Richard Biener <rguenther@suse.de>
8781 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8782 to build uint{16,32,64}_type_node.
8784 2014-08-20 Terry Guo <terry.guo@arm.com>
8786 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8787 with immediate_operand.
8789 2014-08-20 David Malcolm <dmalcolm@redhat.com>
8791 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8792 "insn" from an as_a to a safe_as_a, for the case when "insn" is
8795 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8797 PR preprocessor/51303
8798 * incpath.c (remove_duplicates): Use cpp_warning.
8800 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8804 * doc/options.texi (CPP): Document it.
8805 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8806 * optc-gen.awk: Handle CPP.
8807 * opth-gen.awk: Likewise.
8809 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8811 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8813 (duplicate_insn_chain): Likewise.
8814 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8815 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8816 checked cast for now (until we can strengthen the params in the
8818 (duplicate_insn_chain): Likewise.
8820 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8822 * rtl.h (next_cc0_user): Strengthen return type from rtx to
8824 (prev_cc0_setter): Likewise.
8826 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8827 rtx_insn *, adding checked casts for now as necessary.
8828 (prev_cc0_setter): Likewise.
8830 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8832 * expr.h (emit_move_insn): Strengthen return type from rtx to
8834 (emit_move_insn_1): Likewise.
8835 (emit_move_complex_push): Likewise.
8836 (emit_move_complex_parts): Likewise.
8838 * expr.c (emit_move_via_integer): Strengthen return type from rtx
8839 to rtx_insn *. Replace use of NULL_RTX with NULL when working
8841 (emit_move_complex_push): Strengthen return type from rtx to
8843 (emit_move_complex): Likewise, also for local "ret".
8844 (emit_move_ccmode): Likewise.
8845 (emit_move_multi_word): Likewise for return type and locals
8847 (emit_move_insn_1): Likewise for return type and locals "result",
8849 (emit_move_insn): Likewise for return type and local "last_insn".
8850 (compress_float_constant): Likewise.
8852 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8854 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8855 from rtx to rtx_insn *.
8857 * rtl.h (emit_insn_before): Likewise.
8858 (emit_insn_before_noloc): Likewise.
8859 (emit_insn_before_setloc): Likewise.
8860 (emit_jump_insn_before): Likewise.
8861 (emit_jump_insn_before_noloc): Likewise.
8862 (emit_jump_insn_before_setloc): Likewise.
8863 (emit_call_insn_before): Likewise.
8864 (emit_call_insn_before_noloc): Likewise.
8865 (emit_call_insn_before_setloc): Likewise.
8866 (emit_debug_insn_before): Likewise.
8867 (emit_debug_insn_before_noloc): Likewise.
8868 (emit_debug_insn_before_setloc): Likewise.
8869 (emit_label_before): Likewise.
8870 (emit_insn_after): Likewise.
8871 (emit_insn_after_noloc): Likewise.
8872 (emit_insn_after_setloc): Likewise.
8873 (emit_jump_insn_after): Likewise.
8874 (emit_jump_insn_after_noloc): Likewise.
8875 (emit_jump_insn_after_setloc): Likewise.
8876 (emit_call_insn_after): Likewise.
8877 (emit_call_insn_after_noloc): Likewise.
8878 (emit_call_insn_after_setloc): Likewise.
8879 (emit_debug_insn_after): Likewise.
8880 (emit_debug_insn_after_noloc): Likewise.
8881 (emit_debug_insn_after_setloc): Likewise.
8882 (emit_label_after): Likewise.
8883 (emit_insn): Likewise.
8884 (emit_debug_insn): Likewise.
8885 (emit_jump_insn): Likewise.
8886 (emit_call_insn): Likewise.
8887 (emit_label): Likewise.
8888 (gen_clobber): Likewise.
8889 (emit_clobber): Likewise.
8890 (gen_use): Likewise.
8891 (emit_use): Likewise.
8894 (emit_barrier_before): Strengthen return type from rtx to
8896 (emit_barrier_after): Likewise.
8897 (emit_barrier): Likewise.
8899 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
8900 from rtx to rtx_insn *. Add checked casts for now when converting
8901 "last" from rtx to rtx_insn *.
8902 (emit_insn_before_noloc): Likewise for return type.
8903 (emit_jump_insn_before_noloc): Likewise.
8904 (emit_call_insn_before_noloc): Likewise.
8905 (emit_debug_insn_before_noloc): Likewise.
8906 (emit_barrier_before): Strengthen return type and local "insn"
8907 from rtx to rtx_barrier *.
8908 (emit_label_before): Strengthen return type from rtx to
8909 rtx_insn *. Add checked cast for now when returning param
8910 (emit_pattern_after_noloc): Strengthen return type from rtx to
8911 rtx_insn *. Add checked casts for now when converting "last" from
8913 (emit_insn_after_noloc): Strengthen return type from rtx to
8915 (emit_jump_insn_after_noloc): Likewise.
8916 (emit_call_insn_after_noloc): Likewise.
8917 (emit_debug_insn_after_noloc): Likewise.
8918 (emit_barrier_after): Strengthen return type from rtx to
8920 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
8921 Add checked cast for now when converting "label" from rtx to
8923 (emit_pattern_after_setloc): Strengthen return type from rtx to
8924 rtx_insn *. Add checked casts for now when converting "last" from
8926 (emit_pattern_after): Strengthen return type from rtx to
8928 (emit_insn_after_setloc): Likewise.
8929 (emit_insn_after): Likewise.
8930 (emit_jump_insn_after_setloc): Likewise.
8931 (emit_jump_insn_after): Likewise.
8932 (emit_call_insn_after_setloc): Likewise.
8933 (emit_call_insn_after): Likewise.
8934 (emit_debug_insn_after_setloc): Likewise.
8935 (emit_debug_insn_after): Likewise.
8936 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8937 when converting "last" from rtx to rtx_insn *.
8938 (emit_pattern_before): Strengthen return type from rtx to
8940 (emit_insn_before_setloc): Likewise.
8941 (emit_insn_before): Likewise.
8942 (emit_jump_insn_before_setloc): Likewise.
8943 (emit_jump_insn_before): Likewise.
8944 (emit_call_insn_before_setloc): Likewise.
8945 (emit_call_insn_before): Likewise.
8946 (emit_debug_insn_before_setloc): Likewise.
8947 (emit_debug_insn_before): Likewise.
8948 (emit_insn): Strengthen return type and locals "last", "insn",
8949 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8950 within cases where we know we have an insn.
8951 (emit_debug_insn): Likewise.
8952 (emit_jump_insn): Likewise.
8953 (emit_call_insn): Strengthen return type and local "insn" from rtx
8955 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8956 a checked cast to rtx_insn * for now on "label".
8957 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8958 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8959 (emit_use): Likewise.
8960 (gen_use): Likewise, also for local "seq".
8961 (emit): Likewise for return type and local "insn".
8962 (rtx_insn): Likewise for return type and local "new_rtx".
8964 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
8965 from rtx to rtx_barrier *.
8967 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
8968 changed return type from rtx to rtx_insn *, we must update
8969 "emit_fn" type, and this in turn means updating...
8970 (frame_insn): ...this. Strengthen return type from rtx to
8971 rtx_insn *. Introduce a new local "insn" of the appropriate type.
8973 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8975 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
8976 rtx to rtx_jump_table_data *. Also for local.
8977 * rtl.h (emit_jump_table_data): Likewise.
8979 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8981 * basic-block.h (create_basic_block_structure): Strengthen third
8982 param "bb_note" from rtx to rtx_note *.
8983 * rtl.h (emit_note_before): Strengthen return type from rtx to
8985 (emit_note_after): Likewise.
8986 (emit_note): Likewise.
8987 (emit_note_copy): Likewise. Also, strengthen param similarly.
8988 * function.h (struct rtl_data): Strengthen field
8989 "x_stack_check_probe_note" from rtx to rtx_note *.
8991 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
8992 from rtx to rtx_note *.
8993 * cfgrtl.c (create_basic_block_structure): Strengthen third param
8994 "bb_note" from rtx to rtx_note *.
8995 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
8996 when calling emit_note_copy.
8997 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
8999 (emit_note_after): Likewise.
9000 (emit_note_before): Likewise.
9001 (emit_note_copy): Likewise. Also, strengthen param similarly.
9002 (emit_note): Likewise.
9003 * except.c (emit_note_eh_region_end): Likewise for return type.
9004 Strengthen local "next" from rtx to rtx_insn *.
9005 (convert_to_eh_region_ranges): Strengthen local "note"
9006 from rtx to rtx_note *.
9007 * final.c (change_scope): Likewise.
9008 (reemit_insn_block_notes): Likewise, for both locals named "note".
9009 Also, strengthen local "insn" from rtx to rtx_insn *.
9010 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9012 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9013 strengthen local "seq" from rtx to rtx_insn *.
9014 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9016 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9018 (get_bb_note_from_pool): Strengthen return type from rtx to
9020 (sel_create_basic_block): Strengthen local "new_bb_note" from
9021 insn_t to rtx_note *.
9022 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9023 "note" from rtx to rtx_note *.
9024 (emit_notes_in_bb): Likewise.
9026 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9028 * function.h (struct rtl_data): Strengthen field
9029 "x_parm_birth_insn" from rtx to rtx_insn *.
9030 * function.c (struct assign_parm_data_all): Strengthen fields
9031 "first_conversion_insn" and "last_conversion_insn" from rtx to
9034 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9036 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9037 to rtx_insn *; also for local "var_end_seq".
9038 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9039 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9041 (expand_gimple_cond): Likewise for locals "last2" and "last".
9042 (mark_transaction_restart_calls): Likewise for local "insn".
9043 (expand_gimple_stmt): Likewise for return type and locals "last"
9045 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9046 (avoid_complex_debug_insns): Likewise for param "insn".
9047 (expand_debug_locations): Likewise for locals "insn", "last",
9048 "prev_insn" and "insn2".
9049 (expand_gimple_basic_block): Likewise for local "last".
9050 (construct_exit_block): Likewise for locals "head", "end",
9052 (pass_expand::execute): Likewise for locals "var_seq",
9053 "var_ret_seq", "next".
9055 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9057 * asan.h (asan_emit_stack_protection): Strengthen return type from
9059 * asan.c (asan_emit_stack_protection): Likewise. Add local
9060 "insns" to hold the return value.
9062 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9064 * basic-block.h (bb_note): Strengthen return type from rtx to
9066 * sched-int.h (bb_note): Likewise.
9067 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9069 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9071 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9074 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9075 "insn" from rtx to rtx_insn *.
9076 (make_debug_insn_raw): Strengthen return type from rtx to
9077 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9078 (make_jump_insn_raw): Strengthen return type from rtx to
9079 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9080 (make_call_insn_raw): Strengthen return type from rtx to
9081 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9082 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9083 callback from rtx to rtx_insn *; likewise for local "insn" and
9084 "next", adding a checked cast to rtx_insn in the relevant cases of
9085 the switch statement.
9086 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9087 callback from rtx to rtx_insn *.
9088 (emit_pattern_after_setloc): Likewise.
9089 (emit_pattern_after): Likewise.
9090 (emit_pattern_before_setloc): Likewise.
9091 (emit_pattern_before): Likewise.
9093 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9095 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9097 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9098 accepting an rtx_insn *.
9099 (last_call_insn): Strengthen return type from rtx to
9102 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9104 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9105 "insns" from rtx to rtx_insn *.
9106 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9107 locals "insn" and "prev".
9109 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9111 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9112 rtx_jump_table_data **.
9114 * cfgbuild.c (make_edges): Introduce local "table", using it in
9115 place of "tmp" for jump table data.
9116 (find_bb_boundaries): Strengthen local "table" from rtx to
9117 rtx_jump_table_data *.
9118 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9119 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9120 (try_crossjump_to_edge): Likewise.
9121 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9123 (patch_jump_insn): Introduce local "table", using it in place of
9124 "tmp" for jump table data.
9125 (force_nonfallthru_and_redirect): Introduce local "table", so that
9126 call to tablejump_p can receive an rtx_jump_table_data **. Update
9127 logic around the call to overwrite "note" appropriately if
9128 tablejump_p returns non-zero.
9129 (get_last_bb_insn): Introduce local "table", using it in place of
9130 "tmp" for jump table data.
9131 * dwarf2cfi.c (create_trace_edges): Likewise.
9133 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9134 from rtx to rtx_jump_table_data *.
9135 (create_fix_barrier): Strengthen local "tmp" from rtx to
9136 rtx_jump_table_data *.
9137 (arm_reorg): Likewise for local "table".
9139 * config/s390/s390.c (s390_chunkify_start): Likewise.
9141 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9143 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9144 rtx to rtx_jump_table_data *.
9146 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9147 rtx_jump_table_data **. Add a checked cast when writing through
9148 the pointer: we know there that local "table" is non-NULL and that
9149 JUMP_TABLE_DATA_P (table) holds.
9150 (label_is_jump_target_p): Introduce local "table", using it in
9151 place of "tmp" for jump table data.
9153 2014-08-19 Marek Polacek <polacek@redhat.com>
9156 * doc/invoke.texi: Document -Wbool-compare.
9158 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9160 * rtl.h (entry_of_function): Strengthen return type from rtx to
9162 * cfgrtl.c (entry_of_function): Likewise.
9164 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9166 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9167 rtx_insn *, adding a checked cast for now.
9168 (get_last_insn): Likewise.
9170 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9172 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9175 * emit-rtl.c (gen_label_rtx): Likewise.
9177 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9179 * rtl.h (previous_insn): Strengthen return type from rtx to
9181 (next_insn): Likewise.
9182 (prev_nonnote_insn): Likewise.
9183 (prev_nonnote_insn_bb): Likewise.
9184 (next_nonnote_insn): Likewise.
9185 (next_nonnote_insn_bb): Likewise.
9186 (prev_nondebug_insn): Likewise.
9187 (next_nondebug_insn): Likewise.
9188 (prev_nonnote_nondebug_insn): Likewise.
9189 (next_nonnote_nondebug_insn): Likewise.
9190 (prev_real_insn): Likewise.
9191 (next_real_insn): Likewise.
9192 (prev_active_insn): Likewise.
9193 (next_active_insn): Likewise.
9195 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9196 rtx_insn *, adding a checked cast.
9197 (previous_insn): Likewise.
9198 (next_nonnote_insn): Likewise.
9199 (next_nonnote_insn_bb): Likewise.
9200 (prev_nonnote_insn): Likewise.
9201 (prev_nonnote_insn_bb): Likewise.
9202 (next_nondebug_insn): Likewise.
9203 (prev_nondebug_insn): Likewise.
9204 (next_nonnote_nondebug_insn): Likewise.
9205 (prev_nonnote_nondebug_insn): Likewise.
9206 (next_real_insn): Likewise.
9207 (prev_real_insn): Likewise.
9208 (next_active_insn): Likewise.
9209 (prev_active_insn): Likewise.
9211 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9212 param "stepfunc" so that it returns an rtx_insn * rather than an
9213 rtx, to track the change to prev_nonnote_insn_bb, which is the
9214 only function this is called with.
9215 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9217 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9219 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9222 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9224 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9225 (class rtx_nonjump_insn): Likewise.
9226 (class rtx_jump_insn): Likewise.
9227 (class rtx_call_insn): Likewise.
9228 (class rtx_jump_table_data): Likewise.
9229 (class rtx_barrier): Likewise.
9230 (class rtx_code_label): Likewise.
9231 (class rtx_note): Likewise.
9233 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9234 adding the invariant DEBUG_INSN_P (X).
9235 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9236 the invariant NONJUMP_INSN_P (X).
9237 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9238 the invariant JUMP_P (X).
9239 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9240 the invariant CALL_P (X).
9241 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9242 invariant JUMP_TABLE_DATA_P (X).
9243 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9244 invariant BARRIER_P (X).
9245 (class rtx_code_label): New, a subclass of rtx_insn, adding
9246 the invariant LABEL_P (X).
9247 (class rtx_note): New, a subclass of rtx_insn, adding
9248 the invariant NOTE_P(X).
9249 (is_a_helper <rtx_debug_insn *>::test): New.
9250 (is_a_helper <rtx_nonjump_insn *>::test): New.
9251 (is_a_helper <rtx_jump_insn *>::test): New.
9252 (is_a_helper <rtx_call_insn *>::test): New.
9253 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9254 overloaded for both rtx and rtx_insn *.
9255 (is_a_helper <rtx_barrier *>::test): New.
9256 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9257 for both rtx and rtx_insn *.
9258 (is_a_helper <rtx_note *>::test): New.
9260 2014-08-19 Marek Polacek <polacek@redhat.com>
9262 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9263 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9264 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9265 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9267 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9269 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9270 rtx_insn *. To help with transition, for now, convert from an
9271 access macro into a pair of functions: BND_TO, returning an
9273 (SET_BND_TO): New function, for use where BND_TO is used as an
9276 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9278 (BND_TO): New function, adding a checked cast.
9279 (SET_BND_TO): New function.
9281 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9283 (compute_av_set_on_boundaries): Likewise.
9285 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9287 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9288 destination if it is used in source.
9289 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9290 (*popcount<mode>2_falsedep_1): Likewise.
9292 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9295 * configure.ac: Set install_gold_as_default to no first.
9296 * configure: Regenerated.
9298 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9300 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9301 "note_list" field will eventually be an rtx_insn *. To help with
9302 transition, for now, convert from an access macro into a pair of
9303 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9304 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9307 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9308 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9310 * sel-sched-ir.c (init_bb): Likewise.
9311 (sel_restore_notes): Likewise.
9312 (move_bb_info): Likewise.
9313 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9314 (SET_BB_NOTE_LIST): New function.
9316 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9318 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9319 field will eventually be an rtx_insn *. To help with transition,
9320 for now, convert from an access macro into a pair of functions:
9321 VINSN_INSN_RTX, returning an rtx_insn *, and...
9322 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9323 is used as an lvalue.
9325 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9326 SET_VINSN_INSN_RTX where it's used as an lvalue.
9327 (VINSN_INSN_RTX): New function.
9328 (SET_VINSN_INSN_RTX): New function.
9330 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9332 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9333 eventually be rtx_insn *, but to help with transition, for now,
9334 convert from an access macro into a pair of functions: DEP_PRO
9335 returning an rtx_insn * and...
9336 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9337 lvalue, returning an rtx&.
9338 (DEP_CON): Analogous changes to DEP_PRO above.
9339 (SET_DEP_CON): Likewise.
9341 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9342 an lvalue to SET_DEP_CON.
9343 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9344 (sd_copy_back_deps): Likewise for DEP_CON.
9345 (DEP_PRO): New function, adding a checked cast for now.
9346 (DEP_CON): Likewise.
9347 (SET_DEP_PRO): New function.
9348 (SET_DEP_CON): Likewise.
9350 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9352 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9353 (extra_options): Add i386/cygwin.opt.
9354 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9355 (CPP_SPEC): Accept -pthread.
9357 (GOMP_SELF_SPECS): Update comment.
9358 * config/i386/cygwin.opt: New file for -pthread flag.
9360 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9362 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9363 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9364 that we can return an rtx_insn *.
9366 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9368 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9369 when building executables, not DLLs. Add --large-address-aware
9370 under the same conditions.
9371 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9372 when building executables, not DLLs. Add --large-address-aware
9373 under the same conditions when using -m32.
9375 * config/i386/cygwin-stdint.h: Throughout, make type
9376 definitions dependent on target architecture, not host.
9378 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9380 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9381 the return type from rtx to rtx_insn *, which will enable various
9382 conversions in followup patches. For now this is is done by a
9384 (NEXT_INSN): Likewise.
9385 (SET_PREV_INSN): Convert to an inline function. This is intended
9386 for use as an lvalue, and so returns an rtx& to allow in-place
9388 (SET_NEXT_INSN): Likewise.
9390 2014-07-08 Mark Wielaard <mjw@redhat.com>
9393 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9395 2014-08-19 Marek Polacek <polacek@redhat.com>
9398 * cgraphunit.c (handle_alias_pairs): Fix condition.
9400 2014-08-19 Richard Biener <rguenther@suse.de>
9402 * gimple-fold.c (fold_gimple_assign): Properly build a
9403 null-pointer constant when devirtualizing addresses.
9405 2014-07-07 Mark Wielaard <mjw@redhat.com>
9407 * dwarf2out.c (decl_quals): New function.
9408 (modified_type_die): Take one cv_quals argument instead of two,
9409 one for const and one for volatile.
9410 (add_type_attribute): Likewise.
9411 (generic_parameter_die): Call add_type_attribute with one modifier
9413 (base_type_for_mode): Likewise.
9414 (add_bounds_info): Likewise.
9415 (add_subscript_info): Likewise.
9416 (gen_array_type_die): Likewise.
9417 (gen_descr_array_type_die): Likewise.
9418 (gen_entry_point_die): Likewise.
9419 (gen_enumeration_type_die): Likewise.
9420 (gen_formal_parameter_die): Likewise.
9421 (gen_subprogram_die): Likewise.
9422 (gen_variable_die): Likewise.
9423 (gen_const_die): Likewise.
9424 (gen_field_die): Likewise.
9425 (gen_pointer_type_die): Likewise.
9426 (gen_reference_type_die): Likewise.
9427 (gen_ptr_to_mbr_type_die): Likewise.
9428 (gen_inheritance_die): Likewise.
9429 (gen_subroutine_type_die): Likewise.
9430 (gen_typedef_die): Likewise.
9431 (force_type_die): Likewise.
9433 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9435 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9437 * configure: Regenerate.
9439 2014-08-19 Richard Biener <rguenther@suse.de>
9441 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9442 DECL_EXTERNALs in BLOCKs as non-references.
9443 * tree-streamer-out.c (streamer_write_chain): Likewise.
9445 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9446 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9447 Anna Tikhonova <anna.tikhonova@intel.com>
9448 Ilya Tocar <ilya.tocar@intel.com>
9449 Andrey Turetskiy <andrey.turetskiy@intel.com>
9450 Ilya Verbin <ilya.verbin@intel.com>
9451 Kirill Yukhin <kirill.yukhin@intel.com>
9452 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9454 * config/i386/sse.md
9455 (define_mode_iterator VI48_AVX512F): Delete.
9456 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9457 (define_mode_iterator VI2_AVX512VL): Ditto.
9458 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9461 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9463 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9464 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9465 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9466 with VI48_AVX512F_AVX512VL): New.
9467 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9468 with VI2_AVX512VL): Ditto.
9470 2014-08-19 Marek Polacek <polacek@redhat.com>
9472 * doc/invoke.texi: Document -Wc99-c11-compat.
9474 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9476 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9478 (SET_PREV_INSN): New macro, for use as an lvalue.
9479 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9481 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9482 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9483 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9484 (fixup_abnormal_edges): Likewise.
9485 (unlink_insn_chain): Likewise.
9486 (fixup_reorder_chain): Likewise.
9487 (cfg_layout_delete_block): Likewise.
9488 (cfg_layout_merge_blocks): Likewise.
9489 * combine.c (update_cfg_for_uncondjump): Likewise.
9490 * emit-rtl.c (link_insn_into_chain): Likewise.
9491 (remove_insn): Likewise.
9492 (delete_insns_since): Likewise.
9493 (reorder_insns_nobb): Likewise.
9494 (emit_insn_after_1): Likewise.
9495 * final.c (rest_of_clean_state): Likewise.
9496 (final_scan_insn): Likewise.
9497 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9498 * haifa-sched.c (concat_note_lists): Likewise.
9499 (remove_notes): Likewise.
9500 (restore_other_notes): Likewise.
9501 (move_insn): Likewise.
9502 (unlink_bb_notes): Likewise.
9503 (restore_bb_notes): Likewise.
9504 * jump.c (delete_for_peephole): Likewise.
9505 * optabs.c (emit_libcall_block_1): Likewise.
9506 * reorg.c (emit_delay_sequence): Likewise.
9507 (fill_simple_delay_slots): Likewise.
9508 * sel-sched-ir.c (sel_move_insn): Likewise.
9509 (sel_remove_insn): Likewise.
9510 (get_bb_note_from_pool): Likewise.
9511 * sel-sched.c (move_nop_to_previous_block): Likewise.
9513 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9514 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9515 (c6x_gen_bundles): Likewise.
9516 (hwloop_optimize): Likewise.
9517 * config/frv/frv.c (frv_function_prologue): Likewise.
9518 (frv_register_nop): Likewise.
9519 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9520 (ia64_reorg): Likewise.
9521 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9522 (mep_make_bundle): Likewise.
9523 (mep_bundle_insns): Likewise.
9524 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9525 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9526 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9528 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9530 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9531 return type from rtx to rtx_insn *.
9533 (BB_HEADER): Likewise.
9534 (BB_FOOTER): Likewise.
9535 (SET_BB_HEAD): Convert to a function.
9536 (SET_BB_END): Likewise.
9537 (SET_BB_HEADER): Likewise.
9538 (SET_BB_FOOTER): Likewise.
9540 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9541 Strengthen the return type from rtx to rtx_insn *. For now, this
9542 is done by adding a checked cast, but this will eventually
9543 become a field lookup.
9545 (BB_HEADER): Likewise.
9546 (BB_FOOTER): Likewise.
9547 (SET_BB_HEAD): New function, from macro of same name. This is
9548 intended for use as an lvalue, and so returns an rtx& to allow
9549 in-place modification.
9550 (SET_BB_END): Likewise.
9551 (SET_BB_HEADER): Likewise.
9552 (SET_BB_FOOTER): Likewise.
9554 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9556 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9558 (SET_BB_HEAD): New macro, for use as a lvalue.
9559 (BB_END, SET_BB_END): Likewise.
9560 (BB_HEADER, SET_BB_HEADER): Likewise.
9561 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9563 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9564 of BB_* macros into SET_BB_* macros.
9565 (fix_crossing_unconditional_branches): Likewise.
9566 * caller-save.c (save_call_clobbered_regs): Likewise.
9567 (insert_one_insn): Likewise.
9568 * cfgbuild.c (find_bb_boundaries): Likewise.
9569 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9570 (outgoing_edges_match): Likewise.
9571 (try_optimize_cfg): Likewise.
9572 * cfgexpand.c (expand_gimple_cond): Likewise.
9573 (expand_gimple_tailcall): Likewise.
9574 (expand_gimple_basic_block): Likewise.
9575 (construct_exit_block): Likewise.
9576 * cfgrtl.c (delete_insn): Likewise.
9577 (create_basic_block_structure): Likewise.
9578 (rtl_delete_block): Likewise.
9579 (rtl_split_block): Likewise.
9580 (emit_nop_for_unique_locus_between): Likewise.
9581 (rtl_merge_blocks): Likewise.
9582 (block_label): Likewise.
9583 (try_redirect_by_replacing_jump): Likewise.
9584 (emit_barrier_after_bb): Likewise.
9585 (fixup_abnormal_edges): Likewise.
9586 (record_effective_endpoints): Likewise.
9587 (relink_block_chain): Likewise.
9588 (fixup_reorder_chain): Likewise.
9589 (fixup_fallthru_exit_predecessor): Likewise.
9590 (cfg_layout_duplicate_bb): Likewise.
9591 (cfg_layout_split_block): Likewise.
9592 (cfg_layout_delete_block): Likewise.
9593 (cfg_layout_merge_blocks): Likewise.
9594 * combine.c (update_cfg_for_uncondjump): Likewise.
9595 * emit-rtl.c (add_insn_after): Likewise.
9596 (remove_insn): Likewise.
9597 (reorder_insns): Likewise.
9598 (emit_insn_after_1): Likewise.
9599 * haifa-sched.c (get_ebb_head_tail): Likewise.
9600 (restore_other_notes): Likewise.
9601 (move_insn): Likewise.
9602 (sched_extend_bb): Likewise.
9603 (fix_jump_move): Likewise.
9604 * ifcvt.c (noce_process_if_block): Likewise.
9605 (dead_or_predicable): Likewise.
9606 * ira.c (update_equiv_regs): Likewise.
9607 * reg-stack.c (change_stack): Likewise.
9608 * sel-sched-ir.c (sel_move_insn): Likewise.
9609 * sel-sched.c (move_nop_to_previous_block): Likewise.
9611 * config/c6x/c6x.c (hwloop_optimize): Likewise.
9612 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9614 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9616 * rtl.h (for_each_rtx_in_insn): New function.
9617 * rtlanal.c (for_each_rtx_in_insn): Likewise.
9619 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9621 * coretypes.h (class rtx_insn): Add forward declaration.
9623 * rtl.h: Include is-a.h.
9624 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9625 workaround to ensure gengtype knows inheritance is occurring,
9626 whilst continuing to use the pre-existing special-casing for
9628 (class rtx_insn): New subclass of rtx_def, adding the
9629 invariant that we're dealing with something we can sanely use
9630 INSN_UID, NEXT_INSN, PREV_INSN on.
9631 (is_a_helper <rtx_insn *>::test): New.
9632 (is_a_helper <const rtx_insn *>::test): New.
9634 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9636 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9638 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9640 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9643 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9645 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9646 to BUILT_IN_UNREACHABLE.
9648 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
9651 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9653 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9654 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9655 (ffs<mode>2): Do not expand with tzcnt for
9656 TARGET_AVOID_FALSE_DEP_FOR_BMI.
9657 (ffssi2_no_cmove): Ditto.
9658 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9659 (ctz<mode>2): New expander.
9660 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9661 (*ctz<mode>2_falsedep): New insn.
9662 (*ctz<mode>2): Rename from ctz<mode>2.
9663 (clz<mode>2_lzcnt): New expander.
9664 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9665 (*clz<mode>2_lzcnt_falsedep): New insn.
9666 (*clz<mode>2): Rename from ctz<mode>2.
9667 (popcount<mode>2): New expander.
9668 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9669 (*popcount<mode>2_falsedep): New insn.
9670 (*popcount<mode>2): Rename from ctz<mode>2.
9671 (*popcount<mode>2_cmp): Remove.
9672 (*popcountsi2_cmp_zext): Ditto.
9674 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
9676 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9677 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9678 * config/microblaze/microblaze.h
9679 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9681 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
9684 * configure.ac: Set install_gold_as_default to no for
9686 * configure: Regenerated.
9688 2014-08-18 Roman Gareev <gareevroman@gmail.com>
9690 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9691 * config.in: Add undef of HAVE_isl.
9692 * configure: Regenerate.
9693 * configure.ac: Add definition of HAVE_isl.
9694 * graphite-blocking.c: Add checking of HAVE_isl.
9695 * graphite-dependences.c: Likewise.
9696 * graphite-interchange.c: Likewise.
9697 * graphite-isl-ast-to-gimple.c: Likewise.
9698 * graphite-optimize-isl.c: Likewise.
9699 * graphite-poly.c: Likewise.
9700 * graphite-scop-detection.c: Likewise.
9701 * graphite-sese-to-poly.c: Likewise.
9702 * graphite.c: Likewise.
9703 * toplev.c: Replace the checking of HAVE_cloog with the checking
9706 2014-08-18 Richard Biener <rguenther@suse.de>
9708 PR tree-optimization/62090
9709 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9710 (fold_builtin_3): Do not fold snprintf.
9711 (fold_builtin_4): Likewise.
9712 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9713 moved from builtins.c.
9714 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9715 (gimple_fold_builtin): Do not fold sprintf here.
9717 2014-08-18 Richard Biener <rguenther@suse.de>
9719 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9721 (maybe_canonicalize_mem_ref_addr): ... this function.
9722 (fold_stmt_1): Apply it here before all simplification.
9724 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
9727 * cgraph.h (cgraph_node::create_indirect_edge): Add
9728 compute_indirect_info param.
9729 * cgraph.c (cgraph_node::create_indirect_edge): Compute
9730 indirect_info only when it is required.
9731 * cgraphclones.c (cgraph_clone_edge): Do not recompute
9732 indirect_info fore cloned indirect edge.
9734 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9735 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9736 Anna Tikhonova <anna.tikhonova@intel.com>
9737 Ilya Tocar <ilya.tocar@intel.com>
9738 Andrey Turetskiy <andrey.turetskiy@intel.com>
9739 Ilya Verbin <ilya.verbin@intel.com>
9740 Kirill Yukhin <kirill.yukhin@intel.com>
9741 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9743 * config/i386/sse.md
9744 (define_mode_iterator VI8_AVX2_AVX512BW): New.
9745 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9747 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9748 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9749 Anna Tikhonova <anna.tikhonova@intel.com>
9750 Ilya Tocar <ilya.tocar@intel.com>
9751 Andrey Turetskiy <andrey.turetskiy@intel.com>
9752 Ilya Verbin <ilya.verbin@intel.com>
9753 Kirill Yukhin <kirill.yukhin@intel.com>
9754 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9756 * config/i386/sse.md
9757 (define_mode_iterator VF1_AVX512VL): New.
9758 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9759 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9762 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9763 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9764 Anna Tikhonova <anna.tikhonova@intel.com>
9765 Ilya Tocar <ilya.tocar@intel.com>
9766 Andrey Turetskiy <andrey.turetskiy@intel.com>
9767 Ilya Verbin <ilya.verbin@intel.com>
9768 Kirill Yukhin <kirill.yukhin@intel.com>
9769 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9771 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9772 * config/i386/i386.md
9773 (define_code_iterator any_float): New.
9774 (define_code_attr floatsuffix): New.
9775 * config/i386/sse.md
9776 (define_mode_iterator VF1_128_256VL): New.
9777 (define_mode_iterator VF2_512_256VL): New.
9778 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9780 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9781 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9783 (define_mode_attr qq2pssuff): New.
9784 (define_mode_attr sselongvecmode): New.
9785 (define_mode_attr sselongvecmodelower): New.
9786 (define_mode_attr sseintvecmode3): New.
9787 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9789 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9790 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9791 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9792 (define_insn "ufloatv2siv2df2<mask_name>"): New.
9794 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9795 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9796 Anna Tikhonova <anna.tikhonova@intel.com>
9797 Ilya Tocar <ilya.tocar@intel.com>
9798 Andrey Turetskiy <andrey.turetskiy@intel.com>
9799 Ilya Verbin <ilya.verbin@intel.com>
9800 Kirill Yukhin <kirill.yukhin@intel.com>
9801 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9803 * config/i386/sse.md
9804 (define_mode_iterator VF2_AVX512VL): New.
9805 (define_mode_attr sseintvecmode2): New.
9806 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9807 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9808 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9810 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9812 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9814 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9817 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9818 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9819 Anna Tikhonova <anna.tikhonova@intel.com>
9820 Ilya Tocar <ilya.tocar@intel.com>
9821 Andrey Turetskiy <andrey.turetskiy@intel.com>
9822 Ilya Verbin <ilya.verbin@intel.com>
9823 Kirill Yukhin <kirill.yukhin@intel.com>
9824 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9826 * config/i386/i386.md
9827 (define_insn "*movoi_internal_avx"): Add evex version.
9828 (define_insn "*movti_internal"): Ditto.
9830 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9831 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9832 Anna Tikhonova <anna.tikhonova@intel.com>
9833 Ilya Tocar <ilya.tocar@intel.com>
9834 Andrey Turetskiy <andrey.turetskiy@intel.com>
9835 Ilya Verbin <ilya.verbin@intel.com>
9836 Kirill Yukhin <kirill.yukhin@intel.com>
9837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9839 * config/i386/i386.md
9840 (define_attr "isa"): Add avx512dq, noavx512dq.
9841 (define_attr "enabled"): Ditto.
9842 * config/i386/sse.md
9843 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9845 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9846 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9847 Anna Tikhonova <anna.tikhonova@intel.com>
9848 Ilya Tocar <ilya.tocar@intel.com>
9849 Andrey Turetskiy <andrey.turetskiy@intel.com>
9850 Ilya Verbin <ilya.verbin@intel.com>
9851 Kirill Yukhin <kirill.yukhin@intel.com>
9852 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9854 * config/i386/i386.c
9855 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9856 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9857 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9858 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9859 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9860 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9861 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9862 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9863 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9864 * config/i386/sse.md
9865 (define_mode_iterator VMOVE): Allow V4TI mode.
9866 (define_mode_iterator V_AVX512VL): New.
9867 (define_mode_iterator V): New handling for AVX512VL.
9868 (define_insn "avx512f_load<mode>_mask"): Delete.
9869 (define_insn "<avx512>_load<mode>_mask"): New.
9870 (define_insn "avx512f_store<mode>_mask"): Delete.
9871 (define_insn "<avx512>_store<mode>_mask"): New.
9874 2014-08-18 Yury Gribov <y.gribov@samsung.com>
9877 * asan.c (instrument_derefs): Fix bitfield check.
9879 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9881 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9882 * config/rs6000/htm.md (ttest): Remove clobber.
9883 * config/rs6000/predicates.md (any_mask_operand): New predicate.
9884 (and_operand): Reformat.
9885 (and_2rld_operand): New predicate.
9886 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9888 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9889 parameter. Handle AND directly.
9890 (rs6000_split_logical_di): Remove last parameter.
9891 (rs6000_split_logical): Remove last parameter. Remove obsolete
9893 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9894 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9895 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
9896 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9897 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9898 and 5 anonymous splitters): Delete.
9899 (and<mode>3): New expander.
9900 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9901 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9902 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
9903 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
9904 (floatdisf2_internal1): Remove clobbers.
9905 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
9906 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
9907 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
9908 (and<mode>3 for BOOL_128): Remove clobber.
9909 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
9910 rs6000_split_logical.
9911 (*bool<mode>3_internal for BOOL_128): Adjust call of
9912 rs6000_split_logical.
9913 (*boolc<mode>3_internal1 for BOOL_128,
9914 *boolc<mode>3_internal2 for BOOL_128,
9915 *boolcc<mode>3_internal1 for BOOL_128,
9916 *boolcc<mode>3_internal2 for BOOL_128,
9917 *eqv<mode>3_internal1 for BOOL_128,
9918 *eqv<mode>3_internal2 for BOOL_128,
9919 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
9920 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
9922 (*vec_reload_and_reg_<mptrsize>): Delete.
9924 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9926 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9927 and split, *boolccsi3_internal3 and split): Delete.
9928 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9929 *boolccdi3_internal3 and split): Delete.
9930 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9931 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9933 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9935 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9936 and split, *boolcsi3_internal3 and split): Delete.
9937 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9938 *boolcdi3_internal3 and split): Delete.
9939 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9941 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9943 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9944 <'u'>: Also support printing the low-order 16 bits.
9945 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9946 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9947 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9948 *booldi3_internal3 and split): Delete.
9949 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9950 *bool<mode>3_dot2): New.
9951 (two anonymous define_splits for non_logical_cint_operand): Merge.
9953 2014-08-17 Marek Polacek <polacek@redhat.com>
9954 Manuel López-Ibáñez <manu@gcc.gnu.org>
9957 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9958 (diagnostic_show_locus): Don't print caret diagnostic
9959 if a column is larger than the line_width.
9961 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9963 * common.opt: Make the ISL AST generator to be the main code generator
9966 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
9968 * wide-int.h (generic_wide_int): Declare as class instead of struct.
9970 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
9973 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
9975 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
9976 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
9977 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
9979 * config/pa/pa.md (begin_brtab): Delete insn.
9980 (end_brtab): Likewise.
9982 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9984 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
9986 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
9988 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
9989 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
9990 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
9991 (get_dynamic_type): Remove.
9992 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
9993 (clear_speculation): Bring to ipa-deivrt.h
9994 (get_class_context): Rename to ...
9995 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
9996 (contains_type_p): Update.
9997 (get_dynamic_type): Rename to ...
9998 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
9999 (possible_polymorphic_call_targets): UPdate.
10000 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10001 * ipa-prop.c (ipa_analyze_call_uses): Update.
10003 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10005 * doc/invoke.texi (SH options): Document missing processor variant
10006 options. Remove references to Hitachi. Undocument deprecated mspace
10009 2014-08-15 Jason Merrill <jason@redhat.com>
10011 * tree.c (type_hash_canon): Uncomment assert.
10013 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10015 * input.h (in_system_header_at): Add comment.
10017 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10020 * diagnostic.c (build_message_string): Make it extern.
10021 * diagnostic.h (build_message_string): Make it extern.
10023 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10025 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10026 load/store from/to non-floating class pseudo.
10028 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10030 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10032 2014-08-15 Richard Biener <rguenther@suse.de>
10034 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10035 (get_constraint_for_ssa_var): Remove dead code.
10036 (get_constraint_for_1): Adjust.
10037 (find_what_var_points_to): Likewise.
10038 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10040 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10043 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10044 (_mm512_mask_cmpge_epu32_mask): Ditto.
10045 (_mm512_cmpge_epu32_mask): Ditto.
10046 (_mm512_mask_cmpge_epi64_mask): Ditto.
10047 (_mm512_cmpge_epi64_mask): Ditto.
10048 (_mm512_mask_cmpge_epu64_mask): Ditto.
10049 (_mm512_cmpge_epu64_mask): Ditto.
10050 (_mm512_mask_cmple_epi32_mask): Ditto.
10051 (_mm512_cmple_epi32_mask): Ditto.
10052 (_mm512_mask_cmple_epu32_mask): Ditto.
10053 (_mm512_cmple_epu32_mask): Ditto.
10054 (_mm512_mask_cmple_epi64_mask): Ditto.
10055 (_mm512_cmple_epi64_mask): Ditto.
10056 (_mm512_mask_cmple_epu64_mask): Ditto.
10057 (_mm512_cmple_epu64_mask): Ditto.
10058 (_mm512_mask_cmplt_epi32_mask): Ditto.
10059 (_mm512_cmplt_epi32_mask): Ditto.
10060 (_mm512_mask_cmplt_epu32_mask): Ditto.
10061 (_mm512_cmplt_epu32_mask): Ditto.
10062 (_mm512_mask_cmplt_epi64_mask): Ditto.
10063 (_mm512_cmplt_epi64_mask): Ditto.
10064 (_mm512_mask_cmplt_epu64_mask): Ditto.
10065 (_mm512_cmplt_epu64_mask): Ditto.
10066 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10067 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10068 (_mm512_cmpneq_epu32_mask): Ditto.
10069 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10070 (_mm512_cmpneq_epi64_mask): Ditto.
10071 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10072 (_mm512_cmpneq_epu64_mask): Ditto.
10073 (_mm512_castpd_ps): Ditto.
10074 (_mm512_castpd_si512): Ditto.
10075 (_mm512_castps_pd): Ditto.
10076 (_mm512_castps_si512): Ditto.
10077 (_mm512_castsi512_ps): Ditto.
10078 (_mm512_castsi512_pd): Ditto.
10079 (_mm512_castpd512_pd128): Ditto.
10080 (_mm512_castps512_ps128): Ditto.
10081 (_mm512_castsi512_si128): Ditto.
10082 (_mm512_castpd512_pd256): Ditto.
10083 (_mm512_castps512_ps256): Ditto.
10084 (_mm512_castsi512_si256): Ditto.
10085 (_mm512_castpd128_pd512): Ditto.
10086 (_mm512_castps128_ps512): Ditto.
10087 (_mm512_castsi128_si512): Ditto.
10088 (_mm512_castpd256_pd512): Ditto.
10089 (_mm512_castps256_ps512): Ditto.
10090 (_mm512_castsi256_si512): Ditto.
10091 (_mm512_cmpeq_epu32_mask): Ditto.
10092 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10093 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10094 (_mm512_cmpeq_epu64_mask): Ditto.
10095 (_mm512_cmpgt_epu32_mask): Ditto.
10096 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10097 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10098 (_mm512_cmpgt_epu64_mask): Ditto.
10099 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10100 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10101 * config/i386/i386.c (enum ix86_builtins): Add
10102 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10103 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10104 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10105 (bdesc_args): Add __builtin_ia32_si512_256si,
10106 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10107 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10108 __builtin_ia32_pd512_pd.
10109 (ix86_expand_args_builtin): Handle new FTYPEs.
10110 * config/i386/sse.md (castmode): Add 512-bit modes.
10111 (AVX512MODE2P): New.
10112 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10113 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10115 2014-08-15 Richard Biener <rguenther@suse.de>
10117 * fold-const.c (tree_swap_operands_p): Put all constants
10118 last, also strip sign-changing NOPs when considering further
10119 canonicalization. Canonicalize also when optimizing for size.
10121 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10123 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10124 one_match > zero_match case to just before simple_sequence.
10126 2014-08-15 Richard Biener <rguenther@suse.de>
10128 * data-streamer.h (streamer_string_index, string_for_index):
10130 * data-streamer-out.c (streamer_string_index): Make static.
10131 * data-streamer-in.c (string_for_index): Likewise.
10132 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10133 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10135 2014-08-15 Richard Biener <rguenther@suse.de>
10137 PR tree-optimization/62031
10138 * tree-data-ref.c (dr_analyze_indices): Do not set
10139 DR_UNCONSTRAINED_BASE.
10140 (dr_may_alias_p): All indirect accesses have to go the
10141 formerly DR_UNCONSTRAINED_BASE path.
10142 * tree-data-ref.h (struct indices): Remove
10143 unconstrained_base member.
10144 (DR_UNCONSTRAINED_BASE): Remove.
10146 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10148 PR middle-end/62092
10149 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10150 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10151 in OMP_CLAUSE_MAP in some outer target region.
10153 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10155 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10156 name_expansion_cache.
10157 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10158 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10159 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10160 (difference_cannot_overflow_p): New parameter. Use affine
10161 expansion for equality check.
10162 (iv_elimination_compare_lt): Pass new argument.
10164 2014-08-14 DJ Delorie <dj@redhat.com>
10166 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10167 variables to the accumulator.
10169 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10170 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10171 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10172 with far-far moves.
10174 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10175 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10176 (umulqihi3_virt): Likewise.
10177 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10178 (umulqihi3_real): Likewise.
10180 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10182 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10184 PR tree-optimization/62091
10185 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10186 function_entry_reached.
10187 (walk_aliased_vdefs): Clear it here.
10188 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10190 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10192 * ipa-utils.h (compare_virtual_tables): Declare.
10193 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10195 2014-08-14 Marek Polacek <polacek@redhat.com>
10198 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10199 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10201 2014-08-14 Tom de Vries <tom@codesourcery.com>
10203 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10205 2014-08-14 Tom de Vries <tom@codesourcery.com>
10207 PR rtl-optimization/62004
10208 PR rtl-optimization/62030
10209 * ifcvt.c (rtx_interchangeable_p): New function.
10210 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10211 * emit-rtl.h (mem_attrs_eq_p): Declare.
10213 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10215 * graphite-scop-detection.c:
10216 Add inclusion of cp-tree.h.
10217 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10218 in case they are pointers to object types
10220 2014-08-14 Richard Biener <rguenther@suse.de>
10222 * BASE-VER: Change to 5.0.0
10224 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10225 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10226 Anna Tikhonova <anna.tikhonova@intel.com>
10227 Ilya Tocar <ilya.tocar@intel.com>
10228 Andrey Turetskiy <andrey.turetskiy@intel.com>
10229 Ilya Verbin <ilya.verbin@intel.com>
10230 Kirill Yukhin <kirill.yukhin@intel.com>
10231 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10233 * config/i386/sse.md (define_mode_attr avx512): New.
10234 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10236 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10237 (define_mode_attr ssse3_avx2): Ditto.
10238 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10239 (define_mode_attr avx2_avx512bw): New.
10240 (define_mode_attr ssedoublemodelower): New.
10241 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10242 V32HI, V64QI modes.
10243 (define_mode_attr ssebytemode): Allow V8DI modes.
10244 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10245 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10246 (define_mode_attr ssePSmode2): New.
10247 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10248 V16HI, V32HI modes.
10249 (define_mode_attr dbpsadbwmode): New.
10250 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10251 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10252 (vi8_sse4_1_avx2_avx512): New.
10253 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10255 (define_mode_attr blendbits): Move before its immediate use.
10257 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10258 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10259 Anna Tikhonova <anna.tikhonova@intel.com>
10260 Ilya Tocar <ilya.tocar@intel.com>
10261 Andrey Turetskiy <andrey.turetskiy@intel.com>
10262 Ilya Verbin <ilya.verbin@intel.com>
10263 Kirill Yukhin <kirill.yukhin@intel.com>
10264 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10266 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10267 * config/i386/subst.md
10268 (define_mode_iterator SUBST_V): Update.
10269 (define_mode_iterator SUBST_A): Ditto.
10270 (define_subst_attr "mask_operand7"): New.
10271 (define_subst_attr "mask_operand10"): New.
10272 (define_subst_attr "mask_operand_arg34") : New.
10273 (define_subst_attr "mask_expand_op3"): New.
10274 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10275 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10276 (define_subst_attr "mask_avx512vl_condition"): New.
10277 (define_subst_attr "round_mask_operand4"): Ditto.
10278 (define_subst_attr "round_mask_scalar_op3"): Delete.
10279 (define_subst_attr "round_mask_op4"): New.
10280 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10282 (define_subst_attr "round_modev8sf_condition"): New.
10283 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10285 (define_subst_attr "round_saeonly_mask_operand4"): New.
10286 (define_subst_attr "round_saeonly_mask_op4"): New.
10287 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10288 V8DImode, V16SImode.
10289 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10290 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10291 (define_subst_attr "mask_expand4_args"): New.
10292 (define_subst "mask_expand4"): New.
10294 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10295 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10296 Anna Tikhonova <anna.tikhonova@intel.com>
10297 Ilya Tocar <ilya.tocar@intel.com>
10298 Andrey Turetskiy <andrey.turetskiy@intel.com>
10299 Ilya Verbin <ilya.verbin@intel.com>
10300 Kirill Yukhin <kirill.yukhin@intel.com>
10301 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10303 * config/i386/i386.md
10304 (define_attr "isa"): Add avx512bw,noavx512bw.
10305 (define_attr "enabled"): Ditto.
10306 (define_split): Add 32/64-bit mask logic.
10307 (define_insn "*k<logic>qi"): New.
10308 (define_insn "*k<logic>hi"): New.
10309 (define_insn "*anddi_1"): Add mask version.
10310 (define_insn "*andsi_1"): Ditto.
10311 (define_insn "*<code><mode>_1"): Ditto.
10312 (define_insn "*<code>hi_1"): Ditto.
10313 (define_insn "kxnor<mode>"): New.
10314 (define_insn "kunpcksi"): New.
10315 (define_insn "kunpckdi"): New.
10316 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10317 (define_insn "*one_cmplhi2_1"): Ditto.
10319 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10320 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10321 Anna Tikhonova <anna.tikhonova@intel.com>
10322 Ilya Tocar <ilya.tocar@intel.com>
10323 Andrey Turetskiy <andrey.turetskiy@intel.com>
10324 Ilya Verbin <ilya.verbin@intel.com>
10325 Kirill Yukhin <kirill.yukhin@intel.com>
10326 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10328 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10331 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10332 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10333 Anna Tikhonova <anna.tikhonova@intel.com>
10334 Ilya Tocar <ilya.tocar@intel.com>
10335 Andrey Turetskiy <andrey.turetskiy@intel.com>
10336 Ilya Verbin <ilya.verbin@intel.com>
10337 Kirill Yukhin <kirill.yukhin@intel.com>
10338 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10340 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10342 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10343 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10344 xmm/ymm16+ when availble.
10345 * config/i386/i386.h
10346 (HARD_REGNO_NREGS): Add mask regs.
10347 (VALID_AVX512F_REG_MODE): Ditto.
10348 (VALID_AVX512F_REG_MODE) : Define.
10349 (VALID_MASK_AVX512BW_MODE): Ditto.
10350 (reg_class) (MASK_REG_P(X)): Define.
10351 * config/i386/i386.md: Do not split long moves with mask register,
10352 use kmovb if avx512bw is availible.
10353 (movdi_internal): Handle mask registers.
10355 2014-08-14 Richard Biener <rguenther@suse.de>
10357 PR tree-optimization/62081
10358 * tree-ssa-loop.c (pass_fix_loops): New pass.
10359 (pass_tree_loop::gate): Do not fixup loops here.
10360 * tree-pass.h (make_pass_fix_loops): Declare.
10361 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10363 2014-08-14 Richard Biener <rguenther@suse.de>
10365 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10366 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10368 2014-08-14 Richard Biener <rguenther@suse.de>
10370 PR tree-optimization/62090
10371 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10372 (fold_builtin_2): Do not fold sprintf.
10373 (fold_builtin_3): Likewise.
10374 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10375 moved from builtins.c.
10376 (gimple_fold_builtin): Fold sprintf.
10378 2014-08-14 Richard Biener <rguenther@suse.de>
10380 PR rtl-optimization/62079
10381 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10384 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10386 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10387 current_function_decl.
10389 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10391 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10392 cgraph_function_node to cgraph_node::function_symbol
10395 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10397 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10398 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10400 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10402 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10405 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10407 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10410 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10413 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10414 any registers that are used in mem_insn.
10416 2014-08-12 Steve Ellcey <sellcey@mips.com>
10418 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10420 2014-08-12 Steve Ellcey <sellcey@mips.com>
10422 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10423 (MULTILIB_DIRNAMES): Ditto.
10424 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10425 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10426 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10427 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10428 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10429 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10431 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10434 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10435 of __ARM_SIZEOF_WCHAR_T.
10437 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10440 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10441 Remove unnecessary attributes.
10443 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10445 * internal-fn.c (init_internal_fns): Fix off-by-one.
10447 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10449 Anna Tikhonova <anna.tikhonova@intel.com>
10450 Ilya Tocar <ilya.tocar@intel.com>
10451 Andrey Turetskiy <andrey.turetskiy@intel.com>
10452 Ilya Verbin <ilya.verbin@intel.com>
10453 Kirill Yukhin <kirill.yukhin@intel.com>
10454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10456 * config/i386/i386.c (standard_sse_constant_opcode): Use
10457 vpxord/vpternlog if avx512 is availible.
10459 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10461 PR middle-end/62103
10462 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10463 bitfields, that is when size doesn't match the size of type or the
10464 size of the constructor.
10466 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10468 * config/rs6000/constraints.md (wh constraint): New constraint,
10469 for FP registers if direct move is available.
10470 (wi constraint): New constraint, for VSX/FP registers that can
10471 handle 64-bit integers.
10472 (wj constraint): New constraint for VSX/FP registers that can
10473 handle 64-bit integers for direct moves.
10474 (wk constraint): New constraint for VSX/FP registers that can
10475 handle 64-bit doubles for direct moves.
10476 (wy constraint): Make documentation match implementation.
10478 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10479 scalar_in_vmx_p field to simplify tests of whether SFmode or
10480 DFmode can go in the Altivec registers.
10481 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10482 (rs6000_setup_reg_addr_masks): Likewise.
10483 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10484 field, and wh/wi/wj/wk constraints.
10485 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10486 the wh/wi/wj/wk constraints.
10487 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10488 upper registers, prefer VSX registers unless the operation is a
10489 memory operation with REG+OFFSET addressing.
10491 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10492 DImode. Change SFmode to use ww constraint instead of d to allow
10493 SF registers in the upper registers.
10496 (VSr5): Fix thinko in comment.
10497 (VSa): New mode attribute that is an alternative to wa, that
10498 returns the VSX register class that a mode can go in, but may not
10499 be the preferred register class.
10500 (VS_64dm): New mode attribute for appropriate register classes for
10501 referencing 64-bit elements of vectors for direct moves and normal
10503 (VS_64reg): Likewise.
10504 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10505 register allocator to only registers the data type can handle.
10506 (vsx_le_perm_load_<mode>): Likewise.
10507 (vsx_le_perm_store_<mode>): Likewise.
10508 (vsx_xxpermdi2_le_<mode>): Likewise.
10509 (vsx_xxpermdi4_le_<mode>): Likewise.
10510 (vsx_lxvd2x2_le_<mode>): Likewise.
10511 (vsx_lxvd2x4_le_<mode>): Likewise.
10512 (vsx_stxvd2x2_le_<mode>): Likewise.
10513 (vsx_add<mode>3): Likewise.
10514 (vsx_sub<mode>3): Likewise.
10515 (vsx_mul<mode>3): Likewise.
10516 (vsx_div<mode>3): Likewise.
10517 (vsx_tdiv<mode>3_internal): Likewise.
10518 (vsx_fre<mode>2): Likewise.
10519 (vsx_neg<mode>2): Likewise.
10520 (vsx_abs<mode>2): Likewise.
10521 (vsx_nabs<mode>2): Likewise.
10522 (vsx_smax<mode>3): Likewise.
10523 (vsx_smin<mode>3): Likewise.
10524 (vsx_sqrt<mode>2): Likewise.
10525 (vsx_rsqrte<mode>2): Likewise.
10526 (vsx_tsqrt<mode>2_internal): Likewise.
10527 (vsx_fms<mode>4): Likewise.
10528 (vsx_nfma<mode>4): Likewise.
10529 (vsx_eq<mode>): Likewise.
10530 (vsx_gt<mode>): Likewise.
10531 (vsx_ge<mode>): Likewise.
10532 (vsx_eq<mode>_p): Likewise.
10533 (vsx_gt<mode>_p): Likewise.
10534 (vsx_ge<mode>_p): Likewise.
10535 (vsx_xxsel<mode>): Likewise.
10536 (vsx_xxsel<mode>_uns): Likewise.
10537 (vsx_copysign<mode>3): Likewise.
10538 (vsx_float<VSi><mode>2): Likewise.
10539 (vsx_floatuns<VSi><mode>2): Likewise.
10540 (vsx_fix_trunc<mode><VSi>2): Likewise.
10541 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10542 (vsx_x<VSv>r<VSs>i): Likewise.
10543 (vsx_x<VSv>r<VSs>ic): Likewise.
10544 (vsx_btrunc<mode>2): Likewise.
10545 (vsx_b2trunc<mode>2): Likewise.
10546 (vsx_floor<mode>2): Likewise.
10547 (vsx_ceil<mode>2): Likewise.
10548 (vsx_<VS_spdp_insn>): Likewise.
10549 (vsx_xscvspdp): Likewise.
10550 (vsx_xvcvspuxds): Likewise.
10551 (vsx_float_fix_<mode>2): Likewise.
10552 (vsx_set_<mode>): Likewise.
10553 (vsx_extract_<mode>_internal1): Likewise.
10554 (vsx_extract_<mode>_internal2): Likewise.
10555 (vsx_extract_<mode>_load): Likewise.
10556 (vsx_extract_<mode>_store): Likewise.
10557 (vsx_splat_<mode>): Likewise.
10558 (vsx_xxspltw_<mode>): Likewise.
10559 (vsx_xxspltw_<mode>_direct): Likewise.
10560 (vsx_xxmrghw_<mode>): Likewise.
10561 (vsx_xxmrglw_<mode>): Likewise.
10562 (vsx_xxsldwi_<mode>): Likewise.
10563 (vsx_xscvdpspn): Tighten constraints to only use register classes
10565 (vsx_xscvspdpn): Likewise.
10566 (vsx_xscvdpspn_scalar): Likewise.
10568 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10569 wj, and wk constraints.
10570 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10571 general purpose registers.
10573 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10575 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10576 DImode instead of wm. Use wk constraint for direct move of DFmode
10578 (extendsidi2_lfiwax): Likewise.
10579 (lfiwax): Likewise.
10580 (lfiwzx): Likewise.
10581 (movdi_internal64): Likewise.
10583 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10584 wk constraints. Make the wy constraint documentation match them
10587 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
10589 Replacement of isl_int by isl_val
10590 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10591 (compute_bounds_for_param): use isl_val instead of isl_int
10592 (compute_bounds_for_loop): likewise
10593 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10594 (build_linearized_memory_access): use isl_val instead of isl_int
10595 (pdr_stride_in_loop): likewise
10596 * graphite-optimize-isl.c:
10597 (getPrevectorMap): use isl_val instead of isl_int
10599 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10600 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10601 (extern the_isl_ctx): declare
10602 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10603 (extract_affine_gmp): likewise
10605 (build_loop_iteration_domains): likewise
10606 (add_param_constraints): likewise
10608 2014-08-11 Richard Biener <rguenther@suse.de>
10610 PR tree-optimization/62075
10611 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10612 handle uses in patterns.
10614 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10615 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10616 Anna Tikhonova <anna.tikhonova@intel.com>
10617 Ilya Tocar <ilya.tocar@intel.com>
10618 Andrey Turetskiy <andrey.turetskiy@intel.com>
10619 Ilya Verbin <ilya.verbin@intel.com>
10620 Kirill Yukhin <kirill.yukhin@intel.com>
10621 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10623 * common/config/i386/i386-common.c
10624 (OPTION_MASK_ISA_AVX512VL_SET): Define.
10625 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10626 (ix86_handle_option): Handle OPT_mavx512vl.
10627 * config/i386/cpuid.h (bit_AVX512VL): Define.
10628 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10629 set -mavx512vl accordingly.
10630 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10631 OPTION_MASK_ISA_AVX512VL.
10632 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10633 (ix86_option_override_internal): Define PTA_AVX512VL, handle
10634 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10635 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10636 * config/i386/i386.h (TARGET_AVX512VL): Define.
10637 (TARGET_AVX512VL_P(x)): Ditto.
10638 * config/i386/i386.opt: Add mavx512vl.
10640 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
10642 PR tree-optimization/62073
10643 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10646 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10647 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10648 Anna Tikhonova <anna.tikhonova@intel.com>
10649 Ilya Tocar <ilya.tocar@intel.com>
10650 Andrey Turetskiy <andrey.turetskiy@intel.com>
10651 Ilya Verbin <ilya.verbin@intel.com>
10652 Kirill Yukhin <kirill.yukhin@intel.com>
10653 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10655 * common/config/i386/i386-common.c
10656 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10657 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10658 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10659 (ix86_handle_option): Handle OPT_mavx512bw.
10660 * config/i386/cpuid.h (bit_AVX512BW): Define.
10661 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10662 set -mavx512bw accordingly.
10663 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10664 OPTION_MASK_ISA_AVX512BW.
10665 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10666 (ix86_option_override_internal): Define PTA_AVX512BW, handle
10667 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10668 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10669 * config/i386/i386.h (TARGET_AVX512BW): Define.
10670 (TARGET_AVX512BW_P(x)): Ditto.
10671 * config/i386/i386.opt: Add mavx512bw.
10673 2014-08-11 Richard Biener <rguenther@suse.de>
10675 PR tree-optimization/62070
10676 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10677 Remove SSA checking.
10679 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10681 * asan.c (asan_check_flags): New enum.
10682 (build_check_stmt_with_calls): Removed function.
10683 (build_check_stmt): Split inlining logic to
10684 asan_expand_check_ifn.
10685 (instrument_derefs): Rename parameter.
10686 (instrument_mem_region_access): Rename parameter.
10687 (instrument_strlen_call): Likewise.
10688 (asan_expand_check_ifn): New function.
10689 (asan_instrument): Remove old code.
10690 (pass_sanopt::execute): Change handling of
10691 asan-instrumentation-with-call-threshold.
10692 (asan_clear_shadow): Fix formatting.
10693 (asan_function_start): Likewise.
10694 (asan_emit_stack_protection): Likewise.
10695 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10696 Update description.
10697 * internal-fn.c (expand_ASAN_CHECK): New function.
10698 * internal-fn.def (ASAN_CHECK): New internal function.
10699 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10700 Update description.
10701 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10702 * tree.c: Small comment fix.
10704 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10706 * gimple.c (gimple_call_fnspec): Support internal functions.
10707 (gimple_call_return_flags): Use const.
10708 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10709 * internal-fn.def: Add fnspec information.
10710 * internal-fn.h (internal_fn_fnspec): New function.
10711 (init_internal_fns): Declare new function.
10712 * internal-fn.c (internal_fn_fnspec_array): New global variable.
10713 (init_internal_fns): New function.
10714 * tree-core.h: Update macro call.
10715 * tree.c (build_common_builtin_nodes): Initialize internal fns.
10717 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
10719 * lto-streamer.h (struct output_block::symbol): Change from
10720 struct symtab_node to plain symtab_node.
10721 (referenced_from_this_partition_p): Change first parameter
10722 from struct symtab_node to plain symtab_node.
10724 2014-08-10 Marek Polacek <polacek@redhat.com>
10727 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10729 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
10731 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10732 DECL correctly; do not give up on types in static storage.
10734 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
10736 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10738 2014-08-09 Roman Gareev <gareevroman@gmail.com>
10740 * graphite-isl-ast-to-gimple.c:
10741 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10743 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10745 2014-08-08 Guozhi Wei <carrot@google.com>
10747 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10749 2014-08-08 Cary Coutant <ccoutant@google.com>
10751 * dwarf2out.c (get_skeleton_type_unit): Remove.
10752 (output_skeleton_debug_sections): Remove skeleton type units.
10753 (output_comdat_type_unit): Likewise.
10754 (dwarf2out_finish): Likewise.
10756 2014-08-07 Yi Yang <ahyangyi@google.com>
10758 * predict.c (expr_expected_value_1): Remove the redundant assignment.
10760 2014-08-08 Richard Biener <rguenther@suse.de>
10762 * lto-streamer.h (struct lto_input_block): Make it a class
10763 with a constructor.
10764 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10765 (struct lto_function_header, struct lto_simple_header,
10766 struct lto_simple_header_with_strings,
10767 struct lto_decl_header, struct lto_function_header): Make
10768 a simple inheritance hieararchy. Remove unused fields.
10769 (struct lto_asm_header): Remove.
10770 * lto-streamer-out.c (produce_asm): Adjust.
10771 (lto_output_toplevel_asms): Likewise.
10772 (produce_asm_for_decls): Likewise.
10773 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10774 * data-streamer-in.c (string_for_index): Likewise.
10775 * ipa-inline-analysis.c (inline_read_section): Likewise.
10776 * ipa-prop.c (ipa_prop_read_section): Likewise.
10777 (read_replacements_section): Likewise.
10778 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10779 * lto-section-in.c (lto_create_simple_input_block): Likewise.
10780 (lto_destroy_simple_input_block): Likewise.
10781 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10782 (lto_input_toplevel_asms): Likewise.
10784 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
10785 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10786 Anna Tikhonova <anna.tikhonova@intel.com>
10787 Ilya Tocar <ilya.tocar@intel.com>
10788 Andrey Turetskiy <andrey.turetskiy@intel.com>
10789 Ilya Verbin <ilya.verbin@intel.com>
10790 Kirill Yukhin <kirill.yukhin@intel.com>
10791 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10793 * common/config/i386/i386-common.c
10794 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10795 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10796 (ix86_handle_option): Handle OPT_mavx512dq.
10797 * config/i386/cpuid.h (bit_AVX512DQ): Define.
10798 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10799 set -mavx512dq accordingly.
10800 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10801 OPTION_MASK_ISA_AVX512DQ.
10802 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10803 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10804 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10805 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10806 * config/i386/i386.h (TARGET_AVX512DQ): Define.
10807 (TARGET_AVX512DQ_P(x)): Ditto.
10808 * config/i386/i386.opt: Add mavx512dq.
10810 2014-08-08 Richard Biener <rguenther@suse.de>
10812 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10813 target_percent, target_percent_s): Export.
10814 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10815 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10816 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10817 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10818 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10819 Move to gimple-fold.c.
10820 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10822 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10823 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10824 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10825 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10826 (rewrite_call_expr_array): Remove.
10827 (fold_builtin_sprintf_chk): Likewise.
10828 (fold_builtin_snprintf_chk): Likewise.
10829 (fold_builtin_varargs): Remove handling of sprintf_chk,
10830 vsprintf_chk, snprintf_chk and vsnprintf_chk.
10831 (gimple_fold_builtin_sprintf_chk): Remove.
10832 (gimple_fold_builtin_snprintf_chk): Likewise.
10833 (gimple_fold_builtin_varargs): Likewise.
10834 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10835 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10836 * gimple.c (gimple_seq_add_seq_without_update): New function.
10837 * gimple.h (gimple_seq_add_seq_without_update): Declare.
10838 * gimple-fold.c: Include output.h.
10839 (gsi_replace_with_seq_vops): New function, split out from ...
10840 (gimplify_and_update_call_from_tree): ... here.
10841 (replace_call_with_value): New function.
10842 (replace_call_with_call_and_fold): Likewise.
10843 (var_decl_component_p): Moved from builtins.c.
10844 (gimple_fold_builtin_memory_op): Moved from builtins.c
10845 fold_builtin_memory_op and rewritten to GIMPLE.
10846 (gimple_fold_builtin_memset): Likewise.
10847 (gimple_fold_builtin_strcpy): Likewise.
10848 (gimple_fold_builtin_strncpy): Likewise.
10849 (gimple_fold_builtin_strcat): Likewise.
10850 (gimple_fold_builtin_fputs): Likewise.
10851 (gimple_fold_builtin_memory_chk): Likewise.
10852 (gimple_fold_builtin_stxcpy_chk): Likewise.
10853 (gimple_fold_builtin_stxncpy_chk): Likewise.
10854 (gimple_fold_builtin_snprintf_chk): Likewise.
10855 (gimple_fold_builtin_sprintf_chk): Likewise.
10856 (gimple_fold_builtin_strlen): New function.
10857 (gimple_fold_builtin_with_strlen): New function split out from
10858 gimple_fold_builtin.
10859 (gimple_fold_builtin): Change signature and handle
10860 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10861 here. Call gimple_fold_builtin_with_strlen.
10862 (gimple_fold_call): Adjust.
10864 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10866 * calls.c (precompute_arguments): Check
10867 promoted_for_signed_and_unsigned_p and set the promoted mode.
10868 (promoted_for_signed_and_unsigned_p): New function.
10869 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10870 and set the promoted mode.
10871 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10872 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10873 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10876 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10878 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10879 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10880 (expand_call): Likewise.
10881 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10882 to get promoted mode.
10883 * combine.c (record_promoted_value): Skip > 0 comparison with
10884 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10885 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10886 of SUBREG_PROMOTED_UNSIGNED_P.
10887 (convert_modes): Likewise.
10888 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10889 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10890 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10891 SUBREG_PROMOTED_UNSIGNED_SET.
10892 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10893 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10894 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10895 SUBREG_PROMOTED_SET.
10896 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10897 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10898 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10899 of SUBREG_PROMOTED_UNSIGNED_P.
10900 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10901 (SUBREG_PROMOTED_SET): New define.
10902 (SUBREG_PROMOTED_GET): Likewise.
10903 (SUBREG_PROMOTED_SIGN): Likewise.
10904 (SUBREG_PROMOTED_SIGNED_P): Likewise.
10905 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
10906 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
10907 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
10908 instead of SUBREG_PROMOTED_UNSIGNED_GET.
10909 (nonzero_bits1): Skip > 0 comparison with the results as
10910 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
10911 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
10912 of !SUBREG_PROMOTED_UNSIGNED_P.
10913 * simplify-rtx.c (simplify_unary_operation_1): Use new
10914 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
10915 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
10916 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
10917 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
10919 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
10921 * ipa-devirt.c: Include gimple-pretty-print.h
10922 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
10924 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10925 (get_polymorphic_call_info): Fix return value
10926 (type_change_info): New sturcture based on ipa-prop
10928 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10929 based on ipa-prop variant.
10930 (extr_type_from_vtbl_ptr_store): New function
10931 based on ipa-prop variant.
10932 (record_known_type): New function.
10933 (check_stmt_for_type_change): New function.
10934 (get_dynamic_type): New function.
10935 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10936 * tree-ssa-pre.c: ipa-utils.h
10937 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10938 machinery; sanity check with ipa-prop devirtualization.
10939 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10942 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10944 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10945 * alias.c, cfgexpand.c, cgraphbuild.c,
10946 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10947 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10948 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10949 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10950 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10951 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10952 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10953 dse.c, except.c, gengtype.c, gimple-expr.c,
10954 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10955 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10956 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10957 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10958 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10959 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10961 * pointer-set.c: Remove file.
10962 * pointer-set.h: Remove file.
10964 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10966 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
10967 * config/arm/types.md (f_sels, f_seld): Delete.
10969 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10971 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
10972 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
10973 (aarch64_movdi_<mode>high): Likewise.
10974 (aarch64_mov<mode>high_di): Likewise.
10975 (aarch64_movdi_<mode>low): Likewise.
10976 (aarch64_mov<mode>low_di): Likewise.
10977 (aarch64_movtilow_tilow): Likewise.
10978 Add comment explaining usage of fp,simd attributes and of
10979 TARGET_FLOAT and TARGET_SIMD.
10981 2014-08-07 Ian Bolton <ian.bolton@arm.com>
10982 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10984 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
10985 Use MOVN when one of the half-words is 0xffff.
10987 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10989 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
10991 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10993 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
10994 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
10995 (rfs_str): String corresponding to RFS_* constants.
10996 (rank_for_schedule_stats_t): New typedef.
10997 (rank_for_schedule_stats): New static variable.
10998 (rfs_result): New static function.
10999 (rank_for_schedule): Track statistics for deciding heuristics.
11000 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11002 (ready_sort): Use them for debug printouts.
11003 (schedule_block): Init statistics state. Print statistics on
11004 rank_for_schedule decisions.
11006 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11008 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11010 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11012 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11015 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11017 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11018 function to not conflict.
11019 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11020 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11021 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11022 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11023 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11026 2014-08-07 Marek Polacek <polacek@redhat.com>
11028 * fold-const.c (fold_binary_loc): Add folding of
11029 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11031 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11033 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11034 instead of type size.
11035 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11037 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11039 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11040 (*thumb1_movqi_insn): Likewise.
11041 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11043 2014-08-07 Tom de Vries <tom@codesourcery.com>
11045 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11046 (glibc_2_11_or_earlier): Remove effective-target keywords.
11048 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11050 * config/arm/arm.c (bdesc_2arg): Fix typo.
11051 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11053 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11055 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11057 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11060 * haifa-sched.c (advance_one_cycle): Fix dump.
11061 (schedule_block): Don't advance cycle if we are already at the
11062 beginning of the cycle.
11064 2014-08-06 Martin Jambor <mjambor@suse.cz>
11067 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11069 2014-08-06 Richard Biener <rguenther@suse.de>
11072 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11074 (lto_input_tree): Pop SCCs here.
11076 2014-08-06 Richard Biener <rguenther@suse.de>
11078 PR tree-optimization/61320
11079 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11080 handle misaligned loads.
11082 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11084 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11085 (aarch64_expand_vec_perm_const): Check for dup before zip.
11087 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11089 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11090 CONST_INT_P instead of GET_CODE and compare.
11091 (aarch64_select_cc_mode): Likewise.
11092 (aarch64_print_operand): Likewise.
11093 (aarch64_rtx_costs): Likewise.
11094 (aarch64_simd_valid_immediate): Likewise.
11095 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11096 (aarch64_simd_emit_pair_result_insn): Likewise.
11098 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11100 * gdbhooks.py (find_gcc_source_dir): New helper function.
11101 (class PassNames): New class, locating and parsing passes.def.
11102 (class BreakOnPass): New command "break-on-pass".
11104 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11106 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11109 2014-08-05 Richard Biener <rguenther@suse.de>
11111 PR rtl-optimization/61672
11112 * emit-rtl.h (mem_attrs_eq_p): Declare.
11113 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11114 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11115 * cfgcleanup.c (merge_memattrs): Likewise.
11116 Include emit-rtl.h.
11118 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11120 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11121 rather than singleton vectors.
11122 (vqdmlsls_lane_s32): Likewise.
11124 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11126 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11127 Use VSDQ_HSI mode iterator.
11128 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11129 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11130 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11131 Use BUILTIN_VDQHS macro.
11132 (sqrdmulh_laneq): Likewise.
11133 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11134 (vqdmlals_laneq_s32): Likewise.
11135 (vqdmlslh_laneq_s16): Likewise.
11136 (vqdmlsls_laneq_s32): Likewise.
11137 (vqdmulhh_laneq_s16): Likewise.
11138 (vqdmulhs_laneq_s32): Likewise.
11139 (vqrdmulhh_laneq_s16): Likewise.
11140 (vqrdmulhs_laneq_s32): Likewise.
11142 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11144 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11145 (vmuld_laneq_f64): Likewise.
11146 (vmuls_laneq_f32): Likewise.
11147 (vmul_n_f64): Likewise.
11148 (vmuld_lane_f64): Reimplement in C.
11149 (vmuls_lane_f32): Likewise.
11151 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11153 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11155 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11157 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11159 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11160 (rbitsi2): Likewise.
11161 (*arm_rev): Set predicable and predicable_short_it attributes.
11163 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11165 * convert.c (convert_to_integer): Guard transformation to lrint by
11168 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11170 * config/aarch64/aarch64-builtins.c
11171 (aarch64_simd_builtin_type_mode): Delete.
11172 (v8qi_UP): Remap to V8QImode.
11173 (v4hi_UP): Remap to V4HImode.
11174 (v2si_UP): Remap to V2SImode.
11175 (v2sf_UP): Remap to V2SFmode.
11176 (v1df_UP): Remap to V1DFmode.
11177 (di_UP): Remap to DImode.
11178 (df_UP): Remap to DFmode.
11179 (v16qi_UP):V16QImode.
11180 (v8hi_UP): Remap to V8HImode.
11181 (v4si_UP): Remap to V4SImode.
11182 (v4sf_UP): Remap to V4SFmode.
11183 (v2di_UP): Remap to V2DImode.
11184 (v2df_UP): Remap to V2DFmode.
11185 (ti_UP): Remap to TImode.
11186 (ei_UP): Remap to EImode.
11187 (oi_UP): Remap to OImode.
11188 (ci_UP): Map to CImode.
11189 (xi_UP): Remap to XImode.
11190 (si_UP): Remap to SImode.
11191 (sf_UP): Remap to SFmode.
11192 (hi_UP): Remap to HImode.
11193 (qi_UP): Remap to QImode.
11194 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11195 (VAR1): Build builtin name.
11196 (aarch64_init_simd_builtins): Remove dead code.
11198 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11200 * graphite-isl-ast-to-gimple.c:
11201 (set_options): New function.
11202 (scop_to_isl_ast): Add calling of set_options.
11204 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11206 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11207 (analyze_iv_to_split_insn): Don't initialize them.
11208 (get_ivts_expr): Removed.
11209 (allocate_basic_variable, insert_base_initialization): Use
11210 SET_SRC instead of *get_ivts_expr.
11211 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11213 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11215 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11216 (translate_isl_ast_for_loop): Add checking of the
11217 flag_loop_parallelize_all.
11218 (ast_build_before_for): New function.
11219 (scop_to_isl_ast): Add checking of the
11220 flag_loop_parallelize_all.
11221 * graphite-dependences.c: Move the defenition of the
11222 scop_get_dependences from graphite-optimize-isl.c to this file.
11223 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11224 (carries_deps): Add checking of the x's value.
11225 * graphite-optimize-isl.c: Move the defenition of the
11226 scop_get_dependences to graphite-dependences.c.
11227 * graphite-poly.h: Add declarations of scop_get_dependences
11230 2014-08-04 Rohit <rohitarulraj@freescale.com>
11233 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11235 (alt_reg_names): Likewise.
11236 (rs6000_dwarf_register_span): For SPE high registers, replace
11237 dwarf register numbers with GCC hard register numbers.
11238 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11239 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11240 register number for the corresponding GCC hard register number.
11241 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11242 newly added GCC hard register numbers for SPE high registers.
11243 (DWARF_FRAME_REGISTERS): Likewise.
11244 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11245 (DWARF_FRAME_REGNUM): Likewise.
11246 (FIXED_REGISTERS): Likewise.
11247 (CALL_USED_REGISTERS): Likewise.
11248 (CALL_REALLY_USED_REGISTERS): Likewise.
11249 (REG_ALLOC_ORDER): Likewise.
11250 (enum reg_class): Likewise.
11251 (REG_CLASS_NAMES): Likewise.
11252 (REG_CLASS_CONTENTS): Likewise.
11253 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11255 2014-08-04 Richard Biener <rguenther@suse.de>
11257 * gimple-fold.h (gimple_fold_builtin): Remove.
11258 * gimple-fold.c (gimple_fold_builtin): Make static.
11259 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11260 fold_stmt, not gimple_fold_builtin.
11262 2014-08-04 Martin Liska <mliska@suse.cz>
11264 * cgraph.h (csi_end_p): Removed.
11265 (csi_next): Likewise.
11266 (csi_node): Likewise.
11267 (csi_start): Likewise.
11268 (cgraph_node_in_set_p): Likewise.
11269 (cgraph_node_set_size): Likewise.
11270 (vsi_end_p): Likewise.
11271 (vsi_next): Likewise.
11272 (vsi_node): Likewise.
11273 (vsi_start): Likewise.
11274 (varpool_node_set_size): Likewise.
11275 (cgraph_node_set_nonempty_p): Likewise.
11276 (varpool_node_set_nonempty_p): Likewise.
11277 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11279 * ipa-inline-transform.c: Likewise.
11280 * ipa-utils.c (cgraph_node_set_new): Removed.
11281 (cgraph_node_set_add): Likewise.
11282 (cgraph_node_set_remove): Likewise.
11283 (cgraph_node_set_find): Likewise.
11284 (dump_cgraph_node_set): Likewise.
11285 (debug_cgraph_node_set): Likewise.
11286 (free_cgraph_node_set): Likewise.
11287 (varpool_node_set_new): Likewise.
11288 (varpool_node_set_add): Likewise.
11289 (varpool_node_set_remove): Likewise.
11290 (varpool_node_set_find): Likewise.
11291 (dump_varpool_node_set): Likewise.
11292 (free_varpool_node_set): Likewise.
11293 (debug_varpool_node_set): Likewise.
11294 * tree-emutls.c (struct tls_var_data):
11295 (emutls_index): Removed.
11296 (emutls_decl): Likewise.
11297 (gen_emutls_addr): Function implementation uses newly added
11298 hash_map<varpool_node *, tls_var_data>.
11299 (clear_access_vars): Likewise.
11300 (create_emultls_var): Likewise.
11301 (ipa_lower_emutls): Likewise.
11302 (reset_access): New function.
11304 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11306 * config/i386/i386.c (ix86_option_override_internal): Add
11307 PTA_RDRND and PTA_MOVBE for bdver4.
11309 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11310 James Greenhalgh <james.greenhalgh@arm.com>
11312 * doc/md.texi (clrsb): Document.
11313 (clz): Change reference to x into operand 1.
11315 (popcount): Likewise.
11317 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11320 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11321 move to subtarget in serial version if result is ignored.
11323 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11324 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11326 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11327 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11328 (sched_analyze_insn): Update use of try_group_insn to
11329 sched_macro_fuse_insns.
11330 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11331 arguments that are not conditional jumps.
11333 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11335 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11336 family information. Handle BTVER2 cpu with cpuid family value.
11338 2014-08-04 Tom de Vries <tom@codesourcery.com>
11340 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11341 (glibc_2_11_or_earlier): Document effective-target keywords.
11343 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11345 * ipa-devirt.c (odr_type_warn_count): Add type.
11346 (possible_polymorphic_call_targets): Set it.
11347 (ipa_devirt): Use it.
11349 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11351 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11353 * ipa-devirt.c: Include hash-map.h
11354 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11355 (clear_speculation): Break out of ...
11356 (get_class_context): ... here; speed up handling obviously useless
11358 (odr_type_warn_count, decl_warn_count): New structures.
11359 (final_warning_record): New structure.
11360 (final_warning_records): New static variable.
11361 (possible_polymorphic_call_targets): Cleanup handling of
11362 speculative info; do not build speculation when user do not care;
11363 record info about warnings when asked for.
11364 (add_decl_warning): New function.
11365 (type_warning_cmp): New function.
11366 (decl_warning_cmp): New function.
11367 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11368 (gate): Enable pass when warnings are requested.
11369 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11372 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11374 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11376 (hash_map::remove): New method.
11377 (hash_map::traverse): New method.
11378 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11379 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11380 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11381 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11382 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11383 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11386 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11388 * hash-set.h: new File.
11389 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11390 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11391 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11392 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11393 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11394 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11395 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11396 varpool.c: Use hash_set instead of pointer_set.
11398 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11400 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11402 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11404 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11405 for frame access when strict_p is false.
11407 2014-08-01 Renlin Li <renlin.li@arm.com>
11408 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11410 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11411 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11412 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11414 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11416 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11417 aarch64_mem_pair_offset.
11419 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11421 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11423 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11424 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11426 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11428 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11430 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11432 PR regression/61510
11433 * cgraphunit.c (analyze_functions): Use get_create rather than get
11434 for decls which are clones of abstract functions.
11436 2014-08-01 Martin Liska <mliska@suse.cz>
11438 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11439 * ipa-prop.h (count_formal_params): Global function created from static.
11440 * ipa-prop.c (count_formal_params): Likewise.
11441 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11442 profiles for semantically equivalent functions.
11443 * passes.c (do_per_function): If we load body of a function
11444 during WPA, this condition should behave same.
11445 * varpool.c (ctor_for_folding): More tolerant assert for variable
11446 aliases created during WPA.
11448 2014-08-01 Martin Liska <mliska@suse.cz>
11450 * doc/invoke.texi (Options That Control Optimization): Documentation
11451 for -foptimize-strlen introduced. Optimization levels default options
11454 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11456 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11457 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11458 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11460 * stor-layout.h (min_align_of_type): New prototype.
11461 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11462 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11464 * ubsan.c: Include builtins.h.
11465 (ubsan_expand_bounds_ifn): Change return type to bool,
11466 always return true.
11467 (ubsan_expand_null_ifn): Change return type to bool, change
11468 argument to gimple_stmt_iterator *. Handle both null and alignment
11469 sanitization, take type from ckind argument's type rather than
11471 (instrument_member_call): Removed.
11472 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11473 Handle both null and alignment sanitization, don't say whole
11474 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11475 call instead of 2 argument.
11476 (instrument_null): Adjust instrument_mem_ref caller. Don't
11477 instrument calls here.
11478 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11479 like SANITIZE_NULL.
11480 * stor-layout.c (min_align_of_type): New function.
11481 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11482 Or it into SANITIZE_UNDEFINED.
11483 * doc/invoke.texi (-fsanitize=alignment): Document.
11485 2014-07-31 Andi Kleen <ak@linux.intel.com>
11487 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11489 2014-07-31 Andi Kleen <ak@linux.intel.com>
11491 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11493 (vn_reference_compute_hash): Dito.
11494 (vn_nary_op_compute_hash): Dito.
11495 (vn_phi_compute_hash): Dito.
11496 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11498 2014-07-31 Andi Kleen <ak@linux.intel.com>
11500 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11501 Rename to inchash:add_expr_commutative. Convert to inchash.
11502 (iterative_hash_hashable_expr): Rename to
11503 inchash:add_hashable_expr. Convert to inchash.
11504 (avail_expr_hash): Dito.
11506 2014-07-31 Andi Kleen <ak@linux.intel.com>
11508 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11509 Convert to inchash.
11511 2014-07-31 Andi Kleen <ak@linux.intel.com>
11513 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11515 2014-07-31 Andi Kleen <ak@linux.intel.com>
11517 * Makefile.in (OBJS): Add rtlhash.o
11518 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11519 (loc_checksum): Dito.
11520 (loc_checksum_ordered): Dito.
11521 (hash_loc_operands): Dito.
11523 (hash_loc_list): Dito.
11524 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11525 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11526 * rtlhash.c: New file.
11527 * rtlhash.h: New file.
11529 2014-07-31 Andi Kleen <ak@linux.intel.com>
11531 * inchash.h (inchash): Change inchash class to namespace.
11532 (class hash): ... Rename from inchash.
11533 (add_object): Move from macro to class template.
11534 * lto-streamer-out.c (hash_tree): Change inchash
11536 * tree.c (build_type_attribute_qual_variant): Dito.
11537 (type_hash_list): Dito.
11538 (attribute_hash_list): Dito.
11539 (iterative_hstate_expr): Rename to inchash::add_expr
11540 (build_range_type_1): Change inchash to inchash::hash
11541 and use hash::add_expr.
11542 (build_array_type_1): Dito.
11543 (build_function_type): Dito
11544 (build_method_type_directly): Dito.
11545 (build_offset_type): Dito.
11546 (build_complex_type): Dito.
11547 (make_vector_type): Dito.
11548 * tree.h (iterative_hash_expr): Dito.
11550 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11552 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11554 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11556 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11557 correct alphabetical position.
11558 (vpaddd_f64): Rewrite using builtins.
11559 (vpaddd_s64): Move to correct alphabetical position.
11562 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11565 * config/sh/sh.c (sh_legitimate_address_p,
11566 sh_legitimize_reload_address): Handle reg+reg address modes when
11567 ALLOW_INDEXED_ADDRESS is false.
11568 * config/sh/predicates.md (general_movsrc_operand,
11569 general_movdst_operand): Likewise.
11571 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11573 * config/aarch64/aarch64-builtins.c
11574 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11577 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11579 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11580 the generated mask based on BYTES_BIG_ENDIAN.
11581 (aarch64_simd_check_vect_par_cnst_half): New.
11582 * config/aarch64/aarch64-protos.h
11583 (aarch64_simd_check_vect_par_cnst_half): New.
11584 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11585 the check out to aarch64_simd_check_vect_par_cnst_half.
11586 (vect_par_cnst_lo_half): Likewise.
11587 * config/aarch64/aarch64-simd.md
11588 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11589 (move_hi_quad_<mode>): Always generate a low mask.
11591 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11593 * doc/invoke.texi (AVR Options): Add documentation about
11594 __AVR_DEVICE_NAME__ built-in macro.
11596 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
11599 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11600 constraints are satisfied.
11601 (<shift>di3_neon): Likewise.
11603 2014-07-31 Richard Biener <rguenther@suse.de>
11605 PR tree-optimization/61964
11606 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11607 by structural equality.
11609 2014-07-31 Yury Gribov <y.gribov@samsung.com>
11611 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11612 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11613 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11615 * gcc.c (sanitize_spec_function): Support new option.
11616 (SANITIZER_SPEC): Remove now redundant check.
11617 * opts.c (common_handle_option): Support new option.
11618 (finish_options): Check for incompatibilities.
11619 * toplev.c (process_options): Split userspace-specific checks.
11621 2014-07-31 Richard Biener <rguenther@suse.de>
11623 * lto-streamer.h (struct output_block): Remove global.
11624 (struct data_in): Remove labels, num_named_labels and
11625 num_unnamed_labels.
11626 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11627 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11629 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
11632 * common.opt (-Wreturn-local-addr): Moved from c.opt.
11633 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11634 (isolate_path): New argument to avoid inserting a trap.
11635 (find_implicit_erroneous_behaviour): Handle returning the address
11636 of a local variable.
11637 (find_explicit_erroneous_behaviour): Likewise.
11639 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
11642 * toplev.c (init_random_seed): Move piece of code never called to
11644 (set_random_seed): see above.
11646 2014-07-31 Tom de Vries <tom@codesourcery.com>
11648 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11650 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11652 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11653 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11655 2014-07-31 Richard Biener <rguenther@suse.de>
11657 * data-streamer.h (streamer_write_data_stream): Declare here,
11659 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
11660 * lto-cgraph.c (lto_output_node): Adjust.
11661 (lto_output_varpool_node): Likewise.
11662 * data-streamer-out.c (streamer_string_index): Likewise.
11663 (streamer_write_data_stream, lto_append_block): Move from ...
11664 * lto-section-out.c (lto_output_data_stream,
11665 lto_append_block): ... here.
11667 2014-07-30 Mike Stump <mikestump@comcast.net>
11669 * configure.ac: Also check for popen.
11670 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11671 * configure: Regenerate.
11672 * config.in: Regenerate.
11674 2014-07-30 Martin Jambor <mjambor@suse.cz>
11676 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11677 parameter to gimple.
11679 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11681 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11682 address as second parameter to __tpf_eh_return routine.
11684 2014-07-30 Jiong Wang <jiong.wang@arm.com>
11686 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11689 2014-07-30 Tom Tromey <tromey@redhat.com>
11692 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11693 * doc/extend.texi (Type Attributes): Document designated_init
11696 2014-07-30 Roman Gareev <gareevroman@gmail.com>
11698 * graphite-isl-ast-to-gimple.c:
11699 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11700 (gcc_expression_from_isl_expression): Pass type to
11701 gcc_expression_from_isl_ast_expr_id.
11703 2014-07-30 Richard Biener <rguenther@suse.de>
11705 * lto-streamer.h (lto_write_data): New function.
11706 * langhooks.c (lhd_append_data): Do not free block.
11707 * lto-section-out.c (lto_write_data): New function writing
11708 raw data to the current section.
11709 (lto_write_stream): Adjust for langhook semantic change.
11710 (lto_destroy_simple_output_block): Write header directly.
11711 * lto-opts.c (lto_write_options): Write options directly.
11712 * lto-streamer-out.c (produce_asm): Write heaeder directly.
11713 (lto_output_toplevel_asms): Likewise.
11714 (copy_function_or_variable): Copy data directly.
11715 (write_global_references): Output index table directly.
11716 (lto_output_decl_state_refs): Likewise.
11717 (write_symbol): Write data directly.
11718 (produce_symtab): Adjust.
11719 (produce_asm_for_decls): Output header and refs directly.
11721 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11723 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11724 to speculative_targets
11725 (get_class_context): Fix handling of contextes without outer type;
11726 avoid matching non-polymorphic types in LTO.
11727 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11728 parameter to speculative_targetsp; handle speculation.
11729 (dump_possible_polymorphic_call_targets): Update dumping.
11731 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11733 * common.opt (Wodr): Enable by default.
11735 2014-07-29 Olivier Hainque <hainque@adacore.com>
11737 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11739 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
11742 * gengtype.c (strtoken): New function.
11743 (create_user_defined_type): Replace strtok with strtoken.
11745 2014-07-29 Nathan Sidwell <nathan@acm.org>
11747 * gcov-io.c (gcov_var): Make hidden.
11748 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11749 (gcov_do_dump): Declare.
11750 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11752 2014-07-29 Martin Jambor <mjambor@suse.cz>
11754 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11755 parameter to gimple.
11756 (sra_modify_assign): Likewise.
11758 2014-07-29 Richard Biener <rguenther@suse.de>
11760 PR middle-end/52478
11761 * expr.c (expand_expr_real_2): Revert last change.
11763 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11765 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11766 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11767 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11769 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11770 (contains_type_p): Forward declare.
11771 (polymorphic_call_target_hasher::hash): Hash speculative info.
11772 (polymorphic_call_target_hasher::equal): Compare speculative info.
11773 (get_class_context): Handle speuclation.
11774 (contains_type_p): Update.
11775 (get_polymorphic_call_info_for_decl): Update.
11776 (walk_ssa_copies): Break out from ...
11777 (get_polymorphic_call_info): ... here; set speculative context
11779 * ipa-prop.c (ipa_write_indirect_edge_info,
11780 ipa_read_indirect_edge_info): Stream speculative context.
11781 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11782 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11783 SPECULATIVE_MAYBE_DERIVED_TYPE).
11784 (possible_polymorphic_call_targets overriders): Update.
11785 (dump_possible_polymorphic_call_targets overriders): Update.
11786 (dump_possible_polymorphic_call_target_p overriders): Update.
11788 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11790 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11791 ipa-devirt path; fix thinko there.
11793 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
11795 * config/i386/i386.c (ix86_return_in_memory): Replace one
11796 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11798 2014-07-28 Marek Polacek <polacek@redhat.com>
11800 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
11802 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
11804 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11805 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11806 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11807 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11808 (USE_LD_AS_NEEDED): Likewise.
11809 (ASM_APP_ON): Likewise.
11810 (ASM_APP_OFF): Likewise.
11811 (TARGET_POSIX_IO): Likewise.
11812 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11813 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11814 (USE_LD_AS_NEEDED): Likewise.
11815 (ASM_APP_ON): Likewise.
11816 (ASM_APP_OFF): Likewise.
11817 (TARGET_POSIX_IO): Likewise.
11819 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
11821 PR middle-end/61734
11822 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11823 operators other than the equality operators.
11825 2014-07-28 Richard Biener <rguenther@suse.de>
11827 PR middle-end/52478
11828 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11829 sure to register SImode ones, not only >= word_mode ones.
11830 * expr.c (expand_expr_real_2): When expanding -ftrapv
11831 binops do not use OPTAB_LIB_WIDEN.
11833 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
11835 PR middle-end/61919
11836 * tree-outof-ssa.c (insert_partition_copy_on_edge)
11837 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11838 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11839 inserting them in the insn stream.
11841 2014-07-28 Marek Polacek <polacek@redhat.com>
11843 PR middle-end/61913
11844 * common.opt (Wodr): Add Var.
11846 2014-07-28 Richard Biener <rguenther@suse.de>
11848 PR tree-optimization/61921
11849 * tree-ssa-structalias.c (create_variable_info_for_1): Check
11850 if there is a varpool node before dereferencing it.
11852 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11854 * graphite-sese-to-poly.c:
11855 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11856 id of the pbb), which contains pointer to the pbb1.
11858 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11860 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11862 * graphite-isl-ast-to-gimple.c:
11863 (graphite_create_new_guard): New function.
11864 (translate_isl_ast_node_if): New function.
11865 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11867 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11869 2014-07-27 Anthony Green <green@moxielogic.com>
11871 * config.gcc: Add moxie-*-moxiebox* configuration.
11872 * config/moxie/moxiebox.h: New file.
11874 2014-07-26 Andrew Pinski <apinski@cavium.com>
11876 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11877 from the read only register.
11879 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11881 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11882 as the allocation class if it isn't likely to be spilled.
11884 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11886 * rtl.h (tls_referenced_p): Declare.
11887 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11888 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11889 (mips_cannot_force_const_mem): Use tls_referenced_p.
11890 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11891 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11892 instead of pa_tls_referenced_p.
11893 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11894 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11895 (pa_legitimate_constant_p): Likewise.
11896 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11897 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11898 (rs6000_cannot_force_const_mem, rs6000_emit_move)
11899 (rs6000_address_for_altivec): Use tls_referenced_p instead of
11900 rs6000_tls_referenced_p.
11901 (rs6000_tls_symbol_ref_1): Delete.
11903 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
11906 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
11907 Optimize inverse of a VEC_CONCAT.
11909 2014-07-25 Xinliang David Li <davidxl@google.com>
11911 * params.def: New parameter.
11912 * coverage.c (get_coverage_counts): Check new flag.
11913 (coverage_compute_profile_id): Check new flag.
11914 (coverage_begin_function): Check new flag.
11915 (coverage_end_function): Check new flag.
11916 * value-prof.c (coverage_node_map_initialized_p): New function.
11917 (init_node_map): Populate map with all functions.
11918 * doc/invoke.texi: Document new parameter.
11920 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
11921 Richard Biener <rguenther@suse.de>
11923 * lto-streamer-out.c (struct sccs): Turn to ...
11924 (class DFS): ... this one; refactor the DFS walk so it can
11925 be re-done on per-SCC basis.
11926 (DFS::DFS): New constructor.
11927 (DFS::~DFS): New destructor.
11928 (hash_tree): Add new MAP argument holding in-SCC hash values;
11929 remove POINTER_TYPE hashing hack.
11930 (scc_entry_compare): Rename to ...
11931 (DFS::scc_entry_compare): ... this one.
11932 (hash_scc): Rename to ...
11933 (DFS::hash_scc): ... this one; pass output_block instead
11934 of streamer_cache; work harder to get unique and stable SCC
11936 (DFS_write_tree): Rename to ...
11937 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11938 (lto_output_tree): Update.
11940 2014-07-25 Andi Kleen <ak@linux.intel.com>
11942 * lto-streamer-out.c (hash_tree): Convert to inchash.
11944 2014-07-25 Andi Kleen <ak@linux.intel.com>
11946 * tree.c (build_type_attribute_qual_variant): Use inchash.
11947 (type_hash_list): Dito.
11948 (attribute_hash_list): Dito
11949 (iterative_hstate_expr): Dito.
11950 (iterative_hash_expr): Dito.
11951 (build_range_type_1): Dito.
11952 (build_array_type_1): Dito.
11953 (build_function_type): Dito.
11954 (build_method_type_directly): Dito.
11955 (build_offset_type): Dito.
11956 (build_complex_type): Dito.
11957 (make_vector_type): Dito.
11958 * tree.h (iterative_hash_expr): Add compat wrapper.
11959 (iterative_hstate_expr): Add.
11961 2014-07-25 Andi Kleen <ak@linux.intel.com>
11963 * Makefile.in (OBJS): Add inchash.o.
11964 (PLUGIN_HEADERS): Add inchash.h.
11965 * ipa-devirt.c: Include inchash.h.
11966 * lto-streamer-out.c: Dito.
11967 * tree-ssa-dom.c: Dito.
11968 * tree-ssa-pre.c: Dito.
11969 * tree-ssa-sccvn.c: Dito.
11970 * tree-ssa-tail-merge.c: Dito.
11972 * tree.c (iterative_hash_hashval_t): Move to ...
11973 (iterative_hash_host_wide_int): Move to ...
11974 * inchash.c: Here. New file.
11975 * tree.h (iterative_hash_hashval_t): Move to ...
11976 (iterative_hash_host_wide_int): Move to ...
11977 * inchash.h: Here. New file.
11979 2014-07-25 Richard Biener <rguenther@suse.de>
11981 PR middle-end/61762
11982 PR middle-end/61894
11983 * fold-const.c (native_encode_int): Add and handle offset
11984 parameter to do partial encodings of expr.
11985 (native_encode_fixed): Likewise.
11986 (native_encode_real): Likewise.
11987 (native_encode_complex): Likewise.
11988 (native_encode_vector): Likewise.
11989 (native_encode_string): Likewise.
11990 (native_encode_expr): Likewise.
11991 * fold-const.c (native_encode_expr): Add offset parameter
11993 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
11994 (fold_ctor_reference): Handle all reads from tcc_constant
11997 2014-07-25 Richard Biener <rguenther@suse.de>
11999 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12000 as possibly unused.
12002 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12004 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12006 2014-07-24 Kyle McMartin <kyle@redhat.com>
12008 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12010 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12012 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12014 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12016 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12017 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12018 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12020 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12022 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12023 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12024 aggregate types. Instead, *all* aggregate types, except for single-
12025 element or homogeneous float/vector aggregates, are quadword-aligned
12026 if required by their type alignment. Issue -Wpsabi note when a type
12027 is now treated differently than before.
12029 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12031 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12032 does not fit fully into floating-point registers, and there is still
12033 space in the register parameter area, use GPRs to pass those parts
12034 of the argument. Issue -Wpsabi note if any parameter is now treated
12035 differently than before.
12036 (rs6000_arg_partial_bytes): Update.
12038 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12040 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12042 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12044 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12045 * toplev.c (initialize_rtl): Don't use it. Move previously
12046 "language-dependent" calls to...
12047 (backend_init): ...here.
12048 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12049 Assert that RTL initialization hasn't happend yet.
12051 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12053 PR rtl-optimization/61629
12054 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12055 they have already been initialized.
12057 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12059 PR middle-end/61268
12060 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12061 DECL_INCOMING_RTL and entry_parm.
12062 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12063 * calls.c (load_register_parameters): Likewise argument values.
12064 (emit_library_call_value_1, store_one_arg): Likewise argument
12066 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12068 * explow.c (validize_mem): Modify the argument in-place.
12070 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12072 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12073 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12075 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12077 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12078 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12080 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12082 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12083 (aarch64_save_callee_saves): New parameter "skip_wb".
12084 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12086 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12088 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12090 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12092 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12094 * graphite-isl-ast-to-gimple.c:
12095 (graphite_create_new_loop): Add calling of isl_id_free to properly
12096 decrement reference counts.
12098 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12100 2014-07-24 Martin Liska <mliska@suse.cz>
12101 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12103 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12104 (rs6000_code_end): Likewise.
12106 2014-07-24 Martin Liska <mliska@suse.cz>
12108 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12109 symtab_node funtion used.
12110 (rs6000_xcoff_declare_object_name): Likewise.
12112 2014-07-24 Martin Liska <mliska@suse.cz>
12114 * cgraphunit.c (compile): Correct function used.
12116 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12118 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12121 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12124 * varasm.c (bss_initializer_p): Handle offlined ctors.
12125 (align_variable, get_variable_align): Likewise.
12126 (make_decl_one_only): Likewise.
12127 (default_binds_local_p_1): Likewise.
12128 (decl_binds_to_current_def_p): Likewise.
12129 (get_variable_section): Get constructor if it is offlined.
12130 (assemble_variable_contents): Sanity check that the caller
12131 streamed in the ctor in LTO.
12133 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12135 * graphite-isl-ast-to-gimple.c:
12136 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12137 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12138 isl_ast_op_pdiv_r to the different case.
12140 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12142 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12144 PR middle-end/61876
12145 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12146 when flag_errno_math is on.
12148 2014-07-24 Martin Liska <mliska@suse.cz>
12150 * cgraph.h (varpool_node):
12151 (availability get_availability (void)):
12152 created from cgraph_variable_initializer_availability
12153 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12154 created from: cgraph_variable_initializer_availability
12155 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12156 (void finalize_named_section_flags (void)):
12157 created from varpool_finalize_named_section_flags
12158 (bool assemble_decl (void)): created from varpool_assemble_decl
12159 (void analyze (void)): created from varpool_analyze_node
12160 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12161 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12162 (void remove_initializer (void)): created from varpool_remove_initializer
12163 (tree get_constructor (void)): created from varpool_get_constructor
12164 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12165 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12166 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12167 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12168 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12169 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12170 (static bool output_variables (void)): created from varpool_output_variables
12171 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12172 created from varpool_extra_name_alias
12173 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12174 (static void dump_varpool (FILE *f)): created from dump_varpool
12175 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12176 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12177 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12178 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12179 (void assemble_aliases (void)): created from assemble_aliases
12181 2014-07-24 Martin Liska <mliska@suse.cz>
12183 * cgraph.h (symtab_node):
12184 (void register_symbol (void)): created from symtab_register_node
12185 (void remove (void)): created from symtab_remove_node
12186 (void dump (FILE *f)): created from dump_symtab_node
12187 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12188 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12189 (struct ipa_ref *add_reference (symtab_node *referred_node,
12190 enum ipa_ref_use use_type)): created from add_reference
12191 (struct ipa_ref *add_reference (symtab_node *referred_node,
12192 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12193 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12194 gimple stmt)): created from maybe_add_reference
12195 (bool semantically_equivalent_p (symtab_node *target)): created from
12196 symtab_semantically_equivalent_p
12197 (void remove_from_same_comdat_group (void)): created from
12198 remove_from_same_comdat_group
12199 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12200 symtab_add_to_same_comdat_group
12201 (void dissolve_same_comdat_group_list (void)): created from
12202 symtab_dissolve_same_comdat_group_list
12203 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12204 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12205 created from symtab_alias_ultimate_target
12206 (inline symtab_node *next_defined_symbol (void)): created from
12207 symtab_next_defined_symbol
12208 (bool resolve_alias (symtab_node *target)): created from
12209 symtab_resolve_alias
12210 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12211 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12212 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12213 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12214 (void set_section (const char *section)): created from set_section_1
12215 (enum availability get_availability (void)): created from symtab_node_availability
12216 (void make_decl_local (void)): created from symtab_make_decl_local
12217 (bool real_symbol_p (void)): created from symtab_read_node
12218 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12219 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12220 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12221 symtab_in_same_comdat_p;
12222 (bool address_taken_from_non_vtable_p (void)): created from
12223 address_taken_from_non_vtable_p
12224 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12225 (static void dump_table (FILE *)): created from dump_symtab
12226 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12227 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12228 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12229 symtab_used_from_object_file_p
12230 (void dump_base (FILE *)): created from dump_symtab_base
12231 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12232 (void unregister (void)): created from symtab_unregister_node
12233 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12234 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12235 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12236 symtab_nonoverwritable_alias_1
12237 * cgraph.h (cgraph_node):
12238 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12239 created from cgraph_remove_node_and_inline_clones
12240 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12241 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12242 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12243 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12244 created from cgraph_function_node
12245 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12246 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12247 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12248 created from cgraph_create_clone
12249 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12250 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12251 created from cgraph_create_virtual_clone
12252 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12253 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12254 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12255 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12256 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12257 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12258 created from cgraph_function_version_info
12259 (struct cgraph_function_version_info *insert_new_function_version (void)):
12260 created from insert_new_cgraph_node_version
12261 (struct cgraph_function_version_info *function_version (void)): created from
12262 get_cgraph_node_version
12263 (void analyze (void)): created from analyze_function
12264 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12265 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12266 tree real_alias) cgraph_add_thunk
12267 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12268 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12269 created from cgraph_function_or_thunk_node
12270 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12271 created from expand_thunk
12272 (void reset (void)): created from cgraph_reset_node
12273 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12274 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12275 (void remove (void)): created from cgraph_remove_node
12276 (void dump (FILE *f)): created from dump_cgraph_node
12277 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12278 (bool get_body (void)): created from cgraph_get_body
12279 (void release_body (void)): created from cgraph_release_function_body
12280 (void unnest (void)): created from cgraph_unnest_node
12281 (void make_local (void)): created from cgraph_make_node_local
12282 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12283 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12284 gcov_type count, int freq)): created from cgraph_create_edge
12285 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12286 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12287 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12288 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12289 created from cgraph_create_edge_including_clones
12290 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12291 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12292 (void remove_callers (void)): created from cgraph_node_remove_callers
12293 (void remove_callees (void)): created from cgraph_node_remove_callees
12294 (enum availability get_availability (void)): created from cgraph_function_body_availability
12295 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12296 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12297 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12298 (void call_duplication_hooks (cgraph_node *node2)): created from
12299 cgraph_call_node_duplication_hooks
12300 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12301 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12302 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12303 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12304 (void call_function_insertion_hooks (void)):
12305 created from cgraph_call_function_insertion_hooks
12306 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12307 (bool local_p (void)): created from cgraph_local_node
12308 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12309 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12310 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12311 (inline bool only_called_directly_or_aliased_p (void)):
12312 created from cgraph_only_called_directly_or_aliased_p
12313 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12314 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12315 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12316 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12317 (bool can_remove_if_no_direct_calls_p (void)):
12318 created from cgraph_can_remove_if_no_direct_calls_p
12319 (inline bool has_gimple_body_p (void)):
12320 created from cgraph_function_with_gimple_body_p
12321 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12322 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12323 (static inline void debug_cgraph (void)): created from debug_cgraph
12324 (static void record_function_versions (tree decl1, tree decl2)):
12325 created from record_function_versions
12326 (static void delete_function_version (tree decl)):
12327 created from delete_function_version
12328 (static void add_new_function (tree fndecl, bool lowered)):
12329 created from cgraph_add_new_function
12330 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12331 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12332 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12333 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12334 (static cgraph_node *get_for_asmname (tree asmname)):
12335 created from cgraph_node_for_asm
12336 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12337 created from cgraph_same_body_alias
12338 (static bool used_from_object_file_p_worker (cgraph_node *node,
12339 void *): new function
12340 (static bool non_local_p (cgraph_node *node, void *)):
12341 created from cgraph_non_local_node_p_1
12342 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12343 created from verify_cgraph
12344 (static bool make_local (cgraph_node *node, void *)):
12345 created from cgraph_make_node_local
12346 (static cgraph_node *create_alias (tree alias, tree target)):
12347 created from cgraph_create_function_alias
12348 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12349 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12350 created from cgraph_create_edge_1
12351 * cgraph.h (varpool_node):
12352 (void remove (void)): created from varpool_remove_node
12353 (void dump (FILE *f)): created from dump_varpool_node
12355 2014-07-24 Richard Biener <rguenther@suse.de>
12358 * tree-ssa-structalias.c (create_variable_info_for_1):
12359 Use varpool_get_constructor.
12360 (create_variable_info_for): Likewise.
12362 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12364 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12365 subtract outgoing area size when restoring stack_pointer_rtx.
12367 2014-07-24 Nick Clifton <nickc@redhat.com>
12369 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12370 that operations are taking place in parallel.
12371 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12373 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12375 * omp-low.c (extract_omp_for_data): Add missing break statement.
12377 2014-07-24 Richard Biener <rguenther@suse.de>
12379 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12380 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12381 and adjust MOVE_RATIO query accordingly.
12382 (estimate_num_insns): Adjust callers.
12383 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12384 * ipa-cp.c (gather_context_independent_values,
12385 estimate_local_effects): Likewise.
12386 * ipa-split.c (consider_split): Likewise.
12388 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12390 * config/i386/driver-i386.c: Remove names of unused arguments and
12391 unnecessary unused attributes.
12392 * config/i386/host-mingw32.c: Likewise.
12393 * config/i386/i386.c: Likewise.
12394 * config/i386/winnt-stubs.c: Likewise.
12395 * config/i386/winnt.c: Likewise.
12397 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12399 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12400 (aarch64_gen_loadwb_pair): New helper function.
12401 (aarch64_expand_epilogue): Simplify code using new helper functions.
12402 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12404 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12406 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12407 (aarch64_gen_storewb_pair): New helper function.
12408 (aarch64_expand_prologue): Simplify code using new helper functions.
12409 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12411 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12413 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12414 Rename to aarch64_save_callee_saves, remove restore code.
12415 (aarch64_restore_callee_saves): New function.
12417 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12419 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12420 (aarch64_save_callee_saves): New function to handle reg save
12421 for both core and vectore regs.
12423 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12425 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12426 (aarch64_gen_store_pair): New helper function.
12427 (aarch64_save_or_restore_callee_save_registers)
12428 (aarch64_save_or_restore_fprs): Use new helper functions.
12430 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12432 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12433 (aarch64_save_or_restore_callee_save_registers)
12434 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12436 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12438 * config/aarch64/aarch64.c
12439 (aarch64_save_or_restore_callee_save_registers)
12440 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12442 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12444 * config/aarch64/aarch64.c
12445 (aarch64_save_or_restore_callee_save_registers)
12446 (aarch64_save_or_restore_fprs): Remove 'increment'.
12448 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12450 * config/aarch64/aarch64.c
12451 (aarch64_save_or_restore_callee_save_registers)
12452 (aarch64_save_or_restore_fprs): Use register offset in
12453 cfun->machine->frame.reg_offset.
12455 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12457 * config/aarch64/aarch64.c
12458 (aarch64_save_or_restore_callee_save_registers)
12459 (aarch64_save_or_restore_fprs): Remove base_rtx.
12461 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12463 * config/aarch64/aarch64.c
12464 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12465 to 'start_offset'. Remove local variable 'start_offset'.
12467 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12469 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12470 type to HOST_WIDE_INT.
12472 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12474 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12475 (aarch64_save_or_restore_fprs)
12476 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12478 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12480 * config/arm/t-rtems-eabi: Add
12481 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12482 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12483 mbig-endian/mthumb/march=armv7-r, and
12484 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12487 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12488 Chris Johns <chrisj@rtems.org>
12489 Joel Sherrill <joel.sherrill@oarcorp.com>
12491 * config.gcc: Add nios2-*-rtems*.
12492 * config/nios2/rtems.h: New file.
12493 * gcc/config/nios2/t-rtems: New file.
12495 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12498 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12499 constant numbers, not general constants.
12500 (rs6000_expand_vector_init): Ditto.
12502 2014-07-23 Nathan Sidwell <nathan@acm.org>
12504 * gcov-tool.c (gcov_list): Declare here.
12505 (set_gcov_list): Remove.
12506 (gcov_output_files): Set gcov_list directly.
12508 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12510 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12512 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12514 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12515 callee-saved registers are available for padding purpose
12516 and r3 is not mandatory, then prefer use those callee-saved
12519 2014-07-23 Richard Biener <rguenther@suse.de>
12521 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12522 * combine.c: Include statistics.h and params.h.
12523 (combine_instructions): Guard three and four insn combines
12524 with max-combine-insns value. Record statistics for combines
12526 * doc/invoke.texi (max-combine-insns): Document new param.
12528 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12530 * graphite-isl-ast-to-gimple.c:
12531 (translate_isl_ast_node_block): New function.
12532 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12534 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12535 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12537 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12539 * graphite-isl-ast-to-gimple.c:
12540 (get_max_schedule_dimensions): New function.
12541 (extend_schedule): Likewise.
12542 (generate_isl_schedule): Add calling of extend_schedule and
12543 get_max_schedule_dimensions.
12545 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12547 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12548 (case UNSPEC): Handle UNSPEC_RBIT.
12550 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12552 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12553 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12555 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12557 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12559 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12561 * graphite-isl-ast-to-gimple.c:
12562 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12563 (ivs_params_clear):
12564 (build_iv_mapping): New function.
12565 (translate_isl_ast_node_user): Likewise.
12566 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12568 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12569 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12570 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12572 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12575 * config/arm/arm.md (setmem): New pattern.
12576 * config/arm/arm-protos.h (struct tune_params): New fields.
12577 (arm_gen_setmem): New prototype.
12578 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12579 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12580 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12581 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12582 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12583 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12584 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12585 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12586 (arm_const_inline_cost): New function.
12587 (arm_block_set_max_insns): New function.
12588 (arm_block_set_non_vect_profit_p): New function.
12589 (arm_block_set_vect_profit_p): New function.
12590 (arm_block_set_unaligned_vect): New function.
12591 (arm_block_set_aligned_vect): New function.
12592 (arm_block_set_unaligned_non_vect): New function.
12593 (arm_block_set_aligned_non_vect): New function.
12594 (arm_block_set_vect, arm_gen_setmem): New functions.
12596 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12598 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12600 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
12603 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12604 out of #ifdef __OPTIMIZE__.
12606 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12608 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12609 different trapping status if -fnon-call-exceptions is enabled.
12611 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12613 * expr.c (store_field): Handle VOIDmode for calls that return values
12614 in multiple locations.
12616 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12618 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
12619 (altivec_vsldoi_<mode>): Likewise.
12621 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12623 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12624 to the number of characters in the line.
12626 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12628 * graphite-isl-ast-to-gimple.c: Add using of
12629 build_nonstandard_integer_type instead of int128_integer_type_node.
12631 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
12633 * toplev.c (output_stack_usage): Adjust the location of the warning.
12635 2014-07-19 Daniel Cederman <cederman@gaisler.com>
12637 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12638 (*membar_storeload): Disable for LEON3.
12640 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12642 PR rtl-optimization/61461
12643 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12645 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
12648 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12649 Fix instruction constraint.
12650 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12652 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
12654 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12656 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
12658 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12659 GNU coding standards.
12660 (nds32_register_move_cost): Likewise.
12661 (nds32_memory_move_cost): Likewise.
12662 (nds32_address_cost): Likewise.
12664 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12666 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12668 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
12670 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12671 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12672 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12673 (HAVE_sync_compare_and_swapqi): Define.
12674 (HAVE_sync_compare_and_swaphi): Likewise.
12675 (HAVE_sync_compare_and_swapsi): Likewise.
12677 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
12679 * config/mips/p5600.md: Add missing cpu tests.
12681 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12683 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12684 (vmla_f64): Likewise.
12685 (vfms_f64): Likewise.
12686 (vmls_f64): Likewise.
12688 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12690 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12691 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12693 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12695 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12696 (vmlal_high_lane_s32): Likewise.
12697 (vmlal_high_lane_u16): Likewise.
12698 (vmlal_high_lane_u32): Likewise.
12699 (vmlsl_high_lane_s16): Likewise.
12700 (vmlsl_high_lane_s32): Likewise.
12701 (vmlsl_high_lane_u16): Likewise.
12702 (vmlsl_high_lane_u32): Likewise.
12704 2014-07-17 Terry Guo <terry.guo@arm.com>
12706 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12707 (alus_reg): Renamed to alus_sreg.
12708 * config/arm/arm-fixed.md: Change type of non-dsp instructions
12709 from alu_reg to alu_sreg. Change type of dsp instructions from
12710 alu_reg to alu_dsp_reg.
12711 * config/arm/thumb1.md: Likewise.
12712 * config/arm/thumb2.md: Likewise.
12713 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12714 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12715 with alu_sreg and alus_sreg.
12716 * config/arm/arm1026ejs.md (alu_op): Likewise.
12717 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12718 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12719 * config/arm/fa526.md (526_alu_op): Likewise.
12720 * config/arm/fa606te.md (606te_alu_op): Likewise.
12721 * config/arm/fa626te.md (626te_alu_op): Likewise.
12722 * config/arm/fa726te.md (726te_alu_op): Likewise.
12723 * config/arm/fmp626.md (mp626_alu_op): Likewise.
12724 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12725 alu_sreg, alu_dsp_reg and alus_sreg.
12726 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12727 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12728 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12729 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12730 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12731 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12732 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12733 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12734 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12735 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12736 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12737 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12738 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12739 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12740 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12741 alus_reg to alus_sreg.
12743 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
12745 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12748 2014-07-17 Richard Biener <rguenther@suse.de>
12750 PR rtl-optimization/61801
12751 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12752 don't set reg_pending_barrier if it appears in a debug-insn.
12754 2014-07-16 DJ Delorie <dj@redhat.com>
12756 * config/rx/rx.c (rx_option_override): Fix alignment values.
12757 (rx_align_for_label): Likewise.
12759 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
12762 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12763 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12764 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12766 (cris_print_index, cris_print_operand, cris_constant_index_p)
12767 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12768 (cris_address_cost): Ditto last CONSTANT_P.
12769 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
12770 callers changed. Yield cris_offsettable_symbol for non-PIC
12771 constant symbolic expressions including labels. Yield cris_unspec
12773 (cris_expand_pic_call_address): New parameter MARKERP. Set its
12774 target to pic_offset_table_rtx for calls that will likely go
12775 through PLT, const0_rtx when they can't. All callers changed.
12776 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12777 symbolic expressions to be PICified. Remove second, redundant,
12778 assert on can_create_pseudo_p returning non-zero. Use
12779 replace_equiv_address_nv, not replace_equiv_address, for final
12781 * config/cris/cris.md ("movsi"): Move variable t to pattern
12782 toplevel. Adjust assert for new cris_symbol_type member. Use
12783 CONSTANT_P instead of CONSTANT_ADDRESS_P.
12784 ("*movsi_internal") <case 9>: Make check for valid unspec operands
12786 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12787 ("call", "call_value"): Use second incoming operand as a marker
12788 for pic-offset-table-register being used.
12789 ("*expanded_call_non_v32", "*expanded_call_v32")
12790 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12791 second incoming operand to CALL, match cris_call_type_marker.
12792 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
12793 ("*expanded_call_side"): Ditto. Fix typo in comment.
12794 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12796 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12797 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12798 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
12799 users changed. Add members cris_offsettable_symbol and cris_unspec.
12800 (cris_symbol_type): Rename from cris_pic_symbol_type.
12801 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12803 * config/cris/cris-protos.h (cris_symbol_type_of,
12804 cris_expand_pic_call_address): Adjust prototypes.
12805 (cris_legitimate_constant_p): New prototype.
12807 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12808 an existing tmake_file. Don't add t-slibgcc and t-linux.
12810 2014-07-17 Jason Merrill <jason@redhat.com>
12813 * symtab.c (symtab_remove_from_same_comdat_group): Also
12814 set_comdat_group to NULL_TREE.
12815 (verify_symtab): Fix diagnostic.
12817 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
12820 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12822 2014-07-16 Dodji Seketeli <dodji@redhat.com>
12824 Support location tracking for built-in macro tokens
12825 * input.h (is_location_from_builtin_token): New function declaration.
12826 * input.c (is_location_from_builtin_token): New function definition.
12827 * toplev.c (general_init): Tell libcpp what the pre-defined
12828 spelling location for built-in tokens is.
12830 2014-07-16 Jakub Jelinek <jakub@redhat.com>
12832 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12833 on the FUNCTION_DECL.
12835 2014-07-16 Richard Biener <rguenther@suse.de>
12838 * doc/extend.texi (always_inline): Clarify.
12840 2014-07-15 Eric Christopher <echristo@gmail.com>
12842 * doc/invoke.texi (Link Options): Document -z option.
12844 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
12846 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12847 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12849 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
12851 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12853 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
12855 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12856 varpool_assemble_decl.
12857 * varpool.c (varpool_assemble_decl): Assert that node->definition is
12860 2014-07-15 Michael Matz <matz@suse.de>
12862 PR rtl-optimization/61772
12863 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12865 2014-07-15 Richard Biener <rguenther@suse.de>
12867 * opts.c (default_options_table): Disable bit-ccp at -Og.
12869 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12871 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12873 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12875 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12876 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12877 call langhook for unknown declaration.
12878 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12879 * tree.h (DECL_ARGUMENTS): Update.
12880 * print-tree.c (print_node): Update.
12881 * tree-core.h (tree_decl_non_common): Remove arguments.
12882 (tree_function_decl): Add arguments.
12884 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
12886 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12888 2014-07-14 Richard Biener <rguenther@suse.de>
12890 PR tree-optimization/61779
12891 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12892 simplifying a condition.
12894 2014-07-14 Richard Biener <rguenther@suse.de>
12896 * builtins.c (c_strlen): Make only_value == 2 really only
12897 affect warning generation.
12899 2014-07-14 Richard Biener <rguenther@suse.de>
12901 PR tree-optimization/61757
12902 PR tree-optimization/61783
12903 PR tree-optimization/61787
12904 * tree-ssa-dom.c (record_equality): Revert canonicalization
12905 change and add comment.
12906 (propagate_rhs_into_lhs): Revert previous fix, removing
12907 loop depth restriction again.
12909 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12911 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
12912 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12913 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12914 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
12915 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12916 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12917 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12919 2014-07-14 Richard Biener <rguenther@suse.de>
12921 * cgraph.h (decl_in_symtab_p): Make inline.
12923 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12925 PR middle-end/61294
12926 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12929 * config/i386/i386.c (classify_argument): Don't merge classes above
12932 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12934 * cgraph.h (symtab_node): Add nonzero_address.
12935 (decl_in_symtab_p): Break out from ...
12936 (symtab_get_node): ... here.
12937 * fold-const.c: Include cgraph.h
12938 (tree_single_nonzero_warnv_p): Use symtab to determine
12939 if symbol is non-zero.
12940 * symtab.c (symtab_node::nonzero_address): New method.
12942 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12944 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12945 forgotten in previous commit.
12947 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12949 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12951 * ipa-devirt.c: Include stor-layout.h and intl.h
12952 (odr_subtypes_equivalent_p): New function.
12953 (warn_odr): New function.
12954 (warn_type_mismatch): New function.
12955 (odr_types_equivalent_p): New function.
12956 (add_type_duplicate): Use it.
12957 * common.opt (Wodr): New flag.
12958 * doc/invoke.texi (Wodr): Document new warning.
12960 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12962 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12963 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12964 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
12965 (varpool_get_constructor): Push CTORS_IN timevar.
12966 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
12968 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
12970 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
12971 Remove VOID_FTYPE_PUSHORT.
12972 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
12973 Change code to USHORT_FTYPE_VOID.
12974 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
12975 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
12976 (ix86_atomic_assign_expand_fenv): Update for
12977 __builtin_ia32_fnstsw changes.
12978 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
12979 (fnstsw): Change operand 0 to nonimmediate operand.
12981 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12983 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
12984 (varpool_get_constructor): New function.
12985 (varpool_ctor_useable_for_folding_p): Break out from ...
12986 (ctor_for_folding): ... here; use varpool_get_constructor.
12987 (varpool_assemble_decl): Likewise.
12988 * lto-streamer.h (struct output_block): Turn cgraph_node
12990 (lto_input_variable_constructor): Declare.
12991 * ipa-visibility.c (function_and_variable_visibility): Use
12992 varpool_get_constructor.
12993 * cgraph.h (varpool_get_constructor): Declare.
12994 (varpool_ctor_useable_for_folding_p): New function.
12995 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
12996 parameter; return error_mark_node for non-trivial constructors.
12997 (lto_write_tree_1, DFS_write_tree): Update use of
12998 get_symbol_initial_value.
12999 (output_function): Update initialization of symbol.
13000 (output_constructor): New function.
13001 (copy_function): Rename to ..
13002 (copy_function_or_variable): ... this one; handle vars too.
13003 (lto_output): Output variable sections.
13004 * lto-streamer-in.c (input_constructor): New function.
13005 (lto_read_body): Rename from ...
13006 (lto_read_body_or_constructor): ... this one; handle vars too.
13007 (lto_input_variable_constructor): New function.
13008 * ipa-prop.c (ipa_prop_write_jump_functions,
13009 ipa_prop_write_all_agg_replacement): Update.
13010 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13011 (output_cgraph_opt_summary): Set symbol to NULL.
13013 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13015 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13016 non-polymorphic types.
13017 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13018 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13019 of types is not polymorphic.
13021 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13023 * lra-constraints.c (remove_inheritance_pseudos): Process
13024 destination pseudo too.
13026 2014-07-11 Rong Xu <xur@google.com>
13028 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13031 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13033 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13034 * config/avr/avr-devices.c (AVR_MCU): Same.
13035 (avr_mcu_types): add text start value to end of device list.
13036 * config/avr/avr-mcus.def: Add text section start for all devices.
13037 (ata5782): Add new avr5 device.
13039 * config/avr/avr-tables.opt: Regenerate.
13040 * config/avr/avr.h: Add declaration for text section start handler.
13041 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13043 (LINK_SPEC): Include text section start handler to linker spec.
13044 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13045 pass -Ttext option to linker if the text section start for the device
13047 * config/avr/t-multilib: Regenerate.
13048 * doc/avr-mmcu.texi: Regenerate.
13050 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13052 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13053 * config/rs6000/aix52.h (LINK_SPEC): Same.
13054 * config/rs6000/aix53.h (LINK_SPEC): Same.
13055 * config/rs6000/aix61.h (LINK_SPEC): Same.
13056 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13058 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13060 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13061 (graphite_verify): New function.
13062 (ivs_params_clear): New function.
13063 (gcc_expression_from_isl_ast_expr_id): New function.
13064 (gcc_expression_from_isl_expr_int): New function.
13065 (binary_op_to_tree): New function.
13066 (ternary_op_to_tree): New function.
13067 (unary_op_to_tree): New function.
13068 (nary_op_to_tree): New function.
13069 (gcc_expression_from_isl_expr_op): New function.
13070 (gcc_expression_from_isl_expression): New function.
13071 (graphite_create_new_loop): New function.
13072 (translate_isl_ast_for_loop): New function.
13073 (get_upper_bound): New function.
13074 (graphite_create_new_loop_guard): New function.
13075 (translate_isl_ast_node_for): New function.
13076 (translate_isl_ast): New function.
13077 (add_parameters_to_ivs_params): New function.
13078 (scop_to_isl_ast): New parameter ip.
13079 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13081 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13083 * config/xtensa/predicates.md (call expander): Update for
13084 DECL_SECTION_NAME being string.
13086 2014-07-11 Richard Biener <rguenther@suse.de>
13088 PR middle-end/61473
13089 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13090 can be implemented with a single load followed by a single store.
13091 (c_strlen): Only warn when only_value is not 2.
13093 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13095 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13097 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13100 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13101 (*movhi_bytes): Likewise.
13102 (*arm_movqi_insn): Likewise.
13104 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13107 * config/alpha/alpha.c: Include tree-pass.h, context.h
13108 and pass_manager.h.
13109 (pass_data_handle_trap_shadows): New pass.
13110 (pass_handle_trap_shadows::gate): New pass gate function.
13111 (make_pass_handle_trap_shadows): New function.
13112 (rest_of_handle_trap_shadows): Ditto.
13114 (alpha_align_insns_1): Rename from alpha_align_insns.
13115 (pass_data_align_insns): New pass.
13116 (pass_align_insns::gate): New pass gate function.
13117 (make_pass_aling_insns): New function.
13118 (rest_of_align_insns): Ditto.
13119 (alpha_align_insns): Ditto.
13121 (alpha_option_override): Declare handle_trap_shadows info
13122 and align_insns_info. Register handle_trap_shadows and align_insns
13124 (alpha_reorg): Do not call alpha_trap_shadows and
13125 alpha_align_insn from here.
13127 (alpha_pad_function_end): Do not skip BARRIERs.
13129 2014-07-10 Rong Xu <xur@google.com>
13131 Add gcov-tool: an offline gcda profile processing tool support.
13132 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13133 (gcov_is_error): Ditto.
13134 (gcov_read_string): Ditto.
13135 (gcov_read_sync): Ditto.
13136 * gcov-io.h: Move counter defines to gcov-counter.def.
13137 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13138 * coverage.c: Ditto.
13139 * gcov-tool.c: Offline gcda profile processing tool.
13140 (unlink_gcda_file): Remove one gcda file.
13141 (unlink_profile_dir): Remove gcda files from the profile path.
13142 (gcov_output_files): Output gcda files to an output dir.
13143 (profile_merge): Merge two profiles in directory.
13144 (print_merge_usage_message): Print merge usage.
13145 (merge_usage): Print merge usage and exit.
13146 (do_merge): Driver for profile merge sub-command.
13147 (profile_rewrite): Rewrite profile.
13148 (print_rewrite_usage_message): Print rewrite usage.
13149 (rewrite_usage): Print rewrite usage and exit.
13150 (do_rewrite): Driver for profile rewrite sub-command.
13151 (print_usage): Print gcov-info usage and exit.
13152 (print_version): Print gcov-info version.
13153 (process_args): Process arguments.
13154 (main): Main routine for gcov-tool.
13155 * Makefile.in: Build and install gcov-tool.
13156 * gcov-counter.def: New file split from gcov-io.h.
13157 * doc/gcc.texi: Include gcov-tool.texi.
13158 * doc/gcov-tool.texi: Document for gcov-tool.
13160 2014-07-10 Richard Biener <rguenther@suse.de>
13162 PR tree-optimization/61757
13163 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13164 (propagate_rhs_into_lhs): Revert part of last change.
13166 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13168 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13171 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13173 PR middle-end/53590
13174 * function.c (allocate_struct_function): Revert r188667 change.
13176 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13178 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13180 * doc/install.texi: Remove links to defunct package providers for
13183 2014-07-09 Tom de Vries <tom@codesourcery.com>
13185 * final.c (get_call_fndecl): Declare.
13186 (self_recursive_call_p): New function.
13187 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13189 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13191 * ipa-devirt.c (record_node): Walk through aliases.
13193 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13195 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13197 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13200 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13202 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13204 * ipa-visibility.c (function_and_variable_visibility): Remove
13205 temporary hack disabling local aliases on AIX.
13207 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13209 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13210 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13212 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13214 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13215 * rs6000/rs6000.c: Inline output of .set instruction.
13216 (declare_alias_data): New struct.
13217 (rs6000_declare_alias): New function.
13218 (rs6000_xcoff_declare_function_name): Use it.
13219 (rs6000_xcoff_declare_object_name): New function.
13220 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13221 (ASM_OUTPUT_DEF): Turn to empty definition.
13223 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13226 * hash-table.h: use hash_table::value_type instead of
13227 Descriptor::value_type in the return types of several methods.
13229 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13231 * tree-pass.h (pass_data): Remove has_execute member.
13232 * passes.c (execute_one_pass): Don't check pass->has_execute.
13233 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13234 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13235 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13236 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13237 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13238 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13239 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13240 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13241 gimple-low.c, gimple-ssa-isolate-paths.c,
13242 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13243 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13244 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13245 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13246 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13247 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13248 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13249 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13250 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13251 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13252 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13253 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13254 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13255 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13256 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13257 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13258 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13259 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13260 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13261 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13262 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13263 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13264 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13265 web.c: Remove initializer for pass_data::has_execute.
13267 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13269 * graphite-htab.h: Use hash_map instead of hash_table.
13270 * graphite-clast-to-gimple.c: Adjust.
13271 * passes.c: Use hash_map instead of hash_table.
13272 * sese.c: Likewise.
13273 * sese.h: Remove now unused code.
13275 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13278 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13281 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13283 PR rtl-optimization/61673
13284 * combine.c (simplify_comparison): Test just mode's sign bit
13285 in tmode rather than the sign bit and any bits above it.
13287 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13289 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13290 Add __isl_give to the declaration.
13291 (generate_isl_schedule): Likewise.
13292 (scop_to_isl_ast): Likewise.
13294 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13296 * config/arm/arm.c (cortexa5_extra_costs): New table.
13297 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13299 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13301 PR tree-optimization/61725
13302 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13303 range, use range_includes_zerop_p instead of integer_zerop on
13304 vr0->min, only use log2 of max if min is not negative.
13306 2014-07-08 Richard Biener <rguenther@suse.de>
13308 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13309 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13310 restriction on loop depth difference.
13311 (record_equality): Likewise.
13312 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13313 (loop_depth_of_name): Remove.
13314 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13315 restriction on loop depth difference.
13316 (init_copy_prop): Likewise.
13318 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13320 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13322 (walk_aliased_vdefs): Likewise.
13323 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13324 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13325 (detect_type_change_from_memory_writes): Check if entry was reached.
13327 2014-07-08 Richard Biener <rguenther@suse.de>
13329 PR tree-optimization/61681
13330 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13331 NONLOCAL inside ESCAPED.
13333 2014-07-08 Richard Biener <rguenther@suse.de>
13335 PR tree-optimization/61680
13336 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13337 Handle properly all read-write dependences with group accesses.
13339 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13341 PR tree-optimization/61576
13342 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13343 block containing reduction statement is predecessor of phi basi block.
13345 2014-07-08 Marek Polacek <polacek@redhat.com>
13348 * fold-const.c (round_up_loc): Change the parameter type.
13350 * fold-const.h (round_up_loc): Adjust declaration.
13351 * stor-layout.c (finalize_record_size): Check for too large types.
13353 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13355 * symtab.c: Include calls.h.
13356 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13358 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13360 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13361 little-endian code generation.
13362 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13363 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13364 (spe_evmergehilo): Rename to...
13365 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13366 (spe_evmergelo): Rename to...
13367 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13368 (spe_evmergelohi): Rename to...
13369 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13370 (spe_evmergehi, spe_evmergehilo): New expanders.
13371 (spe_evmergelo, spe_evmergelohi): Likewise.
13372 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13373 (*frob_tf_ti): Likewise.
13374 (*frob_<mode>_di_2): Likewise.
13375 (*frob_tf_di_8_2): Likewise.
13376 (*frob_di_<mode>): Likewise.
13377 (*frob_ti_tf): Likewise.
13378 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13379 (*frob_ti_<mode>_8_2): Likewise.
13380 (*frob_ti_tf_2): Likewise.
13381 (mov_si<mode>_e500_subreg0): Rename to...
13382 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13384 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13385 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13386 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13387 the big endianness only.
13388 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13389 (*mov_si<mode>_e500_subreg0_2): Rename to...
13390 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13391 big big endianness only.
13392 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13393 (*mov_si<mode>_e500_subreg4): Rename to...
13394 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13396 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13397 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13398 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13399 the big endianness only.
13400 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13402 (*mov_si<mode>_e500_subreg4_2): Rename to...
13403 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13405 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13406 (*mov_sitf_e500_subreg8): Rename to...
13407 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13409 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13410 (*mov_sitf_e500_subreg8_2): Rename to...
13411 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13413 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13414 (*mov_sitf_e500_subreg12): Rename to...
13415 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13417 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13418 (*mov_sitf_e500_subreg12_2): Rename to...
13419 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13421 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13423 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13425 * asan.c (instrument_strlen_call): Do not instrument first byte
13426 in strlen if already instrumented.
13428 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13430 * config/arm/arm.opt (mwords-little-endian): Delete.
13431 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13432 of TARGET_LITTLE_WORDS.
13433 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13434 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13436 * doc/invoke.texi: Remove references to -mwords-little-endian.
13438 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13440 * expmed.c (struct init_expmed_rtl): Change all fields but
13441 pow2 and cint from struct rtx_def to rtx.
13442 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13443 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13446 2014-07-06 Marek Polacek <polacek@redhat.com>
13449 * doc/invoke.texi: Document -Wsizeof-array-argument.
13451 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13453 * wide-int.h (wide_int_storage): Change declaration from struct
13456 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13458 * cgraph.c (cgraph_create_indirect_edge): Update call of
13459 get_polymorphic_call_info.
13460 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13461 (possible_polymorphic_call_targets): Add parameter call.
13462 (decl_maybe_in_construction_p): New predicate.
13463 (get_polymorphic_call_info): Add parameter call;
13464 use decl_maybe_in_construction_p.
13465 * gimple-fold.c (fold_gimple_assign): Update use of
13466 possible_polymorphic_call_targets.
13467 (gimple_fold_call): Likewise.
13468 * ipa-prop.c: Inlcude calls.h
13469 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13470 (param_type_may_change_p): New predicate.
13471 (detect_type_change_from_memory_writes): Break out from ...
13472 (detect_type_change): ... this one; use param_type_may_change_p.
13473 (detect_type_change_ssa): Use param_type_may_change_p.
13474 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13476 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13479 * config/arm/arm-protos.h (arm_legitimate_address_p,
13480 arm_is_constant_pool_ref): Add prototypes.
13481 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13482 (arm_is_constant_pool_ref) New function.
13483 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13484 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13485 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13486 operand. Remove pool_range and neg_pool_range attributes.
13487 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13488 pool_range and neg_pool_range attributes.
13489 * config/arm/constraints.md (Uh): New constraint.
13490 (Uq): Don't allow constant pool references.
13492 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13494 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13495 (move_lo_quad_internal_be_<mode>): Likewise.
13496 (move_lo_quad_<mode>): Convert to define_expand.
13497 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13498 (aarch64_simd_move_hi_quad_be_<mode>): New.
13499 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13500 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13501 (aarch64_combinez_be<mode>): New.
13502 (aarch64_combine<mode>): Convert to define_expand.
13503 (aarch64_combine_internal<mode>): New.
13504 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13506 2014-07-04 Tom de Vries <tom@codesourcery.com>
13508 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13509 combination of earlyclobber and read/write modifiers.
13511 2014-07-04 Tom de Vries <tom@codesourcery.com>
13513 * config/aarch64/aarch64-simd.md
13514 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13516 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13519 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13521 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13523 PR middle-end/61654
13524 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13526 PR tree-optimization/61684
13527 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13528 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13530 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13531 Kito Cheng <kito@0xlab.org>
13532 Monk Chiang <sh.chiang04@gmail.com>
13534 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13535 (nds32_symbol_load_store_p): Move to ...
13536 (nds32_fp_as_gp_check_available): Move to ...
13537 * config/nds32/nds32-fp-as-gp.c: ... here.
13538 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13539 extern declaration.
13541 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13542 Kito Cheng <kito@0xlab.org>
13543 Monk Chiang <sh.chiang04@gmail.com>
13545 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13546 (nds32_expand_store_multiple): Move to ...
13547 (nds32_expand_movmemqi): Move to ...
13548 * config/nds32/nds32-memory-manipulation.c: ... here.
13550 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13551 Kito Cheng <kito@0xlab.org>
13552 Monk Chiang <sh.chiang04@gmail.com>
13554 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13555 (nds32_output_casesi_pc_relative): Move to ...
13556 (nds32_output_casesi): Move to ...
13557 (nds32_mem_format): Move to ...
13558 (nds32_output_16bit_store): Move to ...
13559 (nds32_output_16bit_load): Move to ...
13560 (nds32_output_32bit_store): Move to ...
13561 (nds32_output_32bit_load): Move to ...
13562 (nds32_output_32bit_load_s): Move to ...
13563 (nds32_output_stack_push): Move to ...
13564 (nds32_output_stack_pop): Move to ...
13565 * config/nds32/nds32-md-auxiliary.c: ... here.
13567 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13568 Ling-Hua Tseng <uranus@tinlans.org>
13570 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13571 the purpose of this file.
13573 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13574 Kito Cheng <kito@0xlab.org>
13575 Monk Chiang <sh.chiang04@gmail.com>
13577 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13578 (nds32_address_cost): Move implementation to ...
13579 * config/nds32/nds32-cost.c: ... here.
13580 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13581 (nds32_address_cost_impl): Declare.
13583 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13584 Kito Cheng <kito@0xlab.org>
13585 Monk Chiang <sh.chiang04@gmail.com>
13587 * config/nds32/nds32.c
13588 (nds32_consecutive_registers_load_store_p): Move to ...
13589 (nds32_valid_multiple_load_store): Move to ...
13590 (nds32_valid_stack_push_pop): Move to ...
13591 (nds32_can_use_bclr_p): Move to ...
13592 (nds32_can_use_bset_p): Move to ...
13593 (nds32_can_use_btgl_p): Move to ...
13594 (nds32_can_use_bitci_p): Move to ...
13595 * config/nds32/nds32-predicates.c: ... here.
13597 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13598 Kito Cheng <kito@0xlab.org>
13599 Monk Chiang <sh.chiang04@gmail.com>
13601 * config/nds32/nds32.c
13602 (nds32_expand_builtin_null_ftype_reg): Move to ...
13603 (nds32_expand_builtin_reg_ftype_imm): Move to ...
13604 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13605 (nds32_init_builtins): Move implementation to ...
13606 (nds32_expand_builtin): Move implementation to ...
13607 * config/nds32/nds32-intrinsic.c: ... here.
13608 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13609 (nds32_expand_builtin_impl): Declare.
13611 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13612 Kito Cheng <kito@0xlab.org>
13613 Monk Chiang <sh.chiang04@gmail.com>
13615 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13616 (nds32_emit_section_tail_template): Move to ...
13617 (nds32_emit_isr_jmptbl_section): Move to ...
13618 (nds32_emit_isr_vector_section): Move to ...
13619 (nds32_emit_isr_reset_conten): Move to ...
13620 (nds32_check_isr_attrs_conflict): Move to ...
13621 (nds32_construct_isr_vectors_information): Move to ...
13622 (nds32_asm_file_start): Move implementation to ...
13623 (nds32_asm_file_end): Move implementation to ...
13624 * config/nds32/nds32-isr.c: ... here.
13625 * config/nds32/nds32-protos.h
13626 (nds32_check_isr_attrs_conflict): Declare.
13627 (nds32_construct_isr_vectors_information): Declare.
13628 (nds32_asm_file_start_for_isr): Declare.
13629 (nds32_asm_file_end_for_isr): Declare.
13631 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13632 Kito Cheng <kito@0xlab.org>
13633 Monk Chiang <sh.chiang04@gmail.com>
13635 * config.gcc (nds32*): Add new modules to extra_objs.
13636 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13637 (nds32be-*-*): Likewise.
13638 * config/nds32/nds32-cost.c: New file.
13639 * config/nds32/nds32-fp-as-gp.c: New file.
13640 * config/nds32/nds32-intrinsic.c: New file.
13641 * config/nds32/nds32-isr.c: New file.
13642 * config/nds32/nds32-md-auxiliary.c: New file.
13643 * config/nds32/nds32-memory-manipulation.c: New file.
13644 * config/nds32/nds32-pipelines-auxiliary.c: New file.
13645 * config/nds32/nds32-predicates.c: New file.
13646 * config/nds32/t-nds32: New file.
13648 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13650 PR tree-optimization/61682
13651 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13652 using cases and when one of the operands is equal to 1.
13654 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
13656 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13657 ashr<mode>3): Correct mode of operands[2].
13658 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13659 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13660 Correct mode of operands[2]. Fix split condition.
13662 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
13664 * arm.md (arch): Add armv6_or_vfpv3.
13665 (arch_enabled): Add test for the above.
13666 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13668 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13670 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13672 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13673 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13674 HWI 1 and negate the unsigned value.
13675 * expmed.c (expand_sdiv_pow2): For modes wider than word always
13676 use AND instead of shift.
13677 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13679 2014-07-03 Marek Polacek <polacek@redhat.com>
13681 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13682 (-fsanitize=float-divide-by-zero): Move to the table with
13683 -fsanitize=undefined suboptions.
13684 (-fsanitize=float-cast-overflow): Likewise.
13686 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
13688 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13689 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13692 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13694 * loop-invariant.c (struct invariant): Add a new member: eqno;
13695 (find_identical_invariants): Update eqno;
13696 (create_new_invariant): Init eqno;
13697 (get_inv_cost): Compute comp_cost with eqno;
13699 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13701 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13702 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13703 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13704 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13705 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13707 2014-07-02 Christian Bruel <christian.bruel@st.com>
13711 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13712 (make_preds_opaque): Delete.
13713 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13714 (commit_mode_sets): New function.
13715 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13716 Process all modes at once.
13717 * basic-block.h (pre_edge_lcm_avs): Declare.
13718 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13719 Call clear_aux_for_edges. Fix comments.
13720 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13721 (pre_edge_rev_lcm): Idem.
13722 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13724 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13725 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13727 * config/i386/i386.c (x96_emit_mode_set): Idem.
13728 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13729 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
13730 (fpscr_toggle) Disallow from delay slot.
13731 * target.def (emit_mode_set): Add prev_mode parameter.
13732 * doc/tm.texi: Regenerate.
13734 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13736 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13739 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13741 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13742 vtable_pointer_value_to_vtable): Constify.
13743 (contains_polymorphic_type_p): Declare.
13744 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13745 vtable_pointer_value_to_vtable): Constify.
13746 (contains_polymorphic_type_p): New predicate.
13747 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13749 (ipa_set_ancestor_jf): Likewise.
13750 (detect_type_change): Return false in easy cases.
13751 (compute_complex_assign_jump_func): Require type to contain
13753 (compute_known_type_jump_func): Likewise.
13755 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13757 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13759 (type_in_anonymous_namespace_p): Constify argument.
13760 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13761 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13762 (main_odr_variant): New function.
13763 (hash_type_name): Make static; update assert; do not ICE on
13765 (types_same_for_odr): Bring here from tree.c; simplify and remove
13766 old structural comparing code that doesn't work for templates.
13767 (odr_hasher::equal): Update assert.
13768 (add_type_duplicate): Return true when bases should be computed;
13769 replace incomplete loader by complete; do not output duplicated
13770 warnings; do not ICE on non-records; set odr_violated flag.
13771 (get_odr_type): Be ready to replace incomplete type by complete
13772 one; work on ODR variants instead of main variants; reorder item
13773 in array so bases have still smaller indexes.
13774 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13775 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13777 2014-07-01 Cary Coutant <ccoutant@google.com>
13779 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13781 (resolve_addr_in_expr): When replacing the rtx in a location list
13782 entry, get a new address table entry.
13783 (dwarf2out_finish): Call index_location_lists even if there are no
13784 addr_index_table entries yet.
13786 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13788 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13789 change for not being obvious.
13791 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13793 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13796 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13798 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13799 (vcagt_f64): Likewise.
13800 (vcale_f64): Likewise.
13801 (vcaled_f64): Likewise.
13802 (vcales_f32): Likewise.
13803 (vcalt_f64): Likewise.
13804 (vcaltd_f64): Likewise.
13805 (vcalts_f32): Likewise.
13807 2014-07-01 Marek Polacek <polacek@redhat.com>
13809 * doc/invoke.texi: Document -Wint-conversion.
13811 2014-07-01 Marek Polacek <polacek@redhat.com>
13814 * doc/invoke.texi: Document -Wincompatible-pointer-types.
13816 2014-07-01 Martin Liska <mliska@suse.cz>
13818 IPA REF alias refactoring
13819 * cgraph.h (iterate_direct_aliases): New function.
13820 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13821 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13822 FOR_EACH_ALIAS added.
13823 (cgraph_for_node_and_aliases): Likewise.
13824 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13825 * ipa-inline.c (reset_edge_caches): Likewise.
13826 (update_caller_keys): Likewise.
13827 * trans-mem.c (ipa_tm_execute): Likewise.
13828 *varpool.c (varpool_analyze_node): Likewise.
13829 (varpool_for_node_and_aliases): Likewise.
13830 * ipa-ref.h (first_alias): New function.
13831 (last_alias): Likewise.
13832 (has_aliases_p): Likewise.
13833 * ipa-ref.c (ipa_ref::remove_reference): Removal function
13834 is sensitive to IPA_REF_ALIASes.
13835 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13836 are put at the beginning of the list.
13837 (symtab_node::iterate_direct_aliases): New function.
13839 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13842 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13844 (write_ts_type_common_tree_pointers): Do not stream fields not set
13845 for incomplete types; do not stream duplicated fields for variants;
13846 sanity check that variant and type match.
13847 (write_ts_type_non_common_tree_pointers): Likewise.
13848 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13849 TYPE_SIZE whether type is complete.
13850 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13851 write_ts_type_common_tree_pointers
13852 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13854 2014-06-30 Joseph Myers <joseph@codesourcery.com>
13856 * var-tracking.c (add_stores): Return instead of asserting if old
13857 and new values for conditional store are the same.
13859 2014-06-30 Richard Henderson <rth@redhat.com>
13863 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13864 the cfg if there were any changes.
13865 * passes.def: Revert move of peephole2 after reorder_blocks;
13866 move duplicate_computed_gotos before peephole2.
13868 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
13870 * except.c (emit_note_eh_region_end): New helper function.
13871 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13872 emit EH_REGION_END note.
13873 * jump.c (cleanup_barriers): Do not split a call and its
13874 corresponding CALL_ARG_LOCATION note.
13876 2014-06-30 Jeff Law <law@redhat.com>
13878 PR tree-optimization/61607
13879 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13880 deeper into the SSA_NAME_VALUE chain.
13882 2014-06-30 Marek Polacek <polacek@redhat.com>
13884 * convert.c (convert_to_integer): Don't instrument conversions if the
13885 function has no_sanitize_undefined attribute.
13886 * ubsan.c: Don't run the ubsan pass if the function has
13887 no_sanitize_undefined attribute.
13889 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13891 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13892 -fsanitize=undefined suboptions.
13894 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
13896 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13897 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13898 against bigendian and adjust indices.
13900 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13902 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
13904 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
13907 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
13908 Add alternative; make early clobber. Adjust both split patterns
13909 to use operand 0 as the working register.
13911 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13913 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
13914 as ira_object_id_map might be NULL, or 1.
13916 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13918 * loop-invariant.c (get_inv_cost): Handle register class.
13919 (gain_for_invariant): Check the register pressure of the inv
13920 and its overlapped register class, other than all.
13922 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13924 * doc/invoke.texi (Optimize Options): Fix descriptions of
13925 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13927 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13929 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13932 2014-06-29 Tobias Grosser <tobias@grosser.es>
13935 * graphite-isl-ast-to-gimple.c: Add missing guards.
13937 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13939 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13940 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13941 * flag-types.h: Add new enum fgraphite_generator.
13942 * graphite-isl-ast-to-gimple.c: New.
13943 * graphite-isl-ast-to-gimple.h: New.
13944 * graphite.c (graphite_transform_loops): Add choice of Graphite
13945 code generator, which depends on flag_graphite_code_gen.
13947 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13949 * graphite-dependences.c (subtract_commutative_associative_deps):
13950 Add NULL checking of the following variables: must_raw_no_source,
13951 may_raw_no_source, must_war_no_source, may_war_no_source,
13952 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13953 must_war, may_war, must_waw, may_waw.
13955 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13957 * graphite-clast-to-gimple.c: gloog is renamed to
13958 graphite_regenerate_ast_cloog. gloog_error is renamed to
13959 graphite_regenerate_error.
13960 * graphite-clast-to-gimple.h: The definition of the struct
13961 bb_pbb_def is moved to graphite-htab.h.
13962 Add inclusion of the hash-table.h.
13963 * graphite-htab.h: The declaration of the function gloog is moved
13964 to graphite-clast-to-gimple.h and renamed to
13965 graphite_regenerate_ast_cloog.
13966 * graphite.c (graphite_transform_loops): gloog is renamed
13967 to graphite_regenerate_ast_cloog.
13969 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13971 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13973 (write_ts_type_common_tree_pointers): Do not stream fields not set
13974 for incomplete types; do not stream duplicated fields for variants;
13975 sanity check that variant and type match.
13976 (write_ts_type_non_common_tree_pointers): Likewise.
13977 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13978 TYPE_SIZE whether type is complete.
13979 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13980 write_ts_type_common_tree_pointers
13981 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13983 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13985 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
13987 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13989 * tree-inline.c (remap_type_1): Do not duplicate fields
13990 that are shared in between type and its main variant.
13992 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13994 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
13996 (ipa_set_ancestor_jf) Likewise.
13997 (check_stmt_for_type_change): Check that we work on main variant.
13998 (detect_type_change): Look into main variant.
13999 (compute_known_type_jump_func): Check that main variant has BINFO.
14001 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14003 * ipa-devirt.c (set_type_binfo): New function.
14004 (add_type_duplicate): Use it.
14005 (get_odr_type): Sanity check that binfos points to main variants.
14006 (get_class_context): Be sure the context's outer_type is main variant.
14007 (contains_type_p): Walk main variant.
14008 (get_polymorphic_call_info_for_decl): Set outer_type to be
14010 (get_polymorphic_call_info): Likewise.
14011 (possible_polymorphic_call_targets): Sanity check that we operate
14014 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14016 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14018 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14020 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14021 accidental change due to wide-int branch merge.
14023 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14025 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14026 compressed debug support.
14027 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14028 * configure: Regenerate.
14029 * config.in: Regenerate.
14030 * common.opt (compressed_debug_sections): New enum.
14031 (gz, gz=): New options.
14032 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14033 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14034 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14035 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14036 LINK_COMPRESS_DEBUG_SPEC.
14037 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14038 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14039 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14040 (Debugging Options): Document -gz[=type].
14042 2014-06-27 Martin Jambor <mjambor@suse.cz>
14045 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14046 args_to_skip, use those from node instead. Copy args_to_skip and
14047 combined_args_to_skip from node to the new thunk.
14048 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14049 (cgraph_create_virtual_clone): Moved computation of
14050 combined_args_to_skip...
14051 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14053 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14055 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14056 redundant diagnostic machinary.
14058 2014-06-27 Richard Biener <rguenther@suse.de>
14060 * tree-ssa-math-opts.c (bswap_replace): Fix
14061 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14063 2014-06-27 Martin Liska <mliska@suse.cz>
14065 * gimple.h (gimple_location_safe): New function introduced.
14066 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14067 of gimple_location_safe replaces gimple_location.
14068 (gimple_fold_call): Likewise.
14069 * ipa-devirt.c (ipa_devirt): Likewise.
14070 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14071 * ipa.c (walk_polymorphic_call_targets): Likewise.
14072 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14074 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14076 PR tree-optimization/57233
14077 PR tree-optimization/61299
14078 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14080 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14081 would be lowered to scalar shifts, check if corresponding
14082 shifts and vector BIT_IOR_EXPR are supported and don't lower
14083 or lower just to narrower vector type in that case.
14084 * expmed.c (expand_shift_1): Fix up handling of vector
14085 shifts and rotates.
14087 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14090 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14092 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14094 * doc/invoke.texi (-fsemantic-interposition): Document.
14095 * common.opt (fsemantic-interposition): New flag.
14096 * varasm.c (decl_replaceable_p): Use it.
14098 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14101 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14102 extraction other than index 3.
14104 2014-06-26 Teresa Johnson <tejohnson@google.com>
14106 * doc/invoke.texi: Fix typo.
14107 * dumpfile.c: Add support for documented -fdump-* options
14108 optimized/missed/note/optall.
14110 2014-06-26 Martin Jambor <mjambor@suse.cz>
14112 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14113 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14114 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14115 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14116 * opts.c (default_options_optimization): Set
14117 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14118 * doc/invoke.texi (allow-load-data-races)
14119 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14120 (allow-store-data-races): Document the new default.
14122 2014-06-26 Martin Jambor <mjambor@suse.cz>
14124 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14125 renamed to ipa_impossible_devirt_target. Fix typo.
14126 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14127 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14128 ipa_impossible_devirt_target.
14130 2014-06-26 Richard Biener <rguenther@suse.de>
14132 PR tree-optimization/61607
14133 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14134 explaining why we restrict copies on loop depth.
14135 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14137 (record_equivalences_from_phis): Instead add it here.
14139 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14141 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14142 (LTO_WRAPPER_OBJS): New variable.
14143 (lto-wrapper$(exeext)): Use it.
14144 * collect2.c: Include "collect-utils.h".
14145 (verbose, debug): Remove variables.
14146 (at_file_supplied): No longer static.
14147 (tool_name): New variable.
14148 (do_wait, fork_execute, maybe_unlink): Don't declare.
14149 (tool_cleanup): No longer static.
14150 (notice): Remove function.
14151 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14152 fork_execute calls.
14153 (collect_wait, do_wait, collect_execute): Remove functions.
14154 (maybe_unlink): No longer static.
14155 * collect2.h (verbose, debug): Don't declare.
14156 (at_file_supplied): Declare.
14157 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14159 (collect_execute): Replace with implementation from collect2, plus a
14160 new arg use_atfile. All callers changed.
14161 (collect_wait): Replace with implementation from collect2.
14162 (maybe_unlink_file): Remove function.
14163 (fork_execute): Replace with implementation from collect2, plus a
14164 new arg use_atfile. All callers changed.
14165 (do_wait): Add call to utils_cleanup to the error path.
14166 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14167 (tool_cleanup): Adjust declarations.
14168 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14169 * tlink.c: Include "collect-utils.h".
14170 (tlink_execute): New arg use_atfile. All callers changed.
14171 (tlink_init, tlink_execute): Remove declarations.
14173 * collect-utils.c (save_temps): New variable.
14174 (do_wait): Use it instead of debug. Use fatal_error.
14175 * collect-utils.h (save_temps): Declare.
14176 * collect2.c (verbose): Rename from vflag. All uses changed.
14177 (tool_cleanup): New function, copied from collect_atexit.
14178 (collect_atexit, handler): Just call it.
14179 * collect2.h (verbose): Declaration renamed from vflag.
14180 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14183 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14184 (lto-wrapper$(exeext)): Link with collect-utils.o.
14185 * collect-utils.c: New file.
14186 * collect-utils.h: New file.
14187 * lto-wrapper.c: Include "collect-utils.h".
14188 (args_name): Delete variable.
14189 (tool_name): New variable.
14190 (tool_cleanup): New function.
14191 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14192 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14193 (fork_execute): Remove functions.
14195 2014-06-26 Nick Clifton <nickc@redhat.com>
14197 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14199 * doc/extend.texi (Function Attributes): Fix typo in description
14200 of RX vector attribute.
14202 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14204 * config.gcc (supported_defaults): Error when passing either
14205 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14207 2014-06-26 Richard Biener <rguenther@suse.de>
14209 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14210 propagating volatile pointers.
14212 2014-06-26 Richard Biener <rguenther@suse.de>
14214 PR tree-optimization/61607
14215 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14216 loop if we redirected its latch edge.
14217 (thread_block_1): Do not cancel loops prematurely.
14219 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14221 * toplev.c (backend_init_target): Move init_emit_regs and
14223 (backend_init) ... here; skip ira_init_once and backend_init_target.
14224 (target_reinit) ... and here; clear
14225 this_target_rtl->lang_dependent_initialized.
14226 (lang_dependent_init_target): Clear
14227 this_target_rtl->lang_dependent_initialized;
14228 break out rtl initialization to ...
14229 (initialize_rtl): ... here; call also backend_init_target
14231 * toplev.h (initialize_rtl): New function.
14232 * function.c: Include toplev.h
14233 (init_function_start): Call initialize_rtl.
14234 * rtl.h (target_rtl): Add target_specific_initialized,
14235 lang_dependent_initialized.
14237 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14238 Jakub Jelinek <jakub@redhat.com>
14240 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14242 2014-06-25 Tom de Vries <tom@codesourcery.com>
14244 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14246 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14248 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14249 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14250 Issue a strict overflow warning if appropriate.
14252 2014-06-25 Martin Liska <mliska@suse.cz>
14254 IPA REF refactoring
14255 * Makefile.in: Removed header file (ipa-ref-inline.h).
14256 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14258 (cgraph_speculative_call_info): Likewise.
14259 (cgraph_for_node_thunks_and_aliases): Likewise.
14260 (cgraph_for_node_and_aliases): Likewise.
14261 (verify_cgraph_node): Likewise.
14262 * cgraph.h: Batch of IPA REF functions become member functions of
14263 symtab_node: add_reference, maybe_add_reference, clone_references,
14264 clone_referring, clone_reference, find_reference,
14265 remove_stmt_references, remove_all_references,
14266 remove_all_referring, dump_references, dump_referring,
14267 has_alias_p, iterate_reference, iterate_referring.
14268 * cgraphbuild.c (record_reference): New IPA REF function used.
14269 (record_type_list): Likewise.
14270 (record_eh_tables): Likewise.
14271 (mark_address): Likewise.
14272 (mark_load): Likewise.
14273 (mark_store): Likewise.
14274 (pass_build_cgraph_edges): Likewise.
14275 (rebuild_cgraph_edge): Likewise.
14276 (cgraph_rebuild_references): Likewise.
14277 (pass_remove_cgraph_callee_edges): Likewise.
14278 * cgraphclones.c (cgraph_clone_node): Likewise.
14279 (cgraph_create_virtual_clone): Likewise.
14280 (cgraph_materialize_clone): Likewise.
14281 (cgraph_materialize_all_clones): Likewise.
14282 * cgraphunit.c (cgraph_reset_node): Likewise.
14283 (cgraph_reset_node): Likewise.
14284 (analyze_function): Likewise.
14285 (assemble_thunks_and_aliases): Likewise.
14286 (expand_function): Likewise.
14287 * ipa-comdats.c (propagate_comdat_group): Likewise.
14288 (enqueue_references): Likewise.
14289 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14290 (create_specialized_node): Likewise.
14291 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14292 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14293 * ipa-inline.c (reset_edge_caches): Likewise.
14294 (update_caller_keys): Likewise.
14295 (execute): Likewise.
14296 * ipa-prop.c (remove_described_reference): Likewise.
14297 (propagate_controlled_uses): Likewise.
14298 (ipa_edge_duplication_hook): Likewise.
14299 (ipa_modify_call_arguments): Likewise.
14300 * ipa-pure-const.c (propagate_pure_const): Likewise.
14301 * ipa-ref-inline.h: Header file removed, functions moved
14302 to symtab_node class.
14303 * ipa-ref.c (remove_reference): New class member function.
14304 (cannot_lead_to_return): New class member function.
14305 (referring_ref_list): Likewise.
14306 (referred_ref_list): Likewise.
14307 Rest of functions moved to symtab_node class.
14308 * ipa-ref.h: New member functions remove_reference,
14309 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14311 ipa_ref_list class has new member functions: first_reference,
14312 first_referring, clear, nreferences.
14313 * ipa-reference.c (analyze_function): New IPA REF function used.
14314 (write_node_summary_p): Likewise.
14315 (ipa_reference_write_optimization_summary): Likewise.
14316 * ipa-split.c (split_function): Likewise.
14317 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14318 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14319 (function_and_variable_visibility): Likewise.
14320 * ipa.c (has_addr_references_p): Likewise.
14321 (process_references): Argument type changed.
14322 (symtab_remove_unreachable_nodes): New IPA REF function used.
14323 (process_references): Likewise.
14324 (set_writeonly_bit): Likewise.
14325 * lto-cgraph.c: Implementation of new symtab_node member functions
14326 that uses new IPA REF functions.
14327 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14329 * lto-streamer-out.c (output_symbol_p): Likewise.
14330 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14332 * symtab.c: Implementation of new IPA REF API.
14333 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14334 (ipa_tm_create_version): Likewise.
14335 (ipa_tm_execute): Likewise.
14336 * tree-emutls.c (gen_emutls_addr): Likewise.
14337 * tree-inline.c (copy_bb): Likewise.
14338 (delete_unreachable_blocks_update_callgraph): Likewise.
14339 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14340 (varpool_for_node_and_aliases): Likewise.
14342 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14344 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14346 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14349 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14350 tree_node * instead of tree_node *.
14352 (print_fold_checksum): Likewise.
14353 (fold_check_failed): Likewise.
14354 (debug_fold_checksum): Likewise.
14355 (fold_build1_stat_loc): Likewise.
14356 (fold_build2_stat_loc): Likewise.
14357 (fold_build3_stat_loc): Likewise.
14358 (fold_build_call_array_loc): Likewise.
14360 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14362 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14363 implementation with call to...
14364 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14366 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14369 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14371 PR tree-optimization/57742
14372 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14373 after replacing the statement.
14375 2014-06-25 Nick Clifton <nickc@redhat.com>
14377 * config/v850/v850.c (GHS_default_section_names): Change to const
14379 (GHS_current_section_names): Likewise.
14380 (v850_insert_attributes): Do not build strings, just assign the
14381 names directly. Change the type of 'chosen_section' to const
14383 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14384 directly to the array entry.
14385 * config/v850/v850.h (GHS_default_section_names): Change to const
14387 (GHS_current_section_names): Likewise.
14389 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14391 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14392 (LANG_HOOKS_DECLS): Add it.
14393 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14395 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14396 * langhooks.h (struct lang_hooks_for_decls): Add
14397 omp_clause_linear_ctor hook.
14398 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14399 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14400 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14401 combined simd loop use omp_clause_linear_ctor hook.
14403 2014-06-24 Cong Hou <congh@google.com>
14405 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14406 pattern recognition.
14407 (type_conversion_p): PROMOTION is true if it's a type promotion
14408 conversion, and false otherwise. Return true if the given expression
14409 is a type conversion one.
14410 * tree-vectorizer.h: Adjust the number of patterns.
14411 * tree.def: Add SAD_EXPR.
14412 * optabs.def: Add sad_optab.
14413 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14414 * expr.c (expand_expr_real_2): Likewise.
14415 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14416 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14417 * optabs.c (optab_for_tree_code): Likewise.
14418 * tree-cfg.c (estimate_operator_cost): Likewise.
14419 * tree-ssa-operands.c (get_expr_operands): Likewise.
14420 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14421 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14422 * doc/generic.texi: Add document for SAD_EXPR.
14423 * doc/md.texi: Add document for ssad and usad.
14425 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14427 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14428 qualification in cast.
14430 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14432 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14433 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14434 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14435 (tree_function_decl): ... here.
14436 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14437 streaming of vindex to ...
14438 (write_ts_function_decl_tree_pointers): ... here.
14439 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14440 Do not stream DECL_VINDEX.
14441 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14443 2014-06-24 Catherine Moore <clm@codesourcery.com>
14444 Sandra Loosemore <sandra@codesourcery.com>
14446 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14447 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14448 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14450 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14452 * doc/invoke.texi (Warning Options): Remove duplicated
14453 -Wmaybe-uninitialized.
14455 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14457 PR tree-optimization/57742
14458 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14459 (handle_builtin_malloc, handle_builtin_memset): New functions.
14460 (strlen_optimize_stmt): Call them.
14461 * passes.def: Move strlen after loop+dom but before vrp.
14463 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14466 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14467 model family 6 CPU with has_longmode never use a CPU without
14470 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14473 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14476 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14478 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14479 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14481 * hash-map.h: New file.
14482 * ipa-comdats.c: Use hash_map instead of pointer_map.
14484 * lto-section-out.c: Adjust.
14485 * lto-streamer.h: Replace pointer_map with hash_map.
14486 * symtab.c (verify_symtab): Likewise.
14487 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14488 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14489 * tree-streamer.h: Likewise.
14490 * tree-streamer.c: Adjust.
14491 * pointer-set.h: Remove pointer_map.
14493 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14495 * hash-table.h: Add a template arg to choose between storing values
14496 and storing pointers to values, and then provide partial
14497 specializations for both.
14498 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14499 should store, not the type values should point to.
14500 * tree-into-ssa.c (var_info_hasher): Likewise.
14501 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14502 * tree-complex.c: Adjust.
14503 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14504 table instead of int_tree_map *.
14505 * tree-parloops.c: Adjust.
14506 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14507 type is being stored.
14508 * tree-vectorizer.c: Adjust.
14510 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14512 * hash-table.h: Remove a layer of indirection from hash_table so that
14513 it contains the hash table's data instead of a pointer to the data.
14514 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14515 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14516 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14517 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14518 fold-const.c, gcse.c, ggc-common.c,
14519 gimple-ssa-strength-reduction.c, gimplify.c,
14520 graphite-clast-to-gimple.c, graphite-dependences.c,
14521 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14522 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14523 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14524 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14525 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14526 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14527 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14528 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14529 tree-ssa-live.c, tree-ssa-loop-im.c,
14530 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14531 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14532 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14533 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14534 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14535 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14536 vtable-verify.c, vtable-verify.h: Adjust.
14538 2014-06-24 Richard Biener <rguenther@suse.de>
14540 PR tree-optimization/61572
14541 * tree-ssa-sink.c (statement_sink_location): Do not sink
14542 loads from hard registers.
14544 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14546 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14547 not mentioned in clauses use private clause if the iterator is
14548 declared in #pragma omp for simd, and when adding lastprivate
14549 instead, add it to the outer #pragma omp for too. Diagnose
14550 if the variable is private in outer context. For simd collapse > 1
14551 loops, replace all iterators with temporaries.
14552 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14553 same even in collapse > 1 loops.
14555 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14556 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14558 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14559 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14561 (gimplify_adjust_omp_clauses): Likewise.
14562 * omp-low.c (lower_rec_simd_input_clauses,
14563 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14564 safelen the same as safelen(1).
14565 * tree-nested.c (convert_nonlocal_omp_clauses,
14566 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14567 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14568 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14569 Fixup handling of GIMPLE_OMP_TARGET.
14570 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14573 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
14575 PR tree-optimization/61554
14576 * tree-ssa-propagate.c: Include "bitmap.h".
14577 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14578 properly update constructor/destructor.
14579 (substitute_and_fold_dom_walker::before_dom_children):
14580 Remove call to gimple_purge_dead_eh_edges, add bb->index to
14581 need_eh_cleaup instead.
14582 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14585 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14587 * varpool.c (dump_varpool_node): Dump used_by_single_function.
14588 * tree-pass.h (make_pass_ipa_single_use): New pass.
14589 * cgraph.h (used_by_single_function): New flag.
14590 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14592 * passes.def (pass_ipa_single_use): Scedule.
14593 * ipa.c (BOTTOM): New macro.
14594 (meet): New function
14595 (propagate_single_user): New function.
14596 (ipa_single_use): New function.
14597 (pass_data_ipa_single_use): New pass.
14598 (pass_ipa_single_use): New pass.
14599 (pass_ipa_single_use::gate): New gate.
14600 (make_pass_ipa_single_use): New function.
14602 2014-06-23 Kai Tietz <ktietz@redhat.com>
14605 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14606 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14608 2014-06-23 Richard Biener <rguenther@suse.de>
14610 * tree-ssa-loop.c (gate_loop): New function.
14611 (pass_tree_loop::gate): Call it.
14612 (pass_data_tree_no_loop, pass_tree_no_loop,
14613 make_pass_tree_no_loop): New.
14614 * tree-vectorizer.c: Include tree-scalar-evolution.c
14615 (pass_slp_vectorize::execute): Initialize loops and SCEV if
14617 (pass_slp_vectorize::clone): New method.
14618 * timevar.def (TV_TREE_NOLOOP): New.
14619 * tree-pass.h (make_pass_tree_no_loop): Declare.
14620 * passes.def (pass_tree_no_loop): New pass group with
14623 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
14626 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14627 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14629 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14631 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14632 "yes" where needed.
14634 2014-06-23 Alan Modra <amodra@gmail.com>
14637 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14638 to zero on debug statements.
14640 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14643 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14644 Ignore third operand if present by marking qualifier_internal.
14646 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14648 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14650 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14651 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14652 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14653 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14654 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14655 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14656 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14657 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14658 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14659 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14660 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14661 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14662 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14663 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14664 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14665 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14666 logic in GCC vector extensions
14668 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14669 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14670 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14671 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14672 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14673 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14674 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14675 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14676 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14677 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14679 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14681 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14684 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14685 (vget_low_s64): Use __GET_LOW macro.
14686 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14687 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14688 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14689 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14690 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14692 (vcombine_s64): Use GCC vector extensions; remove cast.
14693 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14694 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14695 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14696 Fix type signature; remove cast.
14698 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14701 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14703 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14705 (BUILTIN_VD1): New.
14706 (BUILTIN_VD_RE): Remove.
14707 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14708 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14709 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14710 variant but not df.
14711 (vreinterpretv1df*, vreinterpret*v1df): New.
14712 (vreinterpretdf*, vreinterpret*df): Remove.
14713 * config/aarch64/aarch64-simd.md (aarch64_create,
14714 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14715 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14717 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14718 (vcreate_f64): Remove cast, use v1df builtin.
14719 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14720 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14721 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14722 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14723 vmov_n_f64, vst1_f64): Use gcc vector extensions.
14724 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14725 add range check using __builtin_aarch64_im_lane_boundsi.
14726 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14727 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14728 type signature, use gcc vector extensions.
14729 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14730 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14731 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14732 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14733 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14734 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14735 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14736 vreinterpret_u64_f64): Use v1df builtin not df.
14738 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14740 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14743 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14745 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14748 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14750 * loop-invariant.c (pre_check_invariant_p): New function.
14751 (find_invariant_insn): Call pre_check_invariant_p.
14753 2014-06-22 Richard Henderson <rth@redhat.com>
14756 * compare-elim.c (struct comparison): Add eh_note.
14757 (find_comparison_dom_walker::before_dom_children): Don't eliminate
14758 a redundant comparison in a different EH region. Purge EH edges if
14761 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14763 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14764 (var_shift): Use it.
14765 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14766 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14767 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14768 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14769 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14770 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14771 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14772 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14773 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14774 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14775 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14776 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14777 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14778 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14779 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14780 *rotldi3_internal15be): Use the new attribute. Merge register and
14781 integer alternatives.
14783 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14785 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14786 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14787 split, *ashrdi3_internal3 and split): Delete, merge into...
14788 (ashr<mode>3): New expander.
14789 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14790 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
14792 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14794 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14795 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14796 *rotldi3_internal3 and split): Delete, merge into...
14797 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14798 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
14799 Use "rotlw" extended mnemonic.
14801 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14803 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14804 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14805 and split, *ashldi3_internal3 and split): Delete, merge into...
14806 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14807 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
14809 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14811 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14812 (lshrsi3, two anonymous define_insns and define_splits,
14813 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14814 *lshrdi3_internal3 and split): Delete, merge into...
14815 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14816 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
14818 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14820 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14821 Remove "O" alternative.
14823 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
14825 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14826 (mips_move_from_gpr_cost): Likewise.
14827 (mips_register_move_cost): Update accordingly.
14828 (mips_secondary_reload_class): Remove name of in_p.
14830 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
14833 * config/i386/i386.md (x86_64_shrd, x86_shrd,
14834 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14836 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14838 * config/nios2/nios2.c: Include "builtins.h".
14840 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14842 * cgraph.h (tls_model_names): New variable.
14843 * print-tree.c (print_node): Simplify.
14844 * varpool.c (tls_model_names): New variable.
14845 (dump_varpool_node): Output tls model.
14847 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14849 * ipa-visibility.c (function_and_variable_visibility): Disable
14850 temporarily local aliases for some targets.
14852 2014-06-20 Marek Polacek <polacek@redhat.com>
14854 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14855 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14856 into SANITIZE_UNDEFINED.
14857 * doc/invoke.texi: Describe -fsanitize=bounds.
14858 * gimplify.c (gimplify_call_expr): Add gimplification of internal
14859 functions created in the FEs.
14860 * internal-fn.c: Move "internal-fn.h" after "tree.h".
14861 (expand_UBSAN_BOUNDS): New function.
14862 * internal-fn.def (UBSAN_BOUNDS): New internal function.
14863 * internal-fn.h: Don't define internal functions here.
14864 * opts.c (common_handle_option): Add -fsanitize=bounds.
14865 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14866 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14867 * tree-core.h: Define internal functions here.
14868 (struct tree_base): Add ifn field.
14869 * tree-pretty-print.c: Include "internal-fn.h".
14870 (dump_generic_node): Handle functions without CALL_EXPR_FN.
14871 * tree.c (get_callee_fndecl): Likewise.
14872 (build_call_expr_internal_loc): New function.
14873 * tree.def (CALL_EXPR): Update description.
14874 * tree.h (CALL_EXPR_IFN): Define.
14875 (build_call_expr_internal_loc): Declare.
14876 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14878 (ubsan_type_descriptor): Change bool parameter to enum
14879 ubsan_print_style. Adjust the code. Add handling of
14881 (ubsan_expand_bounds_ifn): New function.
14882 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14883 (ubsan_build_overflow_builtin): Likewise.
14884 (instrument_bool_enum_load): Likewise.
14885 (ubsan_instrument_float_cast): Likewise.
14886 * ubsan.h (enum ubsan_print_style): New enum.
14887 (ubsan_expand_bounds_ifn): Declare.
14888 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
14890 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
14892 * config/rs6000/rs6000.md: Append `DONE' to preparation
14893 statements of `bswap' pattern splitters.
14895 2014-06-20 Tom de Vries <tom@codesourcery.com>
14897 * target.def (call_fusage_contains_non_callee_clobbers): Update
14899 * doc/tm.texi: Regenerate.
14901 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14902 Max Ostapenko <m.ostapenko@partner.samsung.com>
14905 * asan.c (instrument_strlen_call): Fixed instrumentation of
14908 2014-06-20 Martin Jambor <mjambor@suse.cz>
14911 * ipa-prop.c (impossible_devirt_target): New function.
14912 (try_make_edge_direct_virtual_call): Use it, also instead of
14915 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14916 Max Ostapenko <m.ostapenko@partner.samsung.com>
14919 * asan.c (build_check_stmt): Add condition.
14921 2014-06-20 Martin Jambor <mjambor@suse.cz>
14924 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14927 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14929 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14931 (VCONQ): Make comment more helpful.
14933 * config/aarch64/aarch64-simd.md
14934 (aarch64_sqdmulh_lane<mode>):
14935 Use VCOND for operands 2. Update lane checking and flipping logic.
14936 (aarch64_sqrdmulh_lane<mode>): Likewise.
14937 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14938 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14939 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14940 attribute of operand 3 to VCOND.
14941 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14942 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14943 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14944 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14945 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14946 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14948 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14949 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14950 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14951 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14952 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14953 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14954 operand to VCOND. Update lane flipping and bounds checking logic.
14955 (aarch64_sqdmlal2_lane<mode>): Likewise.
14956 (aarch64_sqdmlsl_lane<mode>): Likewise.
14957 (aarch64_sqdmull_lane<mode>): Likewise.
14958 (aarch64_sqdmull2_lane<mode>): Likewise.
14959 (aarch64_sqdmlal_laneq<mode>):
14960 Replace VCON usage with VCONQ.
14961 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14962 (aarch64_sqdmlal2_laneq<mode>): Emit
14963 aarch64_sqdmlal2_laneq<mode>_internal insn.
14964 Replace VCON with VCONQ.
14965 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
14966 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14967 (aarch64_sqdmull_laneq<mode>): Emit
14968 aarch64_sqdmull_laneq<mode>_internal insn.
14969 Replace VCON with VCONQ.
14970 (aarch64_sqdmull2_laneq<mode>): Emit
14971 aarch64_sqdmull2_laneq<mode>_internal insn.
14972 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
14973 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
14974 of 3rd argument to int16x4_t.
14975 (vqdmlalh_lane_s16): Likewise.
14976 (vqdmlslh_lane_s16): Likewise.
14977 (vqdmull_high_lane_s16): Likewise.
14978 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
14979 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
14980 (vqdmlsl_lane_s16): Likewise.
14981 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
14982 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
14983 (vqdmlals_lane_s32): Likewise.
14984 (vqdmlsls_lane_s32): Likewise.
14985 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
14986 (vqdmulls_lane_s32): Likewise.
14987 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
14988 (vqdmlsl_lane_s32): Likewise.
14989 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
14990 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
14991 (vqrdmulhh_lane_s16): Likewise.
14992 (vqdmlsl_high_lane_s16): Likewise.
14993 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
14994 (vqdmlsl_high_lane_s32): Likewise.
14995 (vqrdmulhs_lane_s32): Likewise.
14997 2014-06-20 Tom de Vries <tom@codesourcery.com>
14999 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15000 get_call_reg_set_usage.
15002 2014-06-20 Tom de Vries <tom@codesourcery.com>
15004 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15005 it contains all call_used_regs.
15007 2014-06-20 Tom de Vries <tom@codesourcery.com>
15009 * final.c (collect_fn_hard_reg_usage): Add and use variable
15010 function_used_regs.
15012 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15014 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15015 (set_init_priority, get_init_priority, set_fini_priority,
15016 get_fini_priority): New methods.
15017 * tree.c (init_priority_for_decl): Remove.
15018 (init_ttree): Do not initialize init priority.
15019 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15020 (decl_priority_info): Remove.
15021 (decl_init_priority_insert): Rewrite.
15022 (decl_fini_priority_insert): Rewrite.
15023 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15024 tree_priority_map_marked_p): Remove.
15025 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15026 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15027 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15028 not output priorities.
15029 (pack_ts_function_decl_value_fields): Likewise.
15030 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15031 not input priorities.
15032 (unpack_ts_function_decl_value_fields): Likewise.
15033 * symtab.c (symbol_priority_map): Declare.
15034 (init_priority_hash): Declare.
15035 (symtab_unregister_node): Unregister from priority hash, too.
15036 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15038 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15039 (symbol_priority_info): New function.
15040 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15042 * tree-core.h (tree_priority_map): Remove.
15044 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15046 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15047 0xff to uint64_t before shifting it up.
15049 2014-06-20 Julian Brown <julian@codesourcery.com>
15050 Chung-Lin Tang <cltang@codesourcery.com>
15052 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15053 TARGET_THUMB1_ONLY. Add comments.
15055 2014-06-19 Tom de Vries <tom@codesourcery.com>
15057 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15058 return type to void.
15059 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15061 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15063 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15064 as "move", from depends_on.
15066 2014-06-19 Terry Guo <terry.guo@arm.com>
15068 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15071 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15073 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15075 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15077 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15080 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15081 addresses here if reload in progress or completed.
15083 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15085 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15086 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15087 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15088 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15089 (mips_register_priority): New function that implements the target
15090 hook TARGET_REGISTER_PRIORITY.
15091 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15092 (mips_lra_p): Likewise for TARGET_LRA_P.
15093 (TARGET_REGISTER_PRIORITY): Define macro.
15094 (TARGET_SPILL_CLASS): Likewise.
15095 (TARGET_LRA_P): Likewise.
15096 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15098 (REG_CLASS_NAMES): Likewise.
15099 (REG_CLASS_CONTENTS): Likewise.
15100 (BASE_REG_CLASS): Use M16_SP_REGS.
15101 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15102 New set attribute to enable alternatives depending on the register
15104 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15105 (*lea64): Disable pattern for MIPS16.
15106 * config/mips/mips.opt (mlra): New option.
15108 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15110 * lra-constraints.c (base_to_reg): New function.
15111 (process_address): Use new function.
15113 2014-06-18 Tom de Vries <tom@codesourcery.com>
15115 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15116 * config/aarch64/aarch64.c
15117 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15118 (aarch64_emit_call_insn): New function.
15119 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15121 * config/aarch64/aarch64.md (define_expand "call_internal")
15122 (define_expand "call_value_internal", define_expand "sibcall_internal")
15123 (define_expand "sibcall_value_internal"): New.
15124 (define_expand "call", define_expand "call_value")
15125 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15126 expand variant and aarch64_emit_call_insn.
15128 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15129 Tom de Vries <tom@codesourcery.com>
15131 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15132 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15134 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15135 clobbers to CALL_INSN_FUNCTION_USAGE.
15136 (define_expand "sibcall_internal")
15137 (define_expand "sibcall_value_internal"): New.
15138 (define_expand "call", define_expand "call_value"): Add argument to
15139 arm_emit_call_insn.
15140 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15141 (define_expand "sibcall_value"): Use sibcall_value_internal and
15142 arm_emit_call_insn.
15144 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15146 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15148 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15150 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15153 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15155 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15156 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15157 annotations. Fix DWARF information.
15159 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15161 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15162 __udivmoddi4, and fixups for negative operands.
15164 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15166 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15168 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15170 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15173 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15175 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15178 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15180 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15181 describing register usage on function entry and exit.
15183 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15185 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15186 (__aeabi_ldivmod): Fix whitespace.
15188 2014-06-18 Andreas Schwab <schwab@suse.de>
15190 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15191 Remove blank line after @item.
15193 2014-06-18 Richard Henderson <rth@redhat.com>
15196 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15198 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15200 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15201 POST_MODIFY for neon loads and stores.
15202 (arm_print_operand): Output post-index register for neon loads and
15205 2014-06-18 Richard Biener <rguenther@suse.de>
15207 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15209 2014-06-18 Richard Biener <rguenther@suse.de>
15211 * tree-pass.h (make_pass_dce_loop): Remove.
15212 * passes.def: Replace pass_dce_loop with pass_dce.
15213 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15214 changed free niter estimates and reset the scev cache.
15215 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15216 make_pass_dce_loop): Remove.
15217 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15218 (fini_copy_prop): Return whether something changed. Always
15219 let substitute_and_fold perform DCE and free niter estimates
15220 and reset the scev cache if so.
15221 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15222 (pass_data_copy_prop): Do not unconditionally schedule
15223 cleanup-cfg or update-ssa.
15225 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15227 PR tree-optimization/61518
15228 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15229 reduction var is used in reduction stmt or phi-function only.
15231 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15233 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15235 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15237 PR tree-optimization/61517
15238 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15239 whose rhs's first tree is the source expression instead of the
15241 (find_bswap_or_nop): Likewise.
15242 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15243 gimple stmt whose rhs's first tree is the source. In the memory source
15244 case, move the stmt to be replaced close to one of the original load to
15245 avoid the problem of a store between the load and the stmt's original
15247 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15250 2014-06-18 Andreas Schwab <schwab@suse.de>
15252 PR rtl-optimization/54555
15253 * postreload.c (move2add_use_add2_insn): Substitute
15254 STRICT_LOW_PART only if it is cheaper.
15256 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15258 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15259 Do not use unspec as call operand. Use memory_operand instead of
15260 memory_nox32_operand and add "m" operand constraint. Disable
15261 pattern for TARGET_X32.
15262 (*sibcall_pop_memory): Ditto.
15263 (*sibcall_value_memory): Ditto.
15264 (*sibcall_value_pop_memory): Ditto.
15265 (sibcall peepholes): Merge SImode and DImode patterns using
15266 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15267 Disable pattern for TARGET_X32. Check if eliminated register is
15268 really dead after call insn. Generate call RTX without unspec operand.
15269 (sibcall_value peepholes): Ditto.
15270 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15271 instead of memory_nox32_operand. Check if eliminated register is
15272 really dead after call insn. Generate call RTX without unspec operand.
15273 (sibcall_value_pop peepholes): Ditto.
15274 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15276 2014-06-18 Terry Guo <terry.guo@arm.com>
15279 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15282 2014-06-18 Olivier Hainque <hainque@adacore.com>
15284 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15285 memorization of the end of block source location.
15286 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15287 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15288 end source location info we have on the block entry/exit code we
15291 2014-06-18 Richard Biener <rguenther@suse.de>
15293 * common.opt (fssa-phiopt): New option.
15294 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15296 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15297 * doc/invoke.texi (-fssa-phiopt): Document.
15299 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15301 * genattrtab.c (n_bypassed): New variable.
15302 (process_bypasses): Initialise n_bypassed.
15303 Count number of bypassed reservations.
15304 (make_automaton_attrs): Allocate space for bypassed reservations
15305 rather than number of bypasses.
15307 2014-06-18 Richard Biener <rguenther@suse.de>
15309 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15310 we propagated anything.
15311 (substitute_and_fold_dom_walker::before_dom_children): Something
15312 changed if we propagated into PHI arguments.
15313 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15316 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15318 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15320 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15321 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15322 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15323 Introduces alternative way of loads group permutaions.
15324 (vect_transform_grouped_load): Try alternative way of permutations.
15326 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15328 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15329 changed in ORT_TARGET region, don't jump to do_outer.
15330 (struct gimplify_adjust_omp_clauses_data): New type.
15331 (gimplify_adjust_omp_clauses_1): Adjust for data being
15332 a struct gimplify_adjust_omp_clauses_data pointer instead
15333 of tree *. Pass pre_p as a new argument to
15334 lang_hooks.decls.omp_finish_clause hook.
15335 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15336 splay_tree_foreach to pass both list_p and pre_p.
15337 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15338 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15339 gimplify_adjust_omp_clauses callers.
15340 * langhooks.c (lhd_omp_finish_clause): New function.
15341 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15342 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15343 * langhooks.h (struct lang_hooks_for_decls): Add a new
15344 gimple_seq * argument to omp_finish_clause hook.
15345 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15346 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15347 (scan_omp_parallel, lower_omp_for): When adding
15348 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15349 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15350 * tree-nested.c (convert_nonlocal_omp_clauses,
15351 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15352 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15354 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15356 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15357 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15359 2014-06-17 Xinliang David Li <davidxl@google.com>
15361 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15362 * passes.c (pass_init_dump_file): Do not set initialize
15363 flag to false unconditionally.
15365 2014-06-17 Richard Biener <rguenther@suse.de>
15367 * genopinit.c (main): Use vec<>::qsort method.
15368 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15370 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15372 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15374 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15375 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15376 (mips_move_to_gpr_cost): Remove ST_REGS case.
15377 (mips_move_from_gpr_cost): Likewise.
15378 (mips_register_move_cost): Likewise.
15379 (mips_secondary_reload_class): Likewise.
15381 2014-06-17 Richard Biener <rguenther@suse.de>
15383 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15384 (pass_all_optimizations): Move 3rd copy-prop pass from after
15385 fre to before ifcombine/phiopt.
15387 2014-06-17 Richard Biener <rguenther@suse.de>
15389 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15390 and allow all blocks to be forwarders.
15392 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15395 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15396 variable 'size'; calculate 'size' right in the front; use
15397 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15398 pcum->aapcs_stack_words.
15400 2014-06-17 Nick Clifton <nickc@redhat.com>
15402 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15403 (umulhi3, mulsidi3, umulsidi3): Likewise.
15405 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15407 PR middle-end/61508
15408 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15409 check for section name.
15411 2014-06-17 Richard Biener <rguenther@suse.de>
15413 * tree-ssa-propagate.c: Include domwalk.h.
15414 (substitute_and_fold): Outline main worker into a domwalker ...
15415 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15416 Schedule stmts we can fully propagate for removal. Remove
15418 (substitute_and_fold): Apply a dominator walk to perform
15419 substitution. Process stmts scheduled for removal here.
15421 2014-06-17 Richard Biener <rguenther@suse.de>
15423 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15424 of PHI node moving.
15426 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15428 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15429 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15430 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15431 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15432 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15434 (get_fpscr) : Likewise.
15436 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15438 PR rtl-optimization/61325
15439 * lra-constraints.c (valid_address_p): Add forward declaration.
15440 (simplify_operand_subreg): Check address validity before and after
15441 alter_reg of memory subreg.
15443 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15445 * config/i386/i386.c (decide_alg): Correctly handle
15446 maximum size of stringop algorithm.
15448 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15450 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15452 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15454 PR rtl-optimization/61522
15455 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15457 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15460 * symtab.c (symtab_node::reset_section): New method.
15461 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15463 * cgraph.h (reset_section): Declare.
15464 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15465 do not consider comdat locals.
15466 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15468 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15469 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15470 reset sections of symbols dragged out of the comdats.
15471 (function_and_variable_visibility): Reset sections of
15474 2014-06-16 Richard Biener <rguenther@suse.de>
15476 PR tree-optimization/61482
15477 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15478 [-INF(OVF), +INF(OVF)] range.
15480 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15482 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15483 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15484 handling 32-bit multiplication.
15486 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15488 PR middle-end/61430
15489 * lra-lives.c (process_bb_lives): Skip creating copy during
15490 insn scan when src/dest has constrained to same regno.
15492 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15494 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15495 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15497 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15499 * asan.c (check_func): New function.
15500 (maybe_create_ssa_name): Likewise.
15501 (build_check_stmt_with_calls): Likewise.
15502 (use_calls_p): Likewise.
15503 (report_error_func): Change interface.
15504 (build_check_stmt): Allow non-integer lengths; add support
15506 (asan_instrument): Likewise.
15507 (instrument_mem_region_access): Moved code to build_check_stmt.
15508 (instrument_derefs): Likewise.
15509 (instrument_strlen_call): Likewise.
15510 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15511 * doc/invoke.texi: Describe new parameter.
15512 * params.def: Define new parameter.
15513 * params.h: Likewise.
15514 * sanitizer.def: Describe new builtins.
15516 2014-06-16 Richard Biener <rguenther@suse.de>
15518 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15519 Make all defs available at the end.
15520 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15522 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15525 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15527 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15530 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15531 initialization. Replace remaining use of uid.
15533 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15535 * c-family/c-common.c (handle_tls_model_attribute): Use
15536 set_decl_tls_model.
15537 * c-family/c-common.c (handle_tls_model_attribute): Use
15538 set_decl_tls_model.
15539 * cgraph.h (struct varpool_node): Add tls_model.
15540 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15541 * tree.h (DECL_TLS_MODEL): Update.
15542 (DECL_THREAD_LOCAL_P): Check that variable is static.
15543 (decl_tls_model): Declare.
15544 (set_decl_tls_model): Declare.
15545 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15546 set symbol prorperties.
15547 (get_emutls_init_templ_addr): Cleanup.
15548 (new_emutls_decl): Update.
15549 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15550 (lto_input_varpool_node): Likewise.
15551 * lto-streamer-out.c (hash_tree): Likewise.
15552 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15553 not stream DECL_TLS_MODEL.
15554 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15555 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15557 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15559 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15561 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15563 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15564 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15566 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15567 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15568 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15569 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15570 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15571 (df_get_artificial_defs, df_get_artificial_uses)
15572 (df_single_def, df_single_use): Update accordingly.
15573 (df_refs_chain_dump): Take the first element in a linked list as
15574 parameter, rather than a pointer to an array of pointers.
15575 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15576 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15577 (df_chain_create_bb_process_use): Likewise.
15578 (df_md_bb_local_compute_process_def): Likewise.
15579 * fwprop.c (process_defs, process_uses): Likewise.
15580 (register_active_defs, update_uses): Likewise.
15581 (forward_propagate_asm): Update for new df_ref linking.
15582 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15583 (df_null_ref_rec, df_null_mw_rec): Likewise.
15584 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15586 (df_scan_free_bb_info): Remove check for null artificial_defs.
15587 (df_install_ref_incremental): Adjust for new df_ref linking.
15588 Use a single-element insertion rather than a full sort.
15589 (df_ref_chain_delete_du_chain): Take the first element
15590 in a linked list as parameter, rather than a pointer to an array of
15592 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15593 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15594 (df_insn_info_delete): Remove check for null defs and call to
15595 df_scan_free_mws_vec.
15596 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15597 null rather than df_null_*_rec.
15598 (df_insn_rescan_debug_internal): Likewise, and update null
15599 checks in the same way. Remove check for null defs.
15600 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15601 Move a single element rather doing a full sort.
15602 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15604 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
15605 Initialize df_ref and df_mw_hardreg lists to null rather than
15607 (df_ref_compare): Take df_refs as parameter, transferring the
15608 old interface to...
15609 (df_ref_ptr_compare): ...this new function.
15610 (df_sort_and_compress_refs): Update accordingly.
15611 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15612 old interface to...
15613 (df_mw_ptr_compare): ...this new function.
15614 (df_sort_and_compress_mws): Update accordingly.
15615 (df_install_refs, df_install_mws): Return a linked list rather than
15616 an array of pointers.
15617 (df_refs_add_to_chains): Assert that old lists are empty rather
15619 (df_insn_refs_verify): Don't handle null defs speciailly.
15620 * web.c (union_match_dups): Update for new df_ref linking.
15622 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15624 * df.h (df_ref_create, df_ref_remove): Delete.
15625 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15626 (df_ref_remove): Likewise.
15628 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15630 * df.h (df_single_def, df_single_use): New functions.
15631 * ira.c (find_moveable_pseudos): Use them.
15633 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15635 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15636 * df-problems.c (df_note_bb_compute): Use it.
15637 * regstat.c (regstat_bb_compute_ri): Likewise.
15639 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15641 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15642 * cse.c (cse_extended_basic_block): Use them.
15643 * dce.c (mark_artificial_use): Likewise.
15644 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15645 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15646 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15647 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15648 (df_simulate_initialize_backwards): Likewise.
15649 (df_simulate_finalize_backwards): Likewise.
15650 (df_simulate_initialize_forwards): Likewise.
15651 (df_md_simulate_artificial_defs_at_top): Likewise.
15652 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15653 * regrename.c (init_rename_info): Likewise.
15654 * regstat.c (regstat_bb_compute_ri): Likewise.
15655 (regstat_bb_compute_calls_crossed): Likewise.
15657 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15659 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15660 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15661 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15662 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15663 * combine.c (create_log_links): Likewise.
15664 * compare-elim.c (find_flags_uses_in_insn): Likewise.
15665 (try_eliminate_compare): Likewise.
15666 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15667 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15668 (remove_reg_equal_equiv_notes_for_defs): Likewise.
15669 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15670 (word_dce_process_block, dce_process_block): Likewise.
15671 * ddg.c (def_has_ccmode_p): Likewise.
15672 * df-core.c (df_bb_regno_first_def_find): Likewise.
15673 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15674 * df-problems.c (df_rd_simulate_one_insn): Likewise.
15675 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15676 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15677 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15678 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15679 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15680 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15681 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15682 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15683 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15684 * fwprop.c (local_ref_killed_between_p): Likewise.
15685 (all_uses_available_at, free_load_extend): Likewise.
15686 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15687 * hw-doloop.c (scan_loop): Likewise.
15688 * ifcvt.c (dead_or_predicable): Likewise.
15689 * init-regs.c (initialize_uninitialized_regs): Likewise.
15690 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15691 (process_bb_node_lives): Likewise.
15692 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15693 (find_moveable_pseudos): Likewise.
15694 * loop-invariant.c (check_dependencies, record_uses): Likewise.
15695 * recog.c (peep2_find_free_register): Likewise.
15696 * ree.c (get_defs): Likewise.
15697 * regstat.c (regstat_bb_compute_ri): Likewise.
15698 (regstat_bb_compute_calls_crossed): Likewise.
15699 * sched-deps.c (find_inc, find_mem): Likewise.
15700 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15701 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15702 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15703 (prepare_shrink_wrap): Likewise.
15704 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15705 * web.c (union_defs, pass_web::execute): Likewise.
15706 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15707 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15709 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
15711 * lra-assign.c (assign_by_spills): Add code to assign vector regs
15712 to inheritance pseudos.
15713 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15715 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
15718 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15719 (BU_MISC_2): Rename to ...
15720 (BU_LDBL128_2): ... this.
15721 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15722 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15723 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15724 RS6000_BTM_LDBL128.
15725 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15726 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15727 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15728 (unpacktf_1): Likewise.
15729 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15730 (__builtin_longdouble_dw1): Likewise.
15731 * doc/sourcebuild.texi (longdouble128): Document.
15733 2014-06-13 Jeff Law <law@redhat.com>
15735 PR rtl-optimization/61094
15736 PR rtl-optimization/61446
15737 * ree.c (combine_reaching_defs): Get the mode for the copy from
15738 the extension insn rather than the defining insn.
15740 2014-06-13 Dehao Chen <dehao@google.com>
15742 * dwarf2out.c (add_linkage_name): Emit more linkage name.
15744 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
15746 * doc/install.texi (--enable-linker-plugin-configure-flags)
15747 (--enable-linker-plugin-flags): Document new flags.
15749 2014-06-13 Martin Jambor <mjambor@suse.cz>
15752 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15753 cache_token if returning early.
15755 2014-06-13 Nick Clifton <nickc@redhat.com>
15757 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15758 requested alignment is active.
15759 (LABEL_ALIGN): Likewise.
15760 (LOOP_ALIGN): Likewise.
15762 2014-06-13 Richard Biener <rguenther@suse.de>
15764 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15765 Rewrite to propagate the VN result into all uses where
15766 possible and to remove stmts becoming dead because of that.
15767 (eliminate): Generalize stmt removal handling, remove in
15768 reverse dominator order to support proper debug stmt
15769 generation. Update stmts before removing stmts.
15770 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15772 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15774 PR tree-optimization/61375
15775 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15776 symbolic number cannot be represented in an uint64_t.
15777 (find_bswap_or_nop_1): Likewise.
15779 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15781 * symtab.c (symtab_node::reset_section): New method.
15782 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15784 * cgraph.h (reset_section): Declare.
15785 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15786 do not consider comdat locals.
15787 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15789 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15790 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15791 reset sections of symbols dragged out of the comdats.
15792 (function_and_variable_visibility): Reset sections of
15795 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15797 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15798 to use symtab and decl_binds_to_current_def_p
15799 * tree-vectorizer.c (increase_alignment): Increase alignment
15800 of alias target, too.
15802 2014-06-12 Jakub Jelinek <jakub@redhat.com>
15804 PR middle-end/61486
15805 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15806 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15807 if outer combined construct is distribute.
15808 (gimplify_omp_for): For OMP_DISTRIBUTE set
15809 gimplify_omp_ctxp->distribute.
15810 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15811 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15812 mapping into decl map.
15814 2014-06-12 Jason Merrill <jason@redhat.com>
15816 * common.opt (fabi-version): Change default to 0.
15818 2014-06-12 Jason Merrill <jason@redhat.com>
15820 * toplev.c (process_options): Reject -fabi-version=1.
15822 2014-06-12 Jeff Law <law@redhat.com>
15824 PR tree-optimization/61009
15825 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15826 value when we stop processing a block due to problematic PHIs.
15828 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
15830 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15831 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15832 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15833 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15834 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15835 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15836 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15837 are not in the spec.
15839 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
15842 * config/aarch64/aarch64-modes.def: Add V1DFmode.
15843 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15846 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
15848 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15850 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
15853 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15854 loading from address spaces.
15856 2014-06-12 Martin Liska <mliska@suse.cz>
15859 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15860 statement is reachable.
15862 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15864 * symtab.c (section_hash): New hash.
15865 (symtab_unregister_node): Clear section before freeing.
15866 (hash_section_hash_entry): New haser.
15867 (eq_sections): New function.
15868 (symtab_node::set_section_for_node): New method.
15869 (set_section_1): Update.
15870 (symtab_node::set_section): Take string instead of tree as parameter.
15871 (symtab_resolve_alias): Update.
15872 * cgraph.h (section_hash_entry_d): New structure.
15873 (section_hash_entry): New typedef.
15874 (cgraph_node): Change comdat_group_ to x_comdat_group,
15875 change section_ to x_section and turn into section_hash_entry;
15876 update accestors; put set_section_for_node offline.
15877 * tree.c (decl_section_name): Turn into string.
15878 (set_decl_section_name): Change parameter to be string.
15879 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15880 * sdbout.c (sdbout_one_type): Update.
15881 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15882 * varasm.c (IN_NAMED_SECTION, get_named_section,
15883 resolve_unique_section, hot_function_section, get_named_text_section,
15884 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15885 make_decl_rtl, default_unique_section): Update.
15886 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15887 (c6x_elf_unique_section): Update.
15888 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15889 * config/pa/pa.c (pa_function_section): Update.
15890 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15891 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15892 * config/arc/arc.c (arc_in_small_data_p): Update.
15893 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15894 * config/mcore/mcore.c (mcore_unique_section): Update.
15895 * config/mips/mips.c (mips16_build_function_stub): Update.
15896 (mips16_build_call_stub): Update.
15897 (mips_function_rodata_section): Update.
15898 (mips_in_small_data_p): Update.
15899 * config/score/score.c (score_in_small_data_p): Update.
15900 * config/rx/rx.c (rx_in_small_data): Update.
15901 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15902 (rs6000_xcoff_asm_named_section): Update.
15903 (rs6000_xcoff_unique_section): Update.
15904 * config/frv/frv.c (frv_string_begins_with): Update.
15905 (frv_in_small_data_p): Update.
15906 * config/v850/v850.c (v850_encode_data_area): Update.
15907 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
15908 (bfin_handle_l1_data_attribute): Update.
15909 (bfin_handle_l2_attribute): Update.
15910 * config/mep/mep.c (mep_unique_section): Update.
15911 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
15913 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
15914 (h8300_handle_tiny_data_attribute): Update.
15915 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
15916 (m32r_in_small_data_p): Update.
15917 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
15918 * config/i386/i386.c (ix86_in_large_data_p): Update.
15919 * config/i386/winnt.c (i386_pe_unique_section): Update.
15920 * config/darwin.c (darwin_function_section): Update.
15921 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
15922 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15923 (new_emutls_decl): Update.
15924 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15925 input_varpool_node): Update.
15926 (ead_string_cst): Turn to ...
15927 (read_string): ... this one.
15928 * dwarf2out.c (secname_for_decl): Update.
15929 * asan.c (asan_protect_global): Update.
15931 2014-06-11 DJ Delorie <dj@redhat.com>
15933 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15935 * config/rx/rx.c (rx_option_override): Likewise.
15936 (rx_align_for_label): Likewise.
15938 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15940 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15942 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15945 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15947 * common.md: New file.
15948 * doc/md.texi: Update description of generic, machine-independent
15950 * config/s390/constraints.md (e): Delete.
15951 * Makefile.in (md_file): Include common.md.
15952 * config/m32c/t-m32c (md_file): Likewise.
15953 * genpreds.c (general_mem): New array.
15954 (generic_constraint_letters): Remove constraints now defined by
15956 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15957 Allow the first character to be '<' or '>' as well.
15958 * genoutput.c (general_mem): New array.
15959 (indep_constraints): Remove constraints now defined by common.md.
15960 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15961 Remove special handling of 'm'.
15962 * ira-costs.c (record_reg_classes): Remove special handling of
15963 constraints now defined by common.md.
15964 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15965 * ira-lives.c (single_reg_class): Likewise.
15966 (ira_implicitly_set_insn_hard_regs): Likewise.
15967 * lra-constraints.c (reg_class_from_constraints): Likewise.
15968 (process_alt_operands, process_address, curr_insn_transform): Likewise.
15969 * postreload.c (reload_cse_simplify_operands): Likewise.
15970 * reload.c (push_secondary_reload, scratch_reload_class)
15971 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15972 * reload1.c (maybe_fix_stack_asms): Likewise.
15973 * targhooks.c (default_secondary_reload): Likewise.
15974 * stmt.c (parse_output_constraint): Likewise.
15975 * recog.c (preprocess_constraints): Likewise.
15976 (constrain_operands, peep2_find_free_register): Likewise.
15977 (asm_operand_ok): Likewise, but add a comment saying why 'o'
15978 must be handled specially.
15980 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15982 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
15983 * genpreds.c (have_const_dbl_constraints): Delete.
15984 (add_constraint): Don't set it.
15985 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
15986 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
15987 constraints using the lookup_constraint logic.
15988 * ira-lives.c (single_reg_class): Likewise.
15989 * ira.c (ira_setup_alts): Likewise.
15990 * lra-constraints.c (process_alt_operands): Likewise.
15991 * recog.c (asm_operand_ok, constrain_operands): Likewise.
15992 * reload.c (find_reloads): Likewise.
15994 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15996 * genpreds.c (const_int_start, const_int_end): New variables.
15997 (choose_enum_order): Output CONST_INT constraints before memory
15999 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16001 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16002 * ira.c (ira_setup_alts): Likewise.
16003 * lra-constraints.c (process_alt_operands): Likewise.
16004 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16005 * reload.c (find_reloads): Likewise.
16007 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16009 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16010 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16011 * recog.c (preprocess_constraints): Update accordingly.
16013 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16015 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16016 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16017 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16018 * genpreds.c (print_type_tree): New function.
16019 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16020 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16021 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16022 Write out enum constraint_type and get_constraint_type.
16023 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16024 constraint_num rather than a constraint string.
16025 (satisfies_address_constraint_p): Likewise.
16026 (reg_class_from_constraints): Avoid old constraint macros.
16027 (process_alt_operands, process_address_1): Likewise.
16028 (curr_insn_transform): Likewise.
16029 * ira-costs.c (record_reg_classes): Likewise.
16030 (record_operand_costs): Likewise.
16031 * ira-lives.c (single_reg_class): Likewise.
16032 (ira_implicitly_set_insn_hard_regs): Likewise.
16033 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16034 * postreload.c (reload_cse_simplify_operands): Likewise.
16035 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16036 (constrain_operands, peep2_find_free_register): Likewise.
16037 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16038 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16039 * reload1.c (maybe_fix_stack_asms): Likewise.
16040 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16041 * targhooks.c (default_secondary_reload): Likewise.
16042 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16043 to EXTRA_CONSTRAINT_STR.
16044 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16046 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16048 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16049 (write_constraint_satisfied_p_array): ...this new function.
16050 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16052 (write_insn_preds_c): Update accordingly.
16054 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16056 * genpreds.c (write_lookup_constraint): Rename to...
16057 (write_lookup_constraint_1): ...this.
16058 (write_lookup_constraint_array): New function.
16059 (write_tm_preds_h): Define lookup_constraint as an inline function
16060 that uses write_lookup_constraint_array where possible.
16061 (write_insn_preds_c): Update for the changes above.
16063 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16065 * doc/md.texi (regclass_for_constraint): Rename to...
16066 (reg_class_for_constraint): ...this.
16067 * genpreds.c (num_constraints, enum_order, register_start)
16068 (register_end, satisfied_start, memory_start, memory_end)
16069 (address_start, address_end): New variables.
16070 (add_constraint): Count the number of constraints.
16071 (choose_enum_order): New function.
16072 (write_enum_constraint_num): Iterate over enum_order.
16073 (write_regclass_for_constraint): Rename to...
16074 (write_reg_class_for_constraint_1): ...this and update output
16076 (write_constraint_satisfied_p): Rename to...
16077 (write_constraint_satisfied_p_1): ...this and update output
16078 accordingly. Do nothing if all extra constraints are register
16080 (write_insn_extra_memory_constraint): Delete.
16081 (write_insn_extra_address_constraint): Delete.
16082 (write_range_function): New function.
16083 (write_tm_preds_h): Define constraint_satisfied_p and
16084 reg_class_for_constraint as inline functions that do a range check
16085 before calling the out-of-line function. Use write_range_function
16086 to implement insn_extra_{register,memory,address}_constraint,
16087 the first of which is new.
16088 (write_insn_preds_c): Update after above changes to write_* functions.
16089 (main): Call choose_enum_order.
16091 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16093 PR tree-optimization/61306
16094 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16095 expression instead of its size.
16096 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16097 false to prevent optimization when the result is unpredictable due to
16098 arithmetic right shift of signed type with highest byte is set.
16099 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16100 (init_symbolic_number): Likewise.
16101 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16102 when the result is unpredictable due to sign extension.
16104 2014-06-11 Terry Guo <terry.guo@arm.com>
16106 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16107 (*thumb1_addsi3): Ditto.
16108 (*thumb_subdi3): Ditto.
16109 (thumb1_subsi3_insn): Ditto.
16110 (*thumb_mulsi3): Ditto.
16111 (*thumb_mulsi3_v6): Ditto.
16112 (*thumb1_andsi3_insn): Ditto.
16113 (thumb1_bicsi3): Ditto.
16114 (*thumb1_iorsi3_insn): Ditto.
16115 (*thumb1_xorsi3_insn): Ditto.
16116 (*thumb1_ashlsi3): Ditto.
16117 (*thumb1_ashrsi3): Ditto.
16118 (*thumb1_lshrsi3): Ditto.
16119 (*thumb1_rotrsi3): Ditto.
16120 (*thumb1_negdi2): Ditto.
16121 (*thumb1_negsi2): Ditto.
16122 (*thumb1_abssi2): Ditto.
16123 (*thumb1_neg_abssi2): Ditto.
16124 (*thumb1_one_cmplsi2): Ditto.
16125 (*thumb1_zero_extendhisi2): Ditto.
16126 (*thumb1_zero_extendqisi2): Ditto.
16127 (*thumb1_zero_extendqisi2_v6): Ditto.
16128 (thumb1_extendhisi2): Ditto.
16129 (thumb1_extendqisi2): Ditto.
16130 (*thumb1_movdi_insn): Ditto.
16131 (*thumb1_movsi_insn): Ditto.
16132 (*thumb1_movhi_insn): Ditto.
16133 (thumb_movhi_clobber): Ditto.
16134 (*thumb1_movqi_insn): Ditto.
16135 (*thumb1_movhf): Ditto.
16136 (*thumb1_movsf_insn): Ditto.
16137 (*thumb_movdf_insn): Ditto.
16138 (movmem12b): Ditto.
16140 (cbranchqi4): Ditto.
16141 (cbranchsi4_insn): Ditto.
16142 (cbranchsi4_scratch): Ditto.
16143 (*negated_cbranchsi4): Ditto.
16144 (*tbit_cbranch): Ditto.
16145 (*tlobits_cbranch): Ditto.
16146 (*tstsi3_cbranch): Ditto.
16147 (*cbranchne_decr1): Ditto.
16148 (*addsi3_cbranch): Ditto.
16149 (*addsi3_cbranch_scratch): Ditto.
16150 (*thumb_cmpdi_zero): Ditto.
16151 (cstoresi_eq0_thumb1): Ditto.
16152 (cstoresi_ne0_thumb1): Ditto.
16153 (*cstoresi_eq0_thumb1_insn): Ditto.
16154 (*cstoresi_ne0_thumb1_insn): Ditto.
16155 (cstoresi_nltu_thumb1): Ditto.
16156 (cstoresi_ltu_thumb1): Ditto.
16157 (thumb1_addsi3_addgeu): Ditto.
16158 (*thumb_jump): Ditto.
16159 (*call_reg_thumb1_v5): Ditto.
16160 (*call_reg_thumb1): Ditto.
16161 (*call_value_reg_thumb1_v5): Ditto.
16162 (*call_value_reg_thumb1): Ditto.
16163 (*call_insn): Ditto.
16164 (*call_value_insn): Ditto.
16165 (thumb1_casesi_internal_pic): Ditto.
16166 (thumb1_casesi_dispatch): Ditto.
16167 (*thumb1_indirect_jump): Ditto.
16168 (prologue_thumb1_interwork): Ditto.
16169 (*epilogue_insns): Ditto.
16170 (consttable_1): Ditto.
16171 (consttable_2): Ditto.
16172 (tablejump): Ditto.
16173 (*thumb1_tablejump): Ditto.
16174 (thumb_eh_return): Ditto.
16175 (define_peephole2): Two of them are thumb1 only and got moved into
16176 new file thumb1.md.
16177 (define_split): Six of them are thumb1 only and got moved into new
16179 * config/arm/thumb1.md: New file comprised of above thumb1 only
16182 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16184 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16185 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16187 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16188 (aarch64_crc_builtin_datum): New struct.
16189 (aarch64_crc_builtin_data): New.
16190 (aarch64_init_crc32_builtins): New function.
16191 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16192 (aarch64_crc32_expand_builtin): New.
16193 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16194 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16195 __ARM_FEATURE_CRC32 when appropriate.
16196 (TARGET_CRC32): Define.
16197 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16198 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16199 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16200 (aarch64_<crc_variant>): New pattern.
16201 * config/aarch64/arm_acle.h: New file.
16202 * config/aarch64/iterators.md (CRC): New int iterator.
16203 (crc_variant, crc_mode): New int attributes.
16204 * doc/aarch64-acle-intrinsics.texi: New file.
16205 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16206 Include aarch64-acle-intrinsics.texi.
16208 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16210 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16211 check for stores group of length 3.
16212 (vect_permute_store_chain): New permutations for stores group of
16214 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16215 of vec_perm_shuffle for the new permutations.
16217 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16219 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16220 table rewriting temporarily on targets not supporting ONE_ONLY.
16222 2014-06-11 Richard Biener <rguenther@suse.de>
16224 PR middle-end/61437
16226 2014-06-04 Richard Biener <rguenther@suse.de>
16228 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16229 TREE_PUBLIC and DECL_EXTERNAL decls.
16231 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16233 * varasm.c (set_implicit_section): New function.
16234 (resolve_unique_section): Use it to set implicit section
16236 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16237 (default_function_section): Likewise.
16238 (decl_binds_to_current_def_p): Constify argument.
16239 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16240 * asan.c (asan_protect_global): Use
16241 symtab_get_node (decl)->implicit_section.
16242 * symtab.c (dump_symtab_base): Dump implicit sections.
16243 (verify_symtab_base): Verify sanity of sectoins and comdats.
16244 (symtab_resolve_alias): Alias share the section of its target.
16245 (set_section_1): New function.
16246 (symtab_node::set_section): Move here, recurse to aliases.
16247 (verify_symtab): Check for duplicated symtab lists.
16248 * tree-core.h (implicit_section_name_p): Remove.
16249 * tree-vect-data-refs.c: Include varasm.h.
16250 (vect_can_force_dr_alignment_p): Fix conditional on when
16251 decl bints to current definition; use
16252 symtab_get_node (decl)->implicit_section.
16253 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16254 * cgraph.h (struct symtab_node): Add implicit_section.
16255 (set_section): Rename to ...
16256 (set_section_for_node): ... this one.
16257 (set_section): Declare.
16258 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16259 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16260 input_overwrite_node, input_varpool_node): Stream implicit_section.
16261 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16262 removal; it will fail in LTO.
16264 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16266 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16267 Change second alternative type to f_mcr.
16268 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16269 and 12th alternatives' types to f_mcr and f_mrc.
16270 (*movdi_aarch64): Same for 12th and 13th alternatives.
16271 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16272 (aarch64_movtilow_tilow): Change type to fmov.
16274 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16276 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16277 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16279 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16281 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16283 (aarch64_sqrdmulh_lane<mode>): Likewise.
16284 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16285 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16286 (aarch64_sqdmulh_laneq<mode>): New expander.
16287 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16288 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16289 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16290 (aarch64_sqdmulh_lane<mode>): New expander.
16291 (aarch64_sqrdmulh_lane<mode>): Likewise.
16292 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16293 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16294 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16295 (aarch64_sqdmlal_laneq<mode>): Likewise.
16296 (aarch64_sqdmlsl_lane<mode>): Likewise.
16297 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16298 (aarch64_sqdmlal2_lane<mode>): Likewise.
16299 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16300 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16301 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16302 (aarch64_sqdmull_lane<mode>): Likewise.
16303 (aarch64_sqdmull_laneq<mode>): Likewise.
16304 (aarch64_sqdmull2_lane<mode>): Likewise.
16305 (aarch64_sqdmull2_laneq<mode>): Likewise.
16307 2014-06-10 Richard Biener <rguenther@suse.de>
16309 PR tree-optimization/61438
16310 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16311 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16312 insertion of IVs if running PRE.
16313 (eliminate): Adjust.
16314 (pass_pre::execute): Likewise.
16315 (pass_fre::execute): Likewise.
16317 2014-06-10 Richard Biener <rguenther@suse.de>
16319 PR middle-end/61456
16320 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16321 Do not use the main variant for the type comparison.
16322 (ncr_compar): Likewise.
16323 (nonoverlapping_component_refs_p): Likewise.
16325 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16327 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16328 REG_CFA_RESTORE mode.
16330 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16332 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16333 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16334 expand_vec_perm_pblendv.
16336 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16338 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16340 Simplify description of __crc32d and __crc32cd intrinsics.
16341 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16344 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16347 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16348 * config.in: Regenerate.
16349 * configure: Likewise.
16351 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16353 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16355 (intersect_static_var_sets): Remove.
16356 (propagate): Do not prune local statics.
16358 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16361 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16362 Set lastprivate_firstprivate even if omp_private_outer_ref
16363 langhook returns true.
16364 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16365 langhook, call unshare_expr on new_var and call
16366 build_outer_var_ref to get the last argument.
16368 2014-06-10 Marek Polacek <polacek@redhat.com>
16371 * doc/extend.texi: Add cindex for transparent_union.
16373 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16375 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16376 init_symbolic_number ().
16378 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16380 PR middle-end/61141
16381 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16382 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16383 (verify_rtl_sharing): Likewise.
16385 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16388 * tree.c (build_qualified_type): Use a canonical type for
16391 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16393 * config/arm/arm-modes.def: Remove XFmode.
16395 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16398 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16399 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16400 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16401 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16402 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16403 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16404 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16405 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16406 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16408 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16410 * tree-core.h (tree_decl_with_vis): Remove section_name.
16412 2014-06-09 Kito Cheng <kito@0xlab.org>
16414 * ira.c (ira): Don't call init_caller_save if LRA enabled
16415 since LRA use its own infrastructure to handle that.
16417 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16419 * symtab.c (dump_symtab_base): Update dumping.
16420 (symtab_make_decl_local): Clear only DECL_COMDAT.
16421 * tree-vect-data-refs.c (Check that variable is static before
16422 tampering with sections.
16423 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16424 (cgraph_create_virtual_clone): Likewise.
16425 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16426 (decl_section_name, set_decl_section_name): New accessors.
16427 (find_decls_types_r): Do not walk section name
16428 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16429 (decl_comdat_group, decl_comdat_group_id): Constify.
16430 (decl_section_name, set_decl_section_name): Update.
16431 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16432 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16433 (cgraph_make_node_local_1): Clear section and comdat group.
16434 * cgraph.h (set_comdat_group): Sanity check.
16435 (get_section, set_section): New.
16436 * ipa-comdats.c (ipa_comdats): Use get_section.
16437 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16438 * lto-streamer-out.c: Do not follow section names.
16439 * c-family/c-common.c (handle_section_attribute): Update.
16440 * lto-cgraph.c (lto_output_node): Output section.
16441 (lto_output_varpool_node): Likewise.
16442 (read_comdat_group): Rename to ...
16443 (read_identifier): ... this one.
16444 (read_string_cst): New function.
16445 (input_node, input_varpool_node): Input section names.
16446 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16447 (new_emutls_decl): Update.
16448 (secname_for_decl): Check section names only of static vars.
16449 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16450 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16451 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16452 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16453 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16454 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16455 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16456 * config/v850/v850.c (v850_insert_attributes): Likewise.
16457 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16459 (h8300_handle_tiny_data_attribute): Likewise.
16460 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16461 (bfin_handle_l2_attribute): Likewise.
16463 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16465 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16466 remove static initializer.
16468 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16470 * varasm.c (use_blocks_for_decl_p): Check symbol table
16471 instead of alias attribute.
16472 (place_block_symbol): Recurse on aliases.
16474 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16476 * ipa-visibility.c: Include varasm.h
16477 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16479 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16481 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16482 outputting aliases.
16484 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16486 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16487 from test_insn into GGC space escape via SET_SRC.
16489 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16491 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16492 call statement, if any.
16493 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16494 statements, if any. Tidy up.
16496 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16499 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16500 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16501 handles swapping the two 64-bit double words on little endian
16502 systems. Include V1TImode and optionally TImode in VSX_LE so that
16503 these types are properly swapped. Change all of the insns and
16504 splits that do the 64-bit swaps to use VSX_LE.
16505 (vsx_le_perm_load_<mode>): Likewise.
16506 (vsx_le_perm_store_<mode>): Likewise.
16507 (splitters for little endian memory operations): Likewise.
16508 (vsx_xxpermdi2_le_<mode>): Likewise.
16509 (vsx_lxvd2x2_le_<mode>): Likewise.
16510 (vsx_stxvd2x2_le_<mode>): Likewise.
16512 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16515 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16516 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16517 and corresponding splitters. Zero extend general register
16518 or memory input operand to XMM temporary. Enable for
16519 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16520 (floatunssi<mode>2): Update expander predicate.
16522 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16524 PR rtl-optimization/61325
16525 * lra-constraints.c (process_address_1): Check scale equal to one
16526 to prevent transformation: base + scale * index => base + new_reg.
16528 2014-06-06 Richard Biener <rguenther@suse.de>
16530 PR tree-optimization/59299
16531 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16533 (nearest_common_dominator_of_uses): Likewise.
16534 (statement_sink_location): Adjust. Support sinking loads.
16536 2014-06-06 Martin Jambor <mjambor@suse.cz>
16538 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16539 (build_agg_jump_func_from_list): Likewise.
16540 (determine_known_aggregate_parts): Renamed to
16541 determine_locally_known_aggregate_parts. Moved some functionality
16542 to the two functions above, removed bound checks.
16544 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16546 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16547 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16548 (aarch64_progress_pointer): Likewise.
16549 (aarch64_copy_one_part_and_move_pointers): Likewise.
16550 (aarch64_expand_movmen): Likewise.
16551 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16552 * config/aarch64/aarch64.md (movmem<mode>): New.
16554 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16556 * targhooks.c (default_add_stmt_cost): Call target specific
16557 hook instead of default one.
16559 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16561 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16562 endianness instead of host endianness.
16563 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16566 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16569 * function.c (instantiate_decls): Process the saved static chain.
16570 (expand_function_start): If not optimizing, save the static chain
16572 * tree-nested.c (convert_all_function_calls): Always create the static
16573 chain for nested functions if not optimizing.
16575 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16577 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16579 2014-06-06 Richard Biener <rguenther@suse.de>
16581 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16582 (construct_init_block): Likewise.
16583 (construct_exit_block): Likewise.
16584 (pass_expand::execute): Likewise.
16585 * graphite.c (graphite_transforms): Replace check for current_loops
16586 with a check for > 1 loops.
16587 (pass_graphite_transforms::execute): Adjust.
16588 * ipa-split.c (split_function): Remove check for current_loops.
16589 * omp-low.c (expand_parallel_call): Likewise.
16590 (expand_omp_for_init_counts): Likewise.
16591 (extract_omp_for_update_vars): Likewise.
16592 (expand_omp_for_generic): Likewise.
16593 (expand_omp_sections): Likewise.
16594 (expand_omp_target): Likewise.
16595 * tracer.c (tail_duplicate): Likewise.
16596 (pass_tracer::execute): Likewise.
16597 * trans-mem.c (expand_transaction): Likewise.
16598 * tree-complex.c (expand_complex_div_wide): Likewise.
16599 * tree-eh.c (lower_resx): Likewise.
16600 (cleanup_empty_eh_merge_phis): Likewise.
16601 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16602 current_loops with a check for > 1 loops.
16603 (pass_predcom::execute): Adjust.
16604 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16605 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16606 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16607 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16608 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16609 * tree-switch-conversion.c (process_switch): Likewise.
16610 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16611 * tree-vrp.c (vrp_visit_phi_node): Likewise.
16612 (execute_vrp): Likewise.
16613 * ubsan.c (ubsan_expand_null_ifn): Likewise.
16615 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16617 * rtl.h (insn_location): Declare.
16618 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16619 with UNKNOWN_LOCATION.
16620 * emit-rtl.c (insn_location): New function.
16621 * final.c (notice_source_line): Check that the instruction has a
16622 location before retrieving it and use insn_location.
16623 * modulo-sched.c (loop_single_full_bb_p): Likewise.
16624 * print-rtl.c (print_rtx): Likewise.
16626 2014-06-06 Richard Biener <rguenther@suse.de>
16628 * passes.def: Move 2nd VRP pass before phi-only-cprop.
16630 2014-06-06 Christian Bruel <christian.bruel@st.com>
16632 PR tree-optimization/43934
16633 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16636 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16638 * ira-lives.c (single_reg_class): Add missing break. Explicitly
16639 return NO_REGS for extra address and memory constraints. Handle
16640 operands that match (or are equivalent to something that matches)
16641 extra constant constraints. Ignore other non-register operands.
16643 2014-06-06 Alan Modra <amodra@gmail.com>
16646 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16647 * doc/tm.texi: Regenerate.
16648 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16649 Use throughout in place of REG_PARM_STACK_SPACE.
16650 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16651 "incoming" param. Pass to rs6000_function_parms_need_stack.
16652 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16653 prototype_p when incoming. Use function decl when incoming
16654 to handle K&R style functions.
16655 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16656 (INCOMING_REG_PARM_STACK_SPACE): Define.
16658 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16661 * cfgexpand.c (expand_debug_expr): Use address space of nested
16662 TREE_TYPE for ADDR_EXPR and MEM_REF.
16664 2014-06-05 Jeff Law <law@redhat.com>
16666 PR tree-optimization/61289
16667 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16668 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
16669 looking for those which match LHS. All callers changed.
16670 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16671 parameters and code which manipulated them. All callers changed.
16672 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16673 and DST_MAP parameters. Simplify invalidation code by just calling
16674 invalidate_equivalences. All callers changed.
16675 (thread_across_edge): Simplify now that we don't need to maintain
16676 the map of equivalences to invalidate.
16678 2014-06-05 Kai Tietz <ktietz@redhat.com>
16679 Richard Henderson <rth@redhat.com>
16682 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16683 checking for !TARGET_X32.
16684 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16685 (sibcall_intern): New define_insn, plus required peepholes.
16686 (sibcall_pop_intern): Likewise.
16687 (sibcall_value_intern): Likewise.
16688 (sibcall_value_pop_intern): Likewise.
16690 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
16692 * tree-inline.c (tree_function_versioning): Check DF info existence
16693 before accessing it.
16695 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16697 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16699 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16700 aarch64_frame hard_fp_offset and frame_size.
16701 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16702 frame_size; remove original_frame_size.
16703 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16704 (aarch64_initial_elimination_offset): Remove frame_size and
16705 offset. Use aarch64_frame frame_size.
16707 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16708 Jiong Wang <jiong.wang@arm.com>
16709 Renlin <renlin.li@arm.com>
16711 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16712 initialization of R30 offset. Update offset. Iterate core
16713 regisers upto X30. Remove X29, X30 specific code.
16715 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16716 Jiong Wang <jiong.wang@arm.com>
16718 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16719 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16720 (aarch64_register_saved_on_entry): Adjust test.
16722 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16724 * config/aarch64/aarch64.h (machine_function): Move
16725 saved_varargs_size from here...
16726 (aarch64_frame): ... to here.
16728 * config/aarch64/aarch64.c (aarch64_expand_prologue)
16729 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16730 (aarch64_initial_elimination_offset)
16731 (aarch64_setup_incoming_varargs): Adjust location of
16732 saved_varargs_size.
16734 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16736 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16739 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
16740 Prachi Godbole <Prachi.Godbole@imgtec.com>
16742 * config/mips/mips-cpus.def: Add definition for p5600. Updated
16743 mips32r5 entry to use PROCESSOR_P5600.
16744 * config/mips/mips-tables.opt: Regenerate.
16745 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16746 * config/mips/mips.c (mips_fmadd_bypass): New function.
16747 (mips_rtx_cost_data): Add costs for p5600.
16748 (mips_issue_rate): Add support for p5600.
16749 (mips_multipass_dfa_lookahead): Likewise.
16750 * config/mips/mips.h (TUNE_P5600): New define.
16751 (TUNE_MACC_CHAINS): Add TUNE_P5600.
16752 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16753 * config/mips/mips.md: Include p5600.md.
16754 (processor): Add p5600.
16755 * config/mips/p5600.md: New file.
16757 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
16759 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16760 * config/i386/predicates.md (palignr_operand): New.
16761 Indicates if permutation is suitable for palignr instruction.
16763 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
16765 PR tree-optimization/61319
16766 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16767 stmt belongs to loop.
16769 2014-06-05 Richard Biener <rguenther@suse.de>
16771 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16772 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16773 (lookup_tmp_var): Adjust.
16774 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16776 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16778 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16780 2014-06-05 Marek Polacek <polacek@redhat.com>
16783 * doc/invoke.texi: Document -Wlogical-not-parentheses.
16785 2014-06-04 Tom de Vries <tom@codesourcery.com>
16787 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16790 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
16792 PR tree-optimization/61385
16793 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16795 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
16797 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
16798 changed to use fatal_error.
16799 (main): Ensure lto_wrapper_cleanup is run atexit.
16801 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16803 * lra-constraints.c (valid_address_p): Move earlier in file.
16804 (address_eliminator): New structure.
16805 (satisfies_memory_constraint_p): New function.
16806 (satisfies_address_constraint_p): Likewise.
16807 (process_alt_operands, process_address, curr_insn_transform): Use them.
16809 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16811 * lra-int.h (lra_static_insn_data): Make operand_alternative a
16813 (target_lra_int, default_target_lra_int, this_target_lra_int)
16814 (op_alt_data): Delete.
16815 * lra.h (lra_init): Delete.
16816 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16817 (init_insn_code_data_once): Remove op_alt_data handling.
16818 (finish_insn_code_data_once): Likewise.
16819 (init_op_alt_data): Delete.
16820 (get_static_insn_data): Initialize operand_alternative to null.
16821 (free_insn_recog_data): Cast operand_alternative before freeing it.
16822 (setup_operand_alternative): Take the operand_alternative as
16823 parameter and assume it isn't already cached in the static
16825 (lra_set_insn_recog_data): Update accordingly.
16826 (lra_init): Delete.
16827 * ira.c (ira_init): Don't call lra_init.
16828 * target-globals.h (this_target_lra_int): Declare.
16829 (target_globals): Remove lra_int.
16830 (restore_target_globals): Update accordingly.
16831 * target-globals.c: Don't include lra-int.h.
16832 (default_target_globals, save_target_globals): Remove lra_int.
16834 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16836 * recog.h (operand_alternative): Convert reg_class, reject,
16837 matched and matches into bitfields.
16838 (preprocess_constraints): New overload.
16839 (preprocess_insn_constraints): New function.
16840 (preprocess_constraints): Take the insn as parameter.
16841 (recog_op_alt): Change into a pointer.
16842 (target_recog): Add x_op_alt.
16843 * recog.c (asm_op_alt): New variable.
16844 (recog_op_alt): Change into a pointer.
16845 (preprocess_constraints): New overload, replacing the old function
16846 definition with one that doesn't use global state.
16847 (preprocess_insn_constraints): New function.
16848 (preprocess_constraints): Use them. Take the insn as parameter.
16849 Use asm_op_alt for asms.
16850 (recog_init): Free existing x_op_alt entries.
16851 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16853 (make_early_clobber_and_input_conflicts): Likewise.
16854 (process_bb_node_lives): Pass the insn to process_constraints.
16855 * reg-stack.c (check_asm_stack_operands): Likewise.
16856 (subst_asm_stack_regs): Likewise.
16857 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16858 * regrename.c (build_def_use): Likewise.
16859 * sched-deps.c (sched_analyze_insn): Likewise.
16860 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16861 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16862 (note_invalid_constants): Likewise.
16863 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16864 (ix86_legitimate_combined_insn): Make operand_alternative pointer
16867 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16869 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16870 * ira-lives.c (check_and_make_def_conflict): Check for disabled
16872 (make_early_clobber_and_input_conflicts): Likewise.
16873 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16875 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16877 * recog.h (alternative_class): New function.
16878 (which_op_alt): Return a const recog_op_alt.
16879 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16880 (subst_asm_stack_regs): Likewise.
16881 * config/arm/arm.c (note_invalid_constants): Likewise.
16882 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
16883 the operand_alternative; use alternative class instead.
16884 * sel-sched.c (get_reg_class): Likewise.
16885 * regrename.c (build_def_use): Likewise.
16886 (hide_operands, restore_operands, record_out_operands): Update type
16889 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16891 * recog.h (recog_op_alt): Convert to a flat array.
16892 (which_op_alt): New function.
16893 * recog.c (recog_op_alt): Convert to a flat array.
16894 (preprocess_constraints): Update accordingly, grouping all
16895 operands of the same alternative together, rather than the
16897 * ira-lives.c (check_and_make_def_conflict): Likewise.
16898 (make_early_clobber_and_input_conflicts): Likewise.
16899 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16900 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16901 (subst_asm_stack_regs): Likewise.
16902 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16903 * regrename.c (hide_operands, record_out_operands): Likewise.
16904 (build_def_use): Likewise.
16905 * sel-sched.c (get_reg_class): Likewise.
16906 * config/arm/arm.c (note_invalid_constants): Likewise.
16908 2014-06-04 Jason Merrill <jason@redhat.com>
16912 * gimplify.c (gimplify_arg): Non-static.
16913 * gimplify.h: Declare it.
16915 2014-06-04 Richard Biener <rguenther@suse.de>
16917 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16918 TREE_PUBLIC and DECL_EXTERNAL decls.
16920 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
16922 * regcprop.c (copyprop_hardreg_forward_1): Account for
16923 HARD_REGNO_CALL_PART_CLOBBERED.
16925 2014-06-04 Richard Biener <rguenther@suse.de>
16927 * configure.ac: Check whether the underlying type of int64_t
16928 is long or long long.
16929 * configure: Regenerate.
16930 * config.in: Likewise.
16931 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16932 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16934 2014-06-04 Richard Biener <rguenther@suse.de>
16936 PR tree-optimization/60098
16937 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16939 (dse_optimize_stmt): Simplify, now that we found a kill
16942 2014-06-04 Richard Biener <rguenther@suse.de>
16944 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16945 of accesses with non-invariant address.
16947 2014-06-04 Martin Liska <mliska@suse.cz>
16949 * cgraph.h (cgraph_make_wrapper): New function introduced.
16950 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16951 * ipa-inline.h (inline_analyze_function): The function is global.
16952 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16954 2014-06-04 Martin Liska <mliska@suse.cz>
16956 * tree.h (private_lookup_attribute_starting): New function.
16957 (lookup_attribute_starting): Likewise.
16958 * tree.c (private_lookup_attribute_starting): Likewise.
16960 2014-06-04 Martin Liska <mliska@suse.cz>
16962 * cgraph.h (expand_thunk): New argument added.
16963 (address_taken_from_non_vtable_p): New global function.
16964 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
16965 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
16966 * cgraphunit.c (analyze_function): Likewise.
16967 (assemble_thunks_and_aliases): Argument added to call.
16968 (expand_thunk): New argument forces to produce GIMPLE thunk.
16970 2014-06-04 Martin Liska <mliska@suse.cz>
16972 * coverage.h (coverage_compute_cfg_checksum): Argument added.
16973 * coverage.c (coverage_compute_cfg_checksum): Likewise.
16974 * profile.c (branch_prob): Likewise.
16976 2014-06-04 Martin Jambor <mjambor@suse.cz>
16979 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
16980 handler for switch on an ipa_ref_use enum.
16981 * ipa-reference.c (analyze_function): Likewise.
16983 2014-06-04 Kai Tietz <ktietz@redhat.com>
16985 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
16986 from old call-instruction.
16988 2014-06-04 Bin Cheng <bin.cheng@arm.com>
16990 * config/aarch64/aarch64.c (aarch64_classify_address)
16991 (aarch64_legitimize_reload_address): Support full addressing modes
16993 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
16994 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
16996 2014-06-03 Andrew Pinski <apinski@cavium.com>
16998 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17001 2014-06-03 Andrew Pinski <apinski@cavium.com>
17003 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17004 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17006 2014-06-03 Kai Tietz <ktietz@redhat.com>
17008 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17011 2014-06-03 Dehao Chen <dehao@google.com>
17013 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17016 2014-06-03 Marek Polacek <polacek@redhat.com>
17019 * doc/invoke.texi: Document -Wswitch-bool.
17020 * function.c (stack_protect_epilogue): Cast controlling expression of
17022 * gengtype.c (walk_type): Generate switch expression with its
17023 controlling expression cast to int.
17025 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17027 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17029 * config/avr/avr-tables.opt: Regenerate.
17030 * config/avr/t-multilib: Regenerate.
17031 * doc/avr-mmcu.texi: Regenerate.
17033 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17034 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17036 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17037 (ata6617c, ata664251): Add new avr35 devices.
17038 (ata6612c): Add new avr4 device.
17039 (ata6613c, ata6614q): Add new avr5 devices.
17040 * config/avr/avr-tables.opt: Regenerate.
17041 * config/avr/t-multilib: Regenerate.
17042 * doc/avr-mmcu.texi: Regenerate.
17044 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17046 * gcc/config/aarch64/aarch64-builtins.c
17047 (aarch64_types_binop_ssu_qualifiers): New static data.
17048 (TYPES_BINOP_SSU): Define.
17049 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17050 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17051 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17052 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17053 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17054 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17055 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17056 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17057 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17058 suffix to builtin function name, remove cast.
17059 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17060 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17061 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17063 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17065 * gcc/config/aarch64/aarch64-builtins.c
17066 (aarch64_types_binop_uus_qualifiers,
17067 aarch64_types_shift_to_unsigned_qualifiers,
17068 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17069 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17070 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17071 sqshlu_n, uqshl_n): Update qualifiers.
17072 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17073 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17074 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17075 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17076 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17077 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17078 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17079 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17080 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17081 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17082 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17083 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17084 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17085 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17086 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17087 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17088 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17089 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17090 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17091 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17092 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17093 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17094 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17095 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17096 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17097 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17098 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17100 2014-06-03 Teresa Johnson <tejohnson@google.com>
17102 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17104 2014-06-02 Jason Merrill <jason@redhat.com>
17107 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17109 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17111 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17114 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17116 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17118 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17119 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17120 * config/aarch64/iterators.md (REVERSE): New iterator.
17121 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17122 (rev_op): New int_attribute.
17123 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17124 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17125 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17126 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17127 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17128 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17129 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17130 Replace temporary __asm__ with __builtin_shuffle.
17132 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17134 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17136 * config/mips/mips-tables.opt: Regenerate.
17137 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17138 to use mips_isa_rev rather than ISA_MIPS32R2.
17139 * config/mips/mips.h (ISA_MIPS32R3): New define.
17140 (ISA_MIPS32R5): New define.
17141 (ISA_MIPS64R3): New define.
17142 (ISA_MIPS64R5): New define.
17143 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17144 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17145 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17147 (MIPS_ISA_SYNCI_SPEC): Likewise.
17148 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17149 (LINK_SPEC): Added mips32r3 and mips32r5.
17150 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17151 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17152 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17153 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17154 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17155 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17156 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17158 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17160 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17162 * config/mips/mips.opt (mxpa): New option.
17163 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17166 2014-06-03 Martin Jambor <mjambor@suse.cz>
17169 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17172 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17174 PR tree-optimization/61328
17175 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17176 initialization from find_bswap_or_nop_1.
17177 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17178 in source_expr2 before using the size value the function sets. Also
17179 make use of init_symbolic_number () in both the old place and
17180 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17181 doing recursion in the GIMPLE_BINARY_RHS case.
17183 2014-06-03 Richard Biener <rguenther@suse.de>
17185 PR tree-optimization/61383
17186 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17189 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17191 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17192 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17193 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17194 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17196 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17197 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17198 * system.h: ...here and make it unconditional.
17199 * target.def (conditional_register_usage): Mention
17200 define_register_constraint instead of old-style constraint macros.
17201 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17202 * doc/tm.texi: Regenerate.
17203 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17204 protected by !USE_MD_CONSTRAINTS.
17205 * config/frv/frv.md: Remove quote from old version of documentation.
17206 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17207 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17208 CONST_DOUBLE_OK_FOR_LETTER.
17209 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17211 2014-06-02 Andrew Pinski <apinski@cavium.com>
17213 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17214 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17215 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17216 file whose name depends on -mabi= and -mbig-endian.
17217 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17218 Handle LP64 better and handle ilp32 too.
17219 (MULTILIB_OPTIONS): Delete.
17220 (MULTILIB_DIRNAMES): Delete.
17222 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17224 * expr.h: Remove prototypes of functions defined in builtins.c.
17225 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17226 Remove prototypes of functions defined in builtins.c.
17227 * builtins.h: Update prototype list to include all exported functions.
17228 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17229 no_c99_libc_has_function): Move to targhooks.c
17230 (build_string_literal, build_call_expr_loc_array,
17231 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17233 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17234 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17235 no_c99_libc_has_function): Relocate from builtins.c.
17236 * tree.c: Include builtins.h.
17237 (build_call_expr_loc_array, build_call_expr_loc_vec,
17238 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17240 * fold-const.h (fold_fma): Move prototype to builtins.h.
17241 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17242 * asan.c: Include builtins.h.
17243 * cfgexpand.c: Likewise.
17244 * convert.c: Likewise.
17245 * emit-rtl.c: Likewise.
17246 * except.c: Likewise.
17247 * expr.c: Likewise.
17248 * fold-const.c: Likewise.
17249 * gimple-fold.c: Likewise.
17250 * gimple-ssa-strength-reduction.c: Likewise.
17251 * gimplify.c: Likewise.
17252 * ipa-inline.c: Likewise.
17253 * ipa-prop.c: Likewise.
17254 * lto-streamer-out.c: Likewise.
17255 * stmt.c: Likewise.
17256 * tree-inline.c: Likewise.
17257 * tree-object-size.c: Likewise.
17258 * tree-sra.c: Likewise.
17259 * tree-ssa-ccp.c: Likewise.
17260 * tree-ssa-forwprop.c: Likewise.
17261 * tree-ssa-loop-ivcanon.c: Likewise.
17262 * tree-ssa-loop-ivopts.c: Likewise.
17263 * tree-ssa-math-opts.c: Likewise.
17264 * tree-ssa-reassoc.c: Likewise.
17265 * tree-ssa-threadedge.c: Likewise.
17266 * tree-streamer-in.c: Likewise.
17267 * tree-vect-data-refs.c: Likewise.
17268 * tree-vect-patterns.c: Likewise.
17269 * tree-vect-stmts.c: Likewise.
17270 * config/aarch64/aarch64.c: Likewise.
17271 * config/alpha/alpha.c: Likewise.
17272 * config/arc/arc.c: Likewise.
17273 * config/arm/arm.c: Likewise.
17274 * config/avr/avr.c: Likewise.
17275 * config/bfin/bfin.c: Likewise.
17276 * config/c6x/c6x.c: Likewise.
17277 * config/cr16/cr16.c: Likewise.
17278 * config/cris/cris.c: Likewise.
17279 * config/epiphany/epiphany.c: Likewise.
17280 * config/fr30/fr30.c: Likewise.
17281 * config/frv/frv.c: Likewise.
17282 * config/h8300/h8300.c: Likewise.
17283 * config/i386/i386.c: Likewise.
17284 * config/i386/winnt.c: Likewise.
17285 * config/ia64/ia64.c: Likewise.
17286 * config/iq2000/iq2000.c: Likewise.
17287 * config/lm32/lm32.c: Likewise.
17288 * config/m32c/m32c.c: Likewise.
17289 * config/m32r/m32r.c: Likewise.
17290 * config/m68k/m68k.c: Likewise.
17291 * config/mcore/mcore.c: Likewise.
17292 * config/mep/mep.c: Likewise.
17293 * config/microblaze/microblaze.c: Likewise.
17294 * config/mips/mips.c: Likewise.
17295 * config/mmix/mmix.c: Likewise.
17296 * config/mn10300/mn10300.c: Likewise.
17297 * config/moxie/moxie.c: Likewise.
17298 * config/msp430/msp430.c: Likewise.
17299 * config/nds32/nds32.c: Likewise.
17300 * config/pa/pa.c: Likewise.
17301 * config/pdp11/pdp11.c: Likewise.
17302 * config/picochip/picochip.c: Likewise.
17303 * config/rl78/rl78.c: Likewise.
17304 * config/rs6000/rs6000.c: Likewise.
17305 * config/rx/rx.c: Likewise.
17306 * config/s390/s390.c: Likewise.
17307 * config/score/score.c: Likewise.
17308 * config/sh/sh.c: Likewise.
17309 * config/sparc/sparc.c: Likewise.
17310 * config/spu/spu.c: Likewise.
17311 * config/stormy16/stormy16.c: Likewise.
17312 * config/tilegx/tilegx.c: Likewise.
17313 * config/tilepro/tilepro.c: Likewise.
17314 * config/v850/v850.c: Likewise.
17315 * config/vax/vax.c: Likewise.
17316 * config/xtensa/xtensa.c: Likewise.
17318 2014-06-02 Jeff Law <law@redhat.com>
17320 PR rtl-optimization/61094
17321 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17322 was marked as do_no_reextend. If a copy is needed to eliminate
17323 an extension, then mark it as do_not_reextend.
17325 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17327 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17329 2014-06-02 Richard Henderson <rth@redhat.com>
17332 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17333 addresses inside asms. Use output_operand_lossage instead of
17336 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17339 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17340 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17342 2014-06-02 Tom de Vries <tom@codesourcery.com>
17344 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17345 case that x has VOIDmode.
17347 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17349 * varasm.c (copy_constant): Delete function.
17350 (build_constant_desc): Don't call it.
17352 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17355 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17356 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17357 with immediate_operand.
17359 2014-06-02 Andreas Schwab <schwab@suse.de>
17361 * config/ia64/ia64.c
17362 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17363 pending_data_specs first.
17365 2014-06-02 Richard Biener <rguenther@suse.de>
17367 PR tree-optimization/61378
17368 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17369 valueized_anything.
17371 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17373 * config/i386/constraints.md (Bw): Rename from 'w'.
17374 (Bz): Rename from 'z'.
17375 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17377 2014-06-01 Kai Tietz <ktietz@redhat.com>
17380 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17381 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17382 instead of m constraint.
17384 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17386 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17387 a separate alternative where the scratch operand 2 is marked as
17390 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17392 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17393 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17394 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17395 and __builtins_arm_get_fpscr.
17396 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17397 __builtins_arm_get_fpscr.
17398 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17399 __builtins_arm_ldfpscr.
17400 (arm_atomic_assign_expand_fenv): New function.
17401 * config/arm/vfp.md (set_fpscr): New pattern.
17402 (get_fpscr) : Likewise.
17403 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17405 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17406 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17408 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17410 * asan.c (report_error_func): Add SLOW_P argument, use
17411 BUILT_IN_ASAN_*_N if set.
17412 (build_check_stmt): Likewise.
17413 (instrument_derefs): If T has insufficient alignment,
17414 force same handling as for odd sizes.
17416 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17417 BUILT_IN_ASAN_REPORT_STORE_N): New.
17418 * asan.c (struct asan_mem_ref): Change access_size type to
17420 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17421 update_mem_ref_hash_table): Likewise.
17422 (asan_mem_ref_hasher::hash): Hash in a HWI.
17423 (report_error_func): Change size_in_bytes argument to HWI.
17424 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17426 (build_shadow_mem_access): New function.
17427 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17428 Handle size_in_bytes not power of two or larger than 16.
17429 (instrument_derefs): Don't give up if size_in_bytes is not
17430 power of two or is larger than 16.
17432 2014-05-30 Kai Tietz <ktietz@redhat.com>
17435 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17436 for sibling-tail-calls.
17437 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17439 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17440 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17442 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17444 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17445 * config/avr/avr-tables.opt: Regenerate.
17446 * config/avr/t-multilib: Regenerate.
17447 * doc/avr-mmcu.texi: Regenerate.
17449 2014-05-30 Ian Lance Taylor <iant@google.com>
17451 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17454 2014-05-30 Tom de Vries <tom@codesourcery.com>
17456 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17459 2014-05-30 Tom de Vries <tom@codesourcery.com>
17461 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17462 * lra.c (initialize_lra_reg_info_element): Add init of
17463 actual_call_used_reg_set field.
17464 (lra): Call lra_create_live_ranges before lra_inheritance for
17466 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17468 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17469 instead of call_used_reg_set for -fuse-caller-save.
17470 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17472 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17474 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17476 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17478 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17480 * ira.c (ira_get_dup_out_num): Check for output operands at
17481 the start of the loop. Handle cases where an included alternative
17482 follows an excluded one.
17484 2014-05-29 Mike Stump <mikestump@comcast.net>
17487 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17488 post ld passes when lto is used.
17490 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17492 PR rtl-optimization/61325
17493 * lra-constraints.c (process_address): Rename to process_address_1.
17494 (process_address): New function.
17496 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17498 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17499 TYPES_BINOPV): New static data.
17500 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17502 * config/aarch64/aarch64-simd.md (aarch64_ext,
17503 aarch64_im_lane_boundsi): New patterns.
17504 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17506 (aarch64_evpc_ext): New function.
17508 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17510 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17511 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17512 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17513 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17514 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17516 2014-05-29 Tom de Vries <tom@codesourcery.com>
17518 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17520 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17521 Richard Sandiford <rdsandiford@googlemail.com>
17523 * arm/iterators.md (shiftable_ops): New code iterator.
17524 (t2_binop0, arith_shift_insn): New code attributes.
17525 * arm/predicates.md (shift_nomul_operator): New predicate.
17526 * arm/arm.md (insn_enabled): Delete.
17527 (enabled): Remove insn_enabled test.
17528 (*arith_shiftsi): Delete. Replace with ...
17529 (*<arith_shift_insn>_multsi): ... new pattern.
17530 (*<arith_shift_insn>_shiftsi): ... new pattern.
17531 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17533 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17534 Tom de Vries <tom@codesourcery.com>
17536 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17537 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17539 (mips_split_call): Use POST_CALL_TMP_REG.
17540 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17542 2014-05-29 Tom de Vries <tom@codesourcery.com>
17544 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17545 with #ifdef STACK_REGS.
17547 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17549 * varasm.c (get_variable_section): Walk aliases.
17550 (place_block_symbol): Walk aliases.
17552 2014-05-28 Tom de Vries <tom@codesourcery.com>
17555 2014-05-28 Tom de Vries <tom@codesourcery.com>
17557 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17558 * lra.c (initialize_lra_reg_info_element): Add init of
17559 actual_call_used_reg_set field.
17560 (lra): Call lra_create_live_ranges before lra_inheritance for
17562 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17564 * lra-constraints.c (need_for_call_save_p): Use
17565 actual_call_used_reg_set instead of call_used_reg_set for
17567 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17569 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17571 * doc/md.texi: Document that the % constraint character must
17572 be at the beginning of the string.
17573 * genoutput.c (validate_insn_alternatives): Check that '=',
17574 '+' and '%' only appear at the beginning of a constraint.
17575 * ira.c (commutative_constraint_p): Delete.
17576 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17577 at the start of the string.
17578 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17580 * config/arm/neon.md (bicdi3_neon): Likewise.
17581 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17582 (slt_si, sltu_si): Likewise.
17583 * config/vax/vax.md (sbcdi3): Likewise.
17584 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17585 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17586 (mul64): Move '%' to beginning of constraint.
17587 * config/arm/arm.md (*xordi3_insn): Likewise.
17588 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17589 (xorsi3): Likewise.
17591 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17593 * doc/md.texi: Document the restrictions on the "enabled" attribute.
17595 2014-05-28 Jason Merrill <jason@redhat.com>
17598 * cgraph.h (symtab_node::get_comdat_group_id): New.
17599 * cgraphunit.c (analyze_functions): Call it.
17600 * symtab.c (dump_symtab_node): Likewise.
17601 * tree.c (decl_comdat_group_id): New.
17602 * tree.h: Declare it.
17603 * lto-streamer-out.c (write_symbol): Use it.
17604 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17606 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17608 PR bootstrap/PR61146
17609 * wide-int.cc: Do not include longlong.h when compiling with clang.
17611 2014-05-28 Richard Biener <rguenther@suse.de>
17613 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17614 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17615 (vrp_visit_assignment_or_call): Print less vertical space.
17616 (vrp_visit_stmt): Likewise.
17617 (vrp_visit_phi_node): Likewise. For a PHI argument with
17618 VR_VARYING range consider recording it as copy.
17620 2014-05-28 Richard Biener <rguenther@suse.de>
17623 2014-05-28 Richard Biener <rguenther@suse.de>
17625 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17627 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17629 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17630 sufficiently aligned and an offset is used at the same time.
17631 (expand_expr_real_1): Likewise.
17633 2014-05-28 Richard Biener <rguenther@suse.de>
17635 PR middle-end/61045
17636 * fold-const.c (fold_comparison): When folding
17637 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17638 the sign of the remaining constant operand stays the same.
17640 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
17642 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17643 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17644 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17646 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17647 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17648 (m32bit-doubles) Likewise.
17649 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17650 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17653 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17655 * configure.ac ($gcc_cv_ld_clearcap): New test.
17656 * configure: Regenerate.
17657 * config.in: Regenerate.
17658 * config/sol2.opt (mclear-hwcap): New option.
17659 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17660 * config/sol2-clearcap.map: Moved here from
17661 testsuite/gcc.target/i386/clearcap.map.
17662 * config/sol2-clearcapv2.map: Move here from
17663 gcc.target/i386/clearcapv2.map.
17664 * config/t-sol2 (install): Depend on install-clearcap-map.
17665 (install-clearcap-map): New target.
17666 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17669 2014-05-28 Richard Biener <rguenther@suse.de>
17671 * hwint.h (*_HALF_WIDE_INT*): Move to ...
17672 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17673 ... here and remove the rest.
17674 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17676 2014-05-28 Richard Biener <rguenther@suse.de>
17678 PR tree-optimization/61335
17679 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17680 new range fails, drop to varying.
17682 2014-05-28 Olivier Hainque <hainque@adacore.com>
17684 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17685 (CPP_SPEC): Add entry for -mcpu=8548.
17686 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17687 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17689 2014-05-28 Tom de Vries <tom@codesourcery.com>
17691 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17692 * lra.c (initialize_lra_reg_info_element): Add init of
17693 actual_call_used_reg_set field.
17694 (lra): Call lra_create_live_ranges before lra_inheritance for
17696 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17698 * lra-constraints.c (need_for_call_save_p): Use
17699 actual_call_used_reg_set instead of call_used_reg_set for
17701 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17703 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17704 Tom de Vries <tom@codesourcery.com>
17706 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17708 (@item -fuse-caller-save): New item.
17710 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17711 Tom de Vries <tom@codesourcery.com>
17713 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17714 OPT_fuse_caller_save.
17716 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17717 Tom de Vries <tom@codesourcery.com>
17719 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17720 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17721 get_call_reg_set_usage.
17722 * resource.c (mark_set_resources, mark_target_live_regs): Use
17723 get_call_reg_set_usage.
17724 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17726 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17727 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17728 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17729 * ira-build.c (ira_create_allocno): Init
17730 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17731 (create_cap_allocno, propagate_allocno_info)
17732 (propagate_some_info_from_allocno)
17733 (copy_info_to_removed_store_destinations): Handle
17734 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17735 * ira-costs.c (ira_tune_allocno_costs): Use
17736 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17738 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17739 Tom de Vries <tom@codesourcery.com>
17741 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17742 and function_used_regs_valid fields.
17743 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17744 find_all_hard_reg_sets.
17745 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17746 (get_call_reg_set_usage): New function.
17747 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17748 * regs.h (get_call_reg_set_usage): Declare.
17750 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17753 * config/dbx.h (License): Add Runtime Library Exception.
17754 * config/newlib-stdint.h (License): Same.
17755 * config/rtems.h (License): Same
17756 * config/initfini-array.h (License): Same
17757 * config/v850/v850.h (License): Same.
17758 * config/v850/v850-opts.h (License): Same
17759 * config/v850/rtems.h (License): Same.
17761 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17764 * doc/extend.texi (Local Labels): Note that label differences are
17765 not supported for AVR.
17767 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17768 Olivier Hainque <hainque@adacore.com>
17770 * rtl.h (set_for_reg_notes): Declare.
17771 * emit-rtl.c (set_for_reg_notes): New function.
17772 (set_unique_reg_note): Use it.
17773 * optabs.c (add_equal_note): Likewise
17775 2014-05-27 Andrew Pinski <apinski@cavium.com>
17777 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17778 Use <w> for the register in assembly template.
17779 (stack_protect_test): Use the mode of operands[0] for the result.
17780 (stack_protect_test_<mode>): Use <w> for the register
17781 in assembly template.
17783 2014-05-27 DJ Delorie <dj@redhat.com>
17785 * config/rx/rx.c (add_vector_labels): New.
17786 (rx_output_function_prologue): Call it.
17787 (rx_handle_func_attribute): Don't require empty arguments.
17788 (rx_handle_vector_attribute): New.
17789 (rx_attribute_table): Add "vector" attribute.
17790 * doc/extend.texi (interrupt, vector): Document new/changed
17791 RX-specific attributes.
17793 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17795 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17797 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17798 predicate to detect a negative quotient.
17800 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17802 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17803 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17804 Add X - Y CMP 0 to X CMP Y transformation.
17805 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17807 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
17809 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17812 2014-05-27 Steve Ellcey <sellcey@mips.com>
17814 * config/mips/mips.c: Add include of cgraph.h.
17816 2014-05-27 Richard Biener <rguenther@suse.de>
17818 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17820 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17823 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17824 * config/arm/arm-cores.def (License): Same.
17825 * config/arm/arm-opts.h (License): Same.
17826 * config/arm/aout.h (License): Same.
17827 * config/arm/bpabi.h (License): Same.
17828 * config/arm/elf.h (License): Same.
17829 * config/arm/linux-elf.h (License): Same.
17830 * config/arm/linux-gas.h (License): Same.
17831 * config/arm/netbsd-elf.h (License): Same.
17832 * config/arm/uclinux-eabi.h (License): Same.
17833 * config/arm/uclinux-elf.h (License): Same.
17834 * config/arm/vxworks.h (License): Same.
17836 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17838 * config/arm/neon.md (neon_bswap<mode>): New pattern.
17839 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17840 (arm_init_neon_builtins): Handle NEON_BSWAP.
17841 Define required type nodes.
17842 (arm_expand_neon_builtin): Handle NEON_BSWAP.
17843 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17844 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17845 * config/arm/iterators.md (VDQHSD): New mode iterator.
17847 2014-05-27 Richard Biener <rguenther@suse.de>
17849 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17850 Try using literal operands when comparing value-ranges failed.
17852 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17854 * ira.c (commutative_operand): Adjust for change to recog_data.
17855 [Missing from previous commit.]
17857 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17859 * system.h (TEST_BIT): New macro.
17860 * recog.h (alternative_mask): New type.
17861 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17862 (recog_data_d): Replace alternative_enabled_p array with
17863 enabled_alternatives.
17864 (target_recog): New structure.
17865 (default_target_recog, this_target_recog): Declare.
17866 (get_enabled_alternatives, recog_init): Likewise.
17867 * recog.c (default_target_recog, this_target_recog): New variables.
17868 (get_enabled_alternatives): New function.
17869 (extract_insn): Use it.
17870 (recog_init): New function.
17871 (preprocess_constraints, constrain_operands): Adjust for change to
17873 * postreload.c (reload_cse_simplify_operands): Likewise.
17874 * reload.c (find_reloads): Likewise.
17875 * ira-costs.c (record_reg_classes): Likewise.
17876 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
17877 all alternatives after a disabled one would be skipped.
17878 (ira_implicitly_set_insn_hard_regs): Likewise.
17879 * ira.c (ira_setup_alts): Adjust for change to recog_data.
17880 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17881 with enabled_alternatives.
17882 * lra.c (free_insn_recog_data): Update accordingly.
17883 (lra_update_insn_recog_data): Likewise.
17884 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
17885 * lra-constraints.c (process_alt_operands): Likewise. Handle
17886 only_alternative as part of the enabled mask.
17887 * target-globals.h (this_target_recog): Declare.
17888 (target_globals): Add a recog field.
17889 (restore_target_globals): Restore this_target_recog.
17890 * target-globals.c: Include recog.h.
17891 (default_target_globals): Initialize recog field.
17892 (save_target_globals): Likewise.
17893 * reginfo.c (reinit_regs): Call recog_init.
17894 * toplev.c (backend_init_target): Likewise.
17896 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17898 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17899 rather than any named insn's code.
17901 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17904 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
17905 * config/arm/arm-cores.def (License): Same.
17907 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
17909 * tree.h (decl_comdat_group): Declare.
17910 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
17911 * tree.c (decl_comdat_group): Here.
17913 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
17915 PR rtl-optimization/61222
17916 * combine.c (simplify_shift_const_1): When moving a PLUS outside
17917 the shift, truncate the PLUS operand to the result mode.
17919 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
17922 * config/i386/i386.c (ix86_rtx_costs)
17923 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17926 2014-05-26 Martin Jambor <mjambor@suse.cz>
17928 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17931 2014-05-26 Richard Biener <rguenther@suse.de>
17933 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17934 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17935 Provide specializations.
17936 (wi::int_traits <HOST_WIDE_INT>,
17937 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17939 2014-05-26 Alan Modra <amodra@gmail.com>
17942 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17943 params and return a bool. Remove dead code. Update comment.
17944 Assert we have a const_int source. Remove bogus code from
17945 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17946 handling of constants > 2G and reg_equal note, from..
17947 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17948 return value. Update comment. If we can, use a new pseudo
17949 for intermediate calculations.
17950 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17952 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17953 call to rs6000_emit_set_const in splitter.
17954 (movdi_internal64+2, +3): Likewise.
17956 2014-05-26 Richard Biener <rguenther@suse.de>
17958 * system.h: Define __STDC_FORMAT_MACROS before
17959 including inttypes.h.
17960 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17961 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17962 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17963 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17964 HOST_WIDEST_INT_C): Remove.
17965 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
17966 if C99 inttypes.h is not available.
17967 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
17968 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
17969 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
17970 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
17971 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
17972 (struct output_info): Likewise.
17973 (print_statistics): Adjust.
17974 (dump_bitmap_statistics): Likewise.
17975 * bt-load.c (migrate_btr_defs): Print with PRId64.
17976 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
17977 (MAX_SAFE_MULTIPLIER): Adjust.
17978 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
17979 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
17980 dump_cgraph_node): Likewise.
17981 * final.c (dump_basic_block_info): Likewise.
17982 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
17983 * gcov.c (format_gcov): Likewise.
17984 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
17986 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
17987 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
17988 (inline_small_functions, dump_overall_stats, dump_inline_stats):
17989 Use PRId64 for dumping.
17990 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
17991 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
17992 (add_allocno_hard_regs): Adjust.
17993 * loop-doloop.c (doloop_modify): Print using PRId64.
17994 * loop-iv.c (inverse): Compute in uint64_t.
17995 (determine_max_iter, iv_number_of_iterations): Likewise.
17996 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
17997 Print using PRId64.
17998 * lto-streamer-out.c (write_symbol): Use uint64_t.
17999 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18000 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18001 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18002 * modulo-sched.c (const_iteration_count): Use int64_t.
18003 (sms_schedule): Dump using PRId64.
18004 * predict.c (dump_prediction): Likewise.
18005 * pretty-print.h (pp_widest_integer): Remove.
18006 * profile.c (get_working_sets, is_edge_inconsistent,
18007 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18008 * tree-pretty-print.c (pp_double_int): Remove case handling
18009 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18010 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18012 (pass_optimize_bswap::execute): Remove restriction on hosts.
18013 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18014 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18015 * tree.c (widest_int_cst_value): Remove.
18016 * tree.h (widest_int_cst_value): Likewise.
18017 * value-prof.c (dump_histogram_value): Print using PRId64.
18018 * gengtype.c (main): Also inject int64_t.
18019 * ggc-page.c (struct max_alignment): Use int64_t.
18020 * alloc-pool.c (struct allocation_object_def): Likewise.
18021 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18023 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18024 * doc/tm.texi: Regenerated.
18025 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18026 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18027 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18028 mmix_output_register_setting): Use [u]int64_t in prototypes.
18029 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18030 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18031 mmix_output_octa, mmix_output_shifted_value): Adjust.
18032 (mmix_intval): Adjust. Remove unreachable case.
18033 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18035 2014-05-26 Richard Biener <rguenther@suse.de>
18037 * configure.ac: Drop __int64 type check. Insist that we
18038 found uint64_t and int64_t.
18039 * hwint.h (HOST_BITS_PER___INT64): Remove.
18040 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18041 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18042 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18043 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18044 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18045 for dst_q_src_df_rms_cdt.
18046 * configure: Regenerate.
18047 * config.in: Likewise.
18049 2014-05-26 Michael Tautschnig <mt@debian.org>
18052 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18053 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18055 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18057 PR rtl-optimization/61278
18058 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18060 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18062 PR rtl-optimization/61220
18063 Part of PR rtl-optimization/61225
18064 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18065 insn; skip split_edge for a block with only one successor.
18067 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18069 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18072 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18074 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18075 (update_vtable_references): New function.
18076 (function_and_variable_visibility): Rewrite also vtable initializers.
18077 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18079 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18081 * ggc.h (ggc_grow): New function.
18082 * ggc-none.c (ggc_grow): New function.
18083 * ggc-page.c (ggc_grow): Likewise.
18085 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18087 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18088 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18089 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18090 varpool_externally_visible_p, can_replace_by_local_alias,
18091 update_visibility_by_resolution_info, function_and_variable_visibility,
18092 pass_data_ipa_function_and_variable_visibility,
18093 make_pass_ipa_function_and_variable_visibility,
18094 whole_program_function_and_variable_visibility,
18095 pass_data_ipa_whole_program_visibility,
18096 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18097 * cgraph.h (cgraph_local_node_p): Declare.
18098 * ipa-visibility.c: New file.
18099 * Makefile.in (OBJS): Add ipa-visiblity.o
18101 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18103 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18104 that var decl is available.
18106 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18108 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18109 symtab_node pointer.
18110 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18111 (find_decls_types_r): Do not walk COMDAT_GROUP.
18112 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18113 * varasm.c (make_decl_one_only): Use set_comdat_group;
18114 create node if needed.
18115 * ipa-inline-transform.c (save_inline_function_body): Update
18116 way we decl->symtab mapping.
18117 * symtab.c (symtab_hash, hash_node, eq_node
18118 symtab_insert_node_to_hashtable): Remove.
18119 (symtab_register_node): Update.
18120 (symtab_unregister_node): Update.
18121 (symtab_get_node): Reimplement as inline function.
18122 (symtab_add_to_same_comdat_group): Update.
18123 (symtab_dissolve_same_comdat_group_list): Update.
18124 (dump_symtab_base): Update.
18125 (verify_symtab_base): Update.
18126 (symtab_make_decl_local): Update.
18127 (fixup_same_cpp_alias_visibility): Update.
18128 (symtab_nonoverwritable_alias): Update.
18129 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18130 * ipa.c (update_visibility_by_resolution_info): UPdate.
18131 * bb-reorder.c: Include cgraph.h
18132 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18133 with comdat groups.
18134 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18135 * cgraph.c (cgraph_get_create_node): Update.
18136 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18138 (symtab_get_node): Make inline.
18139 (symtab_insert_node_to_hashtable): Remove.
18140 (symtab_can_be_discarded): Update.
18141 (decl_comdat_group): New function.
18142 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18144 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18146 (read_comdat_group): New function.
18147 (input_node, input_varpool_node): Use it.
18148 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18150 * mips.c (mips_start_unique_function): Likewise.
18151 (ix86_code_end): Likewise.
18152 (rs6000_code_end): Likweise.
18153 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18155 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18157 * gengtype-state.c (fatal_reading_state): Bring offline.
18158 * optabs.c (widening_optab_handler): Bring offline.
18159 * optabs.h (widening_optab_handler): Likewise.
18160 * final.c (get_attr_length_1): Likewise.
18162 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18164 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18166 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18168 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18169 (ppc440-compare): Include shift with dot.
18170 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18171 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18173 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18175 (e6500_sfx2): Include it.
18176 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18177 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18178 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18179 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18180 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18181 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18182 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18183 *lshiftrt_internal1le, *lshiftrt_internal1be,
18184 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18185 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18186 *rotldi3_internal10le, *rotldi3_internal10be,
18187 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18188 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18189 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18190 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18191 define_insns): Use type "shift" in the appropriate alternatives.
18193 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18195 * config/rs6000/rs6000.md (type): Add "logical". Delete
18197 (dot): Adjust comment.
18198 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18199 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18200 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18201 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18202 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18203 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18204 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18205 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18207 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18208 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18209 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18210 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18211 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18212 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18213 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18214 * config/rs6000/8540.md (ppc8540_su): Adjust.
18215 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18216 cell-cmp-microcoded): Adjust.
18217 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18218 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18219 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18220 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18221 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18222 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18223 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18224 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18225 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18227 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18228 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18229 Adjust. Adjust comment.
18230 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18231 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18233 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18235 * config/rs6000/rs6000.md (type): Add "add".
18236 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18237 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18238 define_insns): Use it.
18239 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18241 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18242 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18243 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18244 * config/rs6000/601.md (ppc601-integer): Adjust.
18245 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18246 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18247 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18248 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18249 * config/rs6000/8540.md (ppc8540_su): Adjust.
18250 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18251 cell-cmp-microcoded): Adjust.
18252 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18253 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18254 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18255 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18256 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18257 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18258 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18259 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18260 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18262 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18263 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18264 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18265 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18267 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18269 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18270 "delayed_compare", "var_delayed_compare".
18271 (var_shift): New attribute.
18272 (cell_micro): Adjust.
18273 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18274 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18275 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18276 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18277 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18278 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18279 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18280 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18281 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18282 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18283 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18284 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18285 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18286 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18287 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18288 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18289 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18290 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18291 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18292 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18293 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18294 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18295 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18296 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18297 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18299 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18300 * config/rs6000/440.md (ppc440-integer): Adjust.
18301 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18302 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18303 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18304 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18305 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18306 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18307 * config/rs6000/8540.md (ppc8540_su): Adjust.
18308 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18309 cell-cmp-microcoded): Adjust.
18310 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18311 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18312 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18313 e500mc64_delayed): Adjust.
18314 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18315 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18316 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18317 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18318 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18319 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18320 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18321 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18322 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18324 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18325 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18327 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18329 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18330 (bits): New mode_attr.
18331 (idiv_ldiv): Delete mode_attr.
18332 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18333 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18334 rs6000_adjust_priority, is_nonpipeline_insn,
18335 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18337 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18338 * config/rs6000/440.md (ppc440-idiv): Adjust.
18339 * config/rs6000/476.md (ppc476-idiv): Adjust.
18340 * config/rs6000/601.md (ppc601-idiv): Adjust.
18341 * config/rs6000/603.md (ppc603-idiv): Adjust.
18342 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18343 ppc620-ldiv): Adjust.
18344 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18345 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18346 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18347 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18348 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18349 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18350 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18351 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18352 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18353 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18354 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18355 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18356 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18357 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18358 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18359 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18360 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18361 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18363 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18365 * config/rs6000/rs6000.md (type): Delete "insert_word",
18366 "insert_dword". Add "insert".
18367 (size): Update comment.
18368 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18369 insn_must_be_first_in_group): Adjust.
18370 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18371 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18372 *insvsi_internal6, insvdi_internal): Adjust.
18374 * config/rs6000/40x.md (ppc403-integer): Adjust.
18375 * config/rs6000/440.md (ppc440-integer): Adjust.
18376 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18377 * config/rs6000/601.md (ppc601-integer): Adjust.
18378 * config/rs6000/603.md (ppc603-integer): Adjust.
18379 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18380 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18381 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18382 * config/rs6000/8540.md (ppc8540_su): Adjust.
18383 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18384 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18385 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18386 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18387 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18388 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18389 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18390 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18391 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18392 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18393 * config/rs6000/power7.md (power7-integer): Adjust.
18394 * config/rs6000/power8.md (power8-1cyc): Adjust.
18395 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18396 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18398 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18400 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18401 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18402 (size): New attribute.
18403 (dot): New attribute.
18404 (cell_micro): Adjust.
18405 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18406 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18407 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18408 umuldi3_highpart): Adjust.
18409 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18410 rs6000_adjust_priority, is_nonpipeline_insn,
18411 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18413 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18414 ppc405-imul3): Adjust.
18415 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18416 * config/rs6000/476.md (ppc476-imul): Adjust.
18417 * config/rs6000/601.md (ppc601-imul): Adjust.
18418 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18419 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18420 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18421 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18422 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18424 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18425 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18426 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18427 cell-imul): Adjust.
18428 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18429 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18430 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18431 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18432 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18433 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18434 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18435 power4-lmul, power4-imul, power4-imul3): Adjust.
18436 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18437 power5-lmul, power5-imul, power5-imul3): Adjust.
18438 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18439 power6-lmul, power6-imul, power6-imul3): Adjust.
18440 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18441 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18443 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18444 rs64a-lmul): Adjust.
18445 * config/rs6000/titan.md (titan_imul): Adjust.
18447 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18449 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18450 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18451 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18452 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18453 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18454 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18455 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18456 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18457 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18458 * config/rs6000/titan.md: Delete nonsensical comment.
18459 (titan_imul): Add type imul3.
18460 (titan_mulhw): Remove type imul3; add type halfmul.
18462 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18464 * config/rs6000/rs6000.md (type): Reorder, reformat.
18466 2014-05-23 Martin Jambor <mjambor@suse.cz>
18468 PR tree-optimization/53787
18469 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18470 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18471 analysis_done, update all uses.
18472 * ipa-prop.c: Include domwalk.h
18473 (param_analysis_info): Removed.
18474 (param_aa_status): New type.
18475 (ipa_bb_info): Likewise.
18476 (func_body_info): Likewise.
18477 (ipa_get_bb_info): New function.
18478 (aa_overwalked): Likewise.
18479 (find_dominating_aa_status): Likewise.
18480 (parm_bb_aa_status_for_bb): Likewise.
18481 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18482 (load_from_unmodified_param): Accept func_body_info as a parameter
18483 instead of parms_ainfo.
18484 (parm_ref_data_preserved_p): Changed to use new param AA info.
18485 (parm_ref_data_pass_through_p): Likewise.
18486 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18487 (compute_complex_assign_jump_func): Changed to use new param AA info.
18488 (compute_complex_ancestor_jump_func): Likewise.
18489 (ipa_compute_jump_functions_for_edge): Likewise.
18490 (ipa_compute_jump_functions): Removed.
18491 (ipa_compute_jump_functions_for_bb): New function.
18492 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18494 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18495 and info, moved variable declarations down.
18496 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18498 (ipa_analyze_stmt_uses): Likewise.
18499 (ipa_analyze_params_uses): Removed.
18500 (ipa_analyze_params_uses_in_bb): New function.
18501 (ipa_analyze_controlled_uses): Likewise.
18502 (free_ipa_bb_info): Likewise.
18503 (analysis_dom_walker): New class.
18504 (ipa_analyze_node): Handle node-specific forbidden analysis,
18505 initialize and free func_body_info, use dominator walker.
18506 (ipcp_modif_dom_walker): New class.
18507 (ipcp_transform_function): Create and free func_body_info, use
18508 ipcp_modif_dom_walker, moved a lot of functionality there.
18510 2014-05-23 Marek Polacek <polacek@redhat.com>
18511 Jakub Jelinek <jakub@redhat.com>
18513 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18514 * gcc.c (sanitize_spec_function): Likewise.
18515 * convert.c (convert_to_integer): Include "ubsan.h". Add
18516 floating-point to integer instrumentation.
18517 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18518 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18519 SANITIZE_NONDEFAULT.
18520 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18521 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18522 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18523 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18524 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18525 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18526 float/double/long double.
18527 (ubsan_instrument_float_cast): New function.
18528 * ubsan.h (ubsan_instrument_float_cast): Declare.
18530 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18532 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18534 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18535 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18536 Adjust for tailcalling through registers.
18537 * config/aarch64/aarch64.h (enum reg_class): New caller save
18539 (REG_CLASS_NAMES): Likewise.
18540 (REG_CLASS_CONTENTS): Likewise.
18541 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18542 Allow tailcalling without decls.
18544 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18546 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18547 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18549 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18550 gsi, and variables v_* to v*.
18552 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18554 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18556 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18558 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18559 * omp-low.c: Update accordingly.
18561 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18562 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18563 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18564 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18565 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18566 GF_OMP_TARGET_KIND_UPDATE.
18568 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18569 Explicitly enumerate the expected region types.
18571 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
18574 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
18575 documentation; the old documentation didn't clearly state the
18576 constraints on the contents of the pointed-to storage.
18578 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18580 Fix bootstrap error on ia64
18581 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18582 Return default value.
18584 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
18586 PR tree-optimization/54733
18587 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18589 (find_bswap_or_nop_load): New.
18590 (find_bswap_1): Renamed to ...
18591 (find_bswap_or_nop_1): This. Also add support for memory source.
18592 (find_bswap): Renamed to ...
18593 (find_bswap_or_nop): This. Also add support for memory source and
18594 detection of bitwise operations equivalent to load in target
18596 (execute_optimize_bswap): Likewise. Also move its leading comment back
18597 in place and split statement transformation into ...
18598 (bswap_replace): This.
18600 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18602 PR rtl-optimization/61215
18603 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18604 simplify_gen_subreg until final substitution.
18606 2014-05-23 Alan Modra <amodra@gmail.com>
18609 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18610 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18611 Use "Y" constraint rather than "m".
18613 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18615 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18617 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18618 New function declaration.
18619 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18620 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18621 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18622 (aarch64_init_builtins) : Initialize builtins
18623 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18624 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18625 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18626 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18627 and __builtins_aarch64_set_fpsr.
18628 (aarch64_atomic_assign_expand_fenv): New function.
18629 * config/aarch64/aarch64.md (set_fpcr): New pattern.
18630 (get_fpcr) : Likewise.
18631 (set_fpsr) : Likewise.
18632 (get_fpsr) : Likewise.
18633 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18634 and UNSPECV_SET_FPSR.
18635 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18636 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18637 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18639 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18641 PR rtl-optimization/60969
18642 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18643 constraints. Set up mem cost for NO_REGS case.
18645 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
18647 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18649 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
18651 * config/darwin.c: Include "lto-section-names.h".
18652 (LTO_SEGMENT_NAME): Don't define.
18653 * config/i386/winnt.c: Include "lto-section-names.h".
18654 * lto-streamer.c: Include "lto-section-names.h".
18655 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18656 * lto-wrapper.c: Include "lto-section-names.h".
18657 (LTO_SECTION_NAME_PREFIX): Don't define.
18658 * lto-section-names.h: New file.
18659 * cgraphunit.c: Include "lto-section-names.h".
18661 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
18663 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18665 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
18668 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18670 2014-05-22 Nick Clifton <nickc@redhat.com>
18672 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18674 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
18676 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18677 -> (T)A transformation to integer types.
18679 2014-05-22 Teresa Johnson <tejohnson@google.com>
18681 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18682 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18683 (gcov_rewrite): Use gcov_nonruntime_assert.
18684 (gcov_open): Ditto.
18685 (gcov_write_words): Ditto.
18686 (gcov_write_length): Ditto.
18687 (gcov_read_words): Use gcov_nonruntime_assert, and remove
18688 gcc_assert from IN_LIBGCOV code.
18689 (gcov_read_summary): Use gcov_error to flag profile corruption.
18690 (gcov_sync): Use gcov_nonruntime_assert.
18691 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18692 (gcov_histo_index): Use gcov_nonruntime_assert.
18693 (static void gcov_histogram_merge): Ditto.
18694 (compute_working_sets): Ditto.
18695 * gcov-io.h (gcov_nonruntime_assert): Define.
18696 (gcov_error): Define for !IN_LIBGCOV
18698 2014-05-22 Richard Biener <rguenther@suse.de>
18700 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18701 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18702 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18703 and deallocation site.
18704 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18705 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18706 passing through the incoming points-to set.
18707 (handle_lhs_call): Use flags argument instead of recomputing it.
18708 (find_func_aliases_for_call): Call handle_lhs_call with proper
18711 2014-05-22 Jakub Jelinek <jakub@redhat.com>
18713 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18714 all padding bits in REAL_VALUE_TYPE are cleared.
18716 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18718 Cleanup and improve multipass_dfa_lookahead_guard
18719 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18720 (core2i7_first_cycle_multipass_begin,)
18721 (core2i7_first_cycle_multipass_issue,)
18722 (core2i7_first_cycle_multipass_backtrack): Update signature.
18723 * config/ia64/ia64.c
18724 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18725 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18726 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18728 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18729 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
18731 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18733 * doc/tm.texi: Regenerate.
18735 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18736 * haifa-sched.c (ready_try): Make signed to allow negative values.
18737 (rebug_ready_list_1): Update.
18738 (choose_ready): Simplify.
18739 (sched_extend_ready_list): Update.
18741 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18743 Remove IA64 speculation tweaking flags
18744 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18745 speculation tuning flags.
18746 (msched-prefer-non-data-spec-insns,)
18747 (msched-prefer-non-control-spec-insns): Obsolete options.
18748 * haifa-sched.c (choose_ready): Remove handling of
18749 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18750 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18751 and PREFER_NON_DATA_SPEC.
18752 * sel-sched.c (process_spec_exprs): Remove handling of
18753 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18755 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18757 Improve scheduling debug output
18758 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18759 (advance_one_cycle): Update.
18760 (schedule_insn, queue_to_ready): Add debug printouts.
18761 (debug_ready_list_1): New static function.
18762 (debug_ready_list): Update.
18763 (max_issue): Add debug printouts.
18764 (dump_insn_stream): New static function.
18765 (schedule_block): Use it. Also better indent printouts.
18767 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18769 Fix sched_insn debug counter
18770 * haifa-sched.c (schedule_insn): Update.
18771 (struct haifa_saved_data): Add nonscheduled_insns_begin.
18772 (save_backtrack_point, restore_backtrack_point): Update.
18773 (first_nonscheduled_insn): New static function.
18774 (queue_to_ready, choose_ready): Use it.
18775 (schedule_block): Init nonscheduled_insns_begin.
18776 (sched_emit_insn): Update.
18779 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18781 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18783 (aarch64_secondary_reload) : LikeWise.
18784 (aarch64_class_max_nregs) : Remove CORE_REGS.
18785 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18786 (REG_CLASS_NAMES) : Likewise.
18787 (REG_CLASS_CONTENTS) : LikeWise.
18788 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18790 2014-05-21 Guozhi Wei <carrot@google.com>
18793 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18795 (vqdmulhq_n_s16): Likewise.
18797 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18799 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18801 2014-05-21 Marek Polacek <polacek@redhat.com>
18804 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18806 2014-05-21 Martin Jambor <mjambor@suse.cz>
18808 * doc/invoke.texi (Optimize Options): Document parameters
18809 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18810 ipa-cp-array-index-hint-bonus.
18812 2014-05-21 Mark Wielaard <mjw@redhat.com>
18815 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18816 version >= 3 or not strict DWARF.
18817 * langhooks.h (struct lang_hooks_for_types): Add
18818 enum_underlying_base_type.
18819 * langhooks.c (lhd_enum_underlying_base_type): New function.
18820 * gcc/langhooks.h (struct lang_hooks_for_types): Add
18821 enum_underlying_base_type.
18822 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18823 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18824 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18826 2014-05-21 Richard Biener <rguenther@suse.de>
18828 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18830 2014-05-21 John Marino <gnugcc@marino.st>
18832 * config.gcc (*-*-dragonfly*): New target.
18833 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18834 * configure: Regenerate.
18835 * config/dragonfly-stdint.h: New.
18836 * config/dragonfly.h: New.
18837 * config/dragonfly.opt: New.
18838 * config/i386/dragonfly.h: New.
18839 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18841 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18843 * tree.def (VOID_CST): New.
18844 * tree-core.h (TI_VOID): New.
18845 * tree.h (void_node): New.
18846 * tree.c (tree_node_structure_for_code, tree_code_size)
18847 (iterative_hash_expr): Handle VOID_CST.
18848 (build_common_tree_nodes): Initialize void_node.
18850 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
18852 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18854 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18856 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18859 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18860 flag_reorder_blocks_and_partition.
18861 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18863 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
18866 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
18868 (*addc_r_t): Add new insn_and_split.
18870 2014-05-21 Jakub Jelinek <jakub@redhat.com>
18872 PR middle-end/61252
18873 * omp-low.c (handle_simd_reference): New function.
18874 (lower_rec_input_clauses): Use it. Defer adding reference
18875 initialization even for reduction without placeholder if in simd,
18876 handle it properly later on.
18878 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18880 PR tree-optimization/60899
18881 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18882 assume all static symbols will have definition wile parsing and
18883 check the do have definition later in compilation; check that
18884 variable referring symbol will be output before concluding that
18885 reference is safe; be conservative for referring local statics;
18886 be more precise about when comdat is output in other partition.
18888 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18891 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18893 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18894 (ipa_inline): Loop inline_to_all_callers until no more aliases
18897 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18899 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18900 set writeonly flag only for vars actually written to.
18902 2014-05-20 Dehao Chen <dehao@google.com>
18904 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
18905 and callee count to get clone count.
18906 * tree-inline.c (expand_call_inline): Use callee count instead of bb
18907 count in copy_body.
18909 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18911 PR rtl-optimization/61243
18912 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
18914 2014-05-20 Xinliang David Li <davidxl@google.com>
18916 * cgraphunit.c (walk_polymorphic_call_targets): Add
18917 dbgcnt and fopt-info support.
18918 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
18919 * ipa-devirt.c (ipa_devirt): Ditto.
18920 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
18921 * ipa.c (walk_polymorphic_call_targets): Ditto.
18922 * gimple-fold.c (fold_gimple_assign): Ditto.
18923 (gimple_fold_call): Ditto.
18924 * dbgcnt.def: New counter.
18926 2014-05-20 DJ Delorie <dj@redhat.com>
18928 * config/msp430/msp430.md (split): Don't allow subregs when
18929 splitting SImode adds.
18930 (andneghi): Fix subtraction logic.
18931 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18933 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18935 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18937 * except.c (switch_to_exception_section, resolve_unique_section,
18938 get_named_text_section, default_function_rodata_section,
18939 align_variable, get_block_for_decl, default_section_type_flags):
18940 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18941 * symtab.c (symtab_add_to_same_comdat_group,
18942 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18943 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18945 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18946 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18947 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18948 (c6x_function_in_section_p): Likewise.
18949 * config/darwin.c (machopic_select_section): Likewise.
18950 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18951 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18952 * config/mep/mep.c (mep_select_section): LIkewise.
18953 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18955 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18957 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18958 EH region of calls to pure functions that can throw an exception.
18959 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18960 (copy_reference_ops_from_call): Also copy the EH region of the call if
18961 it can throw an exception.
18963 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18965 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
18966 nested VEC_SELECTs that are inverses of each other.
18968 2014-05-20 Richard Biener <rguenther@suse.de>
18970 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
18971 (extract_and_process_scc_for_name): not here.
18972 (cond_dom_walker::before_dom_children): Only process
18973 stmts that end the BB in interesting ways.
18974 (run_scc_vn): Mark param uses as visited.
18976 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18978 * config/arm/arm.md (arith_shiftsi): Do not predicate for
18981 2014-05-20 Nick Clifton <nickc@redhat.com>
18983 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18984 (msp430_gimplify_va_arg_expr): New function.
18985 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
18987 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
18988 operand 0 in order to prevent confusion about the number of
18989 registers involved.
18991 2014-05-20 Richard Biener <rguenther@suse.de>
18993 PR tree-optimization/61221
18994 * tree-ssa-pre.c (el_to_update): Remove.
18995 (eliminate_dom_walker::before_dom_children): Handle released
18996 VDEFs by value-numbering them to the associated VUSE. Update
18997 stmt immediately for substituted call address.
18998 (eliminate): Remove delayed stmt updating code.
18999 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19000 possibly late re-numbered vuses.
19001 (vn_reference_lookup_2): Adjust.
19002 (vn_reference_lookup_pieces): Likewise.
19003 (vn_reference_lookup): Likewise.
19005 2014-05-20 Richard Biener <rguenther@suse.de>
19007 * config.gcc: Remove need_64bit_hwint.
19008 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19009 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19011 * config.in: Regenerate.
19012 * configure: Likewise.
19014 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19016 * doc/extend.texi: Create Label Attributes section,
19017 move all label attributes into it and reference it.
19019 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19021 * arm.c (thumb1_reorg): When scanning backwards skip anything
19022 that's not a proper insn.
19024 2014-05-19 Richard Biener <rguenther@suse.de>
19026 PR tree-optimization/61221
19027 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19028 Do nothing for unreachable blocks.
19029 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19030 Improve unreachability detection.
19032 2014-05-19 Richard Biener <rguenther@suse.de>
19034 PR tree-optimization/61209
19035 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19037 2014-05-19 Nick Clifton <nickc@redhat.com>
19039 * except.c (init_eh): Fix computation of builtin setjmp buffer
19040 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19042 2014-05-19 Richard Biener <rguenther@suse.de>
19044 PR tree-optimization/61184
19045 * tree-vrp.c (is_negative_overflow_infinity): Use
19046 TREE_OVERFLOW_P and do that check first.
19047 (is_positive_overflow_infinity): Likewise.
19048 (is_overflow_infinity): Likewise.
19049 (vrp_operand_equal_p): Properly treat operands with
19050 differing overflow as not equal.
19052 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19054 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19055 shift simplification where it was intended.
19057 2014-05-19 Christian Bruel <christian.bruel@st.com>
19060 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19062 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19065 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19068 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19070 * reg-notes.def (CROSSING_JUMP): Likewise.
19071 * rtl.h (rtx_def): Update comment for jump flag.
19072 (CROSSING_JUMP_P): Define.
19073 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19074 of a REG_CROSSING_JUMP note.
19075 * cfghooks.c (tidy_fallthru_edges): Likewise.
19076 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19077 * emit-rtl.c (try_split): Likewise.
19078 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19079 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19080 * jump.c (redirect_jump_2): Likewise.
19081 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19082 (relax_delay_slots): Likewise.
19083 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19084 (bbit_di): Likewise.
19085 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19086 * config/sh/sh.md (jump_compact): Likewise.
19087 * bb-reorder.c (rotate_loop): Likewise.
19088 (pass_duplicate_computed_gotos::execute): Likewise.
19089 (add_reg_crossing_jump_notes): Rename to...
19090 (update_crossing_jump_flags): ...this.
19091 (pass_partition_blocks::execute): Update accordingly.
19093 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19095 * tree.h: Remove extraneous template <>.
19097 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19099 * ipa.c (symtab_remove_unreachable_nodes): Remove
19100 symbol from comdat group if its body was eliminated.
19101 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19102 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19103 (symtab_unregister_node): ... this one.
19104 (verify_symtab_base): More strict checking of comdats.
19105 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19107 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19109 * tree-pass.h (make_pass_ipa_comdats): New pass.
19110 * timevar.def (TV_IPA_COMDATS): New timevar.
19111 * passes.def (pass_ipa_comdats): Add.
19112 * Makefile.in (OBJS): Add ipa-comdats.o
19113 * ipa-comdats.c: New file.
19115 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19117 * ipa.c (update_visibility_by_resolution_info): New function.
19118 (function_and_variable_visibility): Use it.
19120 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19122 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19124 (FOR_EACH_DEFINED_SYMBOL): New macro.
19125 (varpool_first_static_initializer, varpool_next_static_initializer,
19126 varpool_first_defined_variable, varpool_next_defined_variable):
19128 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19130 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19132 * ggc-page.c (ggc_handle_finalizers): Add comment.
19134 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19136 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19137 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19138 (ggc_internal_cleared_alloc): Likewise.
19139 * ggc-page.c (finalizer): New class.
19140 (vec_finalizer): Likewise.
19141 (globals::finalizers): New member.
19142 (globals::vec_finalizers): Likewise.
19143 (ggc_internal_alloc): Record the finalizer if any for the block being
19145 (ggc_handle_finalizers): New function.
19146 (ggc_collect): Call ggc_handle_finalizers.
19147 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19149 (ggc_internal_cleared_alloc): Likewise.
19150 (finalize): New function.
19151 (need_finalization_p): Likewise.
19152 (ggc_alloc): Install the type's destructor as the finalizer if it
19153 might do something.
19154 (ggc_cleared_alloc): Likewise.
19155 (ggc_vec_alloc): Likewise.
19156 (ggc_cleared_vec_alloc): Likewise.
19158 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19160 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19162 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19164 * alias.c (record_alias_subset): Adjust.
19165 * bitmap.c (bitmap_element_allocate): Likewise.
19166 (bitmap_gc_alloc_stat): Likewise.
19167 * cfg.c (init_flow): Likewise.
19168 (alloc_block): Likewise.
19169 (unchecked_make_edge): Likewise.
19170 * cfgloop.c (alloc_loop): Likewise.
19171 (flow_loops_find): Likewise.
19172 (rescan_loop_exit): Likewise.
19173 * cfgrtl.c (init_rtl_bb_info): Likewise.
19174 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19175 (cgraph_allocate_node): Likewise.
19176 (cgraph_create_edge_1): Likewise.
19177 (cgraph_allocate_init_indirect_info): Likewise.
19178 * cgraphclones.c (cgraph_clone_edge): Likewise.
19179 * cgraphunit.c (add_asm_node): Likewise.
19180 (init_lowered_empty_function): Likewise.
19181 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19182 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19183 (alpha_use_linkage): Likewise.
19184 * config/arc/arc.c (arc_init_machine_status): Likewise.
19185 * config/arm/arm.c (arm_init_machine_status): Likewise.
19186 * config/avr/avr.c (avr_init_machine_status): Likewise.
19187 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19188 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19189 * config/cris/cris.c (cris_init_machine_status): Likewise.
19190 * config/darwin.c (machopic_indirection_name): Likewise.
19191 (darwin_build_constant_cfstring): Likewise.
19192 (darwin_enter_string_into_cfstring_table): Likewise.
19193 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19194 * config/frv/frv.c (frv_init_machine_status): Likewise.
19195 * config/i386/i386.c (get_dllimport_decl): Likewise.
19196 (ix86_init_machine_status): Likewise.
19197 (assign_386_stack_local): Likewise.
19198 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19199 (i386_pe_maybe_record_exported_symbol): Likewise.
19200 (i386_pe_record_stub): Likewise.
19201 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19202 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19203 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19204 (m32c_note_pragma_address): Likewise.
19205 * config/mep/mep.c (mep_init_machine_status): Likewise.
19206 (mep_note_pragma_flag): Likewise.
19207 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19208 (mips16_local_alias): Likewise.
19209 (mips_init_machine_status): Likewise.
19210 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19211 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19212 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19213 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19214 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19215 * config/pa/pa.c (pa_init_machine_status): Likewise.
19216 (pa_get_deferred_plabel): Likewise.
19217 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19218 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19219 (rs6000_init_machine_status): Likewise.
19220 (output_toc): Likewise.
19221 * config/s390/s390.c (s390_init_machine_status): Likewise.
19222 * config/score/score.c (score_output_external): Likewise.
19223 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19224 * config/spu/spu.c (spu_init_machine_status): Likewise.
19225 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19226 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19227 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19228 * coverage.c (coverage_end_function): Likewise.
19229 * dbxout.c (dbxout_init): Likewise.
19230 * doc/gty.texi: Don't mention variable_size attribute.
19231 * dwarf2cfi.c (new_cfi): Adjust.
19232 (new_cfi_row): Likewise.
19233 (copy_cfi_row): Likewise.
19234 (create_cie_data): Likewise.
19235 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19236 (new_loc_descr): Likewise.
19237 (find_AT_string_in_table): Likewise.
19238 (add_addr_table_entry): Likewise.
19239 (new_die): Likewise.
19240 (add_var_loc_to_decl): Likewise.
19241 (clone_die): Likewise.
19242 (clone_as_declaration): Likewise.
19243 (break_out_comdat_types): Likewise.
19244 (new_loc_list): Likewise.
19245 (add_loc_descr_to_each): Likewise.
19246 (add_location_or_const_value_attribute): Likewise.
19247 (add_linkage_name): Likewise.
19248 (lookup_filename): Likewise.
19249 (dwarf2out_var_location): Likewise.
19250 (new_line_info_table): Likewise.
19251 (dwarf2out_init): Likewise.
19252 (mem_loc_descriptor): Likewise.
19253 (loc_descriptor): Likewise.
19254 (add_const_value_attribute): Likewise.
19255 (tree_add_const_value_attribute): Likewise.
19256 (comp_dir_string): Likewise.
19257 (dwarf2out_vms_debug_main_pointer): Likewise.
19258 (string_cst_pool_decl): Likewise.
19259 * emit-rtl.c (set_mem_attrs): Likewise.
19260 (get_reg_attrs): Likewise.
19261 (start_sequence): Likewise.
19262 (init_emit): Likewise.
19263 (init_emit_regs): Likewise.
19264 * except.c (init_eh_for_function): Likewise.
19265 (gen_eh_region): Likewise.
19266 (gen_eh_region_catch): Likewise.
19267 (gen_eh_landing_pad): Likewise.
19268 (add_call_site): Likewise.
19269 * function.c (add_frame_space): Likewise.
19270 (insert_temp_slot_address): Likewise.
19271 (assign_stack_temp_for_type): Likewise.
19272 (get_hard_reg_initial_val): Likewise.
19273 (allocate_struct_function): Likewise.
19274 (prepare_function_start): Likewise.
19275 (types_used_by_var_decl_insert): Likewise.
19276 * gengtype.c (variable_size_p): Remove function.
19277 (enum alloc_quantity): Remove enum.
19278 (write_typed_alloc_def): Remove function.
19279 (write_typed_struct_alloc_def): Likewise.
19280 (write_typed_typedef_alloc_def): Likewise.
19281 (write_typed_alloc_defns): Likewise.
19283 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19284 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19285 * ggc.h (ggc_alloc): new function.
19286 (ggc_cleared_alloc): Likewise.
19287 (ggc_vec_alloc): Template on type of vector element, and remove
19288 element size argument.
19289 (ggc_cleared_vec_alloc): Likewise.
19290 * gimple.c (gimple_build_omp_for): Adjust.
19291 (gimple_copy): Likewise.
19292 * ipa-cp.c (get_replacement_map): Likewise.
19293 (find_aggregate_values_for_callers_subset): Likewise.
19294 (known_aggs_to_agg_replacement_list): Likewise.
19295 * ipa-devirt.c (get_odr_type): Likewise.
19296 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19297 (read_agg_replacement_chain): Likewise.
19298 * loop-iv.c (get_simple_loop_desc): Likewise.
19299 * lto-cgraph.c (input_node_opt_summary): Likewise.
19300 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19301 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19302 (input_eh_region): Likewise.
19303 (input_eh_lp): Likewise.
19304 (input_cfg): Likewise.
19305 * optabs.c (set_optab_libfunc): Likewise.
19306 (init_tree_optimization_optabs): Likewise.
19307 (set_conv_libfunc): Likewise.
19308 * passes.c (do_per_function_toporder): Likewise.
19309 * rtl.h: Don't use variable_size gty attribute.
19310 * sese.c (if_region_set_false_region): Adjust.
19311 * stringpool.c (gt_pch_save_stringpool): Likewise.
19312 * target-globals.c (save_target_globals): Likewise.
19313 * toplev.c (general_init): Likewise.
19314 * trans-mem.c (record_tm_replacement): Likewise.
19315 (split_bb_make_tm_edge): Likewise.
19316 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19317 * tree-data-ref.h (lambda_vector_new): Likewise.
19318 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19319 * tree-iterator.c (tsi_link_before): Likewise.
19320 (tsi_link_after): Likewise.
19321 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19322 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19323 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19324 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19325 * tree-ssa.c (init_tree_ssa): Adjust.
19326 * tree-ssanames.c (set_range_info): Likewise.
19327 (get_ptr_info): Likewise.
19328 (duplicate_ssa_name_ptr_info): Likewise.
19329 (duplicate_ssa_name_range_info): Likewise.
19330 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19331 (unpack_ts_fixed_cst_value_fields): Likewise.
19332 * tree.c (build_fixed): Likewise.
19333 (build_real): Likewise.
19334 (build_string): Likewise.
19335 (decl_priority_info): Likewise.
19336 (decl_debug_expr_insert): Likewise.
19337 (decl_value_expr_insert): Likewise.
19338 (decl_debug_args_insert): Likewise.
19339 (type_hash_add): Likewise.
19340 (build_omp_clause): Likewise.
19341 * ubsan.c (decl_for_type_insert): Likewise.
19342 * varasm.c (get_unnamed_section): Likewise.
19343 (get_noswitch_section): Likewise.
19344 (get_section): Likewise.
19345 (get_block_for_section): Likewise.
19346 (create_block_symbol): Likewise.
19347 (build_constant_desc): Likewise.
19348 (create_constant_pool): Likewise.
19349 (force_const_mem): Likewise.
19350 (record_tm_clone_pair): Likewise.
19351 * varpool.c (varpool_create_empty_node): Likewise.
19353 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19355 * dwarf2out.c (tree_add_const_value_attribute): Call
19356 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19357 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19358 instead of ggc_internal_<x>alloc_stat.
19359 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19360 (ggc_realloc): Likewise.
19361 * ggc-none.c (ggc_internal_alloc): Likewise.
19362 (ggc_internal_cleared_alloc): Likewise.
19363 * ggc-page.c: Likewise.
19364 * ggc.h (ggc_internal_alloc_stat): Likewise.
19365 (ggc_internal_alloc): Remove macro.
19366 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19367 (ggc_internal_cleared_alloc): Remove macro.
19368 (GGC_RESIZEVEC): Adjust.
19369 (ggc_resizevar): Remove macro.
19370 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19371 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19372 (ggc_internal_vec_cleared_alloc): Remove macro.
19373 (ggc_alloc_atomic_stat): Drop _stat suffix.
19374 (ggc_alloc_atomic): Remove macro.
19375 (ggc_alloc_cleared_atomic): Remove macro.
19376 (ggc_alloc_string_stat): Drop _stat suffix.
19377 (ggc_alloc_string): Remove macro.
19378 (ggc_alloc_rtx_def_stat): Adjust.
19379 (ggc_alloc_tree_node_stat): Likewise.
19380 (ggc_alloc_cleared_tree_node_stat): Likewise.
19381 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19382 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19383 * gimple.c (gimple_build_omp_for): Likewise.
19384 (gimple_copy): Likewise.
19385 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19386 * toplev.c (realloc_for_line_map): Adjust.
19387 * tree-data-ref.h (lambda_vector_new): Likewise.
19388 * tree-phinodes.c (allocate_phi_node): Likewise.
19389 * tree.c (grow_tree_vec_stat): Likewise.
19390 * vec.h (va_gc::reserve): Adjust.
19392 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19394 * config/microblaze/microblaze.c (break_handler): New Declaration.
19395 (microblaze_break_function_p,microblaze_is_break_handler): New.
19396 (compute_frame_size): Use microblaze_break_function_p.
19397 Add the test of break_handler.
19398 (microblaze_function_prologue) : Add the test of variable
19399 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19400 (microblaze_function_epilogue) : Add the test of break_handler.
19401 (microblaze_globalize_label) : Add the test of break_handler.
19402 Check the name by BREAK_HANDLER_NAME.
19404 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19406 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19407 microblaze_is_break_handler test.
19408 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19409 Use SYMBOL_REF_DECL.
19411 * config/microblaze/microblaze-protos.h
19412 (microblaze_break_function_p,microblaze_is_break_handler):
19415 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19416 new MicroBlaze break_handler functions.
19418 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19420 * doc/extend.texi (Size of an asm): Move node text according
19421 to its @menu entry position.
19423 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19425 PR tree-optimization/61140
19426 PR tree-optimization/61150
19427 PR tree-optimization/61197
19428 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19430 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19432 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19434 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19436 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19437 __SIZEOF_INT128__ is defined.
19439 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19441 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19442 (rs6000_delegitimize_address): Use it.
19444 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19446 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19447 inplace argument. Store the new address in the original MEM when true.
19448 * emit-rtl.c (change_address_1): Likewise.
19449 (adjust_address_1, adjust_automodify_address_1, offset_address):
19450 Update accordingly.
19451 * rtl.h (plus_constant): Add an inplace argument.
19452 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19453 when true. Avoid generating (plus X (const_int 0)).
19454 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19455 in-place. Pass true to plus_constant.
19456 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19458 2014-05-16 Dehao Chen <dehao@google.com>
19460 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19462 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19465 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19467 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19469 2014-05-16 Dehao Chen <dehao@google.com>
19471 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19472 optimize_function_for_size_p.
19473 * regs.h (REG_FREQ_FROM_BB): Likewise.
19475 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19478 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19479 negt_reg_operand cases.
19480 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19482 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19484 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19486 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19489 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19492 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19494 * tree-cfg.c (dump_function_to_file): Dump the return type of
19495 functions, in a line to itself before the function body, mimicking
19496 the layout of a C function.
19498 2014-05-16 Dehao Chen <dehao@google.com>
19500 * cfghooks.c (make_forwarder_block): Use direct computation to
19501 get fall-through edge's count and frequency.
19503 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19505 * config/arc/arc.c (arc_init): Fix typo in error message.
19506 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19507 (split_stack_prologue_scratch_regno): Likewise.
19508 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19509 word from error message.
19511 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19513 * ira-costs.c: Fix typo in comment.
19515 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19517 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19519 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19521 * varpool.c (dump_varpool_node): Dump write-only flag.
19522 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19524 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19525 write-only variables.
19526 * ipa.c (process_references): New function.
19527 (set_readonly_bit): New function.
19528 (set_writeonly_bit): New function.
19529 (clear_addressable_bit): New function.
19530 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19531 fix handling of aliases.
19532 * cgraph.h (struct varpool_node): Add writeonly flag.
19534 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19536 PR rtl-optimization/60969
19537 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19538 Calculate costs for this case.
19540 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19542 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19543 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19545 2014-05-16 Richard Biener <rguenther@suse.de>
19547 PR tree-optimization/61194
19548 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19549 bool patterns ending in a COND_EXPR.
19551 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19553 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19555 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19557 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19558 where we were unable to cost an RTX.
19560 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19562 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19565 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19566 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19568 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19570 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19571 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19573 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19574 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19576 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19577 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19579 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19582 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19583 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19585 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19588 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19589 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19591 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19592 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19594 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19595 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19597 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19598 rotates and shifts.
19600 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19601 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19603 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19604 ZERO_EXTEND and SIGN_EXTEND better.
19606 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19607 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19609 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19610 logical operations.
19612 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19613 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19615 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19616 costs when costing loads and stores to memory.
19618 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19619 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
19621 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19624 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19626 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19628 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19629 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19631 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19633 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19635 (aarch64_rtx_mult_cost): New.
19636 (aarch64_rtx_costs): Use it, refactor as appropriate.
19638 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19639 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19641 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19642 emit instructions, return number of instructions which would
19644 (aarch64_add_constant): Update call to aarch64_build_constant.
19645 (aarch64_output_mi_thunk): Likewise.
19646 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19649 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19651 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19652 (TARGET_RTX_COSTS): Call it.
19654 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19656 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19657 (cortexa57_vector_cost): Likewise.
19658 (cortexa57_tunings): Use them.
19660 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19662 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19663 (cpu_addrcost_table): Use it.
19664 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19665 (aarch64_address_cost): Rewrite using aarch64_classify_address,
19668 2014-05-16 Richard Biener <rguenther@suse.de>
19670 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19671 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19672 (visit_phi): Ignore edges marked as not executable.
19673 (class cond_dom_walker): New.
19674 (cond_dom_walker::before_dom_children): Value-number
19675 control statements and mark successor edges as not
19676 executable if possible.
19677 (run_scc_vn): First walk all control statements in
19678 dominator order, marking edges as not executable.
19679 * tree-inline.c (copy_edges_for_bb): Be not confused
19680 about random edge flags.
19682 2014-05-16 Richard Biener <rguenther@suse.de>
19684 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19686 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
19689 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19690 (__TM_simple_begin): Use it.
19691 (__TM_begin): Likewise.
19693 2014-05-15 Martin Jambor <mjambor@suse.cz>
19696 * ipa-prop.c (update_indirect_edges_after_inlining): Check
19697 type_preserved flag when the indirect edge is polymorphic.
19699 2014-05-15 Martin Jambor <mjambor@suse.cz>
19701 PR tree-optimization/61090
19702 * tree-sra.c (sra_modify_expr): Pass the current gsi to
19703 build_ref_for_model.
19705 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19707 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19708 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19710 2014-05-15 Jakub Jelinek <jakub@redhat.com>
19712 PR tree-optimization/61158
19713 * fold-const.c (fold_binary_loc): If X is zero-extended and
19714 shiftc >= prec, make sure zerobits is all ones instead of
19715 invoking undefined behavior.
19717 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19719 * regcprop.h: New file.
19720 * regcprop.c (skip_debug_insn_p): New decl.
19721 (replace_oldest_value_reg): Check skip_debug_insn_p.
19722 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19723 * shrink-wrap.c: Include regcprop.h.
19724 (prepare_shrink_wrap): Call
19725 copyprop_hardreg_forward_bb_without_debug_insn.
19727 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19729 * shrink-wrap.h: Update comment.
19730 * shrink-wrap.c: Update comment.
19731 (next_block_for_reg): Rename to live_edge_for_reg.
19732 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19733 (move_insn_for_shrink_wrap): Split live_edge.
19734 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19736 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19738 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19740 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19741 * config/sparc/sparc.md (fptype_ut699): New attribute.
19742 (in_branch_delay): Return false if -mfix-ut699 is specified and
19743 fptype_ut699 is set to single.
19744 (truncdfsf2): Add fptype_ut699 attribute.
19745 (fix_truncdfsi2): Likewise.
19746 (floatsisf2): Change fptype attribute.
19747 (fix_truncsfsi2): Likewise.
19748 (negtf2_notv9): Delete.
19749 (negtf2_v9): Likewise.
19750 (negtf2_hq): New instruction.
19751 (negtf2): New instruction and splitter.
19752 (negdf2_notv9): Rewrite.
19753 (abstf2_notv9): Delete.
19754 (abstf2_hq_v9): Likewise.
19755 (abstf2_v9): Likewise.
19756 (abstf2_hq): New instruction.
19757 (abstf2): New instruction and splitter.
19758 (absdf2_notv9): Rewrite.
19760 2014-05-14 Cary Coutant <ccoutant@google.com>
19763 * opts.c (common_handle_option): Don't special-case "-g".
19764 (set_debug_level): Default to at least level 2 with "-g".
19766 2014-05-14 DJ Delorie <dj@redhat.com>
19768 * config/msp430/msp430.c (msp430_builtin): Add
19769 MSP430_BUILTIN_DELAY_CYCLES.
19770 (msp430_init_builtins): Register void __delay_cycles(long long).
19771 (msp430_builtin_decl): Add it.
19772 (cg_magic_constant): New.
19773 (msp430_expand_delay_cycles): New.
19774 (msp430_expand_builtin): Call it.
19775 (msp430_print_operand_raw): Change integer printing from "int" to
19777 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19778 (delay_cycles_start): New.
19779 (delay_cycles_end): New.
19780 (delay_cycles_32): New.
19781 (delay_cycles_32x): New.
19782 (delay_cycles_16): New.
19783 (delay_cycles_16x): New.
19784 (delay_cycles_2): New.
19785 (delay_cycles_1): New.
19786 * doc/extend.texi: Document __delay_cycles().
19788 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
19790 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19791 length attribute computation.
19793 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
19796 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19798 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
19801 * config/sparc/sparc.md: Fix types of low and high in DI constant
19802 splitter. Use gen_int_mode in some other splitters.
19804 2014-05-14 Martin Jambor <mjambor@suse.cz>
19807 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19809 2014-05-14 James Norris <jnorris@codesourcery.com>
19811 * omp-low.c (expand_parallel_call): Remove shadow variable.
19812 (expand_omp_taskreg): Likewise.
19814 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
19816 * common/config/i386/i386-common.c
19817 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19818 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19819 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19820 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19821 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19822 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19823 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19824 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19825 xsavecintrin.h, xsavesintrin.h.
19826 (x86_64-*-*): Ditto.
19827 * config/i386/clflushoptintrin.h: New.
19828 * config/i386/xsavecintrin.h: Ditto.
19829 * config/i386/xsavesintrin.h: Ditto.
19830 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19831 (bit_XSAVES): Ditto.
19832 (bit_XSAVES): Ditto.
19833 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19834 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19836 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19837 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19838 OPTION_MASK_ISA_XSAVES.
19839 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19840 -mxsavec, -mxsaves.
19841 (PTA_CLFLUSHOPT) Define.
19842 (PTA_XSAVEC): Ditto.
19843 (PTA_XSAVES): Ditto.
19844 (ix86_option_override_internal): Handle new options.
19845 (ix86_valid_target_attribute_inner_p): Ditto.
19846 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19847 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19848 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19849 (bdesc_special_args): Add __builtin_ia32_xsaves,
19850 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19851 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19852 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19853 (ix86_expand_builtin): Handle new builtins.
19854 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19855 (TARGET_CLFLUSHOPT_P): Ditto.
19856 (TARGET_XSAVEC): Ditto.
19857 (TARGET_XSAVEC_P): Ditto.
19858 (TARGET_XSAVES): Ditto.
19859 (TARGET_XSAVES_P): Ditto.
19860 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19861 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19862 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19864 (ANY_XRSTOR64): Ditto.
19866 (xrstor): Change into <xrstor>.
19867 (xrstor_rex64): Change into <xrstor>_rex64.
19868 (xrstor64): Change into <xrstor>64
19870 * config/i386/i386.opt (mclflushopt): New.
19873 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19875 * doc/invoke.texi: Document new options.
19877 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19879 PR rtl-optimization/60866
19880 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19881 Default it to -1. Pass it down to init_simplejump_data.
19882 (init_simplejump_data): New parameter old_seqno. Pass it down
19883 to get_seqno_for_a_jump.
19884 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
19885 initializing new jump seqno as a last resort. Add comment.
19886 (sel_redirect_edge_and_branch): Save old seqno of the conditional
19887 jump and pass it down to sel_init_new_insn.
19888 (sel_redirect_edge_and_branch_force): Likewise.
19890 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
19892 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19893 shifted values to avoid build warning.
19895 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19897 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19898 * cfgrtl.c (rtl_merge_blocks): Fix comment.
19899 (cfg_layout_merge_blocks): Likewise.
19900 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19902 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19904 PR rtl-optimization/60901
19905 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
19906 bb predecessor belongs to the same scheduling region. Adjust comment.
19908 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
19910 * doc/sourcebuild.texi: (dfp_hw): Document.
19911 (p8vector_hw): Likewise.
19912 (powerpc_eabi_ok): Likewise.
19913 (powerpc_elfv2): Likewise.
19914 (powerpc_htm_ok): Likewise.
19915 (ppc_recip_hw): Likewise.
19916 (vsx_hw): Likewise.
19918 2014-05-13 Cary Coutant <ccoutant@google.com>
19920 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
19922 2014-05-13 David Malcolm <dmalcolm@redhat.com>
19924 * gengtype-parse.c (require3): Eliminate in favor of...
19926 (require_template_declaration): Update to support optional single *
19929 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19930 (create_user_defined_type): Handle a single level of explicit
19931 pointerness within template arguments.
19932 (struct write_types_data): Add field "kind".
19933 (filter_type_name): Handle "*" character.
19934 (write_user_func_for_structure_ptr): Require a write_types_data
19935 rather than just a prefix string, so that we can look up the kind
19936 of the wtd and use it as an index into wrote_user_func_for_ptr,
19937 ensuring that such functions are written at most once. Support
19938 subclasses by invoking the marking function of the ultimate base class.
19939 (write_user_func_for_structure_body): Require a write_types_data
19940 rather than just a prefix string, so that we can pass this to
19941 write_user_func_for_structure_ptr.
19942 (write_func_for_structure): Likewise.
19943 (ggc_wtd): Add initializer of new "kind" field.
19944 (pch_wtd): Likewise.
19946 * gengtype.h (enum write_types_kinds): New.
19947 (struct type): Add field wrote_user_func_for_ptr to the "s"
19950 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19952 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19953 instead of const_binop.
19954 (fold_binary_loc): Likewise.
19956 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19958 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19959 calculation to match get_ref_base_and_extent.
19961 2014-05-13 Catherine Moore <clm@codesourcery.com>
19962 Sandra Loosemore <sandra@codesourcery.com>
19964 * configure.ac: Fix assembly for explicit JALR relocation check.
19965 * configure: Regenerate.
19967 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19969 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
19970 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
19971 Remove associated type declarations and initialisations.
19972 (arm_expand_neon_builtin): Likewise.
19973 (neon_emit_pair_result_insn): Delete.
19974 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
19975 * config/arm/neon.md (neon_vtrn<mode>): Delete.
19976 (neon_vzip<mode>): Likewise.
19977 (neon_vuzp<mode>): Likewise.
19979 2014-05-13 Richard Biener <rguenther@suse.de>
19982 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
19983 it needs revisiting whether the call still may be tail-called.
19985 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19987 * rtl.def (SYMBOL_REF): Remove middle "0" field.
19988 * rtl.h (block_symbol): Reduce number of fields to 2.
19989 (rtx_def): Add u2.symbol_ref_flags.
19990 (SYMBOL_REF_FLAGS): Use it.
19991 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
19992 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
19993 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
19994 Lower index of SYMBOL_REF_DATA.
19995 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
19996 Print SYMBOL_REF_FLAGS at the same time.
19997 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
19999 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20001 * rtl.def (VAR_LOCATION): Remove "i" field.
20002 * rtl.h (rtx_def): Add u2.var_location_status.
20003 (PAT_VAR_LOCATION_STATUS): Use it.
20004 (gen_rtx_VAR_LOCATION): Declare.
20005 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20006 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20007 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20009 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20011 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20012 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20014 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20016 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20017 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20018 * rtl.h (rtx_def): Add insn_uid to u2 field.
20019 (RTX_FLAG_CHECK8): Delete in favor of...
20020 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20021 (INSN_DELETED_P): Update accordingly.
20022 (INSN_UID): Use u2.insn_uid.
20023 (INSN_CHAIN_CODE_P): Define.
20024 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20025 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20026 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20027 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20028 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20029 indices accordingly.
20030 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20031 Update indices for insn-chain rtxes.
20032 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20033 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20034 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20035 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20036 * combine.c (try_combine): Likewise.
20037 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20039 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20041 * rtl.def (REG): Remove middle field.
20042 * rtl.h (rtx_def): Add orignal_regno to u2.
20043 (ORIGINAL_REGNO): Use it instead of field 1.
20044 (REG_ATTRS): Lower field index accordingly.
20045 * gengtype.c (adjust_field_rtx_def): Remove handling of
20046 ORIGINAL_REGNO. Move REG_ATTRS index down.
20047 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20048 code that prints the REGNO.
20050 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20052 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20055 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20057 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20059 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20061 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20062 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20064 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20066 * config/aarch64/aarch64-protos.h
20067 (aarch64_hard_regno_caller_save_mode): New prototype.
20068 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20070 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20072 2014-05-13 Christian Bruel <christian.bruel@st.com>
20074 * target.def (mode_switching): New hook vector.
20075 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20076 (mode_exit, modepriority_to_mode): Likewise.
20077 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20078 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20079 * target.h: Include tm.h and hard-reg-set.h.
20080 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20081 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20082 * doc/tm.texi Regenerate.
20083 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20084 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20085 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20086 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20087 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20088 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20089 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20090 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20091 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20092 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20093 (ix86_emit_mode_set): Hookify.
20094 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20096 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20097 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20098 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20099 (epiphany_mode_priority_to_mode): Remove declaration.
20100 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20101 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20102 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20104 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20105 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20106 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20108 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20111 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20112 is const0_rtx, return immediately. Don't test count == 0 when
20115 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20117 * Makefile.in: add shrink-wrap.o.
20118 * config/i386/i386.c: include "shrink-wrap.h"
20119 * function.c: Likewise.
20120 (requires_stack_frame_p, next_block_for_reg,
20121 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20122 dup_block_and_redirect): Move to shrink-wrap.c
20123 (thread_prologue_and_epilogue_insns): Extract three code segments
20124 as functions in shrink-wrap.c
20125 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20127 * shrink-wrap.c: New file.
20128 * shrink-wrap.h: New file.
20130 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20132 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20133 reference to Solaris.
20135 2014-05-12 Mike Stump <mikestump@comcast.net>
20138 * genattrtab.c (filename): Add.
20139 (convert_set_attr_alternative): Improve error message.
20140 (check_defs): Restore read_md_filename for error messages.
20141 (gen_insn): Save filename.
20143 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20145 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20146 -fno-local-ivars and -fivar-visibility.
20147 * c-family/c.opt: Make -Wshadow also implicitly enable
20150 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20152 * doc/tm.texi: Remove reference to deleted macro.
20153 * doc/tm.texi.in: Likewise.
20155 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20158 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20161 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20164 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20165 * config/arm/aout.h (License): Same.
20166 * config/arm/bpabi.h (License): Same.
20167 * config/arm/elf.h (License): Same.
20168 * config/arm/linux-elf.h (License): Same.
20169 * config/arm/linux-gas.h (License): Same.
20170 * config/arm/netbsd-elf.h (License): Same.
20171 * config/arm/uclinux-eabi.h (License): Same.
20172 * config/arm/uclinux-elf.h (License): Same.
20173 * config/arm/vxworks.h (License): Same.
20175 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20177 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20178 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20179 number of operands to 3.
20180 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20181 * tree-nested.c (convert_nonlocal_omp_clauses,
20182 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20183 * gimplify.c (gimplify_scan_omp_clauses): Handle
20184 OMP_CLAUSE_LINEAR_STMT.
20185 * omp-low.c (lower_rec_input_clauses): Fix typo.
20186 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20187 cast between Fortran boolean_type_node and C _Bool if
20190 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20192 PR tree-optimization/61136
20193 * wide-int.h (multiple_of_p): Define a version that doesn't return
20195 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20196 integer_zerop/const_binop pair.
20197 (multiple_of_p): Likewise, converting both operands to widest_int
20200 2014-05-09 Teresa Johnson <tejohnson@google.com>
20202 * cgraphunit.c (analyze_functions): Use correct dump file.
20204 2014-05-09 Florian Weimer <fweimer@redhat.com>
20206 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20208 (stack_protect_return_slot_p): New function.
20209 (expand_used_vars): Call stack_protect_decl_p and
20210 stack_protect_return_slot_p for -fstack-protector-strong.
20212 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20213 Andrew Haley <aph@redhat.com>
20214 Richard Sandiford <rdsandiford@googlemail.com>
20216 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20219 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20221 PR middle-end/61111
20222 * fold-const.c (fold_binary_loc): Changed width of mask.
20224 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20226 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20227 unsigned int initializers for regno_in, regno_out.
20229 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20232 * config/avr/avr.md (cc): Add new attribute set_vzn.
20233 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20234 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20235 with INC, DEC or NEG.
20236 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20237 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20238 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20240 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20243 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20245 * wide-int.cc (UTItype): Define.
20246 (UDWtype): Define for appropriate W_TYPE_SIZE.
20248 2014-05-09 Richard Biener <rguenther@suse.de>
20250 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20251 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20252 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20253 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20254 ssa_propagate): Adjust.
20256 2014-05-08 Jeff Law <law@redhat.com>
20258 PR tree-optimization/61009
20259 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20260 tri-state rather than a boolean. When a block is too big to
20261 thread through, inform caller via negative return value.
20262 (thread_across_edge): If a block was too big for normal threading,
20263 then it's too big for a joiner too, so remove temporary equivalences
20264 and return immediately.
20266 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20267 Matthias Klose <doko@ubuntu.com>
20270 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20272 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20275 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20277 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20280 * config/alpha/alpha.c: Include gimple-iterator.h.
20281 (alpha_gimple_fold_builtin): New function. Move
20282 ALPHA_BUILTIN_UMULH folding from ...
20283 (alpha_fold_builtin): ... here.
20284 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20286 2014-05-08 Wei Mi <wmi@google.com>
20289 * config/i386/i386.c (ix86_compute_frame_layout): Update
20290 preferred_stack_boundary for call, expanded from tls descriptor.
20291 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20292 to depend on SP register.
20293 (*tls_local_dynamic_base_32_gnu): Ditto.
20294 (*tls_local_dynamic_32_once): Ditto.
20295 (tls_global_dynamic_64_<mode>): Set
20296 ix86_tls_descriptor_calls_expanded_in_cfun.
20297 (tls_local_dynamic_base_64_<mode>): Ditto.
20298 (tls_global_dynamic_32): Set
20299 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20300 to depend on SP register.
20301 (tls_local_dynamic_base_32): Ditto.
20303 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20305 * config/arm/arm_neon.h: Update comment.
20306 * config/arm/neon-docgen.ml: Delete.
20307 * config/arm/neon-gen.ml: Delete.
20308 * doc/arm-neon-intrinsics.texi: Update comment.
20310 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20312 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20314 (vand, vorr, veor, vorn, vbic): Remove.
20315 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20317 (neon_vsub_unspec): Likewise.
20318 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20320 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20322 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20323 (vadd_s16): Likewise.
20324 (vadd_s32): Likewise.
20325 (vadd_f32): Likewise.
20326 (vadd_u8): Likewise.
20327 (vadd_u16): Likewise.
20328 (vadd_u32): Likewise.
20329 (vadd_s64): Likewise.
20330 (vadd_u64): Likewise.
20331 (vaddq_s8): Likewise.
20332 (vaddq_s16): Likewise.
20333 (vaddq_s32): Likewise.
20334 (vaddq_s64): Likewise.
20335 (vaddq_f32): Likewise.
20336 (vaddq_u8): Likewise.
20337 (vaddq_u16): Likewise.
20338 (vaddq_u32): Likewise.
20339 (vaddq_u64): Likewise.
20340 (vmul_s8): Likewise.
20341 (vmul_s16): Likewise.
20342 (vmul_s32): Likewise.
20343 (vmul_f32): Likewise.
20344 (vmul_u8): Likewise.
20345 (vmul_u16): Likewise.
20346 (vmul_u32): Likewise.
20347 (vmul_p8): Likewise.
20348 (vmulq_s8): Likewise.
20349 (vmulq_s16): Likewise.
20350 (vmulq_s32): Likewise.
20351 (vmulq_f32): Likewise.
20352 (vmulq_u8): Likewise.
20353 (vmulq_u16): Likewise.
20354 (vmulq_u32): Likewise.
20355 (vsub_s8): Likewise.
20356 (vsub_s16): Likewise.
20357 (vsub_s32): Likewise.
20358 (vsub_f32): Likewise.
20359 (vsub_u8): Likewise.
20360 (vsub_u16): Likewise.
20361 (vsub_u32): Likewise.
20362 (vsub_s64): Likewise.
20363 (vsub_u64): Likewise.
20364 (vsubq_s8): Likewise.
20365 (vsubq_s16): Likewise.
20366 (vsubq_s32): Likewise.
20367 (vsubq_s64): Likewise.
20368 (vsubq_f32): Likewise.
20369 (vsubq_u8): Likewise.
20370 (vsubq_u16): Likewise.
20371 (vsubq_u32): Likewise.
20372 (vsubq_u64): Likewise.
20373 (vand_s8): Likewise.
20374 (vand_s16): Likewise.
20375 (vand_s32): Likewise.
20376 (vand_u8): Likewise.
20377 (vand_u16): Likewise.
20378 (vand_u32): Likewise.
20379 (vand_s64): Likewise.
20380 (vand_u64): Likewise.
20381 (vandq_s8): Likewise.
20382 (vandq_s16): Likewise.
20383 (vandq_s32): Likewise.
20384 (vandq_s64): Likewise.
20385 (vandq_u8): Likewise.
20386 (vandq_u16): Likewise.
20387 (vandq_u32): Likewise.
20388 (vandq_u64): Likewise.
20389 (vorr_s8): Likewise.
20390 (vorr_s16): Likewise.
20391 (vorr_s32): Likewise.
20392 (vorr_u8): Likewise.
20393 (vorr_u16): Likewise.
20394 (vorr_u32): Likewise.
20395 (vorr_s64): Likewise.
20396 (vorr_u64): Likewise.
20397 (vorrq_s8): Likewise.
20398 (vorrq_s16): Likewise.
20399 (vorrq_s32): Likewise.
20400 (vorrq_s64): Likewise.
20401 (vorrq_u8): Likewise.
20402 (vorrq_u16): Likewise.
20403 (vorrq_u32): Likewise.
20404 (vorrq_u64): Likewise.
20405 (veor_s8): Likewise.
20406 (veor_s16): Likewise.
20407 (veor_s32): Likewise.
20408 (veor_u8): Likewise.
20409 (veor_u16): Likewise.
20410 (veor_u32): Likewise.
20411 (veor_s64): Likewise.
20412 (veor_u64): Likewise.
20413 (veorq_s8): Likewise.
20414 (veorq_s16): Likewise.
20415 (veorq_s32): Likewise.
20416 (veorq_s64): Likewise.
20417 (veorq_u8): Likewise.
20418 (veorq_u16): Likewise.
20419 (veorq_u32): Likewise.
20420 (veorq_u64): Likewise.
20421 (vbic_s8): Likewise.
20422 (vbic_s16): Likewise.
20423 (vbic_s32): Likewise.
20424 (vbic_u8): Likewise.
20425 (vbic_u16): Likewise.
20426 (vbic_u32): Likewise.
20427 (vbic_s64): Likewise.
20428 (vbic_u64): Likewise.
20429 (vbicq_s8): Likewise.
20430 (vbicq_s16): Likewise.
20431 (vbicq_s32): Likewise.
20432 (vbicq_s64): Likewise.
20433 (vbicq_u8): Likewise.
20434 (vbicq_u16): Likewise.
20435 (vbicq_u32): Likewise.
20436 (vbicq_u64): Likewise.
20437 (vorn_s8): Likewise.
20438 (vorn_s16): Likewise.
20439 (vorn_s32): Likewise.
20440 (vorn_u8): Likewise.
20441 (vorn_u16): Likewise.
20442 (vorn_u32): Likewise.
20443 (vorn_s64): Likewise.
20444 (vorn_u64): Likewise.
20445 (vornq_s8): Likewise.
20446 (vornq_s16): Likewise.
20447 (vornq_s32): Likewise.
20448 (vornq_s64): Likewise.
20449 (vornq_u8): Likewise.
20450 (vornq_u16): Likewise.
20451 (vornq_u32): Likewise.
20452 (vornq_u64): Likewise.
20454 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20456 * wide-int.cc (UTItype): Define.
20457 (UDWtype): Define for appropriate W_TYPE_SIZE.
20459 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20461 PR tree-optimization/59100
20462 * tree-ssa-phiopt.c: Include tree-inline.h.
20463 (neutral_element_p, absorbing_element_p): New functions.
20464 (value_replacement): Handle conditional binary operations with a
20465 neutral or absorbing element.
20467 2014-05-08 Richard Biener <rguenther@suse.de>
20469 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20470 folding the expression.
20471 (valueize_expr): Remove.
20472 (visit_reference_op_load): Do not valueize the result of
20474 (simplify_binary_expression): Likewise.
20475 (simplify_unary_expression): Likewise.
20477 2014-05-08 Richard Biener <rguenther@suse.de>
20479 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20480 looking at TYPE_ARG_TYPES.
20482 2014-05-08 Richard Biener <rguenther@suse.de>
20484 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20485 pointer propagation special-case.
20487 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20489 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20490 core part of address expressions.
20492 2014-05-08 Alan Modra <amodra@gmail.com>
20495 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20496 loads and stores when -mno-strict-align at any alignment.
20497 (expand_block_clear): Similarly. Also correct calculation of
20500 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20502 PR middle-end/39246
20503 * tree-complex.c (expand_complex_move): Keep line info when expanding
20505 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20506 of complex expression. Use new argument to display correct location
20507 for values coming from phi statement.
20508 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20509 (warn_uninitialized_phi): Pass location of phi argument to
20511 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20512 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20514 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20516 * config/rs6000/predicates.md (indexed_address_mem): New.
20517 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20518 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20519 fpstore_ux, fpstore_u.
20520 (sign_extend, indexed, update): New.
20521 (cell_micro): Adjust.
20522 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20523 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20524 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20525 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20526 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20527 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20528 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20529 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20530 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20531 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20532 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20533 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20534 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20535 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20536 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20538 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20539 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20540 *vsx_extract_<mode>_store): Adjust.
20541 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20542 is_cracked_insn, insn_must_be_first_in_group,
20543 insn_must_be_last_in_group): Adjust.
20545 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20547 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20548 ppc440-fpstore): Adjust.
20549 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20550 ppc476-fpstore): Adjust.
20551 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20552 ppc601-fpstore): Adjust.
20553 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20555 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20557 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20558 ppc7450-fpstore): Adjust.
20559 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20560 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20561 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20563 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20564 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20565 cell-fpstore, cell-fpstore-update): Adjust.
20566 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20567 ppce300c3_store, ppce300c3_fpstore): Adjust.
20568 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20569 e500mc_fpstore): Adjust.
20570 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20571 e500mc64_store, e500mc64_fpstore): Adjust.
20572 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20573 e5500_fpstore): Adjust.
20574 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20575 e6500_fpstore): Adjust.
20576 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20578 * config/rs6000/power4.md (power4-load, power4-load-ext,
20579 power4-load-ext-update, power4-load-ext-update-indexed,
20580 power4-load-update-indexed, power4-load-update, power4-fpload,
20581 power4-fpload-update, power4-store, power4-store-update,
20582 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20584 * config/rs6000/power5.md (power5-load, power5-load-ext,
20585 power5-load-ext-update, power5-load-ext-update-indexed,
20586 power5-load-update-indexed, power5-load-update, power5-fpload,
20587 power5-fpload-update, power5-store, power5-store-update,
20588 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20590 * config/rs6000/power6.md (power6-load, power6-load-ext,
20591 power6-load-update, power6-load-update-indexed,
20592 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20593 power6-fpload-update, power6-store, power6-store-update,
20594 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20596 * config/rs6000/power7.md (power7-load, power7-load-ext,
20597 power7-load-update, power7-load-update-indexed,
20598 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20599 power7-fpload-update, power7-store, power7-store-update,
20600 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20602 * config/rs6000/power8.md (power8-load, power8-load-update,
20603 power8-load-ext, power8-load-ext-update, power8-fpload,
20604 power8-fpload-update, power8-store, power8-store-update-indexed,
20605 power8-fpstore, power8-fpstore-update): Adjust.
20606 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20608 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20609 titan_lsu_store, titan_lsu_fpstore): Adjust.
20610 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20612 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20615 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20616 unrolled byte insns. Emit address increments after move insns.
20618 2014-05-07 David Malcolm <dmalcolm@redhat.com>
20620 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20621 const_gimple, rather than a gimple.
20622 (gimple_call_builtin_p): Likewise, for the three variants.
20624 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20625 (gimple_call_builtin_p): Likewise, for the three variants.
20627 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20629 PR tree-optimization/61095
20630 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20632 2014-05-07 Richard Biener <rguenther@suse.de>
20634 PR tree-optimization/61034
20635 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20636 (maybe_skip_until): Use translate to take into account
20637 lattices when trying to do disambiguations.
20638 (get_continuation_for_phi_1): Likewise.
20639 (get_continuation_for_phi): Adjust for added translate arguments.
20640 (walk_non_aliased_vuses): Likewise.
20641 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20642 (walk_non_aliased_vuses): Likewise.
20643 (call_may_clobber_ref_p_1): Declare.
20644 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20645 calls. Stop early if we are only supposed to disambiguate.
20646 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20648 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
20650 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20651 Emit an error when the function has arguments.
20653 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20655 * cfgloop.h (unswitch_loops): Remove.
20656 * doc/passes.texi: Remove references to loop-unswitch.c
20657 * timevar.def (TV_LOOP_UNSWITCH): Remove.
20659 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
20661 * tree-vect-data-refs.c (vect_grouped_load_supported): New
20662 check for loads group of length 3.
20663 (vect_permute_load_chain): New permutations for loads group of
20665 * tree-vect-stmts.c (vect_model_load_cost): Change cost
20666 of vec_perm_shuffle for the new permutations.
20668 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
20670 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20671 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20672 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20673 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20674 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20675 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20676 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20677 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20679 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20681 * loop-unswitch.c: Delete.
20683 2014-05-07 Richard Biener <rguenther@suse.de>
20685 * config.gcc: Always set need_64bit_hwint to yes.
20687 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
20689 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20690 of using optimize_size.
20692 2014-05-06 Mike Stump <mikestump@comcast.net>
20694 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20696 2014-05-06 Joseph Myers <joseph@codesourcery.com>
20698 * config/i386/sse.md (*mov<mode>_internal)
20699 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20700 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20701 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20702 (*<code><mode>3, *andnot<mode>3<mask_name>)
20703 (<mask_codefor><code><mode>3<mask_name>): Only consider
20704 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20706 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20709 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20711 * lra-constraints.c (valid_address_p): Move earlier in file.
20712 Add a constraint argument to the address_info version.
20713 (satisfies_memory_constraint_p): New function.
20714 (satisfies_address_constraint_p): Likewise.
20715 (process_alt_operands, curr_insn_transform): Use them.
20716 (process_address): Pass the constraint to valid_address_p when
20717 checking address operands.
20719 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
20721 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20722 to their respective blocks. Fix inadvertent use of "node".
20724 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20726 * emit-rtl.c (init_derived_machine_modes): New functionm, split
20728 (init_emit_once): ...here.
20729 * rtl.h (init_derived_machine_modes): Declare.
20730 * toplev.c (do_compile): Call it even if no_backend.
20732 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
20733 Mike Stump <mikestump@comcast.net>
20734 Richard Sandiford <rdsandiford@googlemail.com>
20735 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20737 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20738 (rtx_equal_for_memref_p): Update comment.
20739 (adjust_offset_for_component_ref): Use wide-int interfaces.
20740 * builtins.c (get_object_alignment_2): Likewise.
20741 (c_readstr): Likewise.
20742 (target_char_cast): Add comment.
20743 (determine_block_size): Use wide-int interfaces.
20744 (expand_builtin_signbit): Likewise.
20745 (fold_builtin_int_roundingfn): Likewise.
20746 (fold_builtin_bitop): Likewise.
20747 (fold_builtin_bswap): Likewise.
20748 (fold_builtin_logarithm): Use signop.
20749 (fold_builtin_pow): Likewise.
20750 (fold_builtin_memory_op): Use wide-int interfaces.
20751 (fold_builtin_object_size): Likewise.
20752 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20753 nb_iterations_estimate.
20754 (record_niter_bound): Use wide-int interfaces.
20755 (get_estimated_loop_iterations_int): Likewise.
20756 (get_estimated_loop_iterations): Likewise.
20757 (get_max_loop_iterations): Likewise.
20758 * cfgloop.h: Include wide-int.h.
20759 (struct nb_iter_bound): Change bound to widest_int.
20760 (struct loop): Change nb_iterations_upper_bound and
20761 nb_iterations_estimate to widest_int.
20762 (record_niter_bound): Switch to use widest_int.
20763 (get_estimated_loop_iterations): Likewise.
20764 (get_max_loop_iterations): Likewise.
20765 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20766 update for wide-int.
20767 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20768 * combine.c (try_combine): Likewise.
20769 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20770 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20772 (aarch64_float_const_representable_p): Likewise.
20773 * config/arc/arc.c: Include wide-int.h.
20774 (arc_can_use_doloop_p): Use wide-int interfaces.
20775 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20776 (vfp3_const_double_index): Likewise.
20777 * config/avr/avr.c (avr_out_round): Likewise.
20778 (avr_fold_builtin): Likewise.
20779 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20780 (bfin_can_use_doloop_p): Likewise.
20781 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20782 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20783 * config/i386/i386.c: Include wide-int.h.
20784 (ix86_data_alignment): Use wide-int interfaces.
20785 (ix86_local_alignment): Likewise.
20786 (ix86_emit_swsqrtsf): Update real_from_integer.
20787 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20788 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20789 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20790 (zero_constant): Likewise.
20791 (input_operand): Likewise.
20792 (splat_input_operand): Likewise.
20793 (non_logical_cint_operand): Change const_double to const_wide_int.
20794 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20795 (easy_altivec_constant): Remove comment.
20796 (paired_expand_vector_init): Use CONSTANT_P.
20797 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20798 (rs6000_emit_move): Update checks.
20799 (rs6000_aggregate_candidate): Use wide-int interfaces.
20800 (rs6000_expand_ternop_builtin): Likewise.
20801 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20802 (rs6000_assemble_integer): Likewise.
20803 (rs6000_hash_constant): Likewise.
20804 (output_toc): Likewise.
20805 (rs6000_rtx_costs): Likewise.
20806 (rs6000_emit_swrsqrt); Update call to real_from_integer.
20807 * config/rs6000/rs6000-c.c: Include wide-int.h.
20808 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20809 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20810 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20811 Handle CONST_WIDE_INT.
20812 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20813 Use tree_fits_uhwi_p.
20814 * config/sparc/sparc.c: Include wide-int.h.
20815 (sparc_fold_builtin): Use wide-int interfaces.
20816 * config/vax/vax.c: Include wide-int.h.
20817 (vax_float_literal): Use real_from_integer.
20818 * coretypes.h (struct hwivec_def): New.
20820 (const_hwivec): New.
20821 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20822 (equiv_constant): Handle CONST_WIDE_INT.
20823 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20824 (cselib_hash_rtx): Handle CONST_WIDE_INT.
20825 * dbxout.c (stabstr_U): Use wide-int interfaces.
20826 (dbxout_type): Update to use cst_fits_shwi_p.
20827 * defaults.h (LOG2_BITS_PER_UNIT): Define.
20828 (TARGET_SUPPORTS_WIDE_INT): Add default.
20829 * dfp.c: Include wide-int.h.
20830 (decimal_real_to_integer2): Use wide-int interfaces and rename to
20831 decimal_real_to_integer.
20832 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20833 decimal_real_to_integer.
20834 * doc/generic.texi (Constant expressions): Update for wide_int.
20835 * doc/rtl.texi (const_double): Likewise.
20836 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20837 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20838 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20839 (REAL_VALUE_FROM_INT): Remove.
20840 (TARGET_SUPPORTS_WIDE_INT): New.
20841 * doc/tm.texi: Regenerate.
20842 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20843 * double-int.h: Include wide-int.h.
20844 (struct wi::int_traits): New.
20845 * dwarf2out.c (get_full_len): New.
20846 (dw_val_equal_p): Add case dw_val_class_wide_int.
20847 (size_of_loc_descr): Likewise.
20848 (output_loc_operands): Likewise.
20849 (insert_double): Remove.
20850 (insert_wide_int): New.
20851 (add_AT_wide): New.
20852 (print_die): Add case dw_val_class_wide_int.
20853 (attr_checksum): Likewise.
20854 (attr_checksum_ordered): Likewise.
20855 (same_dw_val_p): Likewise.
20856 (size_of_die): Likewise.
20857 (value_format): Likewise.
20858 (output_die): Likewise.
20859 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20861 (clz_loc_descriptor): Use wide-int interfaces.
20862 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
20863 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
20864 (round_up_to_align): Use wide-int interfaces.
20865 (field_byte_offset): Likewise.
20866 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
20867 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
20868 CONST_DOUBLE handling. Use wide-int interfaces.
20869 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
20870 (gen_enumeration_type_die): Use add_AT_wide.
20871 (hash_loc_operands): Add case dw_val_class_wide_int.
20872 (compare_loc_operands): Likewise.
20873 * dwarf2out.h: Include wide-int.h.
20874 (wide_int_ptr): New.
20875 (enum dw_val_class): Add dw_val_class_wide_int.
20876 (struct dw_val_struct): Add val_wide.
20877 * emit-rtl.c (const_wide_int_htab): New.
20878 (const_wide_int_htab_hash): New.
20879 (const_wide_int_htab_eq): New.
20880 (lookup_const_wide_int): New.
20881 (const_double_htab_hash): Use wide-int interfaces.
20882 (const_double_htab_eq): Likewise.
20883 (rtx_to_double_int): Conditionally compile for wide-int.
20884 (immed_double_int_const): Rename to immed_wide_int_const and
20885 update for wide-int.
20886 (immed_double_const): Conditionally compile for wide-int.
20887 (init_emit_once): Use wide-int interfaces.
20888 * explow.c (plus_constant): Likewise.
20889 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
20890 (lshift_value): Use wide-int interfaces.
20891 (expand_mult): Likewise.
20892 (choose_multiplier): Likewise.
20893 (expand_smod_pow2): Likewise.
20894 (make_tree): Likewise.
20895 * expr.c (convert_modes): Consolidate handling of constants.
20896 Use wide-int interfaces.
20897 (emit_group_load_1): Add note.
20898 (store_expr): Update comment.
20899 (get_inner_reference): Use wide-int interfaces.
20900 (expand_constructor): Update comment.
20901 (expand_expr_real_2): Use wide-int interfaces.
20902 (expand_expr_real_1): Likewise.
20903 (reduce_to_bit_field_precision): Likewise.
20904 (const_vector_from_tree): Likewise.
20905 * final.c: Include wide-int-print.h.
20906 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
20907 * fixed-value.c: Include wide-int.h.
20908 (fixed_from_string): Use wide-int interfaces.
20909 (fixed_to_decimal): Likewise.
20910 (fixed_convert_from_real): Likewise.
20911 (real_convert_from_fixed): Likewise.
20912 * fold-const.h (mem_ref_offset): Return an offset_int.
20913 (div_if_zero_remainder): Remove code parameter.
20914 * fold-const.c (div_if_zero_remainder): Remove code parameter.
20915 Use wide-int interfaces.
20916 (may_negate_without_overflow_p): Use wide-int interfaces.
20917 (negate_expr_p): Likewise.
20918 (fold_negate_expr): Likewise.
20919 (int_const_binop_1): Likewise.
20920 (const_binop): Likewise.
20921 (fold_convert_const_int_from_int): Likewise.
20922 (fold_convert_const_int_from_real): Likewise.
20923 (fold_convert_const_int_from_fixed): Likewise.
20924 (fold_convert_const_fixed_from_int): Likewise.
20925 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20926 (sign_bit_p): Use wide-int interfaces.
20927 (make_range_step): Likewise.
20928 (build_range_check): Likewise. Pass an integer of the correct type
20929 instead of using integer_one_node.
20930 (range_predecessor): Pass an integer of the correct type instead
20931 of using integer_one_node.
20932 (range_successor): Likewise.
20933 (merge_ranges): Likewise.
20934 (unextend): Use wide-int interfaces.
20935 (extract_muldiv_1): Likewise.
20936 (fold_div_compare): Likewise.
20937 (fold_single_bit_test): Likewise.
20938 (fold_sign_changed_comparison): Likewise.
20939 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20940 (fold_plusminus_mult_expr): Use wide-int interfaces.
20941 (native_encode_int): Likewise.
20942 (native_interpret_int): Likewise.
20943 (fold_unary_loc): Likewise.
20944 (pointer_may_wrap_p): Likewise.
20945 (size_low_cst): Likewise.
20946 (mask_with_tz): Likewise.
20947 (fold_binary_loc): Likewise.
20948 (fold_ternary_loc): Likewise.
20949 (multiple_of_p): Likewise.
20950 (tree_call_nonnegative_warnv_p): Update calls to
20951 tree_int_cst_min_precision and real_from_integer.
20952 (fold_negate_const): Use wide-int interfaces.
20953 (fold_abs_const): Likewise.
20954 (fold_relational_const): Use tree_int_cst_lt.
20955 (round_up_loc): Use wide-int interfaces.
20956 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20957 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20958 * gengtype.c: Remove include of double-int.h.
20959 (do_typedef): Use wide-int interfaces.
20960 (open_base_files): Add wide-int.h.
20961 (main): Add offset_int and widest_int typedefs.
20962 * gengtype-lex.l: Handle "^".
20963 (CXX_KEYWORD): Add "static".
20964 * gengtype-parse.c (require3): New.
20965 (require_template_declaration): Handle constant template arguments
20966 and nested templates.
20967 * gengtype-state.c: Don't include "double-int.h".
20968 * genpreds.c (write_one_predicate_function): Update comment.
20969 (write_tm_constrs_h): Add check for hval and lval use in
20971 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
20972 (add_to_sequence): Likewise.
20973 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
20974 and const_double_operand.
20975 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
20977 * gimple-fold.c (get_base_constructor): Likewise.
20978 (fold_array_ctor_reference): Likewise.
20979 (fold_nonarray_ctor_reference): Likewise.
20980 (fold_const_aggregate_ref_1): Likewise.
20981 (gimple_val_nonnegative_real_p): Likewise.
20982 (gimple_fold_indirect_ref): Likewise.
20983 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
20984 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
20985 (struct slsr_cand_d): Change index to be widest_int.
20986 (struct incr_info_d): Change incr to be widest_int.
20987 (alloc_cand_and_find_basis): Use wide-int interfaces.
20988 (slsr_process_phi): Likewise.
20989 (backtrace_base_for_ref): Likewise. Return a widest_int.
20990 (restructure_reference): Take a widest_int instead of a double_int.
20991 (slsr_process_ref): Use wide-int interfaces.
20992 (create_mul_ssa_cand): Likewise.
20993 (create_mul_imm_cand): Likewise.
20994 (create_add_ssa_cand): Likewise.
20995 (create_add_imm_cand): Take a widest_int instead of a double_int.
20996 (slsr_process_add): Use wide-int interfaces.
20997 (slsr_process_cast): Likewise.
20998 (slsr_process_copy): Likewise.
20999 (dump_candidate): Likewise.
21000 (dump_incr_vec): Likewise.
21001 (replace_ref): Likewise.
21002 (cand_increment): Likewise. Return a widest_int.
21003 (cand_abs_increment): Likewise.
21004 (replace_mult_candidate): Take a widest_int instead of a double_int.
21005 (replace_unconditional_candidate): Use wide-int interfaces.
21006 (incr_vec_index): Take a widest_int instead of a double_int.
21007 (create_add_on_incoming_edge): Likewise.
21008 (create_phi_basis): Use wide-int interfaces.
21009 (replace_conditional_candidate): Likewise.
21010 (record_increment): Take a widest_int instead of a double_int.
21011 (record_phi_increments): Use wide-int interfaces.
21012 (phi_incr_cost): Take a widest_int instead of a double_int.
21013 (lowest_cost_path): Likewise.
21014 (total_savings): Likewise.
21015 (analyze_increments): Use wide-int interfaces.
21016 (ncd_with_phi): Take a widest_int instead of a double_int.
21017 (ncd_of_cand_and_phis): Likewise.
21018 (nearest_common_dominator_for_cands): Likewise.
21019 (insert_initializers): Use wide-int interfaces.
21020 (all_phi_incrs_profitable): Likewise.
21021 (replace_one_candidate): Likewise.
21022 (replace_profitable_candidates): Likewise.
21023 * godump.c: Include wide-int-print.h.
21024 (go_output_typedef): Use wide-int interfaces.
21025 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21026 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21027 (build_loop_iteration_domains): Likewise.
21028 * hooks.h: Include wide-int.h rather than double-int.h.
21029 (hook_bool_dint_dint_uint_bool_true): Delete.
21030 (hook_bool_wint_wint_uint_bool_true): Declare.
21031 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21032 (hook_bool_wint_wint_uint_bool_true): New.
21033 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21035 (ubsan_expand_si_overflow_mul_check): Likewise.
21036 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21037 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21038 (get_ancestor_addr_info): Likewise.
21039 (ipa_modify_call_arguments): Likewise.
21040 * loop-doloop.c (doloop_modify): Likewise.
21041 (doloop_optimize): Likewise.
21042 * loop-iv.c (iv_number_of_iterations): Likewise.
21043 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21044 (unroll_loop_constant_iterations): Likewise.
21045 (decide_unroll_runtime_iterations): Likewise.
21046 (unroll_loop_runtime_iterations): Likewise.
21047 (decide_peel_simple): Likewise.
21048 (decide_unroll_stupid): Likewise.
21049 * lto-streamer-in.c (streamer_read_wi): Add.
21050 (input_cfg): Use wide-int interfaces.
21051 (lto_input_tree_1): Likewise.
21052 * lto-streamer-out.c (streamer_write_wi): Add.
21053 (hash_tree): Use wide-int interfaces.
21054 (output_cfg): Likewise.
21055 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21056 (GTFILES): Add wide-int.h and signop.h.
21057 (TAGS): Look for .cc files too.
21058 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21059 * optabs.c (expand_subword_shift): Likewise.
21060 (expand_doubleword_shift): Likewise.
21061 (expand_absneg_bit): Likewise.
21062 (expand_copysign_absneg): Likewise.
21063 (expand_copysign_bit): Likewise.
21064 * postreload.c (reload_cse_simplify_set): Likewise.
21065 * predict.c (predict_iv_comparison): Likewise.
21066 * pretty-print.h: Include wide-int-print.h.
21068 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21069 * print-tree.c: Include wide-int-print.h.
21070 (print_node_brief): Use wide-int interfaces.
21071 (print_node): Likewise.
21072 * read-rtl.c (validate_const_wide_int): New.
21073 (read_rtx_code): Add CONST_WIDE_INT case.
21074 * real.c: Include wide-int.h.
21075 (real_to_integer2): Delete.
21076 (real_to_integer): New function, returning a wide_int.
21077 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21078 (ten_to_ptwo): Update call to real_from_integer.
21079 (real_digit): Likewise.
21080 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21081 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21082 (REAL_VALUE_TO_INT): Delete.
21083 (real_to_integer): Declare a wide-int form.
21084 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21085 * recog.c (const_int_operand): Improve comment.
21086 (const_scalar_int_operand): New.
21087 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21088 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21089 (split_double): Likewise.
21090 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21091 (rtx_size): Likewise.
21092 (rtx_alloc_stat_v): New.
21093 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21094 (cwi_output_hex): New.
21095 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21096 (cwi_check_failed_bounds): New.
21097 * rtl.def (CONST_WIDE_INT): New.
21098 * rtl.h: Include <utility> and wide-int.h.
21099 (struct hwivec_def): New.
21100 (CWI_GET_NUM_ELEM): New.
21101 (CWI_PUT_NUM_ELEM): New.
21102 (struct rtx_def): Add num_elem and hwiv.
21103 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21104 (CASE_CONST_UNIQUE): Likewise.
21105 (CASE_CONST_ANY): Likewise.
21106 (CONST_SCALAR_INT_P): Likewise.
21107 (CONST_WIDE_INT_P): New.
21109 (HWIVEC_CHECK): New.
21110 (cwi_check_failed_bounds): New.
21112 (HWIVEC_CHECK): New.
21113 (CONST_WIDE_INT_VEC) New.
21114 (CONST_WIDE_INT_NUNITS) New.
21115 (CONST_WIDE_INT_ELT) New.
21116 (rtx_mode_t): New type.
21117 (wi::int_traits <rtx_mode_t>): New.
21119 (wi::min_value): New.
21120 (wi::max_value): New.
21122 (const_wide_int_alloc): New.
21123 (immed_wide_int_const): New.
21124 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21125 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21126 * signop.h: New file.
21127 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21128 (simplify_const_unary_operation): Use wide-int interfaces.
21129 (simplify_binary_operation_1): Likewise.
21130 (simplify_const_binary_operation): Likewise.
21131 (simplify_const_relational_operation): Likewise.
21132 (simplify_immed_subreg): Likewise.
21133 * stmt.c (expand_case): Likewise.
21134 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21135 signop rather than a bool.
21136 * stor-layout.c (layout_type): Use wide-int interfaces.
21137 (initialize_sizetypes): Update calls to
21138 set_min_and_max_values_for_integral_type.
21139 (set_min_and_max_values_for_integral_type): Take a signop rather
21140 than a bool. Use wide-int interfaces.
21141 (fixup_signed_type): Update accordingly. Remove
21142 HOST_BITS_PER_DOUBLE_INT limit.
21143 (fixup_unsigned_type): Likewise.
21144 * system.h (STATIC_CONSTANT_P): New.
21145 (STATIC_ASSERT): New.
21146 * target.def (can_use_doloop_p): Take widest_ints rather than
21148 * target.h: Include wide-int.h rather than double-int.h.
21149 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21151 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21152 rather than INT_CST_LT_UNSIGNED.
21153 (can_use_doloop_if_innermost): Take widest_ints rather than
21155 * tree-affine.c: Include wide-int-print.h.
21156 (double_int_ext_for_comb): Delete.
21157 (wide_int_ext_for_comb): New.
21158 (aff_combination_zero): Use wide-int interfaces.
21159 (aff_combination_const): Take a widest_int instead of a double_int.
21160 (aff_combination_elt): Use wide-int interfaces.
21161 (aff_combination_scale): Take a widest_int instead of a double_int.
21162 (aff_combination_add_elt): Likewise.
21163 (aff_combination_add_cst): Likewise.
21164 (aff_combination_add): Use wide-int interfaces.
21165 (aff_combination_convert): Likewise.
21166 (tree_to_aff_combination): Likewise.
21167 (add_elt_to_tree): Take a widest_int instead of a double_int.
21168 (aff_combination_to_tree): Use wide-int interfaces.
21169 (aff_combination_remove_elt): Likewise.
21170 (aff_combination_add_product): Take a widest_int instead of
21172 (aff_combination_mult): Use wide-int interfaces.
21173 (aff_combination_expand): Likewise.
21174 (double_int_constant_multiple_p): Delete.
21175 (wide_int_constant_multiple_p): New.
21176 (aff_combination_constant_multiple_p): Take a widest_int pointer
21177 instead of a double_int pointer.
21178 (print_aff): Use wide-int interfaces.
21179 (get_inner_reference_aff): Take a widest_int pointer
21180 instead of a double_int pointer.
21181 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21182 * tree-affine.h: Include wide-int.h.
21183 (struct aff_comb_elt): Change type of coef to widest_int.
21184 (struct affine_tree_combination): Change type of offset to widest_int.
21185 (double_int_ext_for_comb): Delete.
21186 (wide_int_ext_for_comb): New.
21187 (aff_combination_const): Use widest_int instead of double_int.
21188 (aff_combination_scale): Likewise.
21189 (aff_combination_add_elt): Likewise.
21190 (aff_combination_constant_multiple_p): Likewise.
21191 (get_inner_reference_aff): Likewise.
21192 (aff_comb_cannot_overlap_p): Likewise.
21193 (aff_combination_zero_p): Use wide-int interfaces.
21194 * tree.c: Include tree.h.
21195 (init_ttree): Use make_int_cst.
21196 (tree_code_size): Removed code for INTEGER_CST case.
21197 (tree_size): Add INTEGER_CST case.
21198 (make_node_stat): Update comment.
21199 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21200 (build_int_cst_type): Use wide-int interfaces.
21201 (double_int_to_tree): Likewise.
21202 (double_int_fits_to_tree_p): Delete.
21203 (force_fit_type_double): Delete.
21204 (force_fit_type): New.
21205 (int_cst_hash_hash): Use wide-int interfaces.
21206 (int_cst_hash_eq): Likewise.
21207 (build_int_cst_wide): Delete.
21208 (wide_int_to_tree): New.
21209 (cache_integer_cst): Use wide-int interfaces.
21210 (build_low_bits_mask): Likewise.
21211 (cst_and_fits_in_hwi): Likewise.
21212 (real_value_from_int_cst): Likewise.
21213 (make_int_cst_stat): New.
21214 (integer_zerop): Use wide_int interfaces.
21215 (integer_onep): Likewise.
21216 (integer_all_onesp): Likewise.
21217 (integer_pow2p): Likewise.
21218 (integer_nonzerop): Likewise.
21219 (tree_log2): Likewise.
21220 (tree_floor_log2): Likewise.
21221 (tree_ctz): Likewise.
21222 (int_size_in_bytes): Likewise.
21223 (mem_ref_offset): Return an offset_int rather than a double_int.
21224 (build_type_attribute_qual_variant): Use wide_int interfaces.
21225 (type_hash_eq): Likewise
21226 (tree_int_cst_equal): Likewise.
21227 (tree_int_cst_lt): Delete.
21228 (tree_int_cst_compare): Likewise.
21229 (tree_fits_shwi_p): Use wide_int interfaces.
21230 (tree_fits_uhwi_p): Likewise.
21231 (tree_int_cst_sign_bit): Likewise.
21232 (tree_int_cst_sgn): Likewise.
21233 (tree_int_cst_min_precision): Take a signop rather than a bool.
21234 (simple_cst_equal): Use wide_int interfaces.
21235 (compare_tree_int): Likewise.
21236 (iterative_hash_expr): Likewise.
21237 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21239 (get_type_static_bounds): Use wide_int interfaces.
21240 (tree_int_cst_elt_check_failed): New.
21241 (build_common_tree_nodes): Reordered to set prec before filling in
21243 (int_cst_value): Check cst_and_fits_in_hwi.
21244 (widest_int_cst_value): Use wide_int interfaces.
21245 (upper_bound_in_type): Likewise.
21246 (lower_bound_in_type): Likewise.
21247 (num_ending_zeros): Likewise.
21248 (drop_tree_overflow): Likewise.
21249 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21250 (gen_conditions_for_pow_cst_base): Likewise.
21251 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21252 (group_case_labels_stmt): Use wide-int interfaces.
21253 (verify_gimple_assign_binary): Likewise.
21254 (print_loop): Likewise.
21255 * tree-chrec.c (tree_fold_binomial): Likewise.
21256 * tree-core.h (struct tree_base): Add int_length.
21257 (struct tree_int_cst): Change rep of value.
21258 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21259 (dr_may_alias_p): Likewise.
21260 (max_stmt_executions_tree): Likewise.
21261 * tree.def (INTEGER_CST): Update comment.
21262 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21263 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21264 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21265 (dequeue_and_dump): Use wide-int interfaces.
21266 * tree.h: Include wide-int.h.
21267 (NULL_TREE): Moved to earlier loc in file.
21268 (TREE_INT_CST_ELT_CHECK): New.
21269 (tree_int_cst_elt_check_failed): New.
21271 (TREE_INT_CST): Delete.
21272 (TREE_INT_CST_LOW): Use wide-int interfaces.
21273 (TREE_INT_CST_HIGH): Delete.
21274 (TREE_INT_CST_NUNITS): New.
21275 (TREE_INT_CST_EXT_NUNITS): Likewise.
21276 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21277 (TREE_INT_CST_ELT): Likewise.
21278 (INT_CST_LT): Delete.
21279 (tree_int_cst_elt_check): New (two forms).
21280 (type_code_size): Update comment.
21281 (make_int_cst_stat, make_int_cst): New.
21282 (tree_to_double_int): Delete.
21283 (double_int_fits_to_tree_p): Delete.
21284 (force_fit_type_double): Delete.
21285 (build_int_cstu): Replace with out-of-line function.
21286 (build_int_cst_wide): Delete.
21287 (tree_int_cst_lt): Define inline.
21288 (tree_int_cst_le): New.
21289 (tree_int_cst_compare): Define inline.
21290 (tree_int_cst_min_precision): Take a signop rather than a bool.
21291 (wi::int_traits <const_tree>): New.
21292 (wi::int_traits <tree>): New.
21293 (wi::extended_tree): New.
21294 (wi::int_traits <wi::extended_tree>): New.
21295 (wi::to_widest): New.
21296 (wi::to_offset): New.
21297 (wi::fits_to_tree_p): New.
21298 (wi::min_value): New.
21299 (wi::max_value): New.
21300 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21301 (copy_tree_body_r): Likewise.
21302 * tree-object-size.c (compute_object_offset): Likewise.
21303 (addr_object_size): Likewise.
21304 * tree-predcom.c: Include wide-int-print.h.
21305 (struct dref_d): Change type of offset to widest_int.
21306 (dump_dref): Call wide-int printer.
21307 (aff_combination_dr_offset): Use wide-int interfaces.
21308 (determine_offset): Take a widest_int pointer rather than a
21309 double_int pointer.
21310 (split_data_refs_to_components): Use wide-int interfaces.
21311 (suitable_component_p): Likewise.
21312 (order_drefs): Likewise.
21313 (add_ref_to_chain): Likewise.
21314 (valid_initializer_p): Likewise.
21315 (determine_roots_comp): Likewise.
21316 * tree-pretty-print.c: Include wide-int-print.h.
21317 (dump_generic_node): Use wide-int interfaces.
21318 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21319 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21320 (move_fixed_address_to_symbol): Likewise.
21321 (move_hint_to_base): Likewise.
21322 (move_pointer_to_base): Likewise.
21323 (move_variant_to_index): Likewise.
21324 (most_expensive_mult_to_index): Likewise.
21325 (addr_to_parts): Likewise.
21326 (copy_ref_info): Likewise.
21327 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21328 (indirect_refs_may_alias_p): Likewise.
21329 (stmt_kills_ref_p_1): Likewise.
21330 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21331 * tree-ssa-ccp.c: Update comment at top of file. Include
21333 (struct prop_value_d): Change type of mask to widest_int.
21334 (extend_mask): New function.
21335 (dump_lattice_value): Use wide-int interfaces.
21336 (get_default_value): Likewise.
21337 (set_constant_value): Likewise.
21338 (set_value_varying): Likewise.
21339 (valid_lattice_transition): Likewise.
21340 (set_lattice_value): Likewise.
21341 (value_to_double_int): Delete.
21342 (value_to_wide_int): New.
21343 (get_value_from_alignment): Use wide-int interfaces.
21344 (get_value_for_expr): Likewise.
21345 (do_dbg_cnt): Likewise.
21346 (ccp_finalize): Likewise.
21347 (ccp_lattice_meet): Likewise.
21348 (bit_value_unop_1): Use widest_ints rather than double_ints.
21349 (bit_value_binop_1): Likewise.
21350 (bit_value_unop): Use wide-int interfaces.
21351 (bit_value_binop): Likewise.
21352 (bit_value_assume_aligned): Likewise.
21353 (evaluate_stmt): Likewise.
21354 (ccp_fold_stmt): Likewise.
21355 (visit_cond_stmt): Likewise.
21356 (ccp_visit_stmt): Likewise.
21357 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21358 (constant_pointer_difference): Likewise.
21359 (associate_pointerplus): Likewise.
21360 (combine_conversions): Likewise.
21361 * tree-ssa-loop.h: Include wide-int.h.
21362 (struct tree_niter_desc): Change type of max to widest_int.
21363 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21364 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21365 (remove_redundant_iv_tests): Likewise.
21366 (canonicalize_loop_induction_variables): Likewise.
21367 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21368 (constant_multiple_of): Take a widest_int pointer instead of
21369 a double_int pointer.
21370 (get_computation_aff): Use wide-int interfaces.
21371 (ptr_difference_cost): Likewise.
21372 (difference_cost): Likewise.
21373 (get_loop_invariant_expr_id): Likewise.
21374 (get_computation_cost_at): Likewise.
21375 (iv_elimination_compare_lt): Likewise.
21376 (may_eliminate_iv): Likewise.
21377 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21378 instead of double_int.
21379 (max_loop_iterations): Likewise.
21380 (max_stmt_executions): Likewise.
21381 (estimated_stmt_executions): Likewise.
21382 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21383 (split_to_var_and_offset): Use wide-int interfaces.
21384 (determine_value_range): Likewise.
21385 (bound_difference_of_offsetted_base): Likewise.
21386 (bounds_add): Take a widest_int instead of a double_int.
21387 (number_of_iterations_ne_max): Use wide-int interfaces.
21388 (number_of_iterations_ne): Likewise.
21389 (number_of_iterations_lt_to_ne): Likewise.
21390 (assert_loop_rolls_lt): Likewise.
21391 (number_of_iterations_lt): Likewise.
21392 (number_of_iterations_le): Likewise.
21393 (number_of_iterations_cond): Likewise.
21394 (number_of_iterations_exit): Likewise.
21395 (finite_loop_p): Likewise.
21396 (derive_constant_upper_bound_assign): Likewise.
21397 (derive_constant_upper_bound): Return a widest_int.
21398 (derive_constant_upper_bound_ops): Likewise.
21399 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21400 (record_estimate): Take a widest_int rather than a double_int.
21401 (record_nonwrapping_iv): Use wide-int interfaces.
21402 (double_int_cmp): Delete.
21403 (wide_int_cmp): New.
21404 (bound_index): Take a widest_int rather than a double_int.
21405 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21406 (maybe_lower_iteration_bound): Likewise.
21407 (estimate_numbers_of_iterations_loop): Likewise.
21408 (estimated_loop_iterations): Take a widest_int pointer than than
21409 a double_int pointer.
21410 (estimated_loop_iterations_int): Use wide-int interfaces.
21411 (max_loop_iterations): Take a widest_int pointer than than
21412 a double_int pointer.
21413 (max_loop_iterations_int): Use wide-int interfaces.
21414 (max_stmt_executions): Take a widest_int pointer than than
21415 a double_int pointer.
21416 (estimated_stmt_executions): Likewise.
21417 (n_of_executions_at_most): Use wide-int interfaces.
21418 (scev_probably_wraps_p): Likewise.
21419 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21420 to real_to_integer.
21421 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21423 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21424 double_ints. Adjust for trailing_wide_ints <3> representation.
21425 (set_nonzero_bits): Likewise.
21426 (get_range_info): Return wide_ints rather than double_ints.
21427 Adjust for trailing_wide_ints <3> representation.
21428 (get_nonzero_bits): Likewise.
21429 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21431 * tree-ssanames.h (struct range_info_def): Replace min, max and
21432 nonzero_bits with a trailing_wide_ints <3>.
21433 (set_range_info): Use wide_int_refs rather than double_ints.
21434 (set_nonzero_bits): Likewise.
21435 (get_range_info): Return wide_ints rather than double_ints.
21436 (get_nonzero_bits): Likewise.
21437 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21438 * tree-ssa-pre.c (phi_translate_1): Likewise.
21439 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21440 (acceptable_pow_call): Likewise.
21441 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21443 (vn_reference_fold_indirect): Likewise.
21444 (vn_reference_maybe_forwprop_address): Likewise.
21445 (valueize_refs_1): Likewise.
21446 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21447 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21448 tree_int_cst_lt and tree_int_cst_le.
21449 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21451 (streamer_alloc_tree): Likewise.
21452 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21453 (streamer_write_tree_header): Likewise.
21454 (streamer_write_integer_cst): Likewise.
21455 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21456 (build_constructors): Likewise.
21457 (array_value_type): Likewise.
21458 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21459 (vect_check_gather): Likewise.
21460 * tree-vect-generic.c (build_replicated_const): Likewise.
21461 (expand_vector_divmod): Likewise.
21462 * tree-vect-loop.c (vect_transform_loop): Likewise.
21463 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21464 (vect_do_peeling_for_alignment): Likewise.
21465 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21466 * tree-vrp.c: Include wide-int.h.
21467 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21468 (extract_range_from_assert): Use wide-int interfaces.
21469 (vrp_int_const_binop): Likewise.
21470 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21471 double_int pointers.
21472 (ranges_from_anti_range): Use wide-int interfaces.
21473 (quad_int_cmp): Delete.
21474 (quad_int_pair_sort): Likewise.
21475 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21476 (extract_range_from_unary_expr_1): Likewise.
21477 (adjust_range_with_scev): Likewise.
21478 (masked_increment): Take and return wide_ints rather than double_ints.
21479 (register_edge_assert_for_2): Use wide-int interfaces.
21480 (check_array_ref): Likewise.
21481 (search_for_addr_array): Likewise.
21482 (maybe_set_nonzero_bits): Likewise.
21483 (union_ranges): Pass an integer of the correct type instead of
21484 using integer_one_node.
21485 (intersect_ranges): Likewise.
21486 (simplify_truth_ops_using_ranges): Likewise.
21487 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21488 (range_fits_type_p): Likewise.
21489 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21491 (simplify_conversion_using_ranges): Use wide-int interfaces.
21492 (simplify_float_conversion_using_ranges): Likewise.
21493 (vrp_finalize): Likewise.
21494 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21495 (gimple_stringops_transform): Likewise.
21496 * varasm.c (decode_addr_const): Likewise.
21497 (const_hash_1): Likewise.
21498 (const_rtx_hash_1): Likewise
21499 (output_constant): Likewise.
21500 (array_size_for_constructor): Likewise.
21501 (output_constructor_regular_field): Likewise.
21502 (output_constructor_bitfield): Likewise.
21503 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21504 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21506 * gencheck.c: Define BITS_PER_UNIT.
21507 * wide-int.cc: New.
21509 * wide-int-print.cc: New.
21510 * wide-int-print.h: New.
21512 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21514 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21516 2014-05-06 Richard Biener <rguenther@suse.de>
21518 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21519 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21520 (TODO_verify_all): Adjust.
21521 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21522 TODO_verify_stmts and TODO_verify_rtl_sharing.
21523 * bb-reorder.c: Likewise.
21524 * cfgexpand.c: Likewise.
21525 * cprop.c: Likewise.
21527 * function.c: Likewise.
21528 * fwprop.c: Likewise.
21529 * gcse.c: Likewise.
21530 * gimple-ssa-isolate-paths.c: Likewise.
21531 * gimple-ssa-strength-reduction.c: Likewise.
21532 * ipa-split.c: Likewise.
21533 * loop-init.c: Likewise.
21534 * loop-unroll.c: Likewise.
21535 * lower-subreg.c: Likewise.
21536 * modulo-sched.c: Likewise.
21537 * postreload-gcse.c: Likewise.
21538 * predict.c: Likewise.
21539 * recog.c: Likewise.
21540 * sched-rgn.c: Likewise.
21541 * store-motion.c: Likewise.
21542 * tracer.c: Likewise.
21543 * trans-mem.c: Likewise.
21544 * tree-call-cdce.c: Likewise.
21545 * tree-cfg.c: Likewise.
21546 * tree-cfgcleanup.c: Likewise.
21547 * tree-complex.c: Likewise.
21548 * tree-eh.c: Likewise.
21549 * tree-emutls.c: Likewise.
21550 * tree-if-conv.c: Likewise.
21551 * tree-into-ssa.c: Likewise.
21552 * tree-loop-distribution.c: Likewise.
21553 * tree-object-size.c: Likewise.
21554 * tree-parloops.c: Likewise.
21555 * tree-pass.h: Likewise.
21556 * tree-sra.c: Likewise.
21557 * tree-ssa-ccp.c: Likewise.
21558 * tree-ssa-copy.c: Likewise.
21559 * tree-ssa-copyrename.c: Likewise.
21560 * tree-ssa-dce.c: Likewise.
21561 * tree-ssa-dom.c: Likewise.
21562 * tree-ssa-dse.c: Likewise.
21563 * tree-ssa-forwprop.c: Likewise.
21564 * tree-ssa-ifcombine.c: Likewise.
21565 * tree-ssa-loop-ch.c: Likewise.
21566 * tree-ssa-loop-ivcanon.c: Likewise.
21567 * tree-ssa-loop.c: Likewise.
21568 * tree-ssa-math-opts.c: Likewise.
21569 * tree-ssa-phiopt.c: Likewise.
21570 * tree-ssa-phiprop.c: Likewise.
21571 * tree-ssa-pre.c: Likewise.
21572 * tree-ssa-reassoc.c: Likewise.
21573 * tree-ssa-sink.c: Likewise.
21574 * tree-ssa-strlen.c: Likewise.
21575 * tree-ssa-tail-merge.c: Likewise.
21576 * tree-ssa-uncprop.c: Likewise.
21577 * tree-switch-conversion.c: Likewise.
21578 * tree-tailcall.c: Likewise.
21579 * tree-vect-generic.c: Likewise.
21580 * tree-vectorizer.c: Likewise.
21581 * tree-vrp.c: Likewise.
21582 * tsan.c: Likewise.
21583 * var-tracking.c: Likewise.
21584 * bt-load.c: Likewise.
21585 * cfgcleanup.c: Likewise.
21586 * combine-stack-adj.c: Likewise.
21587 * combine.c: Likewise.
21588 * compare-elim.c: Likewise.
21589 * config/epiphany/resolve-sw-modes.c: Likewise.
21590 * config/i386/i386.c: Likewise.
21591 * config/mips/mips.c: Likewise.
21592 * config/s390/s390.c: Likewise.
21593 * config/sh/sh_treg_combine.cc: Likewise.
21594 * config/sparc/sparc.c: Likewise.
21597 * final.c: Likewise.
21598 * ifcvt.c: Likewise.
21599 * mode-switching.c: Likewise.
21600 * passes.c: Likewise.
21601 * postreload.c: Likewise.
21603 * reg-stack.c: Likewise.
21604 * regcprop.c: Likewise.
21605 * regrename.c: Likewise.
21608 2014-05-06 Richard Biener <rguenther@suse.de>
21610 PR middle-end/61070
21611 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21612 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21614 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
21617 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21619 2014-05-05 Radovan Obradovic <robradovic@mips.com>
21620 Tom de Vries <tom@codesourcery.com>
21622 * target.def (call_fusage_contains_non_callee_clobbers): New
21624 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21626 (@node Miscellaneous Register Hooks): New node.
21627 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21628 * doc/tm.texi: Regenerate.
21630 2014-05-05 Marek Polacek <polacek@redhat.com>
21633 * opts.c (common_handle_option): Call error_at instead of warning_at.
21635 2014-05-05 Richard Biener <rguenther@suse.de>
21637 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21638 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
21639 under the TODO_verify_il umbrella.
21641 2014-05-05 Richard Biener <rguenther@suse.de>
21643 * passes.c (execute_function_todo): Move TODO_verify_flow under
21644 the TODO_verify_ul umbrella.
21646 2014-05-05 Richard Biener <rguenther@suse.de>
21648 PR middle-end/61010
21649 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21650 X & CST away from a CST that is the mask of a mode.
21652 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21654 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21655 int argument to enum machine_mode.
21656 (picochip_class_max_nregs): Ditto.
21657 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21658 (picochip_class_max_nregs): Ditto.
21660 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21662 * target.def: Add new target hook.
21663 * doc/tm.texi: Regenerate.
21664 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21665 * targhooks.c (default_keep_leaf_when_profiled): New function.
21667 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21668 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21670 2014-05-05 Bin Cheng <bin.cheng@arm.com>
21672 PR tree-optimization/60363
21673 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21674 (copy_phi_args): New parameters. Call get_value_locus_in_path.
21675 (update_destination_phis): New parameter.
21676 (create_edge_and_update_destination_phis): Ditto.
21677 (ssa_fix_duplicate_block_edges): Pass new arguments.
21678 (thread_single_edge): Ditto.
21680 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
21682 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21683 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21684 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21685 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21686 Use RS6000_BTM_HARD_FLOAT.
21687 (BU_MISC_2): Likewise.
21688 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21689 RS6000_BTM_HARD_FLOAT.
21690 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21691 is explicitly used.
21692 (rs6000_invalid_builtin): Add hard floating builtin support.
21693 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21694 hard float builtins.
21695 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21697 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21699 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21700 Add missing function* argument.
21702 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21704 * lra-constraints.c (valid_address_p): Move earlier in file.
21705 Add a constraint argument to the address_info version.
21706 (satisfies_memory_constraint_p): New function.
21707 (satisfies_address_constraint_p): Likewise.
21708 (process_alt_operands, curr_insn_transform): Use them.
21709 (process_address): Pass the constraint to valid_address_p when
21710 checking address operands.
21712 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21714 * config/mips/mips.c (mips_isa_rev): New variable.
21715 (mips_set_architecture): Set it.
21716 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21718 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21719 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21720 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21721 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21722 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21723 conditions in terms of mips_isa_rev.
21724 (mips_isa_rev): Declare.
21726 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21728 * config/sh/sh-mem.cc: Use tabs instead of spaces.
21729 (prob_unlikely, prob_likely): Make variables const.
21731 2014-05-03 Denis Chertykov <chertykov@gmail.com>
21733 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21735 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21737 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21739 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21741 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21742 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21743 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21745 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21746 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21748 Replace usage of ROUND_REG with sh_round_reg.
21749 Use CEIL instead of ROUND_ADVANCE.
21751 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21754 * config/sh/sh.c: Include stdlib headers before everything else.
21756 2014-05-02 Jakub Jelinek <jakub@redhat.com>
21758 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21759 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21760 (gimplify_adjust_omp_clauses): Simd region is never
21761 directly nested in combined parallel. Instead, for linear
21762 with copyin/copyout, if in combined for simd loop, make decl
21763 firstprivate/lastprivate on OMP_FOR.
21764 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21765 expand_omp_for_static_chunk): When setting endvar, also set
21766 fd->loop.v to the same value.
21768 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21770 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21772 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
21774 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21777 2014-05-02 Marek Polacek <polacek@redhat.com>
21779 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21781 2014-05-02 Kito Cheng <kito@0xlab.org>
21783 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21784 to a C expression marco.
21785 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21786 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21787 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21788 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21789 HONOR_REG_ALLOC_ORDER.
21790 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21792 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21794 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21796 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21798 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21800 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21802 * tree-if-conv.c (is_cond_scalar_reduction): New function.
21803 (convert_scalar_cond_reduction): Likewise.
21804 (predicate_scalar_phi): Add recognition and transformation
21805 of simple conditioanl reduction to be vectorizable.
21807 2014-05-01 Marek Polacek <polacek@redhat.com>
21810 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21812 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
21814 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21815 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21816 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21817 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21818 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21819 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21820 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21821 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21823 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
21825 * config/arc/arc.opt (mlra): Move comment above option name
21826 to avoid mis-parsing as language options.
21828 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21830 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21831 * config/sol2.h: ... here.
21832 * config/sol2-10.h: Remove.
21834 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21835 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21836 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21837 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21838 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21839 * config/sol2.h: ... here.
21840 (SECTION_NAME_FORMAT): Don't redefine.
21841 (STARTFILE_ARCH32_SPEC): Rename to ...
21842 (STARTFILE_ARCH_SPEC): ... this.
21843 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21844 * config/sparc/sol2.h: ... here.
21845 (SECTION_NAME_FORMAT): Don't undef.
21846 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21847 (SUBTARGET_EXTRA_SPECS): Remove.
21848 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21850 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21851 (MD_STARTFILE_PREFIX): Remove.
21852 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21853 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21854 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21855 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21856 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21857 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21858 * config/i386/sol2.h: ... here.
21859 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21860 * config/i386/sol2-bi.h: Remove.
21861 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21862 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21864 * config/i386/t-sol2-64: Rename to ...
21865 * config/i386/t-sol2: ... this.
21866 * config/sparc/t-sol2-64: Rename to ...
21867 * config/sparc/t-sol2: ... this.
21869 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21870 sol2_tm_file_head, sol2_tm_file_tail.
21871 Include ${cpu_type}/sol2.h before sol2.h.
21873 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21874 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21875 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21876 Reflect i386/t-sol2-64 renaming.
21877 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21878 Reflect sparc/t-sol2-64 renaming.
21880 2014-04-30 Richard Biener <rguenther@suse.de>
21882 * passes.c (execute_function_todo): Move TODO_verify_stmts
21883 and TODO_verify_ssa under the TODO_verify_il umbrella.
21884 * tree-ssa.h (verify_ssa): Adjust prototype.
21885 * tree-ssa.c (verify_ssa): Add parameter to tell whether
21886 we should verify SSA operands.
21887 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21888 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21889 whether we should verify whether not throwing stmts have EH info.
21890 * graphite-scop-detection.c (create_sese_edges): Adjust.
21891 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21892 * tree-eh.c (lower_try_finally_switch): Do not add the
21893 default case label twice.
21895 2014-04-30 Marek Polacek <polacek@redhat.com>
21897 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21898 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21899 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21900 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21902 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
21904 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
21905 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
21906 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
21907 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
21908 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
21909 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
21910 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
21911 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
21913 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21915 * tree-cfg.c (dump_function_to_file): Dump the return type of
21916 functions, in a line to itself before the function body, mimicking
21917 the layout of a C function.
21919 2014-04-29 Jakub Jelinek <jakub@redhat.com>
21921 PR tree-optimization/60971
21922 * tree-tailcall.c (process_assignment): Reject conversions which
21925 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21927 * calls.c (initialize_argument_information): Always treat
21928 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21929 (expand_call): Likewise.
21930 (emit_library_call_calue_1): Likewise.
21931 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21932 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21935 2014-04-29 Nick Clifton <nickc@redhat.com>
21937 * config/msp430/msp430.md (umulsidi): Fix typo.
21938 (mulhisi3): Enable even inside interrupt handlers.
21939 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21940 bigger return address pushed in large mode.
21942 2014-04-29 Nick Clifton <nickc@redhat.com>
21944 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21945 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21947 * config/m32r/m32r.c (init_reg_tables): Likewise.
21948 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21949 enum to hold the modes.
21951 2014-04-29 Richard Biener <rguenther@suse.de>
21953 * dominance.c (free_dominance_info): Add overload with
21954 function parameter.
21955 (dom_info_state): Likewise.
21956 (dom_info_available_p): Likewise.
21957 * basic-block.h (free_dominance_info, dom_info_state,
21958 dom_info_available_p): Declare overloads.
21959 * passes.c (execute_function_todo): Verify that verifiers
21960 don't change dominator info state. Drop dominator info
21961 for IPA pass invocations.
21962 * cgraph.c (release_function_body): Restore asserts that
21963 dominator information is released.
21965 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
21967 * doc/invoke.texi: Fix typo.
21968 * tree-vrp.c: Fix typos.
21969 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
21971 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21973 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
21975 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21977 * config/aarch64/aarch64-builtins.c
21978 (aarch64_types_storestruct_lane_qualifiers): New.
21979 (TYPES_STORESTRUCT_LANE): Likewise.
21980 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
21981 (st3_lane): Likewise.
21982 (st4_lane): Likewise.
21983 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
21984 (vec_store_lanesci_lane<mode>): Likewise.
21985 (vec_store_lanesxi_lane<mode>): Likewise.
21986 (aarch64_st2_lane<VQ:mode>): Likewise.
21987 (aarch64_st3_lane<VQ:mode>): Likewise.
21988 (aarch64_st4_lane<VQ:mode>): Likewise.
21989 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
21990 * config/aarch64/arm_neon.h
21991 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
21992 use new macro arguments.
21993 (__ST3_LANE_FUNC): Likewise.
21994 (__ST4_LANE_FUNC): Likewise.
21995 * config/aarch64/iterators.md (V_TWO_ELEM): New.
21996 (V_THREE_ELEM): Likewise.
21997 (V_FOUR_ELEM): Likewise.
21999 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22001 * doc/gimple.texi: Replace the description of the now-defunct
22002 union gimple_statement_d with a diagram showing the
22003 gimple_statement_base class hierarchy and its relationships to
22004 the GSS_ and GIMPLE_ enums.
22006 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22008 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22009 * config/aarch64/aarch64.c
22010 (aarch64_cannot_change_mode_class): Weaken conditions.
22011 (aarch64_modes_tieable_p): New.
22012 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22014 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22016 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22017 (loadsync_<mode>): Change mode.
22018 (load_quadpti, store_quadpti): New.
22019 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22020 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22022 2014-04-28 Martin Jambor <mjambor@suse.cz>
22024 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22025 same alias type as the original statement.
22026 (subreplacement_assignment_data): New type.
22027 (handle_unscalarized_data_in_subtree): New type of parameter,
22028 generate new memory accesses with same alias type as the original
22030 (load_assign_lhs_subreplacements): Likewise.
22031 (sra_modify_constructor_assign): Generate new memory accesses with
22032 same alias type as the original statement.
22034 2014-04-28 Richard Biener <rguenther@suse.de>
22036 * tree-pass.h (TODO_verify_il): Define.
22037 (TODO_verify_all): Complete properly.
22038 * passes.c (execute_function_todo): Move existing loop-closed
22039 SSA verification under TODO_verify_il.
22040 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22041 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22042 Fix tree sharing issue.
22044 2014-04-28 Richard Biener <rguenther@suse.de>
22046 PR middle-end/60092
22047 * builtins.def (DEF_C11_BUILTIN): Add.
22048 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22049 * coretypes.h (enum function_class): Add function_c11_misc.
22050 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22051 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22052 (call_may_clobber_ref_p_1): Likewise.
22053 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22054 (mark_all_reaching_defs_necessary_1): Likewise.
22055 (propagate_necessity): Likewise.
22056 (eliminate_unnecessary_stmts): Likewise.
22057 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22059 2014-04-28 Richard Biener <rguenther@suse.de>
22061 * tree-vrp.c (vrp_var_may_overflow): Remove.
22062 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22063 with overflow immediately bump to one before that value and
22064 let iteration figure out overflow status.
22066 2014-04-28 Richard Biener <rguenther@suse.de>
22068 * configure.ac: Do valgrind header checks unconditionally.
22069 Add --enable-valgrind-annotations.
22070 * system.h: Guard valgrind header inclusion with
22071 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22072 * alloc-pool.c (pool_alloc, pool_free): Use
22073 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22074 to guard possibly dead code.
22075 * config.in: Regenerated.
22076 * configure: Likewise.
22078 2014-04-28 Jeff Law <law@redhat.com>
22080 PR tree-optimization/60902
22081 * tree-ssa-threadedge.c
22082 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22083 over real defs when invalidating outputs from statements that do not
22084 produce useful outputs for threading.
22086 2014-04-28 Richard Biener <rguenther@suse.de>
22088 PR tree-optimization/60979
22089 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22090 SCOPs that end in a block with a successor with abnormal
22093 2014-04-28 Richard Biener <rguenther@suse.de>
22095 * tree-pass.h (execute_pass_list): Adjust prototype.
22096 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22097 (do_per_function): Change callback signature, push all actual
22098 work to the callbals.
22099 (do_per_function_toporder): Likewise.
22100 (execute_function_dump): Adjust.
22101 (execute_function_todo): Likewise.
22102 (clear_last_verified): Likewise.
22103 (verify_curr_properties): Likewise.
22104 (update_properties_after_pass): Likewise.
22105 (execute_pass_list_1): Split out from ...
22106 (execute_pass_list): ... here. Adjust.
22107 (execute_ipa_pass_list): Likewise.
22108 * cgraphunit.c (cgraph_add_new_function): Adjust.
22109 (analyze_function): Likewise.
22110 (expand_function): Likewise.
22111 * cgraph.c (release_function_body): Free dominance info
22112 here instead of asserting it was magically freed elsewhere.
22114 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22116 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22117 * configure: Regenerate.
22118 * config/sparc/sparc.opt (muser-mode): New option.
22119 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22121 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22122 * doc/invoke.texi (SPARC options): Document -muser-mode.
22124 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22126 * cselib.c (find_slot_memmode): Delete.
22127 (cselib_hasher): Change compare_type to a struct.
22128 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22130 (preserve_constants_and_equivs): Adjust for new compare_type.
22131 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22132 (wrap_constant): Delete.
22133 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22135 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22137 * doc/install.texi (Building with profile feedback): Remove
22140 2014-04-26 Tom de Vries <tom@codesourcery.com>
22142 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22145 2014-04-25 Cary Coutant <ccoutant@google.com>
22148 * dwarf2out.c (should_move_die_to_comdat): A type definition
22149 can contain a subprogram definition, but don't move it to a
22151 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22152 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22154 (clone_tree_hash): Rename to...
22155 (clone_tree_partial): ...this; change callers. Copy
22156 DW_TAG_subprogram DIEs as declarations.
22157 (copy_decls_walk): Don't copy children of a declaration into a
22160 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22163 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22166 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22168 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22169 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22171 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22174 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22176 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22178 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22180 PR tree-optimization/60930
22181 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22182 creating a multiply candidate by folding two constant
22183 multiplicands when the result overflows.
22185 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22187 PR tree-optimization/60960
22188 * tree-vect-generic.c (expand_vector_operation): Only call
22189 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22191 2014-04-25 Tom de Vries <tom@codesourcery.com>
22193 * expr.c (clobber_reg_mode): New function.
22194 * expr.h (clobber_reg): New function.
22196 2014-04-25 Tom de Vries <tom@codesourcery.com>
22198 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22201 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22202 Tom de Vries <tom@codesourcery.com>
22204 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22206 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22207 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22208 new argument to find_all_hard_reg_sets call.
22210 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22212 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22213 Use HOST_WIDE_INT_C for mask literal.
22214 (aarch_rev16_shleft_mask_imm_p): Likewise.
22216 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22219 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22221 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22223 PR preprocessor/56540
22224 * config/i386/i386-c.c (ix86_target_macros): Define
22225 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22227 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22229 * configure.ac (tga_func): Remove.
22230 (LIB_TLS_SPEC): Remove.
22231 * configure: Regenerate.
22232 * config.in: Regenerate.
22233 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22235 2014-04-25 Richard Biener <rguenther@suse.de>
22238 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22239 call stmt use/clobber sets during stmt walk instead of
22240 walking the possibly incomplete set of caller edges.
22242 2014-04-25 Richard Biener <rguenther@suse.de>
22245 * passes.c (apply_ipa_transforms): Inline into only caller ...
22246 (execute_one_pass): ... here. Properly bring in function
22247 bodies for nodes we want to apply IPA transforms to.
22249 2014-04-24 Cong Hou <congh@google.com>
22251 PR tree-optimization/60896
22252 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22253 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22254 (vect_mark_pattern_stmts): Set the def type of all statements in
22255 PATTERN_DEF_SEQ as vect_internal_def.
22257 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22259 * doc/extend.texi (PowerPC Built-in Functions): Document new
22260 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22261 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22263 * config/rs6000/predicates.md (const_0_to_3_operand): New
22264 predicate to match 0..3 integer constants.
22266 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22267 to support adding miscellaneous builtin functions.
22268 (BU_DFP_MISC_2): Likewise.
22269 (BU_P7_MISC_1): Likewise.
22270 (BU_P7_MISC_2): Likewise.
22271 (BU_P8V_MISC_3): Likewise.
22272 (BU_MISC_1): Likewise.
22273 (BU_MISC_2): Likewise.
22274 (DIVWE): Add extended divide builtin functions.
22275 (DIVWEO): Likewise.
22276 (DIVWEU): Likewise.
22277 (DIVWEUO): Likewise.
22279 (DIVDEO): Likewise.
22280 (DIVDEU): Likewise.
22281 (DIVDEUO): Likewise.
22282 (DXEX): Add decimal floating-point builtin functions.
22284 (DDEDPD): Likewise.
22285 (DDEDPDQ): Likewise.
22286 (DENBCD): Likewise.
22287 (DENBCDQ): Likewise.
22291 (DSCLIQ): Likewise.
22293 (DSCRIQ): Likewise.
22294 (CDTBCD): Add new BCD builtin functions.
22295 (CBCDTD): Likewise.
22296 (ADDG6S): Likewise.
22297 (BCDADD): Likewise.
22298 (BCDADD_LT): Likewise.
22299 (BCDADD_EQ): Likewise.
22300 (BCDADD_GT): Likewise.
22301 (BCDADD_OV): Likewise.
22302 (BCDSUB): Likewise.
22303 (BCDSUB_LT): Likewise.
22304 (BCDSUB_EQ): Likewise.
22305 (BCDSUB_GT): Likewise.
22306 (BCDSUB_OV): Likewise.
22307 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22308 (UNPACK_TD): Likewise.
22309 (PACK_TF): Likewise.
22310 (UNPACK_TF): Likewise.
22311 (UNPACK_TF_0): Likewise.
22312 (UNPACK_TF_1): Likewise.
22313 (PACK_V1TI): Likewise.
22314 (UNPACK_V1TI): Likewise.
22316 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22317 support for decimal floating point builtin functions.
22318 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22319 functions that take constant arguments.
22320 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22321 (rs6000_init_builtins): Setup long double, _Decimal64, and
22322 _Decimal128 types for new builtin functions.
22323 (builtin_function_type): Set the unsigned flags appropriately for
22324 the new builtin functions.
22325 (rs6000_opt_masks): Add support for decimal floating point builtin
22328 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22329 floating point builtin functions.
22330 (RS6000_BTM_COMMON): Likewise.
22331 (RS6000_BTI_long_double): Likewise.
22332 (RS6000_BTI_dfloat64): Likewise.
22333 (RS6000_BTI_dfloat128): Likewise.
22334 (long_double_type_internal_node): Likewise.
22335 (dfloat64_type_internal_node): Likewise.
22336 (dfloat128_type_internal_node): Likewise.
22338 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22339 2.07 bcd arithmetic instructions.
22340 (UNSPEC_BCDSUB): Likewise.
22341 (UNSPEC_BCD_OVERFLOW): Likewise.
22342 (UNSPEC_BCD_ADD_SUB): Likewise.
22343 (bcd_add_sub): Likewise.
22344 (BCD_TEST): Likewise.
22345 (bcd<bcd_add_sub>): Likewise.
22346 (bcd<bcd_add_sub>_test): Likewise.
22347 (bcd<bcd_add_sub>_test2): Likewise.
22348 (bcd<bcd_add_sub>_<code>): Likewise.
22349 (peephole2 for combined bcd ops): Likewise.
22351 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22352 decimal floating point builtin functions.
22353 (UNSPEC_DENBCD): Likewise.
22354 (UNSPEC_DXEX): Likewise.
22355 (UNSPEC_DIEX): Likewise.
22356 (UNSPEC_DSCLI): Likewise.
22357 (UNSPEC_DSCRI): Likewise.
22358 (D64_D128): Likewise.
22359 (dfp_suffix): Likewise.
22360 (dfp_ddedpd_<mode>): Likewise.
22361 (dfp_denbcd_<mode>): Likewise.
22362 (dfp_dxex_<mode>): Likewise.
22363 (dfp_diex_<mode>): Likewise.
22364 (dfp_dscli_<mode>): Likewise.
22365 (dfp_dscri_<mode>): Likewise.
22367 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22369 (UNSPEC_CDTBCD): Likewise.
22370 (UNSPEC_CBCDTD): Likewise.
22371 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22372 (UNSPEC_DIVEO): Likewise.
22373 (UNSPEC_DIVEU): Likewise.
22374 (UNSPEC_DIVEUO): Likewise.
22375 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22376 pack/unpack 128-bit types.
22377 (UNSPEC_PACK_128BIT): Likewise.
22378 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22379 (udiv<mode>3): Use idiv_ldiv mode attribute.
22380 (div<mode>3): Likewise.
22381 (addg6s): Add new BCD builtin functions.
22382 (cdtbcd): Likewise.
22383 (cbcdtd): Likewise.
22384 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22385 (div_extend): Likewise.
22386 (div<div_extend>_<mode>"): Likewise.
22387 (FP128_64): Add support for new builtin functions to pack/unpack
22389 (unpack<mode>): Likewise.
22390 (unpacktf_0): Likewise.
22391 (unpacktf_1): Likewise.
22392 (unpack<mode>_dm): Likewise.
22393 (unpack<mode>_nodm): Likewise.
22394 (pack<mode>): Likewise.
22395 (unpackv1ti): Likewise.
22396 (packv1ti): Likewise.
22398 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22400 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22403 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22405 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22406 * gimplify.c (omp_is_private): Change last argument's type to int.
22407 Only diagnose lastprivate if the simd argument is 1, only diagnose
22408 linear if the simd argument is 2.
22409 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22410 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22411 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22412 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22413 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22414 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22415 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22416 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22417 * tree-nested.c (convert_nonlocal_omp_clauses,
22418 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22420 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22423 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22426 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22428 * flag-types.h (enum ivar_visibility): Add.
22430 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22432 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22433 function * argument.
22435 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22437 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22439 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22440 Tom de Vries <tom@codesourcery.com>
22442 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22443 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22445 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22446 * emit-rtl.c (try_split): Same.
22448 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22449 Tom de Vries <tom@codesourcery.com>
22451 * common.opt (fuse-caller-save): New option.
22453 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22455 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22456 elements for big-endian.
22458 2014-04-24 Richard Biener <rguenther@suse.de>
22460 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22461 during TER and instead use the sepops interface for expanding
22462 non-GIMPLE_SINGLE_RHS.
22464 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22466 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22467 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22469 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22471 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22472 assembler 64-bit option.
22473 * configure: Regenerate.
22475 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22477 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22478 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22479 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22480 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22481 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22483 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22485 * config/aarch64/aarch64-builtins.c
22486 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22487 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22488 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22489 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22491 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22492 (Vrevsuff): New mode attribute.
22494 2014-04-24 Terry Guo <terry.guo@arm.com>
22496 * config/arm/arm.h (machine_function): Define variable
22497 after_arm_reorg here.
22498 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22499 (arm_split_constant): Update the way to access variable
22501 (arm_reorg): Ditto.
22502 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22504 2014-04-23 Tom de Vries <tom@codesourcery.com>
22506 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22508 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22510 * is-a.h: Update comments to reflect the following changes to the
22511 "pointerness" of the API, making the template parameter match the
22512 return type, allowing use of is-a.h with typedefs of pointers.
22513 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22514 that the return type matches the parameter to the is_a_helper.
22516 (dyn_cast): Likewise.
22518 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22519 pointer from the is-a.h API.
22521 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22522 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22524 (is_a_helper <varpool_node>::test): Likewise, convert to...
22525 (is_a_helper <varpool_node *>::test): ...this.
22527 (varpool_first_variable): Update for removal of implicit pointer
22528 from the is-a.h API.
22529 (varpool_next_variable): Likewise.
22530 (varpool_first_static_initializer): Likewise.
22531 (varpool_next_static_initializer): Likewise.
22532 (varpool_first_defined_variable): Likewise.
22533 (varpool_next_defined_variable): Likewise.
22534 (cgraph_first_defined_function): Likewise.
22535 (cgraph_next_defined_function): Likewise.
22536 (cgraph_first_function): Likewise.
22537 (cgraph_next_function): Likewise.
22538 (cgraph_first_function_with_gimple_body): Likewise.
22539 (cgraph_next_function_with_gimple_body): Likewise.
22540 (cgraph_alias_target): Likewise.
22541 (varpool_alias_target): Likewise.
22542 (cgraph_function_or_thunk_node): Likewise.
22543 (varpool_variable_node): Likewise.
22544 (symtab_real_symbol_p): Likewise.
22545 * cgraphunit.c (referred_to_p): Likewise.
22546 (analyze_functions): Likewise.
22547 (handle_alias_pairs): Likewise.
22548 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22549 * gimple-ssa.h (gimple_vuse_op): Likewise.
22550 (gimple_vdef_op): Likewise.
22551 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22552 * gimple.c (gimple_build_asm_1): Likewise.
22553 (gimple_build_try): Likewise.
22554 (gimple_build_resx): Likewise.
22555 (gimple_build_eh_dispatch): Likewise.
22556 (gimple_build_omp_for): Likewise.
22557 (gimple_omp_for_set_clauses): Likewise.
22559 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22560 (is_a_helper <gimple_statement_asm *>::test): ...this.
22561 (is_a_helper <gimple_statement_bind>::test): Convert to...
22562 (is_a_helper <gimple_statement_bind *>::test): ...this.
22563 (is_a_helper <gimple_statement_call>::test): Convert to...
22564 (is_a_helper <gimple_statement_call *>::test): ...this.
22565 (is_a_helper <gimple_statement_catch>::test): Convert to...
22566 (is_a_helper <gimple_statement_catch *>::test): ...this.
22567 (is_a_helper <gimple_statement_resx>::test): Convert to...
22568 (is_a_helper <gimple_statement_resx *>::test): ...this.
22569 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22570 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22571 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22572 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22573 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22574 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22575 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22576 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22577 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22578 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22579 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22580 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22581 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22582 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22583 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22584 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22585 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22586 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22587 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22588 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22589 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22590 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22591 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22592 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22593 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22594 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22595 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22596 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22597 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22598 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22599 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22600 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22601 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22602 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22603 (is_a_helper <gimple_statement_phi>::test): Convert to...
22604 (is_a_helper <gimple_statement_phi *>::test): ...this.
22605 (is_a_helper <gimple_statement_transaction>::test): Convert to...
22606 (is_a_helper <gimple_statement_transaction *>::test): ...this.
22607 (is_a_helper <gimple_statement_try>::test): Convert to...
22608 (is_a_helper <gimple_statement_try *>::test): ...this.
22609 (is_a_helper <gimple_statement_wce>::test): Convert to...
22610 (is_a_helper <gimple_statement_wce *>::test): ...this.
22611 (is_a_helper <const gimple_statement_asm>::test): Convert to...
22612 (is_a_helper <const gimple_statement_asm *>::test): ...this.
22613 (is_a_helper <const gimple_statement_bind>::test): Convert to...
22614 (is_a_helper <const gimple_statement_bind *>::test): ...this.
22615 (is_a_helper <const gimple_statement_call>::test): Convert to...
22616 (is_a_helper <const gimple_statement_call *>::test): ...this.
22617 (is_a_helper <const gimple_statement_catch>::test): Convert to...
22618 (is_a_helper <const gimple_statement_catch *>::test): ...this.
22619 (is_a_helper <const gimple_statement_resx>::test): Convert to...
22620 (is_a_helper <const gimple_statement_resx *>::test): ...this.
22621 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22622 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22623 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22624 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22625 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22627 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22629 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22631 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22633 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22634 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22635 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22637 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22638 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22640 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22641 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22642 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22643 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22644 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22645 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22647 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22648 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22649 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22650 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22652 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22653 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22654 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22655 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22656 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22657 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22658 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22659 (is_a_helper <const gimple_statement_phi>::test): Convert to...
22660 (is_a_helper <const gimple_statement_phi *>::test): ...this.
22661 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22662 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22663 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22664 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22665 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22666 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22667 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22669 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22671 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22672 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22674 (gimple_use_ops): Update for removal of implicit pointer from the
22676 (gimple_set_use_ops): Likewise.
22677 (gimple_vuse): Likewise.
22678 (gimple_vdef): Likewise.
22679 (gimple_vuse_ptr): Likewise.
22680 (gimple_vdef_ptr): Likewise.
22681 (gimple_set_vuse): Likewise.
22682 (gimple_set_vdef): Likewise.
22683 (gimple_omp_return_set_lhs): Likewise.
22684 (gimple_omp_return_lhs): Likewise.
22685 (gimple_omp_return_lhs_ptr): Likewise.
22686 (gimple_call_fntype): Likewise.
22687 (gimple_call_set_fntype): Likewise.
22688 (gimple_call_set_internal_fn): Likewise.
22689 (gimple_call_use_set): Likewise.
22690 (gimple_call_clobber_set): Likewise.
22691 (gimple_bind_vars): Likewise.
22692 (gimple_bind_set_vars): Likewise.
22693 (gimple_bind_body_ptr): Likewise.
22694 (gimple_bind_set_body): Likewise.
22695 (gimple_bind_add_stmt): Likewise.
22696 (gimple_bind_block): Likewise.
22697 (gimple_bind_set_block): Likewise.
22698 (gimple_asm_ninputs): Likewise.
22699 (gimple_asm_noutputs): Likewise.
22700 (gimple_asm_nclobbers): Likewise.
22701 (gimple_asm_nlabels): Likewise.
22702 (gimple_asm_input_op): Likewise.
22703 (gimple_asm_input_op_ptr): Likewise.
22704 (gimple_asm_output_op): Likewise.
22705 (gimple_asm_output_op_ptr): Likewise.
22706 (gimple_asm_set_output_op): Likewise.
22707 (gimple_asm_clobber_op): Likewise.
22708 (gimple_asm_set_clobber_op): Likewise.
22709 (gimple_asm_label_op): Likewise.
22710 (gimple_asm_set_label_op): Likewise.
22711 (gimple_asm_string): Likewise.
22712 (gimple_catch_types): Likewise.
22713 (gimple_catch_types_ptr): Likewise.
22714 (gimple_catch_handler_ptr): Likewise.
22715 (gimple_catch_set_types): Likewise.
22716 (gimple_catch_set_handler): Likewise.
22717 (gimple_eh_filter_types): Likewise.
22718 (gimple_eh_filter_types_ptr): Likewise.
22719 (gimple_eh_filter_failure_ptr): Likewise.
22720 (gimple_eh_filter_set_types): Likewise.
22721 (gimple_eh_filter_set_failure): Likewise.
22722 (gimple_eh_must_not_throw_fndecl): Likewise.
22723 (gimple_eh_must_not_throw_set_fndecl): Likewise.
22724 (gimple_eh_else_n_body_ptr): Likewise.
22725 (gimple_eh_else_e_body_ptr): Likewise.
22726 (gimple_eh_else_set_n_body): Likewise.
22727 (gimple_eh_else_set_e_body): Likewise.
22728 (gimple_try_eval_ptr): Likewise.
22729 (gimple_try_cleanup_ptr): Likewise.
22730 (gimple_try_set_eval): Likewise.
22731 (gimple_try_set_cleanup): Likewise.
22732 (gimple_wce_cleanup_ptr): Likewise.
22733 (gimple_wce_set_cleanup): Likewise.
22734 (gimple_phi_capacity): Likewise.
22735 (gimple_phi_num_args): Likewise.
22736 (gimple_phi_result): Likewise.
22737 (gimple_phi_result_ptr): Likewise.
22738 (gimple_phi_set_result): Likewise.
22739 (gimple_phi_arg): Likewise.
22740 (gimple_phi_set_arg): Likewise.
22741 (gimple_resx_region): Likewise.
22742 (gimple_resx_set_region): Likewise.
22743 (gimple_eh_dispatch_region): Likewise.
22744 (gimple_eh_dispatch_set_region): Likewise.
22745 (gimple_omp_critical_name): Likewise.
22746 (gimple_omp_critical_name_ptr): Likewise.
22747 (gimple_omp_critical_set_name): Likewise.
22748 (gimple_omp_for_clauses): Likewise.
22749 (gimple_omp_for_clauses_ptr): Likewise.
22750 (gimple_omp_for_set_clauses): Likewise.
22751 (gimple_omp_for_collapse): Likewise.
22752 (gimple_omp_for_index): Likewise.
22753 (gimple_omp_for_index_ptr): Likewise.
22754 (gimple_omp_for_set_index): Likewise.
22755 (gimple_omp_for_initial): Likewise.
22756 (gimple_omp_for_initial_ptr): Likewise.
22757 (gimple_omp_for_set_initial): Likewise.
22758 (gimple_omp_for_final): Likewise.
22759 (gimple_omp_for_final_ptr): Likewise.
22760 (gimple_omp_for_set_final): Likewise.
22761 (gimple_omp_for_incr): Likewise.
22762 (gimple_omp_for_incr_ptr): Likewise.
22763 (gimple_omp_for_set_incr): Likewise.
22764 (gimple_omp_for_pre_body_ptr): Likewise.
22765 (gimple_omp_for_set_pre_body): Likewise.
22766 (gimple_omp_parallel_clauses): Likewise.
22767 (gimple_omp_parallel_clauses_ptr): Likewise.
22768 (gimple_omp_parallel_set_clauses): Likewise.
22769 (gimple_omp_parallel_child_fn): Likewise.
22770 (gimple_omp_parallel_child_fn_ptr): Likewise.
22771 (gimple_omp_parallel_set_child_fn): Likewise.
22772 (gimple_omp_parallel_data_arg): Likewise.
22773 (gimple_omp_parallel_data_arg_ptr): Likewise.
22774 (gimple_omp_parallel_set_data_arg): Likewise.
22775 (gimple_omp_task_clauses): Likewise.
22776 (gimple_omp_task_clauses_ptr): Likewise.
22777 (gimple_omp_task_set_clauses): Likewise.
22778 (gimple_omp_task_child_fn): Likewise.
22779 (gimple_omp_task_child_fn_ptr): Likewise.
22780 (gimple_omp_task_set_child_fn): Likewise.
22781 (gimple_omp_task_data_arg): Likewise.
22782 (gimple_omp_task_data_arg_ptr): Likewise.
22783 (gimple_omp_task_set_data_arg): Likewise.
22784 (gimple_omp_taskreg_clauses): Likewise.
22785 (gimple_omp_taskreg_clauses_ptr): Likewise.
22786 (gimple_omp_taskreg_set_clauses): Likewise.
22787 (gimple_omp_taskreg_child_fn): Likewise.
22788 (gimple_omp_taskreg_child_fn_ptr): Likewise.
22789 (gimple_omp_taskreg_set_child_fn): Likewise.
22790 (gimple_omp_taskreg_data_arg): Likewise.
22791 (gimple_omp_taskreg_data_arg_ptr): Likewise.
22792 (gimple_omp_taskreg_set_data_arg): Likewise.
22793 (gimple_omp_task_copy_fn): Likewise.
22794 (gimple_omp_task_copy_fn_ptr): Likewise.
22795 (gimple_omp_task_set_copy_fn): Likewise.
22796 (gimple_omp_task_arg_size): Likewise.
22797 (gimple_omp_task_arg_size_ptr): Likewise.
22798 (gimple_omp_task_set_arg_size): Likewise.
22799 (gimple_omp_task_arg_align): Likewise.
22800 (gimple_omp_task_arg_align_ptr): Likewise.
22801 (gimple_omp_task_set_arg_align): Likewise.
22802 (gimple_omp_single_clauses): Likewise.
22803 (gimple_omp_single_clauses_ptr): Likewise.
22804 (gimple_omp_single_set_clauses): Likewise.
22805 (gimple_omp_target_clauses): Likewise.
22806 (gimple_omp_target_clauses_ptr): Likewise.
22807 (gimple_omp_target_set_clauses): Likewise.
22808 (gimple_omp_target_child_fn): Likewise.
22809 (gimple_omp_target_child_fn_ptr): Likewise.
22810 (gimple_omp_target_set_child_fn): Likewise.
22811 (gimple_omp_target_data_arg): Likewise.
22812 (gimple_omp_target_data_arg_ptr): Likewise.
22813 (gimple_omp_target_set_data_arg): Likewise.
22814 (gimple_omp_teams_clauses): Likewise.
22815 (gimple_omp_teams_clauses_ptr): Likewise.
22816 (gimple_omp_teams_set_clauses): Likewise.
22817 (gimple_omp_sections_clauses): Likewise.
22818 (gimple_omp_sections_clauses_ptr): Likewise.
22819 (gimple_omp_sections_set_clauses): Likewise.
22820 (gimple_omp_sections_control): Likewise.
22821 (gimple_omp_sections_control_ptr): Likewise.
22822 (gimple_omp_sections_set_control): Likewise.
22823 (gimple_omp_for_set_cond): Likewise.
22824 (gimple_omp_for_cond): Likewise.
22825 (gimple_omp_atomic_store_set_val): Likewise.
22826 (gimple_omp_atomic_store_val): Likewise.
22827 (gimple_omp_atomic_store_val_ptr): Likewise.
22828 (gimple_omp_atomic_load_set_lhs): Likewise.
22829 (gimple_omp_atomic_load_lhs): Likewise.
22830 (gimple_omp_atomic_load_lhs_ptr): Likewise.
22831 (gimple_omp_atomic_load_set_rhs): Likewise.
22832 (gimple_omp_atomic_load_rhs): Likewise.
22833 (gimple_omp_atomic_load_rhs_ptr): Likewise.
22834 (gimple_omp_continue_control_def): Likewise.
22835 (gimple_omp_continue_control_def_ptr): Likewise.
22836 (gimple_omp_continue_set_control_def): Likewise.
22837 (gimple_omp_continue_control_use): Likewise.
22838 (gimple_omp_continue_control_use_ptr): Likewise.
22839 (gimple_omp_continue_set_control_use): Likewise.
22840 (gimple_transaction_body_ptr): Likewise.
22841 (gimple_transaction_label): Likewise.
22842 (gimple_transaction_label_ptr): Likewise.
22843 (gimple_transaction_set_body): Likewise.
22844 (gimple_transaction_set_label): Likewise.
22846 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22847 * ipa-inline-analysis.c (inline_write_summary): Likewise.
22848 * ipa-ref.c (ipa_record_reference): Likewise.
22849 * ipa-reference.c (analyze_function): Likewise.
22850 (ipa_reference_write_optimization_summary): Likewise.
22851 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22852 (address_taken_from_non_vtable_p): Likewise.
22853 (comdat_can_be_unshared_p_1): Likewise.
22854 * lto-cgraph.c (lto_output_ref): Likewise.
22855 (add_references): Likewise.
22856 (compute_ltrans_boundary): Likewise.
22857 (output_symtab): Likewise.
22858 (input_ref): Likewise.
22859 (input_cgraph_1): Likewise.
22860 (output_cgraph_opt_summary): Likewise.
22861 * lto-streamer-out.c (lto_output): Likewise.
22862 (output_symbol_p): Likewise.
22863 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22864 (lsei_start_function_in_partition): Likewise.
22865 (lsei_next_variable_in_partition): Likewise.
22866 (lsei_start_variable_in_partition): Likewise.
22867 * symtab.c (insert_to_assembler_name_hash): Likewise.
22868 (unlink_from_assembler_name_hash): Likewise.
22869 (symtab_unregister_node): Likewise.
22870 (symtab_remove_node): Likewise.
22871 (dump_symtab_node): Likewise.
22872 (verify_symtab_base): Likewise.
22873 (verify_symtab_node): Likewise.
22874 (symtab_make_decl_local): Likewise.
22875 (symtab_alias_ultimate_target): Likewise.
22876 (symtab_resolve_alias): Likewise.
22877 (symtab_get_symbol_partitioning_class): Likewise.
22878 * tree-phinodes.c (allocate_phi_node): Likewise.
22879 (reserve_phi_args_for_new_edge): Likewise.
22880 (remove_phi_args): Likewise.
22881 * varpool.c (varpool_node_for_asm): Likewise.
22882 (varpool_remove_unreferenced_decls): Likewise.
22884 2014-04-23 Jeff Law <law@redhat.com>
22886 PR tree-optimization/60902
22887 * tree-ssa-threadedge.c
22888 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22889 invalidate outputs from statements that do not produce useful
22890 outputs for threading.
22892 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
22894 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22895 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22896 machine descriptions for Stack Smashing Protector.
22898 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
22900 * aarch64.md (<optab>_rol<mode>3): New pattern.
22901 (<optab>_rolsi3_uxtw): Likewise.
22902 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
22904 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
22906 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
22907 (arm_cortex_a12_tune): Likewise.
22909 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22911 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
22913 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22915 * config/arm/arm.md (arm_rev16si2): New pattern.
22916 (arm_rev16si2_alt): Likewise.
22917 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
22919 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22921 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
22922 (rev16<mode>2_alt): Likewise.
22923 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
22924 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22925 (aarch_rev16_shleft_mask_imm_p): Likewise.
22926 (aarch_rev16_p_1): Likewise.
22927 (aarch_rev16_p): Likewise.
22928 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22929 (aarch_rev16_shright_mask_imm_p): Likewise.
22930 (aarch_rev16_shleft_mask_imm_p): Likewise.
22932 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22934 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22935 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22937 (cortex_a53_extra_costs): Likewise.
22938 (cortex_a57_extra_costs): Likewise.
22939 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22940 (cortexa7_extra_costs): Likewise.
22941 (cortexa8_extra_costs): Likewise.
22942 (cortexa12_extra_costs): Likewise.
22943 (cortexa15_extra_costs): Likewise.
22944 (v7m_extra_costs): Likewise.
22945 (arm_new_rtx_costs): Handle BSWAP.
22947 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22949 * config/arm/arm.c (cortexa8_extra_costs): New table.
22950 (arm_cortex_a8_tune): New tuning struct.
22951 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22953 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22955 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22957 2014-04-23 Richard Biener <rguenther@suse.de>
22959 * Makefile.in (OBJS): Remove loop-unswitch.o.
22960 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22961 * passes.def (pass_rtl_unswitch): Likewise.
22962 * loop-init.c (gate_rtl_unswitch): Likewise.
22963 (rtl_unswitch): Likewise.
22964 (pass_data_rtl_unswitch): Likewise.
22965 (pass_rtl_unswitch): Likewise.
22966 (make_pass_rtl_unswitch): Likewise.
22967 * rtl.h (reversed_condition): Likewise.
22968 (compare_and_jump_seq): Likewise.
22969 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
22971 * loop-unroll.c (compare_and_jump_seq): Likewise.
22973 2014-04-23 Richard Biener <rguenther@suse.de>
22975 PR tree-optimization/60903
22976 * tree-ssa-loop-im.c (analyze_memory_references): Remove
22977 commented code block.
22978 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
22979 loop flags to newly created BBs and edges.
22981 2014-04-23 Nick Clifton <nickc@redhat.com>
22983 * config/msp430/msp430.c (msp430_handle_option): Move function
22985 (msp430_option_override): Simplify mcu and mcpu option handling.
22986 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
22987 support for -mhwmult command line option.
22988 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
22989 -mhwmult command line option.
22990 (msp430_hwmult_enabled): Delete.
22991 (msp43o_output_labelref): Add support for -mhwmult command line option.
22992 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
22993 (umulsidi3): Likewise.
22994 * config/msp430/msp430.opt (mmcu): Add Report attribute.
22995 (mcpu, mlarge, msmall): Likewise.
22996 (mhwmult): New option.
22997 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
22999 (msp430_is_f5_mcu): Remove prototype.
23000 (msp430_use_f5_series_hwmult): Add prototype.
23001 * config/msp430/msp430-opts.h: New file.
23002 * common/config/msp430: New directory.
23003 * common/config/msp430/msp430-common.c: New file.
23004 * config.gcc (msp430): Remove target_has_targetm_common.
23005 * doc/invoke.texi: Document -mhwmult command line option.
23007 2014-04-23 Nick Clifton <nickc@redhat.com>
23009 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23010 default-manifest.o if it can be found in the search path.
23011 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23013 2014-04-23 Terry Guo <terry.guo@arm.com>
23015 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23017 2014-04-23 Richard Biener <rguenther@suse.de>
23019 PR middle-end/60895
23020 * tree-inline.c (declare_return_variable): Use mark_addressable.
23022 2014-04-23 Richard Biener <rguenther@suse.de>
23024 PR middle-end/60891
23025 * loop-init.c (loop_optimizer_init): Make sure to apply
23026 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23028 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23031 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23033 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23034 if flag_sanitize_undefined_trap_on_error.
23035 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23036 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23037 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23038 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23039 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23040 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23041 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23042 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23043 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23044 * ubsan.c (ubsan_instrument_unreachable): Return
23045 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23046 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23047 if flag_sanitize_undefined_trap_on_error and
23048 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23049 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23050 instrument_bool_enum_load): Emit __builtin_trap () if
23051 flag_sanitize_undefined_trap_on_error and
23052 __builtin_handle_*_abort () if !flag_sanitize_recover.
23053 * doc/invoke.texi (-fsanitize-recover,
23054 -fsanitize-undefined-trap-on-error): Document.
23056 2014-04-22 Christian Bruel <christian.bruel@st.com>
23058 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23059 Force immediates to SImode.
23061 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23063 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23064 (lroundsfsi2): New.
23065 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23066 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23067 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23068 (nios2_fpu_insn): Add entry for round.
23069 (N2FPU_NO_ERRNO_P): Define.
23070 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23072 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23074 2014-04-22 Richard Henderson <rth@redhat.com>
23076 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23077 (add<GPI>3_compare0): Remove leading * from name.
23078 (add<GPI>3_carryin): Likewise.
23079 (sub<GPI>3_compare0): Likewise.
23080 (sub<GPI>3_carryin): Likewise.
23081 (<su_optab>mulditi3): New expander.
23082 (multi3): New expander.
23083 (madd<GPI>): Remove leading * from name.
23085 2014-04-22 Martin Jambor <mjambor@suse.cz>
23087 * cgraphclones.c (cgraph_function_versioning): Copy
23088 ipa_transforms_to_apply instead of asserting it is empty.
23090 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23093 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23094 on count_exp to get mode.
23096 2014-04-22 Andrew Pinski <apinski@cavium.com>
23098 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23099 Handle TLS for ILP32.
23100 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23101 (tlsie_small_<mode>): this and handle PTR.
23102 (tlsie_small_sidi): New pattern.
23103 (tlsle_small): Change to an expand to handle ILP32.
23104 (tlsle_small_<mode>): New pattern.
23105 (tlsdesc_small): Rename to ...
23106 (tlsdesc_small_<mode>): this and handle PTR.
23108 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23110 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23112 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23114 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23115 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23116 (aarch64_types_signed_poly_qualifiers): Likewise.
23117 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23118 (aarch64_types_poly_signed_qualifiers): Likewise.
23119 (TYPES_REINTERP_SS): Type macro added.
23120 (TYPES_REINTERP_SU): Likewise.
23121 (TYPES_REINTERP_SP): Likewise.
23122 (TYPES_REINTERP_US): Likewise.
23123 (TYPES_REINTERP_PS): Likewise.
23124 (aarch64_fold_builtin): New expression folding added.
23125 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23126 Declarations removed.
23127 (REINTERP_SS): Declarations added.
23128 (REINTERP_US): Likewise.
23129 (REINTERP_PS): Likewise.
23130 (REINTERP_SU): Likewise.
23131 (REINTERP_SP): Likewise.
23132 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23133 (vreinterpretq_p8_f64): Likewise.
23134 (vreinterpret_p16_f64): Likewise.
23135 (vreinterpretq_p16_f64): Likewise.
23136 (vreinterpret_f32_f64): Likewise.
23137 (vreinterpretq_f32_f64): Likewise.
23138 (vreinterpret_f64_f32): Likewise.
23139 (vreinterpret_f64_p8): Likewise.
23140 (vreinterpret_f64_p16): Likewise.
23141 (vreinterpret_f64_s8): Likewise.
23142 (vreinterpret_f64_s16): Likewise.
23143 (vreinterpret_f64_s32): Likewise.
23144 (vreinterpret_f64_s64): Likewise.
23145 (vreinterpret_f64_u8): Likewise.
23146 (vreinterpret_f64_u16): Likewise.
23147 (vreinterpret_f64_u32): Likewise.
23148 (vreinterpret_f64_u64): Likewise.
23149 (vreinterpretq_f64_f32): Likewise.
23150 (vreinterpretq_f64_p8): Likewise.
23151 (vreinterpretq_f64_p16): Likewise.
23152 (vreinterpretq_f64_s8): Likewise.
23153 (vreinterpretq_f64_s16): Likewise.
23154 (vreinterpretq_f64_s32): Likewise.
23155 (vreinterpretq_f64_s64): Likewise.
23156 (vreinterpretq_f64_u8): Likewise.
23157 (vreinterpretq_f64_u16): Likewise.
23158 (vreinterpretq_f64_u32): Likewise.
23159 (vreinterpretq_f64_u64): Likewise.
23160 (vreinterpret_s64_f64): Likewise.
23161 (vreinterpretq_s64_f64): Likewise.
23162 (vreinterpret_u64_f64): Likewise.
23163 (vreinterpretq_u64_f64): Likewise.
23164 (vreinterpret_s8_f64): Likewise.
23165 (vreinterpretq_s8_f64): Likewise.
23166 (vreinterpret_s16_f64): Likewise.
23167 (vreinterpretq_s16_f64): Likewise.
23168 (vreinterpret_s32_f64): Likewise.
23169 (vreinterpretq_s32_f64): Likewise.
23170 (vreinterpret_u8_f64): Likewise.
23171 (vreinterpretq_u8_f64): Likewise.
23172 (vreinterpret_u16_f64): Likewise.
23173 (vreinterpretq_u16_f64): Likewise.
23174 (vreinterpret_u32_f64): Likewise.
23175 (vreinterpretq_u32_f64): Likewise.
23177 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23179 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23180 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23181 (vreinterpret_p8_s8): Likewise.
23182 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23183 (vreinterpret_p8_s16): Likewise.
23184 (vreinterpret_p8_s32): Likewise.
23185 (vreinterpret_p8_s64): Likewise.
23186 (vreinterpret_p8_f32): Likewise.
23187 (vreinterpret_p8_u8): Likewise.
23188 (vreinterpret_p8_u16): Likewise.
23189 (vreinterpret_p8_u32): Likewise.
23190 (vreinterpret_p8_u64): Likewise.
23191 (vreinterpret_p8_p16): Likewise.
23192 (vreinterpretq_p8_s8): Likewise.
23193 (vreinterpretq_p8_s16): Likewise.
23194 (vreinterpretq_p8_s32): Likewise.
23195 (vreinterpretq_p8_s64): Likewise.
23196 (vreinterpretq_p8_f32): Likewise.
23197 (vreinterpretq_p8_u8): Likewise.
23198 (vreinterpretq_p8_u16): Likewise.
23199 (vreinterpretq_p8_u32): Likewise.
23200 (vreinterpretq_p8_u64): Likewise.
23201 (vreinterpretq_p8_p16): Likewise.
23202 (vreinterpret_p16_s8): Likewise.
23203 (vreinterpret_p16_s16): Likewise.
23204 (vreinterpret_p16_s32): Likewise.
23205 (vreinterpret_p16_s64): Likewise.
23206 (vreinterpret_p16_f32): Likewise.
23207 (vreinterpret_p16_u8): Likewise.
23208 (vreinterpret_p16_u16): Likewise.
23209 (vreinterpret_p16_u32): Likewise.
23210 (vreinterpret_p16_u64): Likewise.
23211 (vreinterpret_p16_p8): Likewise.
23212 (vreinterpretq_p16_s8): Likewise.
23213 (vreinterpretq_p16_s16): Likewise.
23214 (vreinterpretq_p16_s32): Likewise.
23215 (vreinterpretq_p16_s64): Likewise.
23216 (vreinterpretq_p16_f32): Likewise.
23217 (vreinterpretq_p16_u8): Likewise.
23218 (vreinterpretq_p16_u16): Likewise.
23219 (vreinterpretq_p16_u32): Likewise.
23220 (vreinterpretq_p16_u64): Likewise.
23221 (vreinterpretq_p16_p8): Likewise.
23222 (vreinterpret_f32_s8): Likewise.
23223 (vreinterpret_f32_s16): Likewise.
23224 (vreinterpret_f32_s32): Likewise.
23225 (vreinterpret_f32_s64): Likewise.
23226 (vreinterpret_f32_u8): Likewise.
23227 (vreinterpret_f32_u16): Likewise.
23228 (vreinterpret_f32_u32): Likewise.
23229 (vreinterpret_f32_u64): Likewise.
23230 (vreinterpret_f32_p8): Likewise.
23231 (vreinterpret_f32_p16): Likewise.
23232 (vreinterpretq_f32_s8): Likewise.
23233 (vreinterpretq_f32_s16): Likewise.
23234 (vreinterpretq_f32_s32): Likewise.
23235 (vreinterpretq_f32_s64): Likewise.
23236 (vreinterpretq_f32_u8): Likewise.
23237 (vreinterpretq_f32_u16): Likewise.
23238 (vreinterpretq_f32_u32): Likewise.
23239 (vreinterpretq_f32_u64): Likewise.
23240 (vreinterpretq_f32_p8): Likewise.
23241 (vreinterpretq_f32_p16): Likewise.
23242 (vreinterpret_s64_s8): Likewise.
23243 (vreinterpret_s64_s16): Likewise.
23244 (vreinterpret_s64_s32): Likewise.
23245 (vreinterpret_s64_f32): Likewise.
23246 (vreinterpret_s64_u8): Likewise.
23247 (vreinterpret_s64_u16): Likewise.
23248 (vreinterpret_s64_u32): Likewise.
23249 (vreinterpret_s64_u64): Likewise.
23250 (vreinterpret_s64_p8): Likewise.
23251 (vreinterpret_s64_p16): Likewise.
23252 (vreinterpretq_s64_s8): Likewise.
23253 (vreinterpretq_s64_s16): Likewise.
23254 (vreinterpretq_s64_s32): Likewise.
23255 (vreinterpretq_s64_f32): Likewise.
23256 (vreinterpretq_s64_u8): Likewise.
23257 (vreinterpretq_s64_u16): Likewise.
23258 (vreinterpretq_s64_u32): Likewise.
23259 (vreinterpretq_s64_u64): Likewise.
23260 (vreinterpretq_s64_p8): Likewise.
23261 (vreinterpretq_s64_p16): Likewise.
23262 (vreinterpret_u64_s8): Likewise.
23263 (vreinterpret_u64_s16): Likewise.
23264 (vreinterpret_u64_s32): Likewise.
23265 (vreinterpret_u64_s64): Likewise.
23266 (vreinterpret_u64_f32): Likewise.
23267 (vreinterpret_u64_u8): Likewise.
23268 (vreinterpret_u64_u16): Likewise.
23269 (vreinterpret_u64_u32): Likewise.
23270 (vreinterpret_u64_p8): Likewise.
23271 (vreinterpret_u64_p16): Likewise.
23272 (vreinterpretq_u64_s8): Likewise.
23273 (vreinterpretq_u64_s16): Likewise.
23274 (vreinterpretq_u64_s32): Likewise.
23275 (vreinterpretq_u64_s64): Likewise.
23276 (vreinterpretq_u64_f32): Likewise.
23277 (vreinterpretq_u64_u8): Likewise.
23278 (vreinterpretq_u64_u16): Likewise.
23279 (vreinterpretq_u64_u32): Likewise.
23280 (vreinterpretq_u64_p8): Likewise.
23281 (vreinterpretq_u64_p16): Likewise.
23282 (vreinterpret_s8_s16): Likewise.
23283 (vreinterpret_s8_s32): Likewise.
23284 (vreinterpret_s8_s64): Likewise.
23285 (vreinterpret_s8_f32): Likewise.
23286 (vreinterpret_s8_u8): Likewise.
23287 (vreinterpret_s8_u16): Likewise.
23288 (vreinterpret_s8_u32): Likewise.
23289 (vreinterpret_s8_u64): Likewise.
23290 (vreinterpret_s8_p8): Likewise.
23291 (vreinterpret_s8_p16): Likewise.
23292 (vreinterpretq_s8_s16): Likewise.
23293 (vreinterpretq_s8_s32): Likewise.
23294 (vreinterpretq_s8_s64): Likewise.
23295 (vreinterpretq_s8_f32): Likewise.
23296 (vreinterpretq_s8_u8): Likewise.
23297 (vreinterpretq_s8_u16): Likewise.
23298 (vreinterpretq_s8_u32): Likewise.
23299 (vreinterpretq_s8_u64): Likewise.
23300 (vreinterpretq_s8_p8): Likewise.
23301 (vreinterpretq_s8_p16): Likewise.
23302 (vreinterpret_s16_s8): Likewise.
23303 (vreinterpret_s16_s32): Likewise.
23304 (vreinterpret_s16_s64): Likewise.
23305 (vreinterpret_s16_f32): Likewise.
23306 (vreinterpret_s16_u8): Likewise.
23307 (vreinterpret_s16_u16): Likewise.
23308 (vreinterpret_s16_u32): Likewise.
23309 (vreinterpret_s16_u64): Likewise.
23310 (vreinterpret_s16_p8): Likewise.
23311 (vreinterpret_s16_p16): Likewise.
23312 (vreinterpretq_s16_s8): Likewise.
23313 (vreinterpretq_s16_s32): Likewise.
23314 (vreinterpretq_s16_s64): Likewise.
23315 (vreinterpretq_s16_f32): Likewise.
23316 (vreinterpretq_s16_u8): Likewise.
23317 (vreinterpretq_s16_u16): Likewise.
23318 (vreinterpretq_s16_u32): Likewise.
23319 (vreinterpretq_s16_u64): Likewise.
23320 (vreinterpretq_s16_p8): Likewise.
23321 (vreinterpretq_s16_p16): Likewise.
23322 (vreinterpret_s32_s8): Likewise.
23323 (vreinterpret_s32_s16): Likewise.
23324 (vreinterpret_s32_s64): Likewise.
23325 (vreinterpret_s32_f32): Likewise.
23326 (vreinterpret_s32_u8): Likewise.
23327 (vreinterpret_s32_u16): Likewise.
23328 (vreinterpret_s32_u32): Likewise.
23329 (vreinterpret_s32_u64): Likewise.
23330 (vreinterpret_s32_p8): Likewise.
23331 (vreinterpret_s32_p16): Likewise.
23332 (vreinterpretq_s32_s8): Likewise.
23333 (vreinterpretq_s32_s16): Likewise.
23334 (vreinterpretq_s32_s64): Likewise.
23335 (vreinterpretq_s32_f32): Likewise.
23336 (vreinterpretq_s32_u8): Likewise.
23337 (vreinterpretq_s32_u16): Likewise.
23338 (vreinterpretq_s32_u32): Likewise.
23339 (vreinterpretq_s32_u64): Likewise.
23340 (vreinterpretq_s32_p8): Likewise.
23341 (vreinterpretq_s32_p16): Likewise.
23342 (vreinterpret_u8_s8): Likewise.
23343 (vreinterpret_u8_s16): Likewise.
23344 (vreinterpret_u8_s32): Likewise.
23345 (vreinterpret_u8_s64): Likewise.
23346 (vreinterpret_u8_f32): Likewise.
23347 (vreinterpret_u8_u16): Likewise.
23348 (vreinterpret_u8_u32): Likewise.
23349 (vreinterpret_u8_u64): Likewise.
23350 (vreinterpret_u8_p8): Likewise.
23351 (vreinterpret_u8_p16): Likewise.
23352 (vreinterpretq_u8_s8): Likewise.
23353 (vreinterpretq_u8_s16): Likewise.
23354 (vreinterpretq_u8_s32): Likewise.
23355 (vreinterpretq_u8_s64): Likewise.
23356 (vreinterpretq_u8_f32): Likewise.
23357 (vreinterpretq_u8_u16): Likewise.
23358 (vreinterpretq_u8_u32): Likewise.
23359 (vreinterpretq_u8_u64): Likewise.
23360 (vreinterpretq_u8_p8): Likewise.
23361 (vreinterpretq_u8_p16): Likewise.
23362 (vreinterpret_u16_s8): Likewise.
23363 (vreinterpret_u16_s16): Likewise.
23364 (vreinterpret_u16_s32): Likewise.
23365 (vreinterpret_u16_s64): Likewise.
23366 (vreinterpret_u16_f32): Likewise.
23367 (vreinterpret_u16_u8): Likewise.
23368 (vreinterpret_u16_u32): Likewise.
23369 (vreinterpret_u16_u64): Likewise.
23370 (vreinterpret_u16_p8): Likewise.
23371 (vreinterpret_u16_p16): Likewise.
23372 (vreinterpretq_u16_s8): Likewise.
23373 (vreinterpretq_u16_s16): Likewise.
23374 (vreinterpretq_u16_s32): Likewise.
23375 (vreinterpretq_u16_s64): Likewise.
23376 (vreinterpretq_u16_f32): Likewise.
23377 (vreinterpretq_u16_u8): Likewise.
23378 (vreinterpretq_u16_u32): Likewise.
23379 (vreinterpretq_u16_u64): Likewise.
23380 (vreinterpretq_u16_p8): Likewise.
23381 (vreinterpretq_u16_p16): Likewise.
23382 (vreinterpret_u32_s8): Likewise.
23383 (vreinterpret_u32_s16): Likewise.
23384 (vreinterpret_u32_s32): Likewise.
23385 (vreinterpret_u32_s64): Likewise.
23386 (vreinterpret_u32_f32): Likewise.
23387 (vreinterpret_u32_u8): Likewise.
23388 (vreinterpret_u32_u16): Likewise.
23389 (vreinterpret_u32_u64): Likewise.
23390 (vreinterpret_u32_p8): Likewise.
23391 (vreinterpret_u32_p16): Likewise.
23392 (vreinterpretq_u32_s8): Likewise.
23393 (vreinterpretq_u32_s16): Likewise.
23394 (vreinterpretq_u32_s32): Likewise.
23395 (vreinterpretq_u32_s64): Likewise.
23396 (vreinterpretq_u32_f32): Likewise.
23397 (vreinterpretq_u32_u8): Likewise.
23398 (vreinterpretq_u32_u16): Likewise.
23399 (vreinterpretq_u32_u64): Likewise.
23400 (vreinterpretq_u32_p8): Likewise.
23401 (vreinterpretq_u32_p16): Likewise.
23403 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23405 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23407 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23409 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23410 (vqnegd_s64): Likewise.
23411 (vqabs_s64): Likewise.
23412 (vqabsd_s64): Likewise.
23414 2014-04-22 Richard Henderson <rth@redhat.com>
23416 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23417 computation to the top of the loop.
23419 2014-04-22 Renlin <renlin.li@arm.com>
23420 Jiong Wang <jiong.wang@arm.com>
23422 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23423 * config/aarch64/aarch64.c (aarch64_layout_frame)
23424 (aarch64_initial_elimination_offset): Likewise.
23426 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23428 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23431 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23433 * machmode.h (bitwise_mode_for_mode): Declare.
23434 * stor-layout.h (bitwise_type_for_mode): Likewise.
23435 * stor-layout.c (bitwise_mode_for_mode): New function.
23436 (bitwise_type_for_mode): Likewise.
23437 * builtins.c (fold_builtin_memory_op): Use it instead of
23438 int_mode_for_mode and build_nonstandard_integer_type.
23440 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23442 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23443 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23444 (*-*-solaris2*): Simplify.
23445 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23446 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23447 *-*-solaris2.9* handling.
23449 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23451 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23452 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23453 handling, simplify.
23454 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23455 * configure: Regenerate.
23457 * config/i386/sol2-9.h: Remove.
23459 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23460 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23461 Remove Solaris 9 references.
23463 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23465 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23466 (floatuns<GPI:mode><GPF:mode>2): Remove.
23467 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23468 and floatuns conversions.
23469 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23470 and floatuns conversions.
23471 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23472 (w1,w2): New mode attributes for inequal width conversions.
23474 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23476 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23477 the output asm format.
23479 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23481 * config/aarch64/aarch64-simd.md
23482 (aarch64_cm<optab>di): Always split.
23483 (*aarch64_cm<optab>di): New.
23484 (aarch64_cmtstdi): Always split.
23485 (*aarch64_cmtstdi): New.
23487 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23489 PR tree-optimization/60823
23490 * omp-low.c (ipa_simd_modify_function_body): Go through
23491 all SSA_NAMEs and for those refering to vector arguments
23492 which are going to be replaced adjust SSA_NAME_VAR and,
23493 if it is a default definition, change it into a non-default
23494 definition assigned at the beginning of function from new_decl.
23495 (ipa_simd_modify_stmt_ops): Rewritten.
23496 * tree-dfa.c (set_ssa_default_def): When removing default def,
23497 check for NULL loc instead of NULL *loc.
23499 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23501 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23502 restrictions on core registers for DImode values in Thumb2.
23504 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23506 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23507 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23509 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23511 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23512 (*iordi_notzesidi_di): Likewise.
23513 (*iordi_notsesidi_di): Likewise.
23515 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23517 * config/arm/arm-protos.h (tune_params): New struct members.
23518 * config/arm/arm.c: Initialise tune_params per processor.
23519 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23520 for speed, based on new tune_params.
23522 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23524 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23525 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23526 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23527 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23528 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23529 (vrnda_f64): Likewise.
23530 (vrndi_f64): Likewise.
23531 (vrndm_f64): Likewise.
23532 (vrndn_f64): Likewise.
23533 (vrndp_f64): Likewise.
23534 (vrndx_f64): Likewise.
23536 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23538 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23539 GET_MODE_SIZE argument is enum machine_mode.
23541 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23544 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23545 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23547 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23549 PR middle-end/60281
23550 * asan.c (asan_emit_stack_protection): Force the base to align to
23551 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23552 appropriate bits if STRICT_ALIGNMENT.
23553 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23555 (expand_used_vars): Leave a space in the stack frame for alignment
23556 if STRICT_ALIGNMENT.
23558 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23560 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23562 (gimple_store_p): Likewise.
23563 (gimple_assign_load_p): Likewise.
23564 (gimple_assign_cast_p): Likewise.
23565 (gimple_clobber_p): Likewise.
23567 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23568 rather than a gimple.
23569 (gimple_assign_cast_p): Likewise.
23571 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23574 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23575 If mode is DDmode and TARGET_E500_DOUBLE allow move.
23577 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23578 more debug information for E500 if -mdebug=reg.
23580 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
23583 * config/i386/i386.c (ix86_expand_builtin)
23584 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23585 register for target RTX.
23586 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23588 2014-04-18 Cong Hou <congh@google.com>
23590 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23591 the widen-mult pattern by handling two operands with different sizes,
23592 and operands whose size is smaller than half of the result type.
23594 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23596 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23597 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23598 (do_estimate_edge_time): Compute it.
23599 * ipa-inline.c (want_inline_small_function_p): Bypass
23600 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23602 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23604 * ipa-inline.c (spec_rem): New static variable.
23605 (dump_overall_stats): New function.
23606 (dump_inline_stats): New function.
23608 2014-04-18 Richard Henderson <rth@redhat.com>
23610 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23611 to GET_MODE_SIZE, not a reg_class_t.
23613 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23615 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23616 (vsx_xxmrglw_<mode>): Likewise.
23618 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
23621 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23622 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23623 (rs6000_init_hard_regno_mode_ok): Likewise.
23625 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
23627 * ipa-inline.c (inline_small_functions): Account only non-cold
23629 * doc/invoke.texi (inline-unit-growth): Update documentation.
23631 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
23633 * config/rs6000/rs6000.md (addti3, subti3): New.
23635 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
23638 * config/i386/i386.c (ix86_expand_clear): Remove outdated
23639 comment. Check optimize_insn_for_size_p instead of
23640 optimize_insn_for_speed_p.
23642 2014-04-17 Martin Jambor <mjambor@suse.cz>
23644 * gimple-iterator.c (gsi_start_edge): New function.
23645 * gimple-iterator.h (gsi_start_edge): Declare.
23646 * tree-sra.c (single_non_eh_succ): New function.
23647 (disqualify_ops_if_throwing_stmt): Renamed to
23648 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
23649 having one non-EH successor BB.
23650 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23651 generate loads into replacements.
23652 (sra_modify_assign): Likewise and and also use the simple path for
23654 (sra_modify_function_body): Commit statements on edges.
23656 2014-04-17 Richard Biener <rguenther@suse.de>
23658 PR middle-end/60849
23659 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23660 comparison results and add clarifying comment.
23662 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23664 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23665 (blank_mode): Initialize it.
23666 (emit_mode_size_inline, emit_mode_nunits_inline,
23667 emit_mode_inner_inline): New functions.
23668 (emit_insn_modes_h): Call them and surround their output with
23669 #if GCC_VERSION >= 4001 ... #endif.
23670 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23671 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23672 mode_* arrays if the argument is __builtin_constant_p.
23673 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23674 is enum machine_mode.
23676 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23678 * passes.c (opt_pass::execute): Adjust.
23679 (pass_manager::execute_pass_mode_switching): Likewise.
23680 (early_local_passes::execute): Likewise.
23681 (execute_one_pass): Pass cfun to the pass's execute method.
23682 * tree-pass.h (opt_pass::execute): Add function * argument.
23683 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23684 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23685 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23686 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23687 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23688 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23689 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23690 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23691 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23692 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23693 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23694 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23695 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23696 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23697 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23698 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23699 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23700 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23701 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23702 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23703 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23704 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23705 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23706 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23707 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23708 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23709 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23710 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23711 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23714 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23716 * passes.c (opt_pass::gate): Take function * argument.
23717 (gate_all_early_local_passes): Merge into
23718 (early_local_passes::gate): this.
23719 (gate_all_early_optimizations): Merge into
23720 (all_early_optimizations::gate): this.
23721 (gate_all_optimizations): Mege into
23722 (all_optimizations::gate): this.
23723 (gate_all_optimizations_g): Merge into
23724 (all_optimizations_g::gate): this.
23725 (gate_rest_of_compilation): Mege into
23726 (rest_of_compilation::gate): this.
23727 (gate_postreload): Merge into
23728 (postreload::gate): this.
23729 (dump_one_pass): Pass cfun to the pass's gate method.
23730 (execute_ipa_summary_passes): Likewise.
23731 (execute_one_pass): Likewise.
23732 (ipa_write_summaries_2): Likewise.
23733 (ipa_write_optimization_summaries_1): Likewise.
23734 (ipa_read_summaries_1): Likewise.
23735 (ipa_read_optimization_summaries_1): Likewise.
23736 (execute_ipa_stmt_fixups): Likewise.
23737 * tree-pass.h (opt_pass::gate): Add function * argument.
23738 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23739 combine-stack-adj.c, combine.c, compare-elim.c,
23740 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23741 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23742 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23743 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
23744 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23745 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23746 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23747 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23748 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23749 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23750 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23751 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23752 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23753 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23754 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23755 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23756 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23757 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23758 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23759 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23760 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23761 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23762 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23763 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23764 var-tracking.c, vtable-verify.c, web.c: Adjust.
23766 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23768 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23769 * configure: Regenerate.
23771 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23773 * passes.c (dump_one_pass): don't check pass->has_gate.
23774 (execute_ipa_summary_passes): Likewise.
23775 (execute_one_pass): Likewise.
23776 (ipa_write_summaries_2): Likewise.
23777 (ipa_write_optimization_summaries_1): Likewise.
23778 (ipa_read_optimization_summaries_1): Likewise.
23779 (execute_ipa_stmt_fixups): Likewise.
23780 * tree-pass.h (pass_data::has_gate): Remove.
23781 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23782 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23783 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23784 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23785 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23786 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23787 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23788 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23789 gimple-low.c, gimple-ssa-isolate-paths.c,
23790 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23791 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23792 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23793 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23794 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23795 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23796 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23797 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23798 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23799 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23800 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23801 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23802 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23803 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23804 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23805 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23806 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23807 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23808 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23809 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23810 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23811 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23814 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23816 * pass_manager.h (pass_manager::register_dump_files_1): Remove
23818 * passes.c (pass_manager::register_dump_files_1): Merge into
23819 (pass_manager::register_dump_files): this, and remove its handling of
23820 properties since the pass always has the properties anyway.
23821 (pass_manager::pass_manager): Adjust.
23823 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23825 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23826 * passes.c (pass_manager::register_dump_files_1): Remove dead code
23827 dealing with properties.
23828 (pass_manager::register_dump_files): Adjust.
23830 2014-03-20 Mark Wielaard <mjw@redhat.com>
23832 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23833 then represent the bound as normal constant value.
23835 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23838 Forward port from 4.8 branch
23839 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
23841 * config/i386/bmiintrin.h (_blsi_u32): New.
23842 (_blsi_u64): Ditto.
23843 (_blsr_u32): Ditto.
23844 (_blsr_u64): Ditto.
23845 (_blsmsk_u32): Ditto.
23846 (_blsmsk_u64): Ditto.
23847 (_tzcnt_u32): Ditto.
23848 (_tzcnt_u64): Ditto.
23850 2014-04-17 Kito Cheng <kito@0xlab.org>
23852 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23854 2014-04-17 Richard Biener <rguenther@suse.de>
23856 PR middle-end/60849
23857 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23858 boolean results for comparisons.
23860 2014-04-17 Richard Biener <rguenther@suse.de>
23862 PR tree-optimization/60836
23863 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23864 initial PHI args to be gimple values.
23866 2014-04-17 Richard Biener <rguenther@suse.de>
23868 PR tree-optimization/60841
23869 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23870 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23871 of stmts to SLP build.
23872 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23873 (vect_analyze_slp): Likewise.
23874 (vect_analyze_slp_instance): Likewise.
23875 (vect_build_slp_tree): Limit overall SLP tree growth.
23876 * tree-vectorizer.h (vect_analyze_data_refs,
23877 vect_analyze_slp): Adjust prototypes.
23879 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23881 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23884 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23886 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23887 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23888 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23889 for TARGET_SLOW_PSHUFB
23891 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23893 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23894 * config/i386/i386.c (intel_cost): Ditto.
23896 2014-04-17 Joey Ye <joey.ye@arm.com>
23898 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23900 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23902 * opts.c (common_handle_option): Disable -fipa-reference coorectly
23903 with -fuse-profile.
23905 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23907 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
23908 (type_all_derivations_known_p): New predicate.
23909 (type_all_ctors_visible_p): New predicate.
23910 (type_possibly_instantiated_p): New predicate.
23911 (get_odr_type): Compute all_derivations_known.
23912 (dump_odr_type): Dump the flag.
23913 (maybe_record_type): Cleanup.
23914 (record_target_from_binfo): Add bases_to_consider array;
23915 record bases for types w/o instances and skip CXX destructor.
23916 (possible_polymorphic_call_targets_1): Add bases_to_consider
23917 and consider_construction parameters; check if type may have instance.
23918 (get_polymorphic_call_info): Set maybe_in_construction to true
23919 when we know nothing.
23920 (record_targets_from_bases): Skip CXX destructors; they are
23921 never called for types in construction.
23922 (possible_polymorphic_call_targets): Do not record target when
23923 type may not have instance.
23925 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23928 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23929 external aliases alive, too.
23931 2014-04-16 Andrew Pinski <apinski@cavium.com>
23933 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23936 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23938 * final.c (compute_alignments): Do not apply loop alignment to a block
23939 falling through to the exit.
23941 2014-04-16 Catherine Moore <clm@codesourcery.com>
23943 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23944 Adjust constraints for microMIPS store patterns.
23946 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23948 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23950 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23952 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23953 (append_use): Run at -O0.
23954 (append_vdef): Likewise.
23955 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23956 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23958 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23960 PR tree-optimization/60844
23961 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23962 (propagate_op_to_single_use, remove_visited_stmt_chain,
23963 linearize_expr, repropagate_negates, reassociate_bb): Use it
23964 instead of gsi_remove.
23966 2014-04-16 Martin Jambor <mjambor@suse.cz>
23968 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
23969 ipa_transforms_to_apply.
23970 (cgraph_function_versioning): Assert that old_node has empty
23971 ipa_transforms_to_apply.
23972 * trans-mem.c (ipa_tm_create_version): Likewise.
23973 * tree-inline.c (tree_function_versioning): Do not duplicate
23974 ipa_transforms_to_apply.
23976 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23979 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
23981 Pass necessary as flags on 64-bit Solaris/x86.
23982 Use lowercase relocs for x86_64-*-*.
23983 * configure: Regenerate.
23985 2014-04-15 Jan Hubicka <jh@suse.cz>
23987 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
23988 (maybe_record_node, likely_target_p): Use it.
23990 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23993 Revert following patch
23995 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23998 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23999 software floating point or no floating point registers, do not
24000 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24001 in GPRs that occurs after we tested for GPRs that would never be
24004 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24005 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24006 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24007 specifically allow DDmode, since that does not use the SPE SIMD
24010 2014-03-21 Mark Wielaard <mjw@redhat.com>
24012 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24013 as unsigned or int depending on type and value used.
24015 2014-04-15 Richard Biener <rguenther@suse.de>
24017 PR rtl-optimization/56965
24018 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24019 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24021 * alias.c (true_dependence_1): Do not call
24022 nonoverlapping_component_refs_p.
24023 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24024 nonoverlapping_component_refs_p.
24025 (indirect_refs_may_alias_p): Likewise.
24027 2014-04-15 Teresa Johnson <tejohnson@google.com>
24029 * cfg.c (dump_bb_info): Fix flags check.
24030 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24032 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24034 PR rtl-optimization/60663
24035 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24038 2014-04-15 Richard Biener <rguenther@suse.de>
24040 * lto-streamer.h (LTO_major_version): Bump to 4.
24042 2014-04-15 Richard Biener <rguenther@suse.de>
24044 * common.opt (lto_partition_model): New enum.
24045 (flto-partition=): Merge separate options with a single with argument,
24046 add -flto-partition=one support.
24047 * flag-types.h (enum lto_partition_model): Declare.
24048 * opts.c (finish_options): Remove duplicate -flto-partition=
24050 * lto-wrapper.c (run_gcc): Adjust.
24052 2014-04-15 Richard Biener <rguenther@suse.de>
24054 * alias.c (ncr_compar): New function.
24055 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24057 2014-04-15 Richard Biener <rguenther@suse.de>
24059 * alias.c (record_component_aliases): Do not walk BINFOs.
24061 2014-04-15 Richard Biener <rguenther@suse.de>
24063 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24064 Add struct function argument and adjust.
24065 (find_func_aliases_for_call): Likewise.
24066 (find_func_aliases): Likewise.
24067 (find_func_clobbers): Likewise.
24068 (intra_create_variable_infos): Likewise.
24069 (compute_points_to_sets): Likewise.
24070 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24072 2014-04-15 Richard Biener <rguenther@suse.de>
24074 * tree.c (iterative_hash_expr): Use enum tree_code_class
24075 to store TREE_CODE_CLASS.
24076 (tree_block): Likewise.
24077 (tree_set_block): Likewise.
24078 * tree.h (fold_build_pointer_plus_loc): Use
24079 convert_to_ptrofftype_loc.
24081 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24084 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24087 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24089 * cfgloop.h (struct loop): Move force_vectorize down.
24090 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24091 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24092 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24093 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24094 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24095 * tree-core.h (enum annot_expr_kind): Add new kind values.
24096 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24097 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24099 * tree.def (ANNOTATE_EXPR): Tweak comment.
24101 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24103 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24106 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24108 * tree.h (TYPE_IDENTIFIER): Declare.
24109 * tree.c (subrange_type_for_debug_p): Use it.
24110 * godump.c (go_format_type): Likewise.
24111 * dwarf2out.c (is_cxx_auto, modified_type_die,
24112 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24113 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24115 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24118 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24120 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24122 * config/i386/i386.c (examine_argument): Return bool. Return true if
24123 parameter should be passed in memory.
24124 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24125 (construct_container): Update calls to examine_argument.
24126 (function_arg_advance_64): Ditto.
24127 (return_in_memory_32): Merge with ix86_return_in_memory.
24128 (return_in_memory_64): Ditto.
24129 (return_in_memory_ms_64): Ditto.
24131 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24133 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24134 * coverage.c (coverage_compute_profile_id): Handle externally visible
24137 2014-04-14 Martin Jambor <mjambor@suse.cz>
24139 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24140 DECL_DISREGARD_INLINE_LIMITS functions.
24142 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24145 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24147 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24150 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24151 optimize_insn_for_speed_p instead of
24152 optimize_function_for_speed_p.
24154 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24156 * doc/invoke.texi (free): Document AArch64.
24158 2014-04-14 Richard Biener <rguenther@suse.de>
24160 PR tree-optimization/60042
24161 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24162 (insert_into_preds_of_block): Do not prevent PHI insertion
24163 for REFERENCE exprs here ...
24164 (eliminate_dom_walker::before_dom_children): ... but prevent
24165 their use here under similar conditions when applied to the
24166 IL after PRE optimizations.
24168 2014-04-14 Richard Biener <rguenther@suse.de>
24170 * passes.def: Move early points-to after early SRA.
24172 2014-04-14 Richard Biener <rguenther@suse.de>
24174 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24175 check for which sign-changes we allow when forwarding
24176 a converted value into a switch.
24178 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24180 * stor-layout.c (place_field): Finalize non-constant offset for the
24183 2014-04-14 Richard Biener <rguenther@suse.de>
24185 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24187 (expand_switch_using_bit_tests_p): Likewise.
24188 (process_switch): Compute and pass on speed_p based on the
24190 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24191 optimize_bb_for_speed_p.
24193 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24195 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24196 * function.h (struct function): Rename has_force_vect_loops into
24197 has_force_vectorize_loops.
24198 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24199 (input_struct_function_base): Likewise.
24200 * lto-streamer-out.c (output_cfg): Likewise.
24201 (output_struct_function_base): Likewise.
24202 * omp-low.c (expand_omp_simd): Likewise.
24203 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24204 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24205 (version_loop_for_if_conversion): Likewise.
24206 (tree_if_conversion): Likewise.
24207 (main_tree_if_conversion): Likewise.
24208 (gate_tree_if_conversion): Likewise.
24209 * tree-inline.c (copy_loops): Likewise.
24210 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24211 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24212 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24213 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24214 * tree-vectorizer.c (vectorize_loops): Likewise.
24215 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24217 2014-04-14 Richard Biener <rguenther@suse.de>
24220 * lto-streamer-out.c (wrap_refs): New function.
24221 (lto_output): Wrap symbol references in global initializes in
24222 type-preserving MEM_REFs.
24224 2014-04-14 Christian Bruel <christian.bruel@st.com>
24226 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24228 2014-04-14 Christian Bruel <christian.bruel@st.com>
24230 * config/sh/sh.md (setmemqi): New expand pattern.
24231 * config/sh/sh.h (CLEAR_RATIO): Define.
24232 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24233 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24235 2014-04-14 Richard Biener <rguenther@suse.de>
24237 PR middle-end/55022
24238 * fold-const.c (negate_expr_p): Don't negate directional rounding
24240 (fold_negate_expr): Likewise.
24242 2014-04-14 Richard Biener <rguenther@suse.de>
24244 PR tree-optimization/59817
24245 PR tree-optimization/60453
24246 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24247 recursion to catch all CHRECs in the scalar evolution and restrict
24248 the predicate for the remains appropriately.
24250 2014-04-12 Catherine Moore <clm@codesourcery.com>
24252 * config/mips/constraints.md: Add new register constraint "kb".
24253 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24254 (*movhi_internal): Likewise.
24255 (*movqi_internal): Likewise.
24256 * config/mips/mips.h (M16_STORE_REGS): New register class.
24257 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24258 (REG_CLASS_CONTENTS): Likewise.
24259 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24261 2014-04-11 Tobias Burnus <burnus@net-b.de>
24264 * doc/invoke.texi (-Wformat-signedness): Document it.
24265 (Wformat=2): Mention that this enables -Wformat-signedness.
24267 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24269 * common/config/epiphany/epiphany-common.c
24270 (epiphany_option_optimization_table): Enable section anchors by
24271 default at -O1 or higher.
24272 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24273 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24274 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24275 carries no extra cost.
24276 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24277 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24278 * config/epiphany/predicates.md (memclob_operand): New predicate.
24279 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24280 Use memclob_operand predicate and X constraint for operand 3.
24282 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24284 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24285 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24288 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24290 PR rtl-optimization/60651
24291 * mode-switching.c (optimize_mode_switching): Make sure to emit
24292 sets of a lower numbered entity before sets of a higher numbered
24293 entity to a mode of the same or lower priority.
24294 When creating a seginfo for a basic block that starts with a code
24295 label, move the insertion point past the code label.
24296 (new_seginfo): Document and enforce requirement that
24297 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24298 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24299 * doc/tm.texi: Regenerate.
24301 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24304 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24306 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24308 * BASE-VER: Set to 4.10.0.
24310 2014-04-11 Tobias Burnus <burnus@net-b.de>
24313 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24314 * doc/gcc.texi (Service): Update description in the @menu
24315 * doc/invoke.texi (Option Summary): Remove misplaced and
24318 2014-04-11 Steve Ellcey <sellcey@mips.com>
24319 Jakub Jelinek <jakub@redhat.com>
24321 PR middle-end/60556
24322 * expr.c (convert_move): Use emit_store_flag_force instead of
24323 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24326 2014-04-11 Richard Biener <rguenther@suse.de>
24328 PR middle-end/60797
24329 * varasm.c (assemble_alias): Avoid endless error reporting
24330 recursion by setting TREE_ASM_WRITTEN.
24332 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24334 * config/s390/s390.md: Add a splitter for NOT rtx.
24336 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24338 PR rtl-optimization/60663
24339 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24341 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24342 Jakub Jelinek <jakub@redhat.com>
24345 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24346 flag from decl_node to node.
24348 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24351 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24352 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24353 ameliorating the cases where it can be.
24355 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24358 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24360 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24361 (loadsync_<mode>): Change mode.
24362 (load_quadpti, store_quadpti): New.
24363 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24364 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24365 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24367 2014-04-09 Cong Hou <congh@google.com>
24370 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24373 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24375 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24376 instead of vnor to exploit possible fusion opportunity in the
24378 (altivec_expand_vec_perm_const_le): Likewise.
24380 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24382 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24383 (loadsync_<mode>): Change mode.
24384 (load_quadpti, store_quadpti): New.
24385 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24386 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24388 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24391 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24392 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24393 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24395 2014-04-08 Richard Biener <rguenther@suse.de>
24397 PR middle-end/60706
24398 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24399 a 64bit widest int print double-int similar to on HWI64 hosts.
24401 2014-04-08 Richard Biener <rguenther@suse.de>
24403 PR tree-optimization/60785
24404 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24405 default defs properly.
24407 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24409 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24410 (Weffc++): Likewise.
24412 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24414 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24415 set completep to false rather than true.
24417 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24420 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24421 ARM_TARGET2_DWARF_FORMAT.
24423 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24426 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24427 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24430 2014-04-07 Richard Biener <rguenther@suse.de>
24432 PR tree-optimization/60766
24433 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24434 (may_eliminate_iv): Convert cand_value_at result to desired type.
24436 2014-04-07 Jason Merrill <jason@redhat.com>
24439 * common.opt (-fno-gnu-unique): Add.
24440 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24442 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24444 * haifa-sched.c: Fix outdated function reference and minor
24445 grammar errors in introductory comment.
24447 2014-04-07 Richard Biener <rguenther@suse.de>
24449 PR middle-end/60750
24450 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24451 for noreturn calls.
24452 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24454 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24457 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24458 size accounting for thunks.
24459 (pa_asm_output_mi_thunk): Use final_start_function() and
24460 final_end_function() to output function start and end directives.
24462 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24464 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24465 device specific ISA/ feature information. Remove short_sp and
24466 errata_skip ds. Add avr_device_specific_features enum to have device
24468 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24469 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24470 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24471 updated device specific info.
24472 * config/avr/avr-mcus.def: Merge device specific details to
24473 dev_attribute field.
24474 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24476 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24477 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24478 assembler if RMW isa supported by current device.
24479 * config/avr/genmultilib.awk: Update as device info structure changed.
24480 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24482 2014-04-04 Cong Hou <congh@google.com>
24484 PR tree-optimization/60656
24485 * tree-vect-stmts.c (supportable_widening_operation):
24486 Fix a bug that elements in a vector with vect_used_by_reduction
24487 property are incorrectly reordered when the operation on it is not
24488 consistant with the one in reduction operation.
24490 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24492 PR rtl-optimization/60155
24493 * gcse.c (record_set_data): New function.
24494 (single_set_gcse): New function.
24495 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24496 (hoist_code): Likewise.
24497 (get_pressure_class_and_nregs): Likewise.
24499 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24501 * explow.c (probe_stack_range): Emit a final optimization blockage.
24503 2014-04-04 Anthony Green <green@moxielogic.com>
24505 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24508 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24511 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24512 flags are set only during streaming.
24513 * ipa.c (process_references, walk_polymorphic_call_targets,
24514 symtab_remove_unreachable_nodes): Drop bodies of always inline
24515 after early inlining.
24516 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24518 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24519 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24522 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24525 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24528 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24530 (cortex_a53_fdivd): Likewise.
24532 2014-04-04 Martin Jambor <mjambor@suse.cz>
24535 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24536 Adjust all callers.
24537 * cgraph.c (clone_of_p): Also return true if thunks match.
24538 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24539 cgraph_function_or_thunk_node and an obsolete comment.
24540 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24542 (build_function_decl_skip_args): Likewise.
24543 (set_new_clone_decl_and_node_flags): New function.
24544 (duplicate_thunk_for_node): Likewise.
24545 (redirect_edge_duplicating_thunks): Likewise.
24546 (cgraph_clone_node): New parameter args_to_skip, pass it to
24547 redirect_edge_duplicating_thunks which is called instead of
24548 cgraph_redirect_edge_callee.
24549 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24550 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24552 2014-04-04 Jeff Law <law@redhat.com>
24555 * config/arm/predicates.md (const_int_I_operand): New predicate.
24556 (const_int_M_operand): Similarly.
24557 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24559 (insv_t2, extv_reg, extzv_t2): Likewise.
24560 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24561 (pop_multiple_with_writeback_and_return): Likewise.
24562 (vfp_pop_multiple_with_writeback): Likewise
24564 2014-04-04 Richard Biener <rguenther@suse.de>
24567 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24568 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24570 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24571 * gimplify.c (gimple_add_tmp_var_fn): New function.
24572 * gimple-expr.h (create_tmp_reg_fn): Declare.
24573 * gimple-expr.c (create_tmp_reg_fn): New function.
24574 * gimple-low.c (record_vars_into): Don't change cfun.
24575 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24576 code generation without cfun.
24578 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
24581 * Makefile.in (install-driver): Fix shell scripting.
24583 2014-04-03 Cong Hou <congh@google.com>
24585 PR tree-optimization/60505
24586 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24587 threshold of number of iterations below which no vectorization
24589 * tree-vect-loop.c (new_loop_vec_info):
24590 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24591 * tree-vect-loop.c (vect_analyze_loop_operations):
24592 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24593 * tree-vect-loop.c (vect_transform_loop):
24594 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24595 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24596 of iterations of the loop and see if we should build the epilogue.
24598 2014-04-03 Richard Biener <rguenther@suse.de>
24600 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24601 (streamer_tree_cache_create): Adjust.
24602 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24603 to allow optional nodes array.
24604 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24605 (streamer_tree_cache_append): Likewise.
24606 (streamer_tree_cache_create): Create nodes array optionally
24607 as specified by parameter.
24608 * lto-streamer-out.c (create_output_block): Avoid maintaining
24609 the node array in the writer cache.
24610 (DFS_write_tree): Remove assertion.
24611 (produce_asm_for_decls): Free the out decl state hash table early.
24612 * lto-streamer-in.c (lto_data_in_create): Adjust for
24613 streamer_tree_cache_create prototype change.
24615 2014-04-03 Richard Biener <rguenther@suse.de>
24617 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24618 set TREE_CHAIN to NULL_TREE.
24620 2014-04-03 Richard Biener <rguenther@suse.de>
24622 PR tree-optimization/60740
24623 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24624 over all GIMPLE_COND operands.
24626 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
24628 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24629 (Weffc++): Remove Scott's numbering, merge lists and reference
24632 2014-04-03 Nick Clifton <nickc@redhat.com>
24634 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24637 2014-04-03 Martin Jambor <mjambor@suse.cz>
24639 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24640 mention gcc_unreachable before failing.
24641 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24644 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
24647 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24648 inconsistent code and instead mark the context inconsistent.
24649 (possible_polymorphic_call_targets): For inconsistent contexts
24650 return empty complete list.
24652 2014-04-02 Anthony Green <green@moxielogic.com>
24654 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24655 (extendqisi2, extendhisi2): Define.
24656 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24657 (WCHAR_TYPE): Change to unsigned int.
24659 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24661 PR tree-optimization/60733
24662 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24663 insertion point for PHI candidates to be the end of the feeding
24664 block for the PHI argument.
24666 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
24668 PR rtl-optimization/60650
24669 * lra-constraints.c (process_alt_operands): Decrease reject for
24670 earlyclobber matching.
24672 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24674 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24676 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24678 * config/spu/spu.c (pad_bb): Do not crash when the last
24679 insn is CODE_FOR_blockage.
24681 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24683 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24684 lies outside the target mode.
24686 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24689 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24690 software floating point or no floating point registers, do not
24691 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24692 in GPRs that occurs after we tested for GPRs that would never be
24695 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24696 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24697 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24698 specifically allow DDmode, since that does not use the SPE SIMD
24701 2014-04-02 Richard Biener <rguenther@suse.de>
24703 PR middle-end/60729
24704 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24705 MODE_INTs. Properly use negv_optab.
24706 (expand_abs): Likewise.
24708 2014-04-02 Richard Biener <rguenther@suse.de>
24711 * Makefile.in (install-driver): Guard extra installs with special
24714 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
24716 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24717 Document vec_vgbbd.
24719 2014-04-01 Richard Henderson <rth@redhat.com>
24722 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24723 alternative enabled before register allocation.
24725 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
24727 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24728 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24730 (nios2_large_got_address): Remove unneeded 'sym' parameter.
24731 (nios2_got_address): Update nios2_large_got_address call site.
24732 (nios2_delegitimize_address): New function.
24733 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24734 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24735 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24737 2014-04-01 Martin Husemann <martin@duskware.de>
24739 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24742 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
24744 PR rtl-optimization/60604
24745 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24746 check from register_operand.
24747 (register_operand): Redefine in terms of general_operand.
24748 (nonmemory_operand): Use register_operand for the non-constant cases.
24750 2014-04-01 Richard Biener <rguenther@suse.de>
24752 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24754 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
24756 * doc/invoke.texi (mapp-regs): Clarify.
24758 2014-03-31 Ulrich Drepper <drepper@gmail.com>
24760 * config/i386/avx512fintrin.h (__v32hi): Define type.
24761 (__v64qi): Likewise.
24762 (_mm512_set1_epi8): Define.
24763 (_mm512_set1_epi16): Define.
24764 (_mm512_set4_epi32): Define.
24765 (_mm512_set4_epi64): Define.
24766 (_mm512_set4_pd): Define.
24767 (_mm512_set4_ps): Define.
24768 (_mm512_setr4_epi64): Define.
24769 (_mm512_setr4_epi32): Define.
24770 (_mm512_setr4_pd): Define.
24771 (_mm512_setr4_ps): Define.
24772 (_mm512_setzero_epi32): Define.
24774 2014-03-31 Martin Jambor <mjambor@suse.cz>
24776 PR middle-end/60647
24777 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24778 callsite_arguments_match_p. Updated all callers. Also check types of
24779 corresponding formal parameters and actual arguments.
24780 (not_all_callers_have_enough_arguments_p) Renamed to
24781 some_callers_have_mismatched_arguments_p.
24783 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
24785 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24787 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
24790 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24793 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
24795 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24796 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24798 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24799 Use FMAMODE_NOVF512 mode iterator.
24800 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24801 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24802 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24803 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24805 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24806 Use VF_128_256 mode iterator.
24807 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24810 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24812 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24813 static chain if needed.
24815 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24818 * lra-constraints.c (index_part_to_reg): New.
24819 (process_address): Use it.
24821 2014-03-27 Jeff Law <law@redhat.com>
24822 Jakub Jelinek <jakub@redhat.com>
24825 * expr.c (do_tablejump): Use simplify_gen_binary rather than
24826 gen_rtx_{PLUS,MULT} to build up the address expression.
24828 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24829 creating non-canonical RTL.
24831 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24834 * ipa-inline.c (want_inline_small_function_p): Short circuit large
24835 functions; reorganize to make cheap checks first.
24836 (inline_small_functions): Do not estimate growth when dumping;
24838 * ipa-inline.h (inline_summary): Add min_size.
24839 (growth_likely_positive): New function.
24840 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24841 (set_cond_stmt_execution_predicate): Cleanup.
24842 (estimate_edge_size_and_time): Compute min_size.
24843 (estimate_calls_size_and_time): Likewise.
24844 (estimate_node_size_and_time): Likewise.
24845 (inline_update_overall_summary): Update min_size.
24846 (do_estimate_edge_time): Likewise.
24847 (do_estimate_edge_size): Update.
24848 (do_estimate_edge_hints): Update.
24849 (growth_likely_positive): New function.
24851 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24854 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24855 also if addr has VOIDmode.
24857 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24859 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24860 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24862 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24863 instructions as well as AdvancedSIMD loads.
24865 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24867 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24868 Use crypto_aese type.
24869 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24870 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24871 crypto_aese, crypto_aesmc. Move to types.md.
24872 * config/arm/types.md (crypto_aes): Split into crypto_aese,
24874 * config/arm/iterators.md (crypto_type): Likewise.
24876 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24878 * cgraph.c: Include expr.h and tree-dfa.h.
24879 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24882 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24885 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24886 regs from checking multi-reg pseudos.
24888 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24890 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24892 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24894 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24895 if it would clobber the stack pointer, even temporarily.
24897 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
24899 * mode-switching.c: Make small adjustments to the top comment.
24901 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
24903 * config/rs6000/constraints.md (wD constraint): New constraint to
24904 match the constant integer to get the top DImode/DFmode out of a
24905 vector in a VSX register.
24907 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
24908 match the constant integer to get the top DImode/DFmode out of a
24909 vector in a VSX register.
24911 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
24914 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24917 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24918 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
24920 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
24921 Optimize vec_extract of 64-bit values, where the value being
24922 extracted is in the top word, where we can use scalar
24923 instructions. Add direct move and store support. Combine the big
24924 endian/little endian vector select load support into a single insn.
24925 (vsx_extract_<mode>_internal1): Likewise.
24926 (vsx_extract_<mode>_internal2): Likewise.
24927 (vsx_extract_<mode>_load): Likewise.
24928 (vsx_extract_<mode>_store): Likewise.
24929 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24930 combined into vsx_extract_<mode>_load.
24931 (vsx_extract_<mode>_one_le): Likewise.
24933 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24934 define the top 64-bit vector element.
24936 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24939 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24940 Document vec_vbpermq builtin.
24943 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24944 enable use of xxsldwi and xxpermdi builtin functions.
24945 (vec_xxpermdi): Likewise.
24947 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24948 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24950 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24952 PR rtl-optimization/60650
24953 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24955 (find_spills_for): New.
24956 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24957 Spill all pseudos on the second iteration.
24959 2014-03-27 Marek Polacek <polacek@redhat.com>
24962 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24965 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24967 * config/s390/s390.c (s390_can_use_return_insn): Check for
24968 call-saved FPRs on 31 bit.
24970 2014-03-27 Jakub Jelinek <jakub@redhat.com>
24972 PR middle-end/60682
24973 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
24974 if they need regimplification, just drop them instead of
24975 calling gimple_regimplify_operands on them.
24977 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
24980 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
24981 (aarch64_frame_pointer_required): Adjust logic.
24982 (aarch64_can_eliminate): Adjust logic.
24983 (aarch64_override_options_after_change): Adjust logic.
24985 2014-03-27 Dehao Chen <dehao@google.com>
24987 * ipa-inline.c (early_inliner): Update node's inline info.
24989 2014-03-26 Dehao Chen <dehao@google.com>
24991 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
24992 compiler inserted conditional jumps for NAN float check.
24994 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24996 * ubsan.h (ubsan_create_data): Change second argument's type
24997 to const location_t *.
24998 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25000 (ubsan_create_data): Change second argument to const location_t *PLOC.
25001 Create Loc field whenever PLOC is non-NULL.
25002 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25003 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25007 * real.c (real_to_integer2): Change type of low to UHWI.
25009 2014-03-26 Tobias Burnus <burnus@net-b.de>
25011 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25012 (CILK_SELF_SPECS): New define.
25013 (driver_self_specs): Use it.
25015 2014-03-26 Richard Biener <rguenther@suse.de>
25017 * tree-pretty-print.c (percent_K_format): Implement special
25018 case for LTO and its stripped down BLOCK tree.
25020 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25023 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25025 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25026 one range is range_int_cst_p, but not both, at least optimize
25027 addition/subtraction of 0 and multiplication by 0 or 1.
25028 * gimple-fold.c (gimple_fold_call): Fold
25029 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25030 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25031 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25033 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25035 PR rtl-optimization/60452
25036 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25037 <case REG>: Return 1 for invalid offsets from the frame pointer.
25039 2014-03-26 Marek Polacek <polacek@redhat.com>
25042 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25045 2014-03-26 Marek Polacek <polacek@redhat.com>
25048 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25051 2014-03-26 Marek Polacek <polacek@redhat.com>
25054 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25055 multiplication in unsigned type.
25057 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25059 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25061 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25063 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25065 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25068 * cif-code.def (UNREACHABLE) New code.
25069 * ipa-inline.c (inline_small_functions): Skip edges to
25070 __builtlin_unreachable.
25071 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25072 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25073 predicate to __bulitin_unreachable.
25074 (set_cond_stmt_execution_predicate): Fix issue when
25075 invert_tree_comparison returns ERROR_MARK.
25076 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25077 propagate to inline clones.
25078 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25080 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25081 * cgraphclones.c (cgraph_clone_node): If call destination is already
25082 ureachable, do not redirect it back.
25083 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25086 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25088 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25089 Do not modify inline clones.
25091 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25093 * config/i386/i386.md (general_sext_operand): New mode attr.
25094 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25095 don't generate (sign_extend (const_int)).
25096 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25097 operands[2]. Use We constraint instead of <i> and
25098 <general_sext_operand> predicate instead of <general_operand>.
25099 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25100 * config/i386/constraints.md (We): New constraint.
25101 * config/i386/predicates.md (x86_64_sext_operand,
25102 sext_operand): New predicates.
25104 2014-03-25 Martin Jambor <mjambor@suse.cz>
25107 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25108 inconsistent devirtualizations to __builtin_unreachable.
25110 2014-03-25 Marek Polacek <polacek@redhat.com>
25113 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25115 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25117 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25118 order of elements for big-endian.
25120 2014-03-25 Richard Biener <rguenther@suse.de>
25122 PR middle-end/60635
25123 * gimplify-me.c (gimple_regimplify_operands): Update the
25126 2014-03-25 Martin Jambor <mjambor@suse.cz>
25129 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25130 (lto_output_varpool_node): Likewise.
25131 (input_overwrite_node): Likewise.
25132 (input_varpool_node): Likewise.
25134 2014-03-25 Richard Biener <rguenther@suse.de>
25136 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25137 (run_gcc): Likewise.
25139 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25141 * combine.c (simplify_compare_const): Add MODE argument.
25142 Handle mode_width 0 as very large mode_width.
25143 (try_combine, simplify_comparison): Adjust callers.
25145 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25146 type to avoid signed integer overflow.
25147 * explow.c (plus_constant): Likewise.
25149 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25151 * doc/generic.texi: Correct typos.
25153 2014-03-24 Tobias Burnus <burnus@net-b.de>
25155 * doc/invoke.texi (-flto): Expand section about
25156 using static libraries with LTO.
25158 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25160 PR rtl-optimization/60501
25161 * optabs.def (addptr3_optab): New optab.
25162 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25163 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25164 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25166 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25168 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25170 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25172 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25175 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25176 (_mm256_undefined_ps): Define.
25177 (_mm256_undefined_pd): Define.
25178 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25179 (_mm_undefined_pd): Define.
25180 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25181 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25182 (_mm512_undefined_ps): Define.
25183 (_mm512_undefined_pd): Define.
25184 Use _mm*_undefined_*.
25185 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25187 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25189 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25190 (lshr_simd): DI mode added.
25191 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25192 (aarch64_ushr_simddi): Likewise.
25193 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25194 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25195 (vshrd_n_u64): Likewise.
25197 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25199 * Makefile.in (s-macro_list): Depend on cc1.
25201 2014-03-23 Teresa Johnson <tejohnson@google.com>
25203 * ipa-utils.c (ipa_print_order): Use specified dump file.
25205 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25207 PR rtl-optimization/60601
25208 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25210 * gcc.c (eval_spec_function): Initialize save_growing_value.
25212 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25215 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25216 code == MINUS_EXPR, never swap op0 with op1.
25218 * toplev.c (init_local_tick): Avoid signed integer multiplication
25220 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25221 shift by first operand's bitsize.
25223 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25226 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25227 redefine to 1 or 0.
25228 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25229 TARGET_ISA_64BIT_P(x).
25231 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25233 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25234 pattern for vector nor instead of subtract from splat(-1).
25235 (altivec_expand_vec_perm_const_le): Likewise.
25237 2014-03-21 Richard Henderson <rth@twiddle.net>
25240 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25241 related insns after epilogue_completed.
25243 2014-03-21 Martin Jambor <mjambor@suse.cz>
25246 * cgraph.h (symtab_node): New flag body_removed.
25247 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25248 when removing bodies.
25249 * symtab.c (dump_symtab_base): Dump body_removed flag.
25250 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25251 had their bodies removed.
25253 2014-03-21 Martin Jambor <mjambor@suse.cz>
25256 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25259 2014-03-21 Richard Biener <rguenther@suse.de>
25261 PR tree-optimization/60577
25262 * tree-core.h (struct tree_base): Document nothrow_flag use
25263 in DECL_NONALIASED.
25264 * tree.h (DECL_NONALIASED): New.
25265 (may_be_aliased): Adjust.
25266 * coverage.c (build_var): Set DECL_NONALIASED.
25268 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25270 * expr.c (expand_expr_real_1): Remove outdated comment.
25272 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25274 PR middle-end/60597
25275 * ira.c (adjust_cleared_regs): Call copy_rtx on
25276 *reg_equiv[REGNO (loc)].src_p before passing it to
25277 simplify_replace_fn_rtx.
25280 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25281 into CONST, put pic register as first operand of PLUS. Use
25282 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25284 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25286 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25288 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25290 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25291 around for store forwarding issue in the FPU on the UT699.
25292 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25293 loads and operations if -mfix-ut699 is specified.
25294 (divtf3_hq): Tweak attribute.
25295 (sqrttf2_hq): Likewise.
25297 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25299 * calls.c (store_one_arg): Remove incorrect const qualification on the
25300 type of the temporary.
25301 * cfgexpand.c (expand_return): Likewise.
25302 * expr.c (expand_constructor): Likewise.
25303 (expand_expr_real_1): Likewise.
25305 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25307 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25310 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25313 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25315 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25317 * config/arm/aarch-common-protos.h
25318 (alu_cost_table): Fix spelling of "extend".
25319 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25321 2014-03-19 Richard Biener <rguenther@suse.de>
25323 PR middle-end/60553
25324 * tree-core.h (tree_type_common): Re-order pointer members
25325 to reduce recursion depth during GC walks.
25327 2014-03-19 Marek Polacek <polacek@redhat.com>
25330 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25331 before accessing it.
25333 2014-03-19 Richard Biener <rguenther@suse.de>
25336 * lto-streamer-in.c (input_function): In WPA stage do not drop
25339 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25341 PR tree-optimization/60559
25342 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25343 with build_zero_cst assignment.
25345 2014-03-18 Kai Tietz <ktietz@redhat.com>
25347 PR rtl-optimization/56356
25348 * sdbout.c (sdbout_parms): Verify that parms'
25349 incoming argument is valid.
25350 (sdbout_reg_parms): Likewise.
25352 2014-03-18 Richard Henderson <rth@redhat.com>
25355 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25356 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25357 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25359 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25361 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25362 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25363 Italicize plugin event names in description. Explain that
25364 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25365 Remind that no GCC functions should be called after PLUGIN_FINISH.
25366 Explain what pragmas with expansion are.
25368 2014-03-18 Martin Liska <mliska@suse.cz>
25370 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25371 gimple call statement is update.
25372 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25373 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25375 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25378 * ubsan.c (ubsan_instrument_unreachable): Call
25379 initialize_sanitizer_builtins.
25380 (ubsan_pass): Likewise.
25383 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25384 varpool_finalize_decl instead of rest_of_decl_compilation.
25386 2014-03-18 Richard Biener <rguenther@suse.de>
25388 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25389 by using bitmap_and_compl instead of bitmap_and_compl_into.
25390 (df_rd_transfer_function): Likewise.
25392 2014-03-18 Richard Biener <rguenther@suse.de>
25394 * doc/lto.texi (fresolution): Fix typo.
25396 2014-03-18 Richard Biener <rguenther@suse.de>
25398 * doc/invoke.texi (flto): Update for changes in 4.9.
25400 2014-03-18 Richard Biener <rguenther@suse.de>
25402 * doc/loop.texi: Remove section on the removed lambda framework.
25403 Update loop docs with recent changes in preserving loop structure.
25405 2014-03-18 Richard Biener <rguenther@suse.de>
25407 * doc/lto.texi (-fresolution): Document.
25409 2014-03-18 Richard Biener <rguenther@suse.de>
25411 * doc/contrib.texi: Adjust my name.
25413 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25416 * internal-fn.c: Include diagnostic-core.h.
25417 (expand_BUILTIN_EXPECT): New function.
25418 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25419 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25420 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25421 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25422 IFN_BUILTIN_EXPECT.
25423 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25424 Revert 3 argument __builtin_expect code.
25425 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25426 * gimple-fold.c (gimple_fold_call): Likewise.
25427 * tree.h (fold_builtin_expect): New prototype.
25428 * builtins.c (build_builtin_expect_predicate): Add predictor
25429 argument, if non-NULL, create 3 argument __builtin_expect.
25430 (fold_builtin_expect): No longer static. Add ARG2 argument,
25431 pass it through to build_builtin_expect_predicate.
25432 (fold_builtin_2): Adjust caller.
25433 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25434 * internal-fn.def (BUILTIN_EXPECT): New.
25436 2014-03-18 Tobias Burnus <burnus@net-b.de>
25439 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25440 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25441 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25443 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25446 * predict.c (combine_predictions_for_bb): Fix up formatting.
25447 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25448 fill what it points to if non-NULL.
25449 (tree_predict_by_opcode): Adjust caller, use the predictor.
25450 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25452 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25454 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25455 proper constant for the store mode.
25457 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25459 * symtab.c (change_decl_assembler_name): Fix transparent alias
25460 chain construction.
25462 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25464 * config/aarch64/aarch64.c: Correct the comments about the
25465 aarch64 stack layout.
25467 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25469 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25470 check for GF_OMP_FOR_KIND_FOR.
25472 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25474 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25475 ymm and zmm register names.
25477 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25480 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25481 note creation for the 2010-08-31 changes.
25483 2014-03-17 Marek Polacek <polacek@redhat.com>
25485 PR middle-end/60534
25486 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25487 as -fno-tree-loop-vectorize.
25488 (expand_omp_simd): Likewise.
25490 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25492 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25493 (eligible_for_call_delay): New prototype.
25494 * config/sparc/sparc.c (tls_call_delay): Rename into...
25495 (eligible_for_call_delay): ...this. Return false if the instruction
25496 cannot be put in the delay slot of a branch.
25497 (eligible_for_restore_insn): Simplify.
25498 (eligible_for_return_delay): Return false if the instruction cannot be
25499 put in the delay slot of a branch and simplify.
25500 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25501 put in the delay slot of a branch.
25502 * config/sparc/sparc.md (fix_ut699): New attribute.
25503 (tls_call_delay): Delete.
25504 (in_call_delay): Reimplement.
25505 (eligible_for_sibcall_delay): Rename into...
25506 (in_sibcall_delay): ...this.
25507 (eligible_for_return_delay): Rename into...
25508 (in_return_delay): ...this.
25509 (in_branch_delay): Reimplement.
25510 (in_uncond_branch_delay): Delete.
25511 (in_annul_branch_delay): Delete.
25513 2014-03-14 Richard Henderson <rth@redhat.com>
25516 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25517 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25518 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25519 (floathi splitters): Remove.
25520 (float<SWI48x>xf2): New pattern.
25521 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25522 code that tried to handle DImode for 32-bit, but which was excluded
25523 by the pattern's condition. Drop allocation of stack temporary.
25524 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25525 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25526 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25527 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25528 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25529 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25530 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25531 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25532 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25533 (*float<SWI48x><X87MODEF>2_i387): Remove.
25534 (all float _with_temp splitters): Remove.
25535 (*float<SWI48x><MODEF>2_i387): New pattern.
25536 (*float<SWI48><MODEF>2_sse): New pattern.
25537 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25538 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25540 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25541 Marek Polacek <polacek@redhat.com>
25543 PR middle-end/60484
25544 * common.opt (dump_base_name_prefixed): New Variable.
25545 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25546 if x_dump_base_name_prefixed is already set, set it at the end.
25548 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25550 PR rtl-optimization/60508
25551 * lra-constraints.c (get_reload_reg): Add new parameter
25553 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25554 Pass the new parameter values.
25556 2014-03-14 Richard Biener <rguenther@suse.de>
25558 * common.opt: Revert unintented changes from r205065.
25559 * opts.c: Likewise.
25561 2014-03-14 Richard Biener <rguenther@suse.de>
25563 PR middle-end/60518
25564 * cfghooks.c (split_block): Properly adjust all loops the
25565 block was a latch of.
25567 2014-03-14 Martin Jambor <mjambor@suse.cz>
25570 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25573 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
25576 * config/avr/avr.c (avr_set_current_function): Pass function name
25577 through default_strip_name_encoding before sanity checking instead
25578 of skipping the first char of the assembler name.
25580 2014-03-13 Richard Henderson <rth@redhat.com>
25583 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25584 (ix86_force_to_memory, ix86_free_from_memory): Remove.
25585 * config/i386/i386-protos.h: Likewise.
25586 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25587 in the expander instead of a splitter.
25588 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25589 any possibility of requiring a memory.
25590 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25591 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25592 (fp branch splitters): Update for ix86_split_fp_branch.
25593 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25594 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25595 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25596 (*fop_<MODEF>_2_i387): Remove f/r alternative.
25597 (*fop_<MODEF>_3_i387): Likewise.
25598 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25599 (splitters for the fop_* register patterns): Remove.
25600 (fscalexf4_i387): Rename from *fscalexf4_i387.
25601 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25603 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25605 PR tree-optimization/59779
25606 * tree-dfa.c (get_ref_base_and_extent): Use double_int
25607 type for bitsize and maxsize instead of HOST_WIDE_INT.
25609 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
25611 PR rtl-optimization/57320
25612 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25613 the CFG after thread_prologue_and_epilogue_insns.
25615 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
25617 PR rtl-optimization/57189
25618 * lra-constraints.c (process_alt_operands): Disfavor spilling
25621 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
25623 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25625 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25627 PR tree-optimization/59025
25628 PR middle-end/60418
25629 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25630 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25632 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
25635 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25636 calls of avr_out_plus_1.
25638 2014-03-13 Bin Cheng <bin.cheng@arm.com>
25640 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25641 BB's single pred and update the father loop's latch info later.
25643 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25645 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25649 (VEC_base): Likewise.
25650 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25651 registers, we need to swap double words in little endian mode.
25653 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25654 to be a container mode for 128-bit integer operations added in ISA
25655 2.07. Unlike TImode and PTImode, the preferred register set is
25656 the Altivec/VMX registers for the 128-bit operations.
25658 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25660 (rs6000_split_128bit_ok_p): Likewise.
25662 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25663 macros for creating ISA 2.07 normal and overloaded builtin
25664 functions with 3 arguments.
25665 (BU_P8V_OVERLOAD_3): Likewise.
25666 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25667 for use as overloaded functions.
25668 (VPERM_1TI_UNS): Likewise.
25669 (VSEL_1TI): Likewise.
25670 (VSEL_1TI_UNS): Likewise.
25671 (ST_INTERNAL_1ti): Likewise.
25672 (LD_INTERNAL_1ti): Likewise.
25673 (XXSEL_1TI): Likewise.
25674 (XXSEL_1TI_UNS): Likewise.
25675 (VPERM_1TI): Likewise.
25676 (VPERM_1TI_UNS): Likewise.
25677 (XXPERMDI_1TI): Likewise.
25678 (SET_1TI): Likewise.
25679 (LXVD2X_V1TI): Likewise.
25680 (STXVD2X_V1TI): Likewise.
25681 (VEC_INIT_V1TI): Likewise.
25682 (VEC_SET_V1TI): Likewise.
25683 (VEC_EXT_V1TI): Likewise.
25684 (EQV_V1TI): Likewise.
25685 (NAND_V1TI): Likewise.
25686 (ORC_V1TI): Likewise.
25687 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25688 added in ISA 2.07. Add both normal 'altivec' builtins, and the
25689 overloaded builtin.
25690 (VADDUQM): Likewise.
25691 (VSUBCUQ): Likewise.
25692 (VADDEUQM): Likewise.
25693 (VADDECUQ): Likewise.
25694 (VSUBEUQM): Likewise.
25695 (VSUBECUQ): Likewise.
25697 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25698 __int128_t and __uint128_t types.
25699 (__uint128_type): Likewise.
25700 (altivec_categorize_keyword): Add support for vector __int128_t,
25701 vector __uint128_t, vector __int128, and vector unsigned __int128
25702 as a container type for TImode operations that need to be done in
25703 VSX/Altivec registers.
25704 (rs6000_macro_to_expand): Likewise.
25705 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25706 to support 128-bit integer instructions vaddcuq, vadduqm,
25707 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25708 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25710 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25711 for V1TImode, and set up preferences to use VSX/Altivec registers.
25712 Setup VSX reload handlers.
25713 (rs6000_debug_reg_global): Likewise.
25714 (rs6000_init_hard_regno_mode_ok): Likewise.
25715 (rs6000_preferred_simd_mode): Likewise.
25716 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25717 (easy_altivec_constant): Likewise.
25718 (output_vec_const_move): Likewise.
25719 (rs6000_expand_vector_set): Convert V1TImode set and extract to
25721 (rs6000_expand_vector_extract): Likewise.
25722 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25724 (rs6000_const_vec): Add support for V1TImode.
25725 (rs6000_emit_le_vsx_load): Swap double words when loading or
25726 storing TImode/V1TImode.
25727 (rs6000_emit_le_vsx_store): Likewise.
25728 (rs6000_emit_le_vsx_move): Likewise.
25729 (rs6000_emit_move): Add support for V1TImode.
25730 (altivec_expand_ld_builtin): Likewise.
25731 (altivec_expand_st_builtin): Likewise.
25732 (altivec_expand_vec_init_builtin): Likewise.
25733 (altivec_expand_builtin): Likewise.
25734 (rs6000_init_builtins): Add support for V1TImode type. Add
25735 support for ISA 2.07 128-bit integer builtins. Define type names
25736 for the VSX/Altivec vector types.
25737 (altivec_init_builtins): Add support for overloaded vector
25738 functions with V1TImode type.
25739 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25740 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25742 (rs6000_split_128bit_ok_p): Likewise.
25743 (rs6000_handle_altivec_attribute): Create V1TImode from vector
25744 __int128_t and vector __uint128_t.
25746 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25747 and mode attributes.
25749 (VSX_M2): Likewise.
25754 (VS_scalar): Likewise.
25755 (VS_double): Likewise.
25756 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25758 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25759 we support the ISA 2.07 128-bit integer arithmetic instructions.
25760 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25761 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25762 and TImode types for use with the builtin functions.
25763 (V1TI_type_node): Likewise.
25764 (unsigned_V1TI_type_node): Likewise.
25765 (intTI_type_internal_node): Likewise.
25766 (uintTI_type_internal_node): Likewise.
25768 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25769 128-bit builtin functions.
25770 (UNSPEC_VADDEUQM): Likewise.
25771 (UNSPEC_VADDECUQ): Likewise.
25772 (UNSPEC_VSUBCUQ): Likewise.
25773 (UNSPEC_VSUBEUQM): Likewise.
25774 (UNSPEC_VSUBECUQ): Likewise.
25775 (VM): Add V1TImode to vector mode iterators.
25777 (VI_unit): Likewise.
25778 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25779 (altivec_vaddcuq): Likewise.
25780 (altivec_vsubuqm): Likewise.
25781 (altivec_vsubcuq): Likewise.
25782 (altivec_vaddeuqm): Likewise.
25783 (altivec_vaddecuq): Likewise.
25784 (altivec_vsubeuqm): Likewise.
25785 (altivec_vsubecuq): Likewise.
25787 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25789 (BOOL_128): Likewise.
25790 (BOOL_REGS_OUTPUT): Likewise.
25791 (BOOL_REGS_OP1): Likewise.
25792 (BOOL_REGS_OP2): Likewise.
25793 (BOOL_REGS_UNARY): Likewise.
25794 (BOOL_REGS_AND_CR0): Likewise.
25796 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25797 128-bit integer builtin support.
25798 (vec_vadduqm): Likewise.
25799 (vec_vaddecuq): Likewise.
25800 (vec_vaddeuqm): Likewise.
25801 (vec_vsubecuq): Likewise.
25802 (vec_vsubeuqm): Likewise.
25803 (vec_vsubcuq): Likewise.
25804 (vec_vsubuqm): Likewise.
25806 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25807 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25808 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25809 128-bit integer add/subtract to ISA 2.07.
25811 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
25813 * config/arc/arc.c (arc_predicate_delay_insns):
25814 Fix third argument passed to conditionalize_nonjump.
25816 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
25818 * config/aarch64/aarch64-builtins.c
25819 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25820 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25821 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25822 instead of __builtin_lfloor.
25823 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25825 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25827 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25828 (tree_ssa_ifcombine_bb_1): New function.
25829 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
25830 is an empty forwarder block to then_bb or vice versa and then_bb
25831 and else_bb are effectively swapped.
25833 2014-03-12 Christian Bruel <christian.bruel@st.com>
25836 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25837 REG_CFA_DEF_CFA note.
25838 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25839 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25841 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25843 PR tree-optimization/60454
25844 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25846 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25848 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25849 Do not define target_cpu_default2 to generic.
25850 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25851 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25852 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25854 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25855 Marc Glisse <marc.glisse@inria.fr>
25857 PR tree-optimization/60502
25858 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25859 instead of build_low_bits_mask.
25861 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25863 PR middle-end/60482
25864 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25865 if there are multiple uses, but op doesn't live on E edge.
25866 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25867 clobber stmts before __builtin_unreachable.
25869 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
25871 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25872 hard_frame_pointer_rtx.
25873 * cse.c (cse_insn): Remove volatile check.
25874 * cselib.c (cselib_process_insn): Likewise.
25875 * dse.c (scan_insn): Likewise.
25877 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25879 * config/arc/arc.c (conditionalize_nonjump): New function,
25881 (arc_ifcvt): ... this.
25882 (arc_predicate_delay_insns): Use it.
25884 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25886 * config/arc/predicates.md (extend_operand): During/after reload,
25887 allow const_int_operand.
25888 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25889 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
25890 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25892 (umulsi3_highpart_i): Likewise.
25894 2014-03-11 Richard Biener <rguenther@suse.de>
25896 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25897 Add asserts to guard possible wrong-code bugs.
25899 2014-03-11 Richard Biener <rguenther@suse.de>
25901 PR tree-optimization/60429
25902 PR tree-optimization/60485
25903 * tree-ssa-structalias.c (set_union_with_increment): Properly
25904 take into account all fields that overlap the shifted vars.
25905 (do_sd_constraint): Likewise.
25906 (do_ds_constraint): Likewise.
25907 (get_constraint_for_ptr_offset): Likewise.
25909 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
25911 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
25912 (nios2_compute_frame_layout):
25913 Add calculation of cfun->machine->fp_save_offset.
25914 (nios2_expand_prologue): Correct setting of frame pointer register
25916 (nios2_expand_epilogue): Update recovery of stack pointer from
25917 frame pointer accordingly.
25918 (nios2_initial_elimination_offset): Update calculation of offset
25919 for eliminating to HARD_FRAME_POINTER_REGNUM.
25921 2014-03-10 Jakub Jelinek <jakub@redhat.com>
25924 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25925 cgraph_get_create_node on VAR_DECLs.
25927 2014-03-10 Richard Biener <rguenther@suse.de>
25929 PR middle-end/60474
25930 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25932 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25934 * config/vms/vms.opt (vms_float_format): New variable.
25936 2014-03-08 Tobias Burnus <burnus@net-b.de>
25938 * doc/invoke.texi (-fcilkplus): Update implementation status.
25940 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25941 Richard Biener <rguenther@suse.de>
25943 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25944 consistently accross all TUs.
25945 (run_gcc): Enable -fshort-double automatically at link at link-time
25946 and disallow override.
25948 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25951 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25952 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25953 if they can't be used.
25955 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25957 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25958 for Solaris 11/x86 ld.
25959 * configure: Regenerate.
25961 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25963 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25964 (LIB_TLS_SPEC): Save as ld_tls_libs.
25965 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
25966 (HAVE_AS_IX86_TLSLDM): New test.
25967 * configure, config.in: Regenerate.
25968 * config/i386/i386.c (legitimize_tls_address): Fall back to
25969 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
25970 cannot support TLS_MODEL_LOCAL_DYNAMIC.
25971 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
25972 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
25974 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
25976 * common.opt (fira-loop-pressure): Mark as optimization.
25978 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
25980 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
25981 an OpenMP mappable type.
25983 2014-03-06 Matthias Klose <doko@ubuntu.com>
25985 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
25986 MULTILIB_OSDIRNAMES is not defined.
25988 2014-03-06 Jakub Jelinek <jakub@redhat.com>
25989 Meador Inge <meadori@codesourcery.com>
25992 * config/arm/arm.c (arm_tls_symbol_p): Remove.
25993 (arm_legitimize_address): Call legitimize_tls_address for any
25994 arm_tls_referenced_p expression, handle constant addend. Call it
25995 before testing for !TARGET_ARM.
25996 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
25998 2014-03-06 Richard Biener <rguenther@suse.de>
26000 PR middle-end/60445
26004 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26006 * tree-streamer.c (record_common_node): Assert we don't record
26007 nodes with type double.
26008 (preload_common_node): Skip type double, complex double and double
26009 pointer since it is now frontend dependent due to fshort-double option.
26011 2014-03-06 Richard Biener <rguenther@suse.de>
26013 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26014 or -fno-lto is specified and the linker has full plugin support.
26015 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26016 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26017 * lto-wrapper.c (merge_and_complain): Merge compile-time
26018 optimization levels.
26019 (run_gcc): And pass it through to the link options.
26021 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26025 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26027 * cselib.c (remove_useless_values): Skip to avoid quadratic
26028 behavior if the condition moved from...
26029 (cselib_process_insn): ... here holds.
26031 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26034 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26035 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26038 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26039 (TM_H): Add x86-tune.def.
26041 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26043 * config/aarch64/aarch64.c (generic_tunings):
26044 Use cortexa57_extra_costs.
26046 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26049 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26050 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26051 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26054 2014-03-04 Heiher <r@hev.cc>
26056 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26057 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26059 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26061 * config/i386/predicates.md (const2356_operand): Change to ...
26062 (const2367_operand): ... this.
26063 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26065 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26066 (*avx512pf_scatterpf<mode>sf): Ditto.
26067 (avx512pf_scatterpf<mode>df): Ditto.
26068 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26069 (*avx512pf_scatterpf<mode>df): Ditto.
26070 * config/i386/i386.c (ix86_expand_builtin): Update
26071 incorrect hint operand error message.
26073 2014-03-04 Richard Biener <rguenther@suse.de>
26075 * lto-section-in.c (lto_get_section_data): Fix const cast.
26077 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26079 * tree-streamer.c (record_common_node): Assert we don't record
26080 nodes with type double.
26081 (preload_common_node): Skip type double, complex double and double
26082 pointer since it is now frontend dependent due to fshort-double option.
26084 2014-03-04 Richard Biener <rguenther@suse.de>
26087 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26088 (lto_input_toplevel_asms): Likewise.
26089 * lto-section-in.c (lto_get_section_data): Instead do it here
26092 2014-03-04 Richard Biener <rguenther@suse.de>
26094 PR tree-optimization/60382
26095 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26096 dead PHIs a reduction.
26098 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26100 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26102 (_mm_prefetch): Move out of GCC target("sse") pragma.
26103 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26104 GCC target("prfchw") pragma.
26105 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26107 * config/i386/i386.c (ix86_option_override_internal): Enable
26108 -mprfchw with -mprefetchwt1.
26110 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26112 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26115 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26117 * opts.h (CL_PCH_IGNORE): Define.
26118 * targhooks.c (option_affects_pch_p):
26119 Return false for options that have CL_PCH_IGNORE set.
26120 * opt-functions.awk: Process PchIgnore.
26121 * doc/options.texi: Document PchIgnore.
26123 * config/arc/arc.opt (misize): Add PchIgnore property.
26125 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26127 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26128 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26129 constraint on constants to permit them being loaded into
26130 GENERAL_REGS or BASE_REGS.
26132 2014-03-03 Nick Clifton <nickc@redhat.com>
26134 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26135 anti-cacnonical alternatives.
26136 (negandhi3_real): New pattern.
26137 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26139 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26141 * config/avr/avr-mcus.def: Remove atxmega16x1.
26142 * config/avr/avr-tables.opt: Regenerate.
26143 * config/avr/t-multilib: Regenerate.
26144 * doc/avr-mmcu.texi: Regenerate.
26146 2014-03-03 Tobias Grosser <tobias@grosser.es>
26147 Mircea Namolaru <mircea.namolaru@inria.fr>
26149 PR tree-optimization/58028
26150 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26153 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26155 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26156 not handled by recognizers.
26158 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26160 PR middle-end/60175
26161 * function.c (expand_function_end): Don't emit
26162 clobber_return_register sequence if clobber_after is a BARRIER.
26163 * cfgexpand.c (construct_exit_block): Append instructions before
26164 return_label to prev_bb.
26166 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26168 * config/rs6000/constraints.md: Document reserved use of "wc".
26170 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26173 * ipa.c (function_and_variable_visibility): When dissolving comdat
26174 group, also set all symbols to local.
26176 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26181 2013-12-14 Jan Hubicka <jh@suse.cz>
26182 PR middle-end/58477
26183 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26185 2014-03-02 Jon Beniston <jon@beniston.com>
26191 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26192 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26193 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26194 (simple_return, *simple_return): New patterns
26195 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26196 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26198 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26200 * dwarf2out.c (gen_subprogram_die): Tidy.
26202 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26205 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26206 (*mov_t_msb_neg_negc): ... this new insn.
26208 2014-02-28 Jason Merrill <jason@redhat.com>
26211 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26214 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26217 * dwarf2out.c (decltype_auto_die): New static.
26218 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26219 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26220 (is_cxx_auto): Likewise.
26222 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26224 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26225 we are not using general regs only.
26227 2014-02-28 Richard Biener <rguenther@suse.de>
26230 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26231 previous fix and only allow to remove trivial pre-headers
26232 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26233 (remove_forwarder_block): Properly update the latch of a loop.
26235 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26238 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26239 (cselib_preserved_hash_table): New.
26240 (preserve_constants_and_equivs): Move preserved vals to it.
26241 (cselib_find_slot): Look it up first.
26242 (cselib_init): Initialize it.
26243 (cselib_finish): Release it.
26244 (dump_cselib_table): Dump it.
26246 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26249 * cselib.c (remove_useless_values): Skip to avoid quadratic
26250 behavior if the condition moved from...
26251 (cselib_process_insn): ... here holds.
26253 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26256 * var-tracking.c (vt_initialize): Apply the same condition to
26257 preserve the CFA base value.
26259 2014-02-28 Joey Ye <joey.ye@arm.com>
26262 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26263 if reload in progress or completed.
26265 2014-02-28 Tobias Burnus <burnus@net-b.de>
26267 PR middle-end/60147
26268 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26271 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26273 * doc/tm.texi.in (Condition Code Status): Update documention for
26274 relative locations of cc0-setter and cc0-user.
26276 2014-02-27 Jeff Law <law@redhat.com>
26278 PR rtl-optimization/52714
26279 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26280 into two independent simple sets, if I3 is a jump, ensure the
26281 pattern we place into I3 is a (set (pc) ...).
26283 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26284 Jeff Law <law@redhat.com>
26286 PR rtl-optimization/49847
26287 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26288 are in different blocks.
26289 * doc/tm.texi (Condition Code Status): Update documention for
26290 relative locations of cc0-setter and cc0-user.
26292 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26295 * lra.c (lra_emit_add): Check SUBREG too.
26297 2014-02-27 Andreas Schwab <schwab@suse.de>
26299 * config/m68k/m68k.c (m68k_option_override): Disable
26300 -flive-range-shrinkage for classic m68k.
26301 (m68k_override_options_after_change): Likewise.
26303 2014-02-27 Marek Polacek <polacek@redhat.com>
26305 PR middle-end/59223
26306 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26307 -Wmaybe-uninitialized.
26309 2014-02-27 Alan Modra <amodra@gmail.com>
26312 * reload1.c (emit_input_reload_insns): When reload_override_in,
26313 set old to rl->in_reg when rl->in_reg is a subreg.
26315 2014-02-26 Richard Biener <rguenther@suse.de>
26318 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26320 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26322 * common/config/i386/predicates.md (const1256_operand): Remove.
26323 (const2356_operand): New.
26324 (const_1_to_2_operand): Remove.
26325 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26326 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26327 (*avx512pf_gatherpf<mode>sf): Ditto.
26328 (avx512pf_gatherpf<mode>df): Ditto.
26329 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26330 (*avx512pf_gatherpf<mode>df): Ditto.
26331 (avx512pf_scatterpf<mode>sf): Ditto.
26332 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26333 (*avx512pf_scatterpf<mode>sf): Ditto.
26334 (avx512pf_scatterpf<mode>df): Ditto.
26335 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26336 (*avx512pf_scatterpf<mode>df): Ditto.
26337 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26339 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26341 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26342 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26343 (_mm512_mask_testn_epi64_mask): Move to ...
26344 * config/i386/avx512cdintrin.h: Here.
26345 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26346 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26347 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26348 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26349 TARGET_AVX512F from TARGET_AVX512CD.
26351 2014-02-26 Richard Biener <rguenther@suse.de>
26354 * ipa.c (walk_polymorphic_call_targets): Properly guard
26355 call to inline_update_overall_summary.
26357 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26360 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26361 and latches only if requested. Fix latch if it is removed.
26362 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26363 LOOPS_HAVE_PREHEADERS.
26365 2014-02-25 Andrew Pinski <apinski@cavium.com>
26367 * builtins.c (expand_builtin_thread_pointer): Create a new target
26368 when the target is NULL.
26370 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26372 PR rtl-optimization/60317
26373 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26374 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26375 * lra-assigns.c: Include params.h.
26376 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26377 other reload pseudos considerations.
26379 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26381 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26382 to use canonical form for nor<mode>3.
26384 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26387 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26390 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26392 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26393 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26394 (ix86_handle_option): Handle OPT_mprefetchwt1.
26395 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26396 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26398 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26399 OPTION_MASK_ISA_PREFETCHWT1.
26400 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26401 (PTA_PREFETCHWT1): New.
26402 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26403 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26404 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26405 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26406 (*prefetch_avx512pf_<mode>_: Change into ...
26407 (*prefetch_prefetchwt1_<mode>: This.
26408 * config/i386/i386.opt (mprefetchwt1): New.
26409 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26410 (_mm_prefetch): Handle intent to write.
26411 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26413 2014-02-25 Richard Biener <rguenther@suse.de>
26415 PR middle-end/60291
26416 * emit-rtl.c (mem_attrs_htab): Remove.
26417 (mem_attrs_htab_hash): Likewise.
26418 (mem_attrs_htab_eq): Likewise.
26419 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26420 (init_emit_once): Do not allocate mem_attrs_htab.
26422 2014-02-25 Richard Biener <rguenther@suse.de>
26425 * lto-opts.c (lto_write_options): Output non-explicit conservative
26426 -fwrapv, -fno-trapv and -fno-strict-overflow.
26427 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26428 (run_gcc): And pass them through.
26430 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26432 * sel-sched.c (calculate_new_fences): New parameter ptime.
26433 Calculate it as a maximum over all fence cycles.
26434 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26435 Print the final schedule timing when sched_verbose.
26437 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26439 PR rtl-optimization/60292
26440 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26441 bit fot the fence instruction.
26443 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26445 * calls.h: Fix typo in comment.
26447 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26449 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26450 adjusting offsetable addresses.
26452 2014-02-24 Guozhi Wei <carrot@google.com>
26454 * sparseset.h (sparseset_pop): Fix the wrong index.
26456 2014-02-24 Walter Lee <walt@tilera.com>
26458 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26459 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26461 * common/config/tilegx/tilegx-common.c
26462 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26463 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26464 (LINK_SPEC): Ditto.
26465 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26466 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26467 (tilegx_gimplify_va_arg_expr): Handle big endian.
26468 (tilegx_expand_unaligned_load): Ditto.
26469 (tilegx_expand_unaligned_store): Ditto.
26470 (TARGET_RETURN_IN_MSB): New.
26471 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26472 (TARGET_ENDIAN_DEFAULT): New.
26473 (TARGET_BIG_ENDIAN): Handle big endian.
26474 (BYTES_BIG_ENDIAN): Ditto.
26475 (WORDS_BIG_ENDIAN): Ditto.
26476 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26477 (ENDIAN_SPEC): New.
26478 (EXTRA_SPECS): New.
26479 * config/tilegx/tilegx.md (extv): Handle big endian.
26481 (insn_st<n>): Ditto.
26482 (insn_st<n>_add<bitsuffix>): Ditto.
26483 (insn_stnt<n>): Ditto.
26484 (insn_stnt<n>_add<bitsuffix>):Ditto.
26485 (vec_interleave_highv8qi): Handle big endian.
26486 (vec_interleave_highv8qi_be): New.
26487 (vec_interleave_highv8qi_le): New.
26488 (insn_v1int_h): Handle big endian.
26489 (vec_interleave_lowv8qi): Handle big endian.
26490 (vec_interleave_lowv8qi_be): New.
26491 (vec_interleave_lowv8qi_le): New.
26492 (insn_v1int_l): Handle big endian.
26493 (vec_interleave_highv4hi): Handle big endian.
26494 (vec_interleave_highv4hi_be): New.
26495 (vec_interleave_highv4hi_le): New.
26496 (insn_v2int_h): Handle big endian.
26497 (vec_interleave_lowv4hi): Handle big endian.
26498 (vec_interleave_lowv4hi_be): New.
26499 (vec_interleave_lowv4hi_le): New.
26500 (insn_v2int_l): Handle big endian.
26501 (vec_interleave_highv2si): Handle big endian.
26502 (vec_interleave_highv2si_be): New.
26503 (vec_interleave_highv2si_le): New.
26504 (insn_v4int_h): Handle big endian.
26505 (vec_interleave_lowv2si): Handle big endian.
26506 (vec_interleave_lowv2si_be): New.
26507 (vec_interleave_lowv2si_le): New.
26508 (insn_v4int_l): Handle big endian.
26509 * config/tilegx/tilegx.opt (mbig-endian): New option.
26510 (mlittle-endian): New option.
26511 * doc/install.texi: Document tilegxbe-linux.
26512 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26514 2014-02-24 Martin Jambor <mjambor@suse.cz>
26517 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26518 there are no parameter descriptors.
26520 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26522 PR rtl-optimization/60268
26523 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26524 initialization to ...
26525 (sched_rgn_init): ... here.
26526 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26528 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26530 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26533 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26535 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26538 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26540 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26541 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26543 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26545 * config/microblaze/predicates.md: Add cmp_op predicate.
26546 * config/microblaze/microblaze.md: Add branch_compare instruction
26547 which uses cmp_op predicate and emits cmp insn before branch.
26548 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26549 to microblaze_expand_conditional_branch and consolidate logic.
26550 (microblaze_expand_conditional_branch): emit branch_compare
26551 insn instead of handling cmp op separate from branch insn.
26553 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26555 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26558 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26560 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26561 define_insn with define_expand and new define_insn
26562 *altivec_lve<VI_char>x_internal.
26563 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26564 and new define_insn *altivec_stve<VI_char>x_internal.
26565 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26567 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26569 (altivec_expand_stvex_be): New function.
26571 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
26573 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26574 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26575 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26576 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26578 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
26581 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26582 instead of emit_move_insn.
26584 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26586 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26587 vspltw with vsldoi.
26588 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26589 gen_altivec_vsumsws.
26591 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26593 * config/rs6000/altivec.md (altivec_lvxl): Rename as
26594 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26595 (altivec_lvxl_<mode>): New define_expand incorporating
26596 -maltivec=be semantics where needed.
26597 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26598 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26599 semantics where needed.
26600 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26601 (altivec_stvx_<mode>): New define_expand incorporating
26602 -maltivec=be semantics where needed.
26603 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26604 VM2 iterator instead of V4SI.
26605 (altivec_stvxl_<mode>): New define_expand incorporating
26606 -maltivec=be semantics where needed.
26607 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26608 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26609 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26610 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26611 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26612 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26613 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26614 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26615 ALTIVEC_BUILTIN_STVXL.
26616 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26617 (altivec_expand_stvx_be): Likewise.
26618 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26619 (altivec_expand_lvx_be): Likewise.
26620 (altivec_expand_stvx_be): Likewise.
26621 (altivec_expand_builtin): Add cases for
26622 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26623 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26624 (altivec_init_builtins): Add definitions for
26625 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26626 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26628 2014-02-21 Catherine Moore <clm@codesourcery.com>
26630 * doc/invoke.texi (mvirt, mno-virt): Document.
26631 * config/mips/mips.opt (mvirt): New option.
26632 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26634 2014-02-21 Richard Biener <rguenther@suse.de>
26636 PR tree-optimization/60276
26637 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26638 (STMT_VINFO_MIN_NEG_DIST): New macro.
26639 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26640 STMT_VINFO_MIN_NEG_DIST.
26641 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26642 made for negative dependence distances still hold.
26644 2014-02-21 Richard Biener <rguenther@suse.de>
26646 PR middle-end/60291
26647 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26648 DECL_INITIAL for globals not in the current function context.
26650 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26652 PR tree-optimization/56490
26653 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26654 * tree-ssa-uninit.c: Include params.h.
26655 (compute_control_dep_chain): Add num_calls argument, return false
26656 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26657 num_calls to recursive call.
26658 (find_predicates): Change dep_chain into normal array,
26659 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26660 variable and adjust compute_control_dep_chain caller.
26661 (find_def_preds): Likewise.
26663 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
26665 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26666 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26668 2014-02-21 Nick Clifton <nickc@redhat.com>
26670 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26671 (pushhi1): Likewise.
26672 (popqi1): Add mode to pre_dec.
26673 (pophi1): Likewise.
26675 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26677 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26678 mode for mask of V8SFmode permutation.
26680 2014-02-20 Richard Henderson <rth@redhat.com>
26683 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26684 a new pseudo for OLDVAL.
26686 2014-02-20 Jakub Jelinek <jakub@redhat.com>
26689 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26690 gen_reg_rtx if d->testing_p.
26691 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26692 if d->testing_p and we will certainly return true.
26693 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
26696 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
26698 * emit-rtl.c (gen_reg_rtx): Assert that
26699 crtl->emit.regno_pointer_align_length is non-zero.
26701 2014-02-20 Richard Henderson <rth@redhat.com>
26704 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26705 on failure the store back into EXPECT.
26707 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
26708 Sandra Loosemore <sandra@codesourcery.com>
26710 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26711 * config/nios2/nios2.c (nios2_function_profiler): Add
26712 -fPIC (flag_pic == 2) support.
26713 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26714 (nios2_large_offset_p): New function.
26715 (nios2_unspec_reloc_p): Move up position, update to use
26716 nios2_large_offset_p.
26717 (nios2_unspec_address): Remove function.
26718 (nios2_unspec_offset): New function.
26719 (nios2_large_got_address): New function.
26720 (nios2_got_address): Add large offset support.
26721 (nios2_legitimize_tls_address): Update usage of removed and new
26723 (nios2_symbol_binds_local_p): New function.
26724 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26725 (nios2_legitimize_address): Update to use nios2_large_offset_p.
26726 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26727 (nios2_print_operand): Merge H/L processing, add hiadj/lo
26728 processing for (const (unspec ...)).
26729 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26731 2014-02-20 Richard Biener <rguenther@suse.de>
26733 * tree-cfg.c (replace_uses_by): Mark altered BBs before
26734 doing the substitution.
26735 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26737 2014-02-20 Martin Jambor <mjambor@suse.cz>
26740 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26741 info when checking whether lattices are bottom.
26743 2014-02-20 Richard Biener <rguenther@suse.de>
26745 PR middle-end/60221
26746 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26749 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
26752 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26753 parameter specifying the scaling.
26754 (inline_call): Update.
26755 (want_inline_recursively): Guard division by zero.
26756 (recursive_inlining): Update.
26757 * ipa-inline.h (clone_inlined_nodes): Update.
26759 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26762 * config/i386/i386.c (classify_argument): Pass structures of size
26763 64 bytes or less in register.
26765 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26766 Kirill Yukhin <kirill.yukhin@intel.com>
26768 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26769 (_mm_rcp28_round_ss): Ditto.
26770 (_mm_rsqrt28_round_sd): Ditto.
26771 (_mm_rsqrt28_round_ss): Ditto.
26772 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26773 (_mm_rcp14_round_ss): Ditto.
26774 (_mm_rsqrt14_round_sd): Ditto.
26775 (_mm_rsqrt14_round_ss): Ditto.
26776 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26777 the first input operand, get rid of match_dup.
26778 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26780 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26782 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26783 operand as the first input operand, set type attribute.
26784 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26785 Set type attribute.
26786 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26787 operand as the first input operand, set type attribute.
26789 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26791 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26794 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
26797 * config/i386/i386.c (construct_container): Remove TFmode check
26798 for X86_64_INTEGER_CLASS.
26800 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
26803 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26804 only when -Wpsabi is enabled.
26806 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
26809 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26810 passing arrays in registers are the same as for structs, so remove the
26811 special case for them.
26813 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
26815 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26816 destination type, extract only the valid bits if the source type is not
26817 integral and has a different mode.
26819 2014-02-19 Richard Biener <rguenther@suse.de>
26822 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26825 2014-02-19 Richard Biener <rguenther@suse.de>
26828 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26829 (ipa_modify_call_arguments): Emit an argument load explicitely and
26830 preserve virtual SSA form there and for the replacement call.
26831 Do not update SSA form nor free dominance info.
26833 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26835 * ipa.c (function_and_variable_visibility): Also clear WEAK
26836 flag when disolving COMDAT_GROUP.
26838 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26840 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26841 * ipa-prop.c (ipa_set_jf_known_type): Return early when
26842 not devirtualizing.
26843 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26844 do more sanity checks.
26845 (detect_type_change): Return true when giving up early.
26846 (compute_complex_assign_jump_func): Fix type parameter of
26847 ipa_set_ancestor_jf.
26848 (compute_complex_ancestor_jump_func): Likewise.
26849 (update_jump_functions_after_inlining): Fix updating of
26851 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26853 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26855 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26856 inline clones when edge disappears.
26858 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26861 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26862 Split 64-bit moves into 2 patterns. Do not allow the use of
26863 direct move for TDmode in little endian, since the decimal value
26864 has little endian bytes within a word, but the 64-bit pieces are
26865 ordered in a big endian fashion, and normal subreg's of TDmode are
26867 (mov<mode>_64bit_dm): Likewise.
26868 (movtd_64bit_nodm): Likewise.
26870 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26872 PR tree-optimization/60174
26873 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26874 statement of an SSA_NAME that occurs in an abnormal PHI node.
26876 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26879 * final.c (SEEN_BB): Remove.
26880 (SEEN_NOTE, SEEN_EMITTED): Renumber.
26881 (final_scan_insn): Don't force_source_line on second
26882 NOTE_INSN_BASIC_BLOCK.
26884 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
26887 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26888 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26889 (type_natural_mode): Warn ABI change when %zmm register is not
26890 available for AVX512F vector value passing.
26892 2014-02-18 Kai Tietz <ktietz@redhat.com>
26895 * config/i386/i386.c (ix86_expand_prologue): Use value in
26896 rax register as displacement when restoring %r10 or %rax.
26897 Fix wrong offset when restoring both registers.
26899 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26901 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26902 assertion with conditional return.
26904 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26905 Uros Bizjak <ubizjak@gmail.com>
26908 * config/i386/driver-i386.c (host_detect_local_cpu): If
26909 YMM state is not saved by the OS, also clear has_f16c. Move
26910 CPUID 0x80000001 handling before YMM state saving checking.
26912 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
26914 PR rtl-optimization/58960
26915 * haifa-sched.c (alloc_global_sched_pressure_data): New,
26916 factored out from ...
26917 (sched_init): ... here.
26918 (free_global_sched_pressure_data): New, factored out from ...
26919 (sched_finish): ... here.
26920 * sched-int.h (free_global_sched_pressure_data): Declare.
26921 * sched-rgn.c (nr_regions_initial): New static global.
26922 (haifa_find_rgns): Initialize it.
26923 (schedule_region): Disable sched-pressure for the newly
26926 2014-02-17 Richard Biener <rguenther@suse.de>
26928 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26929 release SSA defs of pattern stmts.
26931 2014-02-17 Richard Biener <rguenther@suse.de>
26933 * tree-inline.c (expand_call_inline): Release the virtual
26934 operand defined by the call we are about to inline.
26936 2014-02-17 Richard Biener <rguenther@suse.de>
26938 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26940 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26941 Ilya Tocar <ilya.tocar@intel.com>
26943 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26944 arguments order in builtin.
26945 (_mm512_permutexvar_epi64): Ditto.
26946 (_mm512_mask_permutexvar_epi64): Ditto
26947 (_mm512_maskz_permutexvar_epi32): Ditto
26948 (_mm512_permutexvar_epi32): Ditto
26949 (_mm512_mask_permutexvar_epi32): Ditto
26951 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26953 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26954 (p8_vmrgow): Likewise.
26956 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26958 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26961 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26964 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
26965 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
26966 into 64-bit and 32-bit moves. On 64-bit moves, add support for
26967 using direct move instructions on ISA 2.07. Also adjust
26968 instruction length for 64-bit.
26969 (mov<mode>_64bit, TFmode/TDmode): Likewise.
26970 (mov<mode>_32bit, TFmode/TDmode): Likewise.
26972 2014-02-15 Alan Modra <amodra@gmail.com>
26976 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26977 find_replacement on parts of insn rtl that might be reloaded.
26979 2014-02-15 Richard Biener <rguenther@suse.de>
26981 PR tree-optimization/60183
26982 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
26983 (tree_ssa_phiprop): Calculate and free post-dominators.
26985 2014-02-14 Jeff Law <law@redhat.com>
26987 PR rtl-optimization/60131
26988 * ree.c (get_extended_src_reg): New function.
26989 (combine_reaching_defs): Use it rather than assuming location of REG.
26990 (find_and_remove_re): Verify first operand of extension is
26991 a REG before adding the insns to the copy list.
26993 2014-02-14 Roland McGrath <mcgrathr@google.com>
26995 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
26996 * configure: Regenerated.
26997 * config.in: Regenerated.
26998 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
26999 instead of ASM_SHORT.
27001 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27002 Richard Earnshaw <rearnsha@arm.com>
27004 PR rtl-optimization/59535
27005 * lra-constraints.c (process_alt_operands): Encourage alternative
27006 when unassigned pseudo class is superset of the alternative class.
27007 (inherit_reload_reg): Don't inherit when optimizing for code size.
27008 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27009 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27010 modes not less than 4 for Thumb1.
27012 2014-02-14 Kyle McMartin <kyle@redhat.com>
27015 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27017 2014-02-14 Richard Biener <rguenther@suse.de>
27019 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27020 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27021 Do not strip INDIRECT_REFs.
27023 2014-02-14 Richard Biener <rguenther@suse.de>
27026 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27027 DECL_FUNCTION_SPECIFIC_TARGET.
27028 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27029 * tree-streamer-out.c (pack_ts_target_option): Remove.
27030 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27031 (write_ts_function_decl_tree_pointers): Do not stream
27032 DECL_FUNCTION_SPECIFIC_TARGET.
27033 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27034 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27035 (lto_input_ts_function_decl_tree_pointers): Do not stream
27036 DECL_FUNCTION_SPECIFIC_TARGET.
27038 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27040 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27041 (get_initial_def_for_induction, vectorizable_induction): Ignore
27042 debug stmts when looking for exit_phi.
27043 (vectorizable_live_operation): Fix up condition.
27045 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27047 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27048 nreverse() because it changes the content of original tree list.
27050 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27052 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27053 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27055 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27057 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27058 GNU coding standards.
27060 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27063 * dwarf2out.c (gen_subprogram_die): Don't call
27064 add_calling_convention_attribute if subr_die is old_die.
27066 2014-02-13 Sharad Singhai <singhai@google.com>
27068 * doc/optinfo.texi: Fix order of nodes.
27070 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27072 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27073 operands[2], not operands[3].
27075 2014-02-13 Richard Biener <rguenther@suse.de>
27078 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27079 mention the possibility of an in-tree build.
27080 (CLooG): Update recommended version to 0.18.1, mention the
27081 possibility of an in-tree build and clarify that the ISL
27082 bundled with CLooG does not work.
27084 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27087 * expr.c (compress_float_constant): If x is a hard register,
27088 extend into a pseudo and then move to x.
27090 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27092 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27093 caused by bad second argument to warning_at() with -mhotpatch and
27094 nested functions (e.g. with gfortran).
27096 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27098 * opts.c (option_name): Remove "enabled by default" rider.
27100 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27102 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27104 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27105 Uros Bizjak <ubizjak@gmail.com>
27108 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27109 * configure: Regenerated.
27111 2014-02-12 Richard Biener <rguenther@suse.de>
27113 * vec.c (vec_prefix::calculate_allocation): Move as
27114 inline variant to vec.h.
27115 (vec_prefix::calculate_allocation_1): New out-of-line version.
27116 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27117 (vec_prefix::m_has_auto_buf): Rename to ...
27118 (vec_prefix::m_using_auto_storage): ... this.
27119 (vec_prefix::calculate_allocation): Inline the easy cases
27120 and dispatch to calculate_allocation_1 which doesn't need the
27122 (va_heap::reserve): Use gcc_checking_assert.
27123 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27124 m_using_auto_storage.
27125 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27127 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27128 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27129 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27131 2014-02-12 Richard Biener <rguenther@suse.de>
27133 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27134 when we found a dependence.
27136 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27138 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27140 (maybe_fold_stmt): ... into this new function.
27141 * omp-low.c (lower_omp): Update comment.
27143 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27146 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27149 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27151 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27152 identifiers in comments.
27153 (cortexa53_extra_costs): Likewise.
27154 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27155 (cortexa7_extra_costs): Likewise.
27156 (cortexa12_extra_costs): Likewise.
27157 (cortexa15_extra_costs): Likewise.
27158 (v7m_extra_costs): Likewise.
27160 2014-02-12 Richard Biener <rguenther@suse.de>
27162 PR middle-end/60092
27163 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27164 of posix_memalign being successful.
27165 (lower_stmt): Restrict lowering of posix_memalign to when
27166 -ftree-bit-ccp is enabled.
27168 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27170 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27172 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27174 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27176 PR rtl-optimization/60116
27177 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27178 other_insn once the combination has been validated.
27180 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27183 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27185 * ipa-devirt.c: Include demangle.h
27186 (odr_violation_reported): New static variable.
27187 (add_type_duplicate): Update odr_violations.
27188 (maybe_record_node): Add completep parameter; update it.
27189 (record_target_from_binfo): Add COMPLETEP parameter;
27190 update it as needed.
27191 (possible_polymorphic_call_targets_1): Likewise.
27192 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27193 rename FINAL to COMPLETE.
27194 (record_targets_from_bases): Sanity check we found the binfo;
27195 fix COMPLETEP updating.
27196 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27197 parameter, fix computing of COMPLETEP.
27198 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27199 at LTO time do demangling.
27200 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27201 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27203 (gimple_get_virt_method_for_binfo): Likewise.
27204 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27205 gimple_get_virt_method_for_vtable): Update prototypes.
27207 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27210 * genautomata.c (add_presence_absence): Fix typo with
27211 {final_}presence_list.
27213 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27216 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27217 for VSX/Altivec vectors that land in GPR registers.
27219 2014-02-11 Richard Henderson <rth@redhat.com>
27220 Jakub Jelinek <jakub@redhat.com>
27223 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27224 around drhs if type conversion to lacc->type is not useless.
27226 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27228 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27230 (cortex-a57.cortex-a53): Likewise.
27231 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27233 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27235 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27238 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27240 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27241 add_options_for_arm_vfp3.
27243 2014-02-11 Jeff Law <law@redhat.com>
27245 PR middle-end/54041
27246 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27247 object with an undesirable mode.
27249 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27252 * config/i386/sol2-9.h: New file.
27253 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27254 *-*-solaris2.9*): Use it.
27256 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27258 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27259 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27261 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27263 * config/microblaze/microblaze.c: Extend mcpu version format
27265 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27267 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27269 2014-02-10 Richard Henderson <rth@redhat.com>
27272 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27273 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27274 ms-abi vs -mno-accumulate-outgoing-args.
27275 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27276 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27279 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27281 PR middle-end/60080
27282 * cfgexpand.c (expand_asm_operands): Attach source location to
27283 ASM_INPUT rtx objects.
27284 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27286 2014-02-10 Nick Clifton <nickc@redhat.com>
27288 * config/mn10300/mn10300.c (popcount): New function.
27289 (mn10300_expand_prologue): Include saved registers in stack usage
27292 2014-02-10 Jeff Law <law@redhat.com>
27294 PR middle-end/52306
27295 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27296 when changing the SET_DEST of a prior insn to avoid an input reload.
27298 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27300 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27301 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27302 -mcall-openbsd, or -mcall-linux.
27303 (CC1_ENDIAN_BIG_SPEC): Remove.
27304 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27305 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27306 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27307 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27308 and %cc1_endian_default.
27309 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27311 2014-02-10 Richard Biener <rguenther@suse.de>
27313 PR tree-optimization/60115
27314 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27315 MEM_REF handling. Properly verify that the accesses are not
27316 out of the objects bound.
27318 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27320 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27323 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27325 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27326 proper constants and fix formatting.
27327 (possible_polymorphic_call_targets): Fix formatting.
27329 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27330 Ilya Tocar <ilya.tocar@intel.com>
27332 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27333 (_mm512_loadu_epi32): Renamed into...
27334 (_mm512_loadu_si512): This.
27335 (_mm512_storeu_epi32): Renamed into...
27336 (_mm512_storeu_si512): This.
27337 (_mm512_maskz_ceil_ps): Removed.
27338 (_mm512_maskz_ceil_pd): Ditto.
27339 (_mm512_maskz_floor_ps): Ditto.
27340 (_mm512_maskz_floor_pd): Ditto.
27341 (_mm512_floor_round_ps): Ditto.
27342 (_mm512_floor_round_pd): Ditto.
27343 (_mm512_ceil_round_ps): Ditto.
27344 (_mm512_ceil_round_pd): Ditto.
27345 (_mm512_mask_floor_round_ps): Ditto.
27346 (_mm512_mask_floor_round_pd): Ditto.
27347 (_mm512_mask_ceil_round_ps): Ditto.
27348 (_mm512_mask_ceil_round_pd): Ditto.
27349 (_mm512_maskz_floor_round_ps): Ditto.
27350 (_mm512_maskz_floor_round_pd): Ditto.
27351 (_mm512_maskz_ceil_round_ps): Ditto.
27352 (_mm512_maskz_ceil_round_pd): Ditto.
27353 (_mm512_expand_pd): Ditto.
27354 (_mm512_expand_ps): Ditto.
27355 * config/i386/i386.c (ix86_builtins): Remove
27356 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27357 (bdesc_args): Ditto.
27358 * config/i386/predicates.md (const1256_operand): New.
27359 (const_1_to_2_operand): Ditto.
27360 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27361 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27362 (*avx512pf_gatherpf<mode>sf): Ditto.
27363 (avx512pf_gatherpf<mode>df): Ditto.
27364 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27365 (*avx512pf_gatherpf<mode>df): Ditto.
27366 (avx512pf_scatterpf<mode>sf): Ditto.
27367 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27368 (*avx512pf_scatterpf<mode>sf): Ditto.
27369 (avx512pf_scatterpf<mode>df): Ditto.
27370 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27371 (*avx512pf_scatterpf<mode>df): Ditto.
27372 (avx512f_expand<mode>): Removed.
27373 (<shift_insn><mode>3<mask_name>): Change predicate type.
27375 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27377 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27378 not at the end of datarefs vector use ordered_remove to avoid
27379 reordering datarefs vector.
27382 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27383 mark local addressable non-static vars as GOVD_PRIVATE
27384 instead of GOVD_LOCAL.
27385 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27386 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27389 PR middle-end/60092
27390 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27391 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27392 assume_aligned or alloc_align attributes.
27393 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27394 arguments. Handle also assume_aligned and alloc_align attributes.
27395 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27396 calls to functions with assume_aligned or alloc_align attributes.
27397 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27399 2014-02-08 Terry Guo <terry.guo@arm.com>
27401 * doc/invoke.texi: Document ARM -march=armv7e-m.
27403 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27405 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27406 flag on __cilkrts_rethrow builtin.
27409 * ipa-cp.c (determine_versionability): Fail at -O0
27410 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27411 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27414 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27417 * tree-inline.c (copy_forbidden): Fail for
27418 __attribute__((optimize (0))) functions.
27420 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27422 * varpool.c: Include pointer-set.h.
27423 (varpool_remove_unreferenced_decls): Variables in other partitions
27424 will not be output; be however careful to not lose information
27425 about partitioning.
27427 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27429 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27430 lookup in the vtable constructor.
27432 2014-02-07 Jeff Law <law@redhat.com>
27435 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27436 define_insn_and_split.
27438 * ipa-inline.c (inline_small_functions): Fix typos.
27440 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27442 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27443 (s390_can_use_return_insn): Declare.
27444 * config/s390/s390.h (EPILOGUE_USES): Define.
27445 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27447 (s390_chunkify_start): Handle return JUMP_LABELs.
27448 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27449 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27450 (s390_can_use_return_insn): New functions.
27451 (s390_fix_long_loop_prediction): Handle conditional returns.
27452 (TARGET_SET_UP_BY_PROLOGUE): Define.
27453 * config/s390/s390.md (ANY_RETURN): New code iterator.
27454 (*creturn, *csimple_return, return, simple_return): New patterns.
27456 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27458 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27459 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27460 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27461 REG_CFA_RESTORE list when deciding not to restore a register.
27463 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27465 * config/s390/s390.c: Include tree-pass.h and context.h.
27466 (s390_early_mach): New function, split out from...
27467 (s390_emit_prologue): ...here.
27468 (pass_data_s390_early_mach): New pass structure.
27469 (pass_s390_early_mach): New class.
27470 (s390_option_override): Create and register early_mach pass.
27471 Move to end of file.
27473 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27475 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27476 to match for the exit block.
27478 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27480 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27481 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27482 Reject misaligned operands.
27484 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27486 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27488 2014-02-07 Richard Biener <rguenther@suse.de>
27490 PR middle-end/60092
27491 * gimple-low.c (lower_builtin_posix_memalign): New function.
27492 (lower_stmt): Call it to lower posix_memalign in a way
27493 to make alignment info accessible.
27495 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27498 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27499 __builtin_setjmp_receiver.
27501 2014-02-07 Richard Biener <rguenther@suse.de>
27503 PR middle-end/60092
27504 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27505 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27506 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27507 Handle BUILT_IN_POSIX_MEMALIGN.
27508 (find_func_clobbers): Likewise.
27509 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27510 (call_may_clobber_ref_p_1): Likewise.
27512 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27515 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27518 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27521 * lto-cgraph.c (lto_output_node): Use
27522 symtab_get_symbol_partitioning_class.
27523 (lto_output_varpool_node): likewise.
27524 (symtab_get_symbol_partitioning_class): Move here from
27525 lto/lto-partition.c
27526 * cgraph.h (symbol_partitioning_class): Likewise.
27527 (symtab_get_symbol_partitioning_class): Declare.
27529 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27531 * ggc.h (ggc_internal_cleared_alloc): New macro.
27532 * vec.h (vec_safe_copy): Handle memory stats.
27533 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27534 * target-globals.c (save_target_globals): Likewise.
27536 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27539 * expr.c (emit_move_resolve_push): Export; be bit more selective
27540 on when to clear alias set.
27541 * expr.h (emit_move_resolve_push): Declare.
27542 * function.h (struct function): Add tail_call_marked.
27543 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27544 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27545 * config/i386/i386.md (TImode move expander): De not call
27547 (FP push expanders): Preserve memory attributes.
27548 * config/i386/sse.md (push<mode>1): Remove.
27549 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27550 (ix86_expand_push): Remove.
27551 * config/i386/mmx.md (push<mode>1): Remove.
27553 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27555 PR rtl-optimization/60030
27556 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27557 lopart with paradoxical subreg before shifting it up by hprec.
27559 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27561 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27562 Remove extra newline at end of file.
27563 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27564 (arm_issue_rate): Handle cortexa57.
27565 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27566 (cortex-a57.cortex-a53): Likewise.
27568 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27571 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27572 don't record in REG_FRAME_RELATED_EXPR registers not set in that
27574 (arm_expand_prologue): Adjust all callers.
27575 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27576 info, registers also at the lowest numbered registers side. Use
27577 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27581 * var-tracking.c (adjust_mems): Before adding a SET to
27582 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27584 2014-02-06 Alan Modra <amodra@gmail.com>
27587 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27588 change SDmode to DDmode when lra_in_progress.
27590 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27592 PR middle-end/59150
27593 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27594 free_data_ref on the dr first, and before goto again also set dr
27595 to the next dr. For simd_lane_access, free old datarefs[i] before
27596 overwriting it. For get_vectype_for_scalar_type failure, don't
27597 free_data_ref if simd_lane_access.
27599 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27602 * tree.h (opts_for_fn): New inline function.
27603 (opt_for_fn): Define.
27604 * config/i386/i386.c (ix86_function_regparm): Use
27605 opt_for_fn (decl, optimize) instead of optimize.
27607 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
27609 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27610 for SYMBOL_REF in large memory model.
27612 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27614 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27615 and crypto support.
27616 (cortex-a57): Likewise.
27617 (cortex-a57.cortex-a53): Likewise.
27619 2014-02-06 Yury Gribov <y.gribov@samsung.com>
27620 Kugan Vivekanandarajah <kuganv@linaro.org>
27622 * config/arm/arm.c (arm_vector_alignment_reachable): Check
27624 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27626 2014-02-06 Richard Biener <rguenther@suse.de>
27628 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27629 set_loop_copy and initialize_original_copy_tables.
27631 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
27633 * config/aarch64/aarch64-simd.md
27634 (aarch64_ashr_simddi): Change QI to SI.
27636 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27637 Jakub Jelinek <jakub@redhat.com>
27639 PR middle-end/60013
27640 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27643 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27645 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27646 CODE_FOR_altivec_vpku[hw]um to
27647 CODE_FOR_altivec_vpku[hw]um_direct.
27648 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27649 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27650 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27651 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27653 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27655 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27656 generation for -maltivec=be.
27657 (altivec_vsumsws): Simplify redundant test.
27659 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27661 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27662 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27663 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27664 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27665 gen_altivec_vpkuwum.
27666 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27668 (altivec_vpks<VI_char>ss): Likewise.
27669 (altivec_vpks<VI_char>us): Likewise.
27670 (altivec_vpku<VI_char>us): Likewise.
27671 (altivec_vpku<VI_char>um): Likewise.
27672 (altivec_vpku<VI_char>um_direct): New (copy of
27673 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27675 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27676 target is little endian and -maltivec=be is not specified.
27677 (*altivec_vupkhs<VU_char>_direct): New (copy of
27678 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27679 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27680 target is little endian and -maltivec=be is not specified.
27681 (*altivec_vupkls<VU_char>_direct): New (copy of
27682 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27683 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27684 little endian and -maltivec=be is not specified.
27685 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27686 little endian and -maltivec=be is not specified.
27688 2014-02-05 Richard Henderson <rth@redhat.com>
27691 * combine-stack-adj.c: Revert r206943.
27692 * sched-int.h (struct deps_desc): Add last_args_size.
27693 * sched-deps.c (init_deps): Initialize it.
27694 (sched_analyze_insn): Add OUTPUT dependencies between insns that
27695 contain REG_ARGS_SIZE notes.
27697 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27699 * lto-cgraph.c (asm_nodes_output): Make global.
27700 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27701 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27702 (driver_handle_option): Handle OPT_fwpa.
27704 2014-02-05 Jakub Jelinek <jakub@redhat.com>
27707 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27708 a comment typo and formatting issue. If odr_hash hasn't been
27709 created, return vNULL and set *completep to false.
27711 PR middle-end/57499
27712 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27713 bb with no successors.
27715 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
27718 * doc/invoke.texi (-march): Clarify documentation for ARM.
27719 (-mtune): Likewise.
27722 2014-02-05 Richard Biener <rguenther@suse.de>
27724 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27725 when not vectorizing because of too many alias checks.
27726 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27727 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27729 2014-02-05 Nick Clifton <nickc@redhat.com>
27731 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27732 accept extended registers in any mode when compiling for the MN10300.
27734 2014-02-05 Yury Gribov <y.gribov@samsung.com>
27736 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27737 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27738 sanitization attributes.
27739 (can_inline_edge_p): Likewise.
27740 (sanitize_attrs_match_for_inline_p): New function.
27742 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27744 * ipa-prop.c (detect_type_change): Shor circuit testing of
27745 type changes on THIS pointer.
27747 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
27750 * config/pa/pa.c (legitimize_tls_address): Return original address
27751 if not passed a SYMBOL_REF rtx.
27752 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27754 (pa_emit_move_sequence): Simplify TLS source operands.
27755 (pa_legitimate_constant_p): Reject all TLS constants.
27756 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27757 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27759 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27761 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27762 groups when we know they are controlled by LTO.
27763 * varasm.c (default_binds_local_p_1): If object is in other partition,
27764 it will be resolved locally.
27766 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27768 * config/host-linux.c (linux_gt_pch_use_address): Don't
27769 use SSIZE_MAX because it is not always defined.
27771 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
27774 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27775 threshold for pseudo splitting.
27776 (update_ebb_live_info): Process call argument hard registers and
27777 hard registers from insn definition too.
27778 (max_small_class_regs_num): New constant.
27779 (inherit_in_ebb): Update live hard regs through EBBs. Update
27780 reloads_num only for small register classes. Don't split for
27783 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
27786 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27789 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27791 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27792 visibility is safe.
27794 2014-02-04 Marek Polacek <polacek@redhat.com>
27796 * gdbinit.in (pel): Define.
27798 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27800 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27803 2014-02-04 Richard Biener <rguenther@suse.de>
27806 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27807 in function context local.
27808 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27809 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27810 similar to LTO_imported_decl_ref.
27812 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27814 PR tree-optimization/60002
27815 * cgraphclones.c (build_function_decl_skip_args): Clear
27816 DECL_LANG_SPECIFIC.
27818 PR tree-optimization/60023
27819 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27820 false to gsi_replace.
27821 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27822 has been in some EH region and vec_stmt could throw, add
27823 vec_stmt into the same EH region.
27824 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27825 has no lhs, ignore it.
27826 * internal-fn.c (expand_MASK_LOAD): Likewise.
27829 * tree-inline.c (copy_forbidden): Fail for
27830 __attribute__((optimize (0))) functions.
27833 * omp-low.c (simd_clone_struct_copy): If from->inbranch
27834 is set, copy one less argument.
27835 (expand_simd_clones): Don't subtract clone_info->inbranch
27836 from simd_clone_struct_alloc argument.
27838 PR rtl-optimization/57915
27839 * recog.c (simplify_while_replacing): If all unary/binary/relational
27840 operation arguments are constant, attempt to simplify those.
27842 PR middle-end/59261
27843 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27844 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27846 2014-02-04 Richard Biener <rguenther@suse.de>
27848 PR tree-optimization/60012
27849 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27850 TBAA disambiguation to all DDRs.
27852 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27855 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27856 (LINK_SPEC): Use it for -shared, -shared-libgcc.
27858 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27861 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27863 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27865 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27866 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27868 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27871 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27872 to figure out targets of polymorphic calls with known decl.
27873 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27874 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27875 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27876 (get_polymorphic_call_info): ... here.
27877 (get_polymorphic_call_info_from_invariant): New function.
27879 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27881 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27882 lookup via vtable pointer; check for type consistency
27883 and turn inconsitent facts into UNREACHABLE.
27884 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27885 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27886 type inconsistent querries; return UNREACHABLE instead.
27888 2014-02-03 Richard Henderson <rth@twiddle.net>
27891 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27892 already processed this node.
27893 (normalize_one_pred_1): Pass along mark_set.
27894 (normalize_one_pred): Create and destroy a pointer_set_t.
27895 (normalize_one_pred_chain): Likewise.
27897 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
27899 PR gcov-profile/58602
27900 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27902 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27905 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
27906 -fno-devirtualize; try to devirtualize by the knowledge of
27907 virtual table pointer given by aggregate propagation.
27908 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27909 (ipa_print_node_jump_functions): Dump also offset that
27910 is relevant for polymorphic calls.
27911 (determine_known_aggregate_parts): Add arg_type parameter; use it
27912 instead of determining the type from pointer type.
27913 (ipa_compute_jump_functions_for_edge): Update call of
27914 determine_known_aggregate_parts.
27915 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
27916 (gimple_get_virt_method_for_binfo): ... here; simplify using
27917 vtable_pointer_value_to_vtable.
27918 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
27919 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
27920 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
27921 (vtable_pointer_value_to_vtable): Break out from ...; handle also
27923 (vtable_pointer_value_to_binfo): ... here.
27924 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27926 2014-02-03 Teresa Johnson <tejohnson@google.com>
27928 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27929 redef of outer loop index variable.
27931 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27935 * doc/extend.texi (Function Attributes): Typo.
27937 2014-02-03 Cong Hou <congh@google.com>
27939 PR tree-optimization/60000
27940 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27941 if the vectorized statement is a store. A store statement can only
27942 appear at the end of pattern statements.
27944 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27946 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27947 (ix86_option_override_internal): Default long double to 64-bit for
27948 32-bit Bionic and to 128-bit for 64-bit Bionic.
27950 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27951 TARGET_LONG_DOUBLE_128 is true.
27952 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27954 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27955 (mlong-double-64): Negate -mlong-double-128.
27956 (mlong-double-128): New option.
27958 * config/i386/i386-c.c (ix86_target_macros): Define
27959 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27961 * doc/invoke.texi: Document -mlong-double-128.
27963 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27965 PR rtl-optimization/60024
27966 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
27968 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
27970 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
27972 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27974 PR rtl-optimization/57662
27975 * sel-sched.c (code_motion_path_driver): Do not mark already not
27976 existing blocks in the visiting bitmap.
27978 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27980 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
27981 on the insn being emitted.
27983 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
27984 Will Deacon <will.deacon@arm.com>
27986 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
27988 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27990 * config/arm/arm-tables.opt: Regenerate.
27992 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27994 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
27995 for vector types other than V16QImode.
27996 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
27997 define_expand, and call altivec_expand_vec_perm_le when producing
27998 code with little endian element order.
27999 (*altivec_vperm_<mode>_internal): New insn having previous
28000 behavior of altivec_vperm_<mode>.
28001 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28002 altivec_expand_vec_perm_le when producing code with little endian
28004 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28005 behavior of altivec_vperm_<mode>_uns.
28007 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28009 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28010 (altivec_vsumsws): Add handling for -maltivec=be with a little
28012 (altivec_vsumsws_direct): New.
28013 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28014 gen_altivec_vsumsws.
28016 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28018 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28019 vtable_pointer_value_to_binfo): New functions.
28020 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28021 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28023 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28025 * config/nios2/nios2.md (load_got_register): Initialize GOT
28026 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28027 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28029 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28031 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28032 preserverd by passthrough, do not propagate the type.
28034 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28036 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28037 (mips_atomic_assign_expand_fenv): New function.
28038 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28040 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28042 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28043 (__builtin_mips_set_fcsr): Likewise.
28044 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28045 MIPS_USI_FTYPE_VOID.
28046 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28047 (mips16_expand_set_fcsr): Likewise.
28048 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28049 (mips16_set_fcsr_stub): Likewise.
28050 (mips16_get_fcsr_one_only_stub): New class.
28051 (mips16_set_fcsr_one_only_stub): Likewise.
28052 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28053 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28054 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28055 (hard_float): New availability predicate.
28056 (mips_builtins): Add get_fcsr and set_fcsr.
28057 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28058 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28059 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28060 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28061 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28064 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28066 * config/mips/mips.c (mips_one_only_stub): New class.
28067 (mips_need_mips16_rdhwr_p): Replace with...
28068 (mips16_rdhwr_stub): ...this new variable.
28069 (mips16_stub_call_address): New function.
28070 (mips16_rdhwr_one_only_stub): New class.
28071 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28072 (mips_output_mips16_rdhwr): Delete.
28073 (mips_finish_stub): New function.
28074 (mips_code_end): Use it to handle rdhwr stubs.
28076 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28079 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28080 when calculating size of integer atomic types.
28082 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28084 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28086 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28088 PR tree-optimization/60003
28089 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28090 * profile.c (branch_prob): Use gimple_call_builtin_p
28091 to check for BUILT_IN_SETJMP_RECEIVER.
28092 * tree-inline.c (copy_bb): Call notice_special_calls.
28094 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28097 * lra-constraints.c (process_alt_operands): Update reload_sum only
28100 2014-01-31 Richard Henderson <rth@redhat.com>
28102 PR middle-end/60004
28103 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28104 until after else_eh is processed.
28106 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28108 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28109 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28110 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28111 in smmintrin.h, remove them.
28112 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28113 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28114 * config/i386/i386.md (ROUND_SAE): Fix value.
28115 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28116 (const48_operand): New.
28117 * config/i386/subst.md (round), (round_expand): Use
28118 const_4_or_8_to_11_operand.
28119 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28121 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28123 * config/i386/constraints.md (Yk): Swap meaning with k.
28124 * config/i386/i386.md (movhi_internal): Change Yk to k.
28125 (movqi_internal): Ditto.
28126 (*k<logic><mode>): Ditto.
28129 (kandn<mode>): Ditto.
28130 (*<code>hi_1): Ditto.
28131 (*<code>qi_1): Ditto.
28132 (kxnor<mode>): Ditto.
28133 (kortestzhi): Ditto.
28134 (kortestchi): Ditto.
28136 (*one_cmplhi2_1): Ditto.
28137 (*one_cmplqi2_1): Ditto.
28138 * config/i386/sse.md (): Change k to Yk.
28139 (avx512f_load<mode>_mask): Ditto.
28140 (avx512f_blendm<mode>): Ditto.
28141 (avx512f_store<mode>_mask): Ditto.
28142 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28143 (avx512f_storedqu<mode>_mask): Ditto.
28144 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28146 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28147 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28148 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28149 (avx512f_maskcmp<mode>3): Ditto.
28150 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28151 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28152 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28153 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28154 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28155 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28156 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28157 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28158 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28159 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28160 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28161 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28162 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28163 (vec_extract_lo_<mode>_maskm): Ditto.
28164 (vec_extract_hi_<mode>_maskm): Ditto.
28165 (avx512f_vternlog<mode>_mask): Ditto.
28166 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28167 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28168 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28169 (avx512f_<code>v8div16qi2_mask): Ditto.
28170 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28171 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28172 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28173 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28174 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28175 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28176 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28177 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28178 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28179 (avx512cd_maskb_vec_dupv8di): Ditto.
28180 (avx512cd_maskw_vec_dupv16si): Ditto.
28181 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28182 (avx512f_vpermi2var<mode>3_mask): Ditto.
28183 (avx512f_vpermi2var<mode>3_mask): Ditto.
28184 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28185 (*avx512f_gathersi<mode>): Ditto.
28186 (*avx512f_gathersi<mode>_2): Ditto.
28187 (*avx512f_gatherdi<mode>): Ditto.
28188 (*avx512f_gatherdi<mode>_2): Ditto.
28189 (*avx512f_scattersi<mode>): Ditto.
28190 (*avx512f_scatterdi<mode>): Ditto.
28191 (avx512f_compress<mode>_mask): Ditto.
28192 (avx512f_compressstore<mode>_mask): Ditto.
28193 (avx512f_expand<mode>_mask): Ditto.
28194 * config/i386/subst.md (mask): Change k to Yk.
28195 (mask_scalar_merge): Ditto.
28198 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28200 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28202 2014-01-31 Richard Biener <rguenther@suse.de>
28204 PR middle-end/59990
28205 * builtins.c (fold_builtin_memory_op): Make sure to not
28206 use a floating-point mode or a boolean or enumeral type for
28207 the copy operation.
28209 2014-01-30 DJ Delorie <dj@redhat.com>
28211 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28212 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28213 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28214 whenever main() has an epilogue.
28216 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28218 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28219 unused variable "field".
28220 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28221 (vsx_mergeh_<mode>): Likewise.
28222 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28223 (altivec_vmrghh): Likewise.
28224 (altivec_vmrghw): Likewise.
28225 (altivec_vmrglb): Likewise.
28226 (altivec_vmrglh): Likewise.
28227 (altivec_vmrglw): Likewise.
28228 (altivec_vspltb): Add missing uses.
28229 (altivec_vsplth): Likewise.
28230 (altivec_vspltw): Likewise.
28231 (altivec_vspltsf): Likewise.
28233 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28236 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28237 frame related instructions.
28239 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28241 PR rtl-optimization/59959
28242 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28243 any reload of register whose subreg is invalid.
28245 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28247 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28248 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28249 Add missing return type - void.
28251 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28253 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28254 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28255 remove element index adjustment for endian (now handled in vsx.md
28257 (altivec_expand_vec_perm_const): Use
28258 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28259 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28260 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28261 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28262 define_expand and a new define_insn *altivec_vspltb_internal;
28263 adjust for -maltivec=be on a little endian target.
28264 (altivec_vspltb_direct): New.
28265 (altivec_vsplth): Divide into a define_expand and a new
28266 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28267 little endian target.
28268 (altivec_vsplth_direct): New.
28269 (altivec_vspltw): Divide into a define_expand and a new
28270 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28271 little endian target.
28272 (altivec_vspltw_direct): New.
28273 (altivec_vspltsf): Divide into a define_expand and a new
28274 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28275 a little endian target.
28277 2014-01-30 Richard Biener <rguenther@suse.de>
28279 PR tree-optimization/59993
28280 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28281 can propagate form the earlier stmt and avoid the transform
28282 when the intermediate result is needed.
28284 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28286 * README.Portability: Fix typo.
28288 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28290 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28291 comparison_operator with ordered_comparison_operator.
28293 2014-01-30 Nick Clifton <nickc@redhat.com>
28295 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28296 Rename to mn10300_store_multiple_regs.
28297 * config/mn10300/mn10300.c: Likewise.
28298 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28299 store_multiple_regs.
28300 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28301 Call mn10300_store_multiple_regs.
28303 2014-01-30 Nick Clifton <nickc@redhat.com>
28304 DJ Delorie <dj@redhat.com>
28306 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28307 %fp 2 to keep registers after it properly word-aligned.
28308 (rl78_alloc_physical_registers_umul): Handle the case where both
28309 input operands are the same.
28311 2014-01-30 Richard Biener <rguenther@suse.de>
28313 PR tree-optimization/59903
28314 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28317 2014-01-30 Jason Merrill <jason@redhat.com>
28320 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28323 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28325 2014-01-30 Richard Biener <rguenther@suse.de>
28327 PR tree-optimization/59951
28328 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28330 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28333 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28334 SFmode to DFmode case.
28336 2014-01-29 DJ Delorie <dj@redhat.com>
28338 * config/msp430/msp430.opt (-minrt): New.
28339 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28341 (ENDFILE_SPEC): Likewise.
28343 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28345 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28346 (estimate_function_body_sizes): Use it.
28348 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28351 * dwarf2out.c (is_cxx_auto): New.
28352 (is_base_type): Use it.
28353 (gen_type_die_with_usage): Likewise.
28355 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28357 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28358 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28359 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28360 -maltivec=be with LE targets.
28361 (vsx_mergeh_<mode>): Likewise.
28362 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28363 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28364 (altivec_vmrghb): Replace with define_expand and new
28365 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28366 (altivec_vmrghb_direct): New define_insn.
28367 (altivec_vmrghh): Replace with define_expand and new
28368 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28369 (altivec_vmrghh_direct): New define_insn.
28370 (altivec_vmrghw): Replace with define_expand and new
28371 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28372 (altivec_vmrghw_direct): New define_insn.
28373 (*altivec_vmrghsf): Adjust for endianness.
28374 (altivec_vmrglb): Replace with define_expand and new
28375 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28376 (altivec_vmrglb_direct): New define_insn.
28377 (altivec_vmrglh): Replace with define_expand and new
28378 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28379 (altivec_vmrglh_direct): New define_insn.
28380 (altivec_vmrglw): Replace with define_expand and new
28381 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28382 (altivec_vmrglw_direct): New define_insn.
28383 (*altivec_vmrglsf): Adjust for endianness.
28384 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28385 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28386 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28387 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28388 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28389 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28390 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28391 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28393 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28395 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28396 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28399 2014-01-29 Richard Biener <rguenther@suse.de>
28401 PR tree-optimization/58742
28402 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28403 associate_pointerplus_align.
28404 (associate_pointerplus_diff): New function.
28405 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28406 and associate_pointerplus_diff.
28408 2014-01-29 Richard Biener <rguenther@suse.de>
28410 * lto-streamer.h (LTO_major_version): Bump to 3.
28411 (LTO_minor_version): Reset to 0.
28413 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28415 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28416 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28417 (arm_file_start): Generate correct asm header for armv7ve.
28418 * config/arm/bpabi.h: Add multilib support for armv7ve.
28419 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28420 and cortex-a15 to armv7ve.
28421 * config/arm/t-aprofile: Add multilib support for armv7ve.
28422 * doc/invoke.texi: Document -march=armv7ve.
28424 2014-01-29 Richard Biener <rguenther@suse.de>
28426 PR tree-optimization/58742
28427 * tree-ssa-forwprop.c (associate_plusminus): Return true
28428 if we changed sth, defer EH cleanup to ...
28429 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28430 (simplify_mult): New function.
28432 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28434 PR middle-end/59917
28435 PR tree-optimization/59920
28436 * tree.c (build_common_builtin_nodes): Remove
28437 __builtin_setjmp_dispatcher initialization.
28438 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28439 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28440 instead of gsi_after_labels + manually skipping debug stmts.
28441 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28442 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28443 * tree-inline.c (copy_edges_for_bb): Remove
28444 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28445 argument. Ignore computed_goto_p stmts. Don't call
28446 make_abnormal_goto_edges. If a call might need abnormal edges
28447 for non-local gotos, see if it already has an edge to
28448 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28449 with true argument, don't do anything then, otherwise add
28450 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28451 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28453 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28454 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28455 (lower_stmt): Don't set data->calls_builtin_setjmp.
28456 (lower_builtin_setjmp): Adjust comment.
28457 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28458 * tree-cfg.c (found_computed_goto): Remove.
28459 (factor_computed_gotos): Remove.
28460 (make_goto_expr_edges): Return bool, true for computed gotos.
28461 Don't call make_abnormal_goto_edges.
28462 (build_gimple_cfg): Don't set found_computed_goto, don't call
28463 factor_computed_gotos.
28464 (computed_goto_p): No longer static.
28465 (make_blocks): Don't set found_computed_goto.
28466 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28467 (make_edges): If make_goto_expr_edges returns true, push bb
28468 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28469 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28470 vector. Record mapping between bbs and OpenMP regions if there
28471 are any, adjust make_gimple_omp_edges caller. Call
28472 handle_abnormal_edges.
28473 (make_abnormal_goto_edges): Remove.
28474 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28475 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28476 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28477 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28478 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28479 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28480 filling *region also set *region_idx to (*region)->entry->index.
28483 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28484 For REGs set ORIGINAL_REGNO.
28486 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28488 * doc/md.texi: Mention that a target shouldn't implement
28489 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28492 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28494 PR tree-optimization/59594
28495 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28496 a copy of the datarefs vector rather than the vector itself.
28498 2014-01-28 Jason Merrill <jason@redhat.com>
28501 * dwarf2out.c (auto_die): New static.
28502 (gen_type_die_with_usage): Handle C++1y 'auto'.
28503 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28506 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28509 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28510 (SPEC_X32): Likewise.
28511 (SPEC_64): Likewise.
28512 * config/i386/i386.c (ix86_option_override_internal): Turn off
28513 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28515 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28516 * config/i386/i386.h (TARGET_16BIT): New macro.
28517 (TARGET_16BIT_P): Likewise.
28518 * config/i386/i386.opt: Add m16.
28519 * doc/invoke.texi: Document -m16.
28521 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28523 PR preprocessor/59935
28524 * input.c (location_get_source_line): Bail out on when line number
28525 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28527 2014-01-28 Richard Biener <rguenther@suse.de>
28529 PR tree-optimization/58742
28530 * tree-ssa-forwprop.c (associate_plusminus): Handle
28531 pointer subtraction of the form (T)(P + A) - (T)P.
28533 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28535 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28538 2014-01-28 Richard Biener <rguenther@suse.de>
28541 2014-01-28 Richard Biener <rguenther@suse.de>
28543 PR rtl-optimization/45364
28544 PR rtl-optimization/59890
28545 * var-tracking.c (local_get_addr_clear_given_value): Handle
28546 already cleared slot.
28547 (val_reset): Handle not allocated local_get_addr_cache.
28548 (vt_find_locations): Use post-order on the inverted CFG.
28550 2014-01-28 Richard Biener <rguenther@suse.de>
28552 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28554 2014-01-28 Richard Biener <rguenther@suse.de>
28556 PR rtl-optimization/45364
28557 PR rtl-optimization/59890
28558 * var-tracking.c (local_get_addr_clear_given_value): Handle
28559 already cleared slot.
28560 (val_reset): Handle not allocated local_get_addr_cache.
28561 (vt_find_locations): Use post-order on the inverted CFG.
28563 2014-01-28 Alan Modra <amodra@gmail.com>
28565 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28566 * configure.ac <recursive call for build != host>: Define
28567 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28568 and LD_FOR_BUILD too.
28569 * configure: Regenerate.
28571 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
28573 * config/i386/i386.c (get_builtin_code_for_version): Separate
28574 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28575 Broadwell from Haswell.
28577 2014-01-27 Steve Ellcey <sellcey@mips.com>
28579 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28580 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28581 * config/mips/mips.c (mips_option_override): Change setting
28583 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28584 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28585 Change from Mask to Var.
28587 2014-01-27 Jeff Law <law@redhat.com>
28589 * ipa-inline.c (inline_small_functions): Fix typo.
28591 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
28593 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28594 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28595 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28596 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28597 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28598 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28599 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28600 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28601 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28602 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28603 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28604 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28605 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28606 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28607 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28608 (_mm512_storeu_epi64): Ditto.
28609 (_mm512_cmpge_epi32_mask): Ditto.
28610 (_mm512_cmpge_epu32_mask): Ditto.
28611 (_mm512_cmpge_epi64_mask): Ditto.
28612 (_mm512_cmpge_epu64_mask): Ditto.
28613 (_mm512_cmple_epi32_mask): Ditto.
28614 (_mm512_cmple_epu32_mask): Ditto.
28615 (_mm512_cmple_epi64_mask): Ditto.
28616 (_mm512_cmple_epu64_mask): Ditto.
28617 (_mm512_cmplt_epi32_mask): Ditto.
28618 (_mm512_cmplt_epu32_mask): Ditto.
28619 (_mm512_cmplt_epi64_mask): Ditto.
28620 (_mm512_cmplt_epu64_mask): Ditto.
28621 (_mm512_cmpneq_epi32_mask): Ditto.
28622 (_mm512_cmpneq_epu32_mask): Ditto.
28623 (_mm512_cmpneq_epi64_mask): Ditto.
28624 (_mm512_cmpneq_epu64_mask): Ditto.
28625 (_mm512_expand_pd): Ditto.
28626 (_mm512_expand_ps): Ditto.
28627 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28628 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28629 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28630 * config/i386/i386.c (ix86_builtins): Add
28631 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28632 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28633 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28634 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28635 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28636 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28637 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28638 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28639 IX86_BUILTIN_PMOVUSQW512_MEM.
28640 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28641 __builtin_ia32_pmovsqd512mem_mask,
28642 __builtin_ia32_pmovqd512mem_mask,
28643 __builtin_ia32_pmovusqw512mem_mask,
28644 __builtin_ia32_pmovsqw512mem_mask,
28645 __builtin_ia32_pmovqw512mem_mask,
28646 __builtin_ia32_pmovusdw512mem_mask,
28647 __builtin_ia32_pmovsdw512mem_mask,
28648 __builtin_ia32_pmovdw512mem_mask,
28649 __builtin_ia32_pmovqb512mem_mask,
28650 __builtin_ia32_pmovusqb512mem_mask,
28651 __builtin_ia32_pmovsqb512mem_mask,
28652 __builtin_ia32_pmovusdb512mem_mask,
28653 __builtin_ia32_pmovsdb512mem_mask,
28654 __builtin_ia32_pmovdb512mem_mask.
28655 (bdesc_args): Add __builtin_ia32_expanddf512,
28656 __builtin_ia32_expandsf512.
28657 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28658 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28659 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28660 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28661 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28662 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28663 (avx512f_<code>v8div16qi2_mask_store): This.
28664 (avx512f_expand<mode>): New.
28666 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
28668 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28670 (_mm512_mask_prefetch_i64gather_pd): Ditto.
28671 (_mm512_prefetch_i32scatter_pd): Ditto.
28672 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28673 (_mm512_prefetch_i64scatter_pd): Ditto.
28674 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28675 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28676 (_mm512_mask_prefetch_i64gather_ps): Ditto.
28677 (_mm512_prefetch_i32scatter_ps): Ditto.
28678 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28679 (_mm512_prefetch_i64scatter_ps): Ditto.
28680 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28681 * config/i386/i386-builtin-types.def: Define
28682 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28683 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28684 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28685 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28686 IX86_BUILTIN_SCATTERPFQPD.
28687 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28688 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28689 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28690 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28691 __builtin_ia32_scatterpfqps.
28692 (ix86_expand_builtin): Expand new built-ins.
28693 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28694 fix memory access data type.
28695 (*avx512pf_gatherpf<mode>_mask): Ditto.
28696 (*avx512pf_gatherpf<mode>): Ditto.
28697 (avx512pf_scatterpf<mode>): Ditto.
28698 (*avx512pf_scatterpf<mode>_mask): Ditto.
28699 (*avx512pf_scatterpf<mode>): Ditto.
28700 (GATHER_SCATTER_SF_MEM_MODE): New.
28701 (avx512pf_gatherpf<mode>df): Ditto.
28702 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28703 (*avx512pf_scatterpf<mode>df): Ditto.
28705 2014-01-27 Jakub Jelinek <jakub@redhat.com>
28708 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28709 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28712 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28714 * common/config/arm/arm-common.c
28715 (arm_rewrite_mcpu): Handle multiple names.
28717 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28719 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28721 * gimple-builder.h (create_gimple_tmp): Delete.
28723 2014-01-27 Christian Bruel <christian.bruel@st.com>
28725 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28728 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
28730 * config/pa/pa.md (call): Generate indirect long calls to non-local
28731 functions when outputing 32-bit code.
28732 (call_value): Likewise except for special call to buggy powf function.
28734 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28735 portable runtime and PIC indirect calls.
28736 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28737 and PIC call sequences. Use ldo instead of blr to set return register
28738 in PIC call sequence.
28740 2014-01-25 Walter Lee <walt@tilera.com>
28742 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28743 avoid clobbering a live register.
28745 2014-01-25 Walter Lee <walt@tilera.com>
28747 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28748 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28749 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28750 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28752 2014-01-25 Walter Lee <walt@tilera.com>
28754 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28755 arguments on even registers.
28756 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28758 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28759 (BIGGEST_ALIGNMENT): Ditto.
28760 (BIGGEST_FIELD_ALIGNMENT): Ditto.
28762 2014-01-25 Walter Lee <walt@tilera.com>
28764 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28765 insns before bundling.
28766 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28768 2014-01-25 Walter Lee <walt@tilera.com>
28770 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28771 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28772 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28774 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28776 * config/mips/constraints.md (kl): Delete.
28777 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28778 define expands, using...
28779 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28780 instructions for MIPS16.
28781 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28782 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28784 2014-01-25 Walter Lee <walt@tilera.com>
28786 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28790 2014-01-25 Walter Lee <walt@tilera.com>
28792 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28793 (TARGET_EXPAND_TO_RTL_HOOK): Define.
28795 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28797 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28800 2014-01-25 Jakub Jelinek <jakub@redhat.com>
28802 * print-rtl.c (in_call_function_usage): New var.
28803 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28804 EXPR_LIST mode as mode and not as reg note name.
28806 PR middle-end/59561
28807 * cfgloopmanip.c (copy_loop_info): If
28808 loop->warned_aggressive_loop_optimizations, make sure
28809 the flag is set in target loop too.
28811 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
28813 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28815 * builtins.def: Likewise.
28816 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28817 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28818 * ira.c (ira_setup_eliminable_regset): Likewise.
28819 * omp-low.c (gate_expand_omp): Likewise.
28820 (execute_lower_omp): Likewise.
28821 (diagnose_sb_0): Likewise.
28822 (gate_diagnose_omp_blocks): Likewise.
28823 (simd_clone_clauses_extract): Likewise.
28826 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28828 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28829 correction for little endian...
28830 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28833 2014-01-24 Jeff Law <law@redhat.com>
28835 PR tree-optimization/59919
28836 * tree-vrp.c (find_assert_locations_1): Do not register asserts
28837 for non-returning calls.
28839 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
28841 * common/config/aarch64/aarch64-common.c
28842 (aarch64_rewrite_mcpu): Handle multiple names.
28843 * config/aarch64/aarch64.h
28844 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28846 2014-01-24 Dodji Seketeli <dodji@redhat.com>
28848 * input.c (add_file_to_cache_tab): Handle the case where fopen
28851 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
28854 * config/i386/i386.md (pushsf splitter): Get stack adjustment
28855 from push operand if code of push isn't PRE_DEC.
28857 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28860 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28861 -mquad-memory-atomic. Update -mquad-memory documentation to say
28862 it is only used for non-atomic loads/stores.
28864 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28865 -mquad-memory or -mquad-memory-atomic switches.
28867 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28868 -mquad-memory-atomic to ISA 2.07 support.
28870 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28871 to separate support of normal quad word memory operations (ldq, stq)
28872 from the atomic quad word memory operations.
28874 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28875 support to separate non-atomic quad word operations from atomic
28876 quad word operations. Disable non-atomic quad word operations in
28877 little endian mode so that we don't have to swap words after the
28878 load and before the store.
28879 (quad_load_store_p): Add comment about atomic quad word support.
28880 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28881 options printed with -mdebug=reg.
28883 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28884 -mquad-memory-atomic as the test for whether we have quad word
28885 atomic instructions.
28886 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28887 or -mp8-vector are used, allow byte/half-word atomic operations.
28889 * config/rs6000/sync.md (load_lockedti): Insure that the address
28890 is a proper indexed or indirect address for the lqarx instruction.
28891 On little endian systems, swap the hi/lo registers after the lqarx
28893 (load_lockedpti): Use indexed_or_indirect_operand predicate to
28894 insure the address is valid for the lqarx instruction.
28895 (store_conditionalti): Insure that the address is a proper indexed
28896 or indirect address for the stqcrx. instruction. On little endian
28897 systems, swap the hi/lo registers before doing the stqcrx.
28899 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28900 insure the address is valid for the stqcrx. instruction.
28902 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28903 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
28904 type of quad memory support is available.
28906 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
28908 PR regression/59915
28909 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
28910 there is a danger of looping.
28912 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
28914 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28915 force flag_ira_loop_pressure if set via command line.
28917 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28919 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
28920 (ashr_simd): New builtin handling DI mode.
28921 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
28922 (aarch64_sshr_simddi): New match pattern.
28923 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
28924 (vshrd_n_s64): Likewise.
28925 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28927 2014-01-23 Nick Clifton <nickc@redhat.com>
28929 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28930 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28931 favour of mcu specific scripts.
28932 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28935 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28936 Alex Velenko <Alex.Velenko@arm.com>
28938 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28939 (vaddv_s16): Likewise.
28940 (vaddv_s32): Likewise.
28941 (vaddv_u8): Likewise.
28942 (vaddv_u16): Likewise.
28943 (vaddv_u32): Likewise.
28944 (vaddvq_s8): Likewise.
28945 (vaddvq_s16): Likewise.
28946 (vaddvq_s32): Likewise.
28947 (vaddvq_s64): Likewise.
28948 (vaddvq_u8): Likewise.
28949 (vaddvq_u16): Likewise.
28950 (vaddvq_u32): Likewise.
28951 (vaddvq_u64): Likewise.
28952 (vaddv_f32): Likewise.
28953 (vaddvq_f32): Likewise.
28954 (vaddvq_f64): Likewise.
28955 (vmaxv_f32): Likewise.
28956 (vmaxv_s8): Likewise.
28957 (vmaxv_s16): Likewise.
28958 (vmaxv_s32): Likewise.
28959 (vmaxv_u8): Likewise.
28960 (vmaxv_u16): Likewise.
28961 (vmaxv_u32): Likewise.
28962 (vmaxvq_f32): Likewise.
28963 (vmaxvq_f64): Likewise.
28964 (vmaxvq_s8): Likewise.
28965 (vmaxvq_s16): Likewise.
28966 (vmaxvq_s32): Likewise.
28967 (vmaxvq_u8): Likewise.
28968 (vmaxvq_u16): Likewise.
28969 (vmaxvq_u32): Likewise.
28970 (vmaxnmv_f32): Likewise.
28971 (vmaxnmvq_f32): Likewise.
28972 (vmaxnmvq_f64): Likewise.
28973 (vminv_f32): Likewise.
28974 (vminv_s8): Likewise.
28975 (vminv_s16): Likewise.
28976 (vminv_s32): Likewise.
28977 (vminv_u8): Likewise.
28978 (vminv_u16): Likewise.
28979 (vminv_u32): Likewise.
28980 (vminvq_f32): Likewise.
28981 (vminvq_f64): Likewise.
28982 (vminvq_s8): Likewise.
28983 (vminvq_s16): Likewise.
28984 (vminvq_s32): Likewise.
28985 (vminvq_u8): Likewise.
28986 (vminvq_u16): Likewise.
28987 (vminvq_u32): Likewise.
28988 (vminnmv_f32): Likewise.
28989 (vminnmvq_f32): Likewise.
28990 (vminnmvq_f64): Likewise.
28992 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28994 * config/aarch64/aarch64-simd.md
28995 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
28996 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
28997 (*aarch64_mul3_elt<mode>): Likewise.
28998 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
28999 (*aarch64_mul3_elt_to_64v2df): Likewise.
29000 (*aarch64_mla_elt<mode>): Likewise.
29001 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29002 (*aarch64_mls_elt<mode>): Likewise.
29003 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29004 (*aarch64_fma4_elt<mode>): Likewise.
29005 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29006 (*aarch64_fma4_elt_to_64v2df): Likewise.
29007 (*aarch64_fnma4_elt<mode>): Likewise.
29008 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29009 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29010 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29011 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29012 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29013 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29014 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29015 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29016 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29018 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29020 * config/aarch64/aarch64-simd.md
29021 (aarch64_be_checked_get_lane<mode>): New define_expand.
29022 * config/aarch64/aarch64-simd-builtins.def
29023 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29024 New builtin definition.
29025 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29026 Use new safe be builtin.
29028 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29030 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29032 (aarch64_be_st1<mode>): Likewise.
29033 (aarch_ld1<VALL:mode>): Define_expand modified.
29034 (aarch_st1<VALL:mode>): Likewise.
29035 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29036 (UNSPEC_ST1): Likewise.
29038 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29040 * config/microblaze/microblaze.md: Add trap insn and attribute
29042 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29044 PR preprocessor/58580
29045 * input.h (location_get_source_line): Take an additional line_size
29047 (void diagnostics_file_cache_fini): Declare new function.
29048 * input.c (struct fcache): New type.
29049 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29050 New static constants.
29051 (diagnostic_file_cache_init, total_lines_num)
29052 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29053 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29054 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29055 (get_next_line, read_next_line, goto_next_line, read_line_num):
29056 New static function definitions.
29057 (diagnostic_file_cache_fini): New function.
29058 (location_get_source_line): Take an additional output line_len
29059 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29061 * diagnostic.c (diagnostic_finish): Call
29062 diagnostic_file_cache_fini.
29063 (adjust_line): Take an additional input parameter for the length
29064 of the line, rather than calculating it with strlen.
29065 (diagnostic_show_locus): Adjust the use of
29066 location_get_source_line and adjust_line with respect to their new
29067 signature. While displaying a line now, do not stop at the first
29068 null byte. Rather, display the zero byte as a space and keep
29069 going until we reach the size of the line.
29070 * Makefile.in: Add vec.o to OBJS-libcommon
29072 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29073 Ilya Tocar <ilya.tocar@intel.com>
29075 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29076 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29077 (__builtin_ia32_kmov16): Ditto.
29078 * config/i386/i386.md (UNSPEC_KMOV): New.
29081 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29083 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29084 (_mm512_storeu_si512): Ditto.
29086 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29089 * rtl.h (get_referenced_operands): Declare.
29090 * recog.c (get_referenced_operands): New function.
29091 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29092 operands have been referenced when recording LO_SUM references.
29094 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29096 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29098 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29100 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29101 Enable for generic and recent AMD targets.
29103 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29105 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29106 ARG_SIZE note when adjustment was eliminated.
29108 2014-01-22 Jeff Law <law@redhat.com>
29110 PR tree-optimization/59597
29111 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29112 in file. Accept new argument REGISTERING and use it to modify
29113 dump output appropriately.
29114 (register_jump_thread): Corresponding changes.
29115 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29116 thread paths involving joiner blocks. Add code to dump cancelled
29117 jump threading paths.
29119 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29121 PR rtl-optimization/59477
29122 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29123 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29125 2014-01-22 Tom Tromey <tromey@redhat.com>
29127 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29129 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29131 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29133 PR rtl-optimization/59896
29134 * lra-constraints.c (process_alt_operands): Check unused note for
29135 matched operands of insn with no output reloads.
29137 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29139 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29140 (mips_move_from_gpr_cost): Likewise.
29142 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29144 PR rtl-optimization/59858
29145 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29146 ira_class_hard_regs_num.
29147 (process_alt_operands): Increase reject for dying matched operand.
29149 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29152 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29153 smaller than size, perform several stores or loads and stores
29154 at dst + count - size to store or copy all of size bytes, rather
29155 than just last modesize bytes.
29157 2014-01-20 DJ Delorie <dj@redhat.com>
29159 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29160 that CLOBBERs are REGs before propogating their values.
29162 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29164 PR middle-end/59789
29165 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29166 (cgraph_inline_failed_type): New function.
29167 * cgraph.h (DEFCIFCODE): Add type.
29168 (cgraph_inline_failed_type_t): New enum.
29169 (cgraph_inline_failed_type): New prototype.
29170 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29171 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29172 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29173 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29174 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29175 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29176 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29177 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29178 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29179 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29180 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29181 OPTIMIZATION_MISMATCH.
29182 * tree-inline.c (expand_call_inline): Emit errors during
29183 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29185 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29188 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29189 mode attribute in insn output.
29191 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29193 * output.h (output_constant): Delete.
29194 * varasm.c (output_constant): Make private.
29196 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29198 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29200 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29202 PR middle-end/59860
29203 * tree.h (fold_builtin_strcat): New prototype.
29204 * builtins.c (fold_builtin_strcat): No longer static. Add len
29205 argument, if non-NULL, don't call c_strlen. Optimize
29206 directly into __builtin_memcpy instead of __builtin_strcpy.
29207 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29208 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29210 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29212 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29213 for SImode_address_operand operands, having only a REG argument.
29215 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29217 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29218 loader name using mbig-endian.
29219 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29221 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29223 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29224 (-mtune): Likewise.
29227 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29229 * config/aarch64/aarch64-protos.h
29230 (aarch64_cannot_change_mode_class_ptr): Declare.
29231 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29232 aarch64_cannot_change_mode_class_ptr): New.
29233 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29234 backend hook aarch64_cannot_change_mode_class.
29236 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29238 * common/config/aarch64/aarch64-common.c
29239 (aarch64_handle_option): Don't handle any option order logic here.
29240 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29241 selected_cpu, warn on architecture version mismatch.
29242 (aarch64_override_options): Fix parsing order for option strings.
29244 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29245 Iain Sandoe <iain@codesourcery.com>
29248 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29249 warning. Amend comment to reflect current functionality.
29251 2014-01-20 Richard Biener <rguenther@suse.de>
29253 PR middle-end/59860
29254 * builtins.c (fold_builtin_strcat): Remove case better handled
29255 by tree-ssa-strlen.c.
29257 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29259 * config/aarch64/aarch64.opt
29260 (mcpu, march, mtune): Make case-insensitive.
29262 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29265 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29266 if operands[1] is a REG or ZERO_EXTEND of a REG.
29268 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29270 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29272 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29274 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29275 long non-pic millicode calls.
29277 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29279 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29281 2014-01-19 Kito Cheng <kito@0xlab.org>
29283 * builtins.c (expand_movstr): Check movstr expand done or fail.
29285 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29286 H.J. Lu <hongjiu.lu@intel.com>
29289 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29290 to DImode for zero-extended addresses.
29292 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29294 PR rtl-optimization/57763
29295 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29296 on the new indirect jump_insn and increment LABEL_NUSES (label).
29298 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29302 * config.gcc (x86_archs): New variable.
29303 (x86_64_archs): Likewise.
29304 (x86_cpus): Likewise.
29305 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29306 --with-arch/--with-cpu= options.
29307 Support --with-arch=/--with-cpu={nehalem,westmere,
29308 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29310 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29312 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29313 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29315 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29317 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29319 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29322 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29323 clear cpp_get_options (parse_in)->warn_unused_macros for
29324 ix86_target_macros_internal with cpp_define.
29326 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29328 * jump.c (delete_related_insns): Keep (use (insn))s.
29329 * reorg.c (redundant_insn): Check for barriers too.
29331 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29333 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29335 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29337 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29338 call to $$dyncall when TARGET_LONG_CALLS is true.
29340 2014-01-17 Jeff Law <law@redhat.com>
29342 * ree.c (combine_set_extension): Temporarily disable test for
29343 changing number of hard registers.
29345 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29347 PR middle-end/58125
29348 * ipa-inline-analysis.c (inline_free_summary):
29349 Do not free summary of aliases.
29351 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29353 PR middle-end/59706
29354 * gimplify.c (gimplify_expr): Use create_tmp_var
29355 instead of create_tmp_var_raw. If cond doesn't have
29356 integral type, don't add the IFN_ANNOTATE builtin at all.
29358 2014-01-17 Martin Jambor <mjambor@suse.cz>
29361 * ipa-cp.c (prev_edge_clone): New variable.
29362 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29363 Also resize prev_edge_clone vector.
29364 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29365 (ipcp_edge_removal_hook): New function.
29366 (ipcp_driver): Register ipcp_edge_removal_hook.
29368 2014-01-17 Andrew Pinski <apinski@cavium.com>
29369 Steve Ellcey <sellcey@mips.com>
29372 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29375 2014-01-17 Jeff Law <law@redhat.com>
29377 PR middle-end/57904
29378 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29379 so that pass_ccp runs first.
29381 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29383 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29384 (ix86_adjust_cost): Use !TARGET_XXX.
29385 (do_reorder_for_imul): Likewise.
29386 (swap_top_of_ready_list): Likewise.
29387 (ix86_sched_reorder): Likewise.
29389 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29391 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29392 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29393 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29394 (intel_memset): New. Duplicate slm_memset.
29395 (intel_cost): New. Duplicate slm_cost.
29396 (m_INTEL): New macro.
29397 (processor_target_table): Add "intel".
29398 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29399 with PROCESSOR_INTEL for "intel".
29400 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29401 PROCESSOR_SILVERMONT.
29402 (ix86_issue_rate): Likewise.
29403 (ix86_adjust_cost): Likewise.
29404 (ia32_multipass_dfa_lookahead): Likewise.
29405 (swap_top_of_ready_list): Likewise.
29406 (ix86_sched_reorder): Likewise.
29407 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29408 instead of TARGET_OPT_AGU.
29409 * config/i386/i386.h (TARGET_INTEL): New.
29410 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29411 (processor_type): Add PROCESSOR_INTEL.
29412 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29413 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29415 2014-01-17 Marek Polacek <polacek@redhat.com>
29418 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29421 2014-01-17 Richard Biener <rguenther@suse.de>
29423 PR tree-optimization/46590
29424 * opts.c (default_options_table): Add entries for
29425 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29426 all enabled at -O1 but not for -Og.
29427 * common.opt (fbranch-count-reg): Remove Init(1).
29428 (fmove-loop-invariants): Likewise.
29429 (ftree-pta): Likewise.
29431 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29433 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29434 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29435 decls to at least the GCC 4.8 used alignments.
29438 * tree-nested.c (convert_nonlocal_reference_stmt,
29439 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29440 of GIMPLE_BIND stmts, adjust associated decls.
29442 2014-01-17 Richard Biener <rguenther@suse.de>
29444 PR tree-optimization/46590
29445 * vec.h (vec<>::bseach): New member function implementing
29446 binary search according to C89 bsearch.
29447 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29448 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29449 bitmap pointer again. Make accesses_in_loop a flat array.
29450 (mem_ref_obstack): New global.
29451 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29452 (mark_ref_stored): Likewise.
29453 (ref_indep_loop_p_2): Likewise.
29454 (set_ref_stored_in_loop): New helper function.
29455 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29456 (memref_free): Adjust.
29457 (record_mem_ref_loc): Simplify.
29458 (gather_mem_refs_stmt): Adjust.
29459 (sort_locs_in_loop_postorder_cmp): New function.
29460 (analyze_memory_references): Sort accesses_in_loop after
29461 loop postorder number.
29462 (find_ref_loc_in_loop_cmp): New function.
29463 (for_all_locs_in_loop): Find relevant cluster of locs in
29464 accesses_in_loop and iterate without recursion.
29465 (execute_sm): Avoid uninit warning.
29466 (struct ref_always_accessed): Simplify.
29467 (ref_always_accessed::operator ()): Likewise.
29468 (ref_always_accessed_p): Likewise.
29469 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29470 loop postorder numbers here.
29471 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29474 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29477 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29478 on decls for which assemble_alias has been called.
29480 2014-01-17 Nick Clifton <nickc@redhat.com>
29482 * config/msp430/msp430.opt: (mcpu): New option.
29483 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29484 (msp430_option_override): Parse target_cpu. If the MCU name
29485 matches a generic string, clear target_mcu.
29486 (msp430_attr): Allow numeric interrupt values up to 63.
29487 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29488 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29490 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29492 * config/msp430/msp430.md (popm): Use %J rather than %I.
29493 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29494 (addhi_cy_i): Use immediate_operand for operand 2.
29495 * doc/invoke.texi: Document -mcpu option.
29497 2014-01-17 Richard Biener <rguenther@suse.de>
29499 PR rtl-optimization/38518
29500 * df.h (df_analyze_loop): Declare.
29501 * df-core.c: Include cfgloop.h.
29502 (df_analyze_1): Split out main part of df_analyze.
29503 (df_analyze): Adjust.
29504 (loop_inverted_post_order_compute): New function.
29505 (loop_post_order_compute): Likewise.
29506 (df_analyze_loop): New function avoiding whole-function
29507 postorder computes.
29508 * loop-invariant.c (find_defs): Use df_analyze_loop.
29509 (find_invariants): Adjust.
29510 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29512 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29514 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29515 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29517 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29519 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29520 traversal when removing references.
29522 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29525 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29527 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29529 PR middle-end/56791
29530 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29531 pushing a reload for an autoinc when we had previously reloaded an
29532 inner part of the address.
29534 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29536 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29538 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29539 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29540 when not giving up or versioning for alias only because of
29542 (vect_analyze_data_ref_dependences): Set to true.
29543 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29545 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29546 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29549 PR middle-end/58344
29550 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29553 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29554 operand 0 predicate for gathers, use a new pseudo as subtarget.
29556 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29558 PR middle-end/59609
29559 * lra-constraints.c (process_alt_operands): Add printing debug info.
29560 Check absence of input/output reloads for matched operands too.
29562 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29564 PR rtl-optimization/59835
29565 * ira.c (ira_init_register_move_cost): Increase cost for
29568 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29570 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29572 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
29575 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29576 non-register objects. Use gen_(high/low)part more consistently.
29579 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29582 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29583 endian support, remove tests for WORDS_BIG_ENDIAN.
29584 (p8_mfvsrd_3_<mode>): Likewise.
29585 (reload_gpr_from_vsx<mode>): Likewise.
29586 (reload_gpr_from_vsxsf): Likewise.
29587 (p8_mfvsrd_4_disf): Likewise.
29589 2014-01-16 Richard Biener <rguenther@suse.de>
29591 PR rtl-optimization/46590
29592 * lcm.c (compute_antinout_edge): Use postorder iteration.
29593 (compute_laterin): Use inverted postorder iteration.
29595 2014-01-16 Nick Clifton <nickc@redhat.com>
29597 PR middle-end/28865
29598 * varasm.c (output_constant): Return the number of bytes actually
29600 (output_constructor_array_range): Update the field size with the
29601 number of bytes emitted by output_constant.
29602 (output_constructor_regular_field): Likewise. Also do not
29603 complain if the total number of bytes emitted is now greater
29604 than the expected fieldpos.
29605 * output.h (output_constant): Update prototype and descriptive comment.
29607 2014-01-16 Marek Polacek <polacek@redhat.com>
29609 PR middle-end/59827
29610 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29611 it is error_mark_node.
29613 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
29615 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29616 VALID_AVX256_REG_OR_OI_MODE.
29618 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
29620 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29621 current procedure should be profiled.
29623 2014-01-15 Andrew Pinski <apinski@cavium.com>
29625 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29626 of moving from/to the STACK_REG register class.
29628 2014-01-15 Richard Henderson <rth@redhat.com>
29631 * reginfo.c (global_regs_decl): Globalize.
29632 * rtl.h (global_regs_decl): Declare.
29633 * ira.c (do_reload): Diagnose frame_pointer_needed and it
29634 reserved via global_regs.
29636 2014-01-15 Teresa Johnson <tejohnson@google.com>
29638 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29640 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
29642 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29643 and vmulosh rather than call gen_vec_widen_smult_*.
29644 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29645 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29646 (vec_widen_smult_even_v16qi): Likewise.
29647 (vec_widen_umult_even_v8hi): Likewise.
29648 (vec_widen_smult_even_v8hi): Likewise.
29649 (vec_widen_umult_odd_v16qi): Likewise.
29650 (vec_widen_smult_odd_v16qi): Likewise.
29651 (vec_widen_umult_odd_v8hi): Likewise.
29652 (vec_widen_smult_odd_v8hi): Likewise.
29653 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29654 vmuloub rather than call gen_vec_widen_umult_*.
29655 (vec_widen_umult_lo_v16qi): Likewise.
29656 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29657 vmulosb rather than call gen_vec_widen_smult_*.
29658 (vec_widen_smult_lo_v16qi): Likewise.
29659 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29660 rather than call gen_vec_widen_umult_*.
29661 (vec_widen_umult_lo_v8hi): Likewise.
29662 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29663 rather than call gen_vec_widen_smult_*.
29664 (vec_widen_smult_lo_v8hi): Likewise.
29666 2014-01-15 Jeff Law <law@redhat.com>
29668 PR tree-optimization/59747
29669 * ree.c (find_and_remove_re): Properly handle case where a second
29670 eliminated extension requires widening a copy created for elimination
29671 of a prior extension.
29672 (combine_set_extension): Ensure that the number of hard regs needed
29673 for a destination register does not change when we widen it.
29675 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29677 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29678 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29679 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29680 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29681 (avr-*-rtems*): Likewise.
29682 (bfin*-rtems*): Likewise.
29683 (moxie-*-rtems*): Likewise.
29684 (h8300-*-rtems*): Likewise.
29685 (i[34567]86-*-rtems*): Likewise.
29686 (lm32-*-rtems*): Likewise.
29687 (m32r-*-rtems*): Likewise.
29688 (m68k-*-rtems*): Likewise.
29689 (microblaze*-*-rtems*): Likewise.
29690 (mips*-*-rtems*): Likewise.
29691 (powerpc-*-rtems*): Likewise.
29692 (sh-*-rtems*): Likewise.
29693 (sparc-*-rtems*): Likewise.
29694 (sparc64-*-rtems*): Likewise.
29695 (v850-*-rtems*): Likewise.
29696 (m32c-*-rtems*): Likewise.
29698 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
29700 PR rtl-optimization/59511
29701 * ira.c (ira_init_register_move_cost): Use memory costs for some
29702 cases of register move cost calculations.
29703 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29704 instead of BB frequency.
29705 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29706 * lra-assigns.c (find_hard_regno_for): Ditto.
29708 2014-01-15 Richard Biener <rguenther@suse.de>
29710 PR tree-optimization/59822
29711 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29712 (vectorizable_load): Use it to hoist defs of uses of invariant
29713 loads out of the loop.
29715 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
29716 Kugan Vivekanandarajah <kuganv@linaro.org>
29719 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29722 2014-01-15 Richard Biener <rguenther@suse.de>
29724 PR rtl-optimization/59802
29725 * lcm.c (compute_available): Use inverted postorder to seed
29726 the initial worklist.
29728 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29731 * config/s390/s390.c (s390_preferred_reload_class): Don't return
29732 ADDR_REGS for invalid symrefs in non-PIC code.
29734 2014-01-15 Jakub Jelinek <jakub@redhat.com>
29737 * builtins.c (determine_block_size): Initialize *probable_max_size
29738 even if len_rtx is CONST_INT.
29740 2014-01-14 Andrew Pinski <apinski@cavium.com>
29742 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29743 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29744 (cortexa53_tunings): Likewise.
29745 (aarch64_sched_issue_rate): New function.
29746 (TARGET_SCHED_ISSUE_RATE): Define.
29748 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29750 * ira-costs.c (find_costs_and_classes): Add missed
29751 ira_init_register_move_cost_if_necessary.
29753 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29756 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29758 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
29761 * config/i386/i386.c (type_natural_mode): Add a bool parameter
29762 to indicate if type is used for function return value. Warn ABI
29763 change if the vector mode isn't available for function return value.
29764 (ix86_function_arg_advance): Pass false to type_natural_mode.
29765 (ix86_function_arg): Likewise.
29766 (ix86_gimplify_va_arg): Likewise.
29767 (function_arg_32): Don't warn ABI change.
29768 (ix86_function_value): Pass true to type_natural_mode.
29769 (ix86_return_in_memory): Likewise.
29770 (ix86_struct_value_rtx): Removed.
29771 (TARGET_STRUCT_VALUE_RTX): Likewise.
29773 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29775 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29776 converting a conditional jump into a conditional return.
29778 2014-01-14 Richard Biener <rguenther@suse.de>
29780 PR tree-optimization/58921
29781 PR tree-optimization/59006
29782 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29783 hoisting invariant stmts.
29784 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29785 invariant loads on the preheader edge if possible.
29787 2014-01-14 Joey Ye <joey.ye@arm.com>
29789 * doc/plugin.texi (Building GCC plugins): Update to C++.
29791 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
29793 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29794 (_mm_rcp28_round_ss): Ditto.
29795 (_mm_rsqrt28_round_sd): Ditto.
29796 (_mm_rsqrt28_round_ss): Ditto.
29797 (_mm_rcp28_sd): Ditto.
29798 (_mm_rcp28_ss): Ditto.
29799 (_mm_rsqrt28_sd): Ditto.
29800 (_mm_rsqrt28_ss): Ditto.
29801 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29802 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29803 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29804 (IX86_BUILTIN_RCP28SD): Ditto.
29805 (IX86_BUILTIN_RCP28SS): Ditto.
29806 (IX86_BUILTIN_RSQRT28SD): Ditto.
29807 (IX86_BUILTIN_RSQRT28SS): Ditto.
29808 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29809 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29810 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29811 (ix86_expand_special_args_builtin): Expand new FTYPE.
29812 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29813 (srcp14<mode>): Make insn unary.
29814 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29815 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29816 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29817 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29818 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29819 Fix rounding: make it SAE only.
29820 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29822 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29824 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29825 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29826 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29827 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29828 (round_saeonly_mask_scalar_operand4): Ditto.
29829 (round_saeonly_mask_scalar_op3): Ditto.
29830 (round_saeonly_mask_scalar_op4): Ditto.
29832 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29834 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29835 Implement -maltivec=be for vec_insert and vec_extract.
29837 2014-01-10 DJ Delorie <dj@redhat.com>
29839 * config/msp430/msp430.md (call_internal): Don't allow memory
29840 references with SP as the base register.
29841 (call_value_internal): Likewise.
29842 * config/msp430/constraints.md (Yc): New. For memory references
29843 that don't use SP as a base register.
29845 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29846 "an integer without a # prefix"
29847 * config/msp430/msp430.md (epilogue_helper): Use it.
29849 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29852 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29853 AVX512F gather builtins.
29854 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29855 on gather decls with INTEGER_TYPE masktype.
29856 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29857 directly into the builtin rather than hoisting it before loop.
29859 PR tree-optimization/59387
29860 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29861 (scev_const_prop): If folded_casts and type has undefined overflow,
29862 use force_gimple_operand instead of force_gimple_operand_gsi and
29863 for each added stmt if it is assign with
29864 arith_code_with_undefined_signed_overflow, call
29865 rewrite_to_defined_overflow.
29866 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29867 gimple-fold.h instead.
29868 (arith_code_with_undefined_signed_overflow,
29869 rewrite_to_defined_overflow): Moved to ...
29870 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29871 rewrite_to_defined_overflow): ... here. No longer static.
29872 Include gimplify-me.h.
29873 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29874 rewrite_to_defined_overflow): New prototypes.
29876 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29878 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29880 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
29882 * builtins.c (get_object_alignment_2): Minor tweak.
29883 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29885 2014-01-13 Christian Bruel <christian.bruel@st.com>
29887 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29888 optimized non constant lengths.
29890 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29893 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29894 load as __atomic_load_N if possible.
29896 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29898 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29900 (rs6000_expand_builtin): Adjust call.
29902 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29905 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
29906 * config/rs6000/rs6000.c: Include target-globals.h.
29907 (rs6000_set_current_function): Instead of doing target_reinit
29908 unconditionally, use save_target_globals_default_opts and
29909 restore_target_globals.
29911 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
29913 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
29914 (rs6000_expand_builtin): Handle mffs and mtfsf.
29915 (rs6000_init_builtins): Define mffs and mtfsf.
29916 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
29917 (rs6000_mffs): New pattern.
29918 (rs6000_mtfsf): New pattern.
29920 2014-01-11 Bin Cheng <bin.cheng@arm.com>
29922 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
29923 Start narrowing with START. Apply candidate-use pair
29924 and check overall cost in narrowing.
29925 (iv_ca_prune): Pass new argument.
29927 2014-01-10 Jeff Law <law@redhat.com>
29929 PR middle-end/59743
29930 * ree.c (combine_reaching_defs): Ensure the defining statement
29931 occurs before the extension when optimizing extensions with
29932 different source and destination hard registers.
29934 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29937 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29938 vtables into the type inheritance graph.
29940 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29942 PR rtl-optimization/59754
29943 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29944 modes in the REGNO != REGNO case.
29946 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29948 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29950 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29952 PR tree-optimization/59745
29953 * tree-predcom.c (tree_predictive_commoning_loop): Call
29954 free_affine_expand_cache if giving up because components is NULL.
29956 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29957 GC in payload of target_globals struct instead of allocating them on
29958 the heap and the larger structs separately using GC.
29959 * target-globals.h (struct target_globals): Make regs, hard_regs,
29960 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29961 of GTY((skip)) and change type to void *.
29962 (reset_target_globals): Cast loads from those fields to corresponding
29965 2014-01-10 Steve Ellcey <sellcey@mips.com>
29968 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
29969 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
29970 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
29972 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
29975 * aarch64-modes.def (CC_Zmode): New flags mode.
29976 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
29977 represents an equality.
29978 (aarch64_get_condition_code): Handle CC_Zmode.
29979 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
29981 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29983 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
29984 extraction in good case.
29986 2014-01-10 Richard Biener <rguenther@suse.de>
29988 PR tree-optimization/59374
29989 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
29990 checking after SLP discovery. Mark stmts not participating
29991 in any SLP instance properly.
29993 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29995 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
29996 when handling a SET rtx.
29998 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30000 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30001 (cortex-a57): Likewise.
30002 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30004 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30006 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30007 non-iwmmxt builtins.
30009 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30013 * ipa-devirt.c record_target_from_binfo): Take as argument
30014 stack of binfos and lookup matching one for virtual inheritance.
30015 (possible_polymorphic_call_targets_1): Update.
30017 2014-01-10 Huacai Chen <chenhc@lemote.com>
30019 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30020 kernel strings for Loongson-2E/2F/3A.
30022 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30024 PR middle-end/59670
30025 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30026 is_gimple_call before calling gimple_call_internal_p.
30028 2014-01-09 Steve Ellcey <sellcey@mips.com>
30030 * Makefile.in (TREE_FLOW_H): Remove.
30031 (TREE_SSA_H): Add file names from tree-flow.h.
30032 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30033 * tree.h: Remove tree-flow.h reference.
30034 * hash-table.h: Remove tree-flow.h reference.
30035 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30036 reference with tree-ssa-loop.h.
30038 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30040 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30041 default element-order behavior for -maltivec.
30042 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30043 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30044 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30045 when targeting big endian, at least for now.
30046 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30048 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30050 PR middle-end/47735
30051 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30052 var satisfies use_register_for_decl, just take into account type
30053 alignment, rather than decl alignment.
30055 PR tree-optimization/59622
30056 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30057 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30058 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30059 Don't devirtualize for inplace at all. For targets.length () == 1,
30060 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30062 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30064 * config/i386/i386.md (cpu): Remove the unused btver1.
30066 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30068 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30070 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30073 * tree-core.h (struct target_globals): New forward declaration.
30074 (struct tree_target_option): Add globals field.
30075 * tree.h (TREE_TARGET_GLOBALS): Define.
30076 (prepare_target_option_nodes_for_pch): New prototype.
30077 * target-globals.h (struct target_globals): Define even if
30078 !SWITCHABLE_TARGET.
30079 * tree.c (prepare_target_option_node_for_pch,
30080 prepare_target_option_nodes_for_pch): New functions.
30081 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30082 * config/i386/i386.c: Include target-globals.h.
30083 (ix86_set_current_function): Instead of doing target_reinit
30084 unconditionally, use save_target_globals_default_opts and
30085 restore_target_globals.
30087 2014-01-09 Richard Biener <rguenther@suse.de>
30089 PR tree-optimization/59715
30090 * tree-cfg.h (split_critical_edges): Declare.
30091 * tree-cfg.c (split_critical_edges): Export.
30092 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30094 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30096 * cfgexpand.c (expand_stack_vars): Optionally disable
30097 asan stack protection.
30098 (expand_used_vars): Likewise.
30099 (partition_stack_vars): Likewise.
30100 * asan.c (asan_emit_stack_protection): Optionally disable
30101 after return stack usage.
30102 (instrument_derefs): Optionally disable memory access instrumentation.
30103 (instrument_builtin_call): Likewise.
30104 (instrument_strlen_call): Likewise.
30105 (asan_protect_global): Optionally disable global variables protection.
30106 * doc/invoke.texi: Added doc for new options.
30107 * params.def: Added new options.
30108 * params.h: Likewise.
30110 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30112 PR rtl-optimization/59724
30113 * ifcvt.c (cond_exec_process_if_block): Don't call
30114 flow_find_head_matching_sequence with 0 longest_match.
30115 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30116 non-active insns if !stop_after.
30117 (try_head_merge_bb): Revert 2014-01-07 changes.
30119 2014-01-08 Jeff Law <law@redhat.com>
30121 * ree.c (get_sub_rtx): New function, extracted from...
30122 (merge_def_and_ext): Here.
30123 (combine_reaching_defs): Use get_sub_rtx.
30125 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30127 * cgraph.h (varpool_variable_node): Do not choke on null node.
30129 2014-01-08 Catherine Moore <clm@codesourcery.com>
30131 * config/mips/mips.md (simple_return): Attempt to use JRC
30133 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30135 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30137 PR rtl-optimization/59137
30138 * reorg.c (steal_delay_list_from_target): Call update_block for
30140 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30142 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30144 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30145 two duplicate entries.
30147 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30150 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30152 * config/mips/mips.c (mips_truncated_op_cost): New function.
30153 (mips_rtx_costs): Adjust test for BADDU.
30154 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30156 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30158 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30159 (*baddu_si): ...this new pattern.
30161 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30164 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30166 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30168 PR middle-end/57748
30169 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30171 (expand_expr, expand_normal): Adjust.
30172 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30173 inner_reference_p. Use inner_reference_p to expand inner references.
30174 (store_expr): Adjust.
30175 * cfgexpand.c (expand_call_stmt): Adjust.
30177 2014-01-08 Rong Xu <xur@google.com>
30179 * gcov-io.c (gcov_var): Move from gcov-io.h.
30180 (gcov_position): Ditto.
30181 (gcov_is_error): Ditto.
30182 (gcov_rewrite): Ditto.
30183 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30184 only part to libgcc/libgcov.h.
30186 2014-01-08 Marek Polacek <polacek@redhat.com>
30188 PR middle-end/59669
30189 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30191 2014-01-08 Marek Polacek <polacek@redhat.com>
30194 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30196 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30198 PR rtl-optimization/59649
30199 * stor-layout.c (get_mode_bounds): For BImode return
30200 0 and STORE_FLAG_VALUE.
30202 2014-01-08 Richard Biener <rguenther@suse.de>
30204 PR middle-end/59630
30205 * gimple.h (is_gimple_builtin_call): Remove.
30206 (gimple_builtin_call_types_compatible_p): New.
30207 (gimple_call_builtin_p): New overload.
30208 * gimple.c (is_gimple_builtin_call): Remove.
30209 (validate_call): Rename to ...
30210 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30211 check return types.
30212 (validate_type): New static function.
30213 (gimple_call_builtin_p): New overload and adjust.
30214 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30215 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30216 (gimple_fold_stmt_to_constant_1): Likewise.
30217 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30219 2014-01-08 Richard Biener <rguenther@suse.de>
30221 PR middle-end/59471
30222 * gimplify.c (gimplify_expr): Gimplify register-register type
30223 VIEW_CONVERT_EXPRs to separate stmts.
30225 2014-01-07 Jeff Law <law@redhat.com>
30227 PR middle-end/53623
30228 * ree.c (combine_set_extension): Handle case where source
30229 and destination registers in an extension insn are different.
30230 (combine_reaching_defs): Allow source and destination registers
30231 in extension to be different under limited circumstances.
30232 (add_removable_extension): Remove restriction that the
30233 source and destination registers in the extension are the same.
30234 (find_and_remove_re): Emit a copy from the extension's
30235 destination to its source after the defining insn if
30236 the source and destination registers are different.
30238 PR middle-end/59285
30239 * ifcvt.c (merge_if_block): If we are merging a block with more than
30240 one successor with a block with no successors, remove any BARRIER
30241 after the second block.
30243 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30245 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30247 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30250 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30251 for 14-bit register offsets when INT14_OK_STRICT is false.
30253 2014-01-07 Roland Stigge <stigge@antcom.de>
30254 Michael Meissner <meissner@linux.vnet.ibm.com>
30257 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30258 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30260 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30262 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30265 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30267 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30268 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30269 rtx is const0_rtx or not.
30271 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30274 * target-globals.c (save_target_globals): Remove this_fn_optab
30276 * toplev.c: Include optabs.h.
30277 (target_reinit): Temporarily restore the global options if another
30278 set of options are in force.
30280 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30282 PR rtl-optimization/58668
30283 * cfgcleanup.c (flow_find_cross_jump): Don't count
30284 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30285 to determine what is counted.
30286 (flow_find_head_matching_sequence): Use active_insn_p to determine
30288 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30290 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30291 determine what is counted.
30293 PR tree-optimization/59643
30294 * tree-predcom.c (split_data_refs_to_components): If one dr is
30295 read and one write, determine_offset fails and the write isn't
30296 in the bad component, just put the read into the bad component.
30298 2014-01-07 Mike Stump <mikestump@comcast.net>
30299 Jakub Jelinek <jakub@redhat.com>
30302 * tree-core.h (struct tree_optimization_option): Change optabs
30303 type from unsigned char * to void *.
30304 * optabs.c (init_tree_optimization_optabs): Adjust
30305 TREE_OPTIMIZATION_OPTABS initialization.
30307 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30310 * config/i386/i386.h (struct machine_function): Add
30311 no_drap_save_restore field.
30312 * config/i386/i386.c (ix86_save_reg): Use
30313 !cfun->machine->no_drap_save_restore instead of
30314 crtl->stack_realign_needed.
30315 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30316 this function clears frame_pointer_needed. Set
30317 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30318 and DRAP reg is needed.
30320 2014-01-06 Marek Polacek <polacek@redhat.com>
30323 * doc/implement-c.texi: Mention that other integer types are
30324 permitted as bit-field types in strictly conforming mode.
30326 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30328 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30329 is newly allocated.
30331 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30333 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30335 2014-01-06 Martin Jambor <mjambor@suse.cz>
30338 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30340 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30342 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30346 * var-tracking.c (add_stores): Preserve the value of the source even if
30347 we don't record the store.
30349 2014-01-06 Terry Guo <terry.guo@arm.com>
30351 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30353 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30356 * config/darwin.c (darwin_function_section): Adjust return values to
30357 correspond to optimisation changes made in r206070.
30359 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30361 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30362 from prefetch_block tune setting.
30363 (nocona_cost): Correct size of prefetch block to 64.
30365 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30367 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30368 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30369 used to save the static chain register in the computation of the offset
30370 from which the FP registers need to be restored.
30372 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30374 PR tree-optimization/59519
30375 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30376 ICE if get_current_def (current_new_name) is already non-NULL, as long
30377 as it is a phi result of some other phi in *new_exit_bb that has
30380 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30381 or vmovdqu* for misaligned_operand.
30382 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30383 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30384 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30385 aligned_mem for AVX512F masked aligned load and store builtins and for
30386 non-temporal moves.
30388 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30390 PR tree-optimization/59651
30391 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30392 Address range for negative step should be added by TYPE_SIZE_UNIT.
30394 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30396 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30397 overlapping registers also for registers other than the stack pointer.
30399 2014-01-03 Marek Polacek <polacek@redhat.com>
30402 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30405 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30408 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30411 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30412 (push splitter): Use <P:MODE_SIZE> instead of
30413 GET_MODE_SIZE (<P:MODE>mode).
30414 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30415 (mov -1, reg peephole2): Likewise.
30416 * config/i386/sse.md (*mov<mode>_internal,
30417 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30418 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30419 *<code><mode>3, *andnot<mode>3<mask_name>,
30420 <mask_codefor><code><mode>3<mask_name>): Likewise.
30421 * config/i386/subst.md (mask_mode512bit_condition,
30422 sd_mask_mode512bit_condition): Likewise.
30424 2014-01-02 Xinliang David Li <davidxl@google.com>
30426 PR tree-optimization/59303
30427 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30428 (dump_predicates): Better output format.
30429 (pred_equal_p): New function.
30430 (is_neq_relop_p): Ditto.
30431 (is_neq_zero_form_p): Ditto.
30432 (pred_expr_equal_p): Ditto.
30433 (pred_neg_p): Ditto.
30434 (simplify_pred): Ditto.
30435 (simplify_preds_2): Ditto.
30436 (simplify_preds_3): Ditto.
30437 (simplify_preds_4): Ditto.
30438 (simplify_preds): Ditto.
30439 (push_pred): Ditto.
30440 (push_to_worklist): Ditto.
30441 (get_pred_info_from_cmp): Ditto.
30442 (is_degenerated_phi): Ditto.
30443 (normalize_one_pred_1): Ditto.
30444 (normalize_one_pred): Ditto.
30445 (normalize_one_pred_chain): Ditto.
30446 (normalize_preds): Ditto.
30447 (normalize_cond_1): Remove function.
30448 (normalize_cond): Ditto.
30449 (is_gcond_subset_of): Ditto.
30450 (is_subset_of_any): Ditto.
30451 (is_or_set_subset_of): Ditto.
30452 (is_and_set_subset_of): Ditto.
30453 (is_norm_cond_subset_of): Ditto.
30454 (pred_chain_length_cmp): Ditto.
30455 (convert_control_dep_chain_into_preds): Type change.
30456 (find_predicates): Ditto.
30457 (find_def_preds): Ditto.
30458 (destroy_predicates_vecs): Ditto.
30459 (find_matching_predicates_in_rest_chains): Ditto.
30460 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30461 (is_pred_expr_subset): Ditto.
30462 (is_pred_chain_subset_of): Ditto.
30463 (is_included_in): Ditto.
30464 (is_superset_of): Ditto.
30466 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30468 Update copyright years.
30470 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30472 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30473 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30474 config/arc/arc.md, config/arc/arc.opt,
30475 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30476 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30477 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30478 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30479 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30480 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30481 vtable-verify.c, vtable-verify.h: Use the standard form for the
30484 2014-01-02 Tobias Burnus <burnus@net-b.de>
30486 * gcc.c (process_command): Update copyright notice dates.
30487 * gcov-dump.c: Ditto.
30489 * doc/cpp.texi: Bump @copying's copyright year.
30490 * doc/cppinternals.texi: Ditto.
30491 * doc/gcc.texi: Ditto.
30492 * doc/gccint.texi: Ditto.
30493 * doc/gcov.texi: Ditto.
30494 * doc/install.texi: Ditto.
30495 * doc/invoke.texi: Ditto.
30497 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30499 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30501 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30503 * config/i386/sse.md (*mov<mode>_internal): Guard
30504 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30506 PR rtl-optimization/59647
30507 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30508 new_rtx into UNSIGNED_FLOAT rtxes.
30510 Copyright (C) 2014 Free Software Foundation, Inc.
30512 Copying and distribution of this file, with or without modification,
30513 are permitted in any medium without royalty provided the copyright
30514 notice and this notice are preserved.