AVX-512. Add reduce, range, fpclass insn patterns.
[gcc.git] / gcc / ChangeLog
1 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3 Anna Tikhonova <anna.tikhonova@intel.com>
4 Ilya Tocar <ilya.tocar@intel.com>
5 Andrey Turetskiy <andrey.turetskiy@intel.com>
6 Ilya Verbin <ilya.verbin@intel.com>
7 Kirill Yukhin <kirill.yukhin@intel.com>
8 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9
10 * config/i386/i386.c
11 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
12 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
13 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
14 avx512dq_rangepv4sf_mask.
15 * config/i386/sse.md
16 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
17 UNSPEC_RANGE.
18 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
19 (define_insn "reduces<mode>"): Ditto.
20 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
21 Ditto.
22 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
23 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
24 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
25
26 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
27 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28 Anna Tikhonova <anna.tikhonova@intel.com>
29 Ilya Tocar <ilya.tocar@intel.com>
30 Andrey Turetskiy <andrey.turetskiy@intel.com>
31 Ilya Verbin <ilya.verbin@intel.com>
32 Kirill Yukhin <kirill.yukhin@intel.com>
33 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
34
35 * config/i386/i386.c
36 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
37 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
38 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
39 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
40 avx512vl_getmantv2df_mask.
41 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
42 avx512f_vgetmantv4sf_round.
43 * config/i386/sse.md
44 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
45 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
46 mode iterator.
47 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
48 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
49 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
50 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
51 iterator..
52 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
53 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
54 update mode iterator.
55 (define_expand
56 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
57 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
58 mode iterator.
59 (define_insn
60 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
61 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
62 update mode iterator.
63 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
64 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
65 iterator..
66 (define_insn
67 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
68 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
69 mode iterator..
70 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
71 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
72 update mode iterator.
73 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
74 "avx512f_getmant<mode><round_saeonly_name>".
75
76 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
77
78 PR ipa/63166
79 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
80
81 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
82 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
83 Anna Tikhonova <anna.tikhonova@intel.com>
84 Ilya Tocar <ilya.tocar@intel.com>
85 Andrey Turetskiy <andrey.turetskiy@intel.com>
86 Ilya Verbin <ilya.verbin@intel.com>
87 Kirill Yukhin <kirill.yukhin@intel.com>
88 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
89
90 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
91 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
92 (define_mode_iterator FMAMODE_AVX512): New.
93 (define_mode_iterator FMAMODE): Remove conditions.
94 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
95 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
96 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
97 mode iterator.
98 (define_mode_iterator FMAMODE_NOVF512): Remove.
99 (define_insn "*fma_fmadd_<mode>"): Rename from
100 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
101 FMAMODE mode iterator.
102 (define_mode_iterator VF_SF_AVX512VL): New.
103 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
104 Use VF_SF_AVX512VL mode iterator.
105 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
106 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
107 iterator.
108 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
109 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
110 iterator.
111 (define_insn "*fma_fmsub_<mode>"): Rename from
112 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
113 FMAMODE mode iterator.
114 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
115 Use VF_SF_AVX512VL mode iterator.
116 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
117 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
118 iterator.
119 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
120 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
121 iterator.
122 (define_insn "*fma_fnmadd_<mode>"): Rename from
123 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
124 use FMAMODE mode iterator.
125 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
126 Use VF_SF_AVX512VL mode iterator.
127 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
128 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
129 iterator.
130 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
131 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
132 iterator.
133 (define_insn "*fma_fnmsub_<mode>"): Rename from
134 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
135 FMAMODE mode iterator.
136 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
137 Use VF_SF_AVX512VL mode iterator.
138 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
139 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
140 iterator.
141 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
142 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
143 iterator.
144 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
145 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
146 use VF_AVX512VL mode iterator.
147 (define_insn "*fma_fmaddsub_<mode>"): Rename from
148 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
149 remove subst usage.
150 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
151 Use VF_SF_AVX512VL mode iterator.
152 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
153 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
154 iterator.
155 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
156 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
157 iterator.
158 (define_insn "*fma_fmsubadd_<mode>"): Rename from
159 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
160 remove usage of subst.
161 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
162 Use VF_SF_AVX512VL mode iterator.
163 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
164 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
165 iterator.
166 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
167 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
168 iterator.
169
170 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
171
172 Revert r213751:
173 * calls.c (precompute_arguments): Check
174 promoted_for_signed_and_unsigned_p and set the promoted mode.
175 (promoted_for_signed_and_unsigned_p): New function.
176 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
177 and set the promoted mode.
178 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
179 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
180 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
181
182 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
183
184 * opth-gen.awk: Generate mapping from cpp message reasons to the
185 options that enable them.
186 * doc/options.texi (CppReason): Document.
187
188 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
189
190 * doc/invoke.texi (Wnormalized=): Update.
191
192 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
193
194 PR target/63195
195 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
196 operands. Split off the constant operand alternative to ...
197 (*bool<mode>3_imm): New.
198
199 2014-09-09 David Malcolm <dmalcolm@redhat.com>
200
201 * rtl.h (single_set_2): Strengthen first param from const_rtx to
202 const rtx_insn *, and move prototype to above...
203 (single_set): ...this. Convert this from a macro to an inline
204 function, enforcing the requirement that the param is a const
205 rtx_insn *.
206 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
207
208 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
209 Strengthen both params from rtx to rtx_insn *.
210 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
211 Likewise; introduce locals "producer_set", "consumer_set", using
212 them in place of "producer" and "consumer" when dealing with SET
213 rather than insn.
214 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
215 when invoking single_set in region guarded by INSN_P.
216 (avr_out_bitop): Likewise.
217 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
218 region guarded by GET_CODE check, using methods to strengthen
219 local "this_insn" from rtx to rtx_insn *, and for clarity.
220 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
221 Strengthen local "insn" from rtx to rtx_insn *.
222 (define_insn_and_split "xload<mode>_A"): Likewise.
223 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
224 "insn".
225 (find_load): Likewise for return type.
226 (workaround_speculation): Likewise for both locals named
227 "load_insn".
228 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
229 local "cc0_user".
230 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
231 for local "prev".
232 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
233 param 2.
234 * config/h8300/h8300.c (notice_update_cc): Likewise.
235 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
236 "insn" and "dep_insn".
237 (exact_store_load_dependency): Likewise for both params.
238 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
239 since this now clashes with inline function. Instead, delay
240 calling single_set until the point where its needed, and then
241 assign the result to "compare_set" and rework the conditional that
242 follows.
243 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
244 local "last" from rtx to rtx_insn *.
245 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
246 second param.
247 (mips_store_data_bypass_p): Likewise for both params.
248 * config/mips/mips.c (mips_load_store_insns): Likewise for second
249 param.
250 (mips_store_data_bypass_p): Likewise for both params.
251 (mips_orphaned_high_part_p): Likewise for param "insn".
252 * config/mn10300/mn10300.c (extract_bundle): Likewise.
253 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
254 Introduce local rtx "insn2_pat".
255 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
256 "ninsn".
257 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
258 Introduce local rtx "set", using it in place of "insn" for the
259 result of single_set. This appears to fix a bug, since the call
260 to find_regno_note on a SET does nothing.
261 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
262 params from rtx to rtx_insn *.
263 (set_to_load_agen): Likewise.
264 * config/s390/s390.c (s390_label_align): Likewise for local
265 "prev_insn". Introduce new rtx locals "set" and "src", using
266 them in place of "prev_insn" for the results of single_set
267 and SET_SRC respectively.
268 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
269 Introduce new rtx local "set" using in place of "jump" for the
270 result of single_set. Use SET_SRC (set) rather than plain
271 XEXP (set, 1).
272 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
273 rtx to rtx_insn *.
274 (noncall_uses_reg): Likewise.
275 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
276 guarded by GET_CODE check, using its methods for clarity, and to
277 enable strengthening local "this_insn" from rtx to rtx_insn *.
278 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
279 "insn" from rtx to rtx_insn *.
280 (define_expand "umulhisi3"): Likewise.
281 (define_expand "smulsi3_highpart"): Likewise.
282 (define_expand "umulsi3_highpart"): Likewise.
283 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
284 local "after". Replace GET_CODE check with a dyn_cast,
285 introducing new local rtx_sequence * "seq", using insn method for
286 typesafety.
287
288 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
289 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
290 place of "insn" once we're dealing with patterns rather than the
291 input insn.
292 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
293 (scan_trace): Likewise for local "elt", updating lookups within
294 sequence to use insn method rather than element method.
295 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
296 to rtx_insn *.
297 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
298 * ifcvt.c (noce_try_abs): Likewise for local "insn".
299 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
300 invoking single_set.
301 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
302 "insn" from rtx to rtx_insn *.
303 (skip_usage_debug_insns): Likewise for return type, adding a
304 checked cast.
305 (check_secondary_memory_needed_p): Likewise for local "insn".
306 (inherit_reload_reg): Likewise.
307 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
308 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
309 checked casts.
310 (store_data_bypass_p): Likewise for both params.
311 (if_test_bypass_p): Likewise.
312 * recog.h (store_data_bypass_p): Likewise for both params.
313 (if_test_bypass_p): Likewise.
314 * reload.c (find_equiv_reg): Likewise for local "where".
315 * reorg.c (delete_jump): Likewise for param "insn".
316 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
317 to const rtx_insn *.
318 * store-motion.c (replace_store_insn): Likewise for param "del".
319 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
320 and use its methods for clarity, and to strengthen local "del"
321 from rtx to rtx_insn *.
322 (build_store_vectors): Use insn method of "st" when calling
323 replace_store_insn for typesafety and clarity.
324
325 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
326
327 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
328 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
329 on how to make it legal in future.
330
331 2014-09-09 David Malcolm <dmalcolm@redhat.com>
332
333 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
334 to rtx_insn *.
335 (restinsn): Likewise.
336 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
337 Likewise for param.
338 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
339 Likewise.
340 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
341 first param.
342 (arc_hazard): Likewise for both params.
343 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
344 checked casts to rtx_sequence * and uses of the insn method for
345 type-safety.
346 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
347 (arc_adjust_insn_length): Likewise for param "insn".
348 (struct insn_length_parameters_s): Likewise for first param of
349 "get_variants" callback field.
350 (arc_get_insn_variants): Likewise for first param and local
351 "inner". Replace a check of GET_CODE with a dyn_cast to
352 rtx_sequence *, using methods for type-safety and clarity.
353 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
354 rtx_sequence * and uses of the insn method for type-safety when
355 invoking arc_adjust_insn_length.
356 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
357 for param.
358 (arm_address_offset_is_imm): Likewise.
359 (struct tune_params): Likewise for params 1 and 3 of the
360 "sched_adjust_cost" callback field.
361 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
362 params 1 and 3 ("insn" and "dep").
363 (xscale_sched_adjust_cost): Likewise.
364 (fa726te_sched_adjust_cost): Likewise.
365 (cortexa7_older_only): Likewise for param "insn".
366 (cortexa7_younger): Likewise.
367 (arm_attr_length_move_neon): Likewise.
368 (arm_address_offset_is_imm): Likewise.
369 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
370 * config/avr/avr.c (avr_notice_update_cc): Likewise.
371 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
372 (workaround_speculation): Likewise for local "last_condjump".
373 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
374 (shadow_or_blockage_p): Likewise.
375 (get_unit_reqs): Likewise.
376 (get_unit_operand_masks): Likewise.
377 (c6x_registers_update): Likewise.
378 (returning_call_p): Likewise.
379 (can_use_callp): Likewise.
380 (convert_to_callp): Likewise.
381 (find_last_same_clock): Likwise for local "t".
382 (reorg_split_calls): Likewise for local "shadow".
383 (hwloop_pattern_reg): Likewise for param "insn".
384 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
385 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
386 (frv_extract_membar): Likewise.
387 (frv_optimize_membar_local): Strengthen param "last_membar" from
388 rtx * to rtx_insn **.
389 (frv_optimize_membar_global): Strengthen param "membar" from rtx
390 to rtx_insn *.
391 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
392 to rtx_insn **.
393 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
394 both params from rtx to rtx_insn *.
395 (ia64_ld_address_bypass_p): Likewise.
396 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
397 "insn".
398 (ia64_safe_type): Likewise.
399 (group_barrier_needed): Likewise.
400 (safe_group_barrier_needed): Likewise.
401 (ia64_single_set): Likewise.
402 (is_load_p): Likewise.
403 (record_memory_reference): Likewise.
404 (get_mode_no_for_insn): Likewise.
405 (important_for_bundling_p): Likewise.
406 (unknown_for_bundling_p): Likewise.
407 (ia64_st_address_bypass_p): Likewise for both params.
408 (ia64_ld_address_bypass_p): Likewise.
409 (expand_vselect): Introduce new local rtx_insn * "insn", using it
410 in place of rtx "x" after the emit_insn call.
411 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
412 Strengthen param from rtx to rtx_insn *.
413 (ix86_agi_dependent): Likewise for both params.
414 (ix86_attr_length_immediate_default): Likewise for param 1.
415 (ix86_attr_length_address_default): Likewise for param.
416 (ix86_attr_length_vex_default): Likewise for param 1.
417 * config/i386/i386.c (ix86_attr_length_immediate_default):
418 Likewise for param "insn".
419 (ix86_attr_length_address_default): Likewise.
420 (ix86_attr_length_vex_default): Likewise.
421 (ix86_agi_dependent): Likewise for both params.
422 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
423 (vselect_insn): Likewise for this variable.
424 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
425 for param 1.
426 (m68k_sched_attr_opy_type): Likewise.
427 * config/m68k/m68k.c (sched_get_operand): Likewise.
428 (sched_attr_op_type): Likewise.
429 (m68k_sched_attr_opx_type): Likewise.
430 (m68k_sched_attr_opy_type): Likewise.
431 (sched_get_reg_operand): Likewise.
432 (sched_get_mem_operand): Likewise.
433 (m68k_sched_address_bypass_p): Likewise for both params.
434 (sched_get_indexed_address_scale): Likewise.
435 (m68k_sched_indexed_address_bypass_p): Likewise.
436 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
437 (m68k_sched_indexed_address_bypass_p): Likewise.
438 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
439 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
440 removing another.
441 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
442 params from rtx to rtx_insn *.
443 (mips_fmadd_bypass): Likewise.
444 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
445 (mips_linked_madd_p): Likewise.
446 (mips_macc_chains_last_hilo): Likewise for this variable.
447 (mips_macc_chains_record): Likewise for param.
448 (vr4130_last_insn): Likewise for this variable.
449 (vr4130_swap_insns_p): Likewise for both params.
450 (mips_ls2_variable_issue): Likewise for param.
451 (mips_need_noat_wrapper_p): Likewise for param "insn".
452 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
453 in place of "x" after the emit_insn.
454 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
455 params from rtx to rtx_insn *.
456 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
457 (pa_combine_instructions): Introduce local "par" for result of
458 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
459 to make_insn_raw.
460 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
461 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
462 (rl78_alloc_physical_registers_op1): Likewise.
463 (rl78_alloc_physical_registers_op2): Likewise.
464 (rl78_alloc_physical_registers_ro1): Likewise.
465 (rl78_alloc_physical_registers_cmp): Likewise.
466 (rl78_alloc_physical_registers_umul): Likewise.
467 (rl78_alloc_address_registers_macax): Likewise.
468 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
469 * config/s390/predicates.md (execute_operation): Likewise for
470 local "insn".
471 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
472 params.
473 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
474 (addr_generation_dependency_p): Likewise for param "insn".
475 (s390_agen_dep_p): Likewise for both params.
476 (s390_fpload_toreg): Likewise for param "insn".
477 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
478 * config/sh/sh.c (sh_loop_align): Likewise for param and local
479 "next".
480 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
481 * config/sh/sh_treg_combine.cc
482 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
483 and local "i".
484 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
485 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
486 "and_insn", "load", "shift".
487 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
488 "insn".
489 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
490 for XEXP (note, 0) of the REG_CC_SETTER note.
491 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
492 rtx_insn *, eliminating a checked cast made redundant by this.
493 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
494 to rtx_insn *.
495 * genattr.c (main): When writing out the prototype to
496 const_num_delay_slots, strengthen the param from rtx to
497 rtx_insn *.
498 * genattrtab.c (write_const_num_delay_slots): Likewise when
499 writing out the implementation of const_num_delay_slots.
500 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
501 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
502 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
503 favor of new rtx locals "src" and "set" and new local rtx_insn *
504 "insn" and "seq".
505 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
506 to rtx_insn *.
507 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
508 locals "cond", "if_then_else", "set" and new rtx_insn * locals
509 "insn" and "seq".
510 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
511 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
512 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
513 the top-level scope, replacing with new more tightly-scoped rtx
514 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
515 "new_insn", "copy_of_insn_b", and make local rtx "set" more
516 tightly-scoped.
517 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
518 rtx_insn *.
519 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
520 "move_insn".
521 (ira_setup_alts): Likewise for param "insn".
522 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
523 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
524 and an rtx_insn *.
525 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
526 new more-tightly scoped rtx locals "add3_insn", "insn",
527 "add2_insn" and rtx_insn * "move_insn".
528 * postreload-gcse.c (eliminate_partially_redundant_load): Add
529 checked cast on result of gen_move_insn when invoking
530 extract_insn.
531 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
532 rtx_insn *.
533 (verify_changes): Add a checked cast on "object" when invoking
534 insn_invalid_p.
535 (extract_insn_cached): Strengthen param "insn" from rtx to
536 rtx_insn *.
537 (extract_constrain_insn_cached): Likewise.
538 (extract_insn): Likewise.
539 * recog.h (insn_invalid_p): Likewise for param 1.
540 (recog_memoized): Likewise for param.
541 (extract_insn): Likewise.
542 (extract_constrain_insn_cached): Likewise.
543 (extract_insn_cached): Likewise.
544 * reload.c (can_reload_into): Likewise for local "test_insn".
545 * reload.h (cleanup_subreg_operands): Likewise for param.
546 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
547 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
548 result of emit_insn. Remove a checked cast made redundant by this
549 change.
550 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
551 rtx to rtx_insn *.
552 * sel-sched.c (get_reg_class): Likewise.
553
554 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
555 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
556
557 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
558 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
559 Define.
560 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
561
562 2014-09-09 David Malcolm <dmalcolm@redhat.com>
563
564 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
565 const rtx_insn *, and from rtx to rtx_insn * for the other
566 overloaded variant.
567 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
568 INSN_LOCATION, since we know INSN_P holds.
569 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
570 (insn_file): Likewise.
571 (insn_scope): Likewise.
572 (insn_location): Likewise.
573
574 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
575 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
576 for the result of gen_load_const_gp.
577 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
578 param from rtx to rtx_insn *.
579 * config/rs6000/rs6000.c (output_call): Likewise.
580 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
581 introducing a checked cast to rtx_sequence * and use of the insn
582 method.
583 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
584 from rtx to rtx_insn *.
585 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
586 (insn_line): Likewise.
587 (insn_file): Likewise.
588 (insn_location): Likewise.
589 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
590 from rtx to rtx_insn *.
591 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
592 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
593 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
594 via a checked cast.
595 * reorg.c (relax_delay_slots): Strengthen locals named "after"
596 from rtx to rtx_insn *; use methods of "pat" for type-safety.
597
598 2014-09-09 David Malcolm <dmalcolm@redhat.com>
599
600 * combine.c (try_combine): Eliminate checked cast on result of
601 gen_rtx_INSN.
602 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
603 autogenerated one by strengthening the return type and params 2 and 3
604 from rtx to rtx_insn *, and by naming the params.
605 * gengenrtl.c (special_rtx): Add INSN to those that are
606 special-cased.
607 * rtl.h (gen_rtx_INSN): New prototype.
608
609 2014-09-09 David Malcolm <dmalcolm@redhat.com>
610
611 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
612 than NULL_RTX.
613 (no_equiv): Likewise.
614 (update_equiv_regs): Likewise.
615 (setup_reg_equiv): Likewise. Strengthen locals "elem",
616 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
617 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
618 clarity.
619 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
620 from rtx to rtx_insn_list *.
621 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
622 rtx_insn_list * and use methods for clarity and typesafety.
623 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
624 "list".
625 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
626 redundant check on INSN_P (insns): this cannot hold, as "insns" is
627 an INSN_LIST, not an insn.
628 (reverse_equiv_p): Strengthen local "insns" from rtx to
629 rtx_insn_list * and use methods for clarity and typesafety.
630 (contains_reloaded_insn_p): Likewise for local "list".
631
632 2014-09-09 Jiong Wang <jiong.wang@arm.com>
633
634 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
635 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
636 (arm_builtin_vectorized_function): Likewise.
637 * config/arm/arm_neon_builtins.def: New macro for copysignf.
638 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
639
640 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
641
642 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
643 * builtins.h (default_target_builtins): Likewise.
644 * gcse.h (default_target_gcse): Likewise.
645 * target-globals.h (target_globals): Add a destructor. Convert
646 void-pointer fields back to their real type and change from
647 GTY((atomic)) to GTY((skip)).
648 (restore_target_globals): Remove casts accordingly.
649 * target-globals.c (save_target_globals): Use XCNEW rather than
650 ggc_internal_cleared_alloc to allocate non-GC structures.
651 Use ggc_cleared_alloc to allocate the target_globals structure
652 itself.
653 (target_globals::~target_globals): Define.
654
655 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
656
657 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
658 mnemonic instead of fldmfdd.
659 * config/arm/arm.c (vfp_output_fstmd): Rename to...
660 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
661 Output vpush when address register is SP.
662 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
663 (vfp_output_vstmd): ... This.
664 * config/arm/vfp.md (push_multi_vfp): Update call to
665 vfp_output_vstmd.
666
667 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
668
669 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
670
671 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
672
673 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
674 (*sqrtdf2_vfp): Likewise.
675 (*cmpsf_vfp): Likewise.
676 (*cmpsf_trap_vfp): Likewise.
677 (*cmpdf_vfp): Likewise.
678 (*cmpdf_trap_vfp): Likewise.
679
680 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
681
682 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
683 (*truncdfsf2_vfp): Likewise.
684 (*truncsisf2_vfp): Likewise.
685 (*truncsidf2_vfp): Likewise.
686 (fixuns_truncsfsi2): Likewise.
687 (fixuns_truncdfsi2): Likewise.
688 (*floatsisf2_vfp): Likewise.
689 (*floatsidf2_vfp): Likewise.
690 (floatunssisf2): Likewise.
691 (floatunssidf2): Likewise.
692
693 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
694
695 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
696 (*muldf3_vfp): Likewise.
697 (*mulsf3negsf_vfp): Likewise.
698 (*muldf3negdf_vfp): Likewise.
699 (*mulsf3addsf_vfp): Likewise.
700 (*muldf3adddf_vfp): Likewise.
701 (*mulsf3subsf_vfp): Likewise.
702 (*muldf3subdf_vfp): Likewise.
703 (*mulsf3negsfaddsf_vfp): Likewise.
704 (*fmuldf3negdfadddf_vfp): Likewise.
705 (*mulsf3negsfsubsf_vfp): Likewise.
706 (*muldf3negdfsubdf_vfp): Likewise.
707
708 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
709
710 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
711 (*absdf2_vfp): Likewise.
712 (*negsf2_vfp): Likewise.
713 (*negdf2_vfp): Likewise.
714 (*addsf3_vfp): Likewise.
715 (*adddf3_vfp): Likewise.
716 (*subsf3_vfp): Likewise.
717 (*subdf3_vfp): Likewise.
718 (*divsf3_vfp): Likewise.
719 (*divdf3_vfp): Likewise.
720
721 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
722
723 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
724 multiple.
725 (arm_print_operand): Don't convert real values to decimal
726 representation in default case.
727 (fp_immediate_constant): Delete.
728 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
729 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
730 syntax.
731 (*thumb2_movsi_vfp): Likewise.
732 (*movdi_vfp): Likewise.
733 (*movdi_vfp_cortexa8): Likewise.
734 (*movhf_vfp_neon): Likewise.
735 (*movhf_vfp): Likewise.
736 (*movsf_vfp): Likewise.
737 (*thumb2_movsf_vfp): Likewise.
738 (*movdf_vfp): Likewise.
739 (*thumb2_movdf_vfp): Likewise.
740 (*movsfcc_vfp): Likewise.
741 (*thumb2_movsfcc_vfp): Likewise.
742 (*movdfcc_vfp): Likewise.
743 (*thumb2_movdfcc_vfp): Likewise.
744
745 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
746
747 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
748 (-mtune): Likewise.
749 (-mcpu): Likewise.
750
751 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
752
753 PR target/61749
754 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
755 Use qualifier_immediate for last operand. Rename to...
756 (aarch64_types_ternop_lane_qualifiers): ... This.
757 (TYPES_QUADOP): Rename to...
758 (TYPES_TERNOP_LANE): ... This.
759 (aarch64_simd_expand_args): Return const0_rtx when encountering user
760 error. Change return of 0 to return of NULL_RTX.
761 (aarch64_crc32_expand_builtin): Likewise.
762 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
763 ICE when expanding unknown builtin.
764 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
765 TERNOP_LANE qualifiers.
766 (sqdmlsl_lane): Likewise.
767 (sqdmlal_laneq): Likewise.
768 (sqdmlsl_laneq): Likewise.
769 (sqdmlal2_lane): Likewise.
770 (sqdmlsl2_lane): Likewise.
771 (sqdmlal2_laneq): Likewise.
772 (sqdmlsl2_laneq): Likewise.
773
774 2014-09-09 Nick Clifton <nickc@redhat.com>
775
776 * doc/invoke.texi (Optimization Options): Add missing @gol to the
777 end of a line.
778 (S/390 and zSeries Options): Remove superfluous word from the
779 description of the -mhotpatch option.
780
781 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
782
783 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
784 * ira.c: #include "shrink-wrap.h"
785 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
786 * ifcvt.c: #include "shrink-wrap.h"
787 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
788
789 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
790
791 * common/config/picochip/picochip-common.c: Remove.
792 * config.gcc: Remove support for picochip.
793 * config/picochip/constraints.md: Remove.
794 * config/picochip/dfa_space.md: Remove.
795 * config/picochip/dfa_speed.md: Remove.
796 * config/picochip/picochip-protos.h: Remove.
797 * config/picochip/picochip.c: Remove.
798 * config/picochip/picochip.h: Remove.
799 * config/picochip/picochip.md: Remove.
800 * config/picochip/picochip.opt: Remove.
801 * config/picochip/predicates.md: Remove.
802 * config/picochip/t-picochip: Remove.
803 * doc/md.texi: Don't document picochi.
804
805 2014-09-08 David Malcolm <dmalcolm@redhat.com>
806
807 * basic-block.h (control_flow_insn_p): Strengthen param from
808 const_rtx to const rtx_insn *.
809 * cfgbuild.c (control_flow_insn_p): Likewise.
810
811 2014-09-08 David Malcolm <dmalcolm@redhat.com>
812
813 * gcse.c (modify_mem_list): Strengthen this variable from
814 vec<rtx> * to vec<rtx_insn *> *.
815 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
816 vec<rtx_insn *>.
817 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
818 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
819 (record_last_mem_set_info): Strengthen param "insn" from rtx to
820 rtx_insn *.
821 (record_last_set_info): Likewise for local "last_set_insn".
822
823 2014-09-08 DJ Delorie <dj@redhat.com>
824
825 * doc/invoke.texi (MSP430 Options): Add -minrt.
826
827 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
828
829 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
830 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
831 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
832 handling SH_SPLAT.
833 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
834 of extracted lane.
835 (adjust_splat): New function.
836 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
837 (dump_swap_insn_table): Add case for SH_SPLAT.
838
839 2014-09-08 Richard Biener <rguenther@suse.de>
840
841 PR ipa/63196
842 * tree-inline.c (copy_loops): The source loop header should
843 always be non-NULL.
844 (tree_function_versioning): If loops need fixup after removing
845 unreachable blocks fix them.
846 * omp-low.c (simd_clone_adjust): Do not add incr block to
847 loop under construction.
848
849 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
850
851 * config/aarch64/aarch64-builtins.c
852 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
853
854 2014-09-08 Joseph Myers <joseph@codesourcery.com>
855
856 * config/i386/cygming.h (TF_SIZE): Remove.
857 * config/i386/darwin.h (TF_SIZE): Remove.
858 * config/i386/dragonfly.h (TF_SIZE): Remove.
859 * config/i386/freebsd.h (TF_SIZE): Remove.
860 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
861 * config/i386/openbsdelf.h (TF_SIZE): Remove.
862 * config/i386/sol2.h (TF_SIZE): Remove.
863 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
864 * config/ia64/linux.h (TF_SIZE): Remove.
865 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
866 * doc/tm.texi: Regenerate.
867 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
868
869 2014-09-08 Joseph Myers <joseph@codesourcery.com>
870
871 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
872 Remove.
873 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
874 Remove.
875 * doc/tm.texi: Regenerate.
876 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
877 Poison.
878 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
879 * config/cris/cris.h (__make_dp): Remove.
880
881 2014-09-08 Richard Biener <rguenther@suse.de>
882
883 PR bootstrap/63204
884 * cfgloop.c (mark_loop_for_removal): Track former header
885 unconditionally.
886 * cfgloop.h (struct loop): Add former_header member unconditionally.
887 * loop-init.c (fix_loop_structure): Enable bogus loop removal
888 diagnostic unconditionally.
889
890 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
891
892 PR target/63190
893 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
894 constraint for operand0 and remove write only modifier from operand3.
895
896 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
897
898 PR rtl-optimization/62208
899 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
900 rather than const0_rtx in eq/ne-xor simplifications.
901
902 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
903
904 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
905 (arc_output_mi_thunk): Likewise.
906
907 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
908 arguments to silence bogus warning.
909
910 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
911
912 PR middle-end/63171
913 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
914
915 2014-09-06 Tom de Vries <tom@codesourcery.com>
916
917 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
918 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
919 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
920
921 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
922
923 PR target/63188
924 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
925 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
926
927 2014-09-05 Easwaran Raman <eraman@google.com>
928
929 PR rtl-optimization/62146
930 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
931 hoisted instruction unconditional.
932
933 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
934
935 PR target/63187
936 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
937 Do not allow any_mask_operand for operands[2].
938 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
939
940 2014-09-05 David Malcolm <dmalcolm@redhat.com>
941
942 * config/arc/arc.c (arc_print_operand): Use insn method of
943 final_sequence for type-safety.
944 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
945 "insn" from rtx to rtx_insn *.
946 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
947 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
948 Likewise for locals "branch", "label".
949 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
950 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
951 (same_cmp_following_p): Likewise for locals "i2", "i3".
952 * config/sh/sh_optimize_sett_clrt.cc
953 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
954 param "cbranch_insn".
955 * function.c (convert_jumps_to_returns): Likewis for local "jump".
956 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
957 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
958 const rtx_insn *.
959 (condjump_p): Likewise.
960 (condjump_in_parallel_p): Likewise.
961 (pc_set): Likewise.
962 (any_uncondjump_p): Likewise.
963 (any_condjump_p): Likewise.
964 (condjump_label): Likewise.
965 (returnjump_p): Strengthen param "insn" from rtx to
966 const rtx_insn *.
967 (onlyjump_p): Strengthen param "insn" from const_rtx to
968 const rtx_insn *.
969 (jump_to_label_p): Likewise.
970 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
971 (invert_jump): Likewise.
972 * reorg.c (simplejump_or_return_p): Add checked cast when calling
973 simplejump_p.
974 (get_jump_flags): Strengthen param "insn" from rtx to
975 const rtx_insn *.
976 (get_branch_condition): Likewise.
977 (condition_dominates_p): Likewise.
978 (make_return_insns): Move declaration of local "pat" earlier, to
979 after we've handled NONJUMP_INSN_P and non-sequences, using its
980 methods to simplify the code and for type-safety.
981 * rtl.h (find_constant_src): Strengthen param from const_rtx to
982 const rtx_insn *.
983 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
984 (condjump_p): Strengthen param from const_rtx to
985 const rtx_insn *.
986 (any_condjump_p): Likewise.
987 (any_uncondjump_p): Likewise.
988 (pc_set): Likewise.
989 (condjump_label): Likewise.
990 (simplejump_p): Likewise.
991 (returnjump_p): Likewise.
992 (onlyjump_p): Likewise.
993 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
994 (invert_jump): Likewise.
995 (condjump_in_parallel_p): Strengthen param from const_rtx to
996 const rtx_insn *.
997 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
998 to const rtx_insn *.
999 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1000 to const rtx_insn *.
1001 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1002
1003 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1004
1005 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1006 above the conditional, and convert the check on GET_CODE to a
1007 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1008 the conditional. Simplify the conditional by using methods of
1009 "trial_seq".
1010
1011 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1012
1013 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1014 "link" from rtx to rtx_insn_list *, and use its methods for
1015 clarity and type-safety.
1016 (toggle_cancelled_flags): Likewise.
1017 (restore_last_backtrack_point): Likewise.
1018 (queue_to_ready): Use insn method of "link" in one place.
1019 (schedule_block): Strengthen local "link" from rtx to
1020 rtx_insn_list *, and use its methods for clarity and type-safety.
1021
1022 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1023
1024 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1025 param "insn" from const_rtx to const rtx_insn *.
1026 (sched_get_reverse_condition_uncached): Likewise.
1027 (sched_get_condition_with_rev): Likewise.
1028 (sched_has_condition_p): Likewise.
1029 (sched_insns_conditions_mutex_p): Likewise for both params.
1030 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1031 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1032 (setup_insn_reg_uses): Move local "list" to be more tightly
1033 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1034 its methods for clarity and type-safety.
1035 (sched_analyze_1): Strengthen local "pending" from rtx to
1036 rtx_insn_list *, and local "pending_mem" from rtx to
1037 rtx_expr_list *. Use methods of each for clarity and type-safety.
1038 (sched_analyze_2): Likewise.
1039 (sched_analyze_insn): Likewise.
1040
1041 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1042 param from const_rtx to const rtx_insn *.
1043 (sched_insns_conditions_mutex_p): Likewise for both params.
1044 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1045 param.
1046
1047 * system.h (CONST_CAST_RTX_INSN): New macro.
1048
1049 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1050
1051 * recog.c (peep2_attempt): Strengthen return type from rtx to
1052 rtx_insn *.
1053 (peep2_update_life): Likewise for params "last", "prev", removing
1054 a checked cast made redundant by this.
1055 (peephole2_optimize): Likewise for local "last".
1056
1057 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1058
1059 * basic-block.h (set_block_for_insn): Eliminate this macro in
1060 favor of...
1061 * rtl.h (set_block_for_insn): New inline function, imposing the
1062 requirement that the "insn" param is an rtx_insn *.
1063
1064 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1065
1066 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1067 rtx to rtx_insn *.
1068 * final.c (get_call_reg_set_usage): Likewise for first param,
1069 eliminating a checked cast.
1070 * regs.h (get_call_reg_set_usage): Likewise for first param.
1071 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1072 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1073 cast, replacing references to "x" with "call_insn" where
1074 appropriate.
1075 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1076 rtx_insn *, adding a checked cast.
1077
1078 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1079
1080 * output.h (final_scan_insn): Strengthen first param from rtx to
1081 rtx_insn *.
1082
1083 * final.c (final_scan_insn): Likewise, renaming it back from
1084 "uncast_insn" to "insn", eliminating the checked cast.
1085
1086 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1087 "vec" with an rtx_sequence * "seq", taking a copy of
1088 "final_sequence", and using methods of "seq" for clarity, and for
1089 type-safety in the calls to final_scan_insn.
1090 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1091 of "final_sequence" for clarity, and for type-safety in the call to
1092 final_scan_insn.
1093 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1094 rtx_sequence * and rename from "insn" to "seq".
1095
1096 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1097
1098 * jump.c (delete_related_insns): Introduce a new local "table" by
1099 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1100 get_labels method of "table" to simplify access to the labels in
1101 the jump table.
1102
1103 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1104
1105 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1106 f_minmaxs, f_minmaxd types.
1107
1108 2014-09-05 Richard Biener <rguenther@suse.de>
1109
1110 * cfgloop.c (mark_loop_for_removal): Record former header
1111 when ENABLE_CHECKING.
1112 * cfgloop.h (strut loop): Add former_header member when
1113 ENABLE_CHECKING.
1114 * loop-init.c (fix_loop_structure): Sanity check loops
1115 marked for removal if they re-appeared.
1116
1117 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1118
1119 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1120 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1121
1122 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1123 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1124 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1125 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1126 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1127 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1128 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1129 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1130 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1131 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1132 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1133 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1134 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1135 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1136 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1137 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1138 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1139 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1140 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1141 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1142 with int{32,16,8}_t.
1143
1144 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1145
1146 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1147 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1148 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1149 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1150 Remove temporary __asm__ and reimplement.
1151
1152 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1153
1154 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1155 handling cmge, cmgt, cmeq, cmtst.
1156
1157 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1158 cmlt, cmgeu, cmgtu, cmtst): Remove.
1159
1160 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1161 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1162 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1163 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1164
1165 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1166
1167 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1168 TYPES_TST): Define.
1169 (aarch64_fold_builtin): Update pattern for cmtst.
1170
1171 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1172 Declare.
1173
1174 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1175
1176 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1177 Switch operands, separate out more cases, refactor.
1178
1179 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1180
1181 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1182 argument; rename old version to...
1183 (aarch64_const_vec_all_same_in_range_p): ...this.
1184 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1185
1186 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1187
1188 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1189
1190 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1191 Remove qualifier_const_pointer, update comment.
1192
1193 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1194
1195 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1196
1197 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1198
1199 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1200 varargs with pointer parameter.
1201 (aarch64_simd_expand_builtin): pass pointer into previous.
1202
1203 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1204
1205 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1206 alus_ext.
1207
1208 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1209
1210 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1211 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1212 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1213 Replace temporary asm with call to builtin.
1214 (vrbit_p8, vrbitq_p8): New functions.
1215
1216 2014-09-05 Richard Biener <rguenther@suse.de>
1217
1218 * cfgloop.c (mark_loop_for_removal): New function.
1219 * cfgloop.h (mark_loop_for_removal): Declare.
1220 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1221 (merge_blocks): Likewise.
1222 (duplicate_block): Likewise.
1223 * except.c (sjlj_emit_dispatch_table): Likewise.
1224 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1225 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1226 (thread_through_loop_header): Likewise.
1227
1228 2014-09-05 Richard Biener <rguenther@suse.de>
1229
1230 PR middle-end/63148
1231 * fold-const.c (try_move_mult_to_index): Remove.
1232 (fold_binary_loc): Do not call it.
1233 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1234 from the base object again.
1235
1236 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1237
1238 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1239 DImode.
1240
1241 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1242
1243 PR target/55701
1244 * config/arm/arm.md (setmem): New pattern.
1245 * config/arm/arm-protos.h (struct tune_params): New fields.
1246 (arm_gen_setmem): New prototype.
1247 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1248 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1249 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1250 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1251 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1252 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1253 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1254 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1255 (arm_const_inline_cost): New function.
1256 (arm_block_set_max_insns): New function.
1257 (arm_block_set_non_vect_profit_p): New function.
1258 (arm_block_set_vect_profit_p): New function.
1259 (arm_block_set_unaligned_vect): New function.
1260 (arm_block_set_aligned_vect): New function.
1261 (arm_block_set_unaligned_non_vect): New function.
1262 (arm_block_set_aligned_non_vect): New function.
1263 (arm_block_set_vect, arm_gen_setmem): New functions.
1264
1265 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1266
1267 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1268
1269 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1270
1271 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1272
1273 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1274
1275 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1276 an rtx.
1277 * valtrack.h: Adjust.
1278
1279 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1280
1281 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1282 an rtx.
1283 (emit_jump_insn_before_noloc): Likewise.
1284 (emit_call_insn_before_noloc): Likewise.
1285 (emit_label_before): Likewise.
1286 (emit_label_after): Likewise.
1287 (emit_insn_before_setloc): Likewise.
1288 (emit_jump_insn_before_setloc): Likewise.
1289 (emit_call_insn_before_setloc): Likewise.
1290 (emit_call_insn_before): Likewise.
1291 * rtl.h: Adjust.
1292
1293 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1294
1295 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1296 rtx_insn *, eliminating a checked cast.
1297
1298 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1299
1300 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1301 const_rtx to const rtx_insn *.
1302 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1303 cast.
1304
1305 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1306
1307 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1308 fixup_args_size_notes.
1309 * expr.c (fixup_args_size_notes): Strengthen first two params from
1310 rtx to rtx_insn *, eliminating a checked cast.
1311 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1312 rtx to rtx_insn *.
1313
1314 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1315
1316 * haifa-sched.c (get_ready_element): Strengthen return type from
1317 rtx to rtx_insn *.
1318 * sched-int.h (get_ready_element): Likewise.
1319
1320 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1321
1322 PR target/63165
1323 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1324 indexed_or_indirect_operand instead of memory_operand.
1325 (floatsi<mode>2_lfiwzx_mem): Ditto.
1326
1327 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1328
1329 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1330 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1331 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1332
1333 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1334
1335 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1336 rtx.
1337 (get_last_nonnote_insn): Likewise.
1338 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1339 * resource.c (find_basic_block): Likewise.
1340 * rtl.h: Adjust.
1341 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1342 const_rtx.
1343
1344 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1345
1346 * genattr.c (main): Within the prototype of insn_latency written
1347 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1348 * genautomata.c (output_internal_maximal_insn_latency_func):
1349 Within the implementation of insn_latency written out to
1350 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1351 eliminating a pair of checked casts.
1352
1353 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1354
1355 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1356 rtx_insn *.
1357
1358 * rtl.h (eh_returnjump_p): Likewise.
1359
1360 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1361
1362 * Makefile.in (TAGS): Handle constructs in timevar.def.
1363
1364 2014-09-04 Guozhi Wei <carrot@google.com>
1365
1366 PR target/62040
1367 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1368 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1369 it into two patterns.
1370 (move_lo_quad_internal_be_<mode>): Likewise.
1371
1372 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1373
1374 * doc/options.texi: Document that Var and Init are required if CPP
1375 is given.
1376 * optc-gen.awk: Require Var and Init if CPP is given.
1377 * common.opt (Wpedantic): Use Init.
1378
1379 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1380
1381 * config/rs6000/rs6000.c (special_handling_values): Add
1382 SH_EXTRACT.
1383 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1384 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1385 as swappable with special handling SH_EXTRACT. Remove
1386 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1387 optimization.
1388 (adjust_extract): New function.
1389 (handle_special_swappables): Add default to case statement; add
1390 case for SH_EXTRACT that calls adjust_extract.
1391 (dump_swap_insn_table): Handle SH_EXTRACT.
1392
1393 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1394
1395 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1396 selection of 0th memory doubleword, regardless of endianness.
1397
1398 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1399
1400 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1401
1402 2014-09-04 Alan Modra <amodra@gmail.com>
1403
1404 PR debug/60655
1405 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1406 can't be output.
1407
1408 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1409
1410 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1411 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1412 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1413 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1414 * doc/tm.texi: Regenerate.
1415 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1416 selection logic to default_dwarf_frame_reg_mode.
1417
1418 2014-09-03 Marek Polacek <polacek@redhat.com>
1419
1420 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1421 by -Wall.
1422
1423 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1424
1425 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1426 the automodified register.
1427
1428 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1429
1430 * output.h (get_some_local_dynamic_name): Declare.
1431 * final.c (some_local_dynamic_name): New variable.
1432 (get_some_local_dynamic_name): New function.
1433 (final_end_function): Clear some_local_dynamic_name.
1434 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1435 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1436 (print_operand): Report an error if '%&' is used inappropriately.
1437 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1438 (get_some_local_dynamic_name_1): Delete.
1439 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1440 (rs6000_get_some_local_dynamic_name): Delete.
1441 (rs6000_get_some_local_dynamic_name_1): Delete.
1442 (print_operand): Report an error if '%&' is used inappropriately.
1443 * config/s390/s390.c (machine_function): Remove some_ld_name.
1444 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1445 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1446 * config/sparc/sparc.c: Include rtl-iter.h.
1447 (machine_function): Remove some_ld_name.
1448 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1449 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1450
1451 2014-09-03 Richard Henderson <rth@redhat.com>
1452
1453 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1454 (aarch64_popwb_pair_reg): Remove.
1455 (aarch64_set_frame_expr): Remove.
1456 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1457 the restore ops performed by the insns generated.
1458 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1459 insn. Perform the calls_eh_return addition later; do not attempt to
1460 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1461 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1462 special markup at all. Load cfun->machine->frame.hard_fp_offset
1463 into a local variable.
1464 (aarch64_frame_pointer_required): Don't check calls_alloca.
1465
1466 2014-09-03 Richard Biener <rguenther@suse.de>
1467
1468 * opts.c (default_options_optimization): Adjust
1469 max-combine-insns to 2 for -Og.
1470
1471 2014-09-03 Martin Jambor <mjambor@suse.cz>
1472
1473 PR ipa/62015
1474 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1475 pass-trough jump functions correctly.
1476
1477 2014-09-03 Martin Jambor <mjambor@suse.cz>
1478
1479 PR ipa/61986
1480 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1481 created replacements in ascending order of offsets.
1482 (known_aggs_to_agg_replacement_list): Likewise.
1483
1484 2014-09-03 Martin Liska <mliska@suse.cz>
1485
1486 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1487 is set to set uninitialized value for vnresult.
1488
1489 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1490
1491 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1492 for TARGET_MUST_PASS_IN_STACK.
1493
1494 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1495
1496 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1497 for TARGET_ARG_PARTIAL_BYTES.
1498
1499 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1500
1501 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1502 instructions for varargs implementation.
1503 (nds32_expand_epilogue): Emit stack adjustment instructions for
1504 varargs implementation.
1505
1506 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1507
1508 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1509 optimization detection.
1510
1511 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1512
1513 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1514 arguments.
1515 (nds32_function_arg_advance): Deal with nameless arguments.
1516 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1517 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1518 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1519
1520 2014-09-03 Richard Biener <rguenther@suse.de>
1521
1522 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1523 (struct bb_bitmap_sets): Remove deferred member.
1524 (BB_DEFERRED): Remove.
1525 (defer_or_phi_translate_block): Remove.
1526 (compute_antic_aux): Remove deferring of blocks, assert
1527 proper iteration order.
1528 (compute_antic): Do not set BB_DEFERRED.
1529 (eliminate): Allocate el_avail of proper size initially.
1530
1531 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1532
1533 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1534 according to the value of crtl->args.pretend_args_size.
1535
1536 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1537
1538 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1539 varargs information.
1540
1541 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1542
1543 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1544 implementation for TARGET_SETUP_INCOMING_VARARGS.
1545 (nds32_strict_argument_naming): Refine comment.
1546 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1547 Define for future implementation.
1548
1549 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
1550
1551 * config/i386/adxintrin.h (_subborrow_u32): New.
1552 (_addcarry_u32): Ditto.
1553 (_subborrow_u64): Ditto.
1554 (_addcarry_u64): Ditto.
1555 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1556 IX86_BUILTIN_SBB64.
1557 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1558 __builtin_ia32_sbb_u64
1559
1560 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1561
1562 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1563 GPR-specific stuff.
1564 (nds32_function_arg_advance): Likewise.
1565 (nds32_init_cumulative_args): Likewise.
1566 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1567 (NDS32_FIRST_GPR_REGNUM): Define.
1568 (NDS32_LAST_GPR_REGNUM): Define.
1569 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1570 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1571 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1572 (machine_function): Use GRP-specific stuff.
1573
1574 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1575
1576 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1577 (nds32_expand_epilogue): Likewise.
1578 (nds32_expand_prologue_v3push): Likewise.
1579 (nds32_expand_epilogue_v3pop): Likewise.
1580
1581 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1582
1583 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1584 v3push/v3pop for variadic function.
1585 * config/nds32/nds32.md (prologue, epilogue): Likewise.
1586
1587 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1588
1589 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1590 Check rtx for varargs implementation.
1591 (nds32_output_stack_pop): Likewise.
1592 * config/nds32/nds32-protos.h: Have a rtx argument for
1593 nds32_output_stack_push and nds32_output_stack_pop.
1594 * config/nds32/nds32.md: Likewise.
1595
1596 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1597
1598 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1599 to check if FUNC is an interrupt service routine.
1600 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1601
1602 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1603
1604 * config/nds32/nds32.h (machine_function): Add some fields for variadic
1605 arguments implementation.
1606
1607 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1608
1609 * config/nds32/nds32-predicates.c
1610 (nds32_valid_stack_push_pop): Rename to ...
1611 (nds32_valid_stack_push_pop_p): ... this.
1612 * config/nds32/nds32-protos.h: Likewise.
1613 * config/nds32/predicates.md: Likewise.
1614
1615 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1616
1617 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1618 (nds32_emit_stack_v3push): ... this.
1619 (nds32_gen_stack_v3pop): Rename to ...
1620 (nds32_emit_stack_v3pop): ... this and consider CFA restore
1621 information.
1622
1623 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1624
1625 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1626 (nds32_emit_stack_push_multiple): ... this.
1627 (nds32_gen_stack_pop_multiple): Rename to ...
1628 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1629 information.
1630
1631 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1632
1633 PR target/61078
1634 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1635 and add a second splitter to handle the remaining cases.
1636
1637 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1638
1639 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1640
1641 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1642
1643 * cfgexpand.c (label_rtx_for_bb): Change type to
1644 hash_map<basic_block, rtx_code_label *> *.
1645 (expand_gimple_basic_block): Adjust.
1646 (pass_expand::execute): Likewise.
1647
1648 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1649
1650 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1651 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1652 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1653 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1654 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1655 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1656 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1657 of rtx.
1658
1659 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1660
1661 * alloc-pool.c: Include coretypes.h.
1662 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1663 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1664 hash_set instead of htab.
1665 * ggc-page.c (in_gc): New variable.
1666 (ggc_free): Do nothing if a collection is taking place.
1667 (ggc_collect): Set in_gc appropriately.
1668 * ggc.h (gt_ggc_mx(const char *)): New function.
1669 (gt_pch_nx(const char *)): Likewise.
1670 (gt_ggc_mx(int)): Likewise.
1671 (gt_pch_nx(int)): Likewise.
1672 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1673 (hash_map::hash_entry::pch_nx): Likewise.
1674 (hash_map::hash_entry::pch_nx_helper): Likewise.
1675 (hash_map::hash_map): Adjust.
1676 (hash_map::create_ggc): New function.
1677 (gt_ggc_mx): Likewise.
1678 (gt_pch_nx): Likewise.
1679 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1680 (default_hashset_traits::pch_nx): Likewise.
1681 (hash_set::hash_entry::ggc_mx): Likewise.
1682 (hash_set::hash_entry::pch_nx): Likewise.
1683 (hash_set::hash_entry::pch_nx_helper): Likewise.
1684 (hash_set::hash_set): Adjust.
1685 (hash_set::create_ggc): New function.
1686 (hash_set::elements): Likewise.
1687 (gt_ggc_mx): Likewise.
1688 (gt_pch_nx): Likewise.
1689 * hash-table.h (hash_table::hash_table): Adjust.
1690 (hash_table::m_ggc): New member.
1691 (hash_table::~hash_table): Adjust.
1692 (hash_table::expand): Likewise.
1693 (hash_table::empty): Likewise.
1694 (gt_ggc_mx): New function.
1695 (hashtab_entry_note_pointers): Likewise.
1696 (gt_pch_nx): Likewise.
1697
1698 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1699
1700 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
1701 built-in definition.
1702 (XVCVUXDDP_SCALE): Likewise.
1703 (XVCVDPSXDS_SCALE): Likewise.
1704 (XVCVDPUXDS_SCALE): Likewise.
1705 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1706 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1707 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1708 VSX_BUILTIN_XVCVDPUXDS_SCALE.
1709 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1710 prototype.
1711 * config/rs6000/rs6000.c (real.h): New include.
1712 (rs6000_scale_v2df): New function.
1713 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1714 (UNSPEC_VSX_XVCVUXDDP): Likewise.
1715 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1716 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1717 (vsx_xvcvsxddp_scale): New define_expand.
1718 (vsx_xvcvsxddp): New define_insn.
1719 (vsx_xvcvuxddp_scale): New define_expand.
1720 (vsx_xvcvuxddp): New define_insn.
1721 (vsx_xvcvdpsxds_scale): New define_expand.
1722 (vsx_xvcvdpsxds): New define_insn.
1723 (vsx_xvcvdpuxds_scale): New define_expand.
1724 (vsx_xvcvdpuxds): New define_insn.
1725 * doc/extend.texi (vec_ctf): Add new prototypes.
1726 (vec_cts): Likewise.
1727 (vec_ctu): Likewise.
1728 (vec_splat): Likewise.
1729 (vec_div): Likewise.
1730 (vec_mul): Likewise.
1731
1732 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1733
1734 PR target/62275
1735 * config/arm/neon.md
1736 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1737 <v_cmp_result>): New pattern.
1738 * config/arm/iterators.md (NEON_VCVT): New int iterator.
1739 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1740 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1741 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1742 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1743 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1744
1745 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1746
1747 PR target/62275
1748 * config/arm/iterators.md (FIXUORS): New code iterator.
1749 (VCVT): New int iterator.
1750 (su_optab): New code attribute.
1751 (su): Likewise.
1752 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1753
1754 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1755
1756 * config/aarch64/predicates.md (aarch64_comparison_operation):
1757 New special predicate.
1758 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1759 aarch64_comparison_operation instead of matching an operator.
1760 Update operand numbers.
1761 (csinc3<mode>_insn): Likewise.
1762 (*csinv3<mode>_insn): Likewise.
1763 (*csneg3<mode>_insn): Likewise.
1764 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1765 * config/aarch64/aarch64.c (aarch64_get_condition_code):
1766 Return -1 instead of aborting on invalid condition codes.
1767 (aarch64_print_operand): Update aarch64_get_condition_code callsites
1768 to assert that the returned condition code is valid.
1769 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1770
1771 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
1772
1773 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1774 tree.def, and gimple.def
1775
1776 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1777 Balaji V. Iyer <balaji.v.iyer@intel.com>
1778 Igor Zamyatin <igor.zamyatin@intel.com>
1779
1780 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1781 (__cilkrts_cilk_for_64): Likewise.
1782 * cilk-common.c (declare_cilk_for_builtin): New function.
1783 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1784 __cilkrts_cilk_for_64 bultins.
1785 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1786 CILK_TI_F_LOOP_64.
1787 (cilk_for_32_fndecl): New define.
1788 (cilk_for_64_fndecl): Likewise.
1789 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1790 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1791 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1792 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1793 GF_OMP_FOR_COMBINED_INTO.
1794 * gimplify.c (gimplify_scan_omp_clauses): Added
1795 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1796 (gimplify_adjust_omp_clauses): Ditto.
1797 (gimplify_omp_for): Added CILK_FOR case.
1798 (gimplify_expr): Ditto.
1799 * omp-low.c: Include cilk.h.
1800 (extract_omp_for_data): Set appropriate kind for
1801 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1802 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1803 (create_omp_child_function_name): Added second argument to handle
1804 cilk_for case.
1805 (cilk_for_check_loop_diff_type): New function.
1806 (expand_cilk_for_call): Likewise.
1807 (expand_cilk_for): Likewise.
1808 (create_omp_child_function): Set cilk_for_count; handle the cases when
1809 it is true; call create_omp_child_function_name with second argument.
1810 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1811 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1812 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1813 * tree-nested.c (convert_nonlocal_omp_clauses): Added
1814 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1815 (convert_local_omp_clauses): Ditto.
1816 * tree-pretty-print.c (dump_omp_clause): Added
1817 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1818 (dump_generic_node): Added CILK_FOR case.
1819 * tree.c (omp_clause_num_ops): New element
1820 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1821 (omp_clause_code_name): New element _Cilk_for_count_.
1822 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1823 * tree.def: Add tree code for CILK_FOR.
1824
1825 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1826
1827 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1828 (ppc403-compare): Add "exts with dot" case.
1829 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1830 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1831 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1832 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1833 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1834 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1835 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1836 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1837 cell-cmp-microcoded): Similarly.
1838 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1839 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1840 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1841 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1842 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1843 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1844 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1845 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
1846 (power6-compare): Add "exts with dot" case.
1847 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
1848 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
1849 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
1850
1851 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
1852 if avoiding Cell microcode.
1853 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
1854 (is_cracked_insn): Ditto.
1855 (insn_must_be_first_in_group): Ditto.
1856 * config/rs6000/rs6000.md (dot): Adjust comment.
1857 (cell_micro): Handle exts+dot.
1858 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
1859 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
1860 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
1861 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
1862 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
1863 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
1864 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
1865
1866 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1867
1868 * config/rs6000/rs6000.md (QHSI): Delete.
1869 (EXTQI, EXTHI, EXTSI): New mode iterators.
1870 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1871 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1872 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1873 9 anonymous instructions, and 8 splitters): Delete.
1874 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1875 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1876 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1877 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1878 *zero_extendsi<mode>2_dot2): New.
1879
1880 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1881
1882 * config/rs6000/rs6000.md (any_extend): New code iterator.
1883 (u, su): New code attributes.
1884 (dmode, DMODE): New mode attributes.
1885 (<su>mul<mode>3_highpart): New.
1886 (*<su>mul<mode>3_highpart): New.
1887 (<su>mulsi3_highpart_le): New.
1888 (<su>muldi3_highpart_le): New.
1889 (<su>mulsi3_highpart_64): New.
1890 (<u>mul<mode><dmode>3): New.
1891 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1892 splitters): Delete.
1893 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1894 splitters): Delete.
1895
1896 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1897
1898 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1899 *mulsi3_internal2, and two splitters): Delete.
1900 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1901 Delete.
1902 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1903
1904 2014-09-02 Richard Biener <rguenther@suse.de>
1905
1906 PR tree-optimization/62695
1907 * tree-ssa-structalias.c (find_func_clobbers): Add missing
1908 vector truncate.
1909
1910 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
1911
1912 PR target/62312
1913 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1914
1915 2014-09-01 Andi Kleen <ak@linux.intel.com>
1916
1917 * file-find.c (add_prefix_begin): Add.
1918 (do_add_prefix): Rename from add_prefix with first argument.
1919 (add_prefix): Add new wrapper.
1920 * file-find.h (add_prefix_begin): Add.
1921 * gcc-ar.c (main): Support -B option.
1922
1923 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
1924
1925 * genemit.c: Include dumpfile.h.
1926 (gen_split): Print name of splitter function to dump file.
1927
1928 2014-09-01 Richard Biener <rguenther@suse.de>
1929
1930 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
1931 Use stack auto_vecs for constraint expressions.
1932 (find_func_aliases_for_call): Likewise.
1933 (find_func_aliases): Likewise.
1934 (find_func_clobbers): Likewise.
1935
1936 2014-09-01 Richard Biener <rguenther@suse.de>
1937
1938 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
1939 operands vector in most cases. Remove redundant code.
1940
1941 2014-09-01 Olivier Hainque <hainque@adacore.com>
1942
1943 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
1944 $WIND_BASE instead of designating a harcoded arbitrary home dir.
1945 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
1946
1947 2014-09-01 Richard Biener <rguenther@suse.de>
1948
1949 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
1950 copy_reference_ops_from_call, vn_nary_op_compute_hash,
1951 vn_reference_compute_hash, vn_reference_insert): Remove.
1952 (vn_reference_lookup_call): New function.
1953 * tree-ssa-sccvn.c (vn_reference_compute_hash,
1954 copy_reference_ops_from_ref, copy_reference_ops_from_call,
1955 vn_reference_insert, vn_nary_op_compute_hash): Make static.
1956 (create_reference_ops_from_call): Remove.
1957 (vn_reference_lookup_3): Properly update shared_lookup_references.
1958 (vn_reference_lookup_pieces): Assert that we updated
1959 shared_lookup_references properly.
1960 (vn_reference_lookup): Likewise.
1961 (vn_reference_lookup_call): New function.
1962 (visit_reference_op_call): Use it. Avoid re-building the
1963 reference ops.
1964 (visit_reference_op_load): Remove redundant lookup.
1965 (visit_reference_op_store): Perform special tail-merging work
1966 only when possibly doing tail-merging.
1967 (visit_use): Likewise.
1968 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
1969
1970 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1971
1972 PR target/62025
1973 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
1974 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
1975 (find_inc): Revert 2014-08-13 change.
1976
1977 2014-09-01 Marek Polacek <polacek@redhat.com>
1978
1979 PR middle-end/61903
1980 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
1981 Change the type of V to unsigned HOST_WIDE_INT.
1982
1983 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
1984
1985 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
1986 the size of byte markers.
1987 (do_shift_rotate): Fix confusion between host, target and marker byte
1988 size.
1989 (verify_symbolic_number_p): Likewise.
1990 (find_bswap_or_nop_1): Likewise.
1991 (find_bswap_or_nop): Likewise.
1992
1993 2014-09-01 Olivier Hainque <hainque@adacore.com>
1994
1995 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
1996 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
1997
1998 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1999
2000 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2001 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2002 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2003
2004 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2005
2006 PR sanitizer/61897
2007 PR sanitizer/62140
2008 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2009 (build_check_stmt): Likewise.
2010 (instrument_strlen_call): Likewise.
2011 (asan_expand_check_ifn): Likewise and fix types.
2012 (maybe_cast_to_ptrmode): New function.
2013
2014 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2015
2016 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2017
2018 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2019
2020 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2021
2022 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2023
2024 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2025 prefix to function labels when generating fast indirect calls.
2026
2027 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2028
2029 PR bootstrap/62304
2030
2031 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2032 param back from rtx_insn * to rtx. Rename param from "label" to
2033 "label_or_return", reintroducing "label" as an rtx_insn * after
2034 we've ensured it's not a RETURN.
2035 (first_active_target_insn): Likewise for return type and param;
2036 add a checked cast to rtx_insn * once we've ensured "insn" is not
2037 a RETURN.
2038 (steal_delay_list_from_target): Convert param "pnew_thread" back
2039 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2040 with JUMP_LABEL.
2041 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2042 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2043 cast once we've established we're not dealing with a RETURN,
2044 renaming subsequent uses of "thread" to "thread_insn".
2045 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2046 to JUMP_LABEL.
2047 (follow_jumps): Convert return type and param "label" from
2048 rtx_insn * back to rtx. Move initialization of "value" to after
2049 the handling for ANY_RETURN_P, adding a checked cast there to
2050 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2051 rename to "this_label_or_return", reintroducing "this_label" as
2052 an rtx_insn * once we've handled the case where it could be an
2053 ANY_RETURN_P.
2054 (fill_slots_from_thread): Rename param "thread" to
2055 "thread_or_return", converting from an rtx_insn * back to an rtx.
2056 Reintroduce name "thread" as an rtx_insn * local with a checked
2057 cast once we've handled the case of it being an ANY_RETURN_P.
2058 Convert local "new_thread" from an rtx_insn * back to an rtx.
2059 Add a checked cast when assigning to "trial" from "new_thread".
2060 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2061 checked cast to rtx_insn * from "new_thread" when invoking
2062 get_label_before.
2063 (fill_eager_delay_slots): Convert locals "target_label",
2064 "insn_at_target" from rtx_insn * back to rtx.
2065 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2066 (relax_delay_slots): Convert locals "trial", "target_label" from
2067 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2068 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2069 invoking update_block.
2070 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2071 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2072
2073 * resource.h (mark_target_live_regs): Undo erroneous conversion
2074 of second param of r214693, converting it back from rtx_insn * to
2075 rtx, since it could be a RETURN.
2076
2077 * resource.c (find_dead_or_set_registers): Similarly, convert
2078 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2079 could be writing back a RETURN. Rename local rtx_insn * "next" to
2080 "next_insn", and introduce "lab_or_return" as a local rtx,
2081 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2082 (mark_target_live_regs): Undo erroneous conversion
2083 of second param of r214693, converting it back from rtx_insn * to
2084 rtx, since it could be a RETURN. Rename it from "target" to
2085 "target_maybe_return", reintroducing the name "target" as a local
2086 rtx_insn * with a checked cast, after we've handled the case of
2087 ANY_RETURN_P.
2088
2089 2014-08-29 DJ Delorie <dj@redhat.com>
2090
2091 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2092 pointer size up to a power of two.
2093 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2094 (POINTER_SIZE_UNITS): New, rounded up value.
2095 * dwarf2asm.c (size_of_encoded_value): Use it.
2096 (dw2_output_indirect_constant_1): Likewise.
2097 * expmed.c (init_expmed_one_conv): We now know the sizes of
2098 partial int modes.
2099 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2100 * optabs.c (expand_float): Use precision, not size.
2101 (expand_fix): Likewise.
2102 * simplify-rtx (simplify_unary_operation_1): Likewise.
2103 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2104 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2105 (default_assemble_integer) Likewise.
2106 (dump_tm_clone_pairs): Likewise.
2107 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2108 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2109 (prepare_call_arguments): Likewise.
2110 * stor-layout.c (finalize_type_size): Preserve precision.
2111 (layout_type): Use precision, not size.
2112
2113 * expr.c (convert_move): If the target has an explicit converter,
2114 use it.
2115
2116 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2117
2118 * gdbinit.in: Skip various inline functions in rtl.h when
2119 stepping.
2120
2121 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2122
2123 PR bootstrap/62301
2124 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2125
2126 2014-08-29 Richard Biener <rguenther@suse.de>
2127
2128 PR tree-optimization/62291
2129 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2130 exactly the vector size needed and use quick_push.
2131 (phi_translate_1): Adjust comment.
2132 (valid_in_sets): Remove block argument and remove pointless
2133 checking of NAMEs.
2134 (dependent_clean): Adjust for removal of block argument.
2135 (clean): Likewise.
2136 (compute_antic_aux): Likewise.
2137 (compute_partial_antic_aux): Likewise.
2138
2139 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2140 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2141 Anna Tikhonova <anna.tikhonova@intel.com>
2142 Ilya Tocar <ilya.tocar@intel.com>
2143 Andrey Turetskiy <andrey.turetskiy@intel.com>
2144 Ilya Verbin <ilya.verbin@intel.com>
2145 Kirill Yukhin <kirill.yukhin@intel.com>
2146 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2147
2148 * config/i386/sse.md
2149 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2150 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2151 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2152 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2153
2154 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2155 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2156 Anna Tikhonova <anna.tikhonova@intel.com>
2157 Ilya Tocar <ilya.tocar@intel.com>
2158 Andrey Turetskiy <andrey.turetskiy@intel.com>
2159 Ilya Verbin <ilya.verbin@intel.com>
2160 Kirill Yukhin <kirill.yukhin@intel.com>
2161 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2162
2163 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2164 * config/i386/sse.md
2165 (define_mode_iterator VI4_128_8_256): New.
2166 (define_mode_iterator VI2_128_4_256): Ditto.
2167 (define_mode_iterator PMOV_DST_MODE): Rename into
2168 (define_mode_iterator PMOV_DST_MODE_1): this.
2169 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2170 Use PMOV_DST_MODE_1 mode iterator.
2171 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2172 Ditto.
2173 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2174 Ditto.
2175 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2176 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2177 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2178 (define_mode_iterator PMOV_DST_MODE_2): New.
2179 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2180 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2181 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2182 Ditto.
2183 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2184 (define_mode_attr pmov_dst_3): Ditto.
2185 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2186 (define_mode_attr pmov_suff_3): Ditto.
2187 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2188 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2189 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2190 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2191 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2192 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2193 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2194 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2195 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2196 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2197 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2198 (define_mode_attr pmov_dst_4): Ditto.
2199 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2200 (define_mode_attr pmov_suff_4): Ditto.
2201 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2202 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2203 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2204 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2205 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2206 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2207 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2208 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2209 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2210 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2211 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2212
2213 2014-08-29 Richard Biener <rguenther@suse.de>
2214
2215 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2216 NON_LVALUE_EXPR in gimple.
2217
2218 2014-08-29 Richard Biener <rguenther@suse.de>
2219
2220 PR middle-end/62292
2221 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2222 from previous refactoring.
2223 (gimple_fold_builtin_strncpy): Likewise.
2224
2225 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2226
2227 PR bootstrap/62300
2228 * function.c (assign_parm_setup_reg): Remove erroneous checked
2229 cast to rtx_insn * on result of gen_extend_insn in favor of
2230 introducing a new local rtx "pat".
2231
2232 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2233
2234 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2235 to silence warning.
2236 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2237
2238 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2239
2240 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2241 (next_insn): Likewise.
2242 * emit-rtl.c (next_insn): Likewise.
2243 (previous_insn): Likewise.
2244 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2245 "insn" and "next" from rtx to rtx_insn *.
2246 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2247 "insn", "insn1", "vliw_start", "prologue_end_note",
2248 "last_insn_in_packet".
2249
2250 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2251
2252 * shrink-wrap.h (active_insn_between): Strengthen both params from
2253 rtx to rtx_insn *.
2254 * function.c (active_insn_between): Likewise.
2255
2256 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2257
2258 * genattr.c (main): When writing out insn-attr.h, strengthen param
2259 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2260 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2261 writing out the definition of dfa_clear_single_insn_cache to the
2262 generated insn-automata.c
2263
2264 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2265
2266 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2267 rtx to rtx_insn *.
2268 (incr_ticks_for_insn): Likewise.
2269 (init_resource_info): Likewise.
2270
2271 * resource.c (init_resource_info): Likewise.
2272 (clear_hashed_info_for_insn): Likewise.
2273 (incr_ticks_for_insn): Likewise.
2274
2275 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2276 rtx to rtx_insn *.
2277 (steal_delay_list_from_target): Use methods of "seq".
2278 (try_merge_delay_insns): Use methods of "merged_insns".
2279 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2280 (reorg_redirect_jump): Likewise for param "jump".
2281
2282 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2283
2284 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2285 rtx to rtx_insn *.
2286 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2287 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2288 "set_insn".
2289 (s390_mainpool_finish): In three places, split out a local rtx
2290 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2291 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2292 and split another local rtx "insn" out into rtx "pat" and
2293 rtx_insn * "insn".
2294 * config/sh/sh.c (output_branchy_insn): Rather than working
2295 directly on operands[9], introduce local rtx_code_label *
2296 variables named "lab" in two places, working on them, and then
2297 assigning them to operands[9], so that the intervening operations
2298 are known by the type system to be on insns.
2299
2300 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2301
2302 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2303 const rtx_insn *.
2304
2305 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2306 in invocation of INSN_HAS_LOCATION.
2307
2308 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2309
2310 * config/rs6000/altivec.h (vec_xl): New #define.
2311 (vec_xst): Likewise.
2312 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2313 (XXSPLTD_V2DI): Likewise.
2314 (DIV_V2DI): Likewise.
2315 (UDIV_V2DI): Likewise.
2316 (MUL_V2DI): Likewise.
2317 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2318 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2319 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2320 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2321 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2322 (UNSPEC_VSX_DIVSD): Likewise.
2323 (UNSPEC_VSX_DIVUD): Likewise.
2324 (UNSPEC_VSX_MULSD): Likewise.
2325 (vsx_mul_v2di): New insn-and-split.
2326 (vsx_div_v2di): Likewise.
2327 (vsx_udiv_v2di): Likewise.
2328 (vsx_xxspltd_<mode>): New insn.
2329
2330 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2331
2332 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2333 NEXT_INSN.
2334 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2335 (NEXT_INSN): Likewise.
2336 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2337 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2338 const rtx_insn *.
2339 (no_labels_between_p): Likewise for both params.
2340
2341 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2342 cast when using NEXT_INSN on operands[2].
2343 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2344 "insn" from rtx to rtx_insn *, adding a checked cast.
2345 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2346 rtx_insn *.
2347 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2348 for third param.
2349 (arc_text_label): Likewise for param "insn".
2350 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2351 "insn".
2352 (arc_ccfsm_record_condition): Likewise for param "jump".
2353 (arc_text_label): Likewise for local "label".
2354 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2355 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2356 a method for typesafety. Add a checked cast.
2357 * config/arc/constraints.md (Clb): Add a checked cast when getting
2358 the CODE_LABEL from a LABEL_REF.
2359 * config/arm/arm.c (require_pic_register): Strengthen locals
2360 "seq", "insn" from rtx to rtx_insn *.
2361 (create_fix_barrier): Likewise for locals "selected", "next".
2362 (thumb1_reorg): Likewise for locals "prev", "insn".
2363 (arm_expand_prologue): Likewise for local "last".
2364 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2365 operands[0].
2366 (thumb2_output_casesi): Likewise for operands[2].
2367 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2368 strengthen local "insn" from rtx to rtx_insn *.
2369 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2370 type and param "insn".
2371 (find_prev_insn_start): Likewise.
2372 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2373 "prev".
2374 (gen_one_bundle): Likewise for loal "t".
2375 (find_load): Likewise for param "insn".
2376 (workaround_speculation): Likewise for locals "insn", "next",
2377 "target", "next_tgt".
2378 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2379 and for locals "insn", "within", "last".
2380 (count_unit_reqs): Likewise for params "head", "tail" and local
2381 "insn".
2382 (try_rename_operands): Likewise for params "head", "tail".
2383 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2384 (struct c6x_sched_context): Likewise for fields
2385 "last_scheduled_insn", "last_scheduled_iter0".
2386 (init_sched_state): Replace NULL_RTX with NULL.
2387 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2388 to rtx_insn *.
2389 (undo_split_delayed_nonbranch): Likewise for param and for local
2390 "prev".
2391 (conditionalize_after_sched): Likewise for local "insn".
2392 (bb_earliest_end_cycle): Likewise.
2393 (filter_insns_above): Likewise for locals "insn", "next".
2394 (hwloop_optimize): Remove redundant checked cast.
2395 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2396 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2397 NULL_RTX with NULL.
2398 (cris_simple_epilogue): Likewise.
2399 (cris_expand_prologue): Likewise.
2400 (cris_expand_epilogue): Likewise.
2401 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2402 local "insn" from rtx to rtx_insn *.
2403 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2404 (struct frv_packet_group): Likewise for the elements within array
2405 fields "insns", "sorted", and for field "nop".
2406 (frv_packet): Likewise for the elements within array field
2407 "insns".
2408 (frv_add_insn_to_packet): Likewise for param "insn".
2409 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2410 "last".
2411 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2412 (frv_sort_insn_group_1): Likewise for local "insn".
2413 (frv_optimize_membar_local): Likewise.
2414 (frv_align_label): Likewise for locals "x", "last", "barrier",
2415 "label".
2416 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2417 local.
2418 (ia64_sched_init): Likewise for local "insn".
2419 (scheduled_good_insn): Likewise for param "last".
2420 (struct _ia64_sched_context): Likewise for field
2421 "last_scheduled_insn".
2422 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2423 (struct bundle_state): Likewise for field "insn".
2424 (issue_nops_and_insn): Likewise for param "insn".
2425 (get_next_important_insn): Likewise for return type and both
2426 params.
2427 (ia64_add_bundle_selector_before): Likewise for param "insn".
2428 (bundling): Likewise for params "prev_head_insn", "tail" and
2429 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2430 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2431 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2432 Strengthen final param from rtx to rtx_insn *.
2433 (iq2000_move_1word): Likewise for second param.
2434 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2435 param "cur_insn" and local "next_insn".
2436 (iq2000_move_1word): Likewise for param "insn".
2437 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2438 casts when using NEXT_INSN on operands[1].
2439 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2440 "insn" from rtx to rtx_insn *.
2441 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2442 "x", introducing local rtx_insn * "insn" for when working with the
2443 CODE_LABEL of the LABEL_REF.
2444 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2445 rtx_insn *.
2446 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2447 param.
2448 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2449 type.
2450 (conditionalize_block): Likewise for return type and param.
2451 (mcore_is_dead): Likewise for param "first" and local "insn".
2452 (emit_new_cond_insn): Likewise for return type.
2453 (conditionalize_block): Likewise for return type, param, and
2454 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2455 "newinsn".
2456 (conditionalize_optimization): Likewise for local "insn".
2457 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2458 using NEXT_INSN.
2459 * config/microblaze/microblaze.md: Add checked casts when using
2460 NEXT_INSN.
2461 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2462 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2463 and rtx_insn * "insn".
2464 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2465 checked cast when using NEXT_INSN on operands[2].
2466 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2467 local "insn" from rtx to rtx_insn *.
2468 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2469 Likewise.
2470 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2471 Add a checked cast when using NEXT_INSN on operands[1].
2472 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2473 rtx to rtx_insn *.
2474 (pa_output_cbranch): Likewise for final param.
2475 (pa_output_lbranch): Likewise for second param.
2476 (pa_output_bb): Likewise for third param.
2477 (pa_output_bvb): Likewise.
2478 (pa_output_dbra): Likewise for second param.
2479 (pa_output_movb): Likewise.
2480 (pa_output_parallel_movb): Likewise.
2481 (pa_output_parallel_addb): Likewise.
2482 (pa_output_millicode_call): Likewise for first param.
2483 (pa_output_mul_insn): Likewise for second param.
2484 (pa_output_div_insn): Likewise for third param.
2485 (pa_output_mod_insn): Likewise for second param.
2486 (pa_jump_in_call_delay): Likewise for param.
2487 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2488 (pa_output_div_insn): Likewise.
2489 (pa_output_mod_insn): Likewise.
2490 (pa_output_cbranch): Likewise.
2491 (pa_output_lbranch): Likewise.
2492 (pa_output_bb): Likewise.
2493 (pa_output_bvb): Likewise.
2494 (pa_output_dbra): Likewise.
2495 (pa_output_movb): Likewise.
2496 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2497 to simplify and for typesafety.
2498 (pa_output_call): Use method of rtx_sequence *.
2499 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2500 (pa_jump_in_call_delay): Likewise.
2501 (pa_output_parallel_movb): Likewise.
2502 (pa_output_parallel_addb): Likewise.
2503 (pa_following_call): Likewise.
2504 (pa_combine_instructions): Likewise for locals "anchor",
2505 "floater".
2506 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2507 locals "start", "end".
2508 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2509 param "insn" and local "local_insn".
2510 (picochip_final_prescan_insn): Likewise for local "local_insn".
2511 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2512 local "insn".
2513 (uses_TOC): Likewise.
2514 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2515 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2516 splitting out to more tightly-scoped locals, 3 as rtx and one as
2517 rtx_insn *.
2518 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2519 to rtx_insn *.
2520 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2521 where needed.
2522 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2523 to rtx_insn *.
2524 (fixup_addr_diff_vecs): Likewise.
2525 (reg_unused_after): Likewise for param 2.
2526 (sh_can_redirect_branch): Likewise for both params.
2527 (check_use_sfunc_addr): Likewise for param 1.
2528 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2529 (find_barrier): Likewise for local "last_got".
2530 (gen_block_redirect): Likewise for return type, param "jump" and
2531 locals "prev", "scan", "next", "insn".
2532 (struct far_branch): Likewise for fields "near_label",
2533 "insert_place", "far_label".
2534 (gen_far_branch): Likewise for local "jump".
2535 (fixup_addr_diff_vecs): Likewise for param "first" and locals
2536 "insn", "prev".
2537 (barrier_align): Likewise for param and for locals "prev", "x".
2538 Introduce local rtx_sequence * "prev_seq" and use insn method for
2539 typesafety and clarity.
2540 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2541 (get_dest_uid): Likewise for local "dest".
2542 (split_branches): Likewise for locals "next", "beyond", "label",
2543 "block", "far_label". Add checked casts when assigning to
2544 bp->far_label and "far_label".
2545 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2546 (sequence_insn_p): Likewise.
2547 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
2548 more loop-scoped rtx "insn" when walking LABEL_REFS.
2549 (sh_can_redirect_branch): Strengthen both params from rtx to
2550 rtx_insn *.
2551 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
2552 new local rtx_sequence * "seq" via a dyn_cast, and use a method
2553 for clarity and typesafety.
2554 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2555 "insn" from rtx to rtx_insn *.
2556 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2557 when using NEXT_INSN on the CODE_LABEL in operands[2].
2558 (define_insn "casesi_worker_2"): Likewise.
2559 (define_insn "casesi_shift_media"): Likewise.
2560 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2561 operands[3].
2562 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2563 Strengthen field "insn" from rtx to rtx_insn *.
2564 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2565 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2566 param "start_insn" and local "start_insn".
2567 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2568 field "insn".
2569 (find_set_of_reg_bb): Likewise for param "insn".
2570 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2571 (trace_reg_uses): Likewise for param "start_insn".
2572 (sh_treg_combine::cbranch_trace): Likewise for field
2573 "cbranch_insn".
2574 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2575 param "insn".
2576 (sh_treg_combine::record_set_of_reg): Likewise for param
2577 "start_insn" and local "i".
2578 (sh_treg_combine::can_remove_cstore): Likewise for local
2579 "prev_insn".
2580 (sh_treg_combine::try_optimize_cbranch): Likewise for param
2581 "insn".
2582 (sh_treg_combine::execute): Likewise for local "i".
2583 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2584 param.
2585 (sparc_check_64): Likewise for second param.
2586 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2587 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
2588 dyn_cast, using its insn method for typesafety and clarity.
2589 (empty_delay_slot): Strengthen param "insn" from rtx to
2590 rtx_insn *.
2591 (set_extends): Likewise.
2592 (sparc_check_64): Likewise.
2593 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2594 for locals "seq", "last_insn".
2595 (combine_bnp): Likewise for param "insn".
2596 (xstormy16_reorg): Likewise for local "insn".
2597 * config/v850/v850.c (substitute_ep_register): Likewise for params
2598 "first_insn", "last_insn" and local "insn".
2599 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2600 elements of "regs" array, and local "insn".
2601 * except.c (emit_note_eh_region_end): Likewise for param "insn".
2602 * final.c (final_sequence): Strengthen this global from rtx to
2603 rtx_sequence *.
2604 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2605 rtx_insn *.
2606 (final_scan_insn): Update assignment to "final_sequence" to be
2607 from "seq", the cast version of "body", for type-safety.
2608 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2609 "insns" from rtx to rtx_insn *.
2610 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2611 * genattr.c (main): When writing out generated insn-attr.h,
2612 strengthen params 1 and 3 of eligible_for_delay,
2613 eligible_for_annul_true, eligible_for_annul_false from rtx to
2614 rtx_insn *.
2615 * genattrtab.c (write_eligible_delay): Likewise when writing out
2616 generated insn-attrtab.c; also local "insn" the generated
2617 functions.
2618 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2619 to rtx_insn *.
2620 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2621 "start_label" from rtx to rtx_insn *.
2622 * ira.c (decrease_live_ranges_number): Likewise for local "p".
2623 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2624 "insns" and local "insn".
2625 (validate_equiv_mem): Likewise for param "start" and local "insn".
2626 (memref_used_between_p): Likewise for params "start", "end" and
2627 local "insn".
2628 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2629 final param.
2630 * loop-doloop.c (doloop_optimize): Within region guarded by
2631 INSN_P (doloop_pat), introduce a new local rtx_insn *
2632 "doloop_insn" via a checked cast, and use it for typesafety,
2633 eventually writing the value back into doloop_pat.
2634 * output.h (final_sequence): Strengthen this global from rtx to
2635 rtx_sequence *.
2636 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2637 reintroducing "insn" as an rtx_insn * via a checked cast.
2638 Strengthen param "attempt" and local "new_insn"from rtx to
2639 rtx_insn *.
2640 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2641 to rtx_insn *.
2642 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2643 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2644 "p" in favor of more tightly-scoped replacements, sometimes rtx
2645 and sometimes rtx_insn *, as appropriate.
2646 (delete_output_reload): Eliminate top-level rtx "i1", splitting
2647 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2648 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
2649 local "trial" from rtx to rtx_insn *.
2650 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2651 rtx to rtx_insn *. Strenghten local "pat" from rtx to
2652 rtx_sequence * and use methods for clarity and typesafety.
2653 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2654 rtx to rtx_insn *. Strenghten local "li" from rtx to
2655 rtx_insn_list * and use its methods for clarity and typesafety.
2656 (steal_delay_list_from_target): Strengthen param "insn" from rtx
2657 to rtx_insn *.
2658 (steal_delay_list_from_fallthrough): Likewise.
2659 (try_merge_delay_insns): Likewise for param "thread" and locals
2660 "trial", "next_trial", "delay_insn".
2661 (redundant_insn): Likewise for param "target" and local "trial".
2662 (own_thread_p): Likewise for param "thread" and locals
2663 "active_insn", "insn".
2664 (get_label_before): Likewise for param "insn".
2665 (fill_simple_delay_slots): Likewise for local "new_label"; use
2666 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2667 (label_before_next_insn): Strengthen return type and local "insn"
2668 from rtx to rtx_insn *.
2669 (relax_delay_slots): Likewise for locals "other", "tmp".
2670 (make_return_insns): Likewise for param "first" and locals "insn",
2671 "jump_insn", "prev". Move declaration of "pat" to its assignment
2672 and strengthen from rtx to rtx_sequence *. Use its methods for
2673 clarity and typesafety.
2674 * rtlanal.c (no_labels_between_p): Strengthen params from
2675 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
2676 rtx_insn *.
2677 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2678 from const_rtx to const rtx_insn *.
2679 (reg_set_between_p): Rename param "from_insn" to
2680 "uncast_from_insn", and reintroduce "from_insn" as a
2681 const rtx_insn * via a checked cast.
2682 (modified_between_p): Likewise for param "start" as "uncast_start".
2683 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2684 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2685 "tmp", head" from rtx to rtx_insn *.
2686 (recompute_rev_top_order): Likewise for local "insn".
2687 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2688 * store-motion.c (build_store_vectors): Likewise for local "insn".
2689 Strengthen local "st" from rtx to rtx_insn_list * and use methods
2690 for clarity and typesafety.
2691 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2692 rtx to rtx_insn *.
2693 (computation_cost): Likewise for local "seq".
2694 (get_address_cost): Likewise.
2695
2696 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2697
2698 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2699 const rtx_insn *.
2700 (label_is_jump_target_p): Likewise for second param.
2701
2702 * rtlanal.c (tablejump_p): Likewise for param "insn".
2703 (label_is_jump_target_p): Likewise for param "jump_insn".
2704
2705 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2706
2707 * rtl.h (find_first_parameter_load): Strengthen return type and
2708 both params from rtx to rtx_insn *.
2709 * rtlanal.c (find_first_parameter_load): Strengthen return type,
2710 both params and locals "before", "first_set" from rtx to
2711 rtx_insn *. Remove now-redundant cast.
2712 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2713
2714 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2715
2716 * rtl.h (find_last_value): Delete.
2717 * rtlanal.c (find_last_value): Delete.
2718
2719 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2720
2721 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2722 from rtx to rtx_insn *.
2723 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2724 rtx "note" with new local rtx_insn * "new_head" when calculating
2725 head insn of new basic block.
2726 * combine.c (combine_split_insns): Strengthen return type and local
2727 "ret" from rtx to rtx_insn *.
2728 (likely_spilled_retval_p): Likewise for locals "use" and "p".
2729 (try_combine): Eliminate local "m_split", splitting into new
2730 locals "m_split_insn" and "m_split_pat".
2731 (find_split_point): Strengthen local "seq" from rtx into
2732 rtx_insn *.
2733 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2734 locals "label", "branch".
2735 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2736 for local "insn".
2737 (define_expand "umulsi3_highpart"): Likewise for local "insn".
2738 * dse.c (note_add_store_info): Likewise for fields "first",
2739 "current".
2740 (note_add_store): Likewise for local "insn".
2741 (emit_inc_dec_insn_before): Likewise for locals "insn",
2742 "new_insn", "cur".
2743 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2744 (replace_read): Likewise for locals "insns", "this_insn".
2745 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2746 (notice_eh_throw): Likewise for param "insn".
2747 (before_next_cfi_note): Likewise for return type, param, and local
2748 "prev".
2749 (connect_traces): Likewise for local "note".
2750 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2751 (verify_rtl_sharing): Likewise.
2752 (unshare_all_rtl_in_chain): Likewise for param "insn".
2753 (get_first_nonnote_insn): Likewise for local "insn".
2754 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
2755 "seq" and use its methods to clarify things.
2756 (next_insn): Strengthen return type from rtx to rtx_insn *.
2757 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2758 local rtx_insn * using a checked cast, dropping a checked cast
2759 made redundant by this change. Use a cast to and method of
2760 rtx_sequence to clarify the code.
2761 (previous_insn): Rename param "insn" to "uncast_insn" and
2762 reintroduce "insn" as a local rtx_insn * using a checked cast,
2763 dropping a checked cast made redundant by this change. Use a cast
2764 to and method of rtx_sequence to clarify the code.
2765 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2766 reintroduce "insn" as a local rtx_insn * using a checked cast,
2767 dropping a checked cast made redundant by this change.
2768 (next_nonnote_insn_bb): Likewise.
2769 (prev_nonnote_insn): Likewise.
2770 (prev_nonnote_insn_bb): Likewise.
2771 (next_nondebug_insn): Likewise.
2772 (prev_nondebug_insn): Likewise.
2773 (next_nonnote_nondebug_insn): Likewise.
2774 (prev_nonnote_nondebug_insn): Likewise.
2775 (next_real_insn): Likewise.
2776 (prev_real_insn): Likewise.
2777 (next_active_insn): Likewise.
2778 (prev_active_insn): Likewise.
2779 (next_cc0_user): Likewise. Use rtx_sequence and a method for
2780 clarity.
2781 (prev_cc0_setter): Likewise.
2782 (try_split): Rename param "trial" to "uncast_trial" and
2783 reintroduce "insn" as a local rtx_insn * using a checked cast,
2784 dropping checked casts made redundant by this change.
2785 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2786 rtx to rtx_insn *.
2787 (remove_insn): Rename param "insn" to "uncast_insn" and
2788 reintroduce "insn" as a local rtx_insn * using a checked cast.
2789 (emit_pattern_after_setloc): Likewise for param "after", as
2790 "uncast_after".
2791 (emit_pattern_after): Likewise. Strengthen local "prev" from
2792 rtx to rtx_insn *.
2793 (emit_pattern_before_setloc): Rename param "before" to
2794 "uncast_before" and reintroduce "before" as a local rtx_insn *
2795 using a checked cast. Strengthen locals "first", "last" from
2796 rtx to rtx_insn *.
2797 (emit_pattern_before): Likewise rename/cast param "before" to
2798 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2799 * except.c (copy_reg_eh_region_note_forward): Strengthen param
2800 "first" and local "insn" from rtx to rtx_insn *.
2801 (copy_reg_eh_region_note_backward): Likewise for param "last"
2802 and local "insn".
2803 * expr.c (fixup_args_size_notes): Rename param "last" to
2804 "uncast_last" and reintroduce "last" as a local rtx_insn *
2805 using a checked cast. Strengthen local "insn" from rtx to
2806 rtx_insn *.
2807 * function.c (set_insn_locations): Strengthen param "insn" from
2808 rtx to rtx_insn *.
2809 (record_insns): Likewise for param "insns" and local "tmp".
2810 (active_insn_between): Rename param "tail" to
2811 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2812 using a checked cast.
2813 (thread_prologue_and_epilogue_insns): Split out top-level local
2814 rtx "seq" into three different rtx_insn * locals. Strengthen
2815 local "prologue_seq" from rtx to rtx_insn *.
2816 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2817 from rtx to rtx_insn *.
2818 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2819 (priority): Likewise for locals "prev_first", "twin".
2820 (setup_insn_max_reg_pressure): Likewise for param "after".
2821 (sched_setup_bb_reg_pressure_info): Likewise.
2822 (no_real_insns_p): Strengthen params from const_rtx to
2823 const rtx_insn *.
2824 (schedule_block): Strengthen local "next_tail" from rtx to
2825 rtx_insn *.
2826 * ifcvt.c (find_active_insn_before): Strengthen return type and
2827 param "insn" from rtx to rtx_insn *.
2828 (find_active_insn_after): Likewise.
2829 (cond_exec_process_insns): Likewise for param "start" and local "insn".
2830 (cond_exec_process_if_block): Likewise for locals "then_start",
2831 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2832 (noce_process_if_block): Likewise for local "jump".
2833 (merge_if_block): Likewise for two locals named "end".
2834 (cond_exec_find_if_block): Likewise for local "last_insn".
2835 * jump.c (delete_related_insns): Rename param "insn" to
2836 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2837 checked cast. Strengthen local "p" from rtx to rtx_insn *.
2838 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2839 NULL.
2840 (split_reg): Likewise.
2841 * lra.c (lra_process_new_insns): Likewise.
2842 * modulo-sched.c (permute_partial_schedule): Strengthen param
2843 "last" from rtx to rtx_insn *.
2844 * optabs.c (add_equal_note): Likewise for param "insns" and local
2845 "last_insn".
2846 (expand_binop_directly): Add checked casts to rtx_insn * within
2847 NEXT_INSN (pat) uses.
2848 (expand_unop_direct): Likewise.
2849 (maybe_emit_unop_insn): Likewise.
2850 * recog.c (peep2_attempt): Strengthen locals "last",
2851 "before_try", "x" from rtx to rtx_insn *.
2852 * reorg.c (optimize_skip): Strengthen return type and local
2853 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
2854 and locals "trial", "next_trial" from rtx to rtx_insn *.
2855 * resource.c (next_insn_no_annul): Strengthen return type and
2856 param "insn" from rtx to rtx_insn *. Use a cast to and method of
2857 rtx_sequence to clarify the code.
2858 (mark_referenced_resources): Add a checked cast to rtx_insn *
2859 within PREV_INSN (x).
2860 (find_dead_or_set_registers): Strengthen return type, param
2861 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
2862 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
2863 to rtx_insn **.
2864 (mark_target_live_regs): Strengthen params "insns" and "target",
2865 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
2866 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2867 the code.
2868 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2869 from rtx to rtx_insn *.
2870 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2871 from rtx to rtx_insn *.
2872 (copy_reg_eh_region_note_backward): Likewise.
2873 (unshare_all_rtl_in_chain): Likewise for sole param.
2874 (dump_rtl_slim): Strengthen second and third params from const_rtx
2875 to const rtx_insn *.
2876 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2877 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2878 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2879 "next_tail" from rtx to rtx_insn *.
2880 (begin_move_insn): Likewise for local "next".
2881 * sched-int.h (sched_free_deps): Likewise for first and second
2882 params.
2883 (no_real_insns_p): Strengthen both params from const_rtx to
2884 const rtx_insn *.
2885 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2886 rtx to rtx_insn *.
2887 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2888 "next_tail".
2889 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2890 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2891 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2892 rtx_insn *.
2893 (debug_rtl_slim): Strengthen params "first" and "last" from
2894 const_rtx to const rtx_insn *.
2895 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2896 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2897 (convert_to_simple_return): Likewise for param "returnjump".
2898 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2899 "prologue_seq".
2900 (convert_to_simple_return): Likewise for param "returnjump".
2901 * valtrack.c (propagate_for_debug): Likewise for params
2902 "insn", "last".
2903 * valtrack.h (propagate_for_debug): Likewise for second param.
2904
2905 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2906
2907 * output.h (insn_current_reference_address): Strengthen param
2908 from rtx to rtx_insn *.
2909 * final.c (insn_current_reference_address): Likewise.
2910
2911 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2912
2913 * basic-block.h (inside_basic_block_p): Strengthen param from
2914 const_rtx to const rtx_insn *.
2915 * cfgbuild.c (inside_basic_block_p): Likewise.
2916
2917 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2918
2919 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
2920 rtx_insn *.
2921 (get_trace_info): Likewise for param "insn".
2922 (save_point_p): Likewise.
2923 (maybe_record_trace_start): Likewise for both params.
2924 (maybe_record_trace_start_abnormal): Likewise.
2925 (create_trace_edges): Likewise for sole param and for three of the
2926 locals named "lab".
2927 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
2928 to rtx_insn *, and update a call to pat->element to pat->insn.
2929
2930 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2931
2932 * function.h (struct expr_status): Convert field "x_forced_labels"
2933 from rtx_expr_list * to rtx_insn_list *.
2934
2935 * cfgbuild.c (make_edges): Convert local "x" from an
2936 rtx_expr_list * to an rtx_insn_list *, replacing use of
2937 "element" method with "insn" method.
2938 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2939 * except.c (sjlj_emit_dispatch_table): Replace use of
2940 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
2941 forced_labels.
2942 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
2943 rtx_expr_list * to an rtx_insn_list *, replacing use of
2944 "element" method with "insn" method.
2945 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2946 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
2947 rtx_insn *, adding a checked cast. Replace use of
2948 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
2949 forced_labels.
2950 (expand_label): Likewise for local "label_r".
2951
2952 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2953
2954 * function.h (struct rtl_data): Convert field
2955 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
2956 rtx_insn_list *.
2957 * rtl.h (remove_node_from_insn_list): New prototype.
2958
2959 * builtins.c (expand_builtin): When prepending to
2960 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2961 gen_rtx_EXPR_LIST.
2962 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
2963 to rtx_insn_list *, and use its "insn" method rather than
2964 "element" method.
2965 * cfgrtl.c (delete_insn): Use new function
2966 remove_node_from_insn_list rather than
2967 remove_node_from_expr_list.
2968 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
2969 to rtx_insn_list *, and use its "insn" method rather than
2970 "element" method.
2971 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2972 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2973 * rtlanal.c (remove_node_from_insn_list): New function, adapted
2974 from remove_node_from_expr_list.
2975 * stmt.c (expand_label): When prepending to
2976 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2977 gen_rtx_EXPR_LIST.
2978
2979 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2980
2981 * function.h (struct rtl_data): Strengthen fields "x_return_label"
2982 and "x_naked_return_label" from rtx to rtx_code_label *.
2983
2984 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2985
2986 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
2987 (SET_NEXT_INSN): Likewise.
2988 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
2989
2990 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
2991 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
2992 to split out the SEQUENCE from local "bundle", strengthening the
2993 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
2994 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
2995 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
2996 and the type of the elements of the "slot" array from rtx to
2997 rtx_insn *.
2998 (reorg_split_calls): Likewise for locals "insn" and "next", and
2999 the type of the elements of the "slot" array.
3000
3001 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3002 array.
3003 (frv_function_prologue): Likewise for locals "insn", "next",
3004 "last_call".
3005 (frv_register_nop): Introduce a local "nop_insn" to be the
3006 rtx_insn * containing rtx "nop".
3007
3008 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3009 used as an insn and sometimes as a pattern, so rename it to
3010 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3011 using it where dealing with the core insn.
3012
3013 * config/picochip/picochip.c (reorder_var_tracking_notes):
3014 Strengthen locals "insn", "next", "last_insn", "queue",
3015 "next_queue", "prev" from rtx to rtx_insn *.
3016
3017 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3018 the second param is an rtx_insn ** rather than an rtx **.
3019 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3020 from rtx to rtx_sequence *, and introduce local named "sequence",
3021 using methods of rtx_sequence to clarify the code.
3022 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3023 use its methods.
3024 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3025 Rename param "after" to "uncast_after", reintroducing "after" as a
3026 local rtx_insn * with a checked cast.
3027 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3028 reintroducing "after" as a local rtx_insn * with a checked cast.
3029 Strengthen local "last" from rtx to rtx_insn * and remove the
3030 now-redundant checked casts.
3031 (copy_delay_slot_insn): Strengthen return type and param from rtx
3032 to rtx_insn *.
3033
3034 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3035 "last" from rtx to rtx_insn *.
3036
3037 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3038
3039 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3040 param from rtx to rtx_insn *.
3041
3042 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3043
3044 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3045 and local "insn" from rtx to rtx_insn *.
3046 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3047 (unfilled_slots_next): Likewise.
3048 (function_return_label): Strengthen from rtx to rtx_code_label *.
3049 (function_simple_return_label): Likewise.
3050 (first_active_target_insn): Strengthen return type and param from
3051 rtx to rtx_insn *.
3052 (find_end_label): Strengthen return type from rtx to
3053 rtx_code_label *; strengthen locals as appropriate.
3054 (emit_delay_sequence): Strengthen return type, param "insn" and
3055 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3056 and local "li" from rtx to rtx_insn_list *, using methods of
3057 rtx_insn_list for clarity and typesafety.
3058 (add_to_delay_list): Strengthen return type and param "insn" from
3059 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3060 rtx_insn_list * and use methods of rtx_insn_list.
3061 (delete_from_delay_slot): Strengthen return type, param "insn",
3062 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3063 Strengthen local "seq" from rtx to rtx_sequence *, and local
3064 "delay_list" from rtx to rtx_insn_list *, using methods of
3065 rtx_sequence for clarity and type-safety.
3066 (delete_scheduled_jump): Add checked cast when invoking
3067 delete_from_delay_slot. Strengthen local "trial" from rtx to
3068 rtx_insn *.
3069 (optimize_skip): Strengthen return type and local "delay_list"
3070 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3071 rtx_insn *.
3072 (steal_delay_list_from_target): Strengthen return type, param
3073 "delay_list" and local "new_delay_list" from rtx to
3074 rtx_insn_list *. Strengthen param "seq" from rtx to
3075 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3076 rtx_insn **.
3077 Split out local "temp" into multiple more-tightly scoped locals:
3078 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3079 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3080 Strengthen locals named "trial" from rtx to rtx_insn *.
3081 (steal_delay_list_from_fallthrough): Strengthen return type and
3082 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3083 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3084 Strengthen local "trial" from rtx to rtx_insn *.
3085 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3086 to rtx_insn_list * and use its methods. Strengthen local "pat"
3087 from rtx to rtx_sequence * and use its methods. Strengthen locals
3088 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3089 (get_label_before): Strengthen return type and local "label" from
3090 rtx to rtx_insn *.
3091 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3092 "next_trial", "next", prev". Strengthen local "delay_list" from
3093 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3094 rtx_insn **.
3095 (follow_jumps): Strengthen return type, param "label" and locals
3096 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3097 (fill_slots_from_thread): Strengthen return type, param
3098 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3099 "insn", "thread", "opposite_thread" and locals "new_thread",
3100 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3101 "sequence" from a checked cast to rtx_sequence so that we can call
3102 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3103 with an rtx_sequence *.
3104 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3105 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3106 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3107 (relax_delay_slots): Strengthen param "first" and locals "insn",
3108 "next", "trial", "delay_insn", "target_label" from rtx to
3109 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3110 Introduce a local "trial_seq" for PATTERN (trial) of type
3111 rtx_sequence *, in both cases using methods of rtx_sequence.
3112 (dbr_schedule): Strengthen param "first" and locals "insn",
3113 "next", "epilogue_insn" from rtx to rtx_insn *.
3114
3115 2014-08-28 Richard Biener <rguenther@suse.de>
3116
3117 PR tree-optimization/62283
3118 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3119 Do not peel loops for alignment where the vector loop likely
3120 doesn't run at least VF times.
3121
3122 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3123
3124 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3125 important_candidates. Consider all important candidates if
3126 IVS doesn't give any result. Remove check on ivs->upto.
3127 (try_add_cand_for): Call iv_ca_add_use only once.
3128
3129 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3131 Anna Tikhonova <anna.tikhonova@intel.com>
3132 Ilya Tocar <ilya.tocar@intel.com>
3133 Andrey Turetskiy <andrey.turetskiy@intel.com>
3134 Ilya Verbin <ilya.verbin@intel.com>
3135 Kirill Yukhin <kirill.yukhin@intel.com>
3136 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3137
3138 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3139 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3140 masking.
3141 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3142 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3143 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3144 (define_insn "*mul<mode>3"): Add EVEX version.
3145
3146 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3147 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3148 Anna Tikhonova <anna.tikhonova@intel.com>
3149 Ilya Tocar <ilya.tocar@intel.com>
3150 Andrey Turetskiy <andrey.turetskiy@intel.com>
3151 Ilya Verbin <ilya.verbin@intel.com>
3152 Kirill Yukhin <kirill.yukhin@intel.com>
3153 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3154
3155 * config/i386/sse.md
3156 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3157 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3158 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3159 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3160 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3161 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3162 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3163 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3164 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3165 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3166 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3167 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3168 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3169 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3170 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3171 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3172
3173 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3174 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3175 Anna Tikhonova <anna.tikhonova@intel.com>
3176 Ilya Tocar <ilya.tocar@intel.com>
3177 Andrey Turetskiy <andrey.turetskiy@intel.com>
3178 Ilya Verbin <ilya.verbin@intel.com>
3179 Kirill Yukhin <kirill.yukhin@intel.com>
3180 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3181
3182 * config/i386/sse.md
3183 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3184 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3185 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3186
3187 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3188 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3189 Anna Tikhonova <anna.tikhonova@intel.com>
3190 Ilya Tocar <ilya.tocar@intel.com>
3191 Andrey Turetskiy <andrey.turetskiy@intel.com>
3192 Ilya Verbin <ilya.verbin@intel.com>
3193 Kirill Yukhin <kirill.yukhin@intel.com>
3194 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3195
3196 * config/i386/sse.md
3197 (define_mode_iterator VI128_256): New.
3198 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3199
3200 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3201 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3202 Anna Tikhonova <anna.tikhonova@intel.com>
3203 Ilya Tocar <ilya.tocar@intel.com>
3204 Andrey Turetskiy <andrey.turetskiy@intel.com>
3205 Ilya Verbin <ilya.verbin@intel.com>
3206 Kirill Yukhin <kirill.yukhin@intel.com>
3207 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3208
3209 * config/i386/sse.md
3210 (define_mode_iterator VI8_256_512): New.
3211 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3212 Ditto.
3213 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3214 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3215 Ditto.
3216 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3217
3218 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3219
3220 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3221 pointer to the cumulative reloc value and return the value for
3222 this reloc instead.
3223 (compute_reloc_for_rtx): Take a const_rtx. Call
3224 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3225 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3226 for_each_rtx for the CONST case.
3227
3228 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3229
3230 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3231 (mark_constants_in_pattern): ...this new function to iterate over
3232 all the subrtxes.
3233 (mark_constants): Update accordingly.
3234
3235 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3236
3237 * varasm.c: Include rtl-iter.h.
3238 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3239 Remove the pointer to the cumulative hashval_t and just return
3240 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3241 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3242 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3243
3244 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3245
3246 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3247 Give real type of data parameter. Remove return value.
3248 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3249 to iterate over subrtxes.
3250
3251 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3252
3253 * var-tracking.c (use_narrower_mode_test): Turn from being a
3254 for_each_rtx callback to being a function that examines each
3255 subrtx itself.
3256 (adjust_mems): Update accordingly.
3257
3258 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3259
3260 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3261 callback to being a function that examines each subrtx itself.
3262 Remove handling of null rtxes.
3263 (add_uses): Update accordingly.
3264
3265 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3266
3267 * var-tracking.c: Include rtl-iter.h.
3268 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3269 to being a function that examines each subrtx itself.
3270 (use_type): Update accordingly.
3271
3272 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3273
3274 * store-motion.c: Include rtl-iter.h.
3275 (extract_mentioned_regs_1): Delete.
3276 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3277 for_each_rtx to iterate over subrtxes.
3278
3279 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3280
3281 * sel-sched.c: Include rtl-iter.h
3282 (count_occurrences_1): Delete.
3283 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3284 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3285
3286 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3287
3288 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3289 * rtlanal.c (tls_referenced_p_1): Delete.
3290 (tls_referenced_p): Take a const_rtx rather than an rtx.
3291 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3292
3293 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3294
3295 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3296 (for_each_inc_dec): Take an rtx rather than an rtx *.
3297 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3298 (cselib_record_sets): Likewise.
3299 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3300 (check_for_inc_dec): Likewise.
3301 * rtlanal.c (for_each_inc_dec_ops): Delete.
3302 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3303 rather than a pointer to the memory address. Replace
3304 for_each_inc_dec_ops argument with separate function and data
3305 arguments. Abort on non-autoinc addresses.
3306 (for_each_inc_dec_find_mem): Delete.
3307 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3308 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3309
3310 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3311
3312 * rtl.h (find_all_hard_regs): Declare.
3313 * rtlanal.c (find_all_hard_regs): New function.
3314 (record_hard_reg_uses_1): Delete.
3315 (record_hard_reg_uses): Use find_all_hard_regs.
3316
3317 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3318
3319 * rtl.h (replace_label_data): Delete.
3320 (replace_label): Take the old label, new label and update-nuses flag
3321 as direct arguments. Return void.
3322 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3323 * rtlanal.c (replace_label): Update interface as above. Handle
3324 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3325 iterator. Use FOR_EACH_SUBRTX_PTR.
3326
3327 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3328
3329 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3330 with const_rtx parameters.
3331 * varasm.c (get_pool_constant): Likewise.
3332 * rtlanal.c (rtx_referenced_p_1): Delete.
3333 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3334 Assert that the rtx we're looking for is nonnull. Allow searches
3335 for constant pool SYMBOL_REFs.
3336
3337 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3338
3339 * reload1.c: Include rtl-iter.h.
3340 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3341 to being a function that examines each subrtx itself.
3342 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3343
3344 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3345
3346 * regcprop.c (cprop_find_used_regs_1): Delete.
3347 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3348
3349 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3350
3351 * regcprop.c: Include rtl-iter.h.
3352 (kill_value): Take a const_rtx.
3353 (kill_autoinc_value): Turn from being a for_each_rtx callback
3354 to being a function that examines each subrtx itself.
3355 (copyprop_hardreg_forward_1): Update accordingly.
3356
3357 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3358
3359 * reg-stack.c: Include rtl-iter.h.
3360 (subst_stack_regs_in_debug_insn): Delete.
3361 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3362 instead of for_each_rtx.
3363
3364 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3365
3366 * lower-subreg.c (find_decomposable_subregs): Turn from being
3367 a for_each_rtx callback to being a function that examines each
3368 subrtx itself. Remove handling of null rtxes.
3369 (decompose_multiword_subregs): Update accordingly.
3370
3371 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3372
3373 * lower-subreg.c (adjust_decomposed_uses): Delete.
3374 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3375 Remove handling of null rtxes.
3376
3377 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3378
3379 * lower-subreg.c: Include rtl-iter.h.
3380 (resolve_subreg_use): Turn from being a for_each_rtx callback
3381 to being a function that examines each subrtx itself. Remove
3382 handling of null rtxes.
3383 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3384 (decompose_multiword_subregs): Likewise.
3385
3386 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3387
3388 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3389 to being a function that examines each subrtx itself.
3390 (simplify_using_condition, simplify_using_initial_values): Update
3391 accordingly.
3392
3393 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3394
3395 * loop-iv.c: Include rtl-iter.h.
3396 (find_single_def_src): New function.
3397 (replace_single_def_regs): Turn from being a for_each_rtx callback
3398 to being a function that examines each subrtx itself.
3399 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3400
3401 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3402
3403 * jump.c (eh_returnjump_p_1): Delete.
3404 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3405 Remove handling of null rtxes.
3406
3407 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3408
3409 * jump.c: Include rtl-iter.h.
3410 (returnjump_p_1): Delete.
3411 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3412 Remove handling of null rtxes.
3413
3414 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3415
3416 * ira.c: Include rtl-iter.h.
3417 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3418 to being a function that examines each subrtx itself. Remove
3419 handling of null rtxes.
3420 (update_equiv_regs): Update call accordingly.
3421
3422 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3423
3424 * fwprop.c: Include rtl-iter.h.
3425 (varying_mem_p): Turn from being a for_each_rtx callback to being
3426 a function that examines each subrtx itself.
3427 (propagate_rtx): Update accordingly.
3428
3429 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3430
3431 * function.c: Include rtl-iter.h
3432 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3433 callback to being a function that examines each subrtx itself.
3434 Return the changed flag.
3435 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3436 (instantiate_virtual_regs): Update calls accordingly.
3437
3438 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3439
3440 * final.c: Include rtl-iter.h.
3441 (mark_symbol_ref_as_used): Delete.
3442 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3443 for_each_rtx.
3444
3445 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3446
3447 * emit-rtl.c: Include rtl-iter.h.
3448 (find_auto_inc): Turn from being a for_each_rtx callback to being
3449 a function that examines each subrtx itself. Assume the first operand
3450 to an RTX_AUTOINC is the automodified register.
3451 (try_split): Update call accordingly.
3452
3453 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3454
3455 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3456 Return a bool, inverting the result so that 0/false means "not ok".
3457 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3458 subrtxes of a CONST.
3459 (mem_loc_descriptor, add_const_value_attribute)
3460 (resolve_addr_in_expr): Update calls accordingly.
3461
3462 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3463
3464 * dwarf2out.c: Include rtl-iter.h.
3465 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3466 Remove unused data parameter. Return a bool, inverting the result
3467 so that 0/false means "not ok".
3468 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3469 instead of for_each_rtx.
3470
3471 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3472
3473 * dse.c: Include rtl-iter.h.
3474 (check_mem_read_rtx): Change void * parameter to real type.
3475 Remove return value.
3476 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3477 for_each_rtx. Don't handle null rtxes.
3478
3479 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3480
3481 * df-problems.c: Include rtl-iter.h.
3482 (find_memory): Turn from being a for_each_rtx callback to being
3483 a function that examines each subrtx itself. Continue to look for
3484 volatile references even after a nonvolatile one has been found.
3485 (can_move_insns_across): Update calls accordingly.
3486
3487 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3488
3489 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3490 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3491 to iterate over subrtxes. Return a bool rather than an int.
3492
3493 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3494
3495 * ddg.c: Include rtl-iter.h.
3496 (mark_mem_use_1): Rename to...
3497 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3498 instead of for_each_rtx.
3499 (mem_read_insn_p): Update accordingly.
3500
3501 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3502
3503 * cse.c (change_cc_mode_args): Delete.
3504 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3505 a function that examines each subrtx itself. Take the fields of
3506 change_cc_mode_args as argument and return void.
3507 (cse_change_cc_mode_insn): Update calls accordingly.
3508
3509 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3510
3511 * cse.c (is_dead_reg): Change argument to const_rtx.
3512 (dead_debug_insn_data): Delete.
3513 (is_dead_debug_insn): Expand commentary. Turn from being a
3514 for_each_rtx callback to being a function that examines
3515 each subrtx itself. Take the fields of dead_debug_insn_data
3516 as argument.
3517 (delete_trivially_dead_insns): Update call accordingly.
3518
3519 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3520
3521 * cse.c (check_for_label_ref): Move earlier in file. Turn from
3522 being a for_each_rtx callback to being a function that examines
3523 each subrtx itself.
3524 (cse_extended_basic_block): Update call accordingly.
3525
3526 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3527
3528 * cse.c (check_dependence_data): Delete.
3529 (check_dependence): Change from being a for_each_rtx callback to being
3530 a function that examines all subrtxes itself. Don't handle null rtxes.
3531 (invalidate): Update call accordingly.
3532
3533 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3534
3535 * cse.c: Include rtl-iter.h.
3536 (approx_reg_cost_1): Delete.
3537 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3538 Don't handle null rtxes.
3539
3540 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3541
3542 * cfgcleanup.c: Include rtl-iter.h.
3543 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3544 to being a function that examines each subrtx itself.
3545 (thread_jump): Update accordingly.
3546
3547 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3548
3549 * combine-stack-adj.c: Include rtl-iter.h.
3550 (record_stack_refs_data): Delete.
3551 (record_stack_refs): Turn from being a for_each_rtx callback
3552 to being a function that examines each subrtx itself.
3553 Take a pointer to the reflist. Invert sense of return value
3554 so that true means success and false means failure. Don't
3555 handle null rtxes.
3556 (combine_stack_adjustments_for_block): Update accordingly.
3557
3558 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3559
3560 * combine.c (record_truncated_value): Turn from being a for_each_rtx
3561 callback to a function that takes an rtx and returns a bool
3562 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3563 for_each_rtx.
3564
3565 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3566
3567 * combine.c: Include rtl-iter.h.
3568 (unmentioned_reg_p_1): Delete.
3569 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3570 Don't handle null rtxes.
3571
3572 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3573
3574 * calls.c: Include rtl-iter.h.
3575 (internal_arg_pointer_based_exp_1): Delete.
3576 (internal_arg_pointer_based_exp): Take a const_rtx.
3577 Use FOR_EACH_SUBRTX to iterate over subrtxes.
3578
3579 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3580
3581 * caller-save.c: Include rtl-iter.h.
3582 (add_used_regs_1): Delete.
3583 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3584 to iterate over subrtxes. Assert that any remaining pseudos
3585 have been spilled.
3586
3587 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3588
3589 * bt-load.c: Include rtl-iter.h.
3590 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3591 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
3592 to iterate over subrtxes.
3593 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3594 find_btr_use rather than btr_referenced_p.
3595
3596 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3597
3598 * alias.c: Include rtl-iter.h.
3599 (refs_newer_value_cb): Delete.
3600 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3601
3602 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3603
3604 * rtl-iter.h: New file.
3605 * rtlanal.c: Include it.
3606 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3607 (generic_subrtx_iterator <T>::add_single_to_queue)
3608 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3609 (generic_subrtx_iterator <T>::free_array): New functions.
3610 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3611 (generic_subrtx_iterator <const_rtx_accessor>)
3612 (generic_subrtx_iterator <rtx_var_accessor>
3613 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3614 (setup_reg_subrtx_bounds): New function.
3615 (init_rtlanal): Call it.
3616
3617 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3618
3619 PR target/62261
3620 * config/sh/sh.md (ashlsi3): Handle negative shift count for
3621 TARGET_SHMEDIA.
3622 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3623
3624 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
3625
3626 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3627
3628 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3629
3630 * rtl.h (JUMP_LABEL_AS_INSN): New.
3631
3632 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3633
3634 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3635 rtx_expr_list **.
3636 (alloc_EXPR_LIST): Strengthen return type from rtx to
3637 rtx_expr_list *.
3638 (remove_free_EXPR_LIST_node): Likewise for param.
3639 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3640 from rtx to rtx_expr_list *.
3641 * sched-int.h (struct deps_desc): Strengthen fields
3642 "pending_read_mems" and "pending_write_mems" from rtx to
3643 rtx_expr_list *.
3644
3645 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3646 rtx to rtx_expr_list *.
3647 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3648 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3649 rtx_expr_list **.
3650 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
3651 from rtx to rtx_expr_list *.
3652 * loop-iv.c (simplify_using_initial_values): Strengthen local
3653 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3654 "pnote_next" from rtx * to rtx_expr_list **.
3655 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
3656 param "exprp" from rtx * to rtx_expr_list **.
3657 (add_insn_mem_dependence): Strengthen local "mem_list" from
3658 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
3659 to rtx_expr_list *.
3660 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3661 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
3662 param "old_mems_p" from rtx * to rtx_expr_list **.
3663 * var-tracking.c (struct adjust_mem_data): Strengthen field
3664 "side_effects" from rtx to rtx_expr_list *.
3665 (adjust_insn): Replace NULL_RTX with NULL when assigning to
3666 rtx_expr_list *.
3667 (prepare_call_arguments): Likewise.
3668
3669 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3670
3671 * function.h (struct rtl_data): Strengthen field
3672 "x_stack_slot_list" from rtx to rtx_expr_list *.
3673
3674 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3675 when assigning to stack_slot_list.
3676
3677 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3678
3679 * function.h (struct rtl_data): Strengthen field
3680 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3681 * rtl.h (remove_node_from_expr_list): Strengthen second param from
3682 rtx * to rtx_expr_list **.
3683
3684 * cfgbuild.c (make_edges): In loop over
3685 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3686 rtx_expr_list *, and use methods of the latter class to clarify
3687 the code.
3688 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3689 rtx_expr_list *, and use methods of the latter class to clarify
3690 the code.
3691 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3692 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3693 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3694 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
3695 to rtx_expr_list *. Use methods of the latter class to clarify
3696 the code.
3697
3698 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3699
3700 * function.h (struct expr_status): Strengthen field
3701 "x_forced_labels" from rtx to rtx_expr_list *.
3702
3703 * cfgbuild.c (make_edges): Split local "x" into two locals,
3704 strengthening one from rtx to rtx_expr_list *, and using methods
3705 of said class.
3706 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3707 loop over forced_labels, introduce strengthen it from rtx to
3708 rtx_expr_list *, using methods to clarify the code.
3709 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3710 to rtx_expr_list *, using methods of said class to clarify the
3711 code.
3712 * reload1.c (set_initial_label_offsets): Split local "x" into two
3713 per-loop variables, strengthening the first from rtx to
3714 rtx_expr_list * and using methods.
3715
3716 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3717
3718 * coretypes.h (class rtx_expr_list): Add forward declaration.
3719 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3720 * gengenrtl.c (special_rtx): Add EXPR_LIST.
3721 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3722 invariant: GET_CODE (X) == EXPR_LIST.
3723 (is_a_helper <rtx_expr_list *>::test): New.
3724 (rtx_expr_list::next): New.
3725 (rtx_expr_list::element): New.
3726 (gen_rtx_EXPR_LIST): New.
3727
3728 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3729
3730 * varasm.c (mark_constants): Convert a GET_CODE check into a
3731 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3732 Use methods of rtx_sequence to clarify the code.
3733
3734 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3735
3736 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3737 local "seq" via a checked cast, and use methods of rtx_sequence
3738 to simplify the code.
3739
3740 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3741
3742 * resource.c (mark_referenced_resources): Strengthen local
3743 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3744 using methods of rtx_sequence to clarify the code.
3745 (find_dead_or_set_registers): Within the switch statement, convert
3746 a GET_CODE check to a dyn_cast, introducing local "seq". Within
3747 the JUMP_P handling, introduce another local "seq", adding a
3748 checked cast to rtx_sequence *. In both cases, use methods of
3749 rtx_sequence to clarify the code.
3750 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3751 via a checked cast, and use methods of rtx_sequence to simplify
3752 the code.
3753
3754 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3755
3756 * reorg.c (redundant_insn): In two places in the function, replace
3757 a check of GET_CODE with a dyn_cast, introducing local "seq", and
3758 usings methods of rtx_sequence to clarify the code.
3759
3760 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3761
3762 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3763 local "seq" with a checked cast, and use methods of rtx_sequence
3764 to clarify the code.
3765
3766 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3767
3768 * function.c (contains): Introduce local "seq" for PATTERN (insn),
3769 with a checked cast, in the region for where we know it's a
3770 SEQUENCE. Use methods of rtx_sequence.
3771
3772 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3773
3774 * final.c (get_attr_length_1): Replace GET_CODE check with a
3775 dyn_cast, introducing local "seq" and the use of methods of
3776 rtx_sequence.
3777 (shorten_branches): Likewise, introducing local "body_seq".
3778 Strengthen local "inner_insn" from rtx to rtx_insn *.
3779 (reemit_insn_block_notes): Replace GET_CODE check with a
3780 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3781 Use methods of rtx_sequence.
3782 (final_scan_insn): Likewise, introducing local "seq" for when
3783 "body" is known to be a SEQUENCE, using its methods.
3784
3785 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3786
3787 * except.c (can_throw_external): Strengthen local "seq" from rtx
3788 to rtx_sequence *. Use methods of rtx_sequence.
3789 (insn_nothrow_p): Likewise.
3790
3791 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3792
3793 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3794 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3795 Use methods of rtx_sequence.
3796 (scan_trace): Likewise for local "pat".
3797
3798 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3799
3800 * coretypes.h (class rtx_sequence): Add forward declaration.
3801 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3802 invariant: GET_CODE (X) == SEQUENCE.
3803 (is_a_helper <rtx_sequence *>::test): New.
3804 (is_a_helper <const rtx_sequence *>::test): New.
3805 (rtx_sequence::len): New.
3806 (rtx_sequence::element): New.
3807 (rtx_sequence::insn): New.
3808
3809 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3810
3811 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3812 rtx_insn_list **.
3813 (alloc_INSN_LIST): Strengthen return type from rtx to
3814 rtx_insn_list *.
3815 (copy_INSN_LIST): Likewise for return type and param.
3816 (concat_INSN_LIST): Likewise for both params and return type.
3817 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3818 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
3819 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3820 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
3821
3822 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3823 "implicit_sets", "control_uses", "clobbers" from rtx to
3824 rtx_insn_list *.
3825 (struct deps_desc): Likewise for fields "pending_read_insns",
3826 "pending_write_insns", "pending_jump_insns",
3827 "last_pending_memory_flush", "last_function_call",
3828 "last_function_call_may_noreturn", "sched_before_next_call",
3829 "sched_before_next_jump".
3830 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3831 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3832
3833 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3834 from rtx to rtx_insn_list *.
3835 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3836 rtx_insn_list *.
3837
3838 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3839 to rtx_insn_list **.
3840 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3841 rtx_insn_list *.
3842 (queue_insn): Likewise for local "link".
3843 (struct haifa_saved_data): Strengthen field "insn_queue" from
3844 rtx * to rtx_insn_list **.
3845 (save_backtrack_point): Update allocation of save->insn_queue to
3846 reflect the strengthening of elements from rtx to rtx_insn_list *.
3847 (queue_to_ready): Strengthen local "link" from rtx to
3848 rtx_insn_list *; use methods "next" and "insn" when traversing the
3849 list.
3850 (early_queue_to_ready): Likewise for locals "link", "next_link",
3851 "prev_link".
3852 (schedule_block): Update allocation of insn_queue to reflect the
3853 strengthening of elements from rtx to rtx_insn_list *. Strengthen
3854 local "link" from rtx to rtx_insn_list *, and use methods when
3855 working it.
3856 (add_to_speculative_block): Strengthen locals "twins" and
3857 "next_node" from rtx to rtx_insn_list *, and use methods when
3858 working with them. Strengthen local "twin" from rtx to
3859 rtx_insn *, eliminating a checked cast.
3860 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
3861 from rtx to rtx_insn_list *, and use methods when working with
3862 them.
3863
3864 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
3865 from rtx to rtx_insn_list *, adding a checked cast.
3866 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3867 rtx_insn_list **.
3868 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3869 "newlink" from rtx to rtx_insn_list *. Strengthen local
3870 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3871 from rtx to rtx_insn *.
3872 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3873 from rtx to rtx_insn_list *. Use methods of the latter class.
3874 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3875 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3876 (remove_free_INSN_LIST_node): Strengthen return type and local
3877 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3878 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3879 rtx_insn_list *, using "insn" method.
3880
3881 * sched-deps.c (add_dependence_list): Strengthen param "list"
3882 from rtx to rtx_insn_list *, and use methods when working with it.
3883 (add_dependence_list_and_free): Strengthen param "listp" from
3884 rtx * to rtx_insn_list **.
3885 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3886 to rtx_insn_list **, and use methods when working with *listp.
3887 (remove_from_both_dependence_lists): Strengthen param "listp" from
3888 rtx * to rtx_insn_list **
3889 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3890 to rtx_insn_list **. Eliminate local "link", in favor of two new
3891 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3892 respectively.
3893 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3894 by introducing local "cond_deps".
3895 (remove_from_deps): Strengthen param "insn" from rtx to
3896 rtx_insn *.
3897
3898 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3899 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3900 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3901 Use methods of rtx_insn_list.
3902
3903 * store-motion.c (struct st_expr): Strengthen fields
3904 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3905 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3906 rtx_insn_list *.
3907 (find_moveable_store): Split out "tmp" into multiple more-tightly
3908 scoped locals. Use methods of rtx_insn_list *.
3909 (compute_store_table): Strengthen local "tmp" from rtx to
3910 rtx_insn *. Use methods of rtx_insn_list *.
3911
3912 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3913
3914 * coretypes.h (class rtx_insn_list): Add forward declaration.
3915 * rtl.h (class rtx_insn_list): New subclass of rtx_def
3916 (is_a_helper <rtx_insn_list *>::test): New.
3917 (rtx_insn_list::next): New.
3918 (rtx_insn_list::insn): New.
3919 (gen_rtx_INSN_LIST): Add prototype.
3920 * emit-rtl.c (gen_rtx_INSN_LIST): New.
3921 * gengenrtl.c (special_rtx): Add INSN_LIST.
3922
3923 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3924
3925 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
3926 "prev" from rtx to rtx_insn *.
3927
3928 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3929
3930 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
3931 functions. Require merely an rtx for now, not an rtx_insn *.
3932 (BLOCK_FOR_INSN): Likewise.
3933 (INSN_LOCATION): Likewise.
3934 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
3935
3936 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3937
3938 * rtl.h (PATTERN): Convert this macro into a pair of inline
3939 functions, for now, requiring const_rtx and rtx.
3940
3941 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3942
3943 * target.def (unwind_emit): Strengthen param "insn" from rtx to
3944 rtx_insn *.
3945 (final_postscan_insn): Likewise.
3946 (adjust_cost): Likewise.
3947 (adjust_priority): Likewise.
3948 (variable_issue): Likewise.
3949 (macro_fusion_pair_p): Likewise.
3950 (dfa_post_cycle_insn): Likewise.
3951 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
3952 (first_cycle_multipass_issue): Likewise.
3953 (dfa_new_cycle): Likewise.
3954 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
3955 (speculate_insn): Likewise for param "insn".
3956 (gen_spec_check): Likewise for params "insn" and "label".
3957 (get_insn_spec_ds): Likewise for param "insn".
3958 (get_insn_checked_ds): Likewise.
3959 (dispatch_do): Likewise.
3960 (dispatch): Likewise.
3961 (cannot_copy_insn_p): Likewise.
3962 (invalid_within_doloop): Likewise.
3963 (legitimate_combined_insn): Likewise.
3964 (needed): Likewise.
3965 (after): Likewise.
3966
3967 * doc/tm.texi: Automatically updated to reflect changes to
3968 target.def.
3969
3970 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
3971 working with insn.
3972 (schedule_block): Likewise.
3973 (sched_init): Likewise.
3974 (sched_speculate_insn): Strengthen param "insn" from rtx to
3975 rtx_insn *.
3976 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
3977 working with insn.
3978 * hooks.c (hook_bool_rtx_true): Rename to...
3979 hook_bool_rtx_insn_true): ...this, and strengthen first param from
3980 rtx to rtx_insn *.
3981 (hook_constcharptr_const_rtx_null): Rename to...
3982 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3983 first param from const_rtx to const rtx_insn *.
3984 (hook_bool_rtx_int_false): Rename to...
3985 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3986 param from rtx to rtx_insn *.
3987 (hook_void_rtx_int): Rename to...
3988 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3989 rtx to rtx_insn *.
3990
3991 * hooks.h (hook_bool_rtx_true): Rename to...
3992 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
3993 rtx to rtx_insn *.
3994 (hook_bool_rtx_int_false): Rename to...
3995 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3996 param from rtx to rtx_insn *.
3997 (hook_void_rtx_int): Rename to...
3998 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3999 rtx to rtx_insn *.
4000 (hook_constcharptr_const_rtx_null): Rename to...
4001 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4002 first param from const_rtx to const rtx_insn *.
4003
4004 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4005 and local "prev" from rtx to rtx_insn *.
4006
4007 * sched-int.h (sched_speculate_insn): Strengthen first param from
4008 rtx to rtx_insn *.
4009
4010 * sel-sched.c (create_speculation_check): Likewise for local "label".
4011 * targhooks.c (default_invalid_within_doloop): Strengthen param
4012 "insn" from const_rtx to const rtx_insn *.
4013 * targhooks.h (default_invalid_within_doloop): Strengthen param
4014 from const_rtx to const rtx_insn *.
4015
4016 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4017 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4018
4019 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4020 "insn".
4021 (arc_invalid_within_doloop): Likewise, with const.
4022
4023 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4024 (arm_cannot_copy_insn_p): Likewise for param "insn".
4025 (arm_unwind_emit): Likewise.
4026
4027 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4028 "dep_insn".
4029
4030 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4031 (c6x_variable_issue): Likewise. Removed now-redundant checked
4032 cast.
4033 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4034
4035 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4036 Likewise for param "insn".
4037 (epiphany_mode_after): Likewise.
4038 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4039 params "insn", "dep_insn".
4040 (epiphany_mode_needed): Likewise for param "insn".
4041 (epiphany_mode_after): Likewise.
4042
4043 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4044 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4045 (ix86_avx_u128_mode_needed): Likewise.
4046 (ix86_i387_mode_needed): Likewise.
4047 (ix86_mode_needed): Likewise.
4048 (ix86_avx_u128_mode_after): Likewise.
4049 (ix86_mode_after): Likewise.
4050 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4051 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4052 (ix86_adjust_priority): Likewise for param "insn".
4053 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4054 (do_dispatch): Likewise.
4055 (has_dispatch): Likewise.
4056 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4057
4058 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4059 reflect renaming of default hook implementation from
4060 hook_constcharptr_const_rtx_null to
4061 hook_constcharptr_const_rtx_insn_null.
4062 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4063 rtx to rtx_insn *.
4064 (ia64_variable_issue): Likewise for param "insn".
4065 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4066 (ia64_dfa_new_cycle): Likewise.
4067 (ia64_get_insn_spec_ds): Likewise.
4068 (ia64_get_insn_checked_ds): Likewise.
4069 (ia64_speculate_insn): Likewise.
4070 (ia64_gen_spec_check): Likewise for params "insn", "label".
4071 (ia64_asm_unwind_emit): Likewise for param "insn".
4072
4073 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4074
4075 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4076 "insn", "def_insn".
4077 (m68k_sched_variable_issue): Likewise for param "insn".
4078
4079 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4080 "def_insn".
4081
4082 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4083 Likewise for params "insn", "dep".
4084
4085 * config/mips/mips.c (mips_adjust_cost): Likewise.
4086 (mips_variable_issue): Likewise for param "insn".
4087 (mips_final_postscan_insn): Likewise.
4088
4089 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4090 for params "insn", "dep".
4091
4092 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4093 "dep_insn".
4094 (pa_adjust_priority): Likewise for param "insn".
4095
4096 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4097 Likewise for params "insn", "dep_insn".
4098
4099 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4100 param "insn".
4101 (rs6000_variable_issue): Likewise.
4102 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4103 (rs6000_debug_adjust_cost): Likewise.
4104 (rs6000_adjust_priority): Likewise for param "insn".
4105 (rs6000_use_sched_lookahead_guard): Likewise.
4106 (get_next_active_insn): Likewise for return type and both params.
4107 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4108 and locals "insn", "next_insn".
4109 (pad_groups): Likewise.
4110
4111 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4112 "insn".
4113 (s390_cannot_copy_insn_p): Likewise.
4114 (s390_sched_variable_issue): Likewise for third param, eliminating
4115 checked cast.
4116 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4117 default hook implementation from hook_constcharptr_const_rtx_null
4118 to hook_constcharptr_const_rtx_insn_null.
4119
4120 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4121 from rtx to rtx_insn *.
4122 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4123 (sh_variable_issue): Likewise for param "insn".
4124 (sh_dfa_new_cycle): Likewise.
4125 (sh_mode_needed): Likewise.
4126 (sh_mode_after): Likewise.
4127
4128 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4129 params "insn", "dep_insn".
4130 (hypersparc_adjust_cost): Likewise.
4131 (sparc_adjust_cost): Likewise.
4132
4133 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4134 param, eliminated checked cast.
4135 (spu_sched_adjust_cost): Likewise for first and third params.
4136
4137 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4138 params "insn" and "dep_insn" from rtx to rtx_insn *.
4139
4140 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4141
4142 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4143
4144 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4145 (set_is_load_p): ...this, updating to work on a SET pattern rather
4146 than an insn.
4147 (is_store_insn): Rename to...
4148 (set_is_store_p): ...this, updating to work on a SET pattern
4149 rather than an insn.
4150 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4151 top of function to where it is needed. Rewrite the bogus
4152 condition that checks for "insn" and "dep" being PARALLEL to
4153 instead use single_set, introducing locals "insn_set" and
4154 "dep_set". Given that we only ever returned "cost" for a non-pair
4155 of SETs, bail out early if we don't have a pair of SET.
4156 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4157 use the new locals "insn_set" and "dep_set", and update calls to
4158 is_load_insn and is_store_insn to be calls to set_is_load_p and
4159 set_is_store_p.
4160
4161 2014-08-27 Guozhi Wei <carrot@google.com>
4162
4163 PR target/62262
4164 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4165 amount before using it.
4166
4167 2014-08-27 Richard Biener <rguenther@suse.de>
4168
4169 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4170 get_maxval_strlen inside a more useful API.
4171 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4172 (gimple_fold_builtin): ... caller.
4173 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4174 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4175 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4176 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4177 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4178 gimple_fold_builtin_sprintf): Adjust to compute maxval
4179 themselves.
4180
4181 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4182
4183 PR other/62248
4184 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4185
4186 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4187 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4188 Anna Tikhonova <anna.tikhonova@intel.com>
4189 Ilya Tocar <ilya.tocar@intel.com>
4190 Andrey Turetskiy <andrey.turetskiy@intel.com>
4191 Ilya Verbin <ilya.verbin@intel.com>
4192 Kirill Yukhin <kirill.yukhin@intel.com>
4193 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4194
4195 * config/i386/sse.md
4196 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4197 Use `concat_tg_mode' attribute to determine asm register size.
4198
4199 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4200 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4201 Anna Tikhonova <anna.tikhonova@intel.com>
4202 Ilya Tocar <ilya.tocar@intel.com>
4203 Andrey Turetskiy <andrey.turetskiy@intel.com>
4204 Ilya Verbin <ilya.verbin@intel.com>
4205 Kirill Yukhin <kirill.yukhin@intel.com>
4206 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4207
4208 * config/i386/sse.md
4209 (define_mode_iterator VI48_AVX512VL): New.
4210 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4211 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4212 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4213 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4214 with VI1): Change mode iterator.
4215 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4216 with VI_ULOADSTORE_BW_AVX512VL): New.
4217 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4218 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4219 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4220 with VI1): Change mode iterator.
4221 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4222 with VI_ULOADSTORE_BW_AVX512VL): New.
4223 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4224 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4225 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4226 with VI1): Change mode iterator.
4227 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4228 with VI_ULOADSTORE_BW_AVX512VL): New.
4229 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4230 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4231 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4232 (define_insn "<avx512>_storedqu<mode>_mask" with
4233 VI48_AVX512VL): New.
4234 (define_insn "<avx512>_storedqu<mode>_mask" with
4235 VI12_AVX512VL): Ditto.
4236
4237 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4238 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4239 Anna Tikhonova <anna.tikhonova@intel.com>
4240 Ilya Tocar <ilya.tocar@intel.com>
4241 Andrey Turetskiy <andrey.turetskiy@intel.com>
4242 Ilya Verbin <ilya.verbin@intel.com>
4243 Kirill Yukhin <kirill.yukhin@intel.com>
4244 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4245
4246 * config/i386/sse.md
4247 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4248 (define_mode_iterator VI48_AVX512BW): New.
4249 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4250 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4251 with VI48_AVX2_48_AVX512F): New.
4252 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4253 with VI2_AVX512VL): Ditto.
4254
4255 2014-08-27 Richard Biener <rguenther@suse.de>
4256
4257 PR middle-end/62239
4258 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4259 (fold_builtin_3): Do not fold strcat_chk here.
4260 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4261 from builtins.c.
4262 (gimple_fold_builtin): Fold strcat_chk here.
4263
4264 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4265
4266 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4267 * dwarf2out.c (dwarf2out_decl): Make static.
4268
4269 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4270
4271 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4272
4273 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4274
4275 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4276 from rtx to rtx_insn *.
4277 (cselib_lookup_from_insn): Likewise for final param.
4278 (cselib_subst_to_values_from_insn): Likewise.
4279 (cselib_add_permanent_equiv): Likewise.
4280
4281 * cselib.c (cselib_current_insn): Likewise for this variable.
4282 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4283 (cselib_lookup_from_insn): Likewise.
4284 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4285 "save_cselib_current_insn".
4286 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4287
4288 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4289 from rtx to rtx_insn *.
4290
4291 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4292
4293 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4294 rtx_insn *.
4295
4296 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4297
4298 * df.h (df_dump_insn_problem_function): Strengthen first param of
4299 this callback from const_rtx to const rtx_insn *.
4300 (struct df_insn_info): Strengthen field "insn" from rtx to
4301 rtx_insn *.
4302 (DF_REF_INSN): Eliminate this function, reinstating the older
4303 macro definition.
4304 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4305 (df_reg_defined): Likewise.
4306 (df_find_use): Likewise.
4307 (df_reg_used): Likewise.
4308 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4309 const rtx_insn *.
4310 (df_dump_insn_bottom): Likewise.
4311 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4312 (df_insn_debug_regno): Likewise.
4313 (debug_df_insn): Likewise.
4314 (df_rd_simulate_one_insn): Likewise for param 2.
4315 (df_word_lr_simulate_defs): Likewise for param 1.
4316 (df_word_lr_simulate_uses): Likewise.
4317 (df_md_simulate_one_insn): Likewise for param 2.
4318 (df_simulate_find_noclobber_defs): Likewise for param 1.
4319 (df_simulate_find_defs): Likewise.
4320 (df_simulate_defs): Likewise.
4321 (df_simulate_uses): Likewise.
4322 (df_simulate_one_insn_backwards): Likewise for param 2.
4323 (df_simulate_one_insn_forwards): Likewise.
4324 (df_uses_create): Likewise for param 2.
4325 (df_insn_create_insn_record): Likewise for param 1.
4326 (df_insn_delete): Likewise.
4327 (df_insn_rescan): Likewise.
4328 (df_insn_rescan_debug_internal): Likewise.
4329 (df_insn_change_bb): Likewise.
4330 (df_notes_rescan): Likewise.
4331 * rtl.h (remove_death): Likewise for param 2.
4332 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4333 const rtx_insn *.
4334 * sched-int.h (reemit_notes): Strengthen param from rtx to
4335 rtx_insn *.
4336 * valtrack.h (propagate_for_debug): Likewise for param 1.
4337
4338 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4339 local "tmp_rtx" from const_rtx to const rtx_insn *.
4340 * combine.c (remove_death): Strengthen param "insn" from rtx to
4341 rtx_insn *.
4342 (move_deaths): Likewise for local "where_dead".
4343 * cse.c (delete_trivially_dead_insns): Introduce local
4344 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4345 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4346 rtx_insn *.
4347 (df_reg_defined): Likewise.
4348 (df_find_use): Likewise.
4349 (df_reg_used): Likewise.
4350 (df_dump_insn_problem_data): Strengthen param "insn" from
4351 const_rtx to const rtx_insn *.
4352 (df_dump_insn_top): Likewise.
4353 (df_dump_insn_bottom): Likewise.
4354 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4355 (df_insn_debug_regno): Likewise.
4356 (debug_df_insn): Likewise.
4357 (DF_REF_INSN): Delete.
4358 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4359 from rtx to rtx_insn *.
4360 (df_chain_insn_top_dump): Strengthen param "insn" from
4361 const_rtx to const rtx_insn *.
4362 (df_chain_insn_bottom_dump): Likewise.
4363 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4364 rtx_insn *.
4365 (df_word_lr_simulate_uses): Likewise.
4366 (df_print_note): Likewise.
4367 (df_remove_dead_and_unused_notes): Likewise.
4368 (df_set_unused_notes_for_mw): Likewise.
4369 (df_set_dead_notes_for_mw): Likewise.
4370 (df_create_unused_note): Likewise.
4371 (df_simulate_find_defs): Likewise.
4372 (df_simulate_find_uses): Likewise.
4373 (df_simulate_find_noclobber_defs): Likewise.
4374 (df_simulate_defs): Likewise.
4375 (df_simulate_uses): Likewise.
4376 (df_simulate_one_insn_backwards): Likewise.
4377 (df_simulate_one_insn_forwards): Likewise.
4378 (df_md_simulate_one_insn): Likewise.
4379 * df-scan.c (df_uses_create): Likewise.
4380 (df_insn_create_insn_record): Likewise.
4381 (df_insn_delete): Likewise.
4382 (df_insn_rescan): Likewise.
4383 (df_insn_rescan_debug_internal): Likewise.
4384 (df_insn_change_bb): Likewise.
4385 (df_notes_rescan): Likewise.
4386 (df_refs_add_to_chains): Likewise.
4387 (df_insn_refs_verify): Likewise.
4388 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4389 when invoking df_insn_delete.
4390 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4391 (set_unique_reg_note): Add checked cast.
4392 * final.c (cleanup_subreg_operands): Likewise.
4393 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4394 "insn" from rtx to rtx_insn *.
4395 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4396 "last" from rtx to rtx_insn *.
4397 * ira-emit.c (change_regs_in_insn): New function.
4398 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4399 Invoke change_regs_in_insn rather than change_regs.
4400 * ira.c (update_equiv_regs): Strengthen locals "insn",
4401 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4402 for_each_rtx_in_insn rather than for_each_rtx.
4403 * recog.c (confirm_change_group): Add checked casts.
4404 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4405 Add checked cast.
4406 (peep2_fill_buffer): Add checked cast.
4407 * rtlanal.c (remove_note): Likewise.
4408 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4409 locals "next" "end" from rtx to rtx_insn *.
4410
4411 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4412
4413 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4414 to rtx_insn *.
4415 (struct reg_use_data): Likewise for field "insn".
4416 (insn_cost): Likewise for param.
4417 (real_insn_for_shadow): Likewise for return type and param.
4418 (increase_insn_priority): Likewise for param 1.
4419 (debug_dependencies): Likewise for both params.
4420
4421 * haifa-sched.c (insn_delay): Likewise for param "insn".
4422 (real_insn_for_shadow): Likewise for return type and param "insn".
4423 (update_insn_after_change): Likewise for param "insn".
4424 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4425 "other".
4426 (insn_cost): Likewise for param "insn".
4427 (increase_insn_priority): Likewise.
4428 (calculate_reg_deaths): Likewise.
4429 (setup_insn_reg_pressure_info): Likewise.
4430 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4431 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4432 (model_recompute): Likewise.
4433 (must_restore_pattern_p): Likewise for param "next".
4434 (model_excess_cost): Likewise for param "insn".
4435 (queue_remove): Likewise.
4436 (adjust_priority): Likewise for param "prev".
4437 (update_register_pressure): Likewise for param "insn".
4438 (setup_insn_max_reg_pressure): Likewise for local "insn".
4439 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4440 (model_add_to_schedule): Likewise.
4441 (model_reset_queue_indices): Likewise for local "insn".
4442 (unschedule_insns_until): Strengthen local "recompute_vec" from
4443 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4444 "con" from rtx to rtx_insn *.
4445 (restore_last_backtrack_point): Likewise for both locals "x". Add
4446 checked casts.
4447 (estimate_insn_tick): Likewise for param "insn".
4448 (commit_schedule): Likewise for params "prev_head", "tail" and
4449 local "x".
4450 (verify_shadows): Likewise for locals "i1", "i2".
4451 (dump_insn_stream): Likewise for params "head", "tail" and locals
4452 "next_tail", "insn".
4453 (schedule_block): Likewise for locals "insn", "x". Add a checked
4454 cast.
4455 (fix_inter_tick): Likewise for params "head", "tail".
4456 (create_check_block_twin): Likewise for local "jump".
4457 (haifa_change_pattern): Likewise for param "insn".
4458 (haifa_speculate_insn): Likewise.
4459 (dump_new_block_header): Likewise for params "head", "tail".
4460 (fix_jump_move): Likewise for param "jump".
4461 (move_block_after_check): Likewise.
4462 (sched_init_insn_luid): Likewise for param "insn".
4463 (sched_init_luids): Likewise for local "insn".
4464 (insn_luid): Likewise for param "insn".
4465 (init_h_i_d): Likewise.
4466 (haifa_init_h_i_d): Likewise for local "insn".
4467 (haifa_init_insn): Likewise for param "insn".
4468 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4469 "other".
4470 (create_insn_reg_use): Likewise for param "insn".
4471 (setup_insn_reg_uses): Likewise. Add a checked cast.
4472 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4473 "tail" from rtx to rtx_insn *.
4474 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4475 "insn", "next_tail".
4476
4477 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4478
4479 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4480 from rtx to rtx_insn *.
4481 (model_add_to_schedule): Likewise for locals "start", "end",
4482 "iter".
4483
4484 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4485
4486 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4487 rtx_insn *.
4488 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4489 "to" and locals "insn", "next", "copy". Remove now-redundant
4490 checked cast.
4491
4492 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4493
4494 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4495 rtx_insn * and param 4 from rtx * to rtx_insn **.
4496 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4497 param 2 from rtx * to rtx_insn **.
4498
4499 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4500 rtx_insn * and final param from rtx * to rtx_insn **.
4501
4502 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4503 from rtx to rtx_insn *.
4504 (try_head_merge_bb): Likewise for both locals named "move_upto".
4505 * df-problems.c (can_move_insns_across): Likewise for params
4506 "from", "to", "across_from", "across_to" and locals "insn",
4507 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4508 rtx_insn **.
4509 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4510 from rtx to rtx_insn *.
4511 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4512 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4513 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4514 rtx_insn *.
4515 (noce_try_abs): Likewise.
4516 (noce_get_condition): Likewise for param "jump". Strengthen param
4517 "earliest" from rtx * to rtx_insn **.
4518 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4519 rtx_insn *.
4520 (find_cond_trap): Likewise.
4521 (dead_or_predicable): Likewise for local "earliest".
4522 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
4523 checked cast.
4524 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4525 and local "prev". Strengthen param "earliest" from rtx * to
4526 rtx_insn **.
4527 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4528 Strengthen param "earliest" from rtx * to rtx_insn **.
4529
4530 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4531
4532 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4533 "to" and local "insn" from rtx to rtx_insn *.
4534
4535 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4536
4537 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4538 from rtx to rtx_insn *.
4539 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4540 (code_motion_path_driver): Likewise for local "last_insn".
4541 (simplify_changed_insns): Likewise for local "insn".
4542
4543 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4544
4545 * rtl.h (push_to_sequence): Strengthen param from rtx to
4546 rtx_insn *.
4547 (push_to_sequence2): Likewise for both params.
4548 (delete_insns_since): Likewise for param.
4549 (reorder_insns_nobb): Likewise for all three params.
4550 (set_new_first_and_last_insn): Likewise for both params.
4551
4552 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4553 rtx_insn *. Remove now-redundant cast.
4554 (set_last_insn): Likewise.
4555
4556 * builtins.c (expand_builtin_return): Strengthen local
4557 "call_fusage" from rtx to rtx_insn *.
4558 * cfgrtl.c (create_basic_block_structure): Likewise for local
4559 "after".
4560 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4561 "first", "last" and local "insn".
4562 (delete_insns_since): Likewise for param "from".
4563 (reorder_insns_nobb): Likewise for params "from", "to", "after"
4564 and local "x".
4565 (push_to_sequence): Likewise for param "first" and local "last".
4566 (push_to_sequence2): Likewise for params "first" and "last".
4567 * lra.c (emit_add3_insn): Likewise for local "last".
4568 (lra_emit_add): Likewise.
4569 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4570 "last_insn".
4571 (process_address_1): Likewise for locals "insn", last".
4572 * modulo-sched.c (ps_first_note): Likewise for return type.
4573 * optabs.c (expand_binop_directly): Likewise for param "last".
4574
4575 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4576
4577 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4578 to rtx_insn*.
4579 * emit-rtl.c (get_last_insn_anywhere): Likewise.
4580
4581 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4582
4583 * function.h (struct sequence_stack): Strengthen fields "first"
4584 and "last" from rtx to rtx_insn *.
4585 (struct emit_status): Likewise for fields "x_first_insn" and
4586 "x_last_insn".
4587
4588 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4589 (set_first_insn): Add checked cast.
4590 (get_last_insn): Remove now-redundant checked cast.
4591 (set_last_insn): Add checked cast.
4592
4593 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4594 "saved_first" and "saved_last" from rtx to rtx_insn *.
4595
4596 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4597
4598 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4599 (unlink_insn_chain): Strengthen both params from rtx to
4600 rtx_insn *.
4601
4602 * cfgrtl.c (cfg_layout_function_header): Likewise for this
4603 variable.
4604 (unlink_insn_chain): Likewise for params "first" and "last".
4605 Remove now-redundant checked cast.
4606 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4607 (fixup_reorder_chain): Strengthen local "insn" from rtx to
4608 rtx_insn *.
4609 * emit-rtl.c (link_insn_into_chain): Likewise for all three
4610 params.
4611 (add_insn): Likewise for param "insn" and local "prev".
4612 (add_insn_after_nobb): Likewise for both params and local "next".
4613 (add_insn_before_nobb): Likewise for both params and local "prev".
4614 (add_insn_after): Rename param "after" to "uncast_after",
4615 introducing local "after" with another checked cast.
4616 (add_insn_before): Rename params "insn" and "before", giving them
4617 "uncast_" prefixes, adding the old names back using checked casts.
4618 (emit_note_after): Likewise for param "after".
4619 (emit_note_before): Likewise for param "before".
4620 (emit_label): Add a checked cast.
4621
4622 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4623
4624 * cselib.h (cselib_record_sets_hook): Strengthen initial param
4625 "insn" from rtx to rtx_insn *.
4626
4627 * cselib.c (cselib_record_sets_hook): Likewise.
4628
4629 * var-tracking.c (add_with_sets): Likewise, renaming back from
4630 "uncast_insn" to "insn" and eliminating the checked cast from rtx
4631 to rtx_insn *.
4632
4633 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4634
4635 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4636 and "header_" from rtx to rtx_insn *.
4637 (struct basic_block_d): Likewise for field "head_" within "x"
4638 field of union basic_block_il_dependent.
4639 (BB_HEAD): Drop function...
4640 (SET_BB_HEAD): ...and this function in favor of...
4641 (BB_HEAD): ...reinstate macro.
4642 (BB_END): Drop function...
4643 (SET_BB_END): ...and this function in favor of...
4644 (BB_END): ...reinstate macro.
4645 (BB_HEADER): Drop function...
4646 (SET_BB_HEADER): ...and this function in favor of...
4647 (BB_HEADER): ...reinstate macro.
4648
4649 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4650 (fix_crossing_unconditional_branches): Likewise.
4651 * caller-save.c (save_call_clobbered_regs): Likewise.
4652 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4653 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4654 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4655 (merge_blocks_move_successor_nojumps): Likewise.
4656 (outgoing_edges_match): Update use of for_each_rtx to
4657 for_each_rtx_in_insn.
4658 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4659 (expand_gimple_cond): Likewise.
4660 (expand_gimple_tailcall): Likewise.
4661 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4662 SET_BB_END.
4663 (construct_exit_block): Drop use of SET_BB_END.
4664 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4665 rtx_insn *.
4666 (delete_insn): Rename param "insn" to "uncast_insn", introducing
4667 a new local "insn" with a checked cast to rtx_insn *. Drop use of
4668 SET_BB_HEAD and SET_BB_END.
4669 (create_basic_block_structure): Drop use of SET_BB_HEAD and
4670 SET_BB_END.
4671 (rtl_delete_block): Drop use of SET_BB_HEAD.
4672 (rtl_split_block): Drop use of SET_BB_END.
4673 (emit_nop_for_unique_locus_between): Likewise.
4674 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4675 (block_label): Drop use of SET_BB_HEAD.
4676 (fixup_abnormal_edges): Drop use of SET_BB_END.
4677 (record_effective_endpoints): Drop use of SET_BB_HEADER.
4678 (relink_block_chain): Likewise.
4679 (fixup_reorder_chain): Drop use of SET_BB_END.
4680 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4681 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4682 rtx_insn **. Drop use of SET_BB_HEADER.
4683 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4684 SET_BB_HEAD.
4685 (BB_HEAD): Delete this function.
4686 (SET_BB_HEAD): Likewise.
4687 (BB_END): Likewise.
4688 (SET_BB_END): Likewise.
4689 (BB_HEADER): Likewise.
4690 (SET_BB_HEADER): Likewise.
4691 * emit-rtl.c (add_insn_after): Rename param "insn" to
4692 "uncast_insn", adding a new local "insn" and a checked cast to
4693 rtx_insn *. Drop use of SET_BB_END.
4694 (remove_insn): Strengthen locals "next" and "prev" from rtx to
4695 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
4696 (reorder_insns): Drop use of SET_BB_END.
4697 (emit_insn_after_1): Strengthen param "first" and locals "last",
4698 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
4699 (emit_pattern_after_noloc): Add checked cast.
4700 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4701 (restore_other_notes): Likewise.
4702 (move_insn): Likewise.
4703 (sched_extend_bb): Likewise.
4704 (fix_jump_move): Likewise.
4705 * ifcvt.c (noce_process_if_block): Likewise.
4706 (dead_or_predicable): Likewise.
4707 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4708 * reg-stack.c (change_stack): Drop use of SET_BB_END.
4709 * sel-sched-ir.c (sel_move_insn): Likewise.
4710 * sel-sched.c (move_nop_to_previous_block): Likewise.
4711
4712 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4713 SET_BB_END.
4714 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4715
4716 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4717
4718 * basic-block.h (create_basic_block_structure): Strengthen params
4719 1 "head" and 2 "end" from rtx to rtx_insn *.
4720 * cfgrtl.c (create_basic_block_structure): Likewise.
4721 (rtl_create_basic_block): Update casts from void * to rtx to
4722 rtx_insn *, so that we can pass them as rtx_insn * to
4723 create_basic_block_structure.
4724 * sel-sched-ir.c (sel_create_basic_block): Likewise.
4725
4726 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4727
4728 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4729 rtx_insn **.
4730 (check_for_inc_dec): Strengthen param "insn" from rtx to
4731 rtx_insn *.
4732
4733 * cselib.h (cselib_process_insn): Likewise.
4734
4735 * cselib.c (cselib_record_sets): Likewise.
4736 (cselib_process_insn): Likewise.
4737
4738 * dse.c (struct insn_info): Likewise for field "insn".
4739 (check_for_inc_dec_1): Likewise for local "insn".
4740 (check_for_inc_dec): Likewise for param "insn".
4741 (scan_insn): Likewise.
4742 (dse_step1): Likewise for local "insn".
4743
4744 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4745 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
4746
4747 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4748
4749 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4750 from rtx to rtx_insn *.
4751 (DEP_PRO): Delete this function and...
4752 (SET_DEP_PRO): ...this function in favor of...
4753 (DEP_PRO): ...reinstate this macro.
4754 (DEP_CON): Delete this function and...
4755 (SET_DEP_CON): ...this function in favor of...
4756 (DEP_CON): ...reinstate this old macro.
4757 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4758 (init_dep): Likewise.
4759 (set_priorities): Likewise for both params.
4760 (sd_copy_back_deps): Likewise for params 1 and 2.
4761
4762 * haifa-sched.c (priority): Likewise for param "insn" and local
4763 "next".
4764 (set_priorities): Likewise for params "head" and "tail" and local
4765 "insn".
4766 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4767 local "consumer".
4768 (add_to_speculative_block): Add a checked cast.
4769 (create_check_block_twin): Drop use of SET_DEP_CON.
4770 (add_jump_dependencies): Strengthen params "insn" and "jump" from
4771 rtx to rtx_insn *.
4772
4773 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4774 Drop use of SET_DEP_PRO
4775 (init_dep): Strengthen params "pro" and "con" from rtx to
4776 rtx_insn *.
4777 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
4778 use of SET_DEP_CON.
4779 (DEP_PRO): Delete.
4780 (DEP_CON): Delete.
4781 (SET_DEP_PRO): Delete.
4782 (SET_DEP_CON): Delete.
4783
4784 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4785
4786 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4787 from rtx to rtx_insn *.
4788 (VINSN_INSN_RTX): Eliminate rvalue function and...
4789 (SET_VINSN_INSN): ...lvalue function in favor of...
4790 (VINSN_INSN_RTX): reinstate this old macro.
4791
4792 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4793 in favor of VINSN_INSN_RTX.
4794 (VINSN_INSN_RTX): Delete this function.
4795 (SET_VINSN_INSN_RTX): Likewise.
4796
4797 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4798
4799 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4800 (BND_TO): Delete this function and...
4801 (SET_BND_TO): ...this functions in favor of...
4802 (BND_TO): ...reinstating this macro.
4803 (struct _fence): Strengthen field "executing_insns" from
4804 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
4805 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4806 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4807 and param "insn" from rtx to insn_t.
4808 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4809 rtx_insn *.
4810
4811 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4812 vec<rtx_insn *> .
4813 (rtx_vec_t): Likewise.
4814 (struct sched_deps_info_def): Strengthen param of "start_insn"
4815 callback from rtx to rtx_insn *. Likewise for param "insn2" of
4816 "note_mem_dep" callback and first param of "note_dep" callback.
4817
4818 * haifa-sched.c (add_to_speculative_block): Strengthen param
4819 "insn" from rtx to rtx_insn *.
4820 (clear_priorities): Likewise.
4821 (calc_priorities): Likewise for local "insn".
4822
4823 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4824 Remove redundant checked cast.
4825 (haifa_note_mem_dep): Likewise for param "pending_insn".
4826 (haifa_note_dep): Likewise for param "elem".
4827 (note_mem_dep): Likewise for param "e".
4828 (sched_analyze_1): Add checked casts.
4829 (sched_analyze_2): Likewise.
4830
4831 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4832 from rtx to rtx_insn *.
4833 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4834 from vec<rtx> * to vec<rtx_insn *> *.
4835
4836 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4837 scaffolding.
4838 (flist_add): Strengthen param "executing_insns" from
4839 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4840 (advance_deps_context): Remove now-redundant checked cast.
4841 (init_fences): Replace uses of NULL_RTX with NULL.
4842 (merge_fences): Strengthen params "last_scheduled_insn" and
4843 "sched_next" from rtx to rtx_insn * and "executing_insns" from
4844 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4845 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
4846 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
4847 an instruction, rather than doing double-duty as a pattern.
4848 (return_nop_to_pool): Update for change of insn_t.
4849 (deps_init_id): Remove now-redundant checked cast.
4850 (struct sched_scan_info_def): Strengthen param of "init_insn"
4851 callback from rtx to insn_t.
4852 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
4853 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
4854 NULL.
4855 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
4856 "end" from rtx to rtx_insn *.
4857 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
4858 (rtx insn_rtx, bool force_unique_p)
4859 (BND_TO): Delete function.
4860 (SET_BND_TO): Delete function.
4861
4862 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
4863 rtx to rtx_insn *.
4864 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
4865 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
4866 rtx to rtx_insn *.
4867 (undo_transformations): Likewise for param "insn".
4868 (update_liveness_on_insn): Likewise.
4869 (compute_live_below_insn): Likewise for param "insn" and local
4870 "succ".
4871 (update_data_sets): Likewise for param "insn".
4872 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4873 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4874 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4875 rtx_insn *.
4876 (move_cond_jump): Likewise for param "insn".
4877 (move_cond_jump): Drop use of SET_BND_TO.
4878 (compute_av_set_on_boundaries): Likewise.
4879 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4880 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4881 from rtx to rtx_insn *.
4882 (maybe_emit_renaming_copy): Likewise for param "insn".
4883 (maybe_emit_speculative_check): Likewise.
4884 (handle_emitting_transformations): Likewise.
4885 (remove_insn_from_stream): Likewise.
4886 (code_motion_process_successors): Strengthen local "succ" from rtx
4887 to insn_t.
4888
4889 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4890
4891 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4892 ilist_t, not _xlist_t;
4893 (ILIST_INSN): Define in terms of new union field "insn".
4894 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4895 _XLIST_NEXT.
4896 (struct _list_node): Add new field "insn" to the union, of type
4897 insn_t.
4898 (ilist_add): Replace macro with an inline function, requiring an
4899 insn_t.
4900 (ilist_remove): Define this macro directly in terms of
4901 _list_remove, rather than indirectly via _xlist_remove.
4902 (ilist_clear): Likewise, in terms of _list_clear rather than
4903 _xlist_clear.
4904 (ilist_is_in_p): Replace macro with an inline function, requiring
4905 an insn_t.
4906 (_list_iter_cond_insn): New function.
4907 (ilist_iter_remove): Define this macro directly in terms of
4908 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
4909 (ilist_iterator): Define directly in terms of _list_iterator
4910 rather than indirectly through _xlist_iterator.
4911 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
4912 than in terms of _FOR_EACH_X.
4913 (FOR_EACH_INSN_1): Likewise.
4914
4915 2014-08-26 Joseph Myers <joseph@codesourcery.com>
4916
4917 PR target/60606
4918 PR target/61330
4919 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
4920 DECL_HARD_REGISTER and return for invalid register specifications.
4921 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
4922 DECL_HARD_REGISTER, call expand_one_error_var.
4923 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
4924 CC_REGNUM with non-MODE_CC modes.
4925 (arm_regno_class): Return NO_REGS for PC_REGNUM.
4926
4927 2014-08-26 Marek Polacek <polacek@redhat.com>
4928
4929 PR c/61271
4930 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
4931
4932 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
4933
4934 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
4935 qi cost; add di cost.
4936 (cortexa57_addrcost_table): Likewise.
4937
4938 2014-08-26 Marek Polacek <polacek@redhat.com>
4939
4940 PR c/61271
4941 * expr.c (is_aligning_offset): Remove logical not.
4942
4943 2014-08-26 Marek Polacek <polacek@redhat.com>
4944
4945 PR c/61271
4946 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
4947 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
4948
4949 2014-08-26 Richard Biener <rguenther@suse.de>
4950
4951 PR tree-optimization/62175
4952 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
4953 expand possibly trapping operations.
4954
4955 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4956
4957 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
4958 "insn" from rtx to rtx_insn *.
4959 (permute_load): Likewise for param "insn".
4960 (permute_store): Likewise.
4961 (handle_special_swappables): Likewise for local "insn".
4962 (replace_swap_with_copy): Likewise for locals "insn" and
4963 "new_insn".
4964 (rs6000_analyze_swaps): Likewise for local "insn".
4965
4966 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4967
4968 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
4969 to rtx_insn *.
4970
4971 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4972
4973 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
4974 "note_list" from rtx to rtx_insn *.
4975 (BB_NOTE_LIST): Replace this function and...
4976 (SET_BB_NOTE_LIST): ...this function with...
4977 (BB_NOTE_LIST): ...the former macro implementation.
4978
4979 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
4980 local "from_start" from rtx to rtx_insn *. Strengthen param
4981 "to_endp" from rtx * to rtx_insn **.
4982
4983 * haifa-sched.c (concat_note_lists): Likewise.
4984 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
4985 BB_NOTE_LIST.
4986 (sel_restore_notes): Likewise.
4987 (move_bb_info): Likewise.
4988 (BB_NOTE_LIST): Delete this function.
4989 (SET_BB_NOTE_LIST): Delete this function.
4990 * sel-sched.c (create_block_for_bookkeeping): Eliminate
4991 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
4992
4993 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4994
4995 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
4996 from rtx * to rtx_insn **.
4997 (reorder2): Likewise.
4998 (dependencies_evaluation_hook): Strengthen params "head", "tail"
4999 from rtx to rtx_insn *.
5000
5001 * doc/tm.texi: Update mechanically for above change to target.def.
5002
5003 * sched-int.h (note_list): Strengthen this variable from rtx to
5004 rtx_insn *.
5005 (remove_notes): Likewise for both params.
5006 (restore_other_notes): Likewise for return type and first param.
5007 (struct ready_list): Strengthen field "vec" from rtx * to
5008 rtx_insn **.
5009 (struct dep_replacement): Strenghten field "insn" from rtx to
5010 rtx_insn *.
5011 (struct deps_desc): Likewise for fields "last_debug_insn",
5012 "last_args_size".
5013 (struct haifa_sched_info): Likewise for callback field
5014 "can_schedule_ready_p"'s param, for first param of "new_ready"
5015 callback field, for both params of "rank" callback field, for
5016 first field of "print_insn" callback field (with a const), for
5017 both params of "contributes_to_priority" callback, for param
5018 of "insn_finishes_block_p" callback, for fields "prev_head",
5019 "next_tail", "head", "tail", for first param of "add_remove_insn"
5020 callback, for first param of "begin_schedule_ready" callback, for
5021 both params of "begin_move_insn" callback, and for second param
5022 of "advance_target_bb" callback.
5023 (add_dependence): Likewise for params 1 and 2.
5024 (sched_analyze): Likewise for params 2 and 3.
5025 (deps_analyze_insn): Likewise for param 2.
5026 (ready_element): Likewise for return type.
5027 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5028 (try_ready): Strenghten param from rtx to rtx_insn *.
5029 (sched_emit_insn): Likewise for return type.
5030 (record_delay_slot_pair): Likewise for params 1 and 2.
5031 (add_delay_dependencies): Likewise for param.
5032 (contributes_to_priority): Likewise for both params.
5033 (find_modifiable_mems): Likewise.
5034
5035 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5036 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5037 "first_older_only_insn" from rtx to rtx_insn *.
5038 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5039 rtx_insn **.
5040
5041 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5042 "last_scheduled_iter0" from rtx to rtx_insn *.
5043 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5044 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5045 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5046 "insn" from rtx to rtx_insn *.
5047 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5048 rtx_insn **.
5049 (c6x_sched_reorder2): Strengthen param "ready" and locals
5050 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5051 "insn" from rtx to rtx_insn *.
5052 (c6x_variable_issue): Add a checked cast when assigning from insn
5053 to ss.last_scheduled_iter0.
5054 (split_delayed_branch): Strengthen param "insn" and local "i1"
5055 from rtx to rtx_insn *.
5056 (split_delayed_nonbranch): Likewise.
5057 (undo_split_delayed_nonbranch): Likewise for local "insn".
5058 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5059 "entry_after", "end_packet", "head_insn", "tail_insn",
5060 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5061 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5062 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5063 but add a checked cast on loop->start_label. Consolidate calls to
5064 avoid assigning result of gen_spkernel to "insn", now an
5065 rtx_insn *.
5066
5067 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5068 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5069 rtx to rtx_insn *.
5070 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5071 rtx_insn **. Strengthen locals "top", "next" from rtx to
5072 rtx_insn *.
5073 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5074 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5075 (add_parameter_dependencies): Strengthen params "call", "head" and
5076 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5077 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5078 (add_dependee_for_func_arg): Likewise for param "arg" and local
5079 "insn".
5080 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5081 "tail" and locals "insn", "first_arg".
5082
5083 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5084 for params "head", "tail" and locals "insn", "next", "next_tail".
5085 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5086 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5087 "insn", "lowest", "highest" from rtx to rtx_insn *.
5088 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5089 rtx_insn **.
5090 (ia64_sched_reorder2): Likewise.
5091
5092 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5093 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5094 from rtx * to rtx_insn **.
5095 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5096 rtx_insn **.
5097 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5098 rtx_insn *.
5099 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5100 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5101 to rtx_insn *.
5102
5103 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5104 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5105 to rtx_insn *.
5106 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5107 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5108 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5109 rtx_insn **.
5110 (vr4130_reorder): Likewise.
5111 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5112 rtx to rtx_insn *.
5113 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5114 rtx_insn **.
5115 (mips_sched_reorder): Likewise.
5116 (mips_sched_reorder2): Likewise.
5117
5118 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5119
5120 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5121 Strengthen local "tmp" from rtx to rtx_insn *.
5122 (rs6000_sched_reorder2): Likewise.
5123
5124 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5125 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5126 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5127 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5128
5129 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5130 "tmp2" from rtx to rtx_insn *.
5131 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5132 Strengthen local "insn" from rtx to rtx_insn *.
5133 (ready_reorder): Strengthen param "ready" from rtx * to
5134 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5135 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5136 (sh_reorder2): Likewise.
5137
5138 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5139 local "insn" from rtx to rtx_insn *.
5140
5141 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5142 rtx_insn *.
5143 (scheduled_insns): Strengthen this variable from vec<rtx> to
5144 vec<rtx_insn *>.
5145 (set_modulo_params): Likewise for locals "i1", "i2".
5146 (record_delay_slot_pair): Likewise for params "i1", "i2".
5147 (add_delay_dependencies): Likewise for param "insn".
5148 (cond_clobbered_p): Likewise.
5149 (recompute_todo_spec): Likewise for local "prev".
5150 (last_scheduled_insn): Likewise for this variable.
5151 (nonscheduled_insns_begin): Likewise.
5152 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5153 rtx_insn **.
5154 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5155 rtx_insn *.
5156 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5157 Strengthen local "insn" from rtx to rtx_insn *.
5158 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5159 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5160 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5161 (ready_remove_first): Likewise for return type and local "t".
5162 (ready_element): Likewise for return type.
5163 (ready_remove): Likewise for return type and local "t".
5164 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5165 (check_clobbered_conditions): Strengthen local "x" from rtx to
5166 rtx_insn *, adding a checked cast.
5167 (schedule_insn): Likewise for param "insn".
5168 (remove_notes): Likewise for params "head", "tail" and locals
5169 "next_tail", "insn", "next".
5170 (struct haifa_saved_data): Likewise for fields
5171 "last_scheduled_insn", "nonscheduled_insns_begin".
5172 (save_backtrack_point): Update for change to field "vec" of
5173 struct ready_list.
5174 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5175 rtx_insn **.
5176 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5177 from rtx to rtx_insn *
5178 (resolve_dependencies): Strengthen param "insn" from rtx to
5179 rtx_insn *
5180 (restore_other_notes): Likewise for return type, for param "head"
5181 and local "note_head".
5182 (undo_all_replacements): Likewise for local "insn".
5183 (first_nonscheduled_insn): Likewise for return type and local "insn".
5184 (queue_to_ready): Likewise for local "insn", adding checked casts.
5185 (early_queue_to_ready): Likewise for local "insn".
5186 (debug_ready_list_1): Strengthen local "p" from rtx * to
5187 rtx_insn **.
5188 (move_insn): Strengthen param "insn" and local "note" from rtx to
5189 rtx_insn *
5190 (insn_finishes_cycle_p): Likewise for param "insn".
5191 (max_issue): Likewise for local "insn".
5192 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5193 to rtx_insn **.
5194 (commit_schedule): Strengthen param "prev_head" and local "insn"
5195 from rtx to rtx_insn *
5196 (prune_ready_list): Likewise for local "insn".
5197 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5198 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5199 (set_priorities): Likewise for local "prev_head".
5200 (try_ready): Likewise for param "next".
5201 (fix_tick_ready): Likewise.
5202 (change_queue_index): Likewise.
5203 (sched_extend_ready_list): Update for change to field "vec" of
5204 struct ready_list.
5205 (generate_recovery_code): Strengthen param "insn" from rtx to
5206 rtx_insn *.
5207 (begin_speculative_block): Likewise.
5208 (create_check_block_twin): Likewise for param "insn" and locals
5209 "label", "check", "twin". Introduce local "check_pat" to avoid
5210 "check" being used as a plain rtx before being used as an insn.
5211 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5212 extracting elements from ready_list.
5213 (sched_remove_insn): Strengthen param "insn" from rtx to
5214 rtx_insn *.
5215 (sched_emit_insn): Likewise for return type.
5216 (ready_remove_first_dispatch): Likewise for return type and local
5217 "insn".
5218
5219 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5220
5221 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5222 const rtx_insn *.
5223
5224 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5225 from rtx to rtx_insn *.
5226 (add_dependence_list): Likewise for param "insn". Add a checked
5227 cast.
5228 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5229 to rtx_insn *. Strengthen param "list_p" from rtx * to
5230 rtx_insn **.
5231 (chain_to_prev_insn): Strengthen param "insn" and locals
5232 "prec_nonnote", "i" from rtx to rtx_insn *.
5233 (flush_pending_lists): Likewise for param "insn".
5234 (cur_insn): Likewise for this variable.
5235 (haifa_start_insn): Add a checked cast.
5236 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5237 (sched_analyze_reg): Likewise for param "insn".
5238 (sched_analyze_1): Likewise.
5239 (sched_analyze_2): Likewise. Add checked casts.
5240 (sched_analyze_insn): Likewise. Also for local "prev".
5241 (deps_analyze_insn): Likewise for param "insn".
5242 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5243 (add_dependence_1): Likewise for params "insn", "elem".
5244 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5245 (parse_add_or_inc): Likewise for param "insn".
5246 (find_inc): Likewise for local "inc_cand".
5247 (find_modifiable_mems): Likewise for params "head", "tail" and
5248 locals "insn", "next_tail".
5249
5250 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5251 (begin_schedule_ready): Likewise for param "insn".
5252 (begin_move_insn): Likewise for params "insn" and "last".
5253 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5254 const rtx_insn *.
5255 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5256 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5257 (ebb_add_remove_insn): Likewise for param "insn".
5258 (advance_target_bb): Likewise.
5259
5260 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5261 "insn".
5262 (check_live): Likewise for param "insn".
5263 (init_ready_list): Likewise for local "insn".
5264 (can_schedule_ready_p): Likewise for param "insn".
5265 (begin_schedule_ready): Likewise.
5266 (new_ready): Likewise for param "next".
5267 (rgn_print_insn): Likewise for param "insn".
5268 (rgn_rank): Likewise for params "insn1", "insn2".
5269 (contributes_to_priority): Likewise for params "next", "insn".
5270 (rgn_insn_finishes_block_p): Likewise for param "insn".
5271 (add_branch_dependences): Likewise for params "head", "tail" and
5272 locals "insn", "last".
5273 (rgn_add_remove_insn): Likewise for param "insn".
5274 (advance_target_bb): Likewise.
5275
5276 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5277 const_rtx to const rtx_insn *.
5278
5279 * sel-sched-dump.h (sel_print_insn): Likewise.
5280
5281 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5282 (deps_init_id): Likewise.
5283
5284 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5285 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5286 rtx_insn **.
5287
5288 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5289
5290 * output.h (final_start_function): Strengthen param 1 from rtx to
5291 rtx_insn *.
5292
5293 * final.c (final_start_function): Likewise, renaming back from
5294 "uncast_first" to "first", and dropping the checked cast from rtx
5295 to rtx_insn *.
5296
5297 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5298
5299 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5300 * final.c (final): Likewise. Rename param back from
5301 "uncast_first" to "first" and eliminate the checked cast from rtx
5302 to rtx_insn *.
5303
5304 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5305
5306 * output.h (shorten_branches): Strengthen param from rtx to
5307 rtx_insn *.
5308
5309 * final.c (shorten_branches): Likewise, renaming param back from
5310 "uncast_first" to "first", and dropping the checked cast from rtx
5311 to rtx_insn *.
5312
5313 * genattr.c (gen_attr): Likewise when writing out the prototype of
5314 shorten_branches.
5315
5316 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5317
5318 * sched-int.h (struct haifa_sched_info): Strengthen fields
5319 "prev_head" and "next_tail" from rtx to rtx_insn *.
5320
5321 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5322
5323 * rtl.h (rtx_jump_table_data::get_labels): New method.
5324 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5325 with use of the new rtx_jump_table_data::get_labels method.
5326 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5327 to rtx_jump_table_data *. Simplify by using get_labels method.
5328 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5329 a dyn_cast, introducing local "table", using it to replace
5330 label-lookup logic with a get_labels method call.
5331 (patch_jump_insn): Simplify using get_labels method.
5332 * dwarf2cfi.c (create_trace_edges): Likewise.
5333 * rtlanal.c (label_is_jump_target_p): Likewise.
5334
5335 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5336
5337 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5338 to rtx_insn *.
5339
5340 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5341 (unshare_all_rtl_again): Likewise, also for local "p".
5342
5343 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5344
5345 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5346 to rtx_insn *.
5347 * cfgrtl.c (delete_insn_and_edges): Likewise.
5348
5349 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5350
5351 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5352 from rtx to rtx_insn *.
5353
5354 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5355
5356 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5357
5358 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5359 locals "returnjump", "epilogue_end", "insn", "next".
5360
5361 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5362 "returnjump" from rtx * to rtx_insn **.
5363 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5364
5365 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5366
5367 * basic-block.h (struct edge_def). Strengthen "r" within
5368 union edge_def_insns from rtx to rtx_insn *.
5369
5370 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5371 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5372 rtx_insn *.
5373 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5374 from rtx to rtx_insn *.
5375 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5376 rtx_insn *.
5377 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5378 (reg_used_on_edge): Likewise.
5379 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5380 (gt_pch_nx): New overload for rtx_insn *&.
5381 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5382 from rtx to rtx_insn *.
5383
5384 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5385
5386 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5387 from rtx to rtx_insn *.
5388 (BB_FOOTER): Replace function with access macro.
5389 (SET_BB_FOOTER): Delete.
5390
5391 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5392 with BB_FOOTER.
5393 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5394 (emit_barrier_after_bb): Likewise.
5395 (record_effective_endpoints): Likewise.
5396 (relink_block_chain): Likewise.
5397 (fixup_fallthru_exit_predecessor): Likewise.
5398 (cfg_layout_duplicate_bb): Likewise.
5399 (cfg_layout_split_block): Likewise.
5400 (cfg_layout_delete_block): Likewise.
5401 (cfg_layout_merge_blocks): Likewise.
5402 (BB_FOOTER): Delete function.
5403 (SET_BB_FOOTER): Delete function.
5404 * combine.c (update_cfg_for_uncondjump): Replace uses of
5405 SET_BB_FOOTER with BB_FOOTER.
5406
5407 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5408
5409 * except.h (struct eh_landing_pad_d): Strengthen field
5410 "landing_pad" from rtx to rtx_code_label *.
5411
5412 * except.c (sjlj_emit_dispatch_table): Likewise for param
5413 "dispatch_label"
5414 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5415
5416 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5417
5418 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5419 first param from rtx to rtx_insn *.
5420 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5421 field "set_frame_ptr_insn".
5422 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5423 "csend" from rtx to rtx_code_label *.
5424 (xtensa_expand_atomic): Likewise for local "csloop".
5425 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5426 rtx_insn *.
5427 (xtensa_call_tls_desc): Likewise for return type and locals
5428 "call_insn", "insns".
5429 (xtensa_legitimize_tls_address): Likewise for local "insns".
5430 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5431
5432 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5433
5434 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5435 first param from rtx to rtx_insn *.
5436 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5437 "insn".
5438
5439 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5440
5441 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5442 Strengthen param 1 from rtx to rtx_insn *.
5443 (tilepro_output_cbranch): Likewise.
5444 (tilepro_adjust_insn_length): Likewise.
5445 (tilepro_final_prescan_insn): Likewise for sole param.
5446
5447 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5448 Likewise for local "last".
5449 (cbranch_predicted_p): Likewise for param "insn".
5450 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5451 (tilepro_output_cbranch_with_opcode): Likewise.
5452 (tilepro_output_cbranch): Likewise.
5453 (frame_emit_load): Likewise for return type and locals "seq",
5454 "insn".
5455 (emit_sp_adjust): Likewise for return type and local "insn".
5456 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5457 "insn".
5458 (tilepro_adjust_insn_length): Likewise for param "insn".
5459 (next_insn_to_bundle): Likewise for return type and params
5460 "r", "end".
5461 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5462 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5463 local "new_insns".
5464 (match_addli_pcrel): Likewise for param "insn".
5465 (replace_addli_pcrel): Likewise.
5466 (match_auli_pcrel): Likewise.
5467 (replace_auli_pcrel): Likewise.
5468 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5469 "next_insn".
5470 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5471 "queue", "next_queue", "prev".
5472 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5473 (tilepro_final_prescan_insn): Likewise for param "insn".
5474
5475 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5476
5477 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5478 Strengthen param 1 from rtx to rtx_insn *.
5479 (tilegx_output_cbranch): Likewise.
5480 (tilegx_adjust_insn_length): Likewise.
5481 (tilegx_final_prescan_insn): Likewise for sole param.
5482
5483 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5484 or local "last".
5485 (cbranch_predicted_p): Likewise for param "insn".
5486 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5487 (tilegx_output_cbranch_with_opcode): Likewise.
5488 (tilegx_output_cbranch): Likewise.
5489 (frame_emit_load): Likewise for return type.
5490 (set_frame_related_p): Likewise for locals "seq", "insn".
5491 (emit_sp_adjust): Likewise for return type, and for local "insn".
5492 Introduce local "pat" for use in place of "insn" where the latter
5493 isn't an instruction.
5494 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5495 from rtx to rtx_insn *.
5496 (tilegx_adjust_insn_length): Likewise for param "insn".
5497 (next_insn_to_bundle): Likewise for return type and params "r" and
5498 "end".
5499 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5500 "end".
5501 (replace_insns): Likewise for params "old_insn", "new_insns".
5502 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5503 "new_insns".
5504 (replace_mov_pcrel_step2): Likewise.
5505 (replace_mov_pcrel_step3): Likewise.
5506 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5507 "next_insn".
5508 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5509 "queue", "next_queue", "prev".
5510 (tilegx_output_mi_thunk): Likewise for local "insn".
5511 (tilegx_final_prescan_insn): Likewise for param "insn".
5512
5513 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5514
5515 * config/spu/spu.c (frame_emit_store): Strengthen return type from
5516 rtx to rtx_insn *.
5517 (frame_emit_load): Likewise.
5518 (frame_emit_add_imm): Likewise, also for local "insn".
5519 (spu_expand_prologue): Likewise for local "insn".
5520 (struct spu_bb_info): Likewise for field "prop_jump".
5521 (emit_nop_for_insn): Likewise for param "insn" and local
5522 "new_insn".
5523 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5524 "hbr_insn".
5525 (spu_emit_branch_hint): Likewise for params "before", "branch" and
5526 locals "hint", "insn".
5527 (get_branch_target): Likewise for param "branch".
5528 (insn_clobbers_hbr): Likewise for param "insn".
5529 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5530 locals "insn", "before_4", "before_16".
5531 (insert_hbrp): Likewise for local "insn".
5532 (spu_machine_dependent_reorg): Likewise for locals "branch",
5533 "insn", "next", "bbend".
5534 (uses_ls_unit): Likewise for param "insn".
5535 (get_pipe): Likewise.
5536 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5537 introducing a checked cast.
5538 (spu_sched_adjust_cost): Likewise for params "insn" and
5539 "dep_insn".
5540 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5541 (spu_sms_res_mii): Likewise.
5542
5543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5544
5545 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5546 from rtx to rtx_insn *.
5547 (output_cbranch): Likewise for param 6.
5548 (output_return): Likewise for param 1.
5549 (output_sibcall): Likewise.
5550 (output_v8plus_shift): Likewise.
5551 (output_v8plus_mult): Likewise.
5552 (output_v9branch): Likewise for param 7.
5553 (output_cbcond): Likewise for param 3.
5554
5555 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5556 for local "insn".
5557 (sparc_legitimize_pic_address): Likewise.
5558 (sparc_emit_call_insn): Likewise.
5559 (emit_save_or_restore_regs): Likewise.
5560 (emit_window_save): Likewise for return type and local "insn".
5561 (sparc_expand_prologue): Likewise for local "insn".
5562 (sparc_flat_expand_prologue): Likewise.
5563 (output_return): Likewise for param "insn".
5564 (output_sibcall): Likewise for param "insn" and local "delay".
5565 (output_ubranch): Likewise for param "insn".
5566 (output_cbranch): Likewise.
5567 (output_cbcond): Likewise.
5568 (output_v9branch): Likewise.
5569 (output_v8plus_shift): Likewise.
5570 (sparc_output_mi_thunk): Likewise for local "insn".
5571 (get_some_local_dynamic_name): Likewise.
5572 (output_v8plus_mult): Likewise for param "insn".
5573
5574 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5575
5576 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5577 from rtx to rtx_insn *.
5578 (output_branchy_insn): Likewise for param 3.
5579 (output_far_jump): Likewise for param 1.
5580 (final_prescan_insn): Likewise.
5581 (sh_insn_length_adjustment): Likewise for sole param.
5582
5583 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5584 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5585 rtx_code_label *.
5586 (sh_emit_compare_and_set): Likewise for local "lab".
5587 (output_far_jump): Strengthen param "insn" and local "prev" from
5588 rtx to rtx_insn *.
5589 (output_branchy_insn): Likewise for param "insn" and local
5590 "next_insn".
5591 (output_ieee_ccmpeq): Likewise for param "insn".
5592 (struct label_ref_list_d): Strengthen field "label" from rtx to
5593 rtx_code_label *.
5594 (pool_node): Likewise.
5595 (pool_window_label): Likewise for this global.
5596 (add_constant): Likewise for return type and locals "lab", "new_rtx".
5597 (dump_table): Strengthen params "start", "barrier" and local
5598 "scan" from rtx to rtx_insn *.
5599 (broken_move): Likewise for param "insn".
5600 (untangle_mova): Likewise for params "first_mova" and "new_mova".
5601 Strengthen param "first_mova" from rtx * to rtx_insn **.
5602 (mova_p): Likewise for param "insn".
5603 (fixup_mova): Likewise for param "mova".
5604 (find_barrier): Likewise for return type, params "mova" and
5605 "from", and locals "barrier_before_mova", "found_barrier",
5606 "good_barrier", "orig", "last_symoff", "next". Strengthen local
5607 "label" from rtx to rtx_code_label *.
5608 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5609 rtx to rtx_insn *.
5610 (sh_reorg): Likewise for locals "link", "scan", "barrier".
5611 (split_branches): Likewise for param "first" and local "insn".
5612 (final_prescan_insn): Likewise for param "insn".
5613 (sequence_insn_p): Likewise for locals "prev", "next".
5614 (sh_insn_length_adjustment): Likewise for param "insn".
5615 (sh_can_redirect_branch): Likewise for local "insn".
5616 (find_r0_life_regions): Likewise for locals "end", "insn".
5617 (sh_output_mi_thunk): Likewise for local "insns".
5618
5619 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5620
5621 * config/score/score.c (score_output_mi_thunk): Strengthen local
5622 "insn" from rtx to rtx_insn *.
5623 (score_prologue): Likewise.
5624
5625 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5626
5627 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5628 1 from rtx to rtx_insn *.
5629 (s390_emit_jump): Likewise for return type.
5630 (s390_emit_call): Likewise.
5631 (s390_load_got): Likewise.
5632
5633 * config/s390/s390.c (last_scheduled_insn): Likewise for this
5634 variable.
5635 (s390_match_ccmode): Likewise for param "insn".
5636 (s390_emit_jump): Likewise for return type.
5637 (s390_split_branches): Likewise for local "label".
5638 (struct constant): Strengthen field "label" from rtx to
5639 rtx_code_label *.
5640 (struct constant_pool): Likewise for field "label". Strengthen
5641 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5642 rtx_insn *.
5643 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5644 insns.
5645 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5646 (s390_end_pool): Likewise.
5647 (s390_dump_pool): Likewise for local "insn".
5648 (s390_mainpool_start): Likewise.
5649 (s390_chunkify_start): Likewise.
5650 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5651 with insns. Strengthen locals "label", "jump", "barrier", "next",
5652 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5653 (s390_chunkify_finish): Strengthen local "insn" from rtx to
5654 rtx_insn *.
5655 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5656 "jump", "label", "next_insn".
5657 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5658 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5659 "tbegin_insn".
5660 (s390_load_got): Likewise for return type and local "insns".
5661 (s390_save_gprs_to_fprs): Likewise for local "insn".
5662 (s390_restore_gprs_from_fprs): Likewise.
5663 (pass_s390_early_mach::execute): Likewise.
5664 (s390_emit_prologue): Likewise for local "insns".
5665 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5666 rtx_code_label *.
5667 (s390_emit_call): Strengthen return type and local "insn" from
5668 rtx to rtx_insn *.
5669 (s390_emit_tpf_eh_return): Likewise for local "insn".
5670 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5671 "next_insn", introducing locals "s_pat", "rpat" to allow this.
5672 (s390_fix_long_loop_prediction): Likewise for param "insn" and
5673 local "cur_insn".
5674 (s390_non_addr_reg_read_p): Likewise for param "insn".
5675 (find_cond_jump): Likewise for return type and param "insn".
5676 (s390_swap_cmp): Likewise for param "insn".
5677 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5678 "prev_insn", "next_insn".
5679 (s390_reorg): Likewise for locals "insn", "target".
5680 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5681 (s390_sched_variable_issue): For now, rename param "insn" to
5682 "uncast_insn", introducing a checked cast.
5683 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5684 insn.
5685 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5686 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
5687
5688 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5689
5690 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5691 param from rtx to rtx_insn *.
5692 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5693
5694 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5695
5696 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5697 4 from rtx to rtx_insn *.
5698 (rs6000_final_prescan_insn): Likewise for first param.
5699 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5700 local "insn".
5701 (rs6000_get_some_local_dynamic_name): Likewise.
5702 (output_cbranch): Likewise for param "insn".
5703 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5704 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5705 (rs6000_emit_allocate_stack): Likewise for local "insn".
5706 (load_cr_save): Likewise.
5707 (restore_saved_cr): Likewise.
5708 (restore_saved_lr): Likewise.
5709 (emit_cfa_restores): Likewise.
5710 (rs6000_output_function_epilogue): Likewise for locals "insn" and
5711 "deleted_debug_label".
5712 (rs6000_output_mi_thunk): Likewise for local "insn".
5713 (rs6000_final_prescan_insn): Likewise for param "insn".
5714
5715 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5716
5717 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5718 Strengthen param "insn" from rtx to rtx_insn *.
5719 * config/picochip/picochip.c (picochip_current_prescan_insn):
5720 Likewise for this variable.
5721 (picochip_final_prescan_insn): Likewise for param "insn".
5722
5723 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5724
5725 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5726 from rtx to rtx_insn *.
5727 (pa_output_indirect_call): Likewise.
5728 (pa_adjust_insn_length): Likewise.
5729 (pa_attr_length_millicode_call): Likewise.
5730 (pa_attr_length_call): Likewise.
5731 (pa_attr_length_indirect_call): Likewise.
5732
5733 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5734 "insn".
5735 (pa_attr_length_millicode_call): Likewise.
5736 (pa_attr_length_call): Likewise.
5737 (pa_output_call): Likewise.
5738 (pa_attr_length_indirect_call): Likewise.
5739 (pa_output_indirect_call): Likewise.
5740
5741 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5742
5743 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5744 Strengthen first param from rtx to rtx_insn *.
5745 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5746 param "insn".
5747
5748 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5749
5750 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5751 type from rtx to rtx_insn *.
5752 (mips_expand_call): Likewise.
5753 (mips_adjust_insn_length): Likewise for first param.
5754 (mips_output_conditional_branch): Likewise.
5755 (mips_output_order_conditional_branch): Likewise.
5756 (mips_final_prescan_insn): Likewise.
5757
5758 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5759 rtx_insn * for the SEQUENCE case.
5760 (SEQ_END): Likewise.
5761 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5762 (mips_emit_call_insn): Likewise, also for local "insn".
5763 (mips16_gp_pseudo_reg): Likewise for local "scan".
5764 (mips16_build_call_stub): Likewise for return type and for local
5765 "insn". Introduce a new local "pattern" so that "insn" can indeed
5766 be an insn.
5767 (mips_expand_call): Strengthen return type and local "insn" from
5768 rtx to rtx_insn *.
5769 (mips_block_move_loop): Strengthen local "label" from rtx to
5770 rtx_code_label *.
5771 (mips_expand_synci_loop): Likewise for locals "label",
5772 "end_label".
5773 (mips_set_frame_expr): Strengthen local "insn" from rtx to
5774 rtx_insn *.
5775 (mips16e_collect_argument_saves): Likewise for locals "insn",
5776 "next".
5777 (mips_find_gp_ref): Likewise for param of callback for "pred"
5778 param, and for local "insn".
5779 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5780 (mips_insn_has_flexible_gp_ref_p): Likewise.
5781 (mips_epilogue_emit_cfa_restores): Likewise for return type and
5782 local "insn".
5783 (mips_epilogue_set_cfa): Likewise for local "insn".
5784 (mips_expand_epilogue): Likewise.
5785 (mips_adjust_insn_length): Likewise for param "insn".
5786 (mips_output_conditional_branch): Likewise.
5787 (mips_output_order_conditional_branch): Likewise.
5788 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5789 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5790 "falu2_turn_enabled_insn".
5791 (mips_builtin_branch_and_move): Strengthen locals "true_label",
5792 "done_label" from rtx to rtx_code_label *.
5793 (struct mips16_constant): Likewise for field "label".
5794 (mips16_add_constant): Likewise for return type.
5795 (mips16_emit_constants_1): Strengthen return type and param "insn"
5796 from rtx to rtx_insn *.
5797 (mips16_emit_constants): Likewise for param "insn".
5798 (mips16_insn_length): Likewise.
5799 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5800 to rtx_code_label *.
5801 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5802 from rtx to rtx_insn *.
5803 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5804 "jump". Strengthen local "label" from rtx to rtx_code_label *.
5805 (r10k_simplify_address): Strengthen param "insn" and local
5806 "def_insn" from rtx to rtx_insn *.
5807 (r10k_safe_address_p): Strengthen param "insn" from rtx to
5808 rtx_insn *.
5809 (r10k_needs_protection_p_1): Update target type of cast of data
5810 from to rtx to rtx_insn *.
5811 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5812 rtx * to rtx_insn **.
5813 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5814 rtx_insn *.
5815 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5816 (mips_call_expr_from_insn): Likewise for param "insn".
5817 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5818 (mips_find_pic_call_symbol): Likewise for param "insn".
5819 (mips_annotate_pic_calls): Likewise for local "insn".
5820 (mips_sim_insn): Likewise for this variable.
5821 (struct mips_sim): Likewise for field "insn" within elements of
5822 last_set array.
5823 (mips_sim_wait_reg): Likewise for param "insn".
5824 (mips_sim_wait_regs): Likewise.
5825 (mips_sim_wait_units): Likewise.
5826 (mips_sim_wait_insn): Likewise.
5827 (mips_sim_issue_insn): Likewise.
5828 (mips_sim_finish_insn): Likewise.
5829 (mips_seq_time): Likewise for param "seq" and local "insn".
5830 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5831 locals "first", "second".
5832 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5833 "last", "last2", "next".
5834 (mips_avoid_hazard): Likewise for params "after", "insn".
5835 (mips_reorg_process_insns): Likewise for locals "insn",
5836 "last_insn", "subinsn", "next_insn".
5837 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5838 (mips16_split_long_branches): Likewise for locals "insn" "jump",
5839 "jump_sequence".
5840 (mips_output_mi_thunk): Likewise for local "insn".
5841 (mips_final_prescan_insn): Likewise for param "insn".
5842
5843 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5844
5845 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
5846 Strengthen return type and local "insns" from rtx to rtx_insn *.
5847 (microblaze_legitimize_tls_address): Likewise for local "insns".
5848 (microblaze_block_move_loop): Strengthen local "label" from rtx
5849 to rtx_code_label *.
5850 (microblaze_expand_prologue): Strengthen two locals named "insn"
5851 from rtx to rtx_insn *.
5852 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
5853 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
5854 "insn". Strengthen locals "div_label", "div_end_label" from rtx
5855 to rtx_code_label *.
5856
5857 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5858
5859 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
5860 param from rtx to rtx_insn *.
5861 (mep_reuse_lo): Likewise for third param.
5862 (mep_use_post_modify_p): Likewise for first param.
5863 (mep_core_address_length): Likewise.
5864 (mep_cop_address_length): Likewise.
5865 (mep_final_prescan_insn): Likewise.
5866 (mep_store_data_bypass_p): Likewise for both params.
5867 (mep_mul_hilo_bypass_p): Likewise.
5868 (mep_ipipe_ldc_p): Likewise for param.
5869
5870 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5871 (mep_rewrite_mult): Likewise.
5872 (mep_rewrite_mulsi3): Likewise.
5873 (mep_rewrite_maddsi3): Likewise.
5874 (mep_reuse_lo_p_1): Likewise.
5875 (mep_reuse_lo_p): Likewise.
5876 (mep_frame_expr): Likewise.
5877 (mep_make_parallel): Likewise for both params.
5878 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5879 local "insn".
5880 (mep_use_post_modify_p): Likewise for param "insn".
5881 (mep_core_address_length): Likewise.
5882 (mep_cop_address_length): Likewise.
5883 (mep_reg_set_in_function): Likewise for local "insn".
5884 (mep_asm_without_operands_p): Likewise.
5885 (F): Likewise for return type and param "x".
5886 (add_constant): Likewise for local "insn".
5887 (maybe_dead_move): Likewise for return type and local "insn".
5888 (mep_expand_prologue): Likewise for local "insn".
5889 (mep_final_prescan_insn): Likewise for param "insn".
5890 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5891 "next", "follow", "x".
5892 (mep_insert_repeat_label_last): Likewise for return type, param
5893 "last_insn", and locals "next", "prev". Strengthen param "label"
5894 from rtx to rtx_code_label *.
5895 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5896 rtx_insn *.
5897 (struct mep_doloop_end): Likewise for fields "insn" and
5898 "fallthrough".
5899 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5900 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5901 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5902 rtx_insn *.
5903 (mep_invert_branch): Likewise for params "insn" and "after".
5904 (mep_reorg_erepeat): Likewise for param "insns" and locals
5905 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5906 "l" from rtx to rtx_code_label *.
5907 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
5908 from rtx to rtx_insn *.
5909 (mep_reorg_addcombine): Likewise for param "insns" and locals
5910 "i", "n".
5911 (add_sp_insn_p): Likewise for param "insn".
5912 (mep_reorg_noframe): Likewise for param "insns" and locals
5913 "start_frame_insn", "end_frame_insn", "next".
5914 (mep_reorg): Likewise for local "insns".
5915 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
5916 cast.
5917 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
5918 (mep_mul_hilo_bypass_p): Likewise.
5919 (mep_ipipe_ldc_p): Likewise for param "insn".
5920 (mep_make_bundle): Likewise for return type, param "cop" and local
5921 "insn", splitting out the latter into a new local "seq" for when it
5922 is a SEQUENCE rather than an insn.
5923 (core_insn_p): Likewise for param "insn".
5924 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
5925 "last", "first", "note", "prev", "core_insn".
5926
5927 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5928
5929 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
5930 rtx to rtx_insn *.
5931 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
5932 (m68k_final_prescan_insn): Likewise for first param.
5933
5934 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
5935 (m68k_set_frame_related): Likewise for param "insn".
5936 (output_btst): Likewise for param "insn".
5937 (m68k_final_prescan_insn): Likewise.
5938 (m68k_move_to_reg): Likewise for local "insn".
5939 (m68k_call_tls_get_addr): Likewise for local "insns".
5940 (m68k_call_m68k_read_tp): Likewise.
5941 (strict_low_part_peephole_ok): Likewise for param "first_insn".
5942 (m68k_output_mi_thunk): Likewise for local "insn".
5943
5944 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5945
5946 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
5947 first param from rtx to rtx_insn *.
5948 (iq2000_adjust_insn_length): Likewise.
5949 (iq2000_output_conditional_branch): Likewise.
5950 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
5951 "insn" and local "nop_insn".
5952 (iq2000_annotate_frame_insn): Likewise for param "insn".
5953 (iq2000_expand_prologue): Likewise for both locals "insn".
5954 (iq2000_adjust_insn_length): Likewise for param "insn".
5955 (iq2000_output_conditional_branch): Likewise.
5956
5957 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5958
5959 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
5960 "insns" from rtx to rtx_insn *.
5961 (ia64_emit_cond_move): Likewise for locals "insn", "first".
5962 (struct spill_fill_data): Likewise for field "init_after" and for
5963 elements of array field "prev_insn".
5964 (spill_restore_mem): Likewise for locals "insn", "first".
5965 (do_spill): Likewise for local "insn".
5966 (do_restore): Likewise.
5967 (ia64_expand_prologue): Likewise.
5968 (ia64_expand_epilogue): Likewise.
5969 (emit_insn_group_barriers): Likewise for locals "insn",
5970 "last_label".
5971 (emit_all_insn_group_barriers): Likewise for locals "insn",
5972 "last".
5973 (dfa_stop_insn): Likewise for this global.
5974 (dfa_pre_cycle_insn): Likewise.
5975 (ia64_nop): Likewise.
5976 (final_emit_insn_group_barriers): Likewise for locals "insn",
5977 "last".
5978 (emit_predicate_relation_info): Likewise for locals "head", "n",
5979 "insn", "b", "a".
5980 (ia64_reorg): Likewise for local "insn".
5981 (ia64_output_mi_thunk): Likewise.
5982 (expand_vec_perm_interleave_2): Likewise for local "seq".
5983
5984 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5985
5986 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
5987 param 1 "insn" from rtx to rtx_insn *.
5988 (ix86_use_lea_for_mov): Likewise.
5989 (ix86_avoid_lea_for_addr): Likewise.
5990 (ix86_split_lea_for_addr): Likewise.
5991 (ix86_lea_for_add_ok): Likewise.
5992 (ix86_output_call_insn): Likewise.
5993
5994 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
5995 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
5996 (ix86_output_function_epilogue): Likewise for locals "insn",
5997 "deleted_debug_label".
5998 (legitimize_tls_address): Likewise for local "insn".
5999 (get_some_local_dynamic_name): Likewise.
6000 (increase_distance): Likewise for params "prev", "next".
6001 (distance_non_agu_define_in_bb): Likewise for params "insn",
6002 "start" and locals "prev", "next".
6003 (distance_non_agu_define): Likewise for param "insn".
6004 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6005 locals "next", "prev".
6006 (distance_agu_use): Likewise for param "insn".
6007 (ix86_lea_outperforms): Likewise.
6008 (ix86_ok_to_clobber_flags): Likewise.
6009 (ix86_avoid_lea_for_add): Likewise.
6010 (ix86_use_lea_for_mov): Likewise.
6011 (ix86_avoid_lea_for_addr): Likewise.
6012 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6013 (ix86_split_lea_for_addr): Likewise for param "insn".
6014 (ix86_lea_for_add_ok): Likewise for param "insn".
6015 (ix86_expand_carry_flag_compare): Likewise for local
6016 "compare_seq".
6017 (ix86_expand_int_movcc): Likewise.
6018 (ix86_output_call_insn): Likewise for param "insn".
6019 (ix86_output_call_insn): Likewise for local "i".
6020 (x86_output_mi_thunk): Introduce local "insn", using it in place
6021 of "tmp" when dealing with insns.
6022 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6023 "start".
6024 (ix86_pad_returns): Likewise for locals "ret", "prev".
6025 (ix86_count_insn_bb): Likewise for local "insn".
6026 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6027 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6028 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6029 (expand_vec_perm_interleave2): Likewise for local "seq".
6030 (expand_vec_perm_vperm2f128_vblend): Likewise.
6031 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6032 call to for_each_rtx with for_each_rtx_in_insn.
6033
6034 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6035
6036 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6037 "label" from rtx to rtx_code_label *.
6038 (ix86_expand_prologue): Likewise.
6039 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6040 "varargs_label".
6041 (ix86_split_idivmod): Likewise for locals "end_label" and
6042 "qimode_label".
6043 (ix86_expand_branch): Likewise for local "label2".
6044 (ix86_expand_aligntest): Likewise for return type and local "label".
6045 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6046 "top_label".
6047 (expand_movmem_epilogue): Likewise for the various locals named
6048 "label".
6049 (expand_setmem_epilogue): Likewise.
6050 (expand_small_movmem_or_setmem): Likewise for local "label".
6051 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6052 Strengthen param "done_label" from rtx * to rtx_code_label **.
6053 Strengthen locals "loop_label" and "label" from rtx to
6054 rtx_code_label *.
6055 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6056 Likewise for locals "loop_label", "label".
6057 (ix86_expand_set_or_movmem): Likewise for locals "label",
6058 "jump_around_label", "hot_label".
6059 (ix86_expand_strlensi_unroll_1): Likewise for locals
6060 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6061 "end_2_label".
6062 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6063 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6064 "label2", "jump_label".
6065 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6066 local "label".
6067 (ix86_expand_lfloorceil): Likewise for local "label".
6068 (ix86_expand_rint): Likewise.
6069 (ix86_expand_floorceildf_32): Likewise.
6070 (ix86_expand_floorceil): Likewise.
6071 (ix86_expand_rounddf_32): Likewise.
6072 (ix86_expand_trunc): Likewise.
6073 (ix86_expand_truncdf_32): Likewise.
6074 (ix86_expand_round): Likewise.
6075
6076 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6077
6078 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6079 first param from rtx to rtx_insn *.
6080 (h8300_insn_length_from_table): Likewise.
6081 * config/h8300/h8300.c (F): Likewise for return type and param
6082 "x".
6083 (Fpa): Add a checked cast to rtx_insn *.
6084 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6085 rtx_insn *.
6086 (final_prescan_insn): Likewise for param "insn".
6087 (h8300_binary_length): Likewise.
6088 (h8300_insn_length_from_table): Likewise.
6089
6090 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6091
6092 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6093 Strengthen first param "insn" from rtx to rtx_insn *.
6094
6095 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6096 Likewise.
6097 (frame_insn): Likewise for return type. Introduce local "insn"
6098 for use in place of local "x" for use as an rtx_insn *.
6099 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6100 (epiphany_expand_prologue): Likewise for local "insn".
6101 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6102 * config/epiphany/resolve-sw-modes.c
6103 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6104 "seq".
6105
6106 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6107
6108 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6109 param from rtx to rtx_insn *.
6110 (c6x_final_prescan_insn): Likewise for first param.
6111
6112 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6113 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6114 (c6x_expand_compare): Strengthen local "insns" from rtx to
6115 rtx_insn *.
6116 (c6x_get_unit_specifier): Likewise for param "insn".
6117 (c6x_print_unit_specifier_field): Likewise.
6118 (c6x_final_prescan_insn): Likewise.
6119 (emit_add_sp_const): Likewise for local "insn".
6120 (c6x_expand_prologue): Likewise.
6121
6122 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6123
6124 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6125 param 1 from rtx to rtx_insn *.
6126 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6127 the various locals named "insn".
6128 (expand_epilogue_reg_restore): Likewise.
6129 (frame_related_constant_load): Likewise.
6130 (add_to_reg): Likewise.
6131 (emit_link_insn): Likewise.
6132 (do_link): Likewise.
6133 (expand_interrupt_handler_prologue): Likewise.
6134 (branch_dest): Likewise for param "branch".
6135 (asm_conditional_branch): Likewise for param "insn".
6136 (gen_one_bundle): Likewise for elements of param "slot" and local
6137 "t".
6138 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6139 elements of local "slot".
6140 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6141 "queue", "next_queue", "prev".
6142 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6143 (add_sched_insns_for_speculation): Likewise for local "insn".
6144
6145 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6146
6147 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6148 from rtx to rtx_insn *.
6149 (output_movhi): Likewise.
6150 (output_movsisf): Likewise.
6151 (avr_out_tstsi): Likewise.
6152 (avr_out_tsthi): Likewise.
6153 (avr_out_tstpsi): Likewise.
6154 (avr_out_compare): Likewise.
6155 (avr_out_compare64): Likewise.
6156 (avr_out_movpsi): Likewise.
6157 (ashlqi3_out): Likewise.
6158 (ashlhi3_out): Likewise.
6159 (ashlsi3_out): Likewise.
6160 (ashrqi3_out): Likewise.
6161 (ashrhi3_out): Likewise.
6162 (ashrsi3_out): Likewise.
6163 (lshrqi3_out): Likewise.
6164 (lshrhi3_out): Likewise.
6165 (lshrsi3_out): Likewise.
6166 (avr_out_ashlpsi3): Likewise.
6167 (avr_out_ashrpsi3): Likewise.
6168 (avr_out_lshrpsi3): Likewise.
6169 (avr_out_fract): Likewise.
6170 (avr_out_sbxx_branch): Likewise.
6171 (avr_out_round): Likewise.
6172 (avr_out_xload): Likewise.
6173 (avr_out_movmem): Likewise.
6174 (adjust_insn_length): Likewise.
6175 (avr_out_lpm): Likewise.
6176 (reg_unused_after): Likewise.
6177 (_reg_unused_after): Likewise.
6178 (avr_jump_mode): Likewise for second param.
6179 (jump_over_one_insn): Likewise for first param.
6180 (avr_final_prescan_insn): Likewise.
6181 (out_shift_with_cnt): Likewise for second param.
6182
6183 * config/avr/avr.c (get_sequence_length): Likewise for param
6184 "insns" and local "insn".
6185 (emit_push_byte): Likewise for local "insn".
6186 (emit_push_sfr): Likewise.
6187 (avr_prologue_setup_frame): Likewise for locals "insn",
6188 "fp_plus_insns", "sp_plus_insns".
6189 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6190 "sp_plus_insns".
6191 (avr_jump_mode): Likewise for param "insn".
6192 (avr_final_prescan_insn): Likewise.
6193 (avr_find_unused_d_reg): Likewise.
6194 (avr_out_lpm_no_lpmx): Likewise.
6195 (avr_out_lpm): Likewise.
6196 (avr_out_xload): Likewise.
6197 (output_movqi): Likewise.
6198 (output_movhi): Likewise.
6199 (out_movqi_r_mr): Likewise.
6200 (out_movhi_r_mr): Likewise.
6201 (out_movsi_r_mr): Likewise.
6202 (out_movsi_mr_r): Likewise.
6203 (output_movsisf): Likewise.
6204 (avr_out_load_psi): Likewise.
6205 (avr_out_store_psi): Likewise.
6206 (avr_out_movpsi): Likewise.
6207 (out_movqi_mr_r): Likewise.
6208 (avr_out_movhi_mr_r_xmega): Likewise.
6209 (out_movhi_mr_r): Likewise.
6210 (compare_condition): Likewise for param "insn" and local "next".
6211 (compare_sign_p): Likewise for param "insn".
6212 (compare_diff_p): Likewise.
6213 (compare_eq_p): Likewise.
6214 (avr_out_compare): Likewise.
6215 (avr_out_compare64): Likewise.
6216 (avr_out_tsthi): Likewise.
6217 (avr_out_tstpsi): Likewise.
6218 (avr_out_tstsi): Likewise.
6219 (out_shift_with_cnt): Likewise.
6220 (ashlqi3_out): Likewise.
6221 (ashlhi3_out): Likewise.
6222 (avr_out_ashlpsi3): Likewise.
6223 (ashlsi3_out): Likewise.
6224 (ashrqi3_out): Likewise.
6225 (ashrhi3_out): Likewise.
6226 (avr_out_ashrpsi3): Likewise.
6227 (ashrsi3_out): Likewise.
6228 (lshrqi3_out): Likewise.
6229 (lshrhi3_out): Likewise.
6230 (avr_out_lshrpsi3): Likewise.
6231 (lshrsi3_out): Likewise.
6232 (avr_out_fract): Likewise.
6233 (avr_out_round): Likewise.
6234 (avr_adjust_insn_length): Likewise.
6235 (reg_unused_after): Likewise.
6236 (_reg_unused_after): Likewise.
6237 (avr_compare_pattern): Likewise.
6238 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6239 and locals "branch1", "branch2", "insn2", "jump".
6240 (avr_reorg): Likewise for local "insn".
6241 (avr_2word_insn_p): Likewise for param "insn".
6242 (jump_over_one_insn_p): Likewise.
6243 (avr_out_sbxx_branch): Likewise.
6244 (avr_out_movmem): Likewise.
6245
6246 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6247
6248 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6249 param from rtx to rtx_insn *.
6250 (thumb1_final_prescan_insn): Likewise.
6251 (thumb2_final_prescan_insn): Likewise.
6252
6253 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6254 rtx to rtx_insn *.
6255 (struct minipool_node): Likewise for field "insn".
6256 (dump_minipool): Likewise for param "scan".
6257 (create_fix_barrier): Likewise for local "from". Strengthen local
6258 "label" from rtx to rtx_code_label *.
6259 (push_minipool_barrier): Strengthen param "insn" from rtx to
6260 rtx_insn *.
6261 (push_minipool_fix): Likewise.
6262 (note_invalid_constants): Likewise.
6263 (thumb2_reorg): Likewise for local "insn".
6264 (arm_reorg): Likewise.
6265 (thumb2_final_prescan_insn): Likewise for param
6266 "insn" and local "first_insn".
6267 (arm_final_prescan_insn): Likewise for param "insn" and locals
6268 "start_insn", "this_insn".
6269 (arm_debugger_arg_offset): Likewise for param "insn".
6270 (thumb1_emit_multi_reg_push): Likewise for return type and local
6271 "insn".
6272 (thumb1_final_prescan_insn): Likewise for param "insn".
6273 (thumb_far_jump_used_p): Likewise for local "insn".
6274 (thumb1_expand_prologue): Likewise.
6275 (arm_expand_epilogue_apcs_frame): Likewise.
6276 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6277 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6278 from rtx to rtx_code_label *.
6279 (arm_split_atomic_op): Likewise for local "label".
6280 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6281
6282 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6283
6284 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6285 first param from rtx to rtx_insn *.
6286 (arc_verify_short): Likewise.
6287 (arc_short_long): Likewise.
6288 (arc_need_delay): Likewise.
6289
6290 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6291 "target_insn".
6292 (arc_ccfsm_advance): Likewise for param "insn" and locals
6293 "start_insn", "this_insn".
6294 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6295 (arc_ccfsm_post_advance): Likewise for param "insn".
6296 (arc_next_active_insn): Likewise for return type and param "insn".
6297 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6298 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6299 (output_short_suffix): Likewise for local "insn".
6300 (arc_final_prescan_insn): Likewise for param "insn". Remove
6301 now-redundant checked cast.
6302 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6303 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6304 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6305 for use where lc_set became an insn.
6306 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6307 rtx to rtx_insn *.
6308 (arc_get_insn_variants): Likewise for local "prev".
6309 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6310 "next".
6311 (arc_predicate_delay_insns): Likewise for local "insn".
6312 (arc_pad_return): Likewise for local "prev". For now, add a
6313 checked cast when extracting the insn from "final_sequence".
6314 (arc_short_long): Likewise for param "insn".
6315 (arc_need_delay): Likewise for param "insn" and local "next".
6316 (arc_label_align): Likewise for locals "prev", "next".
6317
6318 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6319
6320 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6321 "insn" from rtx to rtx_insn *.
6322 (alpha_gp_save_rtx): Likewise for local "seq".
6323 (alpha_instantiate_decls): Likewise for local "top".
6324 (get_some_local_dynamic_name): Likewise for local "insn".
6325 (alpha_does_function_need_gp): Likewise.
6326 (set_frame_related_p): Likewise for return type and for locals
6327 "seq" and "insn".
6328 (emit_frame_store_1): Likewise for local "insn".
6329 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6330 (alpha_end_function): Likewise for local "insn".
6331 (alpha_output_mi_thunk_osf): Likewise.
6332 (alphaev4_insn_pipe): Likewise for param "insn".
6333 (alphaev5_insn_pipe): Likewise.
6334 (alphaev4_next_group): Likewise for return type and param 1
6335 "insn".
6336 (alphaev5_next_group): Likewise.
6337 (alpha_align_insns_1): Likewise for return type and param 1 of
6338 callback param "next_group", and for locals "i", "next", "prev",
6339 "where", "where2", "insn".
6340
6341 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6342
6343 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6344 rather than modifying the stmt.
6345
6346 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6347
6348 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6349 cgraph_state conversion.
6350
6351 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6352
6353 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6354 Strengthen local "insns" from rtx to rtx_insn *.
6355 (aarch64_set_frame_expr): Likewise for local "insn".
6356 (aarch64_save_or_restore_fprs): Likewise.
6357 (aarch64_save_or_restore_callee_save_registers): Likewise.
6358 (aarch64_expand_prologue): Likewise.
6359 (aarch64_expand_epilogue): Likewise.
6360 (aarch64_output_mi_thunk): Likewise.
6361 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6362 "label2" from rtx to rtx_code_label *.
6363 (aarch64_split_atomic_op): Likewise for local "label".
6364
6365 2014-08-25 Martin Liska <mliska@suse.cz>
6366
6367 * cgraph.h (symtab_node):
6368 (bool needed_p (void)): created from decide_is_symbol_needed
6369 (bool referred_to_p (void)): created from referred_to_p
6370 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6371 * cgraph.h (cgraph_node):
6372 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6373 (void expand (void)): created from expand_function
6374 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6375 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6376 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6377 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6378 * cgraph.h (varpool_node):
6379 (static void add (tree decl): created from varpool_add_new_variable
6380 * cgraph.h (cgraph_edge):
6381 void remove (void);
6382 (void remove_caller (void)): created from cgraph_edge_remove_caller
6383 (void remove_callee (void)): created from cgraph_edge_remove_callee
6384 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6385 created from cgraph_set_call_stmt
6386 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6387 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6388 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6389 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6390 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6391 created from cgraph_speculative_call_info
6392 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6393 int freq_scale, bool update_original)): created from cgraph_clone_edge
6394 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6395 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6396 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6397 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6398 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6399 (static void rebuild_references (void)): created from cgraph_rebuild_references
6400 * cgraph.h (symbol_table):
6401 (create_reference): renamed from add_reference
6402 (maybe_create_reference): renamed from maybe_add_reference
6403 (void register_symbol (symtab_node *node)): new function
6404 (void clear_asm_symbols (void)): new function
6405 (void unregister (symtab_node *node)): new function
6406 (void release_symbol (cgraph_node *node, int uid)): new function
6407 (cgraph_node * allocate_cgraph_symbol (void)): new function
6408 (void initialize (void)): created from cgraph_init
6409 (symtab_node *first_symbol (void)):new function
6410 (asm_node *first_asm_symbol (void)):new function
6411 (symtab_node *first_defined_symbol (void)):new function
6412 (varpool_node *first_variable (void)):new function
6413 (varpool_node *next_variable (varpool_node *node)):new function
6414 (varpool_node *first_static_initializer (void)):new function
6415 (varpool_node *next_static_initializer (varpool_node *node)):new function
6416 (varpool_node *first_defined_variable (void)):new function
6417 (varpool_node *next_defined_variable (varpool_node *node)):new function
6418 (cgraph_node *first_defined_function (void)):new function
6419 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6420 (cgraph_node *first_function (void)):new function
6421 (cgraph_node *next_function (cgraph_node *node)):new function
6422 (cgraph_node *first_function_with_gimple_body (void)):new function
6423 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6424 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6425 created from symtab_remove_unreachable_nodes
6426 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6427 (void process_new_functions (void)): created from cgraph_process_new_functions
6428 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6429 (bool output_variables (void)): created from varpool_node::output_variables
6430 (void output_asm_statements (void)): created from output_asm_statements
6431 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6432 (void compile (void)): created from compile
6433 (void output_weakrefs (void)): created from output_weakrefs
6434 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6435 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6436 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6437 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6438 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6439 created from cgraph_next_function_with_gimple_body
6440 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6441 created from cgraph_remove_edge_removal_hook
6442 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6443 created from cgraph_add_node_removal_hook
6444 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6445 created from cgraph_remove_node_removal_hook
6446 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6447 created from varpool_add_node_removal_hook
6448 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6449 created from varpool_remove_node_removal_hook
6450 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6451 created from cgraph_add_function_insertion_hook
6452 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6453 created from cgraph_remove_function_insertion_hook
6454 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6455 created from varpool_add_variable_insertion_hook
6456 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6457 created from varpool_remove_variable_insertion_hook
6458 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6459 created from cgraph_add_edge_duplication_hook
6460 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6461 created from cgraph_remove_edge_duplication_hook
6462 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6463 created from cgraph_add_node_duplication_hook
6464 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6465 created from cgraph_remove_node_duplication_hook
6466 (void call_edge_removal_hooks (cgraph_edge *e)):
6467 created from cgraph_call_edge_removal_hooks
6468 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6469 created from call_function_insertion_hooks
6470 (void call_cgraph_removal_hooks (cgraph_node *node)):
6471 created from cgraph_call_node_removal_hooks
6472 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6473 created from cgraph_node::call_duplication_hooks
6474 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6475 created from cgraph_call_edge_duplication_hooks
6476 (void call_varpool_removal_hooks (varpool_node *node)):
6477 created from varpool_call_node_removal_hooks
6478 (void call_varpool_insertion_hooks (varpool_node *node)):
6479 created from varpool_call_variable_insertion_hooks
6480 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6481 created from insert_to_assembler_name_hash
6482 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6483 created from unlink_from_assembler_name_hash
6484 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6485 created from symtab_prevail_in_asm_name_hash
6486 (void symtab_initialize_asm_name_hash (void)):
6487 created from symtab_initialize_asm_name_hash
6488 (void change_decl_assembler_name (tree decl, tree name)):
6489 created from change_decl_assembler_name
6490 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6491 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6492 created from decl_assembler_name_hash
6493 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6494 created from decl_assembler_name_equal
6495 (static hashval_t hash_node_by_assembler_name (const void *p)):
6496 created from hash_node_by_assembler_name
6497 (static int eq_assembler_name (const void *p1, const void *p2)):
6498 created from eq_assembler_name
6499
6500 2014-08-25 Marek Polacek <polacek@redhat.com>
6501
6502 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6503
6504 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6505
6506 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6507 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6508 SWI1248_AVX512BW mode iterator.
6509
6510 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6511
6512 PR target/62111
6513 * config/sh/predicates.md (general_extend_operand): Disable
6514 TRUNCATE before reload completes.
6515
6516 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
6517
6518 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6519
6520 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
6521
6522 PR target/61996
6523 * config/sh/sh.opt (musermode): Allow negative form.
6524 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6525 targets that don't support it.
6526 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6527 Document -mno-usermode option.
6528
6529 2014-08-24 Kito Cheng <kito@0xlab.org>
6530
6531 * system.h (CALLER_SAVE_PROFITABLE): Poison.
6532 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6533 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6534 * doc/tm.texi: Regenerate.
6535
6536 2014-08-24 Kito Cheng <kito@0xlab.org>
6537
6538 * ira.c: Fix typo in comment.
6539
6540 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6541
6542 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6543 Deprecate c++1y. Change language to reflect greater confidence in C++14.
6544
6545 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
6546
6547 PR target/62038
6548 * config/pa/pa.c (pa_output_function_epilogue): Don't set
6549 last_address when the current function is a thunk.
6550 (pa_asm_output_mi_thunk): When we don't have named sections or they
6551 are not being used, check that thunk can reach the stub table with a
6552 short branch.
6553
6554 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6555
6556 * web.c (union_match_dups): Strengthen param "insn" from rtx to
6557 rtx_insn *.
6558 (pass_web::execute): Likewise for local "insn".
6559
6560 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6561
6562 * var-tracking.c (struct micro_operation_def): Strengthen field
6563 "insn" from rtx to rtx_insn *.
6564 (struct emit_note_data_def): Likewise.
6565 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6566 (vt_stack_adjustments): Likewise for local "insn".
6567 (adjust_insn): Likewise for param "insn".
6568 (val_store): Likewise.
6569 (val_resolve): Likewise.
6570 (struct count_use_info): Likewise for field "insn".
6571 (log_op_type): Likewise for param "insn".
6572 (reverse_op): Likewise.
6573 (prepare_call_arguments): Likewise.
6574 (add_with_sets): The initial param takes an insn, but we can't
6575 yet strengthen it from rtx to rtx_insn * since it's used as a
6576 cselib_record_sets_hook callback. For now rename initial param
6577 from "insn" to "uncast_insn", and introduce a local "insn" of
6578 the stronger rtx_insn * type, with a checked cast.
6579 (compute_bb_dataflow): Strengthen local "insn" from rtx to
6580 rtx_insn *.
6581 (emit_note_insn_var_location): Likewise.
6582 (emit_notes_for_changes): Likewise.
6583 (emit_notes_for_differences): Likewise.
6584 (next_non_note_insn_var_location): Likewise for return type and
6585 for param "insn".
6586 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6587 (vt_initialize): Likewise for local "insn".
6588 (delete_debug_insns): Likewise for locals "insn" and "next".
6589
6590 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6591
6592 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6593 rtx_insn *.
6594 (mark_constant_pool): Likewise for local "insn".
6595
6596 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6597
6598 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6599 rtx to rtx_insn *.
6600 (dead_debug_promote_uses): Likewise.
6601 (dead_debug_insert_temp): Likewise.
6602
6603 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6604
6605 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6606 from const_rtx to const rtx_insn *.
6607 (store_killed_after): Likewise. Strengthen locals "last", "act"
6608 from rtx to rtx_insn *.
6609 (store_killed_before): Strengthen param "insn" from const_rtx to
6610 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
6611 (find_moveable_store): Strengthen param "insn" from rtx to
6612 rtx_insn *.
6613 (compute_store_table): Likewise for local "insn".
6614 (insert_insn_start_basic_block): Likewise for param "insn" and
6615 locals "prev", "before", "insn".
6616 (insert_store): For now, add a checked cast to rtx_insn * on the
6617 result of gen_move_insn.
6618 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6619 to rtx_insn *.
6620 (replace_store_insn): Likewise. For now, add a checked cast to
6621 rtx_insn * on the result of gen_move_insn.
6622
6623 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6624
6625 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6626 rtx_insn *.
6627 (expand_sjlj_dispatch_table): Likewise.
6628
6629 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6630
6631 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6632 "insn" from rtx to rtx_insn *.
6633
6634 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6635
6636 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6637 "insn" from rtx to rtx_insn *.
6638 (dup_block_and_redirect): Likewise for param 3 "before".
6639
6640 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6641 from rtx to rtx_insn *.
6642 (move_insn_for_shrink_wrap): Likewise.
6643 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6644 (dup_block_and_redirect): Likewise for param "before" and local
6645 "insn".
6646 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6647 "end".
6648 (convert_to_simple_return): Likewise for local "start".
6649
6650 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6651 Strengthen local "insn" from rtx to rtx_insn *, for use when
6652 invoking requires_stack_frame_p.
6653
6654 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6655
6656 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6657 rtx_insn *.
6658 (speculate_expr): Likewise for locals "orig_insn_rtx",
6659 "spec_insn_rtx".
6660 (eq_transformed_insns): Likewise for locals "i1", "i2".
6661 (check_for_new_jump): Likewise for return type and local "end".
6662 (find_new_jump): Likewise for return type and local "jump".
6663 (sel_split_edge): Likewise for local "jump".
6664 (sel_create_recovery_block): Likewise.
6665 (sel_redirect_edge_and_branch_force): Likewise.
6666 (sel_redirect_edge_and_branch): Likewise.
6667
6668 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6669
6670 * sel-sched.c (substitute_reg_in_expr): Strengthen local
6671 "new_insn" from rtx to rtx_insn *.
6672 (create_insn_rtx_with_rhs): Likewise for return type and for local
6673 "insn_rtx".
6674 (create_insn_rtx_with_lhs): Likewise.
6675 (create_speculation_check): Likewise for local "insn_rtx".
6676 (implicit_clobber_conflict_p): Likewise for local "insn".
6677 (get_expr_cost): Likewise.
6678 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6679 (move_cond_jump): Likewise for locals "next", "prev", "link",
6680 "head", "from", "to".
6681
6682 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6683
6684 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6685 "next" from rtx to rtx_insn *.
6686 (find_conditional_protection): Likewise for local "next".
6687 (is_conditionally_protected): Likewise for local "insn1".
6688 (is_pfree): Likewise for locals "insn1", "insn2".
6689
6690 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6691
6692 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6693 from rtx to rtx_insn *.
6694
6695 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6696 locals "insn1", "insn2" from rtx to rtx_insn *.
6697 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6698 locals "insn", "prev", "last_jump", "next_tail".
6699 (schedule_ebb): Likewise for params "head", "tail".
6700 (schedule_ebbs): Likewise for locals "tail", "head".
6701
6702 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6703 to rtx_insn on "last_insn" in one of the invocations of
6704 schedule_ebb.
6705
6706 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6707
6708 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6709 "elem", "insn" from rtx to rtx_insn *.
6710 (change_spec_dep_to_hard): Likewise.
6711 (get_back_and_forw_lists): Likewise for local "con".
6712 (sd_add_dep): Likewise for locals "elem", "insn".
6713 (sd_resolve_dep): Likewise for locals "pro", "con".
6714 (sd_unresolve_dep): Likewise.
6715 (sd_delete_dep): Likewise.
6716 (chain_to_prev_insn): Likewise for local "pro".
6717 (find_inc): Likewise for locals "pro", "con".
6718
6719 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6720
6721 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6722 to rtx_insn *.
6723 (reg_set_between_p): Strengthen local "insn" from const_rtx to
6724 const rtx_insn *.
6725 (modified_between_p): Strengthen local "insn" from rtx to
6726 rtx_insn *.
6727 (remove_reg_equal_equiv_notes_for_regno): Likewise.
6728 (keep_with_call_p): Strengthen local "i2" from const_rtx to
6729 const rtx_insn *.
6730
6731 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6732
6733 * resource.c (next_insn_no_annul): Strengthen local "next" from
6734 rtx to rtx_insn *.
6735 (mark_referenced_resources): Likewise for local "insn".
6736
6737 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6738
6739 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6740 to rtx_insn *.
6741 (find_reloads): Likewise for param 1.
6742 (subst_reloads): Likewise for sole param.
6743 (find_equiv_reg): Likwise for param 2.
6744 (regno_clobbered_p): Likwise for param 2.
6745 (reload): Likewise for param 1.
6746
6747 * caller-save.c (save_call_clobbered_regs): Strengthen local
6748 "insn" from rtx to rtx_insn *.
6749 (insert_one_insn): Likewise for local "insn".
6750
6751 * reload.c (this_insn): Likewise for this global.
6752 (find_reloads): Likewise for param "insn".
6753 (find_reloads_toplev): Likewise.
6754 (find_reloads_address): Likewise.
6755 (subst_reg_equivs): Likewise.
6756 (update_auto_inc_notes): Likewise.
6757 (find_reloads_address_1): Likewise.
6758 (find_reloads_subreg_address): Likewise.
6759 (subst_reloads): Likewise.
6760 (find_equiv_reg): Likewise, also for local "p".
6761 (regno_clobbered_p): Likewise for param "insn".
6762
6763 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6764 array.
6765 (spill_reg_store): Likewise for the elements of this array.
6766 (remove_init_insns): Likewise for local "equiv_insn".
6767 (will_delete_init_insn_p): Likewise for param "insn".
6768 (reload): Likewise for param ""first" and local "insn".
6769 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6770 rtx_insn *.
6771 (calculate_elim_costs_all_insns): Likewise.
6772 (delete_caller_save_insns): Likewise.
6773 (spill_failure): Likewise for param "insn".
6774 (delete_dead_insn): Likewise.
6775 (set_label_offsets): Likewise.
6776 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6777 "prev_insn".
6778 (elimination_costs_in_insn): Likewise for param "insn".
6779 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6780 when referring to an insn.
6781 (set_initial_label_offsets): Likewise.
6782 (set_offsets_for_label): Strengthen param "insn" from rtx to
6783 rtx_insn *.
6784 (init_eliminable_invariants): Likewise for param "first" and local
6785 "insn".
6786 (fixup_eh_region_note): Likewise for param "insn".
6787 (reload_as_needed): Likewise for locals "prev", "insn",
6788 "old_next", "old_prev", "next".
6789 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6790 "last".
6791 (reload_inheritance_insn): Strengthen elements of this array from
6792 rtx to rtx_insn *.
6793 (failed_reload): Likewise for param "insn".
6794 (choose_reload_regs): Likewise for local "insn". Replace use of
6795 NULL_RTX with NULL when referring to an insn.
6796 (input_reload_insns): Strengthen elements of this array from rtx
6797 to rtx_insn *.
6798 (other_input_address_reload_insns): Likewise for this global.
6799 (other_input_reload_insns): Likewise for this global.
6800 (input_address_reload_insns): Likwise for the elements of this
6801 array.
6802 (inpaddr_address_reload_insns): Likwise for the elements of this
6803 array.
6804 (output_reload_insns): Likewise for the elements of this array.
6805 (output_address_reload_insns): Likewise for the elements of this
6806 array.
6807 (outaddr_address_reload_insns): Likewise for the elements of this
6808 array.
6809 (operand_reload_insns): Likewise for this global.
6810 (other_operand_reload_insns): Likewise for this global.
6811 (other_output_reload_insns): Likewise for the elements of this
6812 array.
6813 (new_spill_reg_store): Likewise for the elements of this
6814 array.
6815 (emit_input_reload_insns): Likewise for locals "insn", "temp".
6816 Strengthen local "where" from rtx * to rtx_insn **.
6817 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6818 from rtx to rtx_insn *.
6819 (do_input_reload): Likewise for local "insn".
6820 (do_output_reload): Likewise for local "insn".
6821 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6822 (emit_insn_if_valid_for_reload): Likewise for return type and local
6823 "last". Add checked cast to rtx_insn when returning "insn" since
6824 this has been through emit_insn.
6825 (gen_reload): Strengthen return type and locals "last", "insn", "set"
6826 from rtx to rtx_insn *. Add checked cast to rtx_insn when
6827 returning "insn" since it's been through
6828 emit_insn_if_valid_for_reload at this point.
6829 (delete_output_reload): Strengthen param "insn" and locals
6830 "output_reload_insn", "i2" from rtx to rtx_insn *.
6831 (delete_address_reloads): Likewise for params "dead_insn",
6832 "current_insn" and locals "prev", "next".
6833 (delete_address_reloads_1): Likewise for params "dead_insn",
6834 "current_insn" and locals "prev", "i2".
6835 (inc_for_reload): Likewise for locals "last", "add_insn".
6836 (add_auto_inc_notes): Strengthen param "insn" from rtx to
6837 rtx_insn *.
6838
6839 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6840 param of this duplicate of the prototype from reload.h
6841
6842 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6843
6844 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6845 rtx to rtx_insn *.
6846 (regstat_bb_compute_calls_crossed): Likewise.
6847
6848 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6849
6850 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
6851 to rtx_insn *.
6852 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
6853 with an insn.
6854 (regrename_analyze): Strengthen local "insn" from rtx to
6855 rtx_insn *.
6856 (scan_rtx_reg): Likewise for param "insn".
6857 (scan_rtx_address): Likewise.
6858 (scan_rtx): Likewise.
6859 (restore_operands): Likewise.
6860 (record_out_operands): Likewise.
6861 (build_def_use): Likewise for local "insn". Replace use of
6862 NULL_RTX with NULL when dealing with an insn.
6863
6864 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6865
6866 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
6867 * reginfo.c (reg_scan): Likewise, also for local "insn".
6868 (reg_scan_mark_refs): Likewise for param "insn".
6869 (init_subregs_of_mode): Likewise for local "insn".
6870
6871 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6872
6873 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6874 "insn" from rtx to rtx_insn *.
6875 (replace_oldest_value_reg): Likewise for param "insn".
6876 (replace_oldest_value_addr): Likewise.
6877 (replace_oldest_value_mem): Likewise.
6878 (apply_debug_insn_changes): Likewise for local "last_insn".
6879 (copyprop_hardreg_forward_1): Likewise for local "insn".
6880
6881 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6882
6883 * reg-stack.c (next_flags_user): Strengthen return type and param
6884 "insn" from rtx to rtx_insn *.
6885 (straighten_stack): Likewise for param "insn".
6886 (check_asm_stack_operands): Likewise.
6887 (remove_regno_note): Likewise.
6888 (emit_pop_insn): Likewise for return type, param "insn", local
6889 "pop_insn".
6890 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6891 "limit" from rtx to rtx_insn *.
6892 (swap_to_top): Likewise for param "insn".
6893 (move_for_stack_reg): Likewise.
6894 (move_nan_for_stack_reg): Likewise.
6895 (swap_rtx_condition): Likewise.
6896 (compare_for_stack_reg): Likewise.
6897 (subst_all_stack_regs_in_debug_insn): Likewise.
6898 (subst_stack_regs_pat): Likewise, and local "insn2".
6899 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6900 rtx_insn *.
6901 (subst_stack_regs): Likewise.
6902 (change_stack): Likewise.
6903 (convert_regs_1): Likewise for locals "insn", "next".
6904
6905 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6906
6907 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
6908 rtx_insn *.
6909 (combine_set_extension): Likewise for param "curr_insn".
6910 (transform_ifelse): Likewise for param "def_insn".
6911 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
6912 from vec<rtx> * to vec<rtx_insn *> *.
6913 (is_cond_copy_insn): Likewise for param "insn".
6914 (struct ext_state): Strengthen the four vec fields from vec<rtx>
6915 to vec<rtx_insn *>.
6916 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
6917 local "def_insn" from rtx to rtx_insn *.
6918 (get_sub_rtx): Likewise for param "def_insn".
6919 (merge_def_and_ext): Likewise.
6920 (combine_reaching_defs): Likewise.
6921 (add_removable_extension): Likewise for param "insn".
6922 (find_removable_extensions): Likewise for local "insn".
6923 (find_and_remove_re): Likewise for locals "curr_insn" and
6924 "def_insn". Strengthen locals "reinsn_del_list" and
6925 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
6926
6927 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6928
6929 * recog.c (split_insn): Strengthen param "insn" and locals
6930 "first", "last" from rtx to rtx_insn *.
6931 (split_all_insns): Likewise for locals "insn", "next".
6932 (split_all_insns_noflow): Likewise.
6933
6934 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6935
6936 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
6937 const rtx_insn *.
6938 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6939 (debug_rtx_find): Likewise for param 1 "x".
6940
6941 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
6942 const_rtx to const rtx_insn *. Likewise for local "insn".
6943 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6944 (debug_rtx_find): Likewise for param 1 "x".
6945 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
6946 from const_rtx to const rtx_insn * within the appropriate cases of
6947 the switch statement.
6948
6949 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
6950 Strengthen local "insns" from rtx to rtx_insn * since this is
6951 passed to a call to debug_rtx_list.
6952
6953 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6954
6955 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
6956 to rtx_insn *.
6957
6958 * function.c (stack_protect_epilogue): Add checked cast to
6959 rtx_insn for now when invoking predict_insn_def.
6960
6961 * predict.c (predict_insn): Strengthen param "insn" from rtx to
6962 rtx_insn *.
6963 (predict_insn_def): Likewise.
6964 (rtl_predict_edge): Likewise for local "last_insn".
6965 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
6966 const rtx_insn *.
6967 (combine_predictions_for_insn): Strengthen param "insn" from rtx
6968 to rtx_insn *.
6969 (bb_estimate_probability_locally): Likewise for local "last_insn".
6970 (expensive_function_p): Likewise for local "insn".
6971
6972 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
6973 local "jmp", since this is used when invoking predict_insn_def.
6974
6975 2014-08-22 Marek Polacek <polacek@redhat.com>
6976
6977 PR c++/62199
6978 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
6979
6980 2014-08-22 Marek Polacek <polacek@redhat.com>
6981
6982 PR c/61271
6983 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
6984 a comparison in parens.
6985 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
6986 in parens.
6987
6988 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6989
6990 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
6991 rtx_insn *.
6992
6993 * cprop.c (fis_get_condition): Likewise.
6994
6995 * postreload.c (reload_cse_regs): Likewise for param "first".
6996 (reload_cse_simplify): Likewise for param "insn".
6997 (reload_cse_regs_1): Likewise for local "insn".
6998 (reload_cse_simplify_set): Likewise for param "insn".
6999 (reload_cse_simplify_operands): Likewise.
7000 (struct reg_use): Likewise for field "insn".
7001 (reload_combine_purge_insn_uses): Likewise for param "insn".
7002 (fixup_debug_insns): Likewise for params "from", "to" and local
7003 "insn".
7004 (try_replace_in_use): Likewise for local "use_insn".
7005 (reload_combine_recognize_const_pattern): Likewise for param
7006 "insn" and locals "add_moved_after_insn", "use_insn".
7007 (reload_combine_recognize_pattern): Likewise for param "insn" and
7008 local "prev".
7009 (reload_combine): Likewise for locals "insn", "prev".
7010 (reload_combine_note_use): Likewise for param "insn".
7011 (move2add_use_add2_insn): Likewise.
7012 (move2add_use_add3_insn): Likewise.
7013 (reload_cse_move2add): Likewise, also for local "next".
7014 (move2add_note_store): Likewise for local "insn".
7015
7016 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7017
7018 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7019 rtx to rtx_insn *.
7020 (struct unoccr): Likewise.
7021 (struct modifies_mem): Likewise.
7022 (alloc_mem): Likewise for local "insn".
7023 (insert_expr_in_table): Likewise for param "insn".
7024 (dump_expr_hash_table_entry): Likewise for local "insn".
7025 (oprs_unchanged_p): Likewise for param "insn".
7026 (load_killed_in_block_p): Likewise for local "setter".
7027 (record_last_reg_set_info): Likewise for param "insn".
7028 (record_last_reg_set_info_regno): Likewise.
7029 (record_last_mem_set_info): Likewise.
7030 (record_last_set_info): Likewise for local "last_set_insn".
7031 (record_opr_changes): Likewise for param "insn".
7032 (hash_scan_set): Likewise.
7033 (compute_hash_table): Likewise for local "insn".
7034 (get_avail_load_store_reg): Likewise for param "insn".
7035 (eliminate_partially_redundant_load): Likewise, also for locals
7036 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7037 RTX for insns.
7038 (eliminate_partially_redundant_loads): Likewise for local "insn".
7039
7040 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7041
7042 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7043 rtx to rtx_insn *.
7044 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7045 (expand_twoval_unop): Likewise for locals entry_last", "last".
7046 (expand_twoval_binop): Likewise.
7047 (expand_twoval_binop_libfunc): Likewise for local "insns".
7048 (widen_leading): Likewise for local "last".
7049 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7050 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7051 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7052 (expand_parity): Likewise for locals "last" and "seq".
7053 (expand_ffs): Likewise for local "seq". Strengthen local
7054 "nonzero_label" from rtx to rtx_code_label *.
7055 (expand_absneg_bit): Strengthen local "insns" from rtx to
7056 rtx_insn *.
7057 (expand_unop_direct): Likewise for local "last".
7058 (expand_unop): Likewise for locals "last", "insns".
7059 (expand_abs_nojump): Likewise for local "last".
7060 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7061 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7062 rtx_insn *.
7063 (expand_copysign_absneg): Strengthen local "label" from rtx to
7064 rtx_code_label *.
7065 (expand_copysign_bit): Strengthen local "insns" from rtx to
7066 rtx_insn *.
7067 (struct no_conflict_data): Likewise for fields "first", "insn".
7068 (emit_libcall_block_1): Likewise for param "insns" and locals
7069 "next", "last", "insn".
7070 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7071 on "insns" when invoking emit_libcall_block_1. Ultimately we
7072 want to strengthen insns itself.
7073 (prepare_cmp_insn): Strengthen local "last" from rtx to
7074 rtx_insn *.
7075 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7076 (prepare_float_lib_cmp): Likewise for local "insns".
7077 (emit_conditional_move): Likewise for local "last".
7078 (emit_conditional_add): Likewise.
7079 (have_sub2_insn): Likewise for local "seq".
7080 (expand_float): Likewise for local "insns". Strengthen locals
7081 "label", "neglabel" from rtx to rtx_code_label *.
7082 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7083 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7084 (expand_fixed_convert): Likewise for local "insns" (to
7085 rtx_insn *).
7086 (expand_sfix_optab): Likewise for local "last".
7087 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7088 to rtx_code_label *.
7089 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7090 from rtx to rtx_insn *.
7091 (expand_atomic_fetch_op): Likewise for local "insn".
7092 (maybe_legitimize_operand_same_code): Likewise for local "last".
7093 (maybe_legitimize_operands): Likewise.
7094
7095 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7096
7097 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7098 "insn" from rtx to rtx_insn *.
7099 (ps_rtl_insn): Likewise for return type.
7100 (doloop_register_get): Likewise for params "head", "tail" and
7101 locals "insn", "first_insn_not_to_check".
7102 (schedule_reg_move): Likewise for local "this_insn".
7103 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7104 of gen_move_insn for now.
7105 (reset_sched_times): Strengthen local "insn" from rtx to
7106 rtx_insn *.
7107 (permute_partial_schedule): Likewise.
7108 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7109 (dump_insn_location): Likewise for param "insn".
7110 (loop_canon_p): Likewise for local "insn".
7111 (sms_schedule): Likewise.
7112 (print_partial_schedule): Likewise.
7113 (ps_has_conflicts): Likewise.
7114
7115 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7116
7117 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7118 "tailp" from rtx * to rtx_insn **.
7119
7120 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7121 from rtx to rtx_insn *.
7122 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7123 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7124 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7125 rtx to rtx_insn *.
7126 * modulo-sched.c (const_iteration_count): Strengthen return type
7127 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7128 use of NULL_RTX with NULL when working with insns.
7129 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7130 to rtx_insn *.
7131 (sms_schedule): Likewise.
7132 * sched-rgn.c (init_ready_list): Likewise, also for locals
7133 "src_head" and "src_next_tail".
7134 (compute_block_dependences): Likewise.
7135 (free_block_dependencies): Likewise.
7136 (debug_rgn_dependencies): Likewise.
7137 (free_rgn_deps): Likewise.
7138 (compute_priorities): Likewise.
7139 (schedule_region): Likewise.
7140 * sel-sched.c (find_ebb_boundaries): Likewise.
7141
7142 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7143 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7144
7145 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7146
7147 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7148 from rtx to rtx_insn *.
7149 (new_seginfo): Likewise for param "insn".
7150 (create_pre_exit): Likewise for locals "last_insn",
7151 "before_return_copy", "return_copy".
7152 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7153 "mode_set".
7154
7155 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7156
7157 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7158 from rtx to rtx_insn *.
7159 (lra_push_insn): Likewise for 1st param.
7160 (lra_push_insn_and_update_insn_regno_info): Likewise.
7161 (lra_pop_insn): Likewise for return type.
7162 (lra_invalidate_insn_data): Likewise for 1st param.
7163 (lra_set_insn_deleted): Likewise.
7164 (lra_delete_dead_insn): Likewise.
7165 (lra_process_new_insns): Likewise for first 3 params.
7166 (lra_set_insn_recog_data): Likewise for 1st param.
7167 (lra_update_insn_recog_data): Likewise.
7168 (lra_set_used_insn_alternative): Likewise.
7169 (lra_invalidate_insn_regno_info): Likewise.
7170 (lra_update_insn_regno_info): Likewise.
7171 (lra_former_scratch_operand_p): Likewise.
7172 (lra_eliminate_regs_1): Likewise.
7173 (lra_get_insn_recog_data): Likewise.
7174
7175 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7176 rtx to rtx_insn *.
7177
7178 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7179 "mv1" and "mv2".
7180 (substitute_within_insn): New.
7181 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7182 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7183 Replace call to "substitute" with call to substitute_within_insn.
7184
7185 * lra-constraints.c (curr_insn): Strengthen from rtx to
7186 rtx_insn *.
7187 (get_equiv_with_elimination): Likewise for param "insn".
7188 (match_reload): Strengthen params "before" and "after" from rtx *
7189 to rtx_insn **.
7190 (emit_spill_move): Likewise for return type. Add a checked cast
7191 to rtx_insn * on result of gen_move_insn for now.
7192 (check_and_process_move): Likewise for local "before". Replace
7193 NULL_RTX with NULL when referring to insns.
7194 (process_addr_reg): Strengthen params "before" and "after" from
7195 rtx * to rtx_insn **.
7196 (insert_move_for_subreg): Likewise.
7197 (simplify_operand_subreg): Strengthen locals "before" and "after"
7198 from rtx to rtx_insn *.
7199 (process_address_1): Strengthen params "before" and "after" from
7200 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7201 rtx to rtx_insn *.
7202 (process_address): Strengthen params "before" and "after" from
7203 rtx * to rtx_insn **.
7204 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7205 (curr_insn_transform): Strengthen locals "before" and "after"
7206 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7207 to insns.
7208 (loc_equivalence_callback): Update cast of "data", changing
7209 resulting type from rtx to rtx_insn *.
7210 (substitute_pseudo_within_insn): New.
7211 (inherit_reload_reg): Strengthen param "insn" from rtx to
7212 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7213 NULL when referring to insns. Add a checked cast to rtx_insn *
7214 when using usage_insn to invoke lra_update_insn_regno_info.
7215 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7216 likewise for locals "restore", "save". Add checked casts to
7217 rtx_insn * when using usage_insn to invoke
7218 lra_update_insn_regno_info and lra_process_new_insns. Replace
7219 NULL_RTX with NULL when referring to insns.
7220 (split_if_necessary): Strengthen param "insn" from rtx to
7221 rtx_insn *.
7222 (update_ebb_live_info): Likewise for params "head", "tail" and local
7223 "prev_insn".
7224 (get_last_insertion_point): Likewise for return type and local "insn".
7225 (get_live_on_other_edges): Likewise for local "last".
7226 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7227 "prev_insn", "next_insn", "restore".
7228 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7229 (undo_optional_reloads): Likewise for local "insn".
7230
7231 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7232 "insn".
7233 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7234 insns.
7235 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7236 rtx_insn *.
7237 (spill_pseudos): Likewise for local "insn".
7238 (init_elimination): Likewise.
7239 (process_insn_for_elimination): Likewise for param "insn".
7240
7241 * lra-lives.c (curr_insn): Likewise.;
7242
7243 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7244 (remove_pseudos): Likewise for param "insn".
7245 (spill_pseudos): Likewise for local "insn".
7246 (lra_final_code_change): Likewise for locals "insn", "curr".
7247
7248 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7249 (lra_set_insn_deleted): Likewise.
7250 (lra_delete_dead_insn): Likewise, and for local "prev".
7251 (new_insn_reg): Likewise for param "insn".
7252 (lra_set_insn_recog_data): Likewise.
7253 (lra_update_insn_recog_data): Likewise.
7254 (lra_set_used_insn_alternative): Likewise.
7255 (get_insn_freq): Likewise.
7256 (invalidate_insn_data_regno_info): Likewise.
7257 (lra_invalidate_insn_regno_info): Likewise.
7258 (lra_update_insn_regno_info): Likewise.
7259 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7260 vec<rtx_insn *>.
7261 (lra_push_insn_1): Strengthen param "insn" from rtx to
7262 rtx_insn *.
7263 (lra_push_insn): Likewise.
7264 (lra_push_insn_and_update_insn_regno_info): Likewise.
7265 (lra_pop_insn): Likewise for return type and local "insn".
7266 (push_insns): Likewise for params "from", "to", and local "insn".
7267 (setup_sp_offset): Likewise for params "from", "last" and locals
7268 "before", "insn".
7269 (lra_process_new_insns): Likewise for params "insn", "before",
7270 "after" and local "last".
7271 (struct sloc): Likewise for field "insn".
7272 (lra_former_scratch_operand_p): Likewise for param "insn".
7273 (remove_scratches): Likewise for locals "insn", "last".
7274 (check_rtl): Likewise for local "insn".
7275 (add_auto_inc_notes): Likewise for param "insn".
7276 (update_inc_notes): Likewise for local "insn".
7277 (lra): Replace NULL_RTX with NULL when referring to insn.
7278
7279 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7280
7281 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7282 to rtx_insn *.
7283 (resolve_reg_notes): Likewise.
7284 (resolve_simple_move): Likewise for return type, param "insn", and
7285 locals "insns", "minsn".
7286 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7287 (resolve_use): Likewise.
7288 (resolve_debug): Likewise.
7289 (find_decomposable_shift_zext): Likewise.
7290 (resolve_shift_zext): Likewise for return type, param "insn", and
7291 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7292 (decompose_multiword_subregs): Likewise for local "insn",
7293 "orig_insn", "decomposed_shift", "end".
7294
7295 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7296
7297 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7298 param "insns" from rtx to rtx_insn *.
7299
7300 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7301 rtx to rtx_insn *.
7302 (struct iv_to_split): Likewise.
7303 (loop_exit_at_end_p): Likewise for local "insn".
7304 (split_edge_and_insert): Likewise for param "insns".
7305 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7306 and locals "seq", "jump".
7307 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7308 "branch_code"; update invocations of compare_and_jump_seq to
7309 eliminate NULL_RTX in favor of NULL.
7310 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7311 rtx to rtx_insn *.
7312 (reset_debug_uses_in_loop): Likewise.
7313 (analyze_insn_to_expand_var): Likewise for param "insn".
7314 (analyze_iv_to_split_insn): Likewise.
7315 (analyze_insns_in_loop): Likewise for local "insn".
7316 (insert_base_initialization): Likewise for param
7317 "insn" and local "seq".
7318 (split_iv): Likewise for param "insn" and local "seq".
7319 (expand_var_during_unrolling): Likewise for param "insn".
7320 (insert_var_expansion_initialization): Likewise for local "seq".
7321 (combine_var_copies_in_loop_exit): Likewise.
7322 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7323 "insn".
7324 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7325 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7326 "next".
7327
7328 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7329
7330 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7331 rtx_insn *.
7332 (iv_analyze_result): Likewise.
7333 (iv_analyze_expr): Likewise.
7334 (biv_p): Likewise.
7335
7336 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7337 local "def_insn" from rtx to rtx_insn *.
7338 (get_biv_step_1): Likewise for local "insn".
7339 (iv_analyze_expr): Likewise for param "insn".
7340 (iv_analyze_def): Likewise for local "insn".
7341 (iv_analyze_op): Likewise for param "insn".
7342 (iv_analyze): Likewise.
7343 (iv_analyze_result): Likewise.
7344 (biv_p): Likewise.
7345 (suitable_set_for_replacement): Likewise.
7346 (simplify_using_initial_values): Likewise for local "insn".
7347 (iv_number_of_iterations): Likewise for param "insn".
7348 (check_simple_exit): Add checked cast to rtx_insn when invoking
7349 iv_number_of_iterations for now (until get_condition is
7350 strengthened).
7351
7352 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7353 "insn" from rtx to rtx_insn *.
7354 (analyze_insns_in_loop): Likewise for local "insn".
7355
7356 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7357
7358 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7359 to rtx_insn *.
7360 (struct invariant): Likewise.
7361 (hash_invariant_expr_1): Likewise for param "insn".
7362 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7363 (find_exits): Likewise for local "insn".
7364 (create_new_invariant): Likewise for param "insn".
7365 (check_dependencies): Likewise.
7366 (find_invariant_insn): Likewise.
7367 (record_uses): Likewise.
7368 (find_invariants_insn): Likewise.
7369 (find_invariants_bb): Likewise for local "insn".
7370 (get_pressure_class_and_nregs): Likewise for param "insn".
7371 (calculate_loop_reg_pressure): Likewise for local "insn".
7372
7373 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7374
7375 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7376 to rtx_insn *.
7377 (add_test): Likewise for locals "seq", "jump".
7378 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7379
7380 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7381
7382 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7383 rtx_insn *.
7384 (rebuild_jump_labels_chain): Likewise for param "chain".
7385
7386 * cfgexpand.c (pass_expand::execute): Add checked cast to
7387 rtx_insn * when calling rebuild_jump_labels_chain in region where
7388 we know e->insns.r is non-NULL.
7389
7390 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7391 rtx_insn *.
7392 (rebuild_jump_labels): Likewise.
7393 (rebuild_jump_labels_chain): Likewise for param "chain".
7394 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7395 (init_label_info): Likewise for param "f".
7396 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7397 "prev_nonjump_insn".
7398 (mark_all_labels): Likewise for param "f" and locals "insn",
7399 "prev_nonjump_insn".
7400
7401 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7402
7403 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7404 from rtx to rtx_insn *insn.
7405 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7406 (ira_add_allocno_copy): Likewise.
7407 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7408 rtx to rtx_insn *.
7409 (ira_create_copy): Likewise.
7410 (ira_add_allocno_copy): Likewise.
7411 (create_bb_allocnos): Likewise for local "insn".
7412 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7413 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7414 process_regs_for_copy for rtx_insn * param.
7415 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7416 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7417 process_regs_for_copy for rtx_insn * param.
7418 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7419 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7420 (record_operand_costs): Likewise.
7421 (scan_one_insn): Likewise for return type, and for param "insn".
7422 (process_bb_for_costs): Likewise for local "insn".
7423 (process_bb_node_for_hard_reg_moves): Likewise.
7424 * ira-emit.c (struct move): Likewise for field "insn".
7425 (create_move): Eliminate use of NULL_RTX when dealing with an
7426 rtx_insn *.
7427 (emit_move_list): Strengthen return type and locals "result",
7428 "insn" from rtx to rtx_insn *insn.
7429 (emit_moves): Likewise for locals "insns", "tmp".
7430 (ira_emit): Likewise for local "insn".
7431 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7432 "insn".
7433 (find_call_crossed_cheap_reg): Likewise.
7434 (process_bb_node_lives): Likewise for local "insn".
7435 * ira.c (decrease_live_ranges_number): Likewise.
7436 (compute_regs_asm_clobbered): Likewise.
7437 (build_insn_chain): Likewise.
7438 (find_moveable_pseudos): Likewise, also locals "def_insn",
7439 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7440 to rtx_insn **. Add a checked cast when assigning from
7441 "closest_use" into closest_uses array in a region where we know
7442 it's a non-NULL insn.
7443 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7444 to rtx_insn *.
7445 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7446 "last_interesting_insn", "uin".
7447 (move_unallocated_pseudos): Likewise for locals "def_insn",
7448 "move_insn", "newinsn".
7449
7450 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7451
7452 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7453 Strengthen locals "done_label", "do_error" from rtx to
7454 rtx_code_label *.
7455 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7456 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7457 rtx_code_label *.
7458 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7459 "done_label", "do_error" to rtx_code_label * and local "last" to
7460 rtx_insn *.
7461 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7462 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7463 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7464 "after_lopart_neg", "do_overflow", "hipart_different" to
7465 rtx_code_label * and local "last" to rtx_insn *.
7466
7467 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7468
7469 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7470 "insn" and "move_insn" from rtx to rtx_insn *.
7471
7472 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7473
7474 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7475 rtx_insn *.
7476 (cheap_bb_rtx_cost_p): Likewise.
7477 (first_active_insn): Likewise for return type and local "insn".
7478 (last_active_insn): Likewise for return type and locals "insn",
7479 "head".
7480 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7481 "insn_b".
7482 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7483 "seq".
7484 (noce_try_move): Likewise for local "seq".
7485 (noce_try_store_flag): Likewise.
7486 (noce_try_store_flag_constants): Likewise.
7487 (noce_try_addcc): Likewise.
7488 (noce_try_store_flag_mask): Likewise.
7489 (noce_try_cmove): Likewise.
7490 (noce_try_minmax): Likewise.
7491 (noce_try_abs): Likewise.
7492 (noce_try_sign_mask): Likewise.
7493 (noce_try_bitop): Likewise.
7494 (noce_can_store_speculate_p): Likewise for local "insn".
7495 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7496 seq".
7497 (check_cond_move_block): Likewise for local "insn".
7498 (cond_move_convert_if_block): Likewise.
7499 (cond_move_process_if_block): Likewise for locals "seq",
7500 "loc_insn".
7501 (noce_find_if_block): Likewise for local "jump".
7502 (merge_if_block): Likewise for local "last".
7503 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7504 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7505 (block_has_only_trap): Likewise for return type and local "trap".
7506 (find_if_case_1): Likewise for local "jump".
7507 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7508 "insn".
7509
7510 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7511
7512 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7513 "last_insn", "loop_end" from rtx to rtx_insn *.
7514
7515 * hw-doloop.c (scan_loop): Likewise for local "insn".
7516 (discover_loop): Likewise for param "tail_insn".
7517 (discover_loops): Likewise for local "tail".
7518
7519 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7520 cast to rtx_insn * when assigning from an rtx local to a
7521 hwloop_info's "last_insn" field.
7522
7523 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7524
7525 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7526 (add_delay_dependencies): Strengthen local "pro" from rtx to
7527 rtx_insn *.
7528 (recompute_todo_spec): Likewise.
7529 (dep_cost_1): Likewise for locals "insn", "used".
7530 (schedule_insn): Likewise for local "dbg".
7531 (schedule_insn): Likewise for locals "pro", "next".
7532 (unschedule_insns_until): Likewise for local "con".
7533 (restore_pattern): Likewise for local "next".
7534 (estimate_insn_tick): Likewise for local "pro".
7535 (resolve_dependencies): Likewise for local "next".
7536 (fix_inter_tick): Likewise.
7537 (fix_tick_ready): Likewise for local "pro".
7538 (add_to_speculative_block): Likewise for locals "check", "twin",
7539 "pro".
7540 (sched_extend_bb): Likewise for locals "end", "insn".
7541 (init_before_recovery): Likewise for local "x".
7542 (sched_create_recovery_block): Likewise for local "barrier".
7543 (create_check_block_twin): Likewise for local "pro".
7544 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7545 "consumer".
7546 (unlink_bb_notes): Update for change to type of bb_header.
7547 Strengthen locals "prev", "label", "note", "next" from rtx to
7548 rtx_insn *.
7549 (clear_priorities): Likewise for local "pro".
7550
7551 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7552
7553 * gcse.c (struct occr): Strengthen field "insn" from rtx to
7554 rtx_insn *.
7555 (test_insn): Likewise for this global.
7556 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7557 const rtx_insn *.
7558 (oprs_anticipatable_p): Likewise.
7559 (oprs_available_p): Likewise.
7560 (insert_expr_in_table): Strengthen param "insn" from rtx to
7561 rtx_insn *.
7562 (hash_scan_set): Likewise.
7563 (hash_scan_clobber): Likewise.
7564 (hash_scan_call): Likewise.
7565 (hash_scan_insn): Likewise.
7566 (compute_hash_table_work): Likewise for local "insn".
7567 (process_insert_insn): Likewise for return type and local "pat".
7568 (insert_insn_end_basic_block): Likewise for locals "new_insn",
7569 "pat", "pat_end", "maybe_cc0_setter".
7570 (pre_edge_insert): Likewise for local "insn".
7571 (pre_insert_copy_insn): Likewise for param "insn".
7572 (pre_insert_copies): Likewise for local "insn".
7573 (struct set_data): Likewise for field "insn".
7574 (single_set_gcse): Likewise for param "insn".
7575 (gcse_emit_move_after): Likewise.
7576 (pre_delete): Likewise for local "insn".
7577 (update_bb_reg_pressure): Likewise for param "from" and local
7578 "insn".
7579 (should_hoist_expr_to_dom): Likewise for param "from".
7580 (hoist_code): Likewise for local "insn".
7581 (get_pressure_class_and_nregs): Likewise for param "insn".
7582 (calculate_bb_reg_pressure): Likewise for local "insn".
7583 (compute_ld_motion_mems): Likewise.
7584
7585 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7586
7587 * genpeep.c (main): Rename param back from "uncast_ins1" to
7588 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
7589 checked cast.
7590
7591 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7592
7593 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7594
7595 PR target/62195
7596 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7597 documentation to state it is only for VSX operations.
7598
7599 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7600 constraint only active if VSX.
7601
7602 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7603 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7604 (lfiwzx): Likewise.
7605
7606 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7607
7608 * fwprop.c (single_def_use_dom_walker::before_dom_children):
7609 Strengthen local "insn" from rtx to rtx_insn *.
7610 (use_killed_between): Likewise for param "target_insn".
7611 (all_uses_available_at): Likewise for param "target_insn" and
7612 local "next".
7613 (update_df_init): Likewise for params "def_insn", "insn".
7614 (update_df): Likewise for param "insn".
7615 (try_fwprop_subst): Likewise for param "def_insn" and local
7616 "insn".
7617 (free_load_extend): Likewise for param "insn".
7618 (forward_propagate_subreg): Likewise for param "def_insn" and
7619 local "use_insn".
7620 (forward_propagate_asm): Likewise for param "def_insn" and local
7621 "use_insn".
7622 (forward_propagate_and_simplify): Likewise for param "def_insn"
7623 and local "use_insn".
7624 (forward_propagate_into): Likewise for locals "def_insn" and
7625 "use_insn".
7626
7627 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7628
7629 * function.c (emit_initial_value_sets): Strengthen local "seq"
7630 from rtx to rtx_insn *.
7631 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7632 local "seq".
7633 (instantiate_virtual_regs): Likewise for local "insn".
7634 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7635 (reorder_blocks_1): Likewise for param "insns" and local "insn".
7636 (expand_function_end): Likewise for locals "insn" and "seq".
7637 (epilogue_done): Likewise for local "insn".
7638 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7639 "last", "trial".
7640 (reposition_prologue_and_epilogue_notes): Likewise for locals
7641 "insn", "last", "note", "first".
7642 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7643 (pass_match_asm_constraints::execute): Likewise for local "insn".
7644
7645 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7646
7647 * output.h (final_scan_insn): Strengthen return type from rtx to
7648 rtx_insn *.
7649 (final_forward_branch_p): Likewise for param.
7650 (current_output_insn): Likewise for this global.
7651
7652 * final.c (rtx debug_insn): Likewise for this variable.
7653 (current_output_insn): Likewise.
7654 (get_attr_length_1): Rename param "insn" to "uncast_insn",
7655 adding "insn" back in as an rtx_insn * with a checked cast, so
7656 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7657 first param.
7658 (compute_alignments): Strengthen local "label" from rtx to
7659 rtx_insn *.
7660 (shorten_branches): Rename param from "first" to "uncast_first",
7661 introducing a new local rtx_insn * "first" using a checked cast to
7662 effectively strengthen "first" from rtx to rtx_insn * without
7663 affecting the type signature. Strengthen locals "insn", "seq",
7664 "next", "label" from rtx to rtx_insn *.
7665 (change_scope): Strengthen param "orig_insn" and local "insn" from
7666 rtx to rtx_insn *.
7667 (final_start_function): Rename param from "first" to "uncast_first",
7668 introducing a new local rtx_insn * "first" using a checked cast to
7669 effectively strengthen "first" from rtx to rtx_insn * without
7670 affecting the type signature. Strengthen local "insn" from rtx to
7671 rtx_insn *.
7672 (dump_basic_block_info): Strengthen param "insn" from rtx to
7673 rtx_insn *.
7674 (final): Rename param from "first" to "uncast_first",
7675 introducing a new local rtx_insn * "first" using a checked cast to
7676 effectively strengthen "first" from rtx to rtx_insn * without
7677 affecting the type signature. Strengthen locals "insn", "next"
7678 from rtx to rtx_insn *.
7679 (output_alternate_entry_point): Strengthen param "insn" from rtx to
7680 rtx_insn *.
7681 (call_from_call_insn): Strengthen param "insn" from rtx to
7682 rtx_call_insn *.
7683 (final_scan_insn): Rename param from "insn" to "uncast_insn",
7684 introducing a new local rtx_insn * "insn" using a checked cast to
7685 effectively strengthen "insn" from rtx to rtx_insn * without
7686 affecting the type signature. Strengthen return type and locals
7687 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
7688 now-redundant checked cast to rtx_insn * from both invocations of
7689 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
7690 introducing a local "call_insn" for use when invoking
7691 call_from_call_insn.
7692 (notice_source_line): Strengthen param "insn" from rtx to
7693 rtx_insn *.
7694 (leaf_function_p): Likewise for local "insn".
7695 (final_forward_branch_p): Likewise.
7696 (leaf_renumber_regs): Likewise for param "first".
7697 (rest_of_clean_state): Likewise for locals "insn" and "next".
7698 (self_recursive_call_p): Likewise for param "insn".
7699 (collect_fn_hard_reg_usage): Likewise for local "insn".
7700 (get_call_fndecl): Likewise for param "insn".
7701 (get_call_cgraph_rtl_info): Likewise.
7702 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7703 introducing a new local rtx_insn * "insn" using a checked cast to
7704 effectively strengthen "insn" from rtx to rtx_insn * without
7705 affecting the type signature.
7706
7707 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7708 cast when assigning from param "insn" to current_output_insn.
7709 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7710 so that we can assign it back to current_output_insn.
7711
7712 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7713
7714 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7715 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7716 atmxt540s and atmxt540sreva devices.
7717 * config/avr/avr-tables.opt: Regenerate.
7718 * config/avr/t-multilib: Regenerate.
7719 * doc/avr-mmcu.texi: Regenerate.
7720
7721 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7722
7723 * expr.c (convert_move): Strengthen local "insns" from rtx to
7724 rtx_insn *.
7725 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7726 "top_label" from rtx to rtx_code_label *.
7727 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7728 rtx_insn *.
7729 (emit_single_push_insn): Likewise for locals "prev", "last".
7730 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7731 to rtx_code_label *.
7732 (store_constructor): Likewise for locals "loop_start", "loop_end".
7733 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7734 rtx_insn *.
7735 (expand_expr_real_2): Likewise.
7736 (expand_expr_real_1): Strengthen local "label" from rtx to
7737 rtx_code_label *.
7738
7739 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7740
7741 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7742 from rtx to rtx_insn *.
7743 (store_bit_field_1): Likewise.
7744 (extract_bit_field_1): Likewise.
7745 (expand_mult_const): Likewise for local "insns".
7746 (expmed_mult_highpart): Strengthen local "label" from rtx to
7747 rtx_code_label *.
7748 (expand_smod_pow2): Likewise.
7749 (expand_sdiv_pow2): Likewise.
7750 (expand_divmod): Strengthen locals "last", "insn" from rtx to
7751 rtx_insn *. Strengthen locals "label", "label1", "label2",
7752 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7753 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7754 (emit_store_flag): Likewise.
7755 (emit_store_flag_force): Strengthen local "label" from rtx to
7756 rtx_code_label *.
7757 (do_cmp_and_jump): Likewise for param "label".
7758
7759 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7760
7761 * explow.c (force_reg): Strengthen local "insn" from rtx to
7762 rtx_insn *.
7763 (adjust_stack_1): Likewise.
7764 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7765 "final_label", "available_label", "space_available" from rtx to
7766 rtx_code_label *.
7767 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7768 (anti_adjust_stack_and_probe): Likewise.
7769
7770 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7771
7772 * except.h (sjlj_emit_function_exit_after): Strengthen param
7773 "after" from rtx to rtx_insn *. This is only called with
7774 result of get_last_insn (in function.c) so type-change should be
7775 self-contained.
7776
7777 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7778 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7779 to rtx_insn *. These fields are only used from except.c so this
7780 type-change should be self-contained to this patch.
7781
7782 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7783 local "last" from rtx to rtx_insn *.
7784 (dw2_build_landing_pads): Likewise for local "seq".
7785 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7786 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7787 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
7788 rtx to rtx_insn *.
7789 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7790 to rtx_insn *.
7791 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7792 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7793 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7794 referring to an insn. Strengthen local "dispatch_label" from
7795 rtx to rtx_code_label *.
7796 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7797 rtx_insn *.
7798 (expand_eh_return): Strengthen local "around_label" from
7799 rtx to rtx_code_label *.
7800 (convert_to_eh_region_ranges): Strengthen locals "iter",
7801 "last_action_insn", "first_no_action_insn",
7802 "first_no_action_insn_before_switch",
7803 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7804
7805 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7806
7807 * dwarf2out.c (last_var_location_insn): Strengthen this variable
7808 from rtx to rtx_insn *.
7809 (cached_next_real_insn): Likewise.
7810 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7811 working with insns.
7812 (dwarf2out_var_location): Strengthen locals "next_real",
7813 "next_note", "expected_next_loc_note", "last_start", "insn" from
7814 rtx to rtx_insn *.
7815
7816 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7817
7818 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7819 from rtx to rtx_insn *.
7820 (create_pseudo_cfg): Likewise for local "insn".
7821
7822 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7823
7824 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7825 from rtx to rtx_insn *.
7826 (df_bb_regno_last_def_find): Likewise.
7827
7828 * df-problems.c (df_rd_bb_local_compute): Likewise.
7829 (df_lr_bb_local_compute): Likewise.
7830 (df_live_bb_local_compute): Likewise.
7831 (df_chain_remove_problem): Likewise.
7832 (df_chain_create_bb): Likewise.
7833 (df_word_lr_bb_local_compute): Likewise.
7834 (df_remove_dead_eq_notes): Likewise for param "insn".
7835 (df_note_bb_compute): Likewise for local "insn".
7836 (simulate_backwards_to_point): Likewise.
7837 (df_md_bb_local_compute): Likewise.
7838
7839 * df-scan.c (df_scan_free_bb_info): Likewise.
7840 (df_scan_start_dump): Likewise.
7841 (df_scan_start_block): Likewise.
7842 (df_install_ref_incremental): Likewise for local "insn".
7843 (df_insn_rescan_all): Likewise.
7844 (df_reorganize_refs_by_reg_by_insn): Likewise.
7845 (df_reorganize_refs_by_insn_bb): Likewise.
7846 (df_recompute_luids): Likewise.
7847 (df_bb_refs_record): Likewise.
7848 (df_update_entry_exit_and_calls): Likewise.
7849 (df_bb_verify): Likewise.
7850
7851 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7852
7853 * ddg.h (struct ddg_node): Strengthen fields "insn" and
7854 "first_note" from rtx to rtx_insn *.
7855 (get_node_of_insn): Likewise for param 2 "insn".
7856 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7857
7858 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
7859 rtx_insn *.
7860 (mem_write_insn_p): Likewise.
7861 (mem_access_insn_p): Likewise.
7862 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7863 (def_has_ccmode_p): Likewise for param "insn".
7864 (add_cross_iteration_register_deps): Likewise for locals
7865 "def_insn" and "use_insn".
7866 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
7867 (build_intra_loop_deps): Likewise for local "src_insn".
7868 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7869 to rtx_insn *.
7870 (get_node_of_insn): Likewise for param "insn".
7871
7872 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7873
7874 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7875 (deletable_insn_p): Strengthen param "insn" from rtx to
7876 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7877 find_call_stack_args, since this is guarded by CALL_P (insn).
7878 (marked_insn_p): Strengthen param "insn" from rtx to
7879 rtx_insn *.
7880 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7881 invoking find_call_stack_args, since this is guarded by
7882 CALL_P (insn).
7883 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7884 rtx_insn *; we know this is an insn since this was called by
7885 mark_nonreg_stores.
7886 (mark_nonreg_stores_2): Likewise.
7887 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7888 rtx_insn *.
7889 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7890 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7891 to rtx_insn *.
7892 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7893 from rtx to rtx_insn *.
7894 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7895 "next", "ref_insn".
7896 (delete_unmarked_insns): Likewise for locals "insn", "next".
7897 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7898 (mark_reg_dependencies): Likewise for param "insn".
7899 (rest_of_handle_ud_dce): Likewise for local "insn".
7900 (word_dce_process_block): Likewise.
7901 (dce_process_block): Likewise.
7902
7903 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7904
7905 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7906 from rtx to rtx_insn *.
7907 (struct change_cc_mode_args): Likewise for field "insn".
7908 (this_insn): Strengthen from rtx to rtx_insn *.
7909 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
7910 with insn.
7911 (validate_canon_reg): Strengthen param "insn" from rtx to
7912 rtx_insn *.
7913 (canon_reg): Likewise.
7914 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
7915 dealing with insn.
7916 (record_jump_equiv): Strengthen param "insn" from rtx to
7917 rtx_insn *.
7918 (try_back_substitute_reg): Likewise, also for locals "prev",
7919 "bb_head".
7920 (find_sets_in_insn): Likewise for param "insn".
7921 (canonicalize_insn): Likewise.
7922 (cse_insn): Likewise. Add a checked cast.
7923 (invalidate_from_clobbers): Likewise for param "insn".
7924 (invalidate_from_sets_and_clobbers): Likewise.
7925 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
7926 dealing with insn.
7927 (cse_prescan_path): Strengthen local "insn" from rtx to
7928 rtx_insn *.
7929 (cse_extended_basic_block): Likewise for locals "insn" and
7930 "prev_insn".
7931 (cse_main): Likewise for param "f".
7932 (check_for_label_ref): Likewise for local "insn".
7933 (set_live_p): Likewise for second param ("insn").
7934 (insn_live_p): Likewise for first param ("insn") and for local
7935 "next".
7936 (cse_change_cc_mode_insn): Likewise for first param "insn".
7937 (cse_change_cc_mode_insns): Likewise for first and second params
7938 "start" and "end".
7939 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
7940 and "end".
7941 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
7942 "cc_src_insn".
7943
7944 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7945 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7946 Anna Tikhonova <anna.tikhonova@intel.com>
7947 Ilya Tocar <ilya.tocar@intel.com>
7948 Andrey Turetskiy <andrey.turetskiy@intel.com>
7949 Ilya Verbin <ilya.verbin@intel.com>
7950 Kirill Yukhin <kirill.yukhin@intel.com>
7951 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7952
7953 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
7954 New.
7955 * config/i386/sse.md
7956 (define_mode_iterator VI248_AVX2): Delete.
7957 (define_mode_iterator VI2_AVX2_AVX512BW): New.
7958 (define_mode_iterator VI48_AVX2): Ditto.
7959 (define_insn <shift_insn><mode>3): Delete.
7960 (define_insn "<shift_insn><mode>3<mask_name>" with
7961 VI2_AVX2_AVX512BW): New.
7962 (define_insn "<shift_insn><mode>3<mask_name>" with
7963 VI48_AVX2): Ditto.
7964
7965 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7966 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7967 Anna Tikhonova <anna.tikhonova@intel.com>
7968 Ilya Tocar <ilya.tocar@intel.com>
7969 Andrey Turetskiy <andrey.turetskiy@intel.com>
7970 Ilya Verbin <ilya.verbin@intel.com>
7971 Kirill Yukhin <kirill.yukhin@intel.com>
7972 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7973
7974 * config/i386/sse.md
7975 (define_mode_iterator VI4F_BRCST32x2): New.
7976 (define_mode_attr 64x2_mode): Ditto.
7977 (define_mode_attr 32x2mode): Ditto.
7978 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
7979 with VI4F_BRCST32x2): Ditto.
7980 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
7981 with V16FI mode iterator): Ditto.
7982 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7983 with V16FI): Ditto.
7984 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7985 with VI8F_BRCST64x2): Ditto.
7986
7987 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7988 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7989 Anna Tikhonova <anna.tikhonova@intel.com>
7990 Ilya Tocar <ilya.tocar@intel.com>
7991 Andrey Turetskiy <andrey.turetskiy@intel.com>
7992 Ilya Verbin <ilya.verbin@intel.com>
7993 Kirill Yukhin <kirill.yukhin@intel.com>
7994 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7995
7996 * config/i386/sse.md
7997 (define_mode_iterator VI8_AVX512VL): New.
7998 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
7999
8000 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8001
8002 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8003 (define_mode_iterator V48_AVX512VL): New.
8004 (define_mode_iterator V12_AVX512VL): Ditto.
8005 (define_insn <avx512>_load<mode>_mask): Split into two similar
8006 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8007 Refactor output template.
8008 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8009
8010 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8011
8012 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8013 rtx_insn *.
8014 (reg_available_p): Likewise for param "insn".
8015 (insert_set_in_table): Likewise.
8016 (hash_scan_set): Likewise.
8017 (hash_scan_insn): Likewise.
8018 (make_set_regs_unavailable): Likewise.
8019 (compute_hash_table_work): Likewise for local "insn".
8020 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8021 const rtx_insn *.
8022 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8023 (try_replace_reg): Likewise.
8024 (find_avail_set): Likewise.
8025 (cprop_jump): Likewise for params "setcc", "jump".
8026 (constprop_register): Likewise for param "insn".
8027 (cprop_insn): Likewise.
8028 (do_local_cprop): Likewise.
8029 (local_cprop_pass): Likewise for local "insn".
8030 (bypass_block): Likewise for params "setcc" and "jump".
8031 (bypass_conditional_jumps): Likewise for locals "setcc" and
8032 "insn".
8033 (one_cprop_pass): Likewise for local "insn".
8034
8035 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8036
8037 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8038 from rtx to rtx_insn *.
8039 (struct comparison): Likewise, also for field "prev_clobber".
8040 (conforming_compare): Likewise for param "insn".
8041 (arithmetic_flags_clobber_p): Likewise.
8042 (find_flags_uses_in_insn): Likewise.
8043 (find_comparison_dom_walker::before_dom_children): Likewise for
8044 locals "insn", "next", "last_clobber".
8045 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8046
8047 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8048
8049 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8050 "insn" from rtx to rtx_insn *.
8051 (single_set_for_csa): Likewise for param "insn".
8052 (record_one_stack_ref): Likewise.
8053 (try_apply_stack_adjustment): Likewise.
8054 (struct record_stack_refs_data): Likewise for field "insn".
8055 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8056 (prev_active_insn_bb): Likewise for return type and param "insn".
8057 (next_active_insn_bb): Likewise.
8058 (force_move_args_size_note): Likewise for params "prev" and "last"
8059 and locals "test", "next_candidate", "prev_candidate".
8060 (combine_stack_adjustments_for_block): Strengthen locals
8061 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8062 rtx_insn *.
8063
8064 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8065
8066 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8067 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8068 (subst_insn): Likewise for this variable.
8069 (added_links_insn): Likewise.
8070 (struct insn_link): Likewise for field "insn".
8071 (alloc_insn_link): Likewise for param "insn".
8072 (struct undobuf): Likewise for field "other_insn".
8073 (find_single_use): Likewise for param "insn" and local "next".
8074 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8075 (delete_noop_moves): Likewise for locals "insn", "next".
8076 (create_log_links): Likewise for locals "insn", "use_insn".
8077 Strengthen local "next_use" from rtx * to rtx_insn **.
8078 (insn_a_feeds_b): Likewise for params "a", "b".
8079 (combine_instructions): Likewise for param "f" and locals "insn",
8080 "next", "prev", "first", "last_combined_insn", "link", "link1",
8081 "temp". Replace use of NULL_RTX with NULL when referring to
8082 insns.
8083 (setup_incoming_promotions): Likewise for param "first"
8084 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8085 (can_combine_p): Likewise for params "insn", "i3", "pred",
8086 "pred2", "succ", "succ2" and for local "p".
8087 (combinable_i3pat): Likewise for param "i3".
8088 (cant_combine_insn_p): Likewise for param "insn".
8089 (likely_spilled_retval_p): Likewise.
8090 (adjust_for_new_dest): Likewise.
8091 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8092 (try_combine): Likewise for return type and for params "i3", "i2",
8093 "i1", "i0", "last_combined_insn", and for locals "insn",
8094 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8095 "i0_insn". Eliminate local "tem" in favor of new locals
8096 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8097 checked cast for now to rtx_insn * on the return type of
8098 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8099 insns.
8100 (find_split_point): Strengthen param "insn" from rtx to
8101 rtx_insn *.
8102 (simplify_set): Likewise for local "other_insn".
8103 (recog_for_combine): Likewise for param "insn".
8104 (record_value_for_reg): Likewise.
8105 (record_dead_and_set_regs_1): Likewise for local
8106 "record_dead_insn".
8107 (record_dead_and_set_regs): Likewise for param "insn".
8108 (record_promoted_value): Likewise.
8109 (check_promoted_subreg): Likewise.
8110 (get_last_value_validate): Likewise.
8111 (reg_dead_at_p): Likewise.
8112 (move_deaths): Likewise for param "to_insn".
8113 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8114 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8115 in favor of new locals "tem_note" and "tem_insn", the latter being
8116 an rtx_insn *.
8117 (distribute_links): Strengthen locals "place", "insn" from rtx to
8118 rtx_insn *.
8119
8120 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8121
8122 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8123 than a const_rtx.
8124 (can_delete_label_p): Require a const rtx_code_label * rather than
8125 a const_rtx.
8126 (delete_insn): Add checked cast to rtx_code_label * when we know
8127 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8128 rtx to rtx_insn *.
8129 (delete_insn_chain): Strengthen locals "prev" and "current" from
8130 rtx to rtx_insn *. Add a checked cast when assigning from
8131 "finish" (strengthening the params will come later). Add a
8132 checked cast to rtx_note * in region where we know
8133 NOTE_P (current).
8134 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8135 rtx_insn *.
8136 (compute_bb_for_insn): Likewise.
8137 (free_bb_for_insn): Likewise for local "insn".
8138 (compute_bb_for_insn): Likewise.
8139 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8140 local "insn" from rtx to rtx_insn *
8141 (flow_active_insn_p): Require a const rtx_insn * rather than a
8142 const_rtx.
8143 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8144 rtx_insn *.
8145 (can_fallthru): Likewise for locals "insn" and "insn2".
8146 (bb_note): Likewise for local "note".
8147 (first_insn_after_basic_block_note): Likewise for local "note" and
8148 for return type.
8149 (rtl_split_block): Likewise for locals "insn" and "next".
8150 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8151 "end".
8152 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8153 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8154 "prev", "tmp".
8155 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8156 them), "kill_from", "barrier", "new_insn".
8157 (patch_jump_insn): Likewise for params "insn", "old_label".
8158 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8159 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8160 "old_label", "new_label".
8161 (rtl_tidy_fallthru_edge): Likewise for local "q".
8162 (rtl_split_edge): Likewise for locals "before", "last".
8163 (commit_one_edge_insertion): Likewise for locals "before",
8164 "after", "insns", "tmp", "last", adding a checked cast where
8165 currently necessary.
8166 (commit_edge_insertions): Likewise.
8167 (rtl_dump_bb): Likewise for locals "insn", "last".
8168 (print_rtl_with_bb): Likewise for local "x".
8169 (rtl_verify_bb_insns): Likewise for local "x".
8170 (rtl_verify_bb_pointers): Likewise for local "insn".
8171 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8172 "head", "end".
8173 (rtl_verify_fallthru): Likewise for local "insn".
8174 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8175 (purge_dead_edges): Likewise for local "insn".
8176 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8177 (skip_insns_after_block): Likewise for return type and for locals
8178 "insn", "last_insn", "next_head", "prev".
8179 (record_effective_endpoints): Likewise for locals "next_insn",
8180 "insn", "end".
8181 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8182 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8183 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8184 (duplicate_insn_chain): For now, add checked cast from rtx to
8185 rtx_insn * when returning insn.
8186 (cfg_layout_duplicate_bb): Likewise for local "insn".
8187 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8188 "prev", "remaints".
8189 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8190 (rtl_block_empty_p): Likewise.
8191 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8192 "split_point", "last".
8193 (rtl_block_ends_with_call_p): Likewise for local "insn".
8194 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8195 const rtx_insn *.
8196 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8197 "split_at_insn" from rtx to rtx_insn *.
8198 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8199 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8200 to const rtx_insn *.
8201 (rtl_account_profile_record): Likewise.
8202
8203 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8204
8205 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8206 rtx to rtx_insn *.
8207 (average_num_loop_insns): Likewise.
8208 (init_set_costs): Likewise for local "seq".
8209 (seq_cost): Likewise for param "seq", from const_rtx to const
8210 rtx_insn *.
8211
8212 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8213
8214 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8215 rtx to rtx_insn *.
8216
8217 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8218
8219 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8220 "f1" and "f2" from rtx * to rtx_insn **.
8221 (flow_find_head_matching_sequence): Likewise.
8222
8223 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8224 "cbranch_insn" from rtx to rtx_insn *.
8225 (thread_jump): Likewise for local "insn".
8226 (try_forward_edges): Likewise for local "last".
8227 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8228 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8229 "real_b_end".
8230 (can_replace_by): Likewise for params "i1", "i2".
8231 (old_insns_match_p): Likewise.
8232 (merge_notes): Likewise.
8233 (walk_to_nondebug_insn): Likewise for param "i1".
8234 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8235 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8236 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8237 (flow_find_head_matching_sequence): Strengthen params "f1" and
8238 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8239 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8240 rtx_insn *.
8241 (outgoing_edges_match): Likewise for locals "last1", "last2".
8242 (try_crossjump_to_edge): Likewise for local "insn".
8243 Replace call to for_each_rtx with for_each_rtx_in_insn.
8244
8245 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8246 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8247 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8248 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8249 (try_optimize_cfg): Strengthen local "last" from rtx to
8250 rtx_insn *.
8251 (delete_dead_jumptables): Likewise for locals "insn", "next",
8252 "label".
8253
8254 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8255 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8256 "rtx else_first_tail", to reflect the basic-block.h changes above.
8257
8258 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8259
8260 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8261 rtx_insn *.
8262 (purge_dead_tablejump_edges): Likewise.
8263 (find_bb_boundaries): Likewise for locals "insn", "end",
8264 "flow_transfer_insn".
8265
8266 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8267
8268 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8269 "ins" and "prev" from rtx to rtx_insn *.
8270
8271 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8272
8273 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8274 rtx_insn *.
8275 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8276 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8277 "scan_start".
8278 (load_register_parameters): Likewise for local "before_arg".
8279 (check_sibcall_argument_overlap): Likewise for param "insn".
8280 (expand_call): Likewise for locals "normal_call_insns",
8281 "tail_call_insns", "insns", "before_call", "after_args",
8282 "before_arg", "last", "prev". Strengthen one of the "last" from
8283 rtx to rtx_call_insn *.
8284 (fixup_tail_calls): Strengthen local "insn" from rtx to
8285 rtx_insn *.
8286 (emit_library_call_value_1): Likewise for locals "before_call" and
8287 "last".
8288
8289 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8290
8291 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8292 and "last" from rtx to rtx_insn *.
8293 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8294 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8295 rtx_call_insn *.
8296 (expand_errno_check): Strengthen local "lab" from rtx to
8297 rtx_code_label *.
8298 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8299 rtx_insn *.
8300 (expand_builtin_mathfn_2): Likewise.
8301 (expand_builtin_mathfn_ternary): Likewise.
8302 (expand_builtin_mathfn_3): Likewise.
8303 (expand_builtin_interclass_mathfn): Likewise for local "last".
8304 (expand_builtin_int_roundingfn): Likewise for local "insns".
8305 (expand_builtin_int_roundingfn_2): Likewise.
8306 (expand_builtin_strlen): Likewise for local "before_strlen".
8307 (expand_builtin_strncmp): Likewise for local "seq".
8308 (expand_builtin_signbit): Likewise for local "last".
8309 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8310 from rtx to rtx_code_label *.
8311 (expand_stack_restore): Strengthen local "prev" from rtx to
8312 rtx_insn *.
8313
8314 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8315
8316 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8317 to rtx_insn *.
8318 (struct btr_def_s): Likewise.
8319 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8320 const rtx_insn *.
8321 (add_btr_def): Likewise.
8322 (new_btr_user): Likewise.
8323 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8324 rtx to rtx_insn *.
8325 (link_btr_uses): Likewise.
8326 (move_btr_def): Likewise for locals "insp", "old_insn",
8327 "new_insn". Add checked cast to rtx_insn * for now on result of
8328 gen_move_insn.
8329 (can_move_up): Strengthen param "insn" from const_rtx to
8330 const rtx_insn *.
8331
8332 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8333
8334 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8335 rtx_insn *.
8336 (get_uncond_jump_length): Likewise for locals "label", "jump".
8337 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8338 "jump", "insn".
8339 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8340 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8341 (find_jump_block): Likewise for local "insn".
8342 (fix_crossing_conditional_branches): Likewise for locals
8343 "old_jump", "new_jump".
8344 (fix_crossing_unconditional_branches): Likewise for locals
8345 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8346 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8347
8348 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8349
8350 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8351 rtx to rtx_insn *.
8352 (struct mem_insn): Likewise for field "insn".
8353 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8354 (reg_next_inc_use): Likewise.
8355 (reg_next_def): Likewise.
8356 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8357 from rtx to rtx_insn *.
8358 (move_insn_before): Likewise for param "next_insn" and local "insns".
8359 (attempt_change): Likewise for local "mov_insn".
8360 (try_merge): Likewise for param "last_insn".
8361 (get_next_ref): Likewise for return type and local "insn".
8362 Strengthen param "next_array" from rtx * to rtx_insn **.
8363 (parse_add_or_inc): Strengthen param "insn" from rtx to
8364 rtx_insn *.
8365 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8366 the latter).
8367 (merge_in_block): Likewise for locals "insn", "curr",
8368 "other_insn".
8369 (pass_inc_dec::execute): Update allocations of the arrays to
8370 reflect the stronger types.
8371
8372 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8373
8374 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8375 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8376 from rtx to rtx_code_label *.
8377
8378 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8379
8380 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8381 to rtx_insn *.
8382
8383 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8384
8385 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8386 generated a warning and prevented bootstrapping the compiler.
8387
8388 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8389
8390 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8391 rtx_insn *.
8392
8393 * jump.c (delete_related_insns): Likewise, also for locals "next"
8394 and "prev".
8395
8396 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8397
8398 * genautomata.c (output_internal_insn_latency_func): When writing
8399 the function "internal_insn_latency" to insn-automata.c,
8400 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8401 allowing the optional guard function of (define_bypass) clauses to
8402 expect a pair of rtx_insn *, rather than a pair of rtx.
8403 (output_insn_latency_func): When writing the function
8404 "insn_latency", add an "uncast_" prefix to params "insn" and
8405 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8406 using checked casts from the params, thus enabling the above
8407 change to the generated "internal_insn_latency" function.
8408
8409 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8410
8411 PR tree-optimization/62091
8412 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8413 handle correctly arrays.
8414 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8415 inheritance binfos.
8416 (record_known_type): Walk into inner type.
8417 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8418 condition on no type changes.
8419
8420 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8421
8422 * genattrtab.c (write_attr_get): Within the generated get_attr_
8423 functions, rename param "insn" to "uncast_insn" and reintroduce
8424 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8425 is an rtx_insn * within insn-attrtab.c
8426
8427 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8428
8429 * output.h (peephole): Strengthen return type from rtx to
8430 rtx_insn *.
8431 * rtl.h (delete_for_peephole): Likewise for both params.
8432 * genpeep.c (main): In generated "peephole" function, strengthen
8433 return type and local "insn" from rtx to rtx_insn *. For now,
8434 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8435 rtx_insn *, with a checked cast.
8436 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8437 locals "insn", "next", "prev" from rtx to rtx_insn *.
8438
8439 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8440
8441 PR tree-optimization/62112
8442 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8443 * gimple-iterator.h (gsi_replace): Return bool.
8444 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8445 moved from ref_may_alias_global_p.
8446 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8447 New overloads.
8448 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8449 (stmt_kills_ref_p_1): Rename...
8450 (stmt_kills_ref_p): ... to this.
8451 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8452 stmt_kills_ref_p): Declare.
8453 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8454 Move the self-assignment case...
8455 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8456
8457 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8458
8459 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8460
8461 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8462 "after". For now, don't strengthen param "trial", which requires
8463 adding checked casts when returning it.
8464
8465 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8466
8467 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8468 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8469 "var_location" hook from rtx to rtx_insn *.
8470 (debug_nothing_rtx): Delete in favor of...
8471 (debug_nothing_rtx_code_label): New prototype.
8472 (debug_nothing_rtx_rtx): Delete unused prototype.
8473 (debug_nothing_rtx_insn): New prototype.
8474
8475 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8476 invoking debug_hooks->var_location (in two places, one in a NOTE
8477 case of a switch statement, the other guarded by a CALL_P
8478 conditional. Add checked cast to rtx_code_label * when invoking
8479 debug_hooks->label (within CODE_LABEL case of switch statement).
8480
8481 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8482 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8483 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8484 (xcoff_debug_hooks): Likewise.
8485 * debug.c (do_nothing_debug_hooks): Likewise.
8486 (debug_nothing_rtx): Delete in favor of...
8487 (debug_nothing_rtx_insn): New function.
8488 (debug_nothing_rtx_rtx): Delete unused function.
8489 (debug_nothing_rtx_code_label): New function.
8490 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8491 debug_nothing_rtx to debug_nothing_rtx_code_label.
8492 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8493 to rtx_insn *.
8494 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8495 debug_nothing_rtx to debug_nothing_rtx_insn.
8496 (sdbout_label): Strengthen param "insn" from rtx to
8497 rtx_code_label *.
8498 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8499 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8500 "var_location" hook from debug_nothing_rtx to
8501 debug_nothing_rtx_insn.
8502
8503 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8504
8505 * recog.h (insn_output_fn): Update this function typedef to match
8506 the changes below to the generated output functions, strengthening
8507 the 2nd param from rtx to rtx_insn *.
8508
8509 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8510 insn when invoking an output function, to match the new signature
8511 of insn_output_fn with a stronger second param.
8512
8513 * genconditions.c (write_header): In the generated code for
8514 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8515 to match the other changes in this patch.
8516
8517 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8518 the generated "gen_" functions from rtx to rtx_insn * within their
8519 implementations.
8520
8521 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8522 the subfunctions within the generated "recog_", "split", "peephole2"
8523 function trees from rtx to rtx_insn *. For now, the top-level
8524 generated functions ("recog", "split", "peephole2") continue to
8525 take a plain rtx for "insn", to avoid introducing dependencies on
8526 other patches. Rename this 2nd param from "insn" to
8527 "uncast_insn", and reintroduce "insn" as a local variable of type
8528 rtx_insn *, initialized at the top of the generated function with
8529 a checked cast on "uncast_insn".
8530 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8531 the generated "gen_" functions from rtx to rtx_insn * within their
8532 prototypes.
8533
8534 * genoutput.c (process_template): Strengthen the 2nd param within
8535 the generated "output_" functions "insn" from rtx to rtx_insn *.
8536
8537 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8538
8539 * tree-profile.c (tree_profiling): Skip external functions
8540 when doing coverage instrumentation.
8541 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8542
8543 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8544
8545 * config/rs6000/altivec.h (vec_cpsgn): New #define.
8546 (vec_mergee): Likewise.
8547 (vec_mergeo): Likewise.
8548 (vec_cntlz): Likewise.
8549 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8550 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8551 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8552 VMRGEW, and VMRGOW.
8553 * doc/extend.texi: Document various forms of vec_cpsgn,
8554 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8555 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8556 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8557 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8558 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8559
8560 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8561
8562 * config/rs6000/rs6000.c (context.h): New include.
8563 (tree-pass.h): Likewise.
8564 (make_pass_analyze_swaps): New decl.
8565 (rs6000_option_override): Register pass_analyze_swaps.
8566 (swap_web_entry): New subsclass of web_entry_base (df.h).
8567 (special_handling_values): New enum.
8568 (union_defs): New function.
8569 (union_uses): Likewise.
8570 (insn_is_load_p): Likewise.
8571 (insn_is_store_p): Likewise.
8572 (insn_is_swap_p): Likewise.
8573 (rtx_is_swappable_p): Likewise.
8574 (insn_is_swappable_p): Likewise.
8575 (chain_purpose): New enum.
8576 (chain_contains_only_swaps): New function.
8577 (mark_swaps_for_removal): Likewise.
8578 (swap_const_vector_halves): Likewise.
8579 (adjust_subreg_index): Likewise.
8580 (permute_load): Likewise.
8581 (permute_store): Likewise.
8582 (handle_special_swappables): Likewise.
8583 (replace_swap_with_copy): Likewise.
8584 (dump_swap_insn_table): Likewise.
8585 (rs6000_analyze_swaps): Likewise.
8586 (pass_data_analyze_swaps): New pass_data.
8587 (pass_analyze_swaps): New rtl_opt_pass.
8588 (make_pass_analyze_swaps): New function.
8589 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8590
8591 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8592
8593 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8594 type from rtx to rtx_insn *.
8595 (create_copy_of_insn_rtx): Likewise.
8596 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8597 (create_copy_of_insn_rtx): Likewise, also for local "res".
8598
8599 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8600
8601 * rtl.h (find_first_parameter_load): Strengthen return type from
8602 rtx to rtx_insn *.
8603 * rtlanal.c (find_first_parameter_load): Strengthen return type
8604 from rtx to rtx_insn *. Add checked cast for now, to postpone
8605 strengthening the params.
8606
8607 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8608
8609 PR fortran/44054
8610 * diagnostic.c: Set default caret.
8611 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8612 line is needed.
8613 * diagnostic.h (struct diagnostic_context):
8614
8615 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8616
8617 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8618 (sel_bb_head): Strengthen return type insn_t (currently just an
8619 rtx) to rtx_insn *.
8620 (sel_bb_end): Likewise.
8621
8622 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8623 (sel_bb_head): Strengthen return type and local "head" from
8624 insn_t (currently just an rtx) to rtx_insn *.
8625 (sel_bb_end): Likewise for return type.
8626 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8627 working with insn.
8628
8629 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8630
8631 * basic-block.h (get_last_bb_insn): Strengthen return type from
8632 rtx to rtx_insn *.
8633 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8634 end".
8635
8636 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8637
8638 PR fortran/44054
8639 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8640 to here ...
8641 (diagnostic_report_diagnostic): ... from here.
8642 * toplev.c (general_init): Move code to c-family.
8643
8644 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8645
8646 * df.h (web_entry_base): Replace existing struct web_entry with a
8647 new class web_entry_base with only the predecessor member.
8648 (unionfind_root): Remove declaration and move to class member.
8649 (unionfind_union): Remove declaration and move to friend
8650 function.
8651 (union_defs): Remove declaration.
8652 * web.c (web_entry_base::unionfind_root): Modify to be member
8653 function and adjust accessors.
8654 (unionfind_union): Modify to be friend function and adjust
8655 accessors.
8656 (web_entry): New subclass of web_entry_base containing the reg
8657 member.
8658 (union_match_dups): Modify for struct -> class changes.
8659 (union_defs): Likewise.
8660 (entry_register): Likewise.
8661 (pass_web::execute): Likewise.
8662
8663 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
8664
8665 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8666 builtin define __VEC_ELEMENT_REG_ORDER__.
8667
8668 2014-08-20 Martin Jambor <mjambor@suse.cz>
8669 Wei Mi <wmi@google.com>
8670
8671 PR ipa/60449
8672 PR middle-end/61776
8673 * tree-ssa-operands.c (update_stmt_operands): Remove
8674 MODIFIED_NORETURN_CALLS.
8675 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8676 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8677 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8678 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8679 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8680 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8681 (gimple_call_set_ctrl_altering): New func.
8682 (gimple_call_ctrl_altering_p): Ditto.
8683 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8684 (make_blocks): Use gimple_call_initialize_ctrl_altering.
8685 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8686 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8687 remove MODIFIED_NORETURN_CALLS.
8688
8689 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8690
8691 * coverage.c (coverage_compute_profile_id): Return non-0;
8692 also handle symbols with unique name.
8693 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8694
8695 2014-08-20 Steve Ellcey <sellcey@mips.com>
8696
8697 PR middle-end/49191
8698 * doc/sourcebuild.texi (non_strict_align): New.
8699
8700 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8701
8702 * cgraphunit.c (ipa_passes, compile): Reshedule
8703 symtab_remove_unreachable_nodes passes; update comments.
8704 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8705 TODO_remove_functions before the pass; the functions ought to be
8706 already removed.
8707 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8708 TODO_remove_functions.
8709 * passes.c (pass_data_early_local_passes): Do not schedule function
8710 removal.
8711 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8712
8713 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8714
8715 PR c/59304
8716 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8717 before setting the option.
8718 * diagnostic.c (diagnostic_classify_diagnostic): Record
8719 command-line status.
8720
8721 2014-08-20 Richard Biener <rguenther@suse.de>
8722
8723 PR lto/62190
8724 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8725 to build uint{16,32,64}_type_node.
8726
8727 2014-08-20 Terry Guo <terry.guo@arm.com>
8728
8729 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8730 with immediate_operand.
8731
8732 2014-08-20 David Malcolm <dmalcolm@redhat.com>
8733
8734 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8735 "insn" from an as_a to a safe_as_a, for the case when "insn" is
8736 NULL.
8737
8738 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8739
8740 PR preprocessor/51303
8741 * incpath.c (remove_duplicates): Use cpp_warning.
8742
8743 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8744
8745 PR c/60975
8746 PR c/53063
8747 * doc/options.texi (CPP): Document it.
8748 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8749 * optc-gen.awk: Handle CPP.
8750 * opth-gen.awk: Likewise.
8751
8752 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8753
8754 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8755 rtx_insn *.
8756 (duplicate_insn_chain): Likewise.
8757 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8758 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8759 checked cast for now (until we can strengthen the params in the
8760 same way).
8761 (duplicate_insn_chain): Likewise.
8762
8763 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8764
8765 * rtl.h (next_cc0_user): Strengthen return type from rtx to
8766 rtx_insn *.
8767 (prev_cc0_setter): Likewise.
8768
8769 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8770 rtx_insn *, adding checked casts for now as necessary.
8771 (prev_cc0_setter): Likewise.
8772
8773 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8774
8775 * expr.h (emit_move_insn): Strengthen return type from rtx to
8776 rtx_insn *.
8777 (emit_move_insn_1): Likewise.
8778 (emit_move_complex_push): Likewise.
8779 (emit_move_complex_parts): Likewise.
8780
8781 * expr.c (emit_move_via_integer): Strengthen return type from rtx
8782 to rtx_insn *. Replace use of NULL_RTX with NULL when working
8783 with insns.
8784 (emit_move_complex_push): Strengthen return type from rtx to
8785 rtx_insn *.
8786 (emit_move_complex): Likewise, also for local "ret".
8787 (emit_move_ccmode): Likewise.
8788 (emit_move_multi_word): Likewise for return type and locals
8789 "last_insn", "seq".
8790 (emit_move_insn_1): Likewise for return type and locals "result",
8791 "ret".
8792 (emit_move_insn): Likewise for return type and local "last_insn".
8793 (compress_float_constant): Likewise.
8794
8795 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8796
8797 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8798 from rtx to rtx_insn *.
8799
8800 * rtl.h (emit_insn_before): Likewise.
8801 (emit_insn_before_noloc): Likewise.
8802 (emit_insn_before_setloc): Likewise.
8803 (emit_jump_insn_before): Likewise.
8804 (emit_jump_insn_before_noloc): Likewise.
8805 (emit_jump_insn_before_setloc): Likewise.
8806 (emit_call_insn_before): Likewise.
8807 (emit_call_insn_before_noloc): Likewise.
8808 (emit_call_insn_before_setloc): Likewise.
8809 (emit_debug_insn_before): Likewise.
8810 (emit_debug_insn_before_noloc): Likewise.
8811 (emit_debug_insn_before_setloc): Likewise.
8812 (emit_label_before): Likewise.
8813 (emit_insn_after): Likewise.
8814 (emit_insn_after_noloc): Likewise.
8815 (emit_insn_after_setloc): Likewise.
8816 (emit_jump_insn_after): Likewise.
8817 (emit_jump_insn_after_noloc): Likewise.
8818 (emit_jump_insn_after_setloc): Likewise.
8819 (emit_call_insn_after): Likewise.
8820 (emit_call_insn_after_noloc): Likewise.
8821 (emit_call_insn_after_setloc): Likewise.
8822 (emit_debug_insn_after): Likewise.
8823 (emit_debug_insn_after_noloc): Likewise.
8824 (emit_debug_insn_after_setloc): Likewise.
8825 (emit_label_after): Likewise.
8826 (emit_insn): Likewise.
8827 (emit_debug_insn): Likewise.
8828 (emit_jump_insn): Likewise.
8829 (emit_call_insn): Likewise.
8830 (emit_label): Likewise.
8831 (gen_clobber): Likewise.
8832 (emit_clobber): Likewise.
8833 (gen_use): Likewise.
8834 (emit_use): Likewise.
8835 (emit): Likewise.
8836
8837 (emit_barrier_before): Strengthen return type from rtx to
8838 rtx_barrier *.
8839 (emit_barrier_after): Likewise.
8840 (emit_barrier): Likewise.
8841
8842 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
8843 from rtx to rtx_insn *. Add checked casts for now when converting
8844 "last" from rtx to rtx_insn *.
8845 (emit_insn_before_noloc): Likewise for return type.
8846 (emit_jump_insn_before_noloc): Likewise.
8847 (emit_call_insn_before_noloc): Likewise.
8848 (emit_debug_insn_before_noloc): Likewise.
8849 (emit_barrier_before): Strengthen return type and local "insn"
8850 from rtx to rtx_barrier *.
8851 (emit_label_before): Strengthen return type from rtx to
8852 rtx_insn *. Add checked cast for now when returning param
8853 (emit_pattern_after_noloc): Strengthen return type from rtx to
8854 rtx_insn *. Add checked casts for now when converting "last" from
8855 rtx to rtx_insn *.
8856 (emit_insn_after_noloc): Strengthen return type from rtx to
8857 rtx_insn *.
8858 (emit_jump_insn_after_noloc): Likewise.
8859 (emit_call_insn_after_noloc): Likewise.
8860 (emit_debug_insn_after_noloc): Likewise.
8861 (emit_barrier_after): Strengthen return type from rtx to
8862 rtx_barrier *.
8863 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
8864 Add checked cast for now when converting "label" from rtx to
8865 rtx_insn *.
8866 (emit_pattern_after_setloc): Strengthen return type from rtx to
8867 rtx_insn *. Add checked casts for now when converting "last" from
8868 rtx to rtx_insn *.
8869 (emit_pattern_after): Strengthen return type from rtx to
8870 rtx_insn *.
8871 (emit_insn_after_setloc): Likewise.
8872 (emit_insn_after): Likewise.
8873 (emit_jump_insn_after_setloc): Likewise.
8874 (emit_jump_insn_after): Likewise.
8875 (emit_call_insn_after_setloc): Likewise.
8876 (emit_call_insn_after): Likewise.
8877 (emit_debug_insn_after_setloc): Likewise.
8878 (emit_debug_insn_after): Likewise.
8879 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8880 when converting "last" from rtx to rtx_insn *.
8881 (emit_pattern_before): Strengthen return type from rtx to
8882 rtx_insn *.
8883 (emit_insn_before_setloc): Likewise.
8884 (emit_insn_before): Likewise.
8885 (emit_jump_insn_before_setloc): Likewise.
8886 (emit_jump_insn_before): Likewise.
8887 (emit_call_insn_before_setloc): Likewise.
8888 (emit_call_insn_before): Likewise.
8889 (emit_debug_insn_before_setloc): Likewise.
8890 (emit_debug_insn_before): Likewise.
8891 (emit_insn): Strengthen return type and locals "last", "insn",
8892 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8893 within cases where we know we have an insn.
8894 (emit_debug_insn): Likewise.
8895 (emit_jump_insn): Likewise.
8896 (emit_call_insn): Strengthen return type and local "insn" from rtx
8897 to rtx_insn *.
8898 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8899 a checked cast to rtx_insn * for now on "label".
8900 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8901 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8902 (emit_use): Likewise.
8903 (gen_use): Likewise, also for local "seq".
8904 (emit): Likewise for return type and local "insn".
8905 (rtx_insn): Likewise for return type and local "new_rtx".
8906
8907 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
8908 from rtx to rtx_barrier *.
8909
8910 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
8911 changed return type from rtx to rtx_insn *, we must update
8912 "emit_fn" type, and this in turn means updating...
8913 (frame_insn): ...this. Strengthen return type from rtx to
8914 rtx_insn *. Introduce a new local "insn" of the appropriate type.
8915
8916 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8917
8918 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
8919 rtx to rtx_jump_table_data *. Also for local.
8920 * rtl.h (emit_jump_table_data): Likewise.
8921
8922 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8923
8924 * basic-block.h (create_basic_block_structure): Strengthen third
8925 param "bb_note" from rtx to rtx_note *.
8926 * rtl.h (emit_note_before): Strengthen return type from rtx to
8927 rtx_note *.
8928 (emit_note_after): Likewise.
8929 (emit_note): Likewise.
8930 (emit_note_copy): Likewise. Also, strengthen param similarly.
8931 * function.h (struct rtl_data): Strengthen field
8932 "x_stack_check_probe_note" from rtx to rtx_note *.
8933
8934 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
8935 from rtx to rtx_note *.
8936 * cfgrtl.c (create_basic_block_structure): Strengthen third param
8937 "bb_note" from rtx to rtx_note *.
8938 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
8939 when calling emit_note_copy.
8940 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
8941 rtx_note *.
8942 (emit_note_after): Likewise.
8943 (emit_note_before): Likewise.
8944 (emit_note_copy): Likewise. Also, strengthen param similarly.
8945 (emit_note): Likewise.
8946 * except.c (emit_note_eh_region_end): Likewise for return type.
8947 Strengthen local "next" from rtx to rtx_insn *.
8948 (convert_to_eh_region_ranges): Strengthen local "note"
8949 from rtx to rtx_note *.
8950 * final.c (change_scope): Likewise.
8951 (reemit_insn_block_notes): Likewise, for both locals named "note".
8952 Also, strengthen local "insn" from rtx to rtx_insn *.
8953 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
8954 rtx to rtx_note *.
8955 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
8956 strengthen local "seq" from rtx to rtx_insn *.
8957 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
8958 to rtx_note *.
8959 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
8960 vec<rtx_note *>.
8961 (get_bb_note_from_pool): Strengthen return type from rtx to
8962 rtx_note *.
8963 (sel_create_basic_block): Strengthen local "new_bb_note" from
8964 insn_t to rtx_note *.
8965 * var-tracking.c (emit_note_insn_var_location): Strengthen local
8966 "note" from rtx to rtx_note *.
8967 (emit_notes_in_bb): Likewise.
8968
8969 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8970
8971 * function.h (struct rtl_data): Strengthen field
8972 "x_parm_birth_insn" from rtx to rtx_insn *.
8973 * function.c (struct assign_parm_data_all): Strengthen fields
8974 "first_conversion_insn" and "last_conversion_insn" from rtx to
8975 rtx_insn *.
8976
8977 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8978
8979 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
8980 to rtx_insn *; also for local "var_end_seq".
8981 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
8982 (maybe_cleanup_end_of_block): Likewise for param "last" and local
8983 "insn".
8984 (expand_gimple_cond): Likewise for locals "last2" and "last".
8985 (mark_transaction_restart_calls): Likewise for local "insn".
8986 (expand_gimple_stmt): Likewise for return type and locals "last"
8987 and "insn".
8988 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
8989 (avoid_complex_debug_insns): Likewise for param "insn".
8990 (expand_debug_locations): Likewise for locals "insn", "last",
8991 "prev_insn" and "insn2".
8992 (expand_gimple_basic_block): Likewise for local "last".
8993 (construct_exit_block): Likewise for locals "head", "end",
8994 "orig_end".
8995 (pass_expand::execute): Likewise for locals "var_seq",
8996 "var_ret_seq", "next".
8997
8998 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8999
9000 * asan.h (asan_emit_stack_protection): Strengthen return type from
9001 rtx to rtx_insn *.
9002 * asan.c (asan_emit_stack_protection): Likewise. Add local
9003 "insns" to hold the return value.
9004
9005 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9006
9007 * basic-block.h (bb_note): Strengthen return type from rtx to
9008 rtx_note *.
9009 * sched-int.h (bb_note): Likewise.
9010 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9011
9012 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9013
9014 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9015 rtx_insn *.
9016
9017 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9018 "insn" from rtx to rtx_insn *.
9019 (make_debug_insn_raw): Strengthen return type from rtx to
9020 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9021 (make_jump_insn_raw): Strengthen return type from rtx to
9022 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9023 (make_call_insn_raw): Strengthen return type from rtx to
9024 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9025 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9026 callback from rtx to rtx_insn *; likewise for local "insn" and
9027 "next", adding a checked cast to rtx_insn in the relevant cases of
9028 the switch statement.
9029 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9030 callback from rtx to rtx_insn *.
9031 (emit_pattern_after_setloc): Likewise.
9032 (emit_pattern_after): Likewise.
9033 (emit_pattern_before_setloc): Likewise.
9034 (emit_pattern_before): Likewise.
9035
9036 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9037
9038 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9039 rtx_call_insn *.
9040 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9041 accepting an rtx_insn *.
9042 (last_call_insn): Strengthen return type from rtx to
9043 rtx_call_insn *.
9044
9045 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9046
9047 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9048 "insns" from rtx to rtx_insn *.
9049 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9050 locals "insn" and "prev".
9051
9052 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9053
9054 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9055 rtx_jump_table_data **.
9056
9057 * cfgbuild.c (make_edges): Introduce local "table", using it in
9058 place of "tmp" for jump table data.
9059 (find_bb_boundaries): Strengthen local "table" from rtx to
9060 rtx_jump_table_data *.
9061 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9062 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9063 (try_crossjump_to_edge): Likewise.
9064 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9065 "table".
9066 (patch_jump_insn): Introduce local "table", using it in place of
9067 "tmp" for jump table data.
9068 (force_nonfallthru_and_redirect): Introduce local "table", so that
9069 call to tablejump_p can receive an rtx_jump_table_data **. Update
9070 logic around the call to overwrite "note" appropriately if
9071 tablejump_p returns non-zero.
9072 (get_last_bb_insn): Introduce local "table", using it in place of
9073 "tmp" for jump table data.
9074 * dwarf2cfi.c (create_trace_edges): Likewise.
9075
9076 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9077 from rtx to rtx_jump_table_data *.
9078 (create_fix_barrier): Strengthen local "tmp" from rtx to
9079 rtx_jump_table_data *.
9080 (arm_reorg): Likewise for local "table".
9081
9082 * config/s390/s390.c (s390_chunkify_start): Likewise.
9083
9084 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9085
9086 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9087 rtx to rtx_jump_table_data *.
9088
9089 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9090 rtx_jump_table_data **. Add a checked cast when writing through
9091 the pointer: we know there that local "table" is non-NULL and that
9092 JUMP_TABLE_DATA_P (table) holds.
9093 (label_is_jump_target_p): Introduce local "table", using it in
9094 place of "tmp" for jump table data.
9095
9096 2014-08-19 Marek Polacek <polacek@redhat.com>
9097
9098 PR c++/62153
9099 * doc/invoke.texi: Document -Wbool-compare.
9100
9101 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9102
9103 * rtl.h (entry_of_function): Strengthen return type from rtx to
9104 rtx_insn *.
9105 * cfgrtl.c (entry_of_function): Likewise.
9106
9107 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9108
9109 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9110 rtx_insn *, adding a checked cast for now.
9111 (get_last_insn): Likewise.
9112
9113 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9114
9115 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9116 rtx_code_label *.
9117
9118 * emit-rtl.c (gen_label_rtx): Likewise.
9119
9120 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9121
9122 * rtl.h (previous_insn): Strengthen return type from rtx to
9123 rtx_insn *.
9124 (next_insn): Likewise.
9125 (prev_nonnote_insn): Likewise.
9126 (prev_nonnote_insn_bb): Likewise.
9127 (next_nonnote_insn): Likewise.
9128 (next_nonnote_insn_bb): Likewise.
9129 (prev_nondebug_insn): Likewise.
9130 (next_nondebug_insn): Likewise.
9131 (prev_nonnote_nondebug_insn): Likewise.
9132 (next_nonnote_nondebug_insn): Likewise.
9133 (prev_real_insn): Likewise.
9134 (next_real_insn): Likewise.
9135 (prev_active_insn): Likewise.
9136 (next_active_insn): Likewise.
9137
9138 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9139 rtx_insn *, adding a checked cast.
9140 (previous_insn): Likewise.
9141 (next_nonnote_insn): Likewise.
9142 (next_nonnote_insn_bb): Likewise.
9143 (prev_nonnote_insn): Likewise.
9144 (prev_nonnote_insn_bb): Likewise.
9145 (next_nondebug_insn): Likewise.
9146 (prev_nondebug_insn): Likewise.
9147 (next_nonnote_nondebug_insn): Likewise.
9148 (prev_nonnote_nondebug_insn): Likewise.
9149 (next_real_insn): Likewise.
9150 (prev_real_insn): Likewise.
9151 (next_active_insn): Likewise.
9152 (prev_active_insn): Likewise.
9153
9154 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9155 param "stepfunc" so that it returns an rtx_insn * rather than an
9156 rtx, to track the change to prev_nonnote_insn_bb, which is the
9157 only function this is called with.
9158 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9159
9160 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9161
9162 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9163 assert.
9164
9165 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9166
9167 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9168 (class rtx_nonjump_insn): Likewise.
9169 (class rtx_jump_insn): Likewise.
9170 (class rtx_call_insn): Likewise.
9171 (class rtx_jump_table_data): Likewise.
9172 (class rtx_barrier): Likewise.
9173 (class rtx_code_label): Likewise.
9174 (class rtx_note): Likewise.
9175
9176 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9177 adding the invariant DEBUG_INSN_P (X).
9178 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9179 the invariant NONJUMP_INSN_P (X).
9180 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9181 the invariant JUMP_P (X).
9182 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9183 the invariant CALL_P (X).
9184 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9185 invariant JUMP_TABLE_DATA_P (X).
9186 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9187 invariant BARRIER_P (X).
9188 (class rtx_code_label): New, a subclass of rtx_insn, adding
9189 the invariant LABEL_P (X).
9190 (class rtx_note): New, a subclass of rtx_insn, adding
9191 the invariant NOTE_P(X).
9192 (is_a_helper <rtx_debug_insn *>::test): New.
9193 (is_a_helper <rtx_nonjump_insn *>::test): New.
9194 (is_a_helper <rtx_jump_insn *>::test): New.
9195 (is_a_helper <rtx_call_insn *>::test): New.
9196 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9197 overloaded for both rtx and rtx_insn *.
9198 (is_a_helper <rtx_barrier *>::test): New.
9199 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9200 for both rtx and rtx_insn *.
9201 (is_a_helper <rtx_note *>::test): New.
9202
9203 2014-08-19 Marek Polacek <polacek@redhat.com>
9204
9205 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9206 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9207 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9208 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9209
9210 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9211
9212 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9213 rtx_insn *. To help with transition, for now, convert from an
9214 access macro into a pair of functions: BND_TO, returning an
9215 rtx_insn *, and...
9216 (SET_BND_TO): New function, for use where BND_TO is used as an
9217 lvalue.
9218
9219 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9220 SET_BND_TO.
9221 (BND_TO): New function, adding a checked cast.
9222 (SET_BND_TO): New function.
9223
9224 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9225 SET_BND_TO.
9226 (compute_av_set_on_boundaries): Likewise.
9227
9228 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9229
9230 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9231 destination if it is used in source.
9232 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9233 (*popcount<mode>2_falsedep_1): Likewise.
9234
9235 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9236
9237 PR other/62168
9238 * configure.ac: Set install_gold_as_default to no first.
9239 * configure: Regenerated.
9240
9241 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9242
9243 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9244 "note_list" field will eventually be an rtx_insn *. To help with
9245 transition, for now, convert from an access macro into a pair of
9246 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9247 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9248 used as an lvalue.
9249
9250 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9251 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9252
9253 * sel-sched-ir.c (init_bb): Likewise.
9254 (sel_restore_notes): Likewise.
9255 (move_bb_info): Likewise.
9256 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9257 (SET_BB_NOTE_LIST): New function.
9258
9259 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9260
9261 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9262 field will eventually be an rtx_insn *. To help with transition,
9263 for now, convert from an access macro into a pair of functions:
9264 VINSN_INSN_RTX, returning an rtx_insn *, and...
9265 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9266 is used as an lvalue.
9267
9268 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9269 SET_VINSN_INSN_RTX where it's used as an lvalue.
9270 (VINSN_INSN_RTX): New function.
9271 (SET_VINSN_INSN_RTX): New function.
9272
9273 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9274
9275 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9276 eventually be rtx_insn *, but to help with transition, for now,
9277 convert from an access macro into a pair of functions: DEP_PRO
9278 returning an rtx_insn * and...
9279 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9280 lvalue, returning an rtx&.
9281 (DEP_CON): Analogous changes to DEP_PRO above.
9282 (SET_DEP_CON): Likewise.
9283
9284 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9285 an lvalue to SET_DEP_CON.
9286 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9287 (sd_copy_back_deps): Likewise for DEP_CON.
9288 (DEP_PRO): New function, adding a checked cast for now.
9289 (DEP_CON): Likewise.
9290 (SET_DEP_PRO): New function.
9291 (SET_DEP_CON): Likewise.
9292
9293 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9294
9295 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9296 (extra_options): Add i386/cygwin.opt.
9297 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9298 (CPP_SPEC): Accept -pthread.
9299 (LINK_SPEC): Ditto.
9300 (GOMP_SELF_SPECS): Update comment.
9301 * config/i386/cygwin.opt: New file for -pthread flag.
9302
9303 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9304
9305 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9306 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9307 that we can return an rtx_insn *.
9308
9309 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9310
9311 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9312 when building executables, not DLLs. Add --large-address-aware
9313 under the same conditions.
9314 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9315 when building executables, not DLLs. Add --large-address-aware
9316 under the same conditions when using -m32.
9317
9318 * config/i386/cygwin-stdint.h: Throughout, make type
9319 definitions dependent on target architecture, not host.
9320
9321 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9322
9323 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9324 the return type from rtx to rtx_insn *, which will enable various
9325 conversions in followup patches. For now this is is done by a
9326 checked cast.
9327 (NEXT_INSN): Likewise.
9328 (SET_PREV_INSN): Convert to an inline function. This is intended
9329 for use as an lvalue, and so returns an rtx& to allow in-place
9330 modification.
9331 (SET_NEXT_INSN): Likewise.
9332
9333 2014-07-08 Mark Wielaard <mjw@redhat.com>
9334
9335 PR debug/59051
9336 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9337
9338 2014-08-19 Marek Polacek <polacek@redhat.com>
9339
9340 PR c/61271
9341 * cgraphunit.c (handle_alias_pairs): Fix condition.
9342
9343 2014-08-19 Richard Biener <rguenther@suse.de>
9344
9345 * gimple-fold.c (fold_gimple_assign): Properly build a
9346 null-pointer constant when devirtualizing addresses.
9347
9348 2014-07-07 Mark Wielaard <mjw@redhat.com>
9349
9350 * dwarf2out.c (decl_quals): New function.
9351 (modified_type_die): Take one cv_quals argument instead of two,
9352 one for const and one for volatile.
9353 (add_type_attribute): Likewise.
9354 (generic_parameter_die): Call add_type_attribute with one modifier
9355 argument.
9356 (base_type_for_mode): Likewise.
9357 (add_bounds_info): Likewise.
9358 (add_subscript_info): Likewise.
9359 (gen_array_type_die): Likewise.
9360 (gen_descr_array_type_die): Likewise.
9361 (gen_entry_point_die): Likewise.
9362 (gen_enumeration_type_die): Likewise.
9363 (gen_formal_parameter_die): Likewise.
9364 (gen_subprogram_die): Likewise.
9365 (gen_variable_die): Likewise.
9366 (gen_const_die): Likewise.
9367 (gen_field_die): Likewise.
9368 (gen_pointer_type_die): Likewise.
9369 (gen_reference_type_die): Likewise.
9370 (gen_ptr_to_mbr_type_die): Likewise.
9371 (gen_inheritance_die): Likewise.
9372 (gen_subroutine_type_die): Likewise.
9373 (gen_typedef_die): Likewise.
9374 (force_type_die): Likewise.
9375
9376 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9377
9378 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9379 if unset.
9380 * configure: Regenerate.
9381
9382 2014-08-19 Richard Biener <rguenther@suse.de>
9383
9384 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9385 DECL_EXTERNALs in BLOCKs as non-references.
9386 * tree-streamer-out.c (streamer_write_chain): Likewise.
9387
9388 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9389 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9390 Anna Tikhonova <anna.tikhonova@intel.com>
9391 Ilya Tocar <ilya.tocar@intel.com>
9392 Andrey Turetskiy <andrey.turetskiy@intel.com>
9393 Ilya Verbin <ilya.verbin@intel.com>
9394 Kirill Yukhin <kirill.yukhin@intel.com>
9395 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9396
9397 * config/i386/sse.md
9398 (define_mode_iterator VI48_AVX512F): Delete.
9399 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9400 (define_mode_iterator VI2_AVX512VL): Ditto.
9401 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9402 Delete.
9403 (define_insn
9404 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9405 New.
9406 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9407 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9408 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9409 with VI48_AVX512F_AVX512VL): New.
9410 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9411 with VI2_AVX512VL): Ditto.
9412
9413 2014-08-19 Marek Polacek <polacek@redhat.com>
9414
9415 * doc/invoke.texi: Document -Wc99-c11-compat.
9416
9417 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9418
9419 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9420 for rvalues, and...
9421 (SET_PREV_INSN): New macro, for use as an lvalue.
9422 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9423
9424 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9425 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9426 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9427 (fixup_abnormal_edges): Likewise.
9428 (unlink_insn_chain): Likewise.
9429 (fixup_reorder_chain): Likewise.
9430 (cfg_layout_delete_block): Likewise.
9431 (cfg_layout_merge_blocks): Likewise.
9432 * combine.c (update_cfg_for_uncondjump): Likewise.
9433 * emit-rtl.c (link_insn_into_chain): Likewise.
9434 (remove_insn): Likewise.
9435 (delete_insns_since): Likewise.
9436 (reorder_insns_nobb): Likewise.
9437 (emit_insn_after_1): Likewise.
9438 * final.c (rest_of_clean_state): Likewise.
9439 (final_scan_insn): Likewise.
9440 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9441 * haifa-sched.c (concat_note_lists): Likewise.
9442 (remove_notes): Likewise.
9443 (restore_other_notes): Likewise.
9444 (move_insn): Likewise.
9445 (unlink_bb_notes): Likewise.
9446 (restore_bb_notes): Likewise.
9447 * jump.c (delete_for_peephole): Likewise.
9448 * optabs.c (emit_libcall_block_1): Likewise.
9449 * reorg.c (emit_delay_sequence): Likewise.
9450 (fill_simple_delay_slots): Likewise.
9451 * sel-sched-ir.c (sel_move_insn): Likewise.
9452 (sel_remove_insn): Likewise.
9453 (get_bb_note_from_pool): Likewise.
9454 * sel-sched.c (move_nop_to_previous_block): Likewise.
9455
9456 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9457 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9458 (c6x_gen_bundles): Likewise.
9459 (hwloop_optimize): Likewise.
9460 * config/frv/frv.c (frv_function_prologue): Likewise.
9461 (frv_register_nop): Likewise.
9462 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9463 (ia64_reorg): Likewise.
9464 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9465 (mep_make_bundle): Likewise.
9466 (mep_bundle_insns): Likewise.
9467 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9468 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9469 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9470
9471 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9472
9473 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9474 return type from rtx to rtx_insn *.
9475 (BB_END): Likewise.
9476 (BB_HEADER): Likewise.
9477 (BB_FOOTER): Likewise.
9478 (SET_BB_HEAD): Convert to a function.
9479 (SET_BB_END): Likewise.
9480 (SET_BB_HEADER): Likewise.
9481 (SET_BB_FOOTER): Likewise.
9482
9483 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9484 Strengthen the return type from rtx to rtx_insn *. For now, this
9485 is done by adding a checked cast, but this will eventually
9486 become a field lookup.
9487 (BB_END): Likewise.
9488 (BB_HEADER): Likewise.
9489 (BB_FOOTER): Likewise.
9490 (SET_BB_HEAD): New function, from macro of same name. This is
9491 intended for use as an lvalue, and so returns an rtx& to allow
9492 in-place modification.
9493 (SET_BB_END): Likewise.
9494 (SET_BB_HEADER): Likewise.
9495 (SET_BB_FOOTER): Likewise.
9496
9497 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9498
9499 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9500 for rvalues, and...
9501 (SET_BB_HEAD): New macro, for use as a lvalue.
9502 (BB_END, SET_BB_END): Likewise.
9503 (BB_HEADER, SET_BB_HEADER): Likewise.
9504 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9505
9506 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9507 of BB_* macros into SET_BB_* macros.
9508 (fix_crossing_unconditional_branches): Likewise.
9509 * caller-save.c (save_call_clobbered_regs): Likewise.
9510 (insert_one_insn): Likewise.
9511 * cfgbuild.c (find_bb_boundaries): Likewise.
9512 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9513 (outgoing_edges_match): Likewise.
9514 (try_optimize_cfg): Likewise.
9515 * cfgexpand.c (expand_gimple_cond): Likewise.
9516 (expand_gimple_tailcall): Likewise.
9517 (expand_gimple_basic_block): Likewise.
9518 (construct_exit_block): Likewise.
9519 * cfgrtl.c (delete_insn): Likewise.
9520 (create_basic_block_structure): Likewise.
9521 (rtl_delete_block): Likewise.
9522 (rtl_split_block): Likewise.
9523 (emit_nop_for_unique_locus_between): Likewise.
9524 (rtl_merge_blocks): Likewise.
9525 (block_label): Likewise.
9526 (try_redirect_by_replacing_jump): Likewise.
9527 (emit_barrier_after_bb): Likewise.
9528 (fixup_abnormal_edges): Likewise.
9529 (record_effective_endpoints): Likewise.
9530 (relink_block_chain): Likewise.
9531 (fixup_reorder_chain): Likewise.
9532 (fixup_fallthru_exit_predecessor): Likewise.
9533 (cfg_layout_duplicate_bb): Likewise.
9534 (cfg_layout_split_block): Likewise.
9535 (cfg_layout_delete_block): Likewise.
9536 (cfg_layout_merge_blocks): Likewise.
9537 * combine.c (update_cfg_for_uncondjump): Likewise.
9538 * emit-rtl.c (add_insn_after): Likewise.
9539 (remove_insn): Likewise.
9540 (reorder_insns): Likewise.
9541 (emit_insn_after_1): Likewise.
9542 * haifa-sched.c (get_ebb_head_tail): Likewise.
9543 (restore_other_notes): Likewise.
9544 (move_insn): Likewise.
9545 (sched_extend_bb): Likewise.
9546 (fix_jump_move): Likewise.
9547 * ifcvt.c (noce_process_if_block): Likewise.
9548 (dead_or_predicable): Likewise.
9549 * ira.c (update_equiv_regs): Likewise.
9550 * reg-stack.c (change_stack): Likewise.
9551 * sel-sched-ir.c (sel_move_insn): Likewise.
9552 * sel-sched.c (move_nop_to_previous_block): Likewise.
9553
9554 * config/c6x/c6x.c (hwloop_optimize): Likewise.
9555 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9556
9557 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9558
9559 * rtl.h (for_each_rtx_in_insn): New function.
9560 * rtlanal.c (for_each_rtx_in_insn): Likewise.
9561
9562 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9563
9564 * coretypes.h (class rtx_insn): Add forward declaration.
9565
9566 * rtl.h: Include is-a.h.
9567 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9568 workaround to ensure gengtype knows inheritance is occurring,
9569 whilst continuing to use the pre-existing special-casing for
9570 rtx_def.
9571 (class rtx_insn): New subclass of rtx_def, adding the
9572 invariant that we're dealing with something we can sanely use
9573 INSN_UID, NEXT_INSN, PREV_INSN on.
9574 (is_a_helper <rtx_insn *>::test): New.
9575 (is_a_helper <const rtx_insn *>::test): New.
9576
9577 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9578
9579 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9580
9581 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9582
9583 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9584 comdats as extern.
9585
9586 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9587
9588 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9589 to BUILT_IN_UNREACHABLE.
9590
9591 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
9592
9593 PR target/62011
9594 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9595 New tune flag.
9596 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9597 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9598 (ffs<mode>2): Do not expand with tzcnt for
9599 TARGET_AVOID_FALSE_DEP_FOR_BMI.
9600 (ffssi2_no_cmove): Ditto.
9601 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9602 (ctz<mode>2): New expander.
9603 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9604 (*ctz<mode>2_falsedep): New insn.
9605 (*ctz<mode>2): Rename from ctz<mode>2.
9606 (clz<mode>2_lzcnt): New expander.
9607 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9608 (*clz<mode>2_lzcnt_falsedep): New insn.
9609 (*clz<mode>2): Rename from ctz<mode>2.
9610 (popcount<mode>2): New expander.
9611 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9612 (*popcount<mode>2_falsedep): New insn.
9613 (*popcount<mode>2): Rename from ctz<mode>2.
9614 (*popcount<mode>2_cmp): Remove.
9615 (*popcountsi2_cmp_zext): Ditto.
9616
9617 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
9618
9619 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9620 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9621 * config/microblaze/microblaze.h
9622 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9623
9624 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
9625
9626 PR other/62168
9627 * configure.ac: Set install_gold_as_default to no for
9628 --enable-gold=no.
9629 * configure: Regenerated.
9630
9631 2014-08-18 Roman Gareev <gareevroman@gmail.com>
9632
9633 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9634 * config.in: Add undef of HAVE_isl.
9635 * configure: Regenerate.
9636 * configure.ac: Add definition of HAVE_isl.
9637 * graphite-blocking.c: Add checking of HAVE_isl.
9638 * graphite-dependences.c: Likewise.
9639 * graphite-interchange.c: Likewise.
9640 * graphite-isl-ast-to-gimple.c: Likewise.
9641 * graphite-optimize-isl.c: Likewise.
9642 * graphite-poly.c: Likewise.
9643 * graphite-scop-detection.c: Likewise.
9644 * graphite-sese-to-poly.c: Likewise.
9645 * graphite.c: Likewise.
9646 * toplev.c: Replace the checking of HAVE_cloog with the checking
9647 of HAVE_isl.
9648
9649 2014-08-18 Richard Biener <rguenther@suse.de>
9650
9651 PR tree-optimization/62090
9652 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9653 (fold_builtin_3): Do not fold snprintf.
9654 (fold_builtin_4): Likewise.
9655 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9656 moved from builtins.c.
9657 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9658 (gimple_fold_builtin): Do not fold sprintf here.
9659
9660 2014-08-18 Richard Biener <rguenther@suse.de>
9661
9662 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9663 code to ...
9664 (maybe_canonicalize_mem_ref_addr): ... this function.
9665 (fold_stmt_1): Apply it here before all simplification.
9666
9667 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
9668
9669 PR ipa/61800
9670 * cgraph.h (cgraph_node::create_indirect_edge): Add
9671 compute_indirect_info param.
9672 * cgraph.c (cgraph_node::create_indirect_edge): Compute
9673 indirect_info only when it is required.
9674 * cgraphclones.c (cgraph_clone_edge): Do not recompute
9675 indirect_info fore cloned indirect edge.
9676
9677 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9678 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9679 Anna Tikhonova <anna.tikhonova@intel.com>
9680 Ilya Tocar <ilya.tocar@intel.com>
9681 Andrey Turetskiy <andrey.turetskiy@intel.com>
9682 Ilya Verbin <ilya.verbin@intel.com>
9683 Kirill Yukhin <kirill.yukhin@intel.com>
9684 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9685
9686 * config/i386/sse.md
9687 (define_mode_iterator VI8_AVX2_AVX512BW): New.
9688 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9689
9690 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9692 Anna Tikhonova <anna.tikhonova@intel.com>
9693 Ilya Tocar <ilya.tocar@intel.com>
9694 Andrey Turetskiy <andrey.turetskiy@intel.com>
9695 Ilya Verbin <ilya.verbin@intel.com>
9696 Kirill Yukhin <kirill.yukhin@intel.com>
9697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9698
9699 * config/i386/sse.md
9700 (define_mode_iterator VF1_AVX512VL): New.
9701 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9702 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9703 New.
9704
9705 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9706 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9707 Anna Tikhonova <anna.tikhonova@intel.com>
9708 Ilya Tocar <ilya.tocar@intel.com>
9709 Andrey Turetskiy <andrey.turetskiy@intel.com>
9710 Ilya Verbin <ilya.verbin@intel.com>
9711 Kirill Yukhin <kirill.yukhin@intel.com>
9712 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9713
9714 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9715 * config/i386/i386.md
9716 (define_code_iterator any_float): New.
9717 (define_code_attr floatsuffix): New.
9718 * config/i386/sse.md
9719 (define_mode_iterator VF1_128_256VL): New.
9720 (define_mode_iterator VF2_512_256VL): New.
9721 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9722 TARGET check.
9723 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9724 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9725 New.
9726 (define_mode_attr qq2pssuff): New.
9727 (define_mode_attr sselongvecmode): New.
9728 (define_mode_attr sselongvecmodelower): New.
9729 (define_mode_attr sseintvecmode3): New.
9730 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9731 New.
9732 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9733 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9734 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9735 (define_insn "ufloatv2siv2df2<mask_name>"): New.
9736
9737 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9739 Anna Tikhonova <anna.tikhonova@intel.com>
9740 Ilya Tocar <ilya.tocar@intel.com>
9741 Andrey Turetskiy <andrey.turetskiy@intel.com>
9742 Ilya Verbin <ilya.verbin@intel.com>
9743 Kirill Yukhin <kirill.yukhin@intel.com>
9744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9745
9746 * config/i386/sse.md
9747 (define_mode_iterator VF2_AVX512VL): New.
9748 (define_mode_attr sseintvecmode2): New.
9749 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9750 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9751 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9752 (define_insn
9753 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9754 Ditto.
9755 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9756 Ditto.
9757 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9758 Ditto.
9759
9760 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9761 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9762 Anna Tikhonova <anna.tikhonova@intel.com>
9763 Ilya Tocar <ilya.tocar@intel.com>
9764 Andrey Turetskiy <andrey.turetskiy@intel.com>
9765 Ilya Verbin <ilya.verbin@intel.com>
9766 Kirill Yukhin <kirill.yukhin@intel.com>
9767 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9768
9769 * config/i386/i386.md
9770 (define_insn "*movoi_internal_avx"): Add evex version.
9771 (define_insn "*movti_internal"): Ditto.
9772
9773 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9774 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9775 Anna Tikhonova <anna.tikhonova@intel.com>
9776 Ilya Tocar <ilya.tocar@intel.com>
9777 Andrey Turetskiy <andrey.turetskiy@intel.com>
9778 Ilya Verbin <ilya.verbin@intel.com>
9779 Kirill Yukhin <kirill.yukhin@intel.com>
9780 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9781
9782 * config/i386/i386.md
9783 (define_attr "isa"): Add avx512dq, noavx512dq.
9784 (define_attr "enabled"): Ditto.
9785 * config/i386/sse.md
9786 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9787
9788 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9789 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9790 Anna Tikhonova <anna.tikhonova@intel.com>
9791 Ilya Tocar <ilya.tocar@intel.com>
9792 Andrey Turetskiy <andrey.turetskiy@intel.com>
9793 Ilya Verbin <ilya.verbin@intel.com>
9794 Kirill Yukhin <kirill.yukhin@intel.com>
9795 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9796
9797 * config/i386/i386.c
9798 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9799 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9800 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9801 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9802 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9803 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9804 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9805 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9806 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9807 * config/i386/sse.md
9808 (define_mode_iterator VMOVE): Allow V4TI mode.
9809 (define_mode_iterator V_AVX512VL): New.
9810 (define_mode_iterator V): New handling for AVX512VL.
9811 (define_insn "avx512f_load<mode>_mask"): Delete.
9812 (define_insn "<avx512>_load<mode>_mask"): New.
9813 (define_insn "avx512f_store<mode>_mask"): Delete.
9814 (define_insn "<avx512>_store<mode>_mask"): New.
9815
9816
9817 2014-08-18 Yury Gribov <y.gribov@samsung.com>
9818
9819 PR sanitizer/62089
9820 * asan.c (instrument_derefs): Fix bitfield check.
9821
9822 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9823
9824 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9825 * config/rs6000/htm.md (ttest): Remove clobber.
9826 * config/rs6000/predicates.md (any_mask_operand): New predicate.
9827 (and_operand): Reformat.
9828 (and_2rld_operand): New predicate.
9829 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9830 parameter.
9831 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9832 parameter. Handle AND directly.
9833 (rs6000_split_logical_di): Remove last parameter.
9834 (rs6000_split_logical): Remove last parameter. Remove obsolete
9835 comment.
9836 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9837 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9838 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
9839 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9840 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9841 and 5 anonymous splitters): Delete.
9842 (and<mode>3): New expander.
9843 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9844 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9845 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
9846 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
9847 (floatdisf2_internal1): Remove clobbers.
9848 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
9849 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
9850 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
9851 (and<mode>3 for BOOL_128): Remove clobber.
9852 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
9853 rs6000_split_logical.
9854 (*bool<mode>3_internal for BOOL_128): Adjust call of
9855 rs6000_split_logical.
9856 (*boolc<mode>3_internal1 for BOOL_128,
9857 *boolc<mode>3_internal2 for BOOL_128,
9858 *boolcc<mode>3_internal1 for BOOL_128,
9859 *boolcc<mode>3_internal2 for BOOL_128,
9860 *eqv<mode>3_internal1 for BOOL_128,
9861 *eqv<mode>3_internal2 for BOOL_128,
9862 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
9863 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
9864 clobber.
9865 (*vec_reload_and_reg_<mptrsize>): Delete.
9866
9867 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9868
9869 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9870 and split, *boolccsi3_internal3 and split): Delete.
9871 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9872 *boolccdi3_internal3 and split): Delete.
9873 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9874 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9875
9876 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9877
9878 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9879 and split, *boolcsi3_internal3 and split): Delete.
9880 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9881 *boolcdi3_internal3 and split): Delete.
9882 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9883
9884 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9885
9886 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9887 <'u'>: Also support printing the low-order 16 bits.
9888 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9889 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9890 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9891 *booldi3_internal3 and split): Delete.
9892 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9893 *bool<mode>3_dot2): New.
9894 (two anonymous define_splits for non_logical_cint_operand): Merge.
9895
9896 2014-08-17 Marek Polacek <polacek@redhat.com>
9897 Manuel López-Ibáñez <manu@gcc.gnu.org>
9898
9899 PR c/62059
9900 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9901 (diagnostic_show_locus): Don't print caret diagnostic
9902 if a column is larger than the line_width.
9903
9904 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9905
9906 * common.opt: Make the ISL AST generator to be the main code generator
9907 of Graphite.
9908
9909 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
9910
9911 * wide-int.h (generic_wide_int): Declare as class instead of struct.
9912
9913 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
9914
9915 PR target/61641
9916 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
9917 Declare.
9918 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
9919 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
9920 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
9921 Define.
9922 * config/pa/pa.md (begin_brtab): Delete insn.
9923 (end_brtab): Likewise.
9924
9925 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9926
9927 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
9928
9929 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
9930
9931 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
9932 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
9933 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
9934 (get_dynamic_type): Remove.
9935 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
9936 (clear_speculation): Bring to ipa-deivrt.h
9937 (get_class_context): Rename to ...
9938 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
9939 (contains_type_p): Update.
9940 (get_dynamic_type): Rename to ...
9941 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
9942 (possible_polymorphic_call_targets): UPdate.
9943 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
9944 * ipa-prop.c (ipa_analyze_call_uses): Update.
9945
9946 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
9947
9948 * doc/invoke.texi (SH options): Document missing processor variant
9949 options. Remove references to Hitachi. Undocument deprecated mspace
9950 option.
9951
9952 2014-08-15 Jason Merrill <jason@redhat.com>
9953
9954 * tree.c (type_hash_canon): Uncomment assert.
9955
9956 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9957
9958 * input.h (in_system_header_at): Add comment.
9959
9960 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9961
9962 PR fortran/44054
9963 * diagnostic.c (build_message_string): Make it extern.
9964 * diagnostic.h (build_message_string): Make it extern.
9965
9966 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
9967
9968 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
9969 load/store from/to non-floating class pseudo.
9970
9971 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9972
9973 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
9974
9975 2014-08-15 Richard Biener <rguenther@suse.de>
9976
9977 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
9978 (get_constraint_for_ssa_var): Remove dead code.
9979 (get_constraint_for_1): Adjust.
9980 (find_what_var_points_to): Likewise.
9981 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
9982
9983 2014-08-15 Ilya Tocar <tocarip@gmail.com>
9984
9985 PR target/61878
9986 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
9987 (_mm512_mask_cmpge_epu32_mask): Ditto.
9988 (_mm512_cmpge_epu32_mask): Ditto.
9989 (_mm512_mask_cmpge_epi64_mask): Ditto.
9990 (_mm512_cmpge_epi64_mask): Ditto.
9991 (_mm512_mask_cmpge_epu64_mask): Ditto.
9992 (_mm512_cmpge_epu64_mask): Ditto.
9993 (_mm512_mask_cmple_epi32_mask): Ditto.
9994 (_mm512_cmple_epi32_mask): Ditto.
9995 (_mm512_mask_cmple_epu32_mask): Ditto.
9996 (_mm512_cmple_epu32_mask): Ditto.
9997 (_mm512_mask_cmple_epi64_mask): Ditto.
9998 (_mm512_cmple_epi64_mask): Ditto.
9999 (_mm512_mask_cmple_epu64_mask): Ditto.
10000 (_mm512_cmple_epu64_mask): Ditto.
10001 (_mm512_mask_cmplt_epi32_mask): Ditto.
10002 (_mm512_cmplt_epi32_mask): Ditto.
10003 (_mm512_mask_cmplt_epu32_mask): Ditto.
10004 (_mm512_cmplt_epu32_mask): Ditto.
10005 (_mm512_mask_cmplt_epi64_mask): Ditto.
10006 (_mm512_cmplt_epi64_mask): Ditto.
10007 (_mm512_mask_cmplt_epu64_mask): Ditto.
10008 (_mm512_cmplt_epu64_mask): Ditto.
10009 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10010 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10011 (_mm512_cmpneq_epu32_mask): Ditto.
10012 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10013 (_mm512_cmpneq_epi64_mask): Ditto.
10014 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10015 (_mm512_cmpneq_epu64_mask): Ditto.
10016 (_mm512_castpd_ps): Ditto.
10017 (_mm512_castpd_si512): Ditto.
10018 (_mm512_castps_pd): Ditto.
10019 (_mm512_castps_si512): Ditto.
10020 (_mm512_castsi512_ps): Ditto.
10021 (_mm512_castsi512_pd): Ditto.
10022 (_mm512_castpd512_pd128): Ditto.
10023 (_mm512_castps512_ps128): Ditto.
10024 (_mm512_castsi512_si128): Ditto.
10025 (_mm512_castpd512_pd256): Ditto.
10026 (_mm512_castps512_ps256): Ditto.
10027 (_mm512_castsi512_si256): Ditto.
10028 (_mm512_castpd128_pd512): Ditto.
10029 (_mm512_castps128_ps512): Ditto.
10030 (_mm512_castsi128_si512): Ditto.
10031 (_mm512_castpd256_pd512): Ditto.
10032 (_mm512_castps256_ps512): Ditto.
10033 (_mm512_castsi256_si512): Ditto.
10034 (_mm512_cmpeq_epu32_mask): Ditto.
10035 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10036 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10037 (_mm512_cmpeq_epu64_mask): Ditto.
10038 (_mm512_cmpgt_epu32_mask): Ditto.
10039 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10040 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10041 (_mm512_cmpgt_epu64_mask): Ditto.
10042 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10043 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10044 * config/i386/i386.c (enum ix86_builtins): Add
10045 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10046 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10047 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10048 (bdesc_args): Add __builtin_ia32_si512_256si,
10049 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10050 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10051 __builtin_ia32_pd512_pd.
10052 (ix86_expand_args_builtin): Handle new FTYPEs.
10053 * config/i386/sse.md (castmode): Add 512-bit modes.
10054 (AVX512MODE2P): New.
10055 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10056 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10057
10058 2014-08-15 Richard Biener <rguenther@suse.de>
10059
10060 * fold-const.c (tree_swap_operands_p): Put all constants
10061 last, also strip sign-changing NOPs when considering further
10062 canonicalization. Canonicalize also when optimizing for size.
10063
10064 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10065
10066 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10067 one_match > zero_match case to just before simple_sequence.
10068
10069 2014-08-15 Richard Biener <rguenther@suse.de>
10070
10071 * data-streamer.h (streamer_string_index, string_for_index):
10072 Remove.
10073 * data-streamer-out.c (streamer_string_index): Make static.
10074 * data-streamer-in.c (string_for_index): Likewise.
10075 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10076 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10077
10078 2014-08-15 Richard Biener <rguenther@suse.de>
10079
10080 PR tree-optimization/62031
10081 * tree-data-ref.c (dr_analyze_indices): Do not set
10082 DR_UNCONSTRAINED_BASE.
10083 (dr_may_alias_p): All indirect accesses have to go the
10084 formerly DR_UNCONSTRAINED_BASE path.
10085 * tree-data-ref.h (struct indices): Remove
10086 unconstrained_base member.
10087 (DR_UNCONSTRAINED_BASE): Remove.
10088
10089 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10090
10091 PR middle-end/62092
10092 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10093 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10094 in OMP_CLAUSE_MAP in some outer target region.
10095
10096 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10097
10098 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10099 name_expansion_cache.
10100 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10101 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10102 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10103 (difference_cannot_overflow_p): New parameter. Use affine
10104 expansion for equality check.
10105 (iv_elimination_compare_lt): Pass new argument.
10106
10107 2014-08-14 DJ Delorie <dj@redhat.com>
10108
10109 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10110 variables to the accumulator.
10111
10112 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10113 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10114 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10115 with far-far moves.
10116
10117 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10118 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10119 (umulqihi3_virt): Likewise.
10120 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10121 (umulqihi3_real): Likewise.
10122
10123 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10124
10125 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10126
10127 PR tree-optimization/62091
10128 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10129 function_entry_reached.
10130 (walk_aliased_vdefs): Clear it here.
10131 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10132
10133 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10134
10135 * ipa-utils.h (compare_virtual_tables): Declare.
10136 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10137
10138 2014-08-14 Marek Polacek <polacek@redhat.com>
10139
10140 DR 458
10141 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10142 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10143
10144 2014-08-14 Tom de Vries <tom@codesourcery.com>
10145
10146 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10147
10148 2014-08-14 Tom de Vries <tom@codesourcery.com>
10149
10150 PR rtl-optimization/62004
10151 PR rtl-optimization/62030
10152 * ifcvt.c (rtx_interchangeable_p): New function.
10153 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10154 * emit-rtl.h (mem_attrs_eq_p): Declare.
10155
10156 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10157
10158 * graphite-scop-detection.c:
10159 Add inclusion of cp-tree.h.
10160 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10161 in case they are pointers to object types
10162
10163 2014-08-14 Richard Biener <rguenther@suse.de>
10164
10165 * BASE-VER: Change to 5.0.0
10166
10167 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10168 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10169 Anna Tikhonova <anna.tikhonova@intel.com>
10170 Ilya Tocar <ilya.tocar@intel.com>
10171 Andrey Turetskiy <andrey.turetskiy@intel.com>
10172 Ilya Verbin <ilya.verbin@intel.com>
10173 Kirill Yukhin <kirill.yukhin@intel.com>
10174 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10175
10176 * config/i386/sse.md (define_mode_attr avx512): New.
10177 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10178 V4DI modes.
10179 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10180 (define_mode_attr ssse3_avx2): Ditto.
10181 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10182 (define_mode_attr avx2_avx512bw): New.
10183 (define_mode_attr ssedoublemodelower): New.
10184 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10185 V32HI, V64QI modes.
10186 (define_mode_attr ssebytemode): Allow V8DI modes.
10187 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10188 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10189 (define_mode_attr ssePSmode2): New.
10190 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10191 V16HI, V32HI modes.
10192 (define_mode_attr dbpsadbwmode): New.
10193 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10194 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10195 (vi8_sse4_1_avx2_avx512): New.
10196 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10197 mode attribute.
10198 (define_mode_attr blendbits): Move before its immediate use.
10199
10200 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10201 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10202 Anna Tikhonova <anna.tikhonova@intel.com>
10203 Ilya Tocar <ilya.tocar@intel.com>
10204 Andrey Turetskiy <andrey.turetskiy@intel.com>
10205 Ilya Verbin <ilya.verbin@intel.com>
10206 Kirill Yukhin <kirill.yukhin@intel.com>
10207 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10208
10209 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10210 * config/i386/subst.md
10211 (define_mode_iterator SUBST_V): Update.
10212 (define_mode_iterator SUBST_A): Ditto.
10213 (define_subst_attr "mask_operand7"): New.
10214 (define_subst_attr "mask_operand10"): New.
10215 (define_subst_attr "mask_operand_arg34") : New.
10216 (define_subst_attr "mask_expand_op3"): New.
10217 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10218 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10219 (define_subst_attr "mask_avx512vl_condition"): New.
10220 (define_subst_attr "round_mask_operand4"): Ditto.
10221 (define_subst_attr "round_mask_scalar_op3"): Delete.
10222 (define_subst_attr "round_mask_op4"): New.
10223 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10224 V16SImode.
10225 (define_subst_attr "round_modev8sf_condition"): New.
10226 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10227 <MODE>mode.
10228 (define_subst_attr "round_saeonly_mask_operand4"): New.
10229 (define_subst_attr "round_saeonly_mask_op4"): New.
10230 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10231 V8DImode, V16SImode.
10232 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10233 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10234 (define_subst_attr "mask_expand4_args"): New.
10235 (define_subst "mask_expand4"): New.
10236
10237 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10238 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10239 Anna Tikhonova <anna.tikhonova@intel.com>
10240 Ilya Tocar <ilya.tocar@intel.com>
10241 Andrey Turetskiy <andrey.turetskiy@intel.com>
10242 Ilya Verbin <ilya.verbin@intel.com>
10243 Kirill Yukhin <kirill.yukhin@intel.com>
10244 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10245
10246 * config/i386/i386.md
10247 (define_attr "isa"): Add avx512bw,noavx512bw.
10248 (define_attr "enabled"): Ditto.
10249 (define_split): Add 32/64-bit mask logic.
10250 (define_insn "*k<logic>qi"): New.
10251 (define_insn "*k<logic>hi"): New.
10252 (define_insn "*anddi_1"): Add mask version.
10253 (define_insn "*andsi_1"): Ditto.
10254 (define_insn "*<code><mode>_1"): Ditto.
10255 (define_insn "*<code>hi_1"): Ditto.
10256 (define_insn "kxnor<mode>"): New.
10257 (define_insn "kunpcksi"): New.
10258 (define_insn "kunpckdi"): New.
10259 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10260 (define_insn "*one_cmplhi2_1"): Ditto.
10261
10262 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10263 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10264 Anna Tikhonova <anna.tikhonova@intel.com>
10265 Ilya Tocar <ilya.tocar@intel.com>
10266 Andrey Turetskiy <andrey.turetskiy@intel.com>
10267 Ilya Verbin <ilya.verbin@intel.com>
10268 Kirill Yukhin <kirill.yukhin@intel.com>
10269 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10270
10271 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10272 V32HImode.
10273
10274 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10275 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10276 Anna Tikhonova <anna.tikhonova@intel.com>
10277 Ilya Tocar <ilya.tocar@intel.com>
10278 Andrey Turetskiy <andrey.turetskiy@intel.com>
10279 Ilya Verbin <ilya.verbin@intel.com>
10280 Kirill Yukhin <kirill.yukhin@intel.com>
10281 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10282
10283 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10284 registers.
10285 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10286 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10287 xmm/ymm16+ when availble.
10288 * config/i386/i386.h
10289 (HARD_REGNO_NREGS): Add mask regs.
10290 (VALID_AVX512F_REG_MODE): Ditto.
10291 (VALID_AVX512F_REG_MODE) : Define.
10292 (VALID_MASK_AVX512BW_MODE): Ditto.
10293 (reg_class) (MASK_REG_P(X)): Define.
10294 * config/i386/i386.md: Do not split long moves with mask register,
10295 use kmovb if avx512bw is availible.
10296 (movdi_internal): Handle mask registers.
10297
10298 2014-08-14 Richard Biener <rguenther@suse.de>
10299
10300 PR tree-optimization/62081
10301 * tree-ssa-loop.c (pass_fix_loops): New pass.
10302 (pass_tree_loop::gate): Do not fixup loops here.
10303 * tree-pass.h (make_pass_fix_loops): Declare.
10304 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10305
10306 2014-08-14 Richard Biener <rguenther@suse.de>
10307
10308 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10309 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10310
10311 2014-08-14 Richard Biener <rguenther@suse.de>
10312
10313 PR tree-optimization/62090
10314 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10315 (fold_builtin_2): Do not fold sprintf.
10316 (fold_builtin_3): Likewise.
10317 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10318 moved from builtins.c.
10319 (gimple_fold_builtin): Fold sprintf.
10320
10321 2014-08-14 Richard Biener <rguenther@suse.de>
10322
10323 PR rtl-optimization/62079
10324 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10325 run cleanup_cfg.
10326
10327 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10328
10329 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10330 current_function_decl.
10331
10332 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10333
10334 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10335 cgraph_function_node to cgraph_node::function_symbol
10336 refactoring.
10337
10338 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10339
10340 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10341 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10342
10343 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10344
10345 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10346 warning.
10347
10348 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10349
10350 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10351 generator.
10352
10353 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10354
10355 PR target/62025
10356 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10357 any registers that are used in mem_insn.
10358
10359 2014-08-12 Steve Ellcey <sellcey@mips.com>
10360
10361 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10362
10363 2014-08-12 Steve Ellcey <sellcey@mips.com>
10364
10365 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10366 (MULTILIB_DIRNAMES): Ditto.
10367 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10368 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10369 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10370 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10371 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10372 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10373
10374 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10375
10376 PR target/61413
10377 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10378 of __ARM_SIZEOF_WCHAR_T.
10379
10380 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10381
10382 PR target/62098
10383 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10384 Remove unnecessary attributes.
10385
10386 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10387
10388 * internal-fn.c (init_internal_fns): Fix off-by-one.
10389
10390 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10391 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10392 Anna Tikhonova <anna.tikhonova@intel.com>
10393 Ilya Tocar <ilya.tocar@intel.com>
10394 Andrey Turetskiy <andrey.turetskiy@intel.com>
10395 Ilya Verbin <ilya.verbin@intel.com>
10396 Kirill Yukhin <kirill.yukhin@intel.com>
10397 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10398
10399 * config/i386/i386.c (standard_sse_constant_opcode): Use
10400 vpxord/vpternlog if avx512 is availible.
10401
10402 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10403
10404 PR middle-end/62103
10405 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10406 bitfields, that is when size doesn't match the size of type or the
10407 size of the constructor.
10408
10409 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10410
10411 * config/rs6000/constraints.md (wh constraint): New constraint,
10412 for FP registers if direct move is available.
10413 (wi constraint): New constraint, for VSX/FP registers that can
10414 handle 64-bit integers.
10415 (wj constraint): New constraint for VSX/FP registers that can
10416 handle 64-bit integers for direct moves.
10417 (wk constraint): New constraint for VSX/FP registers that can
10418 handle 64-bit doubles for direct moves.
10419 (wy constraint): Make documentation match implementation.
10420
10421 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10422 scalar_in_vmx_p field to simplify tests of whether SFmode or
10423 DFmode can go in the Altivec registers.
10424 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10425 (rs6000_setup_reg_addr_masks): Likewise.
10426 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10427 field, and wh/wi/wj/wk constraints.
10428 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10429 the wh/wi/wj/wk constraints.
10430 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10431 upper registers, prefer VSX registers unless the operation is a
10432 memory operation with REG+OFFSET addressing.
10433
10434 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10435 DImode. Change SFmode to use ww constraint instead of d to allow
10436 SF registers in the upper registers.
10437 (VSr2): Likewise.
10438 (VSr3): Likewise.
10439 (VSr5): Fix thinko in comment.
10440 (VSa): New mode attribute that is an alternative to wa, that
10441 returns the VSX register class that a mode can go in, but may not
10442 be the preferred register class.
10443 (VS_64dm): New mode attribute for appropriate register classes for
10444 referencing 64-bit elements of vectors for direct moves and normal
10445 moves.
10446 (VS_64reg): Likewise.
10447 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10448 register allocator to only registers the data type can handle.
10449 (vsx_le_perm_load_<mode>): Likewise.
10450 (vsx_le_perm_store_<mode>): Likewise.
10451 (vsx_xxpermdi2_le_<mode>): Likewise.
10452 (vsx_xxpermdi4_le_<mode>): Likewise.
10453 (vsx_lxvd2x2_le_<mode>): Likewise.
10454 (vsx_lxvd2x4_le_<mode>): Likewise.
10455 (vsx_stxvd2x2_le_<mode>): Likewise.
10456 (vsx_add<mode>3): Likewise.
10457 (vsx_sub<mode>3): Likewise.
10458 (vsx_mul<mode>3): Likewise.
10459 (vsx_div<mode>3): Likewise.
10460 (vsx_tdiv<mode>3_internal): Likewise.
10461 (vsx_fre<mode>2): Likewise.
10462 (vsx_neg<mode>2): Likewise.
10463 (vsx_abs<mode>2): Likewise.
10464 (vsx_nabs<mode>2): Likewise.
10465 (vsx_smax<mode>3): Likewise.
10466 (vsx_smin<mode>3): Likewise.
10467 (vsx_sqrt<mode>2): Likewise.
10468 (vsx_rsqrte<mode>2): Likewise.
10469 (vsx_tsqrt<mode>2_internal): Likewise.
10470 (vsx_fms<mode>4): Likewise.
10471 (vsx_nfma<mode>4): Likewise.
10472 (vsx_eq<mode>): Likewise.
10473 (vsx_gt<mode>): Likewise.
10474 (vsx_ge<mode>): Likewise.
10475 (vsx_eq<mode>_p): Likewise.
10476 (vsx_gt<mode>_p): Likewise.
10477 (vsx_ge<mode>_p): Likewise.
10478 (vsx_xxsel<mode>): Likewise.
10479 (vsx_xxsel<mode>_uns): Likewise.
10480 (vsx_copysign<mode>3): Likewise.
10481 (vsx_float<VSi><mode>2): Likewise.
10482 (vsx_floatuns<VSi><mode>2): Likewise.
10483 (vsx_fix_trunc<mode><VSi>2): Likewise.
10484 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10485 (vsx_x<VSv>r<VSs>i): Likewise.
10486 (vsx_x<VSv>r<VSs>ic): Likewise.
10487 (vsx_btrunc<mode>2): Likewise.
10488 (vsx_b2trunc<mode>2): Likewise.
10489 (vsx_floor<mode>2): Likewise.
10490 (vsx_ceil<mode>2): Likewise.
10491 (vsx_<VS_spdp_insn>): Likewise.
10492 (vsx_xscvspdp): Likewise.
10493 (vsx_xvcvspuxds): Likewise.
10494 (vsx_float_fix_<mode>2): Likewise.
10495 (vsx_set_<mode>): Likewise.
10496 (vsx_extract_<mode>_internal1): Likewise.
10497 (vsx_extract_<mode>_internal2): Likewise.
10498 (vsx_extract_<mode>_load): Likewise.
10499 (vsx_extract_<mode>_store): Likewise.
10500 (vsx_splat_<mode>): Likewise.
10501 (vsx_xxspltw_<mode>): Likewise.
10502 (vsx_xxspltw_<mode>_direct): Likewise.
10503 (vsx_xxmrghw_<mode>): Likewise.
10504 (vsx_xxmrglw_<mode>): Likewise.
10505 (vsx_xxsldwi_<mode>): Likewise.
10506 (vsx_xscvdpspn): Tighten constraints to only use register classes
10507 the types use.
10508 (vsx_xscvspdpn): Likewise.
10509 (vsx_xscvdpspn_scalar): Likewise.
10510
10511 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10512 wj, and wk constraints.
10513 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10514 general purpose registers.
10515
10516 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10517 direct moves.
10518 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10519 DImode instead of wm. Use wk constraint for direct move of DFmode
10520 instead of wm.
10521 (extendsidi2_lfiwax): Likewise.
10522 (lfiwax): Likewise.
10523 (lfiwzx): Likewise.
10524 (movdi_internal64): Likewise.
10525
10526 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10527 wk constraints. Make the wy constraint documentation match them
10528 implementation.
10529
10530 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
10531
10532 Replacement of isl_int by isl_val
10533 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10534 (compute_bounds_for_param): use isl_val instead of isl_int
10535 (compute_bounds_for_loop): likewise
10536 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10537 (build_linearized_memory_access): use isl_val instead of isl_int
10538 (pdr_stride_in_loop): likewise
10539 * graphite-optimize-isl.c:
10540 (getPrevectorMap): use isl_val instead of isl_int
10541 * graphite-poly.c:
10542 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10543 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10544 (extern the_isl_ctx): declare
10545 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10546 (extract_affine_gmp): likewise
10547 (wrap): likewise
10548 (build_loop_iteration_domains): likewise
10549 (add_param_constraints): likewise
10550
10551 2014-08-11 Richard Biener <rguenther@suse.de>
10552
10553 PR tree-optimization/62075
10554 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10555 handle uses in patterns.
10556
10557 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10558 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10559 Anna Tikhonova <anna.tikhonova@intel.com>
10560 Ilya Tocar <ilya.tocar@intel.com>
10561 Andrey Turetskiy <andrey.turetskiy@intel.com>
10562 Ilya Verbin <ilya.verbin@intel.com>
10563 Kirill Yukhin <kirill.yukhin@intel.com>
10564 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10565
10566 * common/config/i386/i386-common.c
10567 (OPTION_MASK_ISA_AVX512VL_SET): Define.
10568 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10569 (ix86_handle_option): Handle OPT_mavx512vl.
10570 * config/i386/cpuid.h (bit_AVX512VL): Define.
10571 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10572 set -mavx512vl accordingly.
10573 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10574 OPTION_MASK_ISA_AVX512VL.
10575 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10576 (ix86_option_override_internal): Define PTA_AVX512VL, handle
10577 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10578 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10579 * config/i386/i386.h (TARGET_AVX512VL): Define.
10580 (TARGET_AVX512VL_P(x)): Ditto.
10581 * config/i386/i386.opt: Add mavx512vl.
10582
10583 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
10584
10585 PR tree-optimization/62073
10586 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10587 a basic block.
10588
10589 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10590 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10591 Anna Tikhonova <anna.tikhonova@intel.com>
10592 Ilya Tocar <ilya.tocar@intel.com>
10593 Andrey Turetskiy <andrey.turetskiy@intel.com>
10594 Ilya Verbin <ilya.verbin@intel.com>
10595 Kirill Yukhin <kirill.yukhin@intel.com>
10596 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10597
10598 * common/config/i386/i386-common.c
10599 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10600 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10601 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10602 (ix86_handle_option): Handle OPT_mavx512bw.
10603 * config/i386/cpuid.h (bit_AVX512BW): Define.
10604 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10605 set -mavx512bw accordingly.
10606 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10607 OPTION_MASK_ISA_AVX512BW.
10608 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10609 (ix86_option_override_internal): Define PTA_AVX512BW, handle
10610 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10611 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10612 * config/i386/i386.h (TARGET_AVX512BW): Define.
10613 (TARGET_AVX512BW_P(x)): Ditto.
10614 * config/i386/i386.opt: Add mavx512bw.
10615
10616 2014-08-11 Richard Biener <rguenther@suse.de>
10617
10618 PR tree-optimization/62070
10619 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10620 Remove SSA checking.
10621
10622 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10623
10624 * asan.c (asan_check_flags): New enum.
10625 (build_check_stmt_with_calls): Removed function.
10626 (build_check_stmt): Split inlining logic to
10627 asan_expand_check_ifn.
10628 (instrument_derefs): Rename parameter.
10629 (instrument_mem_region_access): Rename parameter.
10630 (instrument_strlen_call): Likewise.
10631 (asan_expand_check_ifn): New function.
10632 (asan_instrument): Remove old code.
10633 (pass_sanopt::execute): Change handling of
10634 asan-instrumentation-with-call-threshold.
10635 (asan_clear_shadow): Fix formatting.
10636 (asan_function_start): Likewise.
10637 (asan_emit_stack_protection): Likewise.
10638 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10639 Update description.
10640 * internal-fn.c (expand_ASAN_CHECK): New function.
10641 * internal-fn.def (ASAN_CHECK): New internal function.
10642 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10643 Update description.
10644 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10645 * tree.c: Small comment fix.
10646
10647 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10648
10649 * gimple.c (gimple_call_fnspec): Support internal functions.
10650 (gimple_call_return_flags): Use const.
10651 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10652 * internal-fn.def: Add fnspec information.
10653 * internal-fn.h (internal_fn_fnspec): New function.
10654 (init_internal_fns): Declare new function.
10655 * internal-fn.c (internal_fn_fnspec_array): New global variable.
10656 (init_internal_fns): New function.
10657 * tree-core.h: Update macro call.
10658 * tree.c (build_common_builtin_nodes): Initialize internal fns.
10659
10660 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
10661
10662 * lto-streamer.h (struct output_block::symbol): Change from
10663 struct symtab_node to plain symtab_node.
10664 (referenced_from_this_partition_p): Change first parameter
10665 from struct symtab_node to plain symtab_node.
10666
10667 2014-08-10 Marek Polacek <polacek@redhat.com>
10668
10669 PR c/51849
10670 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10671
10672 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
10673
10674 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10675 DECL correctly; do not give up on types in static storage.
10676
10677 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
10678
10679 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10680
10681 2014-08-09 Roman Gareev <gareevroman@gmail.com>
10682
10683 * graphite-isl-ast-to-gimple.c:
10684 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10685
10686 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10687
10688 2014-08-08 Guozhi Wei <carrot@google.com>
10689
10690 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10691
10692 2014-08-08 Cary Coutant <ccoutant@google.com>
10693
10694 * dwarf2out.c (get_skeleton_type_unit): Remove.
10695 (output_skeleton_debug_sections): Remove skeleton type units.
10696 (output_comdat_type_unit): Likewise.
10697 (dwarf2out_finish): Likewise.
10698
10699 2014-08-07 Yi Yang <ahyangyi@google.com>
10700
10701 * predict.c (expr_expected_value_1): Remove the redundant assignment.
10702
10703 2014-08-08 Richard Biener <rguenther@suse.de>
10704
10705 * lto-streamer.h (struct lto_input_block): Make it a class
10706 with a constructor.
10707 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10708 (struct lto_function_header, struct lto_simple_header,
10709 struct lto_simple_header_with_strings,
10710 struct lto_decl_header, struct lto_function_header): Make
10711 a simple inheritance hieararchy. Remove unused fields.
10712 (struct lto_asm_header): Remove.
10713 * lto-streamer-out.c (produce_asm): Adjust.
10714 (lto_output_toplevel_asms): Likewise.
10715 (produce_asm_for_decls): Likewise.
10716 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10717 * data-streamer-in.c (string_for_index): Likewise.
10718 * ipa-inline-analysis.c (inline_read_section): Likewise.
10719 * ipa-prop.c (ipa_prop_read_section): Likewise.
10720 (read_replacements_section): Likewise.
10721 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10722 * lto-section-in.c (lto_create_simple_input_block): Likewise.
10723 (lto_destroy_simple_input_block): Likewise.
10724 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10725 (lto_input_toplevel_asms): Likewise.
10726
10727 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
10728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10729 Anna Tikhonova <anna.tikhonova@intel.com>
10730 Ilya Tocar <ilya.tocar@intel.com>
10731 Andrey Turetskiy <andrey.turetskiy@intel.com>
10732 Ilya Verbin <ilya.verbin@intel.com>
10733 Kirill Yukhin <kirill.yukhin@intel.com>
10734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10735
10736 * common/config/i386/i386-common.c
10737 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10738 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10739 (ix86_handle_option): Handle OPT_mavx512dq.
10740 * config/i386/cpuid.h (bit_AVX512DQ): Define.
10741 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10742 set -mavx512dq accordingly.
10743 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10744 OPTION_MASK_ISA_AVX512DQ.
10745 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10746 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10747 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10748 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10749 * config/i386/i386.h (TARGET_AVX512DQ): Define.
10750 (TARGET_AVX512DQ_P(x)): Ditto.
10751 * config/i386/i386.opt: Add mavx512dq.
10752
10753 2014-08-08 Richard Biener <rguenther@suse.de>
10754
10755 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10756 target_percent, target_percent_s): Export.
10757 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10758 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10759 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10760 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10761 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10762 Move to gimple-fold.c.
10763 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10764 strcat and strcpy.
10765 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10766 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10767 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10768 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10769 (rewrite_call_expr_array): Remove.
10770 (fold_builtin_sprintf_chk): Likewise.
10771 (fold_builtin_snprintf_chk): Likewise.
10772 (fold_builtin_varargs): Remove handling of sprintf_chk,
10773 vsprintf_chk, snprintf_chk and vsnprintf_chk.
10774 (gimple_fold_builtin_sprintf_chk): Remove.
10775 (gimple_fold_builtin_snprintf_chk): Likewise.
10776 (gimple_fold_builtin_varargs): Likewise.
10777 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10778 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10779 * gimple.c (gimple_seq_add_seq_without_update): New function.
10780 * gimple.h (gimple_seq_add_seq_without_update): Declare.
10781 * gimple-fold.c: Include output.h.
10782 (gsi_replace_with_seq_vops): New function, split out from ...
10783 (gimplify_and_update_call_from_tree): ... here.
10784 (replace_call_with_value): New function.
10785 (replace_call_with_call_and_fold): Likewise.
10786 (var_decl_component_p): Moved from builtins.c.
10787 (gimple_fold_builtin_memory_op): Moved from builtins.c
10788 fold_builtin_memory_op and rewritten to GIMPLE.
10789 (gimple_fold_builtin_memset): Likewise.
10790 (gimple_fold_builtin_strcpy): Likewise.
10791 (gimple_fold_builtin_strncpy): Likewise.
10792 (gimple_fold_builtin_strcat): Likewise.
10793 (gimple_fold_builtin_fputs): Likewise.
10794 (gimple_fold_builtin_memory_chk): Likewise.
10795 (gimple_fold_builtin_stxcpy_chk): Likewise.
10796 (gimple_fold_builtin_stxncpy_chk): Likewise.
10797 (gimple_fold_builtin_snprintf_chk): Likewise.
10798 (gimple_fold_builtin_sprintf_chk): Likewise.
10799 (gimple_fold_builtin_strlen): New function.
10800 (gimple_fold_builtin_with_strlen): New function split out from
10801 gimple_fold_builtin.
10802 (gimple_fold_builtin): Change signature and handle
10803 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10804 here. Call gimple_fold_builtin_with_strlen.
10805 (gimple_fold_call): Adjust.
10806
10807 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10808
10809 * calls.c (precompute_arguments): Check
10810 promoted_for_signed_and_unsigned_p and set the promoted mode.
10811 (promoted_for_signed_and_unsigned_p): New function.
10812 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10813 and set the promoted mode.
10814 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10815 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10816 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10817
10818
10819 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10820
10821 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10822 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10823 (expand_call): Likewise.
10824 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10825 to get promoted mode.
10826 * combine.c (record_promoted_value): Skip > 0 comparison with
10827 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10828 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10829 of SUBREG_PROMOTED_UNSIGNED_P.
10830 (convert_modes): Likewise.
10831 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10832 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10833 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10834 SUBREG_PROMOTED_UNSIGNED_SET.
10835 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10836 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10837 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10838 SUBREG_PROMOTED_SET.
10839 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10840 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10841 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10842 of SUBREG_PROMOTED_UNSIGNED_P.
10843 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10844 (SUBREG_PROMOTED_SET): New define.
10845 (SUBREG_PROMOTED_GET): Likewise.
10846 (SUBREG_PROMOTED_SIGN): Likewise.
10847 (SUBREG_PROMOTED_SIGNED_P): Likewise.
10848 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
10849 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
10850 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
10851 instead of SUBREG_PROMOTED_UNSIGNED_GET.
10852 (nonzero_bits1): Skip > 0 comparison with the results as
10853 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
10854 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
10855 of !SUBREG_PROMOTED_UNSIGNED_P.
10856 * simplify-rtx.c (simplify_unary_operation_1): Use new
10857 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
10858 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
10859 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
10860 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
10861
10862 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
10863
10864 * ipa-devirt.c: Include gimple-pretty-print.h
10865 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
10866 further tests.
10867 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10868 (get_polymorphic_call_info): Fix return value
10869 (type_change_info): New sturcture based on ipa-prop
10870 variant.
10871 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10872 based on ipa-prop variant.
10873 (extr_type_from_vtbl_ptr_store): New function
10874 based on ipa-prop variant.
10875 (record_known_type): New function.
10876 (check_stmt_for_type_change): New function.
10877 (get_dynamic_type): New function.
10878 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10879 * tree-ssa-pre.c: ipa-utils.h
10880 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10881 machinery; sanity check with ipa-prop devirtualization.
10882 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10883 polymorphic flag.
10884
10885 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10886
10887 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10888 * alias.c, cfgexpand.c, cgraphbuild.c,
10889 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10890 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10891 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10892 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10893 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10894 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10895 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10896 dse.c, except.c, gengtype.c, gimple-expr.c,
10897 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10898 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10899 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10900 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10901 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10902 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10903 pointer-set.h.
10904 * pointer-set.c: Remove file.
10905 * pointer-set.h: Remove file.
10906
10907 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10908
10909 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
10910 * config/arm/types.md (f_sels, f_seld): Delete.
10911
10912 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10913
10914 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
10915 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
10916 (aarch64_movdi_<mode>high): Likewise.
10917 (aarch64_mov<mode>high_di): Likewise.
10918 (aarch64_movdi_<mode>low): Likewise.
10919 (aarch64_mov<mode>low_di): Likewise.
10920 (aarch64_movtilow_tilow): Likewise.
10921 Add comment explaining usage of fp,simd attributes and of
10922 TARGET_FLOAT and TARGET_SIMD.
10923
10924 2014-08-07 Ian Bolton <ian.bolton@arm.com>
10925 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10926
10927 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
10928 Use MOVN when one of the half-words is 0xffff.
10929
10930 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10931
10932 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
10933
10934 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10935
10936 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
10937 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
10938 (rfs_str): String corresponding to RFS_* constants.
10939 (rank_for_schedule_stats_t): New typedef.
10940 (rank_for_schedule_stats): New static variable.
10941 (rfs_result): New static function.
10942 (rank_for_schedule): Track statistics for deciding heuristics.
10943 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
10944 static functions.
10945 (ready_sort): Use them for debug printouts.
10946 (schedule_block): Init statistics state. Print statistics on
10947 rank_for_schedule decisions.
10948
10949 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10950
10951 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
10952
10953 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
10954
10955 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
10956 constraint.
10957
10958 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10959
10960 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
10961 function to not conflict.
10962 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
10963 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
10964 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
10965 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
10966 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
10967 of pointer_map.
10968
10969 2014-08-07 Marek Polacek <polacek@redhat.com>
10970
10971 * fold-const.c (fold_binary_loc): Add folding of
10972 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
10973
10974 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
10975
10976 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
10977 instead of type size.
10978 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10979
10980 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10981
10982 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
10983 (*thumb1_movqi_insn): Likewise.
10984 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
10985
10986 2014-08-07 Tom de Vries <tom@codesourcery.com>
10987
10988 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10989 (glibc_2_11_or_earlier): Remove effective-target keywords.
10990
10991 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10992
10993 * config/arm/arm.c (bdesc_2arg): Fix typo.
10994 (arm_atomic_assign_expand_fenv): Remove The default implementation.
10995
10996 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
10997
10998 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
10999
11000 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11001
11002 PR debug/61923
11003 * haifa-sched.c (advance_one_cycle): Fix dump.
11004 (schedule_block): Don't advance cycle if we are already at the
11005 beginning of the cycle.
11006
11007 2014-08-06 Martin Jambor <mjambor@suse.cz>
11008
11009 PR ipa/61393
11010 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11011
11012 2014-08-06 Richard Biener <rguenther@suse.de>
11013
11014 PR lto/62034
11015 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11016 SCCs here.
11017 (lto_input_tree): Pop SCCs here.
11018
11019 2014-08-06 Richard Biener <rguenther@suse.de>
11020
11021 PR tree-optimization/61320
11022 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11023 handle misaligned loads.
11024
11025 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11026
11027 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11028 (aarch64_expand_vec_perm_const): Check for dup before zip.
11029
11030 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11031
11032 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11033 CONST_INT_P instead of GET_CODE and compare.
11034 (aarch64_select_cc_mode): Likewise.
11035 (aarch64_print_operand): Likewise.
11036 (aarch64_rtx_costs): Likewise.
11037 (aarch64_simd_valid_immediate): Likewise.
11038 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11039 (aarch64_simd_emit_pair_result_insn): Likewise.
11040
11041 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11042
11043 * gdbhooks.py (find_gcc_source_dir): New helper function.
11044 (class PassNames): New class, locating and parsing passes.def.
11045 (class BreakOnPass): New command "break-on-pass".
11046
11047 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11048
11049 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11050 getting olde.
11051
11052 2014-08-05 Richard Biener <rguenther@suse.de>
11053
11054 PR rtl-optimization/61672
11055 * emit-rtl.h (mem_attrs_eq_p): Declare.
11056 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11057 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11058 * cfgcleanup.c (merge_memattrs): Likewise.
11059 Include emit-rtl.h.
11060
11061 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11062
11063 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11064 rather than singleton vectors.
11065 (vqdmlsls_lane_s32): Likewise.
11066
11067 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11068
11069 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11070 Use VSDQ_HSI mode iterator.
11071 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11072 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11073 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11074 Use BUILTIN_VDQHS macro.
11075 (sqrdmulh_laneq): Likewise.
11076 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11077 (vqdmlals_laneq_s32): Likewise.
11078 (vqdmlslh_laneq_s16): Likewise.
11079 (vqdmlsls_laneq_s32): Likewise.
11080 (vqdmulhh_laneq_s16): Likewise.
11081 (vqdmulhs_laneq_s32): Likewise.
11082 (vqrdmulhh_laneq_s16): Likewise.
11083 (vqrdmulhs_laneq_s32): Likewise.
11084
11085 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11086
11087 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11088 (vmuld_laneq_f64): Likewise.
11089 (vmuls_laneq_f32): Likewise.
11090 (vmul_n_f64): Likewise.
11091 (vmuld_lane_f64): Reimplement in C.
11092 (vmuls_lane_f32): Likewise.
11093
11094 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11095
11096 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11097 to reservation.
11098 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11099
11100 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11101
11102 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11103 (rbitsi2): Likewise.
11104 (*arm_rev): Set predicable and predicable_short_it attributes.
11105
11106 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11107
11108 * convert.c (convert_to_integer): Guard transformation to lrint by
11109 -fno-math-errno.
11110
11111 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11112
11113 * config/aarch64/aarch64-builtins.c
11114 (aarch64_simd_builtin_type_mode): Delete.
11115 (v8qi_UP): Remap to V8QImode.
11116 (v4hi_UP): Remap to V4HImode.
11117 (v2si_UP): Remap to V2SImode.
11118 (v2sf_UP): Remap to V2SFmode.
11119 (v1df_UP): Remap to V1DFmode.
11120 (di_UP): Remap to DImode.
11121 (df_UP): Remap to DFmode.
11122 (v16qi_UP):V16QImode.
11123 (v8hi_UP): Remap to V8HImode.
11124 (v4si_UP): Remap to V4SImode.
11125 (v4sf_UP): Remap to V4SFmode.
11126 (v2di_UP): Remap to V2DImode.
11127 (v2df_UP): Remap to V2DFmode.
11128 (ti_UP): Remap to TImode.
11129 (ei_UP): Remap to EImode.
11130 (oi_UP): Remap to OImode.
11131 (ci_UP): Map to CImode.
11132 (xi_UP): Remap to XImode.
11133 (si_UP): Remap to SImode.
11134 (sf_UP): Remap to SFmode.
11135 (hi_UP): Remap to HImode.
11136 (qi_UP): Remap to QImode.
11137 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11138 (VAR1): Build builtin name.
11139 (aarch64_init_simd_builtins): Remove dead code.
11140
11141 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11142
11143 * graphite-isl-ast-to-gimple.c:
11144 (set_options): New function.
11145 (scop_to_isl_ast): Add calling of set_options.
11146
11147 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11148
11149 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11150 (analyze_iv_to_split_insn): Don't initialize them.
11151 (get_ivts_expr): Removed.
11152 (allocate_basic_variable, insert_base_initialization): Use
11153 SET_SRC instead of *get_ivts_expr.
11154 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11155
11156 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11157
11158 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11159 (translate_isl_ast_for_loop): Add checking of the
11160 flag_loop_parallelize_all.
11161 (ast_build_before_for): New function.
11162 (scop_to_isl_ast): Add checking of the
11163 flag_loop_parallelize_all.
11164 * graphite-dependences.c: Move the defenition of the
11165 scop_get_dependences from graphite-optimize-isl.c to this file.
11166 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11167 (carries_deps): Add checking of the x's value.
11168 * graphite-optimize-isl.c: Move the defenition of the
11169 scop_get_dependences to graphite-dependences.c.
11170 * graphite-poly.h: Add declarations of scop_get_dependences
11171 and carries_deps.
11172
11173 2014-08-04 Rohit <rohitarulraj@freescale.com>
11174
11175 PR target/60102
11176 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11177 names.
11178 (alt_reg_names): Likewise.
11179 (rs6000_dwarf_register_span): For SPE high registers, replace
11180 dwarf register numbers with GCC hard register numbers.
11181 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11182 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11183 register number for the corresponding GCC hard register number.
11184 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11185 newly added GCC hard register numbers for SPE high registers.
11186 (DWARF_FRAME_REGISTERS): Likewise.
11187 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11188 (DWARF_FRAME_REGNUM): Likewise.
11189 (FIXED_REGISTERS): Likewise.
11190 (CALL_USED_REGISTERS): Likewise.
11191 (CALL_REALLY_USED_REGISTERS): Likewise.
11192 (REG_ALLOC_ORDER): Likewise.
11193 (enum reg_class): Likewise.
11194 (REG_CLASS_NAMES): Likewise.
11195 (REG_CLASS_CONTENTS): Likewise.
11196 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11197
11198 2014-08-04 Richard Biener <rguenther@suse.de>
11199
11200 * gimple-fold.h (gimple_fold_builtin): Remove.
11201 * gimple-fold.c (gimple_fold_builtin): Make static.
11202 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11203 fold_stmt, not gimple_fold_builtin.
11204
11205 2014-08-04 Martin Liska <mliska@suse.cz>
11206
11207 * cgraph.h (csi_end_p): Removed.
11208 (csi_next): Likewise.
11209 (csi_node): Likewise.
11210 (csi_start): Likewise.
11211 (cgraph_node_in_set_p): Likewise.
11212 (cgraph_node_set_size): Likewise.
11213 (vsi_end_p): Likewise.
11214 (vsi_next): Likewise.
11215 (vsi_node): Likewise.
11216 (vsi_start): Likewise.
11217 (varpool_node_set_size): Likewise.
11218 (cgraph_node_set_nonempty_p): Likewise.
11219 (varpool_node_set_nonempty_p): Likewise.
11220 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11221 cgraph_node_set.
11222 * ipa-inline-transform.c: Likewise.
11223 * ipa-utils.c (cgraph_node_set_new): Removed.
11224 (cgraph_node_set_add): Likewise.
11225 (cgraph_node_set_remove): Likewise.
11226 (cgraph_node_set_find): Likewise.
11227 (dump_cgraph_node_set): Likewise.
11228 (debug_cgraph_node_set): Likewise.
11229 (free_cgraph_node_set): Likewise.
11230 (varpool_node_set_new): Likewise.
11231 (varpool_node_set_add): Likewise.
11232 (varpool_node_set_remove): Likewise.
11233 (varpool_node_set_find): Likewise.
11234 (dump_varpool_node_set): Likewise.
11235 (free_varpool_node_set): Likewise.
11236 (debug_varpool_node_set): Likewise.
11237 * tree-emutls.c (struct tls_var_data):
11238 (emutls_index): Removed.
11239 (emutls_decl): Likewise.
11240 (gen_emutls_addr): Function implementation uses newly added
11241 hash_map<varpool_node *, tls_var_data>.
11242 (clear_access_vars): Likewise.
11243 (create_emultls_var): Likewise.
11244 (ipa_lower_emutls): Likewise.
11245 (reset_access): New function.
11246
11247 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11248
11249 * config/i386/i386.c (ix86_option_override_internal): Add
11250 PTA_RDRND and PTA_MOVBE for bdver4.
11251
11252 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11253 James Greenhalgh <james.greenhalgh@arm.com>
11254
11255 * doc/md.texi (clrsb): Document.
11256 (clz): Change reference to x into operand 1.
11257 (ctz): Likewise.
11258 (popcount): Likewise.
11259
11260 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11261
11262 PR target/61713
11263 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11264 move to subtarget in serial version if result is ignored.
11265
11266 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11267 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11268
11269 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11270 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11271 (sched_analyze_insn): Update use of try_group_insn to
11272 sched_macro_fuse_insns.
11273 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11274 arguments that are not conditional jumps.
11275
11276 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11277
11278 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11279 family information. Handle BTVER2 cpu with cpuid family value.
11280
11281 2014-08-04 Tom de Vries <tom@codesourcery.com>
11282
11283 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11284 (glibc_2_11_or_earlier): Document effective-target keywords.
11285
11286 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11287
11288 * ipa-devirt.c (odr_type_warn_count): Add type.
11289 (possible_polymorphic_call_targets): Set it.
11290 (ipa_devirt): Use it.
11291
11292 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11293
11294 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11295 Document.
11296 * ipa-devirt.c: Include hash-map.h
11297 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11298 (clear_speculation): Break out of ...
11299 (get_class_context): ... here; speed up handling obviously useless
11300 speculations.
11301 (odr_type_warn_count, decl_warn_count): New structures.
11302 (final_warning_record): New structure.
11303 (final_warning_records): New static variable.
11304 (possible_polymorphic_call_targets): Cleanup handling of
11305 speculative info; do not build speculation when user do not care;
11306 record info about warnings when asked for.
11307 (add_decl_warning): New function.
11308 (type_warning_cmp): New function.
11309 (decl_warning_cmp): New function.
11310 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11311 (gate): Enable pass when warnings are requested.
11312 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11313 options.
11314
11315 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11316
11317 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11318 Fix cast.
11319 (hash_map::remove): New method.
11320 (hash_map::traverse): New method.
11321 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11322 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11323 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11324 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11325 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11326 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11327 pointer_map.
11328
11329 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11330
11331 * hash-set.h: new File.
11332 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11333 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11334 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11335 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11336 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11337 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11338 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11339 varpool.c: Use hash_set instead of pointer_set.
11340
11341 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11342
11343 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11344
11345 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11346
11347 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11348 for frame access when strict_p is false.
11349
11350 2014-08-01 Renlin Li <renlin.li@arm.com>
11351 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11352
11353 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11354 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11355 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11356 Declaration.
11357 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11358 predicate.
11359 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11360 aarch64_mem_pair_offset.
11361
11362 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11363
11364 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11365 offset.
11366 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11367 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11368
11369 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11370
11371 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11372
11373 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11374
11375 PR regression/61510
11376 * cgraphunit.c (analyze_functions): Use get_create rather than get
11377 for decls which are clones of abstract functions.
11378
11379 2014-08-01 Martin Liska <mliska@suse.cz>
11380
11381 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11382 * ipa-prop.h (count_formal_params): Global function created from static.
11383 * ipa-prop.c (count_formal_params): Likewise.
11384 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11385 profiles for semantically equivalent functions.
11386 * passes.c (do_per_function): If we load body of a function
11387 during WPA, this condition should behave same.
11388 * varpool.c (ctor_for_folding): More tolerant assert for variable
11389 aliases created during WPA.
11390
11391 2014-08-01 Martin Liska <mliska@suse.cz>
11392
11393 * doc/invoke.texi (Options That Control Optimization): Documentation
11394 for -foptimize-strlen introduced. Optimization levels default options
11395 fixed.
11396
11397 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11398
11399 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11400 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11401 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11402 type to bool.
11403 * stor-layout.h (min_align_of_type): New prototype.
11404 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11405 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11406 check.
11407 * ubsan.c: Include builtins.h.
11408 (ubsan_expand_bounds_ifn): Change return type to bool,
11409 always return true.
11410 (ubsan_expand_null_ifn): Change return type to bool, change
11411 argument to gimple_stmt_iterator *. Handle both null and alignment
11412 sanitization, take type from ckind argument's type rather than
11413 first argument.
11414 (instrument_member_call): Removed.
11415 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11416 Handle both null and alignment sanitization, don't say whole
11417 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11418 call instead of 2 argument.
11419 (instrument_null): Adjust instrument_mem_ref caller. Don't
11420 instrument calls here.
11421 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11422 like SANITIZE_NULL.
11423 * stor-layout.c (min_align_of_type): New function.
11424 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11425 Or it into SANITIZE_UNDEFINED.
11426 * doc/invoke.texi (-fsanitize=alignment): Document.
11427
11428 2014-07-31 Andi Kleen <ak@linux.intel.com>
11429
11430 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11431
11432 2014-07-31 Andi Kleen <ak@linux.intel.com>
11433
11434 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11435 inchash.
11436 (vn_reference_compute_hash): Dito.
11437 (vn_nary_op_compute_hash): Dito.
11438 (vn_phi_compute_hash): Dito.
11439 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11440
11441 2014-07-31 Andi Kleen <ak@linux.intel.com>
11442
11443 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11444 Rename to inchash:add_expr_commutative. Convert to inchash.
11445 (iterative_hash_hashable_expr): Rename to
11446 inchash:add_hashable_expr. Convert to inchash.
11447 (avail_expr_hash): Dito.
11448
11449 2014-07-31 Andi Kleen <ak@linux.intel.com>
11450
11451 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11452 Convert to inchash.
11453
11454 2014-07-31 Andi Kleen <ak@linux.intel.com>
11455
11456 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11457
11458 2014-07-31 Andi Kleen <ak@linux.intel.com>
11459
11460 * Makefile.in (OBJS): Add rtlhash.o
11461 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11462 (loc_checksum): Dito.
11463 (loc_checksum_ordered): Dito.
11464 (hash_loc_operands): Dito.
11465 (hash_locs): Dito.
11466 (hash_loc_list): Dito.
11467 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11468 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11469 * rtlhash.c: New file.
11470 * rtlhash.h: New file.
11471
11472 2014-07-31 Andi Kleen <ak@linux.intel.com>
11473
11474 * inchash.h (inchash): Change inchash class to namespace.
11475 (class hash): ... Rename from inchash.
11476 (add_object): Move from macro to class template.
11477 * lto-streamer-out.c (hash_tree): Change inchash
11478 to inchash::hash.
11479 * tree.c (build_type_attribute_qual_variant): Dito.
11480 (type_hash_list): Dito.
11481 (attribute_hash_list): Dito.
11482 (iterative_hstate_expr): Rename to inchash::add_expr
11483 (build_range_type_1): Change inchash to inchash::hash
11484 and use hash::add_expr.
11485 (build_array_type_1): Dito.
11486 (build_function_type): Dito
11487 (build_method_type_directly): Dito.
11488 (build_offset_type): Dito.
11489 (build_complex_type): Dito.
11490 (make_vector_type): Dito.
11491 * tree.h (iterative_hash_expr): Dito.
11492
11493 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11494
11495 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11496
11497 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11498
11499 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11500 correct alphabetical position.
11501 (vpaddd_f64): Rewrite using builtins.
11502 (vpaddd_s64): Move to correct alphabetical position.
11503 (vpaddd_u64): New.
11504
11505 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11506
11507 PR target/61844
11508 * config/sh/sh.c (sh_legitimate_address_p,
11509 sh_legitimize_reload_address): Handle reg+reg address modes when
11510 ALLOW_INDEXED_ADDRESS is false.
11511 * config/sh/predicates.md (general_movsrc_operand,
11512 general_movdst_operand): Likewise.
11513
11514 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11515
11516 * config/aarch64/aarch64-builtins.c
11517 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11518 BYTES_BIG_ENDIAN.
11519
11520 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11521
11522 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11523 the generated mask based on BYTES_BIG_ENDIAN.
11524 (aarch64_simd_check_vect_par_cnst_half): New.
11525 * config/aarch64/aarch64-protos.h
11526 (aarch64_simd_check_vect_par_cnst_half): New.
11527 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11528 the check out to aarch64_simd_check_vect_par_cnst_half.
11529 (vect_par_cnst_lo_half): Likewise.
11530 * config/aarch64/aarch64-simd.md
11531 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11532 (move_hi_quad_<mode>): Always generate a low mask.
11533
11534 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11535
11536 * doc/invoke.texi (AVR Options): Add documentation about
11537 __AVR_DEVICE_NAME__ built-in macro.
11538
11539 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
11540
11541 PR target/61948
11542 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11543 constraints are satisfied.
11544 (<shift>di3_neon): Likewise.
11545
11546 2014-07-31 Richard Biener <rguenther@suse.de>
11547
11548 PR tree-optimization/61964
11549 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11550 by structural equality.
11551
11552 2014-07-31 Yury Gribov <y.gribov@samsung.com>
11553
11554 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11555 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11556 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11557 New enums.
11558 * gcc.c (sanitize_spec_function): Support new option.
11559 (SANITIZER_SPEC): Remove now redundant check.
11560 * opts.c (common_handle_option): Support new option.
11561 (finish_options): Check for incompatibilities.
11562 * toplev.c (process_options): Split userspace-specific checks.
11563
11564 2014-07-31 Richard Biener <rguenther@suse.de>
11565
11566 * lto-streamer.h (struct output_block): Remove global.
11567 (struct data_in): Remove labels, num_named_labels and
11568 num_unnamed_labels.
11569 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11570 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11571
11572 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
11573
11574 PR c++/60517
11575 * common.opt (-Wreturn-local-addr): Moved from c.opt.
11576 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11577 (isolate_path): New argument to avoid inserting a trap.
11578 (find_implicit_erroneous_behaviour): Handle returning the address
11579 of a local variable.
11580 (find_explicit_erroneous_behaviour): Likewise.
11581
11582 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
11583
11584 PR lto/61868
11585 * toplev.c (init_random_seed): Move piece of code never called to
11586 set_random_seed.
11587 (set_random_seed): see above.
11588
11589 2014-07-31 Tom de Vries <tom@codesourcery.com>
11590
11591 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11592
11593 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11594
11595 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11596 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11597
11598 2014-07-31 Richard Biener <rguenther@suse.de>
11599
11600 * data-streamer.h (streamer_write_data_stream): Declare here,
11601 renamed from ...
11602 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
11603 * lto-cgraph.c (lto_output_node): Adjust.
11604 (lto_output_varpool_node): Likewise.
11605 * data-streamer-out.c (streamer_string_index): Likewise.
11606 (streamer_write_data_stream, lto_append_block): Move from ...
11607 * lto-section-out.c (lto_output_data_stream,
11608 lto_append_block): ... here.
11609
11610 2014-07-30 Mike Stump <mikestump@comcast.net>
11611
11612 * configure.ac: Also check for popen.
11613 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11614 * configure: Regenerate.
11615 * config.in: Regenerate.
11616
11617 2014-07-30 Martin Jambor <mjambor@suse.cz>
11618
11619 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11620 parameter to gimple.
11621
11622 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11623
11624 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11625 address as second parameter to __tpf_eh_return routine.
11626
11627 2014-07-30 Jiong Wang <jiong.wang@arm.com>
11628
11629 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11630 Thumb2.
11631
11632 2014-07-30 Tom Tromey <tromey@redhat.com>
11633
11634 PR c/59855
11635 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11636 * doc/extend.texi (Type Attributes): Document designated_init
11637 attribute.
11638
11639 2014-07-30 Roman Gareev <gareevroman@gmail.com>
11640
11641 * graphite-isl-ast-to-gimple.c:
11642 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11643 (gcc_expression_from_isl_expression): Pass type to
11644 gcc_expression_from_isl_ast_expr_id.
11645
11646 2014-07-30 Richard Biener <rguenther@suse.de>
11647
11648 * lto-streamer.h (lto_write_data): New function.
11649 * langhooks.c (lhd_append_data): Do not free block.
11650 * lto-section-out.c (lto_write_data): New function writing
11651 raw data to the current section.
11652 (lto_write_stream): Adjust for langhook semantic change.
11653 (lto_destroy_simple_output_block): Write header directly.
11654 * lto-opts.c (lto_write_options): Write options directly.
11655 * lto-streamer-out.c (produce_asm): Write heaeder directly.
11656 (lto_output_toplevel_asms): Likewise.
11657 (copy_function_or_variable): Copy data directly.
11658 (write_global_references): Output index table directly.
11659 (lto_output_decl_state_refs): Likewise.
11660 (write_symbol): Write data directly.
11661 (produce_symtab): Adjust.
11662 (produce_asm_for_decls): Output header and refs directly.
11663
11664 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11665
11666 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11667 to speculative_targets
11668 (get_class_context): Fix handling of contextes without outer type;
11669 avoid matching non-polymorphic types in LTO.
11670 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11671 parameter to speculative_targetsp; handle speculation.
11672 (dump_possible_polymorphic_call_targets): Update dumping.
11673
11674 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11675
11676 * common.opt (Wodr): Enable by default.
11677
11678 2014-07-29 Olivier Hainque <hainque@adacore.com>
11679
11680 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11681
11682 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
11683
11684 PR bootstrap/61914
11685 * gengtype.c (strtoken): New function.
11686 (create_user_defined_type): Replace strtok with strtoken.
11687
11688 2014-07-29 Nathan Sidwell <nathan@acm.org>
11689
11690 * gcov-io.c (gcov_var): Make hidden.
11691 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11692 (gcov_do_dump): Declare.
11693 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11694
11695 2014-07-29 Martin Jambor <mjambor@suse.cz>
11696
11697 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11698 parameter to gimple.
11699 (sra_modify_assign): Likewise.
11700
11701 2014-07-29 Richard Biener <rguenther@suse.de>
11702
11703 PR middle-end/52478
11704 * expr.c (expand_expr_real_2): Revert last change.
11705
11706 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11707
11708 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11709 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11710 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11711 call.
11712 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11713 (contains_type_p): Forward declare.
11714 (polymorphic_call_target_hasher::hash): Hash speculative info.
11715 (polymorphic_call_target_hasher::equal): Compare speculative info.
11716 (get_class_context): Handle speuclation.
11717 (contains_type_p): Update.
11718 (get_polymorphic_call_info_for_decl): Update.
11719 (walk_ssa_copies): Break out from ...
11720 (get_polymorphic_call_info): ... here; set speculative context
11721 before giving up.
11722 * ipa-prop.c (ipa_write_indirect_edge_info,
11723 ipa_read_indirect_edge_info): Stream speculative context.
11724 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11725 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11726 SPECULATIVE_MAYBE_DERIVED_TYPE).
11727 (possible_polymorphic_call_targets overriders): Update.
11728 (dump_possible_polymorphic_call_targets overriders): Update.
11729 (dump_possible_polymorphic_call_target_p overriders): Update.
11730
11731 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11732
11733 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11734 ipa-devirt path; fix thinko there.
11735
11736 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
11737
11738 * config/i386/i386.c (ix86_return_in_memory): Replace one
11739 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11740
11741 2014-07-28 Marek Polacek <polacek@redhat.com>
11742
11743 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
11744
11745 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
11746
11747 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11748 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11749 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11750 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11751 (USE_LD_AS_NEEDED): Likewise.
11752 (ASM_APP_ON): Likewise.
11753 (ASM_APP_OFF): Likewise.
11754 (TARGET_POSIX_IO): Likewise.
11755 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11756 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11757 (USE_LD_AS_NEEDED): Likewise.
11758 (ASM_APP_ON): Likewise.
11759 (ASM_APP_OFF): Likewise.
11760 (TARGET_POSIX_IO): Likewise.
11761
11762 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
11763
11764 PR middle-end/61734
11765 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11766 operators other than the equality operators.
11767
11768 2014-07-28 Richard Biener <rguenther@suse.de>
11769
11770 PR middle-end/52478
11771 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11772 sure to register SImode ones, not only >= word_mode ones.
11773 * expr.c (expand_expr_real_2): When expanding -ftrapv
11774 binops do not use OPTAB_LIB_WIDEN.
11775
11776 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
11777
11778 PR middle-end/61919
11779 * tree-outof-ssa.c (insert_partition_copy_on_edge)
11780 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11781 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11782 inserting them in the insn stream.
11783
11784 2014-07-28 Marek Polacek <polacek@redhat.com>
11785
11786 PR middle-end/61913
11787 * common.opt (Wodr): Add Var.
11788
11789 2014-07-28 Richard Biener <rguenther@suse.de>
11790
11791 PR tree-optimization/61921
11792 * tree-ssa-structalias.c (create_variable_info_for_1): Check
11793 if there is a varpool node before dereferencing it.
11794
11795 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11796
11797 * graphite-sese-to-poly.c:
11798 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11799 id of the pbb), which contains pointer to the pbb1.
11800
11801 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11802
11803 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11804
11805 * graphite-isl-ast-to-gimple.c:
11806 (graphite_create_new_guard): New function.
11807 (translate_isl_ast_node_if): New function.
11808 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11809
11810 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11811
11812 2014-07-27 Anthony Green <green@moxielogic.com>
11813
11814 * config.gcc: Add moxie-*-moxiebox* configuration.
11815 * config/moxie/moxiebox.h: New file.
11816
11817 2014-07-26 Andrew Pinski <apinski@cavium.com>
11818
11819 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11820 from the read only register.
11821
11822 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11823
11824 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11825 as the allocation class if it isn't likely to be spilled.
11826
11827 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11828
11829 * rtl.h (tls_referenced_p): Declare.
11830 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11831 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11832 (mips_cannot_force_const_mem): Use tls_referenced_p.
11833 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11834 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11835 instead of pa_tls_referenced_p.
11836 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11837 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11838 (pa_legitimate_constant_p): Likewise.
11839 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11840 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11841 (rs6000_cannot_force_const_mem, rs6000_emit_move)
11842 (rs6000_address_for_altivec): Use tls_referenced_p instead of
11843 rs6000_tls_referenced_p.
11844 (rs6000_tls_symbol_ref_1): Delete.
11845
11846 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
11847
11848 PR target/44551
11849 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
11850 Optimize inverse of a VEC_CONCAT.
11851
11852 2014-07-25 Xinliang David Li <davidxl@google.com>
11853
11854 * params.def: New parameter.
11855 * coverage.c (get_coverage_counts): Check new flag.
11856 (coverage_compute_profile_id): Check new flag.
11857 (coverage_begin_function): Check new flag.
11858 (coverage_end_function): Check new flag.
11859 * value-prof.c (coverage_node_map_initialized_p): New function.
11860 (init_node_map): Populate map with all functions.
11861 * doc/invoke.texi: Document new parameter.
11862
11863 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
11864 Richard Biener <rguenther@suse.de>
11865
11866 * lto-streamer-out.c (struct sccs): Turn to ...
11867 (class DFS): ... this one; refactor the DFS walk so it can
11868 be re-done on per-SCC basis.
11869 (DFS::DFS): New constructor.
11870 (DFS::~DFS): New destructor.
11871 (hash_tree): Add new MAP argument holding in-SCC hash values;
11872 remove POINTER_TYPE hashing hack.
11873 (scc_entry_compare): Rename to ...
11874 (DFS::scc_entry_compare): ... this one.
11875 (hash_scc): Rename to ...
11876 (DFS::hash_scc): ... this one; pass output_block instead
11877 of streamer_cache; work harder to get unique and stable SCC
11878 hashes.
11879 (DFS_write_tree): Rename to ...
11880 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11881 (lto_output_tree): Update.
11882
11883 2014-07-25 Andi Kleen <ak@linux.intel.com>
11884
11885 * lto-streamer-out.c (hash_tree): Convert to inchash.
11886
11887 2014-07-25 Andi Kleen <ak@linux.intel.com>
11888
11889 * tree.c (build_type_attribute_qual_variant): Use inchash.
11890 (type_hash_list): Dito.
11891 (attribute_hash_list): Dito
11892 (iterative_hstate_expr): Dito.
11893 (iterative_hash_expr): Dito.
11894 (build_range_type_1): Dito.
11895 (build_array_type_1): Dito.
11896 (build_function_type): Dito.
11897 (build_method_type_directly): Dito.
11898 (build_offset_type): Dito.
11899 (build_complex_type): Dito.
11900 (make_vector_type): Dito.
11901 * tree.h (iterative_hash_expr): Add compat wrapper.
11902 (iterative_hstate_expr): Add.
11903
11904 2014-07-25 Andi Kleen <ak@linux.intel.com>
11905
11906 * Makefile.in (OBJS): Add inchash.o.
11907 (PLUGIN_HEADERS): Add inchash.h.
11908 * ipa-devirt.c: Include inchash.h.
11909 * lto-streamer-out.c: Dito.
11910 * tree-ssa-dom.c: Dito.
11911 * tree-ssa-pre.c: Dito.
11912 * tree-ssa-sccvn.c: Dito.
11913 * tree-ssa-tail-merge.c: Dito.
11914 * asan.c: Dito.
11915 * tree.c (iterative_hash_hashval_t): Move to ...
11916 (iterative_hash_host_wide_int): Move to ...
11917 * inchash.c: Here. New file.
11918 * tree.h (iterative_hash_hashval_t): Move to ...
11919 (iterative_hash_host_wide_int): Move to ...
11920 * inchash.h: Here. New file.
11921
11922 2014-07-25 Richard Biener <rguenther@suse.de>
11923
11924 PR middle-end/61762
11925 PR middle-end/61894
11926 * fold-const.c (native_encode_int): Add and handle offset
11927 parameter to do partial encodings of expr.
11928 (native_encode_fixed): Likewise.
11929 (native_encode_real): Likewise.
11930 (native_encode_complex): Likewise.
11931 (native_encode_vector): Likewise.
11932 (native_encode_string): Likewise.
11933 (native_encode_expr): Likewise.
11934 * fold-const.c (native_encode_expr): Add offset parameter
11935 defaulting to -1.
11936 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
11937 (fold_ctor_reference): Handle all reads from tcc_constant
11938 ctors.
11939
11940 2014-07-25 Richard Biener <rguenther@suse.de>
11941
11942 * tree-inline.c (estimate_move_cost): Mark speed_p argument
11943 as possibly unused.
11944
11945 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11946
11947 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
11948
11949 2014-07-24 Kyle McMartin <kyle@redhat.com>
11950
11951 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
11952
11953 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11954
11955 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
11956 Add prototype.
11957 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
11958 function.
11959 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
11960 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11961 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
11962
11963 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11964
11965 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
11966 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
11967 aggregate types. Instead, *all* aggregate types, except for single-
11968 element or homogeneous float/vector aggregates, are quadword-aligned
11969 if required by their type alignment. Issue -Wpsabi note when a type
11970 is now treated differently than before.
11971
11972 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11973
11974 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
11975 does not fit fully into floating-point registers, and there is still
11976 space in the register parameter area, use GPRs to pass those parts
11977 of the argument. Issue -Wpsabi note if any parameter is now treated
11978 differently than before.
11979 (rs6000_arg_partial_bytes): Update.
11980
11981 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
11982
11983 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
11984
11985 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11986
11987 * rtl.h (target_rtl): Remove lang_dependent_initialized.
11988 * toplev.c (initialize_rtl): Don't use it. Move previously
11989 "language-dependent" calls to...
11990 (backend_init): ...here.
11991 (lang_dependent_init_target): Don't set lang_dependent_initialized.
11992 Assert that RTL initialization hasn't happend yet.
11993
11994 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11995
11996 PR rtl-optimization/61629
11997 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
11998 they have already been initialized.
11999
12000 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12001
12002 PR middle-end/61268
12003 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12004 DECL_INCOMING_RTL and entry_parm.
12005 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12006 * calls.c (load_register_parameters): Likewise argument values.
12007 (emit_library_call_value_1, store_one_arg): Likewise argument
12008 save areas.
12009 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12010 stack slot.
12011 * explow.c (validize_mem): Modify the argument in-place.
12012
12013 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12014
12015 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12016 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12017
12018 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12019
12020 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12021 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12022
12023 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12024
12025 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12026 (aarch64_save_callee_saves): New parameter "skip_wb".
12027 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12028
12029 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12030
12031 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12032 "wb_candidate2".
12033 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12034
12035 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12036
12037 * graphite-isl-ast-to-gimple.c:
12038 (graphite_create_new_loop): Add calling of isl_id_free to properly
12039 decrement reference counts.
12040
12041 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12042
12043 2014-07-24 Martin Liska <mliska@suse.cz>
12044 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12045 function used.
12046 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12047 (rs6000_code_end): Likewise.
12048
12049 2014-07-24 Martin Liska <mliska@suse.cz>
12050
12051 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12052 symtab_node funtion used.
12053 (rs6000_xcoff_declare_object_name): Likewise.
12054
12055 2014-07-24 Martin Liska <mliska@suse.cz>
12056
12057 * cgraphunit.c (compile): Correct function used.
12058
12059 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12060
12061 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12062 as non-indexable.
12063
12064 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12065
12066 PR lto/61802
12067 * varasm.c (bss_initializer_p): Handle offlined ctors.
12068 (align_variable, get_variable_align): Likewise.
12069 (make_decl_one_only): Likewise.
12070 (default_binds_local_p_1): Likewise.
12071 (decl_binds_to_current_def_p): Likewise.
12072 (get_variable_section): Get constructor if it is offlined.
12073 (assemble_variable_contents): Sanity check that the caller
12074 streamed in the ctor in LTO.
12075
12076 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12077
12078 * graphite-isl-ast-to-gimple.c:
12079 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12080 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12081 isl_ast_op_pdiv_r to the different case.
12082
12083 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12084
12085 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12086
12087 PR middle-end/61876
12088 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12089 when flag_errno_math is on.
12090
12091 2014-07-24 Martin Liska <mliska@suse.cz>
12092
12093 * cgraph.h (varpool_node):
12094 (availability get_availability (void)):
12095 created from cgraph_variable_initializer_availability
12096 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12097 created from: cgraph_variable_initializer_availability
12098 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12099 (void finalize_named_section_flags (void)):
12100 created from varpool_finalize_named_section_flags
12101 (bool assemble_decl (void)): created from varpool_assemble_decl
12102 (void analyze (void)): created from varpool_analyze_node
12103 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12104 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12105 (void remove_initializer (void)): created from varpool_remove_initializer
12106 (tree get_constructor (void)): created from varpool_get_constructor
12107 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12108 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12109 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12110 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12111 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12112 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12113 (static bool output_variables (void)): created from varpool_output_variables
12114 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12115 created from varpool_extra_name_alias
12116 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12117 (static void dump_varpool (FILE *f)): created from dump_varpool
12118 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12119 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12120 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12121 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12122 (void assemble_aliases (void)): created from assemble_aliases
12123
12124 2014-07-24 Martin Liska <mliska@suse.cz>
12125
12126 * cgraph.h (symtab_node):
12127 (void register_symbol (void)): created from symtab_register_node
12128 (void remove (void)): created from symtab_remove_node
12129 (void dump (FILE *f)): created from dump_symtab_node
12130 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12131 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12132 (struct ipa_ref *add_reference (symtab_node *referred_node,
12133 enum ipa_ref_use use_type)): created from add_reference
12134 (struct ipa_ref *add_reference (symtab_node *referred_node,
12135 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12136 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12137 gimple stmt)): created from maybe_add_reference
12138 (bool semantically_equivalent_p (symtab_node *target)): created from
12139 symtab_semantically_equivalent_p
12140 (void remove_from_same_comdat_group (void)): created from
12141 remove_from_same_comdat_group
12142 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12143 symtab_add_to_same_comdat_group
12144 (void dissolve_same_comdat_group_list (void)): created from
12145 symtab_dissolve_same_comdat_group_list
12146 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12147 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12148 created from symtab_alias_ultimate_target
12149 (inline symtab_node *next_defined_symbol (void)): created from
12150 symtab_next_defined_symbol
12151 (bool resolve_alias (symtab_node *target)): created from
12152 symtab_resolve_alias
12153 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12154 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12155 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12156 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12157 (void set_section (const char *section)): created from set_section_1
12158 (enum availability get_availability (void)): created from symtab_node_availability
12159 (void make_decl_local (void)): created from symtab_make_decl_local
12160 (bool real_symbol_p (void)): created from symtab_read_node
12161 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12162 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12163 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12164 symtab_in_same_comdat_p;
12165 (bool address_taken_from_non_vtable_p (void)): created from
12166 address_taken_from_non_vtable_p
12167 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12168 (static void dump_table (FILE *)): created from dump_symtab
12169 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12170 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12171 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12172 symtab_used_from_object_file_p
12173 (void dump_base (FILE *)): created from dump_symtab_base
12174 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12175 (void unregister (void)): created from symtab_unregister_node
12176 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12177 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12178 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12179 symtab_nonoverwritable_alias_1
12180 * cgraph.h (cgraph_node):
12181 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12182 created from cgraph_remove_node_and_inline_clones
12183 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12184 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12185 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12186 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12187 created from cgraph_function_node
12188 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12189 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12190 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12191 created from cgraph_create_clone
12192 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12193 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12194 created from cgraph_create_virtual_clone
12195 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12196 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12197 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12198 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12199 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12200 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12201 created from cgraph_function_version_info
12202 (struct cgraph_function_version_info *insert_new_function_version (void)):
12203 created from insert_new_cgraph_node_version
12204 (struct cgraph_function_version_info *function_version (void)): created from
12205 get_cgraph_node_version
12206 (void analyze (void)): created from analyze_function
12207 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12208 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12209 tree real_alias) cgraph_add_thunk
12210 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12211 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12212 created from cgraph_function_or_thunk_node
12213 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12214 created from expand_thunk
12215 (void reset (void)): created from cgraph_reset_node
12216 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12217 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12218 (void remove (void)): created from cgraph_remove_node
12219 (void dump (FILE *f)): created from dump_cgraph_node
12220 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12221 (bool get_body (void)): created from cgraph_get_body
12222 (void release_body (void)): created from cgraph_release_function_body
12223 (void unnest (void)): created from cgraph_unnest_node
12224 (void make_local (void)): created from cgraph_make_node_local
12225 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12226 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12227 gcov_type count, int freq)): created from cgraph_create_edge
12228 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12229 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12230 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12231 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12232 created from cgraph_create_edge_including_clones
12233 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12234 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12235 (void remove_callers (void)): created from cgraph_node_remove_callers
12236 (void remove_callees (void)): created from cgraph_node_remove_callees
12237 (enum availability get_availability (void)): created from cgraph_function_body_availability
12238 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12239 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12240 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12241 (void call_duplication_hooks (cgraph_node *node2)): created from
12242 cgraph_call_node_duplication_hooks
12243 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12244 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12245 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12246 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12247 (void call_function_insertion_hooks (void)):
12248 created from cgraph_call_function_insertion_hooks
12249 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12250 (bool local_p (void)): created from cgraph_local_node
12251 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12252 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12253 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12254 (inline bool only_called_directly_or_aliased_p (void)):
12255 created from cgraph_only_called_directly_or_aliased_p
12256 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12257 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12258 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12259 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12260 (bool can_remove_if_no_direct_calls_p (void)):
12261 created from cgraph_can_remove_if_no_direct_calls_p
12262 (inline bool has_gimple_body_p (void)):
12263 created from cgraph_function_with_gimple_body_p
12264 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12265 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12266 (static inline void debug_cgraph (void)): created from debug_cgraph
12267 (static void record_function_versions (tree decl1, tree decl2)):
12268 created from record_function_versions
12269 (static void delete_function_version (tree decl)):
12270 created from delete_function_version
12271 (static void add_new_function (tree fndecl, bool lowered)):
12272 created from cgraph_add_new_function
12273 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12274 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12275 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12276 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12277 (static cgraph_node *get_for_asmname (tree asmname)):
12278 created from cgraph_node_for_asm
12279 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12280 created from cgraph_same_body_alias
12281 (static bool used_from_object_file_p_worker (cgraph_node *node,
12282 void *): new function
12283 (static bool non_local_p (cgraph_node *node, void *)):
12284 created from cgraph_non_local_node_p_1
12285 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12286 created from verify_cgraph
12287 (static bool make_local (cgraph_node *node, void *)):
12288 created from cgraph_make_node_local
12289 (static cgraph_node *create_alias (tree alias, tree target)):
12290 created from cgraph_create_function_alias
12291 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12292 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12293 created from cgraph_create_edge_1
12294 * cgraph.h (varpool_node):
12295 (void remove (void)): created from varpool_remove_node
12296 (void dump (FILE *f)): created from dump_varpool_node
12297
12298 2014-07-24 Richard Biener <rguenther@suse.de>
12299
12300 PR ipa/61823
12301 * tree-ssa-structalias.c (create_variable_info_for_1):
12302 Use varpool_get_constructor.
12303 (create_variable_info_for): Likewise.
12304
12305 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12306
12307 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12308 subtract outgoing area size when restoring stack_pointer_rtx.
12309
12310 2014-07-24 Nick Clifton <nickc@redhat.com>
12311
12312 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12313 that operations are taking place in parallel.
12314 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12315
12316 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12317
12318 * omp-low.c (extract_omp_for_data): Add missing break statement.
12319
12320 2014-07-24 Richard Biener <rguenther@suse.de>
12321
12322 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12323 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12324 and adjust MOVE_RATIO query accordingly.
12325 (estimate_num_insns): Adjust callers.
12326 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12327 * ipa-cp.c (gather_context_independent_values,
12328 estimate_local_effects): Likewise.
12329 * ipa-split.c (consider_split): Likewise.
12330
12331 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12332
12333 * config/i386/driver-i386.c: Remove names of unused arguments and
12334 unnecessary unused attributes.
12335 * config/i386/host-mingw32.c: Likewise.
12336 * config/i386/i386.c: Likewise.
12337 * config/i386/winnt-stubs.c: Likewise.
12338 * config/i386/winnt.c: Likewise.
12339
12340 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12341
12342 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12343 (aarch64_gen_loadwb_pair): New helper function.
12344 (aarch64_expand_epilogue): Simplify code using new helper functions.
12345 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12346
12347 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12348
12349 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12350 (aarch64_gen_storewb_pair): New helper function.
12351 (aarch64_expand_prologue): Simplify code using new helper functions.
12352 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12353
12354 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12355
12356 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12357 Rename to aarch64_save_callee_saves, remove restore code.
12358 (aarch64_restore_callee_saves): New function.
12359
12360 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12361
12362 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12363 (aarch64_save_callee_saves): New function to handle reg save
12364 for both core and vectore regs.
12365
12366 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12367
12368 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12369 (aarch64_gen_store_pair): New helper function.
12370 (aarch64_save_or_restore_callee_save_registers)
12371 (aarch64_save_or_restore_fprs): Use new helper functions.
12372
12373 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12374
12375 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12376 (aarch64_save_or_restore_callee_save_registers)
12377 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12378
12379 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12380
12381 * config/aarch64/aarch64.c
12382 (aarch64_save_or_restore_callee_save_registers)
12383 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12384
12385 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12386
12387 * config/aarch64/aarch64.c
12388 (aarch64_save_or_restore_callee_save_registers)
12389 (aarch64_save_or_restore_fprs): Remove 'increment'.
12390
12391 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12392
12393 * config/aarch64/aarch64.c
12394 (aarch64_save_or_restore_callee_save_registers)
12395 (aarch64_save_or_restore_fprs): Use register offset in
12396 cfun->machine->frame.reg_offset.
12397
12398 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12399
12400 * config/aarch64/aarch64.c
12401 (aarch64_save_or_restore_callee_save_registers)
12402 (aarch64_save_or_restore_fprs): Remove base_rtx.
12403
12404 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12405
12406 * config/aarch64/aarch64.c
12407 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12408 to 'start_offset'. Remove local variable 'start_offset'.
12409
12410 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12411
12412 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12413 type to HOST_WIDE_INT.
12414
12415 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12416
12417 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12418 (aarch64_save_or_restore_fprs)
12419 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12420
12421 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12422
12423 * config/arm/t-rtems-eabi: Add
12424 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12425 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12426 mbig-endian/mthumb/march=armv7-r, and
12427 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12428 multilibs.
12429
12430 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12431 Chris Johns <chrisj@rtems.org>
12432 Joel Sherrill <joel.sherrill@oarcorp.com>
12433
12434 * config.gcc: Add nios2-*-rtems*.
12435 * config/nios2/rtems.h: New file.
12436 * gcc/config/nios2/t-rtems: New file.
12437
12438 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12439
12440 PR target/61396
12441 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12442 constant numbers, not general constants.
12443 (rs6000_expand_vector_init): Ditto.
12444
12445 2014-07-23 Nathan Sidwell <nathan@acm.org>
12446
12447 * gcov-tool.c (gcov_list): Declare here.
12448 (set_gcov_list): Remove.
12449 (gcov_output_files): Set gcov_list directly.
12450
12451 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12452
12453 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12454
12455 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12456
12457 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12458 callee-saved registers are available for padding purpose
12459 and r3 is not mandatory, then prefer use those callee-saved
12460 instead of r3.
12461
12462 2014-07-23 Richard Biener <rguenther@suse.de>
12463
12464 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12465 * combine.c: Include statistics.h and params.h.
12466 (combine_instructions): Guard three and four insn combines
12467 with max-combine-insns value. Record statistics for combines
12468 performed.
12469 * doc/invoke.texi (max-combine-insns): Document new param.
12470
12471 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12472
12473 * graphite-isl-ast-to-gimple.c:
12474 (translate_isl_ast_node_block): New function.
12475 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12476
12477 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12478 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12479
12480 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12481
12482 * graphite-isl-ast-to-gimple.c:
12483 (get_max_schedule_dimensions): New function.
12484 (extend_schedule): Likewise.
12485 (generate_isl_schedule): Add calling of extend_schedule and
12486 get_max_schedule_dimensions.
12487
12488 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12489
12490 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12491 (case UNSPEC): Handle UNSPEC_RBIT.
12492
12493 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12494
12495 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12496 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12497
12498 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12499
12500 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12501
12502 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12503
12504 * graphite-isl-ast-to-gimple.c:
12505 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12506 (ivs_params_clear):
12507 (build_iv_mapping): New function.
12508 (translate_isl_ast_node_user): Likewise.
12509 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12510
12511 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12512 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12513 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12514
12515 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12516
12517 PR target/55701
12518 * config/arm/arm.md (setmem): New pattern.
12519 * config/arm/arm-protos.h (struct tune_params): New fields.
12520 (arm_gen_setmem): New prototype.
12521 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12522 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12523 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12524 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12525 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12526 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12527 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12528 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12529 (arm_const_inline_cost): New function.
12530 (arm_block_set_max_insns): New function.
12531 (arm_block_set_non_vect_profit_p): New function.
12532 (arm_block_set_vect_profit_p): New function.
12533 (arm_block_set_unaligned_vect): New function.
12534 (arm_block_set_aligned_vect): New function.
12535 (arm_block_set_unaligned_non_vect): New function.
12536 (arm_block_set_aligned_non_vect): New function.
12537 (arm_block_set_vect, arm_gen_setmem): New functions.
12538
12539 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12540
12541 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12542
12543 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
12544
12545 PR target/61855
12546 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12547 out of #ifdef __OPTIMIZE__.
12548
12549 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12550
12551 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12552 different trapping status if -fnon-call-exceptions is enabled.
12553
12554 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12555
12556 * expr.c (store_field): Handle VOIDmode for calls that return values
12557 in multiple locations.
12558
12559 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12560
12561 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
12562 (altivec_vsldoi_<mode>): Likewise.
12563
12564 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12565
12566 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12567 to the number of characters in the line.
12568
12569 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12570
12571 * graphite-isl-ast-to-gimple.c: Add using of
12572 build_nonstandard_integer_type instead of int128_integer_type_node.
12573
12574 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
12575
12576 * toplev.c (output_stack_usage): Adjust the location of the warning.
12577
12578 2014-07-19 Daniel Cederman <cederman@gaisler.com>
12579
12580 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12581 (*membar_storeload): Disable for LEON3.
12582
12583 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12584
12585 PR rtl-optimization/61461
12586 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12587
12588 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
12589
12590 PR target/61794
12591 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12592 Fix instruction constraint.
12593 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12594
12595 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
12596
12597 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12598
12599 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
12600
12601 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12602 GNU coding standards.
12603 (nds32_register_move_cost): Likewise.
12604 (nds32_memory_move_cost): Likewise.
12605 (nds32_address_cost): Likewise.
12606
12607 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12608
12609 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12610
12611 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
12612
12613 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12614 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12615 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12616 (HAVE_sync_compare_and_swapqi): Define.
12617 (HAVE_sync_compare_and_swaphi): Likewise.
12618 (HAVE_sync_compare_and_swapsi): Likewise.
12619
12620 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
12621
12622 * config/mips/p5600.md: Add missing cpu tests.
12623
12624 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12625
12626 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12627 (vmla_f64): Likewise.
12628 (vfms_f64): Likewise.
12629 (vmls_f64): Likewise.
12630
12631 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12632
12633 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12634 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12635
12636 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12637
12638 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12639 (vmlal_high_lane_s32): Likewise.
12640 (vmlal_high_lane_u16): Likewise.
12641 (vmlal_high_lane_u32): Likewise.
12642 (vmlsl_high_lane_s16): Likewise.
12643 (vmlsl_high_lane_s32): Likewise.
12644 (vmlsl_high_lane_u16): Likewise.
12645 (vmlsl_high_lane_u32): Likewise.
12646
12647 2014-07-17 Terry Guo <terry.guo@arm.com>
12648
12649 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12650 (alus_reg): Renamed to alus_sreg.
12651 * config/arm/arm-fixed.md: Change type of non-dsp instructions
12652 from alu_reg to alu_sreg. Change type of dsp instructions from
12653 alu_reg to alu_dsp_reg.
12654 * config/arm/thumb1.md: Likewise.
12655 * config/arm/thumb2.md: Likewise.
12656 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12657 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12658 with alu_sreg and alus_sreg.
12659 * config/arm/arm1026ejs.md (alu_op): Likewise.
12660 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12661 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12662 * config/arm/fa526.md (526_alu_op): Likewise.
12663 * config/arm/fa606te.md (606te_alu_op): Likewise.
12664 * config/arm/fa626te.md (626te_alu_op): Likewise.
12665 * config/arm/fa726te.md (726te_alu_op): Likewise.
12666 * config/arm/fmp626.md (mp626_alu_op): Likewise.
12667 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12668 alu_sreg, alu_dsp_reg and alus_sreg.
12669 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12670 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12671 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12672 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12673 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12674 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12675 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12676 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12677 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12678 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12679 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12680 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12681 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12682 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12683 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12684 alus_reg to alus_sreg.
12685
12686 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
12687
12688 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12689 infinity format.
12690
12691 2014-07-17 Richard Biener <rguenther@suse.de>
12692
12693 PR rtl-optimization/61801
12694 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12695 don't set reg_pending_barrier if it appears in a debug-insn.
12696
12697 2014-07-16 DJ Delorie <dj@redhat.com>
12698
12699 * config/rx/rx.c (rx_option_override): Fix alignment values.
12700 (rx_align_for_label): Likewise.
12701
12702 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
12703
12704 PR target/61737.
12705 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12706 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12707 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12708 functions.
12709 (cris_print_index, cris_print_operand, cris_constant_index_p)
12710 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12711 (cris_address_cost): Ditto last CONSTANT_P.
12712 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
12713 callers changed. Yield cris_offsettable_symbol for non-PIC
12714 constant symbolic expressions including labels. Yield cris_unspec
12715 for all unspecs.
12716 (cris_expand_pic_call_address): New parameter MARKERP. Set its
12717 target to pic_offset_table_rtx for calls that will likely go
12718 through PLT, const0_rtx when they can't. All callers changed.
12719 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12720 symbolic expressions to be PICified. Remove second, redundant,
12721 assert on can_create_pseudo_p returning non-zero. Use
12722 replace_equiv_address_nv, not replace_equiv_address, for final
12723 operand update.
12724 * config/cris/cris.md ("movsi"): Move variable t to pattern
12725 toplevel. Adjust assert for new cris_symbol_type member. Use
12726 CONSTANT_P instead of CONSTANT_ADDRESS_P.
12727 ("*movsi_internal") <case 9>: Make check for valid unspec operands
12728 for lapc stricter.
12729 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12730 ("call", "call_value"): Use second incoming operand as a marker
12731 for pic-offset-table-register being used.
12732 ("*expanded_call_non_v32", "*expanded_call_v32")
12733 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12734 second incoming operand to CALL, match cris_call_type_marker.
12735 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
12736 ("*expanded_call_side"): Ditto. Fix typo in comment.
12737 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12738 CONSTANT_P.
12739 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12740 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12741 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
12742 users changed. Add members cris_offsettable_symbol and cris_unspec.
12743 (cris_symbol_type): Rename from cris_pic_symbol_type.
12744 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12745 just CONSTANT_P.
12746 * config/cris/cris-protos.h (cris_symbol_type_of,
12747 cris_expand_pic_call_address): Adjust prototypes.
12748 (cris_legitimate_constant_p): New prototype.
12749
12750 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12751 an existing tmake_file. Don't add t-slibgcc and t-linux.
12752
12753 2014-07-17 Jason Merrill <jason@redhat.com>
12754
12755 PR c++/61623
12756 * symtab.c (symtab_remove_from_same_comdat_group): Also
12757 set_comdat_group to NULL_TREE.
12758 (verify_symtab): Fix diagnostic.
12759
12760 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
12761
12762 PR target/61662
12763 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12764
12765 2014-07-16 Dodji Seketeli <dodji@redhat.com>
12766
12767 Support location tracking for built-in macro tokens
12768 * input.h (is_location_from_builtin_token): New function declaration.
12769 * input.c (is_location_from_builtin_token): New function definition.
12770 * toplev.c (general_init): Tell libcpp what the pre-defined
12771 spelling location for built-in tokens is.
12772
12773 2014-07-16 Jakub Jelinek <jakub@redhat.com>
12774
12775 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12776 on the FUNCTION_DECL.
12777
12778 2014-07-16 Richard Biener <rguenther@suse.de>
12779
12780 PR other/61782
12781 * doc/extend.texi (always_inline): Clarify.
12782
12783 2014-07-15 Eric Christopher <echristo@gmail.com>
12784
12785 * doc/invoke.texi (Link Options): Document -z option.
12786
12787 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
12788
12789 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12790 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12791
12792 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
12793
12794 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12795
12796 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
12797
12798 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12799 varpool_assemble_decl.
12800 * varpool.c (varpool_assemble_decl): Assert that node->definition is
12801 true.
12802
12803 2014-07-15 Michael Matz <matz@suse.de>
12804
12805 PR rtl-optimization/61772
12806 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12807
12808 2014-07-15 Richard Biener <rguenther@suse.de>
12809
12810 * opts.c (default_options_table): Disable bit-ccp at -Og.
12811
12812 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12813
12814 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12815
12816 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12817
12818 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12819 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12820 call langhook for unknown declaration.
12821 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12822 * tree.h (DECL_ARGUMENTS): Update.
12823 * print-tree.c (print_node): Update.
12824 * tree-core.h (tree_decl_non_common): Remove arguments.
12825 (tree_function_decl): Add arguments.
12826
12827 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
12828
12829 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12830
12831 2014-07-14 Richard Biener <rguenther@suse.de>
12832
12833 PR tree-optimization/61779
12834 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12835 simplifying a condition.
12836
12837 2014-07-14 Richard Biener <rguenther@suse.de>
12838
12839 * builtins.c (c_strlen): Make only_value == 2 really only
12840 affect warning generation.
12841
12842 2014-07-14 Richard Biener <rguenther@suse.de>
12843
12844 PR tree-optimization/61757
12845 PR tree-optimization/61783
12846 PR tree-optimization/61787
12847 * tree-ssa-dom.c (record_equality): Revert canonicalization
12848 change and add comment.
12849 (propagate_rhs_into_lhs): Revert previous fix, removing
12850 loop depth restriction again.
12851
12852 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12853
12854 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
12855 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12856 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12857 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
12858 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12859 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12860 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12861
12862 2014-07-14 Richard Biener <rguenther@suse.de>
12863
12864 * cgraph.h (decl_in_symtab_p): Make inline.
12865
12866 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12867
12868 PR middle-end/61294
12869 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12870
12871 PR target/61656
12872 * config/i386/i386.c (classify_argument): Don't merge classes above
12873 number of words.
12874
12875 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12876
12877 * cgraph.h (symtab_node): Add nonzero_address.
12878 (decl_in_symtab_p): Break out from ...
12879 (symtab_get_node): ... here.
12880 * fold-const.c: Include cgraph.h
12881 (tree_single_nonzero_warnv_p): Use symtab to determine
12882 if symbol is non-zero.
12883 * symtab.c (symtab_node::nonzero_address): New method.
12884
12885 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12886
12887 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12888 forgotten in previous commit.
12889
12890 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12891
12892 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12893 on builtin types.
12894 * ipa-devirt.c: Include stor-layout.h and intl.h
12895 (odr_subtypes_equivalent_p): New function.
12896 (warn_odr): New function.
12897 (warn_type_mismatch): New function.
12898 (odr_types_equivalent_p): New function.
12899 (add_type_duplicate): Use it.
12900 * common.opt (Wodr): New flag.
12901 * doc/invoke.texi (Wodr): Document new warning.
12902
12903 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12904
12905 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12906 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12907 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
12908 (varpool_get_constructor): Push CTORS_IN timevar.
12909 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
12910
12911 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
12912
12913 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
12914 Remove VOID_FTYPE_PUSHORT.
12915 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
12916 Change code to USHORT_FTYPE_VOID.
12917 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
12918 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
12919 (ix86_atomic_assign_expand_fenv): Update for
12920 __builtin_ia32_fnstsw changes.
12921 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
12922 (fnstsw): Change operand 0 to nonimmediate operand.
12923
12924 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12925
12926 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
12927 (varpool_get_constructor): New function.
12928 (varpool_ctor_useable_for_folding_p): Break out from ...
12929 (ctor_for_folding): ... here; use varpool_get_constructor.
12930 (varpool_assemble_decl): Likewise.
12931 * lto-streamer.h (struct output_block): Turn cgraph_node
12932 to symbol filed.
12933 (lto_input_variable_constructor): Declare.
12934 * ipa-visibility.c (function_and_variable_visibility): Use
12935 varpool_get_constructor.
12936 * cgraph.h (varpool_get_constructor): Declare.
12937 (varpool_ctor_useable_for_folding_p): New function.
12938 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
12939 parameter; return error_mark_node for non-trivial constructors.
12940 (lto_write_tree_1, DFS_write_tree): Update use of
12941 get_symbol_initial_value.
12942 (output_function): Update initialization of symbol.
12943 (output_constructor): New function.
12944 (copy_function): Rename to ..
12945 (copy_function_or_variable): ... this one; handle vars too.
12946 (lto_output): Output variable sections.
12947 * lto-streamer-in.c (input_constructor): New function.
12948 (lto_read_body): Rename from ...
12949 (lto_read_body_or_constructor): ... this one; handle vars too.
12950 (lto_input_variable_constructor): New function.
12951 * ipa-prop.c (ipa_prop_write_jump_functions,
12952 ipa_prop_write_all_agg_replacement): Update.
12953 * lto-cgraph.c (compute_ltrans_boundary): Use it.
12954 (output_cgraph_opt_summary): Set symbol to NULL.
12955
12956 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12957
12958 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
12959 non-polymorphic types.
12960 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
12961 * ipa-devirt.c (types_same_for_odr): Do not explode when one
12962 of types is not polymorphic.
12963
12964 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
12965
12966 * lra-constraints.c (remove_inheritance_pseudos): Process
12967 destination pseudo too.
12968
12969 2014-07-11 Rong Xu <xur@google.com>
12970
12971 * gcov-tool.c (gcov_output_files): Fix build error introduced in
12972 commit r212448.
12973
12974 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12975
12976 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
12977 * config/avr/avr-devices.c (AVR_MCU): Same.
12978 (avr_mcu_types): add text start value to end of device list.
12979 * config/avr/avr-mcus.def: Add text section start for all devices.
12980 (ata5782): Add new avr5 device.
12981 (ata5831): Same.
12982 * config/avr/avr-tables.opt: Regenerate.
12983 * config/avr/avr.h: Add declaration for text section start handler.
12984 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
12985 SPEC functions.
12986 (LINK_SPEC): Include text section start handler to linker spec.
12987 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
12988 pass -Ttext option to linker if the text section start for the device
12989 is not zero.
12990 * config/avr/t-multilib: Regenerate.
12991 * doc/avr-mmcu.texi: Regenerate.
12992
12993 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
12994
12995 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
12996 * config/rs6000/aix52.h (LINK_SPEC): Same.
12997 * config/rs6000/aix53.h (LINK_SPEC): Same.
12998 * config/rs6000/aix61.h (LINK_SPEC): Same.
12999 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13000
13001 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13002
13003 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13004 (graphite_verify): New function.
13005 (ivs_params_clear): New function.
13006 (gcc_expression_from_isl_ast_expr_id): New function.
13007 (gcc_expression_from_isl_expr_int): New function.
13008 (binary_op_to_tree): New function.
13009 (ternary_op_to_tree): New function.
13010 (unary_op_to_tree): New function.
13011 (nary_op_to_tree): New function.
13012 (gcc_expression_from_isl_expr_op): New function.
13013 (gcc_expression_from_isl_expression): New function.
13014 (graphite_create_new_loop): New function.
13015 (translate_isl_ast_for_loop): New function.
13016 (get_upper_bound): New function.
13017 (graphite_create_new_loop_guard): New function.
13018 (translate_isl_ast_node_for): New function.
13019 (translate_isl_ast): New function.
13020 (add_parameters_to_ivs_params): New function.
13021 (scop_to_isl_ast): New parameter ip.
13022 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13023
13024 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13025
13026 * config/xtensa/predicates.md (call expander): Update for
13027 DECL_SECTION_NAME being string.
13028
13029 2014-07-11 Richard Biener <rguenther@suse.de>
13030
13031 PR middle-end/61473
13032 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13033 can be implemented with a single load followed by a single store.
13034 (c_strlen): Only warn when only_value is not 2.
13035
13036 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13037
13038 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13039
13040 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13041
13042 PR target/61561
13043 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13044 (*movhi_bytes): Likewise.
13045 (*arm_movqi_insn): Likewise.
13046
13047 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13048
13049 PR target/56858
13050 * config/alpha/alpha.c: Include tree-pass.h, context.h
13051 and pass_manager.h.
13052 (pass_data_handle_trap_shadows): New pass.
13053 (pass_handle_trap_shadows::gate): New pass gate function.
13054 (make_pass_handle_trap_shadows): New function.
13055 (rest_of_handle_trap_shadows): Ditto.
13056
13057 (alpha_align_insns_1): Rename from alpha_align_insns.
13058 (pass_data_align_insns): New pass.
13059 (pass_align_insns::gate): New pass gate function.
13060 (make_pass_aling_insns): New function.
13061 (rest_of_align_insns): Ditto.
13062 (alpha_align_insns): Ditto.
13063
13064 (alpha_option_override): Declare handle_trap_shadows info
13065 and align_insns_info. Register handle_trap_shadows and align_insns
13066 passes here.
13067 (alpha_reorg): Do not call alpha_trap_shadows and
13068 alpha_align_insn from here.
13069
13070 (alpha_pad_function_end): Do not skip BARRIERs.
13071
13072 2014-07-10 Rong Xu <xur@google.com>
13073
13074 Add gcov-tool: an offline gcda profile processing tool support.
13075 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13076 (gcov_is_error): Ditto.
13077 (gcov_read_string): Ditto.
13078 (gcov_read_sync): Ditto.
13079 * gcov-io.h: Move counter defines to gcov-counter.def.
13080 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13081 * coverage.c: Ditto.
13082 * gcov-tool.c: Offline gcda profile processing tool.
13083 (unlink_gcda_file): Remove one gcda file.
13084 (unlink_profile_dir): Remove gcda files from the profile path.
13085 (gcov_output_files): Output gcda files to an output dir.
13086 (profile_merge): Merge two profiles in directory.
13087 (print_merge_usage_message): Print merge usage.
13088 (merge_usage): Print merge usage and exit.
13089 (do_merge): Driver for profile merge sub-command.
13090 (profile_rewrite): Rewrite profile.
13091 (print_rewrite_usage_message): Print rewrite usage.
13092 (rewrite_usage): Print rewrite usage and exit.
13093 (do_rewrite): Driver for profile rewrite sub-command.
13094 (print_usage): Print gcov-info usage and exit.
13095 (print_version): Print gcov-info version.
13096 (process_args): Process arguments.
13097 (main): Main routine for gcov-tool.
13098 * Makefile.in: Build and install gcov-tool.
13099 * gcov-counter.def: New file split from gcov-io.h.
13100 * doc/gcc.texi: Include gcov-tool.texi.
13101 * doc/gcov-tool.texi: Document for gcov-tool.
13102
13103 2014-07-10 Richard Biener <rguenther@suse.de>
13104
13105 PR tree-optimization/61757
13106 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13107 (propagate_rhs_into_lhs): Revert part of last change.
13108
13109 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13110
13111 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13112 FUNCTION_DECLs.
13113
13114 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13115
13116 PR middle-end/53590
13117 * function.c (allocate_struct_function): Revert r188667 change.
13118
13119 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13120
13121 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13122
13123 * doc/install.texi: Remove links to defunct package providers for
13124 Solaris.
13125
13126 2014-07-09 Tom de Vries <tom@codesourcery.com>
13127
13128 * final.c (get_call_fndecl): Declare.
13129 (self_recursive_call_p): New function.
13130 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13131
13132 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13133
13134 * ipa-devirt.c (record_node): Walk through aliases.
13135
13136 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13137
13138 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13139
13140 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13141
13142 Revert:
13143 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13144
13145 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13146
13147 * ipa-visibility.c (function_and_variable_visibility): Remove
13148 temporary hack disabling local aliases on AIX.
13149
13150 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13151
13152 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13153 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13154
13155 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13156
13157 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13158 * rs6000/rs6000.c: Inline output of .set instruction.
13159 (declare_alias_data): New struct.
13160 (rs6000_declare_alias): New function.
13161 (rs6000_xcoff_declare_function_name): Use it.
13162 (rs6000_xcoff_declare_object_name): New function.
13163 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13164 (ASM_OUTPUT_DEF): Turn to empty definition.
13165
13166 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13167
13168 PR bootstrap/61679
13169 * hash-table.h: use hash_table::value_type instead of
13170 Descriptor::value_type in the return types of several methods.
13171
13172 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13173
13174 * tree-pass.h (pass_data): Remove has_execute member.
13175 * passes.c (execute_one_pass): Don't check pass->has_execute.
13176 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13177 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13178 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13179 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13180 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13181 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13182 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13183 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13184 gimple-low.c, gimple-ssa-isolate-paths.c,
13185 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13186 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13187 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13188 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13189 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13190 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13191 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13192 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13193 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13194 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13195 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13196 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13197 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13198 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13199 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13200 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13201 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13202 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13203 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13204 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13205 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13206 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13207 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13208 web.c: Remove initializer for pass_data::has_execute.
13209
13210 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13211
13212 * graphite-htab.h: Use hash_map instead of hash_table.
13213 * graphite-clast-to-gimple.c: Adjust.
13214 * passes.c: Use hash_map instead of hash_table.
13215 * sese.c: Likewise.
13216 * sese.h: Remove now unused code.
13217
13218 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13219
13220 PR target/61599
13221 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13222 than zero.
13223
13224 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13225
13226 PR rtl-optimization/61673
13227 * combine.c (simplify_comparison): Test just mode's sign bit
13228 in tmode rather than the sign bit and any bits above it.
13229
13230 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13231
13232 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13233 Add __isl_give to the declaration.
13234 (generate_isl_schedule): Likewise.
13235 (scop_to_isl_ast): Likewise.
13236
13237 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13238
13239 * config/arm/arm.c (cortexa5_extra_costs): New table.
13240 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13241
13242 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13243
13244 PR tree-optimization/61725
13245 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13246 range, use range_includes_zerop_p instead of integer_zerop on
13247 vr0->min, only use log2 of max if min is not negative.
13248
13249 2014-07-08 Richard Biener <rguenther@suse.de>
13250
13251 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13252 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13253 restriction on loop depth difference.
13254 (record_equality): Likewise.
13255 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13256 (loop_depth_of_name): Remove.
13257 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13258 restriction on loop depth difference.
13259 (init_copy_prop): Likewise.
13260
13261 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13262
13263 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13264 parameter.
13265 (walk_aliased_vdefs): Likewise.
13266 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13267 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13268 (detect_type_change_from_memory_writes): Check if entry was reached.
13269
13270 2014-07-08 Richard Biener <rguenther@suse.de>
13271
13272 PR tree-optimization/61681
13273 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13274 NONLOCAL inside ESCAPED.
13275
13276 2014-07-08 Richard Biener <rguenther@suse.de>
13277
13278 PR tree-optimization/61680
13279 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13280 Handle properly all read-write dependences with group accesses.
13281
13282 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13283
13284 PR tree-optimization/61576
13285 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13286 block containing reduction statement is predecessor of phi basi block.
13287
13288 2014-07-08 Marek Polacek <polacek@redhat.com>
13289
13290 PR c/60226
13291 * fold-const.c (round_up_loc): Change the parameter type.
13292 Remove assert.
13293 * fold-const.h (round_up_loc): Adjust declaration.
13294 * stor-layout.c (finalize_record_size): Check for too large types.
13295
13296 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13297
13298 * symtab.c: Include calls.h.
13299 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13300
13301 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13302
13303 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13304 little-endian code generation.
13305 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13306 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13307 (spe_evmergehilo): Rename to...
13308 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13309 (spe_evmergelo): Rename to...
13310 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13311 (spe_evmergelohi): Rename to...
13312 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13313 (spe_evmergehi, spe_evmergehilo): New expanders.
13314 (spe_evmergelo, spe_evmergelohi): Likewise.
13315 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13316 (*frob_tf_ti): Likewise.
13317 (*frob_<mode>_di_2): Likewise.
13318 (*frob_tf_di_8_2): Likewise.
13319 (*frob_di_<mode>): Likewise.
13320 (*frob_ti_tf): Likewise.
13321 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13322 (*frob_ti_<mode>_8_2): Likewise.
13323 (*frob_ti_tf_2): Likewise.
13324 (mov_si<mode>_e500_subreg0): Rename to...
13325 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13326 endianness only.
13327 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13328 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13329 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13330 the big endianness only.
13331 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13332 (*mov_si<mode>_e500_subreg0_2): Rename to...
13333 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13334 big big endianness only.
13335 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13336 (*mov_si<mode>_e500_subreg4): Rename to...
13337 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13338 endianness only.
13339 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13340 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13341 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13342 the big endianness only.
13343 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13344 pattern.
13345 (*mov_si<mode>_e500_subreg4_2): Rename to...
13346 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13347 endianness only.
13348 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13349 (*mov_sitf_e500_subreg8): Rename to...
13350 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13351 endianness only.
13352 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13353 (*mov_sitf_e500_subreg8_2): Rename to...
13354 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13355 endianness only.
13356 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13357 (*mov_sitf_e500_subreg12): Rename to...
13358 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13359 endianness only.
13360 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13361 (*mov_sitf_e500_subreg12_2): Rename to...
13362 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13363 endianness only.
13364 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13365
13366 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13367
13368 * asan.c (instrument_strlen_call): Do not instrument first byte
13369 in strlen if already instrumented.
13370
13371 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13372
13373 * config/arm/arm.opt (mwords-little-endian): Delete.
13374 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13375 of TARGET_LITTLE_WORDS.
13376 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13377 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13378 warning.
13379 * doc/invoke.texi: Remove references to -mwords-little-endian.
13380
13381 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13382
13383 * expmed.c (struct init_expmed_rtl): Change all fields but
13384 pow2 and cint from struct rtx_def to rtx.
13385 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13386 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13387 at the end again.
13388
13389 2014-07-06 Marek Polacek <polacek@redhat.com>
13390
13391 PR c/6940
13392 * doc/invoke.texi: Document -Wsizeof-array-argument.
13393
13394 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13395
13396 * wide-int.h (wide_int_storage): Change declaration from struct
13397 to class.
13398
13399 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13400
13401 * cgraph.c (cgraph_create_indirect_edge): Update call of
13402 get_polymorphic_call_info.
13403 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13404 (possible_polymorphic_call_targets): Add parameter call.
13405 (decl_maybe_in_construction_p): New predicate.
13406 (get_polymorphic_call_info): Add parameter call;
13407 use decl_maybe_in_construction_p.
13408 * gimple-fold.c (fold_gimple_assign): Update use of
13409 possible_polymorphic_call_targets.
13410 (gimple_fold_call): Likewise.
13411 * ipa-prop.c: Inlcude calls.h
13412 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13413 (param_type_may_change_p): New predicate.
13414 (detect_type_change_from_memory_writes): Break out from ...
13415 (detect_type_change): ... this one; use param_type_may_change_p.
13416 (detect_type_change_ssa): Use param_type_may_change_p.
13417 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13418
13419 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13420
13421 PR target/49423
13422 * config/arm/arm-protos.h (arm_legitimate_address_p,
13423 arm_is_constant_pool_ref): Add prototypes.
13424 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13425 (arm_is_constant_pool_ref) New function.
13426 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13427 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13428 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13429 operand. Remove pool_range and neg_pool_range attributes.
13430 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13431 pool_range and neg_pool_range attributes.
13432 * config/arm/constraints.md (Uh): New constraint.
13433 (Uq): Don't allow constant pool references.
13434
13435 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13436
13437 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13438 (move_lo_quad_internal_be_<mode>): Likewise.
13439 (move_lo_quad_<mode>): Convert to define_expand.
13440 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13441 (aarch64_simd_move_hi_quad_be_<mode>): New.
13442 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13443 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13444 (aarch64_combinez_be<mode>): New.
13445 (aarch64_combine<mode>): Convert to define_expand.
13446 (aarch64_combine_internal<mode>): New.
13447 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13448
13449 2014-07-04 Tom de Vries <tom@codesourcery.com>
13450
13451 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13452 combination of earlyclobber and read/write modifiers.
13453
13454 2014-07-04 Tom de Vries <tom@codesourcery.com>
13455
13456 * config/aarch64/aarch64-simd.md
13457 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13458
13459 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13460
13461 PR target/61714
13462 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13463
13464 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13465
13466 PR middle-end/61654
13467 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13468
13469 PR tree-optimization/61684
13470 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13471 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13472
13473 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13474 Kito Cheng <kito@0xlab.org>
13475 Monk Chiang <sh.chiang04@gmail.com>
13476
13477 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13478 (nds32_symbol_load_store_p): Move to ...
13479 (nds32_fp_as_gp_check_available): Move to ...
13480 * config/nds32/nds32-fp-as-gp.c: ... here.
13481 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13482 extern declaration.
13483
13484 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13485 Kito Cheng <kito@0xlab.org>
13486 Monk Chiang <sh.chiang04@gmail.com>
13487
13488 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13489 (nds32_expand_store_multiple): Move to ...
13490 (nds32_expand_movmemqi): Move to ...
13491 * config/nds32/nds32-memory-manipulation.c: ... here.
13492
13493 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13494 Kito Cheng <kito@0xlab.org>
13495 Monk Chiang <sh.chiang04@gmail.com>
13496
13497 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13498 (nds32_output_casesi_pc_relative): Move to ...
13499 (nds32_output_casesi): Move to ...
13500 (nds32_mem_format): Move to ...
13501 (nds32_output_16bit_store): Move to ...
13502 (nds32_output_16bit_load): Move to ...
13503 (nds32_output_32bit_store): Move to ...
13504 (nds32_output_32bit_load): Move to ...
13505 (nds32_output_32bit_load_s): Move to ...
13506 (nds32_output_stack_push): Move to ...
13507 (nds32_output_stack_pop): Move to ...
13508 * config/nds32/nds32-md-auxiliary.c: ... here.
13509
13510 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13511 Ling-Hua Tseng <uranus@tinlans.org>
13512
13513 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13514 the purpose of this file.
13515
13516 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13517 Kito Cheng <kito@0xlab.org>
13518 Monk Chiang <sh.chiang04@gmail.com>
13519
13520 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13521 (nds32_address_cost): Move implementation to ...
13522 * config/nds32/nds32-cost.c: ... here.
13523 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13524 (nds32_address_cost_impl): Declare.
13525
13526 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13527 Kito Cheng <kito@0xlab.org>
13528 Monk Chiang <sh.chiang04@gmail.com>
13529
13530 * config/nds32/nds32.c
13531 (nds32_consecutive_registers_load_store_p): Move to ...
13532 (nds32_valid_multiple_load_store): Move to ...
13533 (nds32_valid_stack_push_pop): Move to ...
13534 (nds32_can_use_bclr_p): Move to ...
13535 (nds32_can_use_bset_p): Move to ...
13536 (nds32_can_use_btgl_p): Move to ...
13537 (nds32_can_use_bitci_p): Move to ...
13538 * config/nds32/nds32-predicates.c: ... here.
13539
13540 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13541 Kito Cheng <kito@0xlab.org>
13542 Monk Chiang <sh.chiang04@gmail.com>
13543
13544 * config/nds32/nds32.c
13545 (nds32_expand_builtin_null_ftype_reg): Move to ...
13546 (nds32_expand_builtin_reg_ftype_imm): Move to ...
13547 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13548 (nds32_init_builtins): Move implementation to ...
13549 (nds32_expand_builtin): Move implementation to ...
13550 * config/nds32/nds32-intrinsic.c: ... here.
13551 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13552 (nds32_expand_builtin_impl): Declare.
13553
13554 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13555 Kito Cheng <kito@0xlab.org>
13556 Monk Chiang <sh.chiang04@gmail.com>
13557
13558 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13559 (nds32_emit_section_tail_template): Move to ...
13560 (nds32_emit_isr_jmptbl_section): Move to ...
13561 (nds32_emit_isr_vector_section): Move to ...
13562 (nds32_emit_isr_reset_conten): Move to ...
13563 (nds32_check_isr_attrs_conflict): Move to ...
13564 (nds32_construct_isr_vectors_information): Move to ...
13565 (nds32_asm_file_start): Move implementation to ...
13566 (nds32_asm_file_end): Move implementation to ...
13567 * config/nds32/nds32-isr.c: ... here.
13568 * config/nds32/nds32-protos.h
13569 (nds32_check_isr_attrs_conflict): Declare.
13570 (nds32_construct_isr_vectors_information): Declare.
13571 (nds32_asm_file_start_for_isr): Declare.
13572 (nds32_asm_file_end_for_isr): Declare.
13573
13574 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13575 Kito Cheng <kito@0xlab.org>
13576 Monk Chiang <sh.chiang04@gmail.com>
13577
13578 * config.gcc (nds32*): Add new modules to extra_objs.
13579 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13580 (nds32be-*-*): Likewise.
13581 * config/nds32/nds32-cost.c: New file.
13582 * config/nds32/nds32-fp-as-gp.c: New file.
13583 * config/nds32/nds32-intrinsic.c: New file.
13584 * config/nds32/nds32-isr.c: New file.
13585 * config/nds32/nds32-md-auxiliary.c: New file.
13586 * config/nds32/nds32-memory-manipulation.c: New file.
13587 * config/nds32/nds32-pipelines-auxiliary.c: New file.
13588 * config/nds32/nds32-predicates.c: New file.
13589 * config/nds32/t-nds32: New file.
13590
13591 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13592
13593 PR tree-optimization/61682
13594 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13595 using cases and when one of the operands is equal to 1.
13596
13597 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
13598
13599 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13600 ashr<mode>3): Correct mode of operands[2].
13601 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13602 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13603 Correct mode of operands[2]. Fix split condition.
13604
13605 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
13606
13607 * arm.md (arch): Add armv6_or_vfpv3.
13608 (arch_enabled): Add test for the above.
13609 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13610 on VFP9.
13611 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13612
13613 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13614
13615 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13616 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13617 HWI 1 and negate the unsigned value.
13618 * expmed.c (expand_sdiv_pow2): For modes wider than word always
13619 use AND instead of shift.
13620 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13621
13622 2014-07-03 Marek Polacek <polacek@redhat.com>
13623
13624 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13625 (-fsanitize=float-divide-by-zero): Move to the table with
13626 -fsanitize=undefined suboptions.
13627 (-fsanitize=float-cast-overflow): Likewise.
13628
13629 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
13630
13631 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13632 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13633 endianness.
13634
13635 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13636
13637 * loop-invariant.c (struct invariant): Add a new member: eqno;
13638 (find_identical_invariants): Update eqno;
13639 (create_new_invariant): Init eqno;
13640 (get_inv_cost): Compute comp_cost with eqno;
13641
13642 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13643
13644 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13645 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13646 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13647 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13648 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13649
13650 2014-07-02 Christian Bruel <christian.bruel@st.com>
13651
13652 PR target/29349
13653 PR target/53513
13654 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13655 (make_preds_opaque): Delete.
13656 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13657 (commit_mode_sets): New function.
13658 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13659 Process all modes at once.
13660 * basic-block.h (pre_edge_lcm_avs): Declare.
13661 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13662 Call clear_aux_for_edges. Fix comments.
13663 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13664 (pre_edge_rev_lcm): Idem.
13665 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13666 parameter.
13667 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13668 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13669 Idem.
13670 * config/i386/i386.c (x96_emit_mode_set): Idem.
13671 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13672 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
13673 (fpscr_toggle) Disallow from delay slot.
13674 * target.def (emit_mode_set): Add prev_mode parameter.
13675 * doc/tm.texi: Regenerate.
13676
13677 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13678
13679 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13680 variable i.
13681
13682 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13683
13684 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13685 vtable_pointer_value_to_vtable): Constify.
13686 (contains_polymorphic_type_p): Declare.
13687 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13688 vtable_pointer_value_to_vtable): Constify.
13689 (contains_polymorphic_type_p): New predicate.
13690 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13691 polymorphic types.
13692 (ipa_set_ancestor_jf): Likewise.
13693 (detect_type_change): Return false in easy cases.
13694 (compute_complex_assign_jump_func): Require type to contain
13695 polymorphic type.
13696 (compute_known_type_jump_func): Likewise.
13697
13698 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13699
13700 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13701 Remove.
13702 (type_in_anonymous_namespace_p): Constify argument.
13703 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13704 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13705 (main_odr_variant): New function.
13706 (hash_type_name): Make static; update assert; do not ICE on
13707 non-records.
13708 (types_same_for_odr): Bring here from tree.c; simplify and remove
13709 old structural comparing code that doesn't work for templates.
13710 (odr_hasher::equal): Update assert.
13711 (add_type_duplicate): Return true when bases should be computed;
13712 replace incomplete loader by complete; do not output duplicated
13713 warnings; do not ICE on non-records; set odr_violated flag.
13714 (get_odr_type): Be ready to replace incomplete type by complete
13715 one; work on ODR variants instead of main variants; reorder item
13716 in array so bases have still smaller indexes.
13717 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13718 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13719
13720 2014-07-01 Cary Coutant <ccoutant@google.com>
13721
13722 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13723 lookup.
13724 (resolve_addr_in_expr): When replacing the rtx in a location list
13725 entry, get a new address table entry.
13726 (dwarf2out_finish): Call index_location_lists even if there are no
13727 addr_index_table entries yet.
13728
13729 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13730
13731 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13732 change for not being obvious.
13733
13734 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13735
13736 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13737 unused argument.
13738
13739 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13740
13741 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13742 (vcagt_f64): Likewise.
13743 (vcale_f64): Likewise.
13744 (vcaled_f64): Likewise.
13745 (vcales_f32): Likewise.
13746 (vcalt_f64): Likewise.
13747 (vcaltd_f64): Likewise.
13748 (vcalts_f32): Likewise.
13749
13750 2014-07-01 Marek Polacek <polacek@redhat.com>
13751
13752 * doc/invoke.texi: Document -Wint-conversion.
13753
13754 2014-07-01 Marek Polacek <polacek@redhat.com>
13755
13756 PR c/58286
13757 * doc/invoke.texi: Document -Wincompatible-pointer-types.
13758
13759 2014-07-01 Martin Liska <mliska@suse.cz>
13760
13761 IPA REF alias refactoring
13762 * cgraph.h (iterate_direct_aliases): New function.
13763 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13764 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13765 FOR_EACH_ALIAS added.
13766 (cgraph_for_node_and_aliases): Likewise.
13767 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13768 * ipa-inline.c (reset_edge_caches): Likewise.
13769 (update_caller_keys): Likewise.
13770 * trans-mem.c (ipa_tm_execute): Likewise.
13771 *varpool.c (varpool_analyze_node): Likewise.
13772 (varpool_for_node_and_aliases): Likewise.
13773 * ipa-ref.h (first_alias): New function.
13774 (last_alias): Likewise.
13775 (has_aliases_p): Likewise.
13776 * ipa-ref.c (ipa_ref::remove_reference): Removal function
13777 is sensitive to IPA_REF_ALIASes.
13778 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13779 are put at the beginning of the list.
13780 (symtab_node::iterate_direct_aliases): New function.
13781
13782 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13783
13784 Revert:
13785 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13786 type is complete.
13787 (write_ts_type_common_tree_pointers): Do not stream fields not set
13788 for incomplete types; do not stream duplicated fields for variants;
13789 sanity check that variant and type match.
13790 (write_ts_type_non_common_tree_pointers): Likewise.
13791 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13792 TYPE_SIZE whether type is complete.
13793 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13794 write_ts_type_common_tree_pointers
13795 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13796
13797 2014-06-30 Joseph Myers <joseph@codesourcery.com>
13798
13799 * var-tracking.c (add_stores): Return instead of asserting if old
13800 and new values for conditional store are the same.
13801
13802 2014-06-30 Richard Henderson <rth@redhat.com>
13803
13804 PR rtl-opt/61608
13805 PR target/39284
13806 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13807 the cfg if there were any changes.
13808 * passes.def: Revert move of peephole2 after reorder_blocks;
13809 move duplicate_computed_gotos before peephole2.
13810
13811 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
13812
13813 * except.c (emit_note_eh_region_end): New helper function.
13814 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13815 emit EH_REGION_END note.
13816 * jump.c (cleanup_barriers): Do not split a call and its
13817 corresponding CALL_ARG_LOCATION note.
13818
13819 2014-06-30 Jeff Law <law@redhat.com>
13820
13821 PR tree-optimization/61607
13822 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13823 deeper into the SSA_NAME_VALUE chain.
13824
13825 2014-06-30 Marek Polacek <polacek@redhat.com>
13826
13827 * convert.c (convert_to_integer): Don't instrument conversions if the
13828 function has no_sanitize_undefined attribute.
13829 * ubsan.c: Don't run the ubsan pass if the function has
13830 no_sanitize_undefined attribute.
13831
13832 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13833
13834 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13835 -fsanitize=undefined suboptions.
13836
13837 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
13838
13839 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13840 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13841 against bigendian and adjust indices.
13842
13843 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13844
13845 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
13846
13847 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
13848
13849 PR target/61633
13850 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
13851 Add alternative; make early clobber. Adjust both split patterns
13852 to use operand 0 as the working register.
13853
13854 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13855
13856 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
13857 as ira_object_id_map might be NULL, or 1.
13858
13859 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13860
13861 * loop-invariant.c (get_inv_cost): Handle register class.
13862 (gain_for_invariant): Check the register pressure of the inv
13863 and its overlapped register class, other than all.
13864
13865 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13866
13867 * doc/invoke.texi (Optimize Options): Fix descriptions of
13868 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13869
13870 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13871
13872 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13873 documentation.
13874
13875 2014-06-29 Tobias Grosser <tobias@grosser.es>
13876
13877 PR bootstrap/61650
13878 * graphite-isl-ast-to-gimple.c: Add missing guards.
13879
13880 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13881
13882 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13883 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13884 * flag-types.h: Add new enum fgraphite_generator.
13885 * graphite-isl-ast-to-gimple.c: New.
13886 * graphite-isl-ast-to-gimple.h: New.
13887 * graphite.c (graphite_transform_loops): Add choice of Graphite
13888 code generator, which depends on flag_graphite_code_gen.
13889
13890 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13891
13892 * graphite-dependences.c (subtract_commutative_associative_deps):
13893 Add NULL checking of the following variables: must_raw_no_source,
13894 may_raw_no_source, must_war_no_source, may_war_no_source,
13895 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13896 must_war, may_war, must_waw, may_waw.
13897
13898 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13899
13900 * graphite-clast-to-gimple.c: gloog is renamed to
13901 graphite_regenerate_ast_cloog. gloog_error is renamed to
13902 graphite_regenerate_error.
13903 * graphite-clast-to-gimple.h: The definition of the struct
13904 bb_pbb_def is moved to graphite-htab.h.
13905 Add inclusion of the hash-table.h.
13906 * graphite-htab.h: The declaration of the function gloog is moved
13907 to graphite-clast-to-gimple.h and renamed to
13908 graphite_regenerate_ast_cloog.
13909 * graphite.c (graphite_transform_loops): gloog is renamed
13910 to graphite_regenerate_ast_cloog.
13911
13912 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13913
13914 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13915 type is complete.
13916 (write_ts_type_common_tree_pointers): Do not stream fields not set
13917 for incomplete types; do not stream duplicated fields for variants;
13918 sanity check that variant and type match.
13919 (write_ts_type_non_common_tree_pointers): Likewise.
13920 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13921 TYPE_SIZE whether type is complete.
13922 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13923 write_ts_type_common_tree_pointers
13924 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13925
13926 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13927
13928 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
13929
13930 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13931
13932 * tree-inline.c (remap_type_1): Do not duplicate fields
13933 that are shared in between type and its main variant.
13934
13935 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13936
13937 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
13938 of the type.
13939 (ipa_set_ancestor_jf) Likewise.
13940 (check_stmt_for_type_change): Check that we work on main variant.
13941 (detect_type_change): Look into main variant.
13942 (compute_known_type_jump_func): Check that main variant has BINFO.
13943
13944 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13945
13946 * ipa-devirt.c (set_type_binfo): New function.
13947 (add_type_duplicate): Use it.
13948 (get_odr_type): Sanity check that binfos points to main variants.
13949 (get_class_context): Be sure the context's outer_type is main variant.
13950 (contains_type_p): Walk main variant.
13951 (get_polymorphic_call_info_for_decl): Set outer_type to be
13952 main variant.
13953 (get_polymorphic_call_info): Likewise.
13954 (possible_polymorphic_call_targets): Sanity check that we operate
13955 on main variant.
13956
13957 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13958
13959 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13960
13961 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13962
13963 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
13964 accidental change due to wide-int branch merge.
13965
13966 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13967
13968 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
13969 compressed debug support.
13970 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
13971 * configure: Regenerate.
13972 * config.in: Regenerate.
13973 * common.opt (compressed_debug_sections): New enum.
13974 (gz, gz=): New options.
13975 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
13976 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
13977 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
13978 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
13979 LINK_COMPRESS_DEBUG_SPEC.
13980 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
13981 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
13982 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
13983 (Debugging Options): Document -gz[=type].
13984
13985 2014-06-27 Martin Jambor <mjambor@suse.cz>
13986
13987 PR ipa/61160
13988 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
13989 args_to_skip, use those from node instead. Copy args_to_skip and
13990 combined_args_to_skip from node to the new thunk.
13991 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
13992 (cgraph_create_virtual_clone): Moved computation of
13993 combined_args_to_skip...
13994 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
13995
13996 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
13997
13998 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
13999 redundant diagnostic machinary.
14000
14001 2014-06-27 Richard Biener <rguenther@suse.de>
14002
14003 * tree-ssa-math-opts.c (bswap_replace): Fix
14004 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14005
14006 2014-06-27 Martin Liska <mliska@suse.cz>
14007
14008 * gimple.h (gimple_location_safe): New function introduced.
14009 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14010 of gimple_location_safe replaces gimple_location.
14011 (gimple_fold_call): Likewise.
14012 * ipa-devirt.c (ipa_devirt): Likewise.
14013 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14014 * ipa.c (walk_polymorphic_call_targets): Likewise.
14015 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14016
14017 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14018
14019 PR tree-optimization/57233
14020 PR tree-optimization/61299
14021 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14022 functions.
14023 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14024 would be lowered to scalar shifts, check if corresponding
14025 shifts and vector BIT_IOR_EXPR are supported and don't lower
14026 or lower just to narrower vector type in that case.
14027 * expmed.c (expand_shift_1): Fix up handling of vector
14028 shifts and rotates.
14029
14030 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14031
14032 PR target/61586
14033 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14034
14035 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14036
14037 * doc/invoke.texi (-fsemantic-interposition): Document.
14038 * common.opt (fsemantic-interposition): New flag.
14039 * varasm.c (decl_replaceable_p): Use it.
14040
14041 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14042
14043 PR target/61542
14044 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14045 extraction other than index 3.
14046
14047 2014-06-26 Teresa Johnson <tejohnson@google.com>
14048
14049 * doc/invoke.texi: Fix typo.
14050 * dumpfile.c: Add support for documented -fdump-* options
14051 optimized/missed/note/optall.
14052
14053 2014-06-26 Martin Jambor <mjambor@suse.cz>
14054
14055 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14056 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14057 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14058 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14059 * opts.c (default_options_optimization): Set
14060 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14061 * doc/invoke.texi (allow-load-data-races)
14062 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14063 (allow-store-data-races): Document the new default.
14064
14065 2014-06-26 Martin Jambor <mjambor@suse.cz>
14066
14067 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14068 renamed to ipa_impossible_devirt_target. Fix typo.
14069 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14070 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14071 ipa_impossible_devirt_target.
14072
14073 2014-06-26 Richard Biener <rguenther@suse.de>
14074
14075 PR tree-optimization/61607
14076 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14077 explaining why we restrict copies on loop depth.
14078 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14079 on loop depth.
14080 (record_equivalences_from_phis): Instead add it here.
14081
14082 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14083
14084 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14085 (LTO_WRAPPER_OBJS): New variable.
14086 (lto-wrapper$(exeext)): Use it.
14087 * collect2.c: Include "collect-utils.h".
14088 (verbose, debug): Remove variables.
14089 (at_file_supplied): No longer static.
14090 (tool_name): New variable.
14091 (do_wait, fork_execute, maybe_unlink): Don't declare.
14092 (tool_cleanup): No longer static.
14093 (notice): Remove function.
14094 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14095 fork_execute calls.
14096 (collect_wait, do_wait, collect_execute): Remove functions.
14097 (maybe_unlink): No longer static.
14098 * collect2.h (verbose, debug): Don't declare.
14099 (at_file_supplied): Declare.
14100 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14101 changed.
14102 (collect_execute): Replace with implementation from collect2, plus a
14103 new arg use_atfile. All callers changed.
14104 (collect_wait): Replace with implementation from collect2.
14105 (maybe_unlink_file): Remove function.
14106 (fork_execute): Replace with implementation from collect2, plus a
14107 new arg use_atfile. All callers changed.
14108 (do_wait): Add call to utils_cleanup to the error path.
14109 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14110 (tool_cleanup): Adjust declarations.
14111 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14112 * tlink.c: Include "collect-utils.h".
14113 (tlink_execute): New arg use_atfile. All callers changed.
14114 (tlink_init, tlink_execute): Remove declarations.
14115
14116 * collect-utils.c (save_temps): New variable.
14117 (do_wait): Use it instead of debug. Use fatal_error.
14118 * collect-utils.h (save_temps): Declare.
14119 * collect2.c (verbose): Rename from vflag. All uses changed.
14120 (tool_cleanup): New function, copied from collect_atexit.
14121 (collect_atexit, handler): Just call it.
14122 * collect2.h (verbose): Declaration renamed from vflag.
14123 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14124 debug.
14125
14126 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14127 (lto-wrapper$(exeext)): Link with collect-utils.o.
14128 * collect-utils.c: New file.
14129 * collect-utils.h: New file.
14130 * lto-wrapper.c: Include "collect-utils.h".
14131 (args_name): Delete variable.
14132 (tool_name): New variable.
14133 (tool_cleanup): New function.
14134 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14135 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14136 (fork_execute): Remove functions.
14137
14138 2014-06-26 Nick Clifton <nickc@redhat.com>
14139
14140 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14141
14142 * doc/extend.texi (Function Attributes): Fix typo in description
14143 of RX vector attribute.
14144
14145 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14146
14147 * config.gcc (supported_defaults): Error when passing either
14148 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14149
14150 2014-06-26 Richard Biener <rguenther@suse.de>
14151
14152 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14153 propagating volatile pointers.
14154
14155 2014-06-26 Richard Biener <rguenther@suse.de>
14156
14157 PR tree-optimization/61607
14158 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14159 loop if we redirected its latch edge.
14160 (thread_block_1): Do not cancel loops prematurely.
14161
14162 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14163
14164 * toplev.c (backend_init_target): Move init_emit_regs and
14165 init_regs to...
14166 (backend_init) ... here; skip ira_init_once and backend_init_target.
14167 (target_reinit) ... and here; clear
14168 this_target_rtl->lang_dependent_initialized.
14169 (lang_dependent_init_target): Clear
14170 this_target_rtl->lang_dependent_initialized;
14171 break out rtl initialization to ...
14172 (initialize_rtl): ... here; call also backend_init_target
14173 and ira_init_once.
14174 * toplev.h (initialize_rtl): New function.
14175 * function.c: Include toplev.h
14176 (init_function_start): Call initialize_rtl.
14177 * rtl.h (target_rtl): Add target_specific_initialized,
14178 lang_dependent_initialized.
14179
14180 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14181 Jakub Jelinek <jakub@redhat.com>
14182
14183 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14184
14185 2014-06-25 Tom de Vries <tom@codesourcery.com>
14186
14187 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14188
14189 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14190
14191 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14192 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14193 Issue a strict overflow warning if appropriate.
14194
14195 2014-06-25 Martin Liska <mliska@suse.cz>
14196
14197 IPA REF refactoring
14198 * Makefile.in: Removed header file (ipa-ref-inline.h).
14199 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14200 called.
14201 (cgraph_speculative_call_info): Likewise.
14202 (cgraph_for_node_thunks_and_aliases): Likewise.
14203 (cgraph_for_node_and_aliases): Likewise.
14204 (verify_cgraph_node): Likewise.
14205 * cgraph.h: Batch of IPA REF functions become member functions of
14206 symtab_node: add_reference, maybe_add_reference, clone_references,
14207 clone_referring, clone_reference, find_reference,
14208 remove_stmt_references, remove_all_references,
14209 remove_all_referring, dump_references, dump_referring,
14210 has_alias_p, iterate_reference, iterate_referring.
14211 * cgraphbuild.c (record_reference): New IPA REF function used.
14212 (record_type_list): Likewise.
14213 (record_eh_tables): Likewise.
14214 (mark_address): Likewise.
14215 (mark_load): Likewise.
14216 (mark_store): Likewise.
14217 (pass_build_cgraph_edges): Likewise.
14218 (rebuild_cgraph_edge): Likewise.
14219 (cgraph_rebuild_references): Likewise.
14220 (pass_remove_cgraph_callee_edges): Likewise.
14221 * cgraphclones.c (cgraph_clone_node): Likewise.
14222 (cgraph_create_virtual_clone): Likewise.
14223 (cgraph_materialize_clone): Likewise.
14224 (cgraph_materialize_all_clones): Likewise.
14225 * cgraphunit.c (cgraph_reset_node): Likewise.
14226 (cgraph_reset_node): Likewise.
14227 (analyze_function): Likewise.
14228 (assemble_thunks_and_aliases): Likewise.
14229 (expand_function): Likewise.
14230 * ipa-comdats.c (propagate_comdat_group): Likewise.
14231 (enqueue_references): Likewise.
14232 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14233 (create_specialized_node): Likewise.
14234 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14235 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14236 * ipa-inline.c (reset_edge_caches): Likewise.
14237 (update_caller_keys): Likewise.
14238 (execute): Likewise.
14239 * ipa-prop.c (remove_described_reference): Likewise.
14240 (propagate_controlled_uses): Likewise.
14241 (ipa_edge_duplication_hook): Likewise.
14242 (ipa_modify_call_arguments): Likewise.
14243 * ipa-pure-const.c (propagate_pure_const): Likewise.
14244 * ipa-ref-inline.h: Header file removed, functions moved
14245 to symtab_node class.
14246 * ipa-ref.c (remove_reference): New class member function.
14247 (cannot_lead_to_return): New class member function.
14248 (referring_ref_list): Likewise.
14249 (referred_ref_list): Likewise.
14250 Rest of functions moved to symtab_node class.
14251 * ipa-ref.h: New member functions remove_reference,
14252 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14253 to ipa_ref class.
14254 ipa_ref_list class has new member functions: first_reference,
14255 first_referring, clear, nreferences.
14256 * ipa-reference.c (analyze_function): New IPA REF function used.
14257 (write_node_summary_p): Likewise.
14258 (ipa_reference_write_optimization_summary): Likewise.
14259 * ipa-split.c (split_function): Likewise.
14260 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14261 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14262 (function_and_variable_visibility): Likewise.
14263 * ipa.c (has_addr_references_p): Likewise.
14264 (process_references): Argument type changed.
14265 (symtab_remove_unreachable_nodes): New IPA REF function used.
14266 (process_references): Likewise.
14267 (set_writeonly_bit): Likewise.
14268 * lto-cgraph.c: Implementation of new symtab_node member functions
14269 that uses new IPA REF functions.
14270 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14271 function used.
14272 * lto-streamer-out.c (output_symbol_p): Likewise.
14273 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14274 changed.
14275 * symtab.c: Implementation of new IPA REF API.
14276 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14277 (ipa_tm_create_version): Likewise.
14278 (ipa_tm_execute): Likewise.
14279 * tree-emutls.c (gen_emutls_addr): Likewise.
14280 * tree-inline.c (copy_bb): Likewise.
14281 (delete_unreachable_blocks_update_callgraph): Likewise.
14282 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14283 (varpool_for_node_and_aliases): Likewise.
14284
14285 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14286
14287 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14288
14289 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14290
14291 PR bootstrap/61598
14292 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14293 tree_node * instead of tree_node *.
14294 (fold): Adjust.
14295 (print_fold_checksum): Likewise.
14296 (fold_check_failed): Likewise.
14297 (debug_fold_checksum): Likewise.
14298 (fold_build1_stat_loc): Likewise.
14299 (fold_build2_stat_loc): Likewise.
14300 (fold_build3_stat_loc): Likewise.
14301 (fold_build_call_array_loc): Likewise.
14302
14303 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14304
14305 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14306 implementation with call to...
14307 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14308 function.
14309 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14310 Declare.
14311
14312 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14313
14314 PR tree-optimization/57742
14315 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14316 after replacing the statement.
14317
14318 2014-06-25 Nick Clifton <nickc@redhat.com>
14319
14320 * config/v850/v850.c (GHS_default_section_names): Change to const
14321 char * type.
14322 (GHS_current_section_names): Likewise.
14323 (v850_insert_attributes): Do not build strings, just assign the
14324 names directly. Change the type of 'chosen_section' to const
14325 char*.
14326 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14327 directly to the array entry.
14328 * config/v850/v850.h (GHS_default_section_names): Change to const
14329 char * type.
14330 (GHS_current_section_names): Likewise.
14331
14332 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14333
14334 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14335 (LANG_HOOKS_DECLS): Add it.
14336 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14337 has correct type.
14338 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14339 * langhooks.h (struct lang_hooks_for_decls): Add
14340 omp_clause_linear_ctor hook.
14341 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14342 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14343 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14344 combined simd loop use omp_clause_linear_ctor hook.
14345
14346 2014-06-24 Cong Hou <congh@google.com>
14347
14348 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14349 pattern recognition.
14350 (type_conversion_p): PROMOTION is true if it's a type promotion
14351 conversion, and false otherwise. Return true if the given expression
14352 is a type conversion one.
14353 * tree-vectorizer.h: Adjust the number of patterns.
14354 * tree.def: Add SAD_EXPR.
14355 * optabs.def: Add sad_optab.
14356 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14357 * expr.c (expand_expr_real_2): Likewise.
14358 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14359 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14360 * optabs.c (optab_for_tree_code): Likewise.
14361 * tree-cfg.c (estimate_operator_cost): Likewise.
14362 * tree-ssa-operands.c (get_expr_operands): Likewise.
14363 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14364 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14365 * doc/generic.texi: Add document for SAD_EXPR.
14366 * doc/md.texi: Add document for ssad and usad.
14367
14368 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14369
14370 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14371 qualification in cast.
14372
14373 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14374
14375 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14376 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14377 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14378 (tree_function_decl): ... here.
14379 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14380 streaming of vindex to ...
14381 (write_ts_function_decl_tree_pointers): ... here.
14382 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14383 Do not stream DECL_VINDEX.
14384 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14385
14386 2014-06-24 Catherine Moore <clm@codesourcery.com>
14387 Sandra Loosemore <sandra@codesourcery.com>
14388
14389 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14390 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14391 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14392
14393 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14394
14395 * doc/invoke.texi (Warning Options): Remove duplicated
14396 -Wmaybe-uninitialized.
14397
14398 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14399
14400 PR tree-optimization/57742
14401 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14402 (handle_builtin_malloc, handle_builtin_memset): New functions.
14403 (strlen_optimize_stmt): Call them.
14404 * passes.def: Move strlen after loop+dom but before vrp.
14405
14406 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14407
14408 PR target/61570
14409 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14410 model family 6 CPU with has_longmode never use a CPU without
14411 64-bit support.
14412
14413 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14414
14415 PR target/61570
14416 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14417 the last change.
14418
14419 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14420
14421 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14422 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14423 pointer_map.
14424 * hash-map.h: New file.
14425 * ipa-comdats.c: Use hash_map instead of pointer_map.
14426 * ipa.c: Likewise.
14427 * lto-section-out.c: Adjust.
14428 * lto-streamer.h: Replace pointer_map with hash_map.
14429 * symtab.c (verify_symtab): Likewise.
14430 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14431 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14432 * tree-streamer.h: Likewise.
14433 * tree-streamer.c: Adjust.
14434 * pointer-set.h: Remove pointer_map.
14435
14436 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14437
14438 * hash-table.h: Add a template arg to choose between storing values
14439 and storing pointers to values, and then provide partial
14440 specializations for both.
14441 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14442 should store, not the type values should point to.
14443 * tree-into-ssa.c (var_info_hasher): Likewise.
14444 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14445 * tree-complex.c: Adjust.
14446 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14447 table instead of int_tree_map *.
14448 * tree-parloops.c: Adjust.
14449 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14450 type is being stored.
14451 * tree-vectorizer.c: Adjust.
14452
14453 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14454
14455 * hash-table.h: Remove a layer of indirection from hash_table so that
14456 it contains the hash table's data instead of a pointer to the data.
14457 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14458 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14459 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14460 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14461 fold-const.c, gcse.c, ggc-common.c,
14462 gimple-ssa-strength-reduction.c, gimplify.c,
14463 graphite-clast-to-gimple.c, graphite-dependences.c,
14464 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14465 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14466 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14467 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14468 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14469 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14470 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14471 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14472 tree-ssa-live.c, tree-ssa-loop-im.c,
14473 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14474 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14475 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14476 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14477 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14478 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14479 vtable-verify.c, vtable-verify.h: Adjust.
14480
14481 2014-06-24 Richard Biener <rguenther@suse.de>
14482
14483 PR tree-optimization/61572
14484 * tree-ssa-sink.c (statement_sink_location): Do not sink
14485 loads from hard registers.
14486
14487 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14488
14489 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14490 not mentioned in clauses use private clause if the iterator is
14491 declared in #pragma omp for simd, and when adding lastprivate
14492 instead, add it to the outer #pragma omp for too. Diagnose
14493 if the variable is private in outer context. For simd collapse > 1
14494 loops, replace all iterators with temporaries.
14495 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14496 same even in collapse > 1 loops.
14497
14498 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14499 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14500 non-NULL.
14501 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14502 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14503 non-NULL.
14504 (gimplify_adjust_omp_clauses): Likewise.
14505 * omp-low.c (lower_rec_simd_input_clauses,
14506 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14507 safelen the same as safelen(1).
14508 * tree-nested.c (convert_nonlocal_omp_clauses,
14509 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14510 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14511 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14512 Fixup handling of GIMPLE_OMP_TARGET.
14513 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14514 GIMPLE_OMP_TARGET.
14515
14516 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
14517
14518 PR tree-optimization/61554
14519 * tree-ssa-propagate.c: Include "bitmap.h".
14520 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14521 properly update constructor/destructor.
14522 (substitute_and_fold_dom_walker::before_dom_children):
14523 Remove call to gimple_purge_dead_eh_edges, add bb->index to
14524 need_eh_cleaup instead.
14525 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14526 need_eh_cleanup.
14527
14528 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14529
14530 * varpool.c (dump_varpool_node): Dump used_by_single_function.
14531 * tree-pass.h (make_pass_ipa_single_use): New pass.
14532 * cgraph.h (used_by_single_function): New flag.
14533 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14534 Stream it.
14535 * passes.def (pass_ipa_single_use): Scedule.
14536 * ipa.c (BOTTOM): New macro.
14537 (meet): New function
14538 (propagate_single_user): New function.
14539 (ipa_single_use): New function.
14540 (pass_data_ipa_single_use): New pass.
14541 (pass_ipa_single_use): New pass.
14542 (pass_ipa_single_use::gate): New gate.
14543 (make_pass_ipa_single_use): New function.
14544
14545 2014-06-23 Kai Tietz <ktietz@redhat.com>
14546
14547 PR target/39284
14548 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14549 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14550
14551 2014-06-23 Richard Biener <rguenther@suse.de>
14552
14553 * tree-ssa-loop.c (gate_loop): New function.
14554 (pass_tree_loop::gate): Call it.
14555 (pass_data_tree_no_loop, pass_tree_no_loop,
14556 make_pass_tree_no_loop): New.
14557 * tree-vectorizer.c: Include tree-scalar-evolution.c
14558 (pass_slp_vectorize::execute): Initialize loops and SCEV if
14559 required.
14560 (pass_slp_vectorize::clone): New method.
14561 * timevar.def (TV_TREE_NOLOOP): New.
14562 * tree-pass.h (make_pass_tree_no_loop): Declare.
14563 * passes.def (pass_tree_no_loop): New pass group with
14564 SLP vectorizer.
14565
14566 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
14567
14568 PR target/61570
14569 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14570 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14571
14572 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14573
14574 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14575 "yes" where needed.
14576
14577 2014-06-23 Alan Modra <amodra@gmail.com>
14578
14579 PR bootstrap/61583
14580 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14581 to zero on debug statements.
14582
14583 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14584
14585 PR target/60825
14586 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14587 Ignore third operand if present by marking qualifier_internal.
14588
14589 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14590
14591 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14592 vector extension.
14593 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14594 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14595 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14596 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14597 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14598 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14599 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14600 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14601 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14602 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14603 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14604 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14605 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14606 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14607 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14608 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14609 logic in GCC vector extensions
14610
14611 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14612 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14613 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14614 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14615 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14616 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14617 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14618 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14619 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14620 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14621
14622 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14623
14624 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14625 extensions.
14626
14627 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14628 (vget_low_s64): Use __GET_LOW macro.
14629 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14630 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14631 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14632 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14633 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14634
14635 (vcombine_s64): Use GCC vector extensions; remove cast.
14636 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14637 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14638 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14639 Fix type signature; remove cast.
14640
14641 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14642
14643 PR target/60825
14644 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14645 V1DFmode.
14646 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14647 add V1DFmode
14648 (BUILTIN_VD1): New.
14649 (BUILTIN_VD_RE): Remove.
14650 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14651 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14652 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14653 variant but not df.
14654 (vreinterpretv1df*, vreinterpret*v1df): New.
14655 (vreinterpretdf*, vreinterpret*df): Remove.
14656 * config/aarch64/aarch64-simd.md (aarch64_create,
14657 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14658 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14659 (VD1): New.
14660 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14661 (vcreate_f64): Remove cast, use v1df builtin.
14662 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14663 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14664 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14665 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14666 vmov_n_f64, vst1_f64): Use gcc vector extensions.
14667 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14668 add range check using __builtin_aarch64_im_lane_boundsi.
14669 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14670 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14671 type signature, use gcc vector extensions.
14672 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14673 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14674 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14675 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14676 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14677 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14678 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14679 vreinterpret_u64_f64): Use v1df builtin not df.
14680
14681 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14682
14683 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14684 vector registers.
14685
14686 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14687
14688 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14689 priority directly.
14690
14691 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14692
14693 * loop-invariant.c (pre_check_invariant_p): New function.
14694 (find_invariant_insn): Call pre_check_invariant_p.
14695
14696 2014-06-22 Richard Henderson <rth@redhat.com>
14697
14698 PR target/61565
14699 * compare-elim.c (struct comparison): Add eh_note.
14700 (find_comparison_dom_walker::before_dom_children): Don't eliminate
14701 a redundant comparison in a different EH region. Purge EH edges if
14702 necessary.
14703
14704 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14705
14706 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14707 (var_shift): Use it.
14708 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14709 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14710 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14711 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14712 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14713 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14714 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14715 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14716 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14717 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14718 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14719 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14720 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14721 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14722 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14723 *rotldi3_internal15be): Use the new attribute. Merge register and
14724 integer alternatives.
14725
14726 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14727
14728 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14729 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14730 split, *ashrdi3_internal3 and split): Delete, merge into...
14731 (ashr<mode>3): New expander.
14732 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14733 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
14734
14735 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14736
14737 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14738 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14739 *rotldi3_internal3 and split): Delete, merge into...
14740 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14741 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
14742 Use "rotlw" extended mnemonic.
14743
14744 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14745
14746 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14747 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14748 and split, *ashldi3_internal3 and split): Delete, merge into...
14749 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14750 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
14751
14752 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14753
14754 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14755 (lshrsi3, two anonymous define_insns and define_splits,
14756 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14757 *lshrdi3_internal3 and split): Delete, merge into...
14758 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14759 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
14760
14761 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14762
14763 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14764 Remove "O" alternative.
14765
14766 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
14767
14768 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14769 (mips_move_from_gpr_cost): Likewise.
14770 (mips_register_move_cost): Update accordingly.
14771 (mips_secondary_reload_class): Remove name of in_p.
14772
14773 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
14774
14775 PR target/61503
14776 * config/i386/i386.md (x86_64_shrd, x86_shrd,
14777 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14778
14779 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14780
14781 * config/nios2/nios2.c: Include "builtins.h".
14782
14783 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14784
14785 * cgraph.h (tls_model_names): New variable.
14786 * print-tree.c (print_node): Simplify.
14787 * varpool.c (tls_model_names): New variable.
14788 (dump_varpool_node): Output tls model.
14789
14790 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14791
14792 * ipa-visibility.c (function_and_variable_visibility): Disable
14793 temporarily local aliases for some targets.
14794
14795 2014-06-20 Marek Polacek <polacek@redhat.com>
14796
14797 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14798 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14799 into SANITIZE_UNDEFINED.
14800 * doc/invoke.texi: Describe -fsanitize=bounds.
14801 * gimplify.c (gimplify_call_expr): Add gimplification of internal
14802 functions created in the FEs.
14803 * internal-fn.c: Move "internal-fn.h" after "tree.h".
14804 (expand_UBSAN_BOUNDS): New function.
14805 * internal-fn.def (UBSAN_BOUNDS): New internal function.
14806 * internal-fn.h: Don't define internal functions here.
14807 * opts.c (common_handle_option): Add -fsanitize=bounds.
14808 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14809 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14810 * tree-core.h: Define internal functions here.
14811 (struct tree_base): Add ifn field.
14812 * tree-pretty-print.c: Include "internal-fn.h".
14813 (dump_generic_node): Handle functions without CALL_EXPR_FN.
14814 * tree.c (get_callee_fndecl): Likewise.
14815 (build_call_expr_internal_loc): New function.
14816 * tree.def (CALL_EXPR): Update description.
14817 * tree.h (CALL_EXPR_IFN): Define.
14818 (build_call_expr_internal_loc): Declare.
14819 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14820 types.
14821 (ubsan_type_descriptor): Change bool parameter to enum
14822 ubsan_print_style. Adjust the code. Add handling of
14823 UBSAN_PRINT_ARRAY.
14824 (ubsan_expand_bounds_ifn): New function.
14825 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14826 (ubsan_build_overflow_builtin): Likewise.
14827 (instrument_bool_enum_load): Likewise.
14828 (ubsan_instrument_float_cast): Likewise.
14829 * ubsan.h (enum ubsan_print_style): New enum.
14830 (ubsan_expand_bounds_ifn): Declare.
14831 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
14832
14833 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
14834
14835 * config/rs6000/rs6000.md: Append `DONE' to preparation
14836 statements of `bswap' pattern splitters.
14837
14838 2014-06-20 Tom de Vries <tom@codesourcery.com>
14839
14840 * target.def (call_fusage_contains_non_callee_clobbers): Update
14841 definition.
14842 * doc/tm.texi: Regenerate.
14843
14844 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14845 Max Ostapenko <m.ostapenko@partner.samsung.com>
14846
14847 PR sanitizer/61547
14848 * asan.c (instrument_strlen_call): Fixed instrumentation of
14849 trailing byte.
14850
14851 2014-06-20 Martin Jambor <mjambor@suse.cz>
14852
14853 PR ipa/61540
14854 * ipa-prop.c (impossible_devirt_target): New function.
14855 (try_make_edge_direct_virtual_call): Use it, also instead of
14856 asserting.
14857
14858 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14859 Max Ostapenko <m.ostapenko@partner.samsung.com>
14860
14861 PR sanitizer/61530
14862 * asan.c (build_check_stmt): Add condition.
14863
14864 2014-06-20 Martin Jambor <mjambor@suse.cz>
14865
14866 PR ipa/61211
14867 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14868 expanded clones.
14869
14870 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14871
14872 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14873 Update comments.
14874 (VCONQ): Make comment more helpful.
14875 (VCON): Delete.
14876 * config/aarch64/aarch64-simd.md
14877 (aarch64_sqdmulh_lane<mode>):
14878 Use VCOND for operands 2. Update lane checking and flipping logic.
14879 (aarch64_sqrdmulh_lane<mode>): Likewise.
14880 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14881 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14882 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14883 attribute of operand 3 to VCOND.
14884 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14885 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14886 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14887 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14888 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14889 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14890 define_insn.
14891 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14892 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14893 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14894 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14895 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14896 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14897 operand to VCOND. Update lane flipping and bounds checking logic.
14898 (aarch64_sqdmlal2_lane<mode>): Likewise.
14899 (aarch64_sqdmlsl_lane<mode>): Likewise.
14900 (aarch64_sqdmull_lane<mode>): Likewise.
14901 (aarch64_sqdmull2_lane<mode>): Likewise.
14902 (aarch64_sqdmlal_laneq<mode>):
14903 Replace VCON usage with VCONQ.
14904 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14905 (aarch64_sqdmlal2_laneq<mode>): Emit
14906 aarch64_sqdmlal2_laneq<mode>_internal insn.
14907 Replace VCON with VCONQ.
14908 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
14909 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14910 (aarch64_sqdmull_laneq<mode>): Emit
14911 aarch64_sqdmull_laneq<mode>_internal insn.
14912 Replace VCON with VCONQ.
14913 (aarch64_sqdmull2_laneq<mode>): Emit
14914 aarch64_sqdmull2_laneq<mode>_internal insn.
14915 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
14916 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
14917 of 3rd argument to int16x4_t.
14918 (vqdmlalh_lane_s16): Likewise.
14919 (vqdmlslh_lane_s16): Likewise.
14920 (vqdmull_high_lane_s16): Likewise.
14921 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
14922 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
14923 (vqdmlsl_lane_s16): Likewise.
14924 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
14925 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
14926 (vqdmlals_lane_s32): Likewise.
14927 (vqdmlsls_lane_s32): Likewise.
14928 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
14929 (vqdmulls_lane_s32): Likewise.
14930 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
14931 (vqdmlsl_lane_s32): Likewise.
14932 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
14933 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
14934 (vqrdmulhh_lane_s16): Likewise.
14935 (vqdmlsl_high_lane_s16): Likewise.
14936 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
14937 (vqdmlsl_high_lane_s32): Likewise.
14938 (vqrdmulhs_lane_s32): Likewise.
14939
14940 2014-06-20 Tom de Vries <tom@codesourcery.com>
14941
14942 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
14943 get_call_reg_set_usage.
14944
14945 2014-06-20 Tom de Vries <tom@codesourcery.com>
14946
14947 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
14948 it contains all call_used_regs.
14949
14950 2014-06-20 Tom de Vries <tom@codesourcery.com>
14951
14952 * final.c (collect_fn_hard_reg_usage): Add and use variable
14953 function_used_regs.
14954
14955 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14956
14957 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
14958 (set_init_priority, get_init_priority, set_fini_priority,
14959 get_fini_priority): New methods.
14960 * tree.c (init_priority_for_decl): Remove.
14961 (init_ttree): Do not initialize init priority.
14962 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
14963 (decl_priority_info): Remove.
14964 (decl_init_priority_insert): Rewrite.
14965 (decl_fini_priority_insert): Rewrite.
14966 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
14967 tree_priority_map_marked_p): Remove.
14968 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
14969 * lto-streamer-out.c (hash_tree): Do not hash priorities.
14970 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
14971 not output priorities.
14972 (pack_ts_function_decl_value_fields): Likewise.
14973 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14974 not input priorities.
14975 (unpack_ts_function_decl_value_fields): Likewise.
14976 * symtab.c (symbol_priority_map): Declare.
14977 (init_priority_hash): Declare.
14978 (symtab_unregister_node): Unregister from priority hash, too.
14979 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
14980 New methods.
14981 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
14982 (symbol_priority_info): New function.
14983 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
14984 New methods.
14985 * tree-core.h (tree_priority_map): Remove.
14986
14987 2014-06-20 Jakub Jelinek <jakub@redhat.com>
14988
14989 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
14990 0xff to uint64_t before shifting it up.
14991
14992 2014-06-20 Julian Brown <julian@codesourcery.com>
14993 Chung-Lin Tang <cltang@codesourcery.com>
14994
14995 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
14996 TARGET_THUMB1_ONLY. Add comments.
14997
14998 2014-06-19 Tom de Vries <tom@codesourcery.com>
14999
15000 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15001 return type to void.
15002 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15003
15004 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15005
15006 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15007 as "move", from depends_on.
15008
15009 2014-06-19 Terry Guo <terry.guo@arm.com>
15010
15011 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15012 stage.
15013
15014 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15015
15016 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15017 Remove cr5.
15018 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15019
15020 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15021
15022 PR target/61550
15023 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15024 addresses here if reload in progress or completed.
15025
15026 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15027
15028 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15029 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15030 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15031 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15032 (mips_register_priority): New function that implements the target
15033 hook TARGET_REGISTER_PRIORITY.
15034 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15035 (mips_lra_p): Likewise for TARGET_LRA_P.
15036 (TARGET_REGISTER_PRIORITY): Define macro.
15037 (TARGET_SPILL_CLASS): Likewise.
15038 (TARGET_LRA_P): Likewise.
15039 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15040 classes.
15041 (REG_CLASS_NAMES): Likewise.
15042 (REG_CLASS_CONTENTS): Likewise.
15043 (BASE_REG_CLASS): Use M16_SP_REGS.
15044 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15045 New set attribute to enable alternatives depending on the register
15046 allocator used.
15047 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15048 (*lea64): Disable pattern for MIPS16.
15049 * config/mips/mips.opt (mlra): New option.
15050
15051 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15052
15053 * lra-constraints.c (base_to_reg): New function.
15054 (process_address): Use new function.
15055
15056 2014-06-18 Tom de Vries <tom@codesourcery.com>
15057
15058 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15059 * config/aarch64/aarch64.c
15060 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15061 (aarch64_emit_call_insn): New function.
15062 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15063 of emit_call_insn.
15064 * config/aarch64/aarch64.md (define_expand "call_internal")
15065 (define_expand "call_value_internal", define_expand "sibcall_internal")
15066 (define_expand "sibcall_value_internal"): New.
15067 (define_expand "call", define_expand "call_value")
15068 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15069 expand variant and aarch64_emit_call_insn.
15070
15071 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15072 Tom de Vries <tom@codesourcery.com>
15073
15074 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15075 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15076 Redefine to true.
15077 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15078 clobbers to CALL_INSN_FUNCTION_USAGE.
15079 (define_expand "sibcall_internal")
15080 (define_expand "sibcall_value_internal"): New.
15081 (define_expand "call", define_expand "call_value"): Add argument to
15082 arm_emit_call_insn.
15083 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15084 (define_expand "sibcall_value"): Use sibcall_value_internal and
15085 arm_emit_call_insn.
15086
15087 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15088
15089 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15090
15091 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15092
15093 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15094 __udivmoddi4.
15095
15096 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15097
15098 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15099 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15100 annotations. Fix DWARF information.
15101
15102 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15103
15104 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15105 __udivmoddi4, and fixups for negative operands.
15106
15107 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15108
15109 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15110
15111 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15112
15113 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15114 to __udivmoddi4.
15115
15116 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15117
15118 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15119 manipulation.
15120
15121 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15122
15123 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15124 describing register usage on function entry and exit.
15125
15126 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15127
15128 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15129 (__aeabi_ldivmod): Fix whitespace.
15130
15131 2014-06-18 Andreas Schwab <schwab@suse.de>
15132
15133 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15134 Remove blank line after @item.
15135
15136 2014-06-18 Richard Henderson <rth@redhat.com>
15137
15138 PR target/61545
15139 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15140
15141 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15142
15143 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15144 POST_MODIFY for neon loads and stores.
15145 (arm_print_operand): Output post-index register for neon loads and
15146 stores.
15147
15148 2014-06-18 Richard Biener <rguenther@suse.de>
15149
15150 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15151
15152 2014-06-18 Richard Biener <rguenther@suse.de>
15153
15154 * tree-pass.h (make_pass_dce_loop): Remove.
15155 * passes.def: Replace pass_dce_loop with pass_dce.
15156 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15157 changed free niter estimates and reset the scev cache.
15158 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15159 make_pass_dce_loop): Remove.
15160 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15161 (fini_copy_prop): Return whether something changed. Always
15162 let substitute_and_fold perform DCE and free niter estimates
15163 and reset the scev cache if so.
15164 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15165 (pass_data_copy_prop): Do not unconditionally schedule
15166 cleanup-cfg or update-ssa.
15167
15168 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15169
15170 PR tree-optimization/61518
15171 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15172 reduction var is used in reduction stmt or phi-function only.
15173
15174 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15175
15176 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15177
15178 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15179
15180 PR tree-optimization/61517
15181 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15182 whose rhs's first tree is the source expression instead of the
15183 expression itself.
15184 (find_bswap_or_nop): Likewise.
15185 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15186 gimple stmt whose rhs's first tree is the source. In the memory source
15187 case, move the stmt to be replaced close to one of the original load to
15188 avoid the problem of a store between the load and the stmt's original
15189 location.
15190 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15191 signature.
15192
15193 2014-06-18 Andreas Schwab <schwab@suse.de>
15194
15195 PR rtl-optimization/54555
15196 * postreload.c (move2add_use_add2_insn): Substitute
15197 STRICT_LOW_PART only if it is cheaper.
15198
15199 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15200
15201 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15202 Do not use unspec as call operand. Use memory_operand instead of
15203 memory_nox32_operand and add "m" operand constraint. Disable
15204 pattern for TARGET_X32.
15205 (*sibcall_pop_memory): Ditto.
15206 (*sibcall_value_memory): Ditto.
15207 (*sibcall_value_pop_memory): Ditto.
15208 (sibcall peepholes): Merge SImode and DImode patterns using
15209 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15210 Disable pattern for TARGET_X32. Check if eliminated register is
15211 really dead after call insn. Generate call RTX without unspec operand.
15212 (sibcall_value peepholes): Ditto.
15213 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15214 instead of memory_nox32_operand. Check if eliminated register is
15215 really dead after call insn. Generate call RTX without unspec operand.
15216 (sibcall_value_pop peepholes): Ditto.
15217 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15218
15219 2014-06-18 Terry Guo <terry.guo@arm.com>
15220
15221 PR target/61544
15222 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15223 reach the head.
15224
15225 2014-06-18 Olivier Hainque <hainque@adacore.com>
15226
15227 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15228 memorization of the end of block source location.
15229 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15230 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15231 end source location info we have on the block entry/exit code we
15232 generate.
15233
15234 2014-06-18 Richard Biener <rguenther@suse.de>
15235
15236 * common.opt (fssa-phiopt): New option.
15237 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15238 but not with -Og.
15239 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15240 * doc/invoke.texi (-fssa-phiopt): Document.
15241
15242 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15243
15244 * genattrtab.c (n_bypassed): New variable.
15245 (process_bypasses): Initialise n_bypassed.
15246 Count number of bypassed reservations.
15247 (make_automaton_attrs): Allocate space for bypassed reservations
15248 rather than number of bypasses.
15249
15250 2014-06-18 Richard Biener <rguenther@suse.de>
15251
15252 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15253 we propagated anything.
15254 (substitute_and_fold_dom_walker::before_dom_children): Something
15255 changed if we propagated into PHI arguments.
15256 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15257 we removed a stmt.
15258
15259 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15260
15261 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15262 vector case.
15263 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15264 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15265 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15266 Introduces alternative way of loads group permutaions.
15267 (vect_transform_grouped_load): Try alternative way of permutations.
15268
15269 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15270
15271 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15272 changed in ORT_TARGET region, don't jump to do_outer.
15273 (struct gimplify_adjust_omp_clauses_data): New type.
15274 (gimplify_adjust_omp_clauses_1): Adjust for data being
15275 a struct gimplify_adjust_omp_clauses_data pointer instead
15276 of tree *. Pass pre_p as a new argument to
15277 lang_hooks.decls.omp_finish_clause hook.
15278 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15279 splay_tree_foreach to pass both list_p and pre_p.
15280 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15281 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15282 gimplify_adjust_omp_clauses callers.
15283 * langhooks.c (lhd_omp_finish_clause): New function.
15284 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15285 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15286 * langhooks.h (struct lang_hooks_for_decls): Add a new
15287 gimple_seq * argument to omp_finish_clause hook.
15288 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15289 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15290 (scan_omp_parallel, lower_omp_for): When adding
15291 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15292 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15293 * tree-nested.c (convert_nonlocal_omp_clauses,
15294 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15295 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15296
15297 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15298
15299 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15300 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15301
15302 2014-06-17 Xinliang David Li <davidxl@google.com>
15303
15304 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15305 * passes.c (pass_init_dump_file): Do not set initialize
15306 flag to false unconditionally.
15307
15308 2014-06-17 Richard Biener <rguenther@suse.de>
15309
15310 * genopinit.c (main): Use vec<>::qsort method.
15311 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15312 Likewise.
15313 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15314
15315 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15316
15317 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15318 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15319 (mips_move_to_gpr_cost): Remove ST_REGS case.
15320 (mips_move_from_gpr_cost): Likewise.
15321 (mips_register_move_cost): Likewise.
15322 (mips_secondary_reload_class): Likewise.
15323
15324 2014-06-17 Richard Biener <rguenther@suse.de>
15325
15326 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15327 (pass_all_optimizations): Move 3rd copy-prop pass from after
15328 fre to before ifcombine/phiopt.
15329
15330 2014-06-17 Richard Biener <rguenther@suse.de>
15331
15332 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15333 and allow all blocks to be forwarders.
15334
15335 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15336
15337 PR target/61483
15338 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15339 variable 'size'; calculate 'size' right in the front; use
15340 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15341 pcum->aapcs_stack_words.
15342
15343 2014-06-17 Nick Clifton <nickc@redhat.com>
15344
15345 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15346 (umulhi3, mulsidi3, umulsidi3): Likewise.
15347
15348 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15349
15350 PR middle-end/61508
15351 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15352 check for section name.
15353
15354 2014-06-17 Richard Biener <rguenther@suse.de>
15355
15356 * tree-ssa-propagate.c: Include domwalk.h.
15357 (substitute_and_fold): Outline main worker into a domwalker ...
15358 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15359 Schedule stmts we can fully propagate for removal. Remove
15360 poor-mans DCE.
15361 (substitute_and_fold): Apply a dominator walk to perform
15362 substitution. Process stmts scheduled for removal here.
15363
15364 2014-06-17 Richard Biener <rguenther@suse.de>
15365
15366 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15367 of PHI node moving.
15368
15369 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15370
15371 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15372 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15373 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15374 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15375 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15376 TARGET_HARD_FLOAT.
15377 (get_fpscr) : Likewise.
15378
15379 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15380
15381 PR rtl-optimization/61325
15382 * lra-constraints.c (valid_address_p): Add forward declaration.
15383 (simplify_operand_subreg): Check address validity before and after
15384 alter_reg of memory subreg.
15385
15386 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15387
15388 * config/i386/i386.c (decide_alg): Correctly handle
15389 maximum size of stringop algorithm.
15390
15391 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15392
15393 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15394
15395 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15396
15397 PR rtl-optimization/61522
15398 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15399
15400 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15401
15402 Revert:
15403 * symtab.c (symtab_node::reset_section): New method.
15404 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15405 for localization.
15406 * cgraph.h (reset_section): Declare.
15407 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15408 do not consider comdat locals.
15409 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15410 for new symbol.
15411 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15412 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15413 reset sections of symbols dragged out of the comdats.
15414 (function_and_variable_visibility): Reset sections of
15415 localized symbols.
15416
15417 2014-06-16 Richard Biener <rguenther@suse.de>
15418
15419 PR tree-optimization/61482
15420 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15421 [-INF(OVF), +INF(OVF)] range.
15422
15423 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15424
15425 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15426 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15427 handling 32-bit multiplication.
15428
15429 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15430
15431 PR middle-end/61430
15432 * lra-lives.c (process_bb_lives): Skip creating copy during
15433 insn scan when src/dest has constrained to same regno.
15434
15435 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15436
15437 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15438 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15439
15440 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15441
15442 * asan.c (check_func): New function.
15443 (maybe_create_ssa_name): Likewise.
15444 (build_check_stmt_with_calls): Likewise.
15445 (use_calls_p): Likewise.
15446 (report_error_func): Change interface.
15447 (build_check_stmt): Allow non-integer lengths; add support
15448 for new parameter.
15449 (asan_instrument): Likewise.
15450 (instrument_mem_region_access): Moved code to build_check_stmt.
15451 (instrument_derefs): Likewise.
15452 (instrument_strlen_call): Likewise.
15453 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15454 * doc/invoke.texi: Describe new parameter.
15455 * params.def: Define new parameter.
15456 * params.h: Likewise.
15457 * sanitizer.def: Describe new builtins.
15458
15459 2014-06-16 Richard Biener <rguenther@suse.de>
15460
15461 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15462 Make all defs available at the end.
15463 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15464
15465 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15466
15467 PR plugins/45078
15468 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15469
15470 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15471
15472 PR bootstrap/61516
15473 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15474 initialization. Replace remaining use of uid.
15475
15476 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15477
15478 * c-family/c-common.c (handle_tls_model_attribute): Use
15479 set_decl_tls_model.
15480 * c-family/c-common.c (handle_tls_model_attribute): Use
15481 set_decl_tls_model.
15482 * cgraph.h (struct varpool_node): Add tls_model.
15483 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15484 * tree.h (DECL_TLS_MODEL): Update.
15485 (DECL_THREAD_LOCAL_P): Check that variable is static.
15486 (decl_tls_model): Declare.
15487 (set_decl_tls_model): Declare.
15488 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15489 set symbol prorperties.
15490 (get_emutls_init_templ_addr): Cleanup.
15491 (new_emutls_decl): Update.
15492 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15493 (lto_input_varpool_node): Likewise.
15494 * lto-streamer-out.c (hash_tree): Likewise.
15495 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15496 not stream DECL_TLS_MODEL.
15497 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15498 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15499
15500 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15501
15502 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15503
15504 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15505
15506 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15507 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15508 lists.
15509 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15510 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15511 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15512 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15513 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15514 (df_get_artificial_defs, df_get_artificial_uses)
15515 (df_single_def, df_single_use): Update accordingly.
15516 (df_refs_chain_dump): Take the first element in a linked list as
15517 parameter, rather than a pointer to an array of pointers.
15518 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15519 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15520 (df_chain_create_bb_process_use): Likewise.
15521 (df_md_bb_local_compute_process_def): Likewise.
15522 * fwprop.c (process_defs, process_uses): Likewise.
15523 (register_active_defs, update_uses): Likewise.
15524 (forward_propagate_asm): Update for new df_ref linking.
15525 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15526 (df_null_ref_rec, df_null_mw_rec): Likewise.
15527 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15528 explicitly.
15529 (df_scan_free_bb_info): Remove check for null artificial_defs.
15530 (df_install_ref_incremental): Adjust for new df_ref linking.
15531 Use a single-element insertion rather than a full sort.
15532 (df_ref_chain_delete_du_chain): Take the first element
15533 in a linked list as parameter, rather than a pointer to an array of
15534 pointers.
15535 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15536 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15537 (df_insn_info_delete): Remove check for null defs and call to
15538 df_scan_free_mws_vec.
15539 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15540 null rather than df_null_*_rec.
15541 (df_insn_rescan_debug_internal): Likewise, and update null
15542 checks in the same way. Remove check for null defs.
15543 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15544 Move a single element rather doing a full sort.
15545 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15546 linking.
15547 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
15548 Initialize df_ref and df_mw_hardreg lists to null rather than
15549 df_null_*_rec.
15550 (df_ref_compare): Take df_refs as parameter, transferring the
15551 old interface to...
15552 (df_ref_ptr_compare): ...this new function.
15553 (df_sort_and_compress_refs): Update accordingly.
15554 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15555 old interface to...
15556 (df_mw_ptr_compare): ...this new function.
15557 (df_sort_and_compress_mws): Update accordingly.
15558 (df_install_refs, df_install_mws): Return a linked list rather than
15559 an array of pointers.
15560 (df_refs_add_to_chains): Assert that old lists are empty rather
15561 than freeing them.
15562 (df_insn_refs_verify): Don't handle null defs speciailly.
15563 * web.c (union_match_dups): Update for new df_ref linking.
15564
15565 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15566
15567 * df.h (df_ref_create, df_ref_remove): Delete.
15568 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15569 (df_ref_remove): Likewise.
15570
15571 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15572
15573 * df.h (df_single_def, df_single_use): New functions.
15574 * ira.c (find_moveable_pseudos): Use them.
15575
15576 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15577
15578 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15579 * df-problems.c (df_note_bb_compute): Use it.
15580 * regstat.c (regstat_bb_compute_ri): Likewise.
15581
15582 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15583
15584 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15585 * cse.c (cse_extended_basic_block): Use them.
15586 * dce.c (mark_artificial_use): Likewise.
15587 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15588 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15589 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15590 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15591 (df_simulate_initialize_backwards): Likewise.
15592 (df_simulate_finalize_backwards): Likewise.
15593 (df_simulate_initialize_forwards): Likewise.
15594 (df_md_simulate_artificial_defs_at_top): Likewise.
15595 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15596 * regrename.c (init_rename_info): Likewise.
15597 * regstat.c (regstat_bb_compute_ri): Likewise.
15598 (regstat_bb_compute_calls_crossed): Likewise.
15599
15600 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15601
15602 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15603 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15604 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15605 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15606 * combine.c (create_log_links): Likewise.
15607 * compare-elim.c (find_flags_uses_in_insn): Likewise.
15608 (try_eliminate_compare): Likewise.
15609 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15610 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15611 (remove_reg_equal_equiv_notes_for_defs): Likewise.
15612 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15613 (word_dce_process_block, dce_process_block): Likewise.
15614 * ddg.c (def_has_ccmode_p): Likewise.
15615 * df-core.c (df_bb_regno_first_def_find): Likewise.
15616 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15617 * df-problems.c (df_rd_simulate_one_insn): Likewise.
15618 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15619 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15620 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15621 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15622 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15623 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15624 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15625 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15626 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15627 * fwprop.c (local_ref_killed_between_p): Likewise.
15628 (all_uses_available_at, free_load_extend): Likewise.
15629 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15630 * hw-doloop.c (scan_loop): Likewise.
15631 * ifcvt.c (dead_or_predicable): Likewise.
15632 * init-regs.c (initialize_uninitialized_regs): Likewise.
15633 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15634 (process_bb_node_lives): Likewise.
15635 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15636 (find_moveable_pseudos): Likewise.
15637 * loop-invariant.c (check_dependencies, record_uses): Likewise.
15638 * recog.c (peep2_find_free_register): Likewise.
15639 * ree.c (get_defs): Likewise.
15640 * regstat.c (regstat_bb_compute_ri): Likewise.
15641 (regstat_bb_compute_calls_crossed): Likewise.
15642 * sched-deps.c (find_inc, find_mem): Likewise.
15643 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15644 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15645 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15646 (prepare_shrink_wrap): Likewise.
15647 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15648 * web.c (union_defs, pass_web::execute): Likewise.
15649 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15650 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15651
15652 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
15653
15654 * lra-assign.c (assign_by_spills): Add code to assign vector regs
15655 to inheritance pseudos.
15656 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15657
15658 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
15659
15660 PR target/61415
15661 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15662 (BU_MISC_2): Rename to ...
15663 (BU_LDBL128_2): ... this.
15664 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15665 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15666 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15667 RS6000_BTM_LDBL128.
15668 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15669 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15670 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15671 (unpacktf_1): Likewise.
15672 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15673 (__builtin_longdouble_dw1): Likewise.
15674 * doc/sourcebuild.texi (longdouble128): Document.
15675
15676 2014-06-13 Jeff Law <law@redhat.com>
15677
15678 PR rtl-optimization/61094
15679 PR rtl-optimization/61446
15680 * ree.c (combine_reaching_defs): Get the mode for the copy from
15681 the extension insn rather than the defining insn.
15682
15683 2014-06-13 Dehao Chen <dehao@google.com>
15684
15685 * dwarf2out.c (add_linkage_name): Emit more linkage name.
15686
15687 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
15688
15689 * doc/install.texi (--enable-linker-plugin-configure-flags)
15690 (--enable-linker-plugin-flags): Document new flags.
15691
15692 2014-06-13 Martin Jambor <mjambor@suse.cz>
15693
15694 PR ipa/61186
15695 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15696 cache_token if returning early.
15697
15698 2014-06-13 Nick Clifton <nickc@redhat.com>
15699
15700 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15701 requested alignment is active.
15702 (LABEL_ALIGN): Likewise.
15703 (LOOP_ALIGN): Likewise.
15704
15705 2014-06-13 Richard Biener <rguenther@suse.de>
15706
15707 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15708 Rewrite to propagate the VN result into all uses where
15709 possible and to remove stmts becoming dead because of that.
15710 (eliminate): Generalize stmt removal handling, remove in
15711 reverse dominator order to support proper debug stmt
15712 generation. Update stmts before removing stmts.
15713 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15714
15715 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15716
15717 PR tree-optimization/61375
15718 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15719 symbolic number cannot be represented in an uint64_t.
15720 (find_bswap_or_nop_1): Likewise.
15721
15722 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15723
15724 * symtab.c (symtab_node::reset_section): New method.
15725 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15726 for localization.
15727 * cgraph.h (reset_section): Declare.
15728 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15729 do not consider comdat locals.
15730 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15731 for new symbol.
15732 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15733 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15734 reset sections of symbols dragged out of the comdats.
15735 (function_and_variable_visibility): Reset sections of
15736 localized symbols.
15737
15738 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15739
15740 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15741 to use symtab and decl_binds_to_current_def_p
15742 * tree-vectorizer.c (increase_alignment): Increase alignment
15743 of alias target, too.
15744
15745 2014-06-12 Jakub Jelinek <jakub@redhat.com>
15746
15747 PR middle-end/61486
15748 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15749 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15750 if outer combined construct is distribute.
15751 (gimplify_omp_for): For OMP_DISTRIBUTE set
15752 gimplify_omp_ctxp->distribute.
15753 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15754 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15755 mapping into decl map.
15756
15757 2014-06-12 Jason Merrill <jason@redhat.com>
15758
15759 * common.opt (fabi-version): Change default to 0.
15760
15761 2014-06-12 Jason Merrill <jason@redhat.com>
15762
15763 * toplev.c (process_options): Reject -fabi-version=1.
15764
15765 2014-06-12 Jeff Law <law@redhat.com>
15766
15767 PR tree-optimization/61009
15768 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15769 value when we stop processing a block due to problematic PHIs.
15770
15771 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
15772
15773 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15774 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15775 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15776 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15777 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15778 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15779 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15780 are not in the spec.
15781
15782 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
15783
15784 PR target/59843
15785 * config/aarch64/aarch64-modes.def: Add V1DFmode.
15786 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15787 Support V1DFmode.
15788
15789 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
15790
15791 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15792
15793 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
15794
15795 PR target/61443
15796 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15797 loading from address spaces.
15798
15799 2014-06-12 Martin Liska <mliska@suse.cz>
15800
15801 PR ipa/61462
15802 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15803 statement is reachable.
15804
15805 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15806
15807 * symtab.c (section_hash): New hash.
15808 (symtab_unregister_node): Clear section before freeing.
15809 (hash_section_hash_entry): New haser.
15810 (eq_sections): New function.
15811 (symtab_node::set_section_for_node): New method.
15812 (set_section_1): Update.
15813 (symtab_node::set_section): Take string instead of tree as parameter.
15814 (symtab_resolve_alias): Update.
15815 * cgraph.h (section_hash_entry_d): New structure.
15816 (section_hash_entry): New typedef.
15817 (cgraph_node): Change comdat_group_ to x_comdat_group,
15818 change section_ to x_section and turn into section_hash_entry;
15819 update accestors; put set_section_for_node offline.
15820 * tree.c (decl_section_name): Turn into string.
15821 (set_decl_section_name): Change parameter to be string.
15822 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15823 * sdbout.c (sdbout_one_type): Update.
15824 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15825 * varasm.c (IN_NAMED_SECTION, get_named_section,
15826 resolve_unique_section, hot_function_section, get_named_text_section,
15827 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15828 make_decl_rtl, default_unique_section): Update.
15829 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15830 (c6x_elf_unique_section): Update.
15831 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15832 * config/pa/pa.c (pa_function_section): Update.
15833 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15834 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15835 * config/arc/arc.c (arc_in_small_data_p): Update.
15836 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15837 * config/mcore/mcore.c (mcore_unique_section): Update.
15838 * config/mips/mips.c (mips16_build_function_stub): Update.
15839 (mips16_build_call_stub): Update.
15840 (mips_function_rodata_section): Update.
15841 (mips_in_small_data_p): Update.
15842 * config/score/score.c (score_in_small_data_p): Update.
15843 * config/rx/rx.c (rx_in_small_data): Update.
15844 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15845 (rs6000_xcoff_asm_named_section): Update.
15846 (rs6000_xcoff_unique_section): Update.
15847 * config/frv/frv.c (frv_string_begins_with): Update.
15848 (frv_in_small_data_p): Update.
15849 * config/v850/v850.c (v850_encode_data_area): Update.
15850 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
15851 (bfin_handle_l1_data_attribute): Update.
15852 (bfin_handle_l2_attribute): Update.
15853 * config/mep/mep.c (mep_unique_section): Update.
15854 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
15855 Update.
15856 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
15857 (h8300_handle_tiny_data_attribute): Update.
15858 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
15859 (m32r_in_small_data_p): Update.
15860 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
15861 * config/i386/i386.c (ix86_in_large_data_p): Update.
15862 * config/i386/winnt.c (i386_pe_unique_section): Update.
15863 * config/darwin.c (darwin_function_section): Update.
15864 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
15865 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15866 (new_emutls_decl): Update.
15867 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15868 input_varpool_node): Update.
15869 (ead_string_cst): Turn to ...
15870 (read_string): ... this one.
15871 * dwarf2out.c (secname_for_decl): Update.
15872 * asan.c (asan_protect_global): Update.
15873
15874 2014-06-11 DJ Delorie <dj@redhat.com>
15875
15876 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15877 cache lines.
15878 * config/rx/rx.c (rx_option_override): Likewise.
15879 (rx_align_for_label): Likewise.
15880
15881 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15882
15883 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15884
15885 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15886 prototype.
15887
15888 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15889
15890 * common.md: New file.
15891 * doc/md.texi: Update description of generic, machine-independent
15892 constraints.
15893 * config/s390/constraints.md (e): Delete.
15894 * Makefile.in (md_file): Include common.md.
15895 * config/m32c/t-m32c (md_file): Likewise.
15896 * genpreds.c (general_mem): New array.
15897 (generic_constraint_letters): Remove constraints now defined by
15898 common.md.
15899 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15900 Allow the first character to be '<' or '>' as well.
15901 * genoutput.c (general_mem): New array.
15902 (indep_constraints): Remove constraints now defined by common.md.
15903 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15904 Remove special handling of 'm'.
15905 * ira-costs.c (record_reg_classes): Remove special handling of
15906 constraints now defined by common.md.
15907 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15908 * ira-lives.c (single_reg_class): Likewise.
15909 (ira_implicitly_set_insn_hard_regs): Likewise.
15910 * lra-constraints.c (reg_class_from_constraints): Likewise.
15911 (process_alt_operands, process_address, curr_insn_transform): Likewise.
15912 * postreload.c (reload_cse_simplify_operands): Likewise.
15913 * reload.c (push_secondary_reload, scratch_reload_class)
15914 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15915 * reload1.c (maybe_fix_stack_asms): Likewise.
15916 * targhooks.c (default_secondary_reload): Likewise.
15917 * stmt.c (parse_output_constraint): Likewise.
15918 * recog.c (preprocess_constraints): Likewise.
15919 (constrain_operands, peep2_find_free_register): Likewise.
15920 (asm_operand_ok): Likewise, but add a comment saying why 'o'
15921 must be handled specially.
15922
15923 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15924
15925 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
15926 * genpreds.c (have_const_dbl_constraints): Delete.
15927 (add_constraint): Don't set it.
15928 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
15929 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
15930 constraints using the lookup_constraint logic.
15931 * ira-lives.c (single_reg_class): Likewise.
15932 * ira.c (ira_setup_alts): Likewise.
15933 * lra-constraints.c (process_alt_operands): Likewise.
15934 * recog.c (asm_operand_ok, constrain_operands): Likewise.
15935 * reload.c (find_reloads): Likewise.
15936
15937 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15938
15939 * genpreds.c (const_int_start, const_int_end): New variables.
15940 (choose_enum_order): Output CONST_INT constraints before memory
15941 constraints.
15942 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
15943 Add CT_CONST_INT.
15944 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
15945 * ira.c (ira_setup_alts): Likewise.
15946 * lra-constraints.c (process_alt_operands): Likewise.
15947 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15948 * reload.c (find_reloads): Likewise.
15949
15950 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15951
15952 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
15953 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
15954 * recog.c (preprocess_constraints): Update accordingly.
15955
15956 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15957
15958 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
15959 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
15960 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
15961 * genpreds.c (print_type_tree): New function.
15962 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
15963 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
15964 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
15965 Write out enum constraint_type and get_constraint_type.
15966 * lra-constraints.c (satisfies_memory_constraint_p): Take a
15967 constraint_num rather than a constraint string.
15968 (satisfies_address_constraint_p): Likewise.
15969 (reg_class_from_constraints): Avoid old constraint macros.
15970 (process_alt_operands, process_address_1): Likewise.
15971 (curr_insn_transform): Likewise.
15972 * ira-costs.c (record_reg_classes): Likewise.
15973 (record_operand_costs): Likewise.
15974 * ira-lives.c (single_reg_class): Likewise.
15975 (ira_implicitly_set_insn_hard_regs): Likewise.
15976 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15977 * postreload.c (reload_cse_simplify_operands): Likewise.
15978 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15979 (constrain_operands, peep2_find_free_register): Likewise.
15980 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
15981 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15982 * reload1.c (maybe_fix_stack_asms): Likewise.
15983 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15984 * targhooks.c (default_secondary_reload): Likewise.
15985 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
15986 to EXTRA_CONSTRAINT_STR.
15987 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
15988
15989 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15990
15991 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
15992 (write_constraint_satisfied_p_array): ...this new function.
15993 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
15994 an array.
15995 (write_insn_preds_c): Update accordingly.
15996
15997 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15998
15999 * genpreds.c (write_lookup_constraint): Rename to...
16000 (write_lookup_constraint_1): ...this.
16001 (write_lookup_constraint_array): New function.
16002 (write_tm_preds_h): Define lookup_constraint as an inline function
16003 that uses write_lookup_constraint_array where possible.
16004 (write_insn_preds_c): Update for the changes above.
16005
16006 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16007
16008 * doc/md.texi (regclass_for_constraint): Rename to...
16009 (reg_class_for_constraint): ...this.
16010 * genpreds.c (num_constraints, enum_order, register_start)
16011 (register_end, satisfied_start, memory_start, memory_end)
16012 (address_start, address_end): New variables.
16013 (add_constraint): Count the number of constraints.
16014 (choose_enum_order): New function.
16015 (write_enum_constraint_num): Iterate over enum_order.
16016 (write_regclass_for_constraint): Rename to...
16017 (write_reg_class_for_constraint_1): ...this and update output
16018 accordingly.
16019 (write_constraint_satisfied_p): Rename to...
16020 (write_constraint_satisfied_p_1): ...this and update output
16021 accordingly. Do nothing if all extra constraints are register
16022 constraints.
16023 (write_insn_extra_memory_constraint): Delete.
16024 (write_insn_extra_address_constraint): Delete.
16025 (write_range_function): New function.
16026 (write_tm_preds_h): Define constraint_satisfied_p and
16027 reg_class_for_constraint as inline functions that do a range check
16028 before calling the out-of-line function. Use write_range_function
16029 to implement insn_extra_{register,memory,address}_constraint,
16030 the first of which is new.
16031 (write_insn_preds_c): Update after above changes to write_* functions.
16032 (main): Call choose_enum_order.
16033
16034 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16035
16036 PR tree-optimization/61306
16037 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16038 expression instead of its size.
16039 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16040 false to prevent optimization when the result is unpredictable due to
16041 arithmetic right shift of signed type with highest byte is set.
16042 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16043 (init_symbolic_number): Likewise.
16044 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16045 when the result is unpredictable due to sign extension.
16046
16047 2014-06-11 Terry Guo <terry.guo@arm.com>
16048
16049 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16050 (*thumb1_addsi3): Ditto.
16051 (*thumb_subdi3): Ditto.
16052 (thumb1_subsi3_insn): Ditto.
16053 (*thumb_mulsi3): Ditto.
16054 (*thumb_mulsi3_v6): Ditto.
16055 (*thumb1_andsi3_insn): Ditto.
16056 (thumb1_bicsi3): Ditto.
16057 (*thumb1_iorsi3_insn): Ditto.
16058 (*thumb1_xorsi3_insn): Ditto.
16059 (*thumb1_ashlsi3): Ditto.
16060 (*thumb1_ashrsi3): Ditto.
16061 (*thumb1_lshrsi3): Ditto.
16062 (*thumb1_rotrsi3): Ditto.
16063 (*thumb1_negdi2): Ditto.
16064 (*thumb1_negsi2): Ditto.
16065 (*thumb1_abssi2): Ditto.
16066 (*thumb1_neg_abssi2): Ditto.
16067 (*thumb1_one_cmplsi2): Ditto.
16068 (*thumb1_zero_extendhisi2): Ditto.
16069 (*thumb1_zero_extendqisi2): Ditto.
16070 (*thumb1_zero_extendqisi2_v6): Ditto.
16071 (thumb1_extendhisi2): Ditto.
16072 (thumb1_extendqisi2): Ditto.
16073 (*thumb1_movdi_insn): Ditto.
16074 (*thumb1_movsi_insn): Ditto.
16075 (*thumb1_movhi_insn): Ditto.
16076 (thumb_movhi_clobber): Ditto.
16077 (*thumb1_movqi_insn): Ditto.
16078 (*thumb1_movhf): Ditto.
16079 (*thumb1_movsf_insn): Ditto.
16080 (*thumb_movdf_insn): Ditto.
16081 (movmem12b): Ditto.
16082 (movmem8b): Ditto.
16083 (cbranchqi4): Ditto.
16084 (cbranchsi4_insn): Ditto.
16085 (cbranchsi4_scratch): Ditto.
16086 (*negated_cbranchsi4): Ditto.
16087 (*tbit_cbranch): Ditto.
16088 (*tlobits_cbranch): Ditto.
16089 (*tstsi3_cbranch): Ditto.
16090 (*cbranchne_decr1): Ditto.
16091 (*addsi3_cbranch): Ditto.
16092 (*addsi3_cbranch_scratch): Ditto.
16093 (*thumb_cmpdi_zero): Ditto.
16094 (cstoresi_eq0_thumb1): Ditto.
16095 (cstoresi_ne0_thumb1): Ditto.
16096 (*cstoresi_eq0_thumb1_insn): Ditto.
16097 (*cstoresi_ne0_thumb1_insn): Ditto.
16098 (cstoresi_nltu_thumb1): Ditto.
16099 (cstoresi_ltu_thumb1): Ditto.
16100 (thumb1_addsi3_addgeu): Ditto.
16101 (*thumb_jump): Ditto.
16102 (*call_reg_thumb1_v5): Ditto.
16103 (*call_reg_thumb1): Ditto.
16104 (*call_value_reg_thumb1_v5): Ditto.
16105 (*call_value_reg_thumb1): Ditto.
16106 (*call_insn): Ditto.
16107 (*call_value_insn): Ditto.
16108 (thumb1_casesi_internal_pic): Ditto.
16109 (thumb1_casesi_dispatch): Ditto.
16110 (*thumb1_indirect_jump): Ditto.
16111 (prologue_thumb1_interwork): Ditto.
16112 (*epilogue_insns): Ditto.
16113 (consttable_1): Ditto.
16114 (consttable_2): Ditto.
16115 (tablejump): Ditto.
16116 (*thumb1_tablejump): Ditto.
16117 (thumb_eh_return): Ditto.
16118 (define_peephole2): Two of them are thumb1 only and got moved into
16119 new file thumb1.md.
16120 (define_split): Six of them are thumb1 only and got moved into new
16121 file thumb1.md.
16122 * config/arm/thumb1.md: New file comprised of above thumb1 only
16123 patterns.
16124
16125 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16126
16127 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16128 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16129 dependencies.
16130 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16131 (aarch64_crc_builtin_datum): New struct.
16132 (aarch64_crc_builtin_data): New.
16133 (aarch64_init_crc32_builtins): New function.
16134 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16135 (aarch64_crc32_expand_builtin): New.
16136 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16137 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16138 __ARM_FEATURE_CRC32 when appropriate.
16139 (TARGET_CRC32): Define.
16140 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16141 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16142 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16143 (aarch64_<crc_variant>): New pattern.
16144 * config/aarch64/arm_acle.h: New file.
16145 * config/aarch64/iterators.md (CRC): New int iterator.
16146 (crc_variant, crc_mode): New int attributes.
16147 * doc/aarch64-acle-intrinsics.texi: New file.
16148 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16149 Include aarch64-acle-intrinsics.texi.
16150
16151 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16152
16153 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16154 check for stores group of length 3.
16155 (vect_permute_store_chain): New permutations for stores group of
16156 length 3.
16157 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16158 of vec_perm_shuffle for the new permutations.
16159
16160 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16161
16162 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16163 table rewriting temporarily on targets not supporting ONE_ONLY.
16164
16165 2014-06-11 Richard Biener <rguenther@suse.de>
16166
16167 PR middle-end/61437
16168 Revert
16169 2014-06-04 Richard Biener <rguenther@suse.de>
16170
16171 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16172 TREE_PUBLIC and DECL_EXTERNAL decls.
16173
16174 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16175
16176 * varasm.c (set_implicit_section): New function.
16177 (resolve_unique_section): Use it to set implicit section
16178 for aliases, too.
16179 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16180 (default_function_section): Likewise.
16181 (decl_binds_to_current_def_p): Constify argument.
16182 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16183 * asan.c (asan_protect_global): Use
16184 symtab_get_node (decl)->implicit_section.
16185 * symtab.c (dump_symtab_base): Dump implicit sections.
16186 (verify_symtab_base): Verify sanity of sectoins and comdats.
16187 (symtab_resolve_alias): Alias share the section of its target.
16188 (set_section_1): New function.
16189 (symtab_node::set_section): Move here, recurse to aliases.
16190 (verify_symtab): Check for duplicated symtab lists.
16191 * tree-core.h (implicit_section_name_p): Remove.
16192 * tree-vect-data-refs.c: Include varasm.h.
16193 (vect_can_force_dr_alignment_p): Fix conditional on when
16194 decl bints to current definition; use
16195 symtab_get_node (decl)->implicit_section.
16196 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16197 * cgraph.h (struct symtab_node): Add implicit_section.
16198 (set_section): Rename to ...
16199 (set_section_for_node): ... this one.
16200 (set_section): Declare.
16201 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16202 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16203 input_overwrite_node, input_varpool_node): Stream implicit_section.
16204 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16205 removal; it will fail in LTO.
16206
16207 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16208
16209 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16210 Change second alternative type to f_mcr.
16211 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16212 and 12th alternatives' types to f_mcr and f_mrc.
16213 (*movdi_aarch64): Same for 12th and 13th alternatives.
16214 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16215 (aarch64_movtilow_tilow): Change type to fmov.
16216
16217 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16218
16219 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16220 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16221
16222 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16223
16224 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16225 New expander.
16226 (aarch64_sqrdmulh_lane<mode>): Likewise.
16227 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16228 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16229 (aarch64_sqdmulh_laneq<mode>): New expander.
16230 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16231 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16232 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16233 (aarch64_sqdmulh_lane<mode>): New expander.
16234 (aarch64_sqrdmulh_lane<mode>): Likewise.
16235 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16236 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16237 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16238 (aarch64_sqdmlal_laneq<mode>): Likewise.
16239 (aarch64_sqdmlsl_lane<mode>): Likewise.
16240 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16241 (aarch64_sqdmlal2_lane<mode>): Likewise.
16242 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16243 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16244 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16245 (aarch64_sqdmull_lane<mode>): Likewise.
16246 (aarch64_sqdmull_laneq<mode>): Likewise.
16247 (aarch64_sqdmull2_lane<mode>): Likewise.
16248 (aarch64_sqdmull2_laneq<mode>): Likewise.
16249
16250 2014-06-10 Richard Biener <rguenther@suse.de>
16251
16252 PR tree-optimization/61438
16253 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16254 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16255 insertion of IVs if running PRE.
16256 (eliminate): Adjust.
16257 (pass_pre::execute): Likewise.
16258 (pass_fre::execute): Likewise.
16259
16260 2014-06-10 Richard Biener <rguenther@suse.de>
16261
16262 PR middle-end/61456
16263 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16264 Do not use the main variant for the type comparison.
16265 (ncr_compar): Likewise.
16266 (nonoverlapping_component_refs_p): Likewise.
16267
16268 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16269
16270 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16271 REG_CFA_RESTORE mode.
16272
16273 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16274
16275 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16276 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16277 expand_vec_perm_pblendv.
16278
16279 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16280
16281 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16282 available.
16283 Simplify description of __crc32d and __crc32cd intrinsics.
16284 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16285 availability.
16286
16287 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16288
16289 PR lto/61334
16290 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16291 * config.in: Regenerate.
16292 * configure: Likewise.
16293
16294 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16295
16296 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16297 and public vars.
16298 (intersect_static_var_sets): Remove.
16299 (propagate): Do not prune local statics.
16300
16301 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16302
16303 PR fortran/60928
16304 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16305 Set lastprivate_firstprivate even if omp_private_outer_ref
16306 langhook returns true.
16307 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16308 langhook, call unshare_expr on new_var and call
16309 build_outer_var_ref to get the last argument.
16310
16311 2014-06-10 Marek Polacek <polacek@redhat.com>
16312
16313 PR c/60988
16314 * doc/extend.texi: Add cindex for transparent_union.
16315
16316 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16317
16318 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16319 init_symbolic_number ().
16320
16321 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16322
16323 PR middle-end/61141
16324 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16325 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16326 (verify_rtl_sharing): Likewise.
16327
16328 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16329
16330 PR c++/54442
16331 * tree.c (build_qualified_type): Use a canonical type for
16332 TYPE_CANONICAL.
16333
16334 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16335
16336 * config/arm/arm-modes.def: Remove XFmode.
16337
16338 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16339
16340 PR target/61062
16341 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16342 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16343 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16344 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16345 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16346 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16347 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16348 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16349 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16350
16351 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16352
16353 * tree-core.h (tree_decl_with_vis): Remove section_name.
16354
16355 2014-06-09 Kito Cheng <kito@0xlab.org>
16356
16357 * ira.c (ira): Don't call init_caller_save if LRA enabled
16358 since LRA use its own infrastructure to handle that.
16359
16360 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16361
16362 * symtab.c (dump_symtab_base): Update dumping.
16363 (symtab_make_decl_local): Clear only DECL_COMDAT.
16364 * tree-vect-data-refs.c (Check that variable is static before
16365 tampering with sections.
16366 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16367 (cgraph_create_virtual_clone): Likewise.
16368 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16369 (decl_section_name, set_decl_section_name): New accessors.
16370 (find_decls_types_r): Do not walk section name
16371 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16372 (decl_comdat_group, decl_comdat_group_id): Constify.
16373 (decl_section_name, set_decl_section_name): Update.
16374 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16375 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16376 (cgraph_make_node_local_1): Clear section and comdat group.
16377 * cgraph.h (set_comdat_group): Sanity check.
16378 (get_section, set_section): New.
16379 * ipa-comdats.c (ipa_comdats): Use get_section.
16380 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16381 * lto-streamer-out.c: Do not follow section names.
16382 * c-family/c-common.c (handle_section_attribute): Update.
16383 * lto-cgraph.c (lto_output_node): Output section.
16384 (lto_output_varpool_node): Likewise.
16385 (read_comdat_group): Rename to ...
16386 (read_identifier): ... this one.
16387 (read_string_cst): New function.
16388 (input_node, input_varpool_node): Input section names.
16389 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16390 (new_emutls_decl): Update.
16391 (secname_for_decl): Check section names only of static vars.
16392 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16393 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16394 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16395 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16396 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16397 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16398 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16399 * config/v850/v850.c (v850_insert_attributes): Likewise.
16400 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16401 Likewise.
16402 (h8300_handle_tiny_data_attribute): Likewise.
16403 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16404 (bfin_handle_l2_attribute): Likewise.
16405
16406 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16407
16408 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16409 remove static initializer.
16410
16411 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16412
16413 * varasm.c (use_blocks_for_decl_p): Check symbol table
16414 instead of alias attribute.
16415 (place_block_symbol): Recurse on aliases.
16416
16417 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16418
16419 * ipa-visibility.c: Include varasm.h
16420 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16421
16422 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16423
16424 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16425 outputting aliases.
16426
16427 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16428
16429 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16430 from test_insn into GGC space escape via SET_SRC.
16431
16432 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16433
16434 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16435 call statement, if any.
16436 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16437 statements, if any. Tidy up.
16438
16439 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16440
16441 PR target/61431
16442 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16443 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16444 handles swapping the two 64-bit double words on little endian
16445 systems. Include V1TImode and optionally TImode in VSX_LE so that
16446 these types are properly swapped. Change all of the insns and
16447 splits that do the 64-bit swaps to use VSX_LE.
16448 (vsx_le_perm_load_<mode>): Likewise.
16449 (vsx_le_perm_store_<mode>): Likewise.
16450 (splitters for little endian memory operations): Likewise.
16451 (vsx_xxpermdi2_le_<mode>): Likewise.
16452 (vsx_lxvd2x2_le_<mode>): Likewise.
16453 (vsx_stxvd2x2_le_<mode>): Likewise.
16454
16455 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16456
16457 PR target/61423
16458 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16459 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16460 and corresponding splitters. Zero extend general register
16461 or memory input operand to XMM temporary. Enable for
16462 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16463 (floatunssi<mode>2): Update expander predicate.
16464
16465 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16466
16467 PR rtl-optimization/61325
16468 * lra-constraints.c (process_address_1): Check scale equal to one
16469 to prevent transformation: base + scale * index => base + new_reg.
16470
16471 2014-06-06 Richard Biener <rguenther@suse.de>
16472
16473 PR tree-optimization/59299
16474 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16475 a def operand.
16476 (nearest_common_dominator_of_uses): Likewise.
16477 (statement_sink_location): Adjust. Support sinking loads.
16478
16479 2014-06-06 Martin Jambor <mjambor@suse.cz>
16480
16481 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16482 (build_agg_jump_func_from_list): Likewise.
16483 (determine_known_aggregate_parts): Renamed to
16484 determine_locally_known_aggregate_parts. Moved some functionality
16485 to the two functions above, removed bound checks.
16486
16487 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16488
16489 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16490 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16491 (aarch64_progress_pointer): Likewise.
16492 (aarch64_copy_one_part_and_move_pointers): Likewise.
16493 (aarch64_expand_movmen): Likewise.
16494 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16495 * config/aarch64/aarch64.md (movmem<mode>): New.
16496
16497 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16498
16499 * targhooks.c (default_add_stmt_cost): Call target specific
16500 hook instead of default one.
16501
16502 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16503
16504 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16505 endianness instead of host endianness.
16506 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16507 comments.
16508
16509 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16510
16511 PR debug/53927
16512 * function.c (instantiate_decls): Process the saved static chain.
16513 (expand_function_start): If not optimizing, save the static chain
16514 onto the stack.
16515 * tree-nested.c (convert_all_function_calls): Always create the static
16516 chain for nested functions if not optimizing.
16517
16518 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16519
16520 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16521
16522 2014-06-06 Richard Biener <rguenther@suse.de>
16523
16524 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16525 (construct_init_block): Likewise.
16526 (construct_exit_block): Likewise.
16527 (pass_expand::execute): Likewise.
16528 * graphite.c (graphite_transforms): Replace check for current_loops
16529 with a check for > 1 loops.
16530 (pass_graphite_transforms::execute): Adjust.
16531 * ipa-split.c (split_function): Remove check for current_loops.
16532 * omp-low.c (expand_parallel_call): Likewise.
16533 (expand_omp_for_init_counts): Likewise.
16534 (extract_omp_for_update_vars): Likewise.
16535 (expand_omp_for_generic): Likewise.
16536 (expand_omp_sections): Likewise.
16537 (expand_omp_target): Likewise.
16538 * tracer.c (tail_duplicate): Likewise.
16539 (pass_tracer::execute): Likewise.
16540 * trans-mem.c (expand_transaction): Likewise.
16541 * tree-complex.c (expand_complex_div_wide): Likewise.
16542 * tree-eh.c (lower_resx): Likewise.
16543 (cleanup_empty_eh_merge_phis): Likewise.
16544 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16545 current_loops with a check for > 1 loops.
16546 (pass_predcom::execute): Adjust.
16547 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16548 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16549 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16550 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16551 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16552 * tree-switch-conversion.c (process_switch): Likewise.
16553 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16554 * tree-vrp.c (vrp_visit_phi_node): Likewise.
16555 (execute_vrp): Likewise.
16556 * ubsan.c (ubsan_expand_null_ifn): Likewise.
16557
16558 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16559
16560 * rtl.h (insn_location): Declare.
16561 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16562 with UNKNOWN_LOCATION.
16563 * emit-rtl.c (insn_location): New function.
16564 * final.c (notice_source_line): Check that the instruction has a
16565 location before retrieving it and use insn_location.
16566 * modulo-sched.c (loop_single_full_bb_p): Likewise.
16567 * print-rtl.c (print_rtx): Likewise.
16568
16569 2014-06-06 Richard Biener <rguenther@suse.de>
16570
16571 * passes.def: Move 2nd VRP pass before phi-only-cprop.
16572
16573 2014-06-06 Christian Bruel <christian.bruel@st.com>
16574
16575 PR tree-optimization/43934
16576 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16577 cost.
16578
16579 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16580
16581 * ira-lives.c (single_reg_class): Add missing break. Explicitly
16582 return NO_REGS for extra address and memory constraints. Handle
16583 operands that match (or are equivalent to something that matches)
16584 extra constant constraints. Ignore other non-register operands.
16585
16586 2014-06-06 Alan Modra <amodra@gmail.com>
16587
16588 PR target/61300
16589 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16590 * doc/tm.texi: Regenerate.
16591 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16592 Use throughout in place of REG_PARM_STACK_SPACE.
16593 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16594 "incoming" param. Pass to rs6000_function_parms_need_stack.
16595 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16596 prototype_p when incoming. Use function decl when incoming
16597 to handle K&R style functions.
16598 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16599 (INCOMING_REG_PARM_STACK_SPACE): Define.
16600
16601 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16602
16603 PR target/52472
16604 * cfgexpand.c (expand_debug_expr): Use address space of nested
16605 TREE_TYPE for ADDR_EXPR and MEM_REF.
16606
16607 2014-06-05 Jeff Law <law@redhat.com>
16608
16609 PR tree-optimization/61289
16610 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16611 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
16612 looking for those which match LHS. All callers changed.
16613 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16614 parameters and code which manipulated them. All callers changed.
16615 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16616 and DST_MAP parameters. Simplify invalidation code by just calling
16617 invalidate_equivalences. All callers changed.
16618 (thread_across_edge): Simplify now that we don't need to maintain
16619 the map of equivalences to invalidate.
16620
16621 2014-06-05 Kai Tietz <ktietz@redhat.com>
16622 Richard Henderson <rth@redhat.com>
16623
16624 PR target/46219
16625 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16626 checking for !TARGET_X32.
16627 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16628 (sibcall_intern): New define_insn, plus required peepholes.
16629 (sibcall_pop_intern): Likewise.
16630 (sibcall_value_intern): Likewise.
16631 (sibcall_value_pop_intern): Likewise.
16632
16633 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
16634
16635 * tree-inline.c (tree_function_versioning): Check DF info existence
16636 before accessing it.
16637
16638 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16639
16640 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16641 frame_size.
16642 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16643 aarch64_frame hard_fp_offset and frame_size.
16644 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16645 frame_size; remove original_frame_size.
16646 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16647 (aarch64_initial_elimination_offset): Remove frame_size and
16648 offset. Use aarch64_frame frame_size.
16649
16650 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16651 Jiong Wang <jiong.wang@arm.com>
16652 Renlin <renlin.li@arm.com>
16653
16654 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16655 initialization of R30 offset. Update offset. Iterate core
16656 regisers upto X30. Remove X29, X30 specific code.
16657
16658 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16659 Jiong Wang <jiong.wang@arm.com>
16660
16661 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16662 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16663 (aarch64_register_saved_on_entry): Adjust test.
16664
16665 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16666
16667 * config/aarch64/aarch64.h (machine_function): Move
16668 saved_varargs_size from here...
16669 (aarch64_frame): ... to here.
16670
16671 * config/aarch64/aarch64.c (aarch64_expand_prologue)
16672 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16673 (aarch64_initial_elimination_offset)
16674 (aarch64_setup_incoming_varargs): Adjust location of
16675 saved_varargs_size.
16676
16677 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16678
16679 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16680 layout comment.
16681
16682 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
16683 Prachi Godbole <Prachi.Godbole@imgtec.com>
16684
16685 * config/mips/mips-cpus.def: Add definition for p5600. Updated
16686 mips32r5 entry to use PROCESSOR_P5600.
16687 * config/mips/mips-tables.opt: Regenerate.
16688 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16689 * config/mips/mips.c (mips_fmadd_bypass): New function.
16690 (mips_rtx_cost_data): Add costs for p5600.
16691 (mips_issue_rate): Add support for p5600.
16692 (mips_multipass_dfa_lookahead): Likewise.
16693 * config/mips/mips.h (TUNE_P5600): New define.
16694 (TUNE_MACC_CHAINS): Add TUNE_P5600.
16695 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16696 * config/mips/mips.md: Include p5600.md.
16697 (processor): Add p5600.
16698 * config/mips/p5600.md: New file.
16699
16700 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
16701
16702 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16703 * config/i386/predicates.md (palignr_operand): New.
16704 Indicates if permutation is suitable for palignr instruction.
16705
16706 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
16707
16708 PR tree-optimization/61319
16709 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16710 stmt belongs to loop.
16711
16712 2014-06-05 Richard Biener <rguenther@suse.de>
16713
16714 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16715 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16716 (lookup_tmp_var): Adjust.
16717 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16718
16719 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16720
16721 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16722
16723 2014-06-05 Marek Polacek <polacek@redhat.com>
16724
16725 PR c/49706
16726 * doc/invoke.texi: Document -Wlogical-not-parentheses.
16727
16728 2014-06-04 Tom de Vries <tom@codesourcery.com>
16729
16730 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16731 CONST_INT.
16732
16733 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
16734
16735 PR tree-optimization/61385
16736 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16737
16738 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
16739
16740 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
16741 changed to use fatal_error.
16742 (main): Ensure lto_wrapper_cleanup is run atexit.
16743
16744 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16745
16746 * lra-constraints.c (valid_address_p): Move earlier in file.
16747 (address_eliminator): New structure.
16748 (satisfies_memory_constraint_p): New function.
16749 (satisfies_address_constraint_p): Likewise.
16750 (process_alt_operands, process_address, curr_insn_transform): Use them.
16751
16752 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16753
16754 * lra-int.h (lra_static_insn_data): Make operand_alternative a
16755 const pointer.
16756 (target_lra_int, default_target_lra_int, this_target_lra_int)
16757 (op_alt_data): Delete.
16758 * lra.h (lra_init): Delete.
16759 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16760 (init_insn_code_data_once): Remove op_alt_data handling.
16761 (finish_insn_code_data_once): Likewise.
16762 (init_op_alt_data): Delete.
16763 (get_static_insn_data): Initialize operand_alternative to null.
16764 (free_insn_recog_data): Cast operand_alternative before freeing it.
16765 (setup_operand_alternative): Take the operand_alternative as
16766 parameter and assume it isn't already cached in the static
16767 insn data.
16768 (lra_set_insn_recog_data): Update accordingly.
16769 (lra_init): Delete.
16770 * ira.c (ira_init): Don't call lra_init.
16771 * target-globals.h (this_target_lra_int): Declare.
16772 (target_globals): Remove lra_int.
16773 (restore_target_globals): Update accordingly.
16774 * target-globals.c: Don't include lra-int.h.
16775 (default_target_globals, save_target_globals): Remove lra_int.
16776
16777 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16778
16779 * recog.h (operand_alternative): Convert reg_class, reject,
16780 matched and matches into bitfields.
16781 (preprocess_constraints): New overload.
16782 (preprocess_insn_constraints): New function.
16783 (preprocess_constraints): Take the insn as parameter.
16784 (recog_op_alt): Change into a pointer.
16785 (target_recog): Add x_op_alt.
16786 * recog.c (asm_op_alt): New variable.
16787 (recog_op_alt): Change into a pointer.
16788 (preprocess_constraints): New overload, replacing the old function
16789 definition with one that doesn't use global state.
16790 (preprocess_insn_constraints): New function.
16791 (preprocess_constraints): Use them. Take the insn as parameter.
16792 Use asm_op_alt for asms.
16793 (recog_init): Free existing x_op_alt entries.
16794 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16795 pointer const.
16796 (make_early_clobber_and_input_conflicts): Likewise.
16797 (process_bb_node_lives): Pass the insn to process_constraints.
16798 * reg-stack.c (check_asm_stack_operands): Likewise.
16799 (subst_asm_stack_regs): Likewise.
16800 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16801 * regrename.c (build_def_use): Likewise.
16802 * sched-deps.c (sched_analyze_insn): Likewise.
16803 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16804 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16805 (note_invalid_constants): Likewise.
16806 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16807 (ix86_legitimate_combined_insn): Make operand_alternative pointer
16808 const.
16809
16810 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16811
16812 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16813 * ira-lives.c (check_and_make_def_conflict): Check for disabled
16814 alternatives.
16815 (make_early_clobber_and_input_conflicts): Likewise.
16816 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16817
16818 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16819
16820 * recog.h (alternative_class): New function.
16821 (which_op_alt): Return a const recog_op_alt.
16822 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16823 (subst_asm_stack_regs): Likewise.
16824 * config/arm/arm.c (note_invalid_constants): Likewise.
16825 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
16826 the operand_alternative; use alternative class instead.
16827 * sel-sched.c (get_reg_class): Likewise.
16828 * regrename.c (build_def_use): Likewise.
16829 (hide_operands, restore_operands, record_out_operands): Update type
16830 accordingly.
16831
16832 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16833
16834 * recog.h (recog_op_alt): Convert to a flat array.
16835 (which_op_alt): New function.
16836 * recog.c (recog_op_alt): Convert to a flat array.
16837 (preprocess_constraints): Update accordingly, grouping all
16838 operands of the same alternative together, rather than the
16839 other way around.
16840 * ira-lives.c (check_and_make_def_conflict): Likewise.
16841 (make_early_clobber_and_input_conflicts): Likewise.
16842 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16843 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16844 (subst_asm_stack_regs): Likewise.
16845 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16846 * regrename.c (hide_operands, record_out_operands): Likewise.
16847 (build_def_use): Likewise.
16848 * sel-sched.c (get_reg_class): Likewise.
16849 * config/arm/arm.c (note_invalid_constants): Likewise.
16850
16851 2014-06-04 Jason Merrill <jason@redhat.com>
16852
16853 PR c++/51253
16854 PR c++/61382
16855 * gimplify.c (gimplify_arg): Non-static.
16856 * gimplify.h: Declare it.
16857
16858 2014-06-04 Richard Biener <rguenther@suse.de>
16859
16860 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16861 TREE_PUBLIC and DECL_EXTERNAL decls.
16862
16863 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
16864
16865 * regcprop.c (copyprop_hardreg_forward_1): Account for
16866 HARD_REGNO_CALL_PART_CLOBBERED.
16867
16868 2014-06-04 Richard Biener <rguenther@suse.de>
16869
16870 * configure.ac: Check whether the underlying type of int64_t
16871 is long or long long.
16872 * configure: Regenerate.
16873 * config.in: Likewise.
16874 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16875 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16876
16877 2014-06-04 Richard Biener <rguenther@suse.de>
16878
16879 PR tree-optimization/60098
16880 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16881 we hit a kill.
16882 (dse_optimize_stmt): Simplify, now that we found a kill
16883 earlier.
16884
16885 2014-06-04 Richard Biener <rguenther@suse.de>
16886
16887 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16888 of accesses with non-invariant address.
16889
16890 2014-06-04 Martin Liska <mliska@suse.cz>
16891
16892 * cgraph.h (cgraph_make_wrapper): New function introduced.
16893 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16894 * ipa-inline.h (inline_analyze_function): The function is global.
16895 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16896
16897 2014-06-04 Martin Liska <mliska@suse.cz>
16898
16899 * tree.h (private_lookup_attribute_starting): New function.
16900 (lookup_attribute_starting): Likewise.
16901 * tree.c (private_lookup_attribute_starting): Likewise.
16902
16903 2014-06-04 Martin Liska <mliska@suse.cz>
16904
16905 * cgraph.h (expand_thunk): New argument added.
16906 (address_taken_from_non_vtable_p): New global function.
16907 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
16908 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
16909 * cgraphunit.c (analyze_function): Likewise.
16910 (assemble_thunks_and_aliases): Argument added to call.
16911 (expand_thunk): New argument forces to produce GIMPLE thunk.
16912
16913 2014-06-04 Martin Liska <mliska@suse.cz>
16914
16915 * coverage.h (coverage_compute_cfg_checksum): Argument added.
16916 * coverage.c (coverage_compute_cfg_checksum): Likewise.
16917 * profile.c (branch_prob): Likewise.
16918
16919 2014-06-04 Martin Jambor <mjambor@suse.cz>
16920
16921 PR ipa/61340
16922 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
16923 handler for switch on an ipa_ref_use enum.
16924 * ipa-reference.c (analyze_function): Likewise.
16925
16926 2014-06-04 Kai Tietz <ktietz@redhat.com>
16927
16928 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
16929 from old call-instruction.
16930
16931 2014-06-04 Bin Cheng <bin.cheng@arm.com>
16932
16933 * config/aarch64/aarch64.c (aarch64_classify_address)
16934 (aarch64_legitimize_reload_address): Support full addressing modes
16935 for vector modes.
16936 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
16937 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
16938
16939 2014-06-03 Andrew Pinski <apinski@cavium.com>
16940
16941 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
16942 for OP0.
16943
16944 2014-06-03 Andrew Pinski <apinski@cavium.com>
16945
16946 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
16947 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
16948
16949 2014-06-03 Kai Tietz <ktietz@redhat.com>
16950
16951 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
16952 for 64-bit ms-abi.
16953
16954 2014-06-03 Dehao Chen <dehao@google.com>
16955
16956 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
16957 the same loop.
16958
16959 2014-06-03 Marek Polacek <polacek@redhat.com>
16960
16961 PR c/60439
16962 * doc/invoke.texi: Document -Wswitch-bool.
16963 * function.c (stack_protect_epilogue): Cast controlling expression of
16964 the switch to int.
16965 * gengtype.c (walk_type): Generate switch expression with its
16966 controlling expression cast to int.
16967
16968 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
16969
16970 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
16971 and attiny841.
16972 * config/avr/avr-tables.opt: Regenerate.
16973 * config/avr/t-multilib: Regenerate.
16974 * doc/avr-mmcu.texi: Regenerate.
16975
16976 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
16977 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16978
16979 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
16980 (ata6617c, ata664251): Add new avr35 devices.
16981 (ata6612c): Add new avr4 device.
16982 (ata6613c, ata6614q): Add new avr5 devices.
16983 * config/avr/avr-tables.opt: Regenerate.
16984 * config/avr/t-multilib: Regenerate.
16985 * doc/avr-mmcu.texi: Regenerate.
16986
16987 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16988
16989 * gcc/config/aarch64/aarch64-builtins.c
16990 (aarch64_types_binop_ssu_qualifiers): New static data.
16991 (TYPES_BINOP_SSU): Define.
16992 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
16993 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
16994 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
16995 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
16996 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
16997 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
16998 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
16999 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17000 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17001 suffix to builtin function name, remove cast.
17002 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17003 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17004 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17005
17006 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17007
17008 * gcc/config/aarch64/aarch64-builtins.c
17009 (aarch64_types_binop_uus_qualifiers,
17010 aarch64_types_shift_to_unsigned_qualifiers,
17011 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17012 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17013 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17014 sqshlu_n, uqshl_n): Update qualifiers.
17015 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17016 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17017 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17018 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17019 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17020 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17021 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17022 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17023 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17024 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17025 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17026 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17027 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17028 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17029 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17030 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17031 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17032 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17033 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17034 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17035 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17036 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17037 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17038 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17039 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17040 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17041 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17042
17043 2014-06-03 Teresa Johnson <tejohnson@google.com>
17044
17045 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17046
17047 2014-06-02 Jason Merrill <jason@redhat.com>
17048
17049 PR c++/61020
17050 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17051
17052 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17053
17054 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17055 location == 0.
17056
17057 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17058
17059 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17060 New pattern.
17061 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17062 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17063 * config/aarch64/iterators.md (REVERSE): New iterator.
17064 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17065 (rev_op): New int_attribute.
17066 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17067 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17068 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17069 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17070 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17071 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17072 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17073 Replace temporary __asm__ with __builtin_shuffle.
17074
17075 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17076
17077 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17078 mips64r5.
17079 * config/mips/mips-tables.opt: Regenerate.
17080 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17081 to use mips_isa_rev rather than ISA_MIPS32R2.
17082 * config/mips/mips.h (ISA_MIPS32R3): New define.
17083 (ISA_MIPS32R5): New define.
17084 (ISA_MIPS64R3): New define.
17085 (ISA_MIPS64R5): New define.
17086 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17087 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17088 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17089 and mips64r5.
17090 (MIPS_ISA_SYNCI_SPEC): Likewise.
17091 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17092 (LINK_SPEC): Added mips32r3 and mips32r5.
17093 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17094 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17095 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17096 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17097 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17098 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17099 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17100
17101 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17102
17103 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17104 options.
17105 * config/mips/mips.opt (mxpa): New option.
17106 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17107 assembler.
17108
17109 2014-06-03 Martin Jambor <mjambor@suse.cz>
17110
17111 PR ipa/61160
17112 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17113 thunks.
17114
17115 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17116
17117 PR tree-optimization/61328
17118 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17119 initialization from find_bswap_or_nop_1.
17120 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17121 in source_expr2 before using the size value the function sets. Also
17122 make use of init_symbolic_number () in both the old place and
17123 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17124 doing recursion in the GIMPLE_BINARY_RHS case.
17125
17126 2014-06-03 Richard Biener <rguenther@suse.de>
17127
17128 PR tree-optimization/61383
17129 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17130 stmts can't trap.
17131
17132 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17133
17134 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17135 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17136 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17137 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17138 in this file.
17139 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17140 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17141 * system.h: ...here and make it unconditional.
17142 * target.def (conditional_register_usage): Mention
17143 define_register_constraint instead of old-style constraint macros.
17144 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17145 * doc/tm.texi: Regenerate.
17146 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17147 protected by !USE_MD_CONSTRAINTS.
17148 * config/frv/frv.md: Remove quote from old version of documentation.
17149 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17150 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17151 CONST_DOUBLE_OK_FOR_LETTER.
17152 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17153
17154 2014-06-02 Andrew Pinski <apinski@cavium.com>
17155
17156 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17157 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17158 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17159 file whose name depends on -mabi= and -mbig-endian.
17160 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17161 Handle LP64 better and handle ilp32 too.
17162 (MULTILIB_OPTIONS): Delete.
17163 (MULTILIB_DIRNAMES): Delete.
17164
17165 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17166
17167 * expr.h: Remove prototypes of functions defined in builtins.c.
17168 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17169 Remove prototypes of functions defined in builtins.c.
17170 * builtins.h: Update prototype list to include all exported functions.
17171 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17172 no_c99_libc_has_function): Move to targhooks.c
17173 (build_string_literal, build_call_expr_loc_array,
17174 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17175 to tree.c.
17176 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17177 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17178 no_c99_libc_has_function): Relocate from builtins.c.
17179 * tree.c: Include builtins.h.
17180 (build_call_expr_loc_array, build_call_expr_loc_vec,
17181 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17182 from builtins.c.
17183 * fold-const.h (fold_fma): Move prototype to builtins.h.
17184 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17185 * asan.c: Include builtins.h.
17186 * cfgexpand.c: Likewise.
17187 * convert.c: Likewise.
17188 * emit-rtl.c: Likewise.
17189 * except.c: Likewise.
17190 * expr.c: Likewise.
17191 * fold-const.c: Likewise.
17192 * gimple-fold.c: Likewise.
17193 * gimple-ssa-strength-reduction.c: Likewise.
17194 * gimplify.c: Likewise.
17195 * ipa-inline.c: Likewise.
17196 * ipa-prop.c: Likewise.
17197 * lto-streamer-out.c: Likewise.
17198 * stmt.c: Likewise.
17199 * tree-inline.c: Likewise.
17200 * tree-object-size.c: Likewise.
17201 * tree-sra.c: Likewise.
17202 * tree-ssa-ccp.c: Likewise.
17203 * tree-ssa-forwprop.c: Likewise.
17204 * tree-ssa-loop-ivcanon.c: Likewise.
17205 * tree-ssa-loop-ivopts.c: Likewise.
17206 * tree-ssa-math-opts.c: Likewise.
17207 * tree-ssa-reassoc.c: Likewise.
17208 * tree-ssa-threadedge.c: Likewise.
17209 * tree-streamer-in.c: Likewise.
17210 * tree-vect-data-refs.c: Likewise.
17211 * tree-vect-patterns.c: Likewise.
17212 * tree-vect-stmts.c: Likewise.
17213 * config/aarch64/aarch64.c: Likewise.
17214 * config/alpha/alpha.c: Likewise.
17215 * config/arc/arc.c: Likewise.
17216 * config/arm/arm.c: Likewise.
17217 * config/avr/avr.c: Likewise.
17218 * config/bfin/bfin.c: Likewise.
17219 * config/c6x/c6x.c: Likewise.
17220 * config/cr16/cr16.c: Likewise.
17221 * config/cris/cris.c: Likewise.
17222 * config/epiphany/epiphany.c: Likewise.
17223 * config/fr30/fr30.c: Likewise.
17224 * config/frv/frv.c: Likewise.
17225 * config/h8300/h8300.c: Likewise.
17226 * config/i386/i386.c: Likewise.
17227 * config/i386/winnt.c: Likewise.
17228 * config/ia64/ia64.c: Likewise.
17229 * config/iq2000/iq2000.c: Likewise.
17230 * config/lm32/lm32.c: Likewise.
17231 * config/m32c/m32c.c: Likewise.
17232 * config/m32r/m32r.c: Likewise.
17233 * config/m68k/m68k.c: Likewise.
17234 * config/mcore/mcore.c: Likewise.
17235 * config/mep/mep.c: Likewise.
17236 * config/microblaze/microblaze.c: Likewise.
17237 * config/mips/mips.c: Likewise.
17238 * config/mmix/mmix.c: Likewise.
17239 * config/mn10300/mn10300.c: Likewise.
17240 * config/moxie/moxie.c: Likewise.
17241 * config/msp430/msp430.c: Likewise.
17242 * config/nds32/nds32.c: Likewise.
17243 * config/pa/pa.c: Likewise.
17244 * config/pdp11/pdp11.c: Likewise.
17245 * config/picochip/picochip.c: Likewise.
17246 * config/rl78/rl78.c: Likewise.
17247 * config/rs6000/rs6000.c: Likewise.
17248 * config/rx/rx.c: Likewise.
17249 * config/s390/s390.c: Likewise.
17250 * config/score/score.c: Likewise.
17251 * config/sh/sh.c: Likewise.
17252 * config/sparc/sparc.c: Likewise.
17253 * config/spu/spu.c: Likewise.
17254 * config/stormy16/stormy16.c: Likewise.
17255 * config/tilegx/tilegx.c: Likewise.
17256 * config/tilepro/tilepro.c: Likewise.
17257 * config/v850/v850.c: Likewise.
17258 * config/vax/vax.c: Likewise.
17259 * config/xtensa/xtensa.c: Likewise.
17260
17261 2014-06-02 Jeff Law <law@redhat.com>
17262
17263 PR rtl-optimization/61094
17264 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17265 was marked as do_no_reextend. If a copy is needed to eliminate
17266 an extension, then mark it as do_not_reextend.
17267
17268 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17269
17270 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17271
17272 2014-06-02 Richard Henderson <rth@redhat.com>
17273
17274 PR target/61336
17275 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17276 addresses inside asms. Use output_operand_lossage instead of
17277 gcc_unreachable.
17278
17279 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17280
17281 PR target/61239
17282 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17283 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17284
17285 2014-06-02 Tom de Vries <tom@codesourcery.com>
17286
17287 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17288 case that x has VOIDmode.
17289
17290 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17291
17292 * varasm.c (copy_constant): Delete function.
17293 (build_constant_desc): Don't call it.
17294
17295 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17296
17297 PR target/61154
17298 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17299 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17300 with immediate_operand.
17301
17302 2014-06-02 Andreas Schwab <schwab@suse.de>
17303
17304 * config/ia64/ia64.c
17305 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17306 pending_data_specs first.
17307
17308 2014-06-02 Richard Biener <rguenther@suse.de>
17309
17310 PR tree-optimization/61378
17311 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17312 valueized_anything.
17313
17314 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17315
17316 * config/i386/constraints.md (Bw): Rename from 'w'.
17317 (Bz): Rename from 'z'.
17318 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17319
17320 2014-06-01 Kai Tietz <ktietz@redhat.com>
17321
17322 PR target/61377
17323 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17324 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17325 instead of m constraint.
17326
17327 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17328
17329 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17330 a separate alternative where the scratch operand 2 is marked as
17331 early clobber.
17332
17333 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17334
17335 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17336 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17337 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17338 and __builtins_arm_get_fpscr.
17339 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17340 __builtins_arm_get_fpscr.
17341 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17342 __builtins_arm_ldfpscr.
17343 (arm_atomic_assign_expand_fenv): New function.
17344 * config/arm/vfp.md (set_fpscr): New pattern.
17345 (get_fpscr) : Likewise.
17346 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17347 VUNSPEC_SET_FPSCR.
17348 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17349 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17350
17351 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17352
17353 * asan.c (report_error_func): Add SLOW_P argument, use
17354 BUILT_IN_ASAN_*_N if set.
17355 (build_check_stmt): Likewise.
17356 (instrument_derefs): If T has insufficient alignment,
17357 force same handling as for odd sizes.
17358
17359 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17360 BUILT_IN_ASAN_REPORT_STORE_N): New.
17361 * asan.c (struct asan_mem_ref): Change access_size type to
17362 HOST_WIDE_INT.
17363 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17364 update_mem_ref_hash_table): Likewise.
17365 (asan_mem_ref_hasher::hash): Hash in a HWI.
17366 (report_error_func): Change size_in_bytes argument to HWI.
17367 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17368 two.
17369 (build_shadow_mem_access): New function.
17370 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17371 Handle size_in_bytes not power of two or larger than 16.
17372 (instrument_derefs): Don't give up if size_in_bytes is not
17373 power of two or is larger than 16.
17374
17375 2014-05-30 Kai Tietz <ktietz@redhat.com>
17376
17377 PR target/60104
17378 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17379 for sibling-tail-calls.
17380 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17381 to its use.
17382 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17383 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17384
17385 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17386
17387 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17388 * config/avr/avr-tables.opt: Regenerate.
17389 * config/avr/t-multilib: Regenerate.
17390 * doc/avr-mmcu.texi: Regenerate.
17391
17392 2014-05-30 Ian Lance Taylor <iant@google.com>
17393
17394 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17395 target("sse").
17396
17397 2014-05-30 Tom de Vries <tom@codesourcery.com>
17398
17399 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17400 Redefine as true.
17401
17402 2014-05-30 Tom de Vries <tom@codesourcery.com>
17403
17404 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17405 * lra.c (initialize_lra_reg_info_element): Add init of
17406 actual_call_used_reg_set field.
17407 (lra): Call lra_create_live_ranges before lra_inheritance for
17408 -fuse-caller-save.
17409 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17410 -fuse-caller-save.
17411 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17412 instead of call_used_reg_set for -fuse-caller-save.
17413 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17414
17415 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17416
17417 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17418 to mov_imm.
17419 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17420
17421 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17422
17423 * ira.c (ira_get_dup_out_num): Check for output operands at
17424 the start of the loop. Handle cases where an included alternative
17425 follows an excluded one.
17426
17427 2014-05-29 Mike Stump <mikestump@comcast.net>
17428
17429 PR debug/61352
17430 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17431 post ld passes when lto is used.
17432
17433 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17434
17435 PR rtl-optimization/61325
17436 * lra-constraints.c (process_address): Rename to process_address_1.
17437 (process_address): New function.
17438
17439 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17440
17441 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17442 TYPES_BINOPV): New static data.
17443 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17444 New builtin.
17445 * config/aarch64/aarch64-simd.md (aarch64_ext,
17446 aarch64_im_lane_boundsi): New patterns.
17447 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17448 patterns for EXT.
17449 (aarch64_evpc_ext): New function.
17450
17451 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17452
17453 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17454 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17455 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17456 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17457 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17458
17459 2014-05-29 Tom de Vries <tom@codesourcery.com>
17460
17461 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17462
17463 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17464 Richard Sandiford <rdsandiford@googlemail.com>
17465
17466 * arm/iterators.md (shiftable_ops): New code iterator.
17467 (t2_binop0, arith_shift_insn): New code attributes.
17468 * arm/predicates.md (shift_nomul_operator): New predicate.
17469 * arm/arm.md (insn_enabled): Delete.
17470 (enabled): Remove insn_enabled test.
17471 (*arith_shiftsi): Delete. Replace with ...
17472 (*<arith_shift_insn>_multsi): ... new pattern.
17473 (*<arith_shift_insn>_shiftsi): ... new pattern.
17474 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17475
17476 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17477 Tom de Vries <tom@codesourcery.com>
17478
17479 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17480 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17481 clobber.
17482 (mips_split_call): Use POST_CALL_TMP_REG.
17483 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17484
17485 2014-05-29 Tom de Vries <tom@codesourcery.com>
17486
17487 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17488 with #ifdef STACK_REGS.
17489
17490 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17491
17492 * varasm.c (get_variable_section): Walk aliases.
17493 (place_block_symbol): Walk aliases.
17494
17495 2014-05-28 Tom de Vries <tom@codesourcery.com>
17496
17497 Revert:
17498 2014-05-28 Tom de Vries <tom@codesourcery.com>
17499
17500 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17501 * lra.c (initialize_lra_reg_info_element): Add init of
17502 actual_call_used_reg_set field.
17503 (lra): Call lra_create_live_ranges before lra_inheritance for
17504 -fuse-caller-save.
17505 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17506 -fuse-caller-save.
17507 * lra-constraints.c (need_for_call_save_p): Use
17508 actual_call_used_reg_set instead of call_used_reg_set for
17509 -fuse-caller-save.
17510 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17511
17512 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17513
17514 * doc/md.texi: Document that the % constraint character must
17515 be at the beginning of the string.
17516 * genoutput.c (validate_insn_alternatives): Check that '=',
17517 '+' and '%' only appear at the beginning of a constraint.
17518 * ira.c (commutative_constraint_p): Delete.
17519 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17520 at the start of the string.
17521 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17522 duplicate '='s.
17523 * config/arm/neon.md (bicdi3_neon): Likewise.
17524 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17525 (slt_si, sltu_si): Likewise.
17526 * config/vax/vax.md (sbcdi3): Likewise.
17527 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17528 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17529 (mul64): Move '%' to beginning of constraint.
17530 * config/arm/arm.md (*xordi3_insn): Likewise.
17531 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17532 (xorsi3): Likewise.
17533
17534 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17535
17536 * doc/md.texi: Document the restrictions on the "enabled" attribute.
17537
17538 2014-05-28 Jason Merrill <jason@redhat.com>
17539
17540 PR c++/47202
17541 * cgraph.h (symtab_node::get_comdat_group_id): New.
17542 * cgraphunit.c (analyze_functions): Call it.
17543 * symtab.c (dump_symtab_node): Likewise.
17544 * tree.c (decl_comdat_group_id): New.
17545 * tree.h: Declare it.
17546 * lto-streamer-out.c (write_symbol): Use it.
17547 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17548
17549 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17550
17551 PR bootstrap/PR61146
17552 * wide-int.cc: Do not include longlong.h when compiling with clang.
17553
17554 2014-05-28 Richard Biener <rguenther@suse.de>
17555
17556 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17557 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17558 (vrp_visit_assignment_or_call): Print less vertical space.
17559 (vrp_visit_stmt): Likewise.
17560 (vrp_visit_phi_node): Likewise. For a PHI argument with
17561 VR_VARYING range consider recording it as copy.
17562
17563 2014-05-28 Richard Biener <rguenther@suse.de>
17564
17565 Revert
17566 2014-05-28 Richard Biener <rguenther@suse.de>
17567
17568 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17569
17570 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17571
17572 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17573 sufficiently aligned and an offset is used at the same time.
17574 (expand_expr_real_1): Likewise.
17575
17576 2014-05-28 Richard Biener <rguenther@suse.de>
17577
17578 PR middle-end/61045
17579 * fold-const.c (fold_comparison): When folding
17580 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17581 the sign of the remaining constant operand stays the same.
17582
17583 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
17584
17585 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17586 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17587 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17588 to the assembler.
17589 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17590 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17591 (m32bit-doubles) Likewise.
17592 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17593 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17594 option for RL78.
17595
17596 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17597
17598 * configure.ac ($gcc_cv_ld_clearcap): New test.
17599 * configure: Regenerate.
17600 * config.in: Regenerate.
17601 * config/sol2.opt (mclear-hwcap): New option.
17602 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17603 * config/sol2-clearcap.map: Moved here from
17604 testsuite/gcc.target/i386/clearcap.map.
17605 * config/sol2-clearcapv2.map: Move here from
17606 gcc.target/i386/clearcapv2.map.
17607 * config/t-sol2 (install): Depend on install-clearcap-map.
17608 (install-clearcap-map): New target.
17609 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17610 -mclear-hwcap.
17611
17612 2014-05-28 Richard Biener <rguenther@suse.de>
17613
17614 * hwint.h (*_HALF_WIDE_INT*): Move to ...
17615 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17616 ... here and remove the rest.
17617 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17618
17619 2014-05-28 Richard Biener <rguenther@suse.de>
17620
17621 PR tree-optimization/61335
17622 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17623 new range fails, drop to varying.
17624
17625 2014-05-28 Olivier Hainque <hainque@adacore.com>
17626
17627 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17628 (CPP_SPEC): Add entry for -mcpu=8548.
17629 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17630 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17631
17632 2014-05-28 Tom de Vries <tom@codesourcery.com>
17633
17634 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17635 * lra.c (initialize_lra_reg_info_element): Add init of
17636 actual_call_used_reg_set field.
17637 (lra): Call lra_create_live_ranges before lra_inheritance for
17638 -fuse-caller-save.
17639 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17640 -fuse-caller-save.
17641 * lra-constraints.c (need_for_call_save_p): Use
17642 actual_call_used_reg_set instead of call_used_reg_set for
17643 -fuse-caller-save.
17644 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17645
17646 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17647 Tom de Vries <tom@codesourcery.com>
17648
17649 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17650 to gccoptlist.
17651 (@item -fuse-caller-save): New item.
17652
17653 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17654 Tom de Vries <tom@codesourcery.com>
17655
17656 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17657 OPT_fuse_caller_save.
17658
17659 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17660 Tom de Vries <tom@codesourcery.com>
17661
17662 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17663 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17664 get_call_reg_set_usage.
17665 * resource.c (mark_set_resources, mark_target_live_regs): Use
17666 get_call_reg_set_usage.
17667 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17668 field.
17669 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17670 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17671 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17672 * ira-build.c (ira_create_allocno): Init
17673 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17674 (create_cap_allocno, propagate_allocno_info)
17675 (propagate_some_info_from_allocno)
17676 (copy_info_to_removed_store_destinations): Handle
17677 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17678 * ira-costs.c (ira_tune_allocno_costs): Use
17679 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17680
17681 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17682 Tom de Vries <tom@codesourcery.com>
17683
17684 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17685 and function_used_regs_valid fields.
17686 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17687 find_all_hard_reg_sets.
17688 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17689 (get_call_reg_set_usage): New function.
17690 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17691 * regs.h (get_call_reg_set_usage): Declare.
17692
17693 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17694
17695 PR libgcc/61152
17696 * config/dbx.h (License): Add Runtime Library Exception.
17697 * config/newlib-stdint.h (License): Same.
17698 * config/rtems.h (License): Same
17699 * config/initfini-array.h (License): Same
17700 * config/v850/v850.h (License): Same.
17701 * config/v850/v850-opts.h (License): Same
17702 * config/v850/rtems.h (License): Same.
17703
17704 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17705
17706 PR target/61044
17707 * doc/extend.texi (Local Labels): Note that label differences are
17708 not supported for AVR.
17709
17710 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17711 Olivier Hainque <hainque@adacore.com>
17712
17713 * rtl.h (set_for_reg_notes): Declare.
17714 * emit-rtl.c (set_for_reg_notes): New function.
17715 (set_unique_reg_note): Use it.
17716 * optabs.c (add_equal_note): Likewise
17717
17718 2014-05-27 Andrew Pinski <apinski@cavium.com>
17719
17720 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17721 Use <w> for the register in assembly template.
17722 (stack_protect_test): Use the mode of operands[0] for the result.
17723 (stack_protect_test_<mode>): Use <w> for the register
17724 in assembly template.
17725
17726 2014-05-27 DJ Delorie <dj@redhat.com>
17727
17728 * config/rx/rx.c (add_vector_labels): New.
17729 (rx_output_function_prologue): Call it.
17730 (rx_handle_func_attribute): Don't require empty arguments.
17731 (rx_handle_vector_attribute): New.
17732 (rx_attribute_table): Add "vector" attribute.
17733 * doc/extend.texi (interrupt, vector): Document new/changed
17734 RX-specific attributes.
17735
17736 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17737
17738 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17739
17740 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17741 predicate to detect a negative quotient.
17742
17743 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17744
17745 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17746 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17747 Add X - Y CMP 0 to X CMP Y transformation.
17748 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17749
17750 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
17751
17752 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17753 before printing.
17754
17755 2014-05-27 Steve Ellcey <sellcey@mips.com>
17756
17757 * config/mips/mips.c: Add include of cgraph.h.
17758
17759 2014-05-27 Richard Biener <rguenther@suse.de>
17760
17761 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17762
17763 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17764
17765 PR libgcc/61152
17766 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17767 * config/arm/arm-cores.def (License): Same.
17768 * config/arm/arm-opts.h (License): Same.
17769 * config/arm/aout.h (License): Same.
17770 * config/arm/bpabi.h (License): Same.
17771 * config/arm/elf.h (License): Same.
17772 * config/arm/linux-elf.h (License): Same.
17773 * config/arm/linux-gas.h (License): Same.
17774 * config/arm/netbsd-elf.h (License): Same.
17775 * config/arm/uclinux-eabi.h (License): Same.
17776 * config/arm/uclinux-elf.h (License): Same.
17777 * config/arm/vxworks.h (License): Same.
17778
17779 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17780
17781 * config/arm/neon.md (neon_bswap<mode>): New pattern.
17782 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17783 (arm_init_neon_builtins): Handle NEON_BSWAP.
17784 Define required type nodes.
17785 (arm_expand_neon_builtin): Handle NEON_BSWAP.
17786 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17787 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17788 * config/arm/iterators.md (VDQHSD): New mode iterator.
17789
17790 2014-05-27 Richard Biener <rguenther@suse.de>
17791
17792 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17793 Try using literal operands when comparing value-ranges failed.
17794
17795 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17796
17797 * ira.c (commutative_operand): Adjust for change to recog_data.
17798 [Missing from previous commit.]
17799
17800 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17801
17802 * system.h (TEST_BIT): New macro.
17803 * recog.h (alternative_mask): New type.
17804 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17805 (recog_data_d): Replace alternative_enabled_p array with
17806 enabled_alternatives.
17807 (target_recog): New structure.
17808 (default_target_recog, this_target_recog): Declare.
17809 (get_enabled_alternatives, recog_init): Likewise.
17810 * recog.c (default_target_recog, this_target_recog): New variables.
17811 (get_enabled_alternatives): New function.
17812 (extract_insn): Use it.
17813 (recog_init): New function.
17814 (preprocess_constraints, constrain_operands): Adjust for change to
17815 recog_data.
17816 * postreload.c (reload_cse_simplify_operands): Likewise.
17817 * reload.c (find_reloads): Likewise.
17818 * ira-costs.c (record_reg_classes): Likewise.
17819 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
17820 all alternatives after a disabled one would be skipped.
17821 (ira_implicitly_set_insn_hard_regs): Likewise.
17822 * ira.c (ira_setup_alts): Adjust for change to recog_data.
17823 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17824 with enabled_alternatives.
17825 * lra.c (free_insn_recog_data): Update accordingly.
17826 (lra_update_insn_recog_data): Likewise.
17827 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
17828 * lra-constraints.c (process_alt_operands): Likewise. Handle
17829 only_alternative as part of the enabled mask.
17830 * target-globals.h (this_target_recog): Declare.
17831 (target_globals): Add a recog field.
17832 (restore_target_globals): Restore this_target_recog.
17833 * target-globals.c: Include recog.h.
17834 (default_target_globals): Initialize recog field.
17835 (save_target_globals): Likewise.
17836 * reginfo.c (reinit_regs): Call recog_init.
17837 * toplev.c (backend_init_target): Likewise.
17838
17839 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17840
17841 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17842 rather than any named insn's code.
17843
17844 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17845
17846 PR libgcc/61152
17847 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
17848 * config/arm/arm-cores.def (License): Same.
17849
17850 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
17851
17852 * tree.h (decl_comdat_group): Declare.
17853 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
17854 * tree.c (decl_comdat_group): Here.
17855
17856 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
17857
17858 PR rtl-optimization/61222
17859 * combine.c (simplify_shift_const_1): When moving a PLUS outside
17860 the shift, truncate the PLUS operand to the result mode.
17861
17862 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
17863
17864 PR target/61271
17865 * config/i386/i386.c (ix86_rtx_costs)
17866 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17867 Fix condition.
17868
17869 2014-05-26 Martin Jambor <mjambor@suse.cz>
17870
17871 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17872 subreg uses.
17873
17874 2014-05-26 Richard Biener <rguenther@suse.de>
17875
17876 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17877 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17878 Provide specializations.
17879 (wi::int_traits <HOST_WIDE_INT>,
17880 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17881
17882 2014-05-26 Alan Modra <amodra@gmail.com>
17883
17884 PR target/61098
17885 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17886 params and return a bool. Remove dead code. Update comment.
17887 Assert we have a const_int source. Remove bogus code from
17888 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17889 handling of constants > 2G and reg_equal note, from..
17890 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17891 return value. Update comment. If we can, use a new pseudo
17892 for intermediate calculations.
17893 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17894 prototype.
17895 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17896 call to rs6000_emit_set_const in splitter.
17897 (movdi_internal64+2, +3): Likewise.
17898
17899 2014-05-26 Richard Biener <rguenther@suse.de>
17900
17901 * system.h: Define __STDC_FORMAT_MACROS before
17902 including inttypes.h.
17903 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17904 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17905 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17906 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17907 HOST_WIDEST_INT_C): Remove.
17908 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
17909 if C99 inttypes.h is not available.
17910 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
17911 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
17912 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
17913 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
17914 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
17915 (struct output_info): Likewise.
17916 (print_statistics): Adjust.
17917 (dump_bitmap_statistics): Likewise.
17918 * bt-load.c (migrate_btr_defs): Print with PRId64.
17919 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
17920 (MAX_SAFE_MULTIPLIER): Adjust.
17921 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
17922 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
17923 dump_cgraph_node): Likewise.
17924 * final.c (dump_basic_block_info): Likewise.
17925 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
17926 * gcov.c (format_gcov): Likewise.
17927 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
17928 for calculation.
17929 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
17930 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
17931 (inline_small_functions, dump_overall_stats, dump_inline_stats):
17932 Use PRId64 for dumping.
17933 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
17934 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
17935 (add_allocno_hard_regs): Adjust.
17936 * loop-doloop.c (doloop_modify): Print using PRId64.
17937 * loop-iv.c (inverse): Compute in uint64_t.
17938 (determine_max_iter, iv_number_of_iterations): Likewise.
17939 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
17940 Print using PRId64.
17941 * lto-streamer-out.c (write_symbol): Use uint64_t.
17942 * mcf.c (CAP_INFINITY): Use int64_t maximum.
17943 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
17944 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
17945 * modulo-sched.c (const_iteration_count): Use int64_t.
17946 (sms_schedule): Dump using PRId64.
17947 * predict.c (dump_prediction): Likewise.
17948 * pretty-print.h (pp_widest_integer): Remove.
17949 * profile.c (get_working_sets, is_edge_inconsistent,
17950 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
17951 * tree-pretty-print.c (pp_double_int): Remove case handling
17952 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
17953 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
17954 and adjust users.
17955 (pass_optimize_bswap::execute): Remove restriction on hosts.
17956 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
17957 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
17958 * tree.c (widest_int_cst_value): Remove.
17959 * tree.h (widest_int_cst_value): Likewise.
17960 * value-prof.c (dump_histogram_value): Print using PRId64.
17961 * gengtype.c (main): Also inject int64_t.
17962 * ggc-page.c (struct max_alignment): Use int64_t.
17963 * alloc-pool.c (struct allocation_object_def): Likewise.
17964 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
17965 for computation.
17966 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
17967 * doc/tm.texi: Regenerated.
17968 * gengtype-lex.l (IWORD): Handle [u]int64_t.
17969 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
17970 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
17971 mmix_output_register_setting): Use [u]int64_t in prototypes.
17972 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
17973 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
17974 mmix_output_octa, mmix_output_shifted_value): Adjust.
17975 (mmix_intval): Adjust. Remove unreachable case.
17976 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
17977
17978 2014-05-26 Richard Biener <rguenther@suse.de>
17979
17980 * configure.ac: Drop __int64 type check. Insist that we
17981 found uint64_t and int64_t.
17982 * hwint.h (HOST_BITS_PER___INT64): Remove.
17983 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
17984 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
17985 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
17986 (HOST_WIDEST_FAST_INT): Remove __int64 case.
17987 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
17988 for dst_q_src_df_rms_cdt.
17989 * configure: Regenerate.
17990 * config.in: Likewise.
17991
17992 2014-05-26 Michael Tautschnig <mt@debian.org>
17993
17994 PR target/61249
17995 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
17996 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
17997
17998 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17999
18000 PR rtl-optimization/61278
18001 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18002
18003 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18004
18005 PR rtl-optimization/61220
18006 Part of PR rtl-optimization/61225
18007 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18008 insn; skip split_edge for a block with only one successor.
18009
18010 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18011
18012 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18013 for variables.
18014
18015 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18016
18017 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18018 (update_vtable_references): New function.
18019 (function_and_variable_visibility): Rewrite also vtable initializers.
18020 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18021
18022 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18023
18024 * ggc.h (ggc_grow): New function.
18025 * ggc-none.c (ggc_grow): New function.
18026 * ggc-page.c (ggc_grow): Likewise.
18027
18028 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18029
18030 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18031 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18032 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18033 varpool_externally_visible_p, can_replace_by_local_alias,
18034 update_visibility_by_resolution_info, function_and_variable_visibility,
18035 pass_data_ipa_function_and_variable_visibility,
18036 make_pass_ipa_function_and_variable_visibility,
18037 whole_program_function_and_variable_visibility,
18038 pass_data_ipa_whole_program_visibility,
18039 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18040 * cgraph.h (cgraph_local_node_p): Declare.
18041 * ipa-visibility.c: New file.
18042 * Makefile.in (OBJS): Add ipa-visiblity.o
18043
18044 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18045
18046 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18047 that var decl is available.
18048
18049 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18050
18051 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18052 symtab_node pointer.
18053 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18054 (find_decls_types_r): Do not walk COMDAT_GROUP.
18055 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18056 * varasm.c (make_decl_one_only): Use set_comdat_group;
18057 create node if needed.
18058 * ipa-inline-transform.c (save_inline_function_body): Update
18059 way we decl->symtab mapping.
18060 * symtab.c (symtab_hash, hash_node, eq_node
18061 symtab_insert_node_to_hashtable): Remove.
18062 (symtab_register_node): Update.
18063 (symtab_unregister_node): Update.
18064 (symtab_get_node): Reimplement as inline function.
18065 (symtab_add_to_same_comdat_group): Update.
18066 (symtab_dissolve_same_comdat_group_list): Update.
18067 (dump_symtab_base): Update.
18068 (verify_symtab_base): Update.
18069 (symtab_make_decl_local): Update.
18070 (fixup_same_cpp_alias_visibility): Update.
18071 (symtab_nonoverwritable_alias): Update.
18072 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18073 * ipa.c (update_visibility_by_resolution_info): UPdate.
18074 * bb-reorder.c: Include cgraph.h
18075 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18076 with comdat groups.
18077 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18078 * cgraph.c (cgraph_get_create_node): Update.
18079 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18080 and comdat_group_.
18081 (symtab_get_node): Make inline.
18082 (symtab_insert_node_to_hashtable): Remove.
18083 (symtab_can_be_discarded): Update.
18084 (decl_comdat_group): New function.
18085 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18086 Update.
18087 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18088 comdat group name.
18089 (read_comdat_group): New function.
18090 (input_node, input_varpool_node): Use it.
18091 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18092 comdat groups.
18093 * mips.c (mips_start_unique_function): Likewise.
18094 (ix86_code_end): Likewise.
18095 (rs6000_code_end): Likweise.
18096 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18097
18098 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18099
18100 * gengtype-state.c (fatal_reading_state): Bring offline.
18101 * optabs.c (widening_optab_handler): Bring offline.
18102 * optabs.h (widening_optab_handler): Likewise.
18103 * final.c (get_attr_length_1): Likewise.
18104
18105 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18106
18107 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18108
18109 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18110
18111 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18112 (ppc440-compare): Include shift with dot.
18113 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18114 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18115 without dot.
18116 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18117 without dot.
18118 (e6500_sfx2): Include it.
18119 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18120 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18121 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18122 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18123 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18124 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18125 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18126 *lshiftrt_internal1le, *lshiftrt_internal1be,
18127 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18128 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18129 *rotldi3_internal10le, *rotldi3_internal10be,
18130 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18131 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18132 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18133 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18134 define_insns): Use type "shift" in the appropriate alternatives.
18135
18136 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18137
18138 * config/rs6000/rs6000.md (type): Add "logical". Delete
18139 "fast_compare".
18140 (dot): Adjust comment.
18141 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18142 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18143 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18144 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18145 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18146 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18147 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18148 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18149
18150 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18151 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18152 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18153 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18154 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18155 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18156 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18157 * config/rs6000/8540.md (ppc8540_su): Adjust.
18158 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18159 cell-cmp-microcoded): Adjust.
18160 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18161 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18162 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18163 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18164 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18165 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18166 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18167 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18168 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18169 Adjust.
18170 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18171 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18172 Adjust. Adjust comment.
18173 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18174 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18175
18176 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18177
18178 * config/rs6000/rs6000.md (type): Add "add".
18179 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18180 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18181 define_insns): Use it.
18182 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18183
18184 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18185 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18186 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18187 * config/rs6000/601.md (ppc601-integer): Adjust.
18188 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18189 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18190 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18191 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18192 * config/rs6000/8540.md (ppc8540_su): Adjust.
18193 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18194 cell-cmp-microcoded): Adjust.
18195 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18196 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18197 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18198 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18199 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18200 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18201 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18202 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18203 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18204 Adjust.
18205 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18206 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18207 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18208 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18209
18210 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18211
18212 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18213 "delayed_compare", "var_delayed_compare".
18214 (var_shift): New attribute.
18215 (cell_micro): Adjust.
18216 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18217 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18218 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18219 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18220 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18221 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18222 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18223 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18224 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18225 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18226 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18227 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18228 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18229 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18230 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18231 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18232 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18233 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18234 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18235 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18236 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18237 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18238 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18239 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18240 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18241
18242 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18243 * config/rs6000/440.md (ppc440-integer): Adjust.
18244 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18245 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18246 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18247 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18248 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18249 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18250 * config/rs6000/8540.md (ppc8540_su): Adjust.
18251 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18252 cell-cmp-microcoded): Adjust.
18253 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18254 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18255 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18256 e500mc64_delayed): Adjust.
18257 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18258 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18259 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18260 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18261 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18262 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18263 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18264 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18265 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18266 Adjust comment.
18267 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18268 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18269
18270 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18271
18272 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18273 (bits): New mode_attr.
18274 (idiv_ldiv): Delete mode_attr.
18275 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18276 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18277 rs6000_adjust_priority, is_nonpipeline_insn,
18278 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18279
18280 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18281 * config/rs6000/440.md (ppc440-idiv): Adjust.
18282 * config/rs6000/476.md (ppc476-idiv): Adjust.
18283 * config/rs6000/601.md (ppc601-idiv): Adjust.
18284 * config/rs6000/603.md (ppc603-idiv): Adjust.
18285 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18286 ppc620-ldiv): Adjust.
18287 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18288 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18289 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18290 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18291 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18292 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18293 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18294 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18295 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18296 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18297 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18298 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18299 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18300 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18301 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18302 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18303 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18304 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18305
18306 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18307
18308 * config/rs6000/rs6000.md (type): Delete "insert_word",
18309 "insert_dword". Add "insert".
18310 (size): Update comment.
18311 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18312 insn_must_be_first_in_group): Adjust.
18313 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18314 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18315 *insvsi_internal6, insvdi_internal): Adjust.
18316
18317 * config/rs6000/40x.md (ppc403-integer): Adjust.
18318 * config/rs6000/440.md (ppc440-integer): Adjust.
18319 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18320 * config/rs6000/601.md (ppc601-integer): Adjust.
18321 * config/rs6000/603.md (ppc603-integer): Adjust.
18322 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18323 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18324 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18325 * config/rs6000/8540.md (ppc8540_su): Adjust.
18326 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18327 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18328 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18329 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18330 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18331 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18332 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18333 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18334 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18335 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18336 * config/rs6000/power7.md (power7-integer): Adjust.
18337 * config/rs6000/power8.md (power8-1cyc): Adjust.
18338 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18339 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18340
18341 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18342
18343 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18344 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18345 (size): New attribute.
18346 (dot): New attribute.
18347 (cell_micro): Adjust.
18348 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18349 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18350 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18351 umuldi3_highpart): Adjust.
18352 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18353 rs6000_adjust_priority, is_nonpipeline_insn,
18354 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18355
18356 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18357 ppc405-imul3): Adjust.
18358 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18359 * config/rs6000/476.md (ppc476-imul): Adjust.
18360 * config/rs6000/601.md (ppc601-imul): Adjust.
18361 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18362 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18363 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18364 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18365 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18366 Adjust.
18367 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18368 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18369 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18370 cell-imul): Adjust.
18371 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18372 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18373 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18374 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18375 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18376 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18377 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18378 power4-lmul, power4-imul, power4-imul3): Adjust.
18379 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18380 power5-lmul, power5-imul, power5-imul3): Adjust.
18381 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18382 power6-lmul, power6-imul, power6-imul3): Adjust.
18383 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18384 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18385
18386 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18387 rs64a-lmul): Adjust.
18388 * config/rs6000/titan.md (titan_imul): Adjust.
18389
18390 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18391
18392 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18393 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18394 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18395 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18396 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18397 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18398 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18399 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18400 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18401 * config/rs6000/titan.md: Delete nonsensical comment.
18402 (titan_imul): Add type imul3.
18403 (titan_mulhw): Remove type imul3; add type halfmul.
18404
18405 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18406
18407 * config/rs6000/rs6000.md (type): Reorder, reformat.
18408
18409 2014-05-23 Martin Jambor <mjambor@suse.cz>
18410
18411 PR tree-optimization/53787
18412 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18413 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18414 analysis_done, update all uses.
18415 * ipa-prop.c: Include domwalk.h
18416 (param_analysis_info): Removed.
18417 (param_aa_status): New type.
18418 (ipa_bb_info): Likewise.
18419 (func_body_info): Likewise.
18420 (ipa_get_bb_info): New function.
18421 (aa_overwalked): Likewise.
18422 (find_dominating_aa_status): Likewise.
18423 (parm_bb_aa_status_for_bb): Likewise.
18424 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18425 (load_from_unmodified_param): Accept func_body_info as a parameter
18426 instead of parms_ainfo.
18427 (parm_ref_data_preserved_p): Changed to use new param AA info.
18428 (parm_ref_data_pass_through_p): Likewise.
18429 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18430 (compute_complex_assign_jump_func): Changed to use new param AA info.
18431 (compute_complex_ancestor_jump_func): Likewise.
18432 (ipa_compute_jump_functions_for_edge): Likewise.
18433 (ipa_compute_jump_functions): Removed.
18434 (ipa_compute_jump_functions_for_bb): New function.
18435 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18436 declarations down.
18437 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18438 and info, moved variable declarations down.
18439 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18440 node and info.
18441 (ipa_analyze_stmt_uses): Likewise.
18442 (ipa_analyze_params_uses): Removed.
18443 (ipa_analyze_params_uses_in_bb): New function.
18444 (ipa_analyze_controlled_uses): Likewise.
18445 (free_ipa_bb_info): Likewise.
18446 (analysis_dom_walker): New class.
18447 (ipa_analyze_node): Handle node-specific forbidden analysis,
18448 initialize and free func_body_info, use dominator walker.
18449 (ipcp_modif_dom_walker): New class.
18450 (ipcp_transform_function): Create and free func_body_info, use
18451 ipcp_modif_dom_walker, moved a lot of functionality there.
18452
18453 2014-05-23 Marek Polacek <polacek@redhat.com>
18454 Jakub Jelinek <jakub@redhat.com>
18455
18456 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18457 * gcc.c (sanitize_spec_function): Likewise.
18458 * convert.c (convert_to_integer): Include "ubsan.h". Add
18459 floating-point to integer instrumentation.
18460 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18461 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18462 SANITIZE_NONDEFAULT.
18463 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18464 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18465 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18466 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18467 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18468 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18469 float/double/long double.
18470 (ubsan_instrument_float_cast): New function.
18471 * ubsan.h (ubsan_instrument_float_cast): Declare.
18472
18473 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18474
18475 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18476 predicate.
18477 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18478 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18479 Adjust for tailcalling through registers.
18480 * config/aarch64/aarch64.h (enum reg_class): New caller save
18481 register class.
18482 (REG_CLASS_NAMES): Likewise.
18483 (REG_CLASS_CONTENTS): Likewise.
18484 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18485 Allow tailcalling without decls.
18486
18487 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18488
18489 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18490 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18491
18492 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18493 gsi, and variables v_* to v*.
18494
18495 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18496
18497 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18498
18499 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18500
18501 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18502 * omp-low.c: Update accordingly.
18503
18504 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18505 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18506 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18507 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18508 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18509 GF_OMP_TARGET_KIND_UPDATE.
18510
18511 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18512 Explicitly enumerate the expected region types.
18513
18514 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
18515
18516 PR other/56955
18517 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
18518 documentation; the old documentation didn't clearly state the
18519 constraints on the contents of the pointed-to storage.
18520
18521 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18522
18523 Fix bootstrap error on ia64
18524 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18525 Return default value.
18526
18527 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
18528
18529 PR tree-optimization/54733
18530 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18531 (CMPNOP): Define.
18532 (find_bswap_or_nop_load): New.
18533 (find_bswap_1): Renamed to ...
18534 (find_bswap_or_nop_1): This. Also add support for memory source.
18535 (find_bswap): Renamed to ...
18536 (find_bswap_or_nop): This. Also add support for memory source and
18537 detection of bitwise operations equivalent to load in target
18538 endianness.
18539 (execute_optimize_bswap): Likewise. Also move its leading comment back
18540 in place and split statement transformation into ...
18541 (bswap_replace): This.
18542
18543 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18544
18545 PR rtl-optimization/61215
18546 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18547 simplify_gen_subreg until final substitution.
18548
18549 2014-05-23 Alan Modra <amodra@gmail.com>
18550
18551 PR target/61231
18552 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18553 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18554 Use "Y" constraint rather than "m".
18555
18556 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18557
18558 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18559 define.
18560 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18561 New function declaration.
18562 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18563 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18564 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18565 (aarch64_init_builtins) : Initialize builtins
18566 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18567 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18568 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18569 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18570 and __builtins_aarch64_set_fpsr.
18571 (aarch64_atomic_assign_expand_fenv): New function.
18572 * config/aarch64/aarch64.md (set_fpcr): New pattern.
18573 (get_fpcr) : Likewise.
18574 (set_fpsr) : Likewise.
18575 (get_fpsr) : Likewise.
18576 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18577 and UNSPECV_SET_FPSR.
18578 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18579 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18580 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18581
18582 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18583
18584 PR rtl-optimization/60969
18585 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18586 constraints. Set up mem cost for NO_REGS case.
18587
18588 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
18589
18590 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18591
18592 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
18593
18594 * config/darwin.c: Include "lto-section-names.h".
18595 (LTO_SEGMENT_NAME): Don't define.
18596 * config/i386/winnt.c: Include "lto-section-names.h".
18597 * lto-streamer.c: Include "lto-section-names.h".
18598 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18599 * lto-wrapper.c: Include "lto-section-names.h".
18600 (LTO_SECTION_NAME_PREFIX): Don't define.
18601 * lto-section-names.h: New file.
18602 * cgraphunit.c: Include "lto-section-names.h".
18603
18604 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
18605
18606 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18607
18608 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
18609
18610 PR target/61208
18611 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18612
18613 2014-05-22 Nick Clifton <nickc@redhat.com>
18614
18615 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18616
18617 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
18618
18619 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18620 -> (T)A transformation to integer types.
18621
18622 2014-05-22 Teresa Johnson <tejohnson@google.com>
18623
18624 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18625 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18626 (gcov_rewrite): Use gcov_nonruntime_assert.
18627 (gcov_open): Ditto.
18628 (gcov_write_words): Ditto.
18629 (gcov_write_length): Ditto.
18630 (gcov_read_words): Use gcov_nonruntime_assert, and remove
18631 gcc_assert from IN_LIBGCOV code.
18632 (gcov_read_summary): Use gcov_error to flag profile corruption.
18633 (gcov_sync): Use gcov_nonruntime_assert.
18634 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18635 (gcov_histo_index): Use gcov_nonruntime_assert.
18636 (static void gcov_histogram_merge): Ditto.
18637 (compute_working_sets): Ditto.
18638 * gcov-io.h (gcov_nonruntime_assert): Define.
18639 (gcov_error): Define for !IN_LIBGCOV
18640
18641 2014-05-22 Richard Biener <rguenther@suse.de>
18642
18643 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18644 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18645 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18646 and deallocation site.
18647 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18648 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18649 passing through the incoming points-to set.
18650 (handle_lhs_call): Use flags argument instead of recomputing it.
18651 (find_func_aliases_for_call): Call handle_lhs_call with proper
18652 call return flags.
18653
18654 2014-05-22 Jakub Jelinek <jakub@redhat.com>
18655
18656 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18657 all padding bits in REAL_VALUE_TYPE are cleared.
18658
18659 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18660
18661 Cleanup and improve multipass_dfa_lookahead_guard
18662 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18663 (core2i7_first_cycle_multipass_begin,)
18664 (core2i7_first_cycle_multipass_issue,)
18665 (core2i7_first_cycle_multipass_backtrack): Update signature.
18666 * config/ia64/ia64.c
18667 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18668 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18669 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18670 hook definition.
18671 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18672 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
18673 values.
18674 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18675 return values.
18676 * doc/tm.texi: Regenerate.
18677 * doc/tm.texi.in
18678 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18679 * haifa-sched.c (ready_try): Make signed to allow negative values.
18680 (rebug_ready_list_1): Update.
18681 (choose_ready): Simplify.
18682 (sched_extend_ready_list): Update.
18683
18684 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18685
18686 Remove IA64 speculation tweaking flags
18687 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18688 speculation tuning flags.
18689 (msched-prefer-non-data-spec-insns,)
18690 (msched-prefer-non-control-spec-insns): Obsolete options.
18691 * haifa-sched.c (choose_ready): Remove handling of
18692 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18693 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18694 and PREFER_NON_DATA_SPEC.
18695 * sel-sched.c (process_spec_exprs): Remove handling of
18696 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18697
18698 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18699
18700 Improve scheduling debug output
18701 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18702 (advance_one_cycle): Update.
18703 (schedule_insn, queue_to_ready): Add debug printouts.
18704 (debug_ready_list_1): New static function.
18705 (debug_ready_list): Update.
18706 (max_issue): Add debug printouts.
18707 (dump_insn_stream): New static function.
18708 (schedule_block): Use it. Also better indent printouts.
18709
18710 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18711
18712 Fix sched_insn debug counter
18713 * haifa-sched.c (schedule_insn): Update.
18714 (struct haifa_saved_data): Add nonscheduled_insns_begin.
18715 (save_backtrack_point, restore_backtrack_point): Update.
18716 (first_nonscheduled_insn): New static function.
18717 (queue_to_ready, choose_ready): Use it.
18718 (schedule_block): Init nonscheduled_insns_begin.
18719 (sched_emit_insn): Update.
18720
18721
18722 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18723
18724 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18725 to GENERAL_REGS.
18726 (aarch64_secondary_reload) : LikeWise.
18727 (aarch64_class_max_nregs) : Remove CORE_REGS.
18728 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18729 (REG_CLASS_NAMES) : Likewise.
18730 (REG_CLASS_CONTENTS) : LikeWise.
18731 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18732
18733 2014-05-21 Guozhi Wei <carrot@google.com>
18734
18735 PR target/61202
18736 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18737 constraint.
18738 (vqdmulhq_n_s16): Likewise.
18739
18740 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18741
18742 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18743
18744 2014-05-21 Marek Polacek <polacek@redhat.com>
18745
18746 PR sanitizer/61272
18747 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18748
18749 2014-05-21 Martin Jambor <mjambor@suse.cz>
18750
18751 * doc/invoke.texi (Optimize Options): Document parameters
18752 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18753 ipa-cp-array-index-hint-bonus.
18754
18755 2014-05-21 Mark Wielaard <mjw@redhat.com>
18756
18757 PR debug/16063
18758 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18759 version >= 3 or not strict DWARF.
18760 * langhooks.h (struct lang_hooks_for_types): Add
18761 enum_underlying_base_type.
18762 * langhooks.c (lhd_enum_underlying_base_type): New function.
18763 * gcc/langhooks.h (struct lang_hooks_for_types): Add
18764 enum_underlying_base_type.
18765 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18766 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18767 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18768
18769 2014-05-21 Richard Biener <rguenther@suse.de>
18770
18771 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18772
18773 2014-05-21 John Marino <gnugcc@marino.st>
18774
18775 * config.gcc (*-*-dragonfly*): New target.
18776 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18777 * configure: Regenerate.
18778 * config/dragonfly-stdint.h: New.
18779 * config/dragonfly.h: New.
18780 * config/dragonfly.opt: New.
18781 * config/i386/dragonfly.h: New.
18782 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18783
18784 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18785
18786 * tree.def (VOID_CST): New.
18787 * tree-core.h (TI_VOID): New.
18788 * tree.h (void_node): New.
18789 * tree.c (tree_node_structure_for_code, tree_code_size)
18790 (iterative_hash_expr): Handle VOID_CST.
18791 (build_common_tree_nodes): Initialize void_node.
18792
18793 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
18794
18795 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18796 functions.
18797 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18798
18799 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18800 more places.
18801
18802 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18803 flag_reorder_blocks_and_partition.
18804 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18805
18806 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
18807
18808 PR target/54236
18809 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
18810 constraints.
18811 (*addc_r_t): Add new insn_and_split.
18812
18813 2014-05-21 Jakub Jelinek <jakub@redhat.com>
18814
18815 PR middle-end/61252
18816 * omp-low.c (handle_simd_reference): New function.
18817 (lower_rec_input_clauses): Use it. Defer adding reference
18818 initialization even for reduction without placeholder if in simd,
18819 handle it properly later on.
18820
18821 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18822
18823 PR tree-optimization/60899
18824 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18825 assume all static symbols will have definition wile parsing and
18826 check the do have definition later in compilation; check that
18827 variable referring symbol will be output before concluding that
18828 reference is safe; be conservative for referring local statics;
18829 be more precise about when comdat is output in other partition.
18830
18831 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18832
18833 PR bootstrap/60984
18834 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18835 parameter.
18836 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18837 (ipa_inline): Loop inline_to_all_callers until no more aliases
18838 are removed.
18839
18840 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18841
18842 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18843 set writeonly flag only for vars actually written to.
18844
18845 2014-05-20 Dehao Chen <dehao@google.com>
18846
18847 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
18848 and callee count to get clone count.
18849 * tree-inline.c (expand_call_inline): Use callee count instead of bb
18850 count in copy_body.
18851
18852 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18853
18854 PR rtl-optimization/61243
18855 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
18856
18857 2014-05-20 Xinliang David Li <davidxl@google.com>
18858
18859 * cgraphunit.c (walk_polymorphic_call_targets): Add
18860 dbgcnt and fopt-info support.
18861 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
18862 * ipa-devirt.c (ipa_devirt): Ditto.
18863 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
18864 * ipa.c (walk_polymorphic_call_targets): Ditto.
18865 * gimple-fold.c (fold_gimple_assign): Ditto.
18866 (gimple_fold_call): Ditto.
18867 * dbgcnt.def: New counter.
18868
18869 2014-05-20 DJ Delorie <dj@redhat.com>
18870
18871 * config/msp430/msp430.md (split): Don't allow subregs when
18872 splitting SImode adds.
18873 (andneghi): Fix subtraction logic.
18874 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18875
18876 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18877
18878 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18879 symbols.
18880 * except.c (switch_to_exception_section, resolve_unique_section,
18881 get_named_text_section, default_function_rodata_section,
18882 align_variable, get_block_for_decl, default_section_type_flags):
18883 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18884 * symtab.c (symtab_add_to_same_comdat_group,
18885 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18886 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18887 Likewise.
18888 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18889 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18890 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18891 (c6x_function_in_section_p): Likewise.
18892 * config/darwin.c (machopic_select_section): Likewise.
18893 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18894 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18895 * config/mep/mep.c (mep_select_section): LIkewise.
18896 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18897
18898 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18899
18900 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18901 EH region of calls to pure functions that can throw an exception.
18902 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18903 (copy_reference_ops_from_call): Also copy the EH region of the call if
18904 it can throw an exception.
18905
18906 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18907
18908 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
18909 nested VEC_SELECTs that are inverses of each other.
18910
18911 2014-05-20 Richard Biener <rguenther@suse.de>
18912
18913 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
18914 (extract_and_process_scc_for_name): not here.
18915 (cond_dom_walker::before_dom_children): Only process
18916 stmts that end the BB in interesting ways.
18917 (run_scc_vn): Mark param uses as visited.
18918
18919 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18920
18921 * config/arm/arm.md (arith_shiftsi): Do not predicate for
18922 arm_restrict_it.
18923
18924 2014-05-20 Nick Clifton <nickc@redhat.com>
18925
18926 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18927 (msp430_gimplify_va_arg_expr): New function.
18928 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
18929
18930 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
18931 operand 0 in order to prevent confusion about the number of
18932 registers involved.
18933
18934 2014-05-20 Richard Biener <rguenther@suse.de>
18935
18936 PR tree-optimization/61221
18937 * tree-ssa-pre.c (el_to_update): Remove.
18938 (eliminate_dom_walker::before_dom_children): Handle released
18939 VDEFs by value-numbering them to the associated VUSE. Update
18940 stmt immediately for substituted call address.
18941 (eliminate): Remove delayed stmt updating code.
18942 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
18943 possibly late re-numbered vuses.
18944 (vn_reference_lookup_2): Adjust.
18945 (vn_reference_lookup_pieces): Likewise.
18946 (vn_reference_lookup): Likewise.
18947
18948 2014-05-20 Richard Biener <rguenther@suse.de>
18949
18950 * config.gcc: Remove need_64bit_hwint.
18951 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
18952 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
18953 it to be true.
18954 * config.in: Regenerate.
18955 * configure: Likewise.
18956
18957 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
18958
18959 * doc/extend.texi: Create Label Attributes section,
18960 move all label attributes into it and reference it.
18961
18962 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
18963
18964 * arm.c (thumb1_reorg): When scanning backwards skip anything
18965 that's not a proper insn.
18966
18967 2014-05-19 Richard Biener <rguenther@suse.de>
18968
18969 PR tree-optimization/61221
18970 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18971 Do nothing for unreachable blocks.
18972 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
18973 Improve unreachability detection.
18974
18975 2014-05-19 Richard Biener <rguenther@suse.de>
18976
18977 PR tree-optimization/61209
18978 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
18979
18980 2014-05-19 Nick Clifton <nickc@redhat.com>
18981
18982 * except.c (init_eh): Fix computation of builtin setjmp buffer
18983 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
18984
18985 2014-05-19 Richard Biener <rguenther@suse.de>
18986
18987 PR tree-optimization/61184
18988 * tree-vrp.c (is_negative_overflow_infinity): Use
18989 TREE_OVERFLOW_P and do that check first.
18990 (is_positive_overflow_infinity): Likewise.
18991 (is_overflow_infinity): Likewise.
18992 (vrp_operand_equal_p): Properly treat operands with
18993 differing overflow as not equal.
18994
18995 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
18996
18997 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
18998 shift simplification where it was intended.
18999
19000 2014-05-19 Christian Bruel <christian.bruel@st.com>
19001
19002 PR target/61195
19003 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19004
19005 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19006
19007 PR target/61084
19008 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19009 than wide_int.
19010
19011 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19012
19013 * reg-notes.def (CROSSING_JUMP): Likewise.
19014 * rtl.h (rtx_def): Update comment for jump flag.
19015 (CROSSING_JUMP_P): Define.
19016 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19017 of a REG_CROSSING_JUMP note.
19018 * cfghooks.c (tidy_fallthru_edges): Likewise.
19019 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19020 * emit-rtl.c (try_split): Likewise.
19021 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19022 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19023 * jump.c (redirect_jump_2): Likewise.
19024 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19025 (relax_delay_slots): Likewise.
19026 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19027 (bbit_di): Likewise.
19028 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19029 * config/sh/sh.md (jump_compact): Likewise.
19030 * bb-reorder.c (rotate_loop): Likewise.
19031 (pass_duplicate_computed_gotos::execute): Likewise.
19032 (add_reg_crossing_jump_notes): Rename to...
19033 (update_crossing_jump_flags): ...this.
19034 (pass_partition_blocks::execute): Update accordingly.
19035
19036 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19037
19038 * tree.h: Remove extraneous template <>.
19039
19040 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19041
19042 * ipa.c (symtab_remove_unreachable_nodes): Remove
19043 symbol from comdat group if its body was eliminated.
19044 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19045 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19046 (symtab_unregister_node): ... this one.
19047 (verify_symtab_base): More strict checking of comdats.
19048 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19049
19050 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19051
19052 * tree-pass.h (make_pass_ipa_comdats): New pass.
19053 * timevar.def (TV_IPA_COMDATS): New timevar.
19054 * passes.def (pass_ipa_comdats): Add.
19055 * Makefile.in (OBJS): Add ipa-comdats.o
19056 * ipa-comdats.c: New file.
19057
19058 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19059
19060 * ipa.c (update_visibility_by_resolution_info): New function.
19061 (function_and_variable_visibility): Use it.
19062
19063 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19064
19065 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19066 New functions.
19067 (FOR_EACH_DEFINED_SYMBOL): New macro.
19068 (varpool_first_static_initializer, varpool_next_static_initializer,
19069 varpool_first_defined_variable, varpool_next_defined_variable):
19070 Fix comments.
19071 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19072
19073 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19074
19075 * ggc-page.c (ggc_handle_finalizers): Add comment.
19076
19077 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19078
19079 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19080 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19081 (ggc_internal_cleared_alloc): Likewise.
19082 * ggc-page.c (finalizer): New class.
19083 (vec_finalizer): Likewise.
19084 (globals::finalizers): New member.
19085 (globals::vec_finalizers): Likewise.
19086 (ggc_internal_alloc): Record the finalizer if any for the block being
19087 allocated.
19088 (ggc_handle_finalizers): New function.
19089 (ggc_collect): Call ggc_handle_finalizers.
19090 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19091 finalizer.
19092 (ggc_internal_cleared_alloc): Likewise.
19093 (finalize): New function.
19094 (need_finalization_p): Likewise.
19095 (ggc_alloc): Install the type's destructor as the finalizer if it
19096 might do something.
19097 (ggc_cleared_alloc): Likewise.
19098 (ggc_vec_alloc): Likewise.
19099 (ggc_cleared_vec_alloc): Likewise.
19100
19101 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19102
19103 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19104
19105 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19106
19107 * alias.c (record_alias_subset): Adjust.
19108 * bitmap.c (bitmap_element_allocate): Likewise.
19109 (bitmap_gc_alloc_stat): Likewise.
19110 * cfg.c (init_flow): Likewise.
19111 (alloc_block): Likewise.
19112 (unchecked_make_edge): Likewise.
19113 * cfgloop.c (alloc_loop): Likewise.
19114 (flow_loops_find): Likewise.
19115 (rescan_loop_exit): Likewise.
19116 * cfgrtl.c (init_rtl_bb_info): Likewise.
19117 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19118 (cgraph_allocate_node): Likewise.
19119 (cgraph_create_edge_1): Likewise.
19120 (cgraph_allocate_init_indirect_info): Likewise.
19121 * cgraphclones.c (cgraph_clone_edge): Likewise.
19122 * cgraphunit.c (add_asm_node): Likewise.
19123 (init_lowered_empty_function): Likewise.
19124 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19125 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19126 (alpha_use_linkage): Likewise.
19127 * config/arc/arc.c (arc_init_machine_status): Likewise.
19128 * config/arm/arm.c (arm_init_machine_status): Likewise.
19129 * config/avr/avr.c (avr_init_machine_status): Likewise.
19130 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19131 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19132 * config/cris/cris.c (cris_init_machine_status): Likewise.
19133 * config/darwin.c (machopic_indirection_name): Likewise.
19134 (darwin_build_constant_cfstring): Likewise.
19135 (darwin_enter_string_into_cfstring_table): Likewise.
19136 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19137 * config/frv/frv.c (frv_init_machine_status): Likewise.
19138 * config/i386/i386.c (get_dllimport_decl): Likewise.
19139 (ix86_init_machine_status): Likewise.
19140 (assign_386_stack_local): Likewise.
19141 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19142 (i386_pe_maybe_record_exported_symbol): Likewise.
19143 (i386_pe_record_stub): Likewise.
19144 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19145 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19146 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19147 (m32c_note_pragma_address): Likewise.
19148 * config/mep/mep.c (mep_init_machine_status): Likewise.
19149 (mep_note_pragma_flag): Likewise.
19150 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19151 (mips16_local_alias): Likewise.
19152 (mips_init_machine_status): Likewise.
19153 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19154 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19155 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19156 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19157 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19158 * config/pa/pa.c (pa_init_machine_status): Likewise.
19159 (pa_get_deferred_plabel): Likewise.
19160 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19161 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19162 (rs6000_init_machine_status): Likewise.
19163 (output_toc): Likewise.
19164 * config/s390/s390.c (s390_init_machine_status): Likewise.
19165 * config/score/score.c (score_output_external): Likewise.
19166 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19167 * config/spu/spu.c (spu_init_machine_status): Likewise.
19168 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19169 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19170 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19171 * coverage.c (coverage_end_function): Likewise.
19172 * dbxout.c (dbxout_init): Likewise.
19173 * doc/gty.texi: Don't mention variable_size attribute.
19174 * dwarf2cfi.c (new_cfi): Adjust.
19175 (new_cfi_row): Likewise.
19176 (copy_cfi_row): Likewise.
19177 (create_cie_data): Likewise.
19178 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19179 (new_loc_descr): Likewise.
19180 (find_AT_string_in_table): Likewise.
19181 (add_addr_table_entry): Likewise.
19182 (new_die): Likewise.
19183 (add_var_loc_to_decl): Likewise.
19184 (clone_die): Likewise.
19185 (clone_as_declaration): Likewise.
19186 (break_out_comdat_types): Likewise.
19187 (new_loc_list): Likewise.
19188 (add_loc_descr_to_each): Likewise.
19189 (add_location_or_const_value_attribute): Likewise.
19190 (add_linkage_name): Likewise.
19191 (lookup_filename): Likewise.
19192 (dwarf2out_var_location): Likewise.
19193 (new_line_info_table): Likewise.
19194 (dwarf2out_init): Likewise.
19195 (mem_loc_descriptor): Likewise.
19196 (loc_descriptor): Likewise.
19197 (add_const_value_attribute): Likewise.
19198 (tree_add_const_value_attribute): Likewise.
19199 (comp_dir_string): Likewise.
19200 (dwarf2out_vms_debug_main_pointer): Likewise.
19201 (string_cst_pool_decl): Likewise.
19202 * emit-rtl.c (set_mem_attrs): Likewise.
19203 (get_reg_attrs): Likewise.
19204 (start_sequence): Likewise.
19205 (init_emit): Likewise.
19206 (init_emit_regs): Likewise.
19207 * except.c (init_eh_for_function): Likewise.
19208 (gen_eh_region): Likewise.
19209 (gen_eh_region_catch): Likewise.
19210 (gen_eh_landing_pad): Likewise.
19211 (add_call_site): Likewise.
19212 * function.c (add_frame_space): Likewise.
19213 (insert_temp_slot_address): Likewise.
19214 (assign_stack_temp_for_type): Likewise.
19215 (get_hard_reg_initial_val): Likewise.
19216 (allocate_struct_function): Likewise.
19217 (prepare_function_start): Likewise.
19218 (types_used_by_var_decl_insert): Likewise.
19219 * gengtype.c (variable_size_p): Remove function.
19220 (enum alloc_quantity): Remove enum.
19221 (write_typed_alloc_def): Remove function.
19222 (write_typed_struct_alloc_def): Likewise.
19223 (write_typed_typedef_alloc_def): Likewise.
19224 (write_typed_alloc_defns): Likewise.
19225 (main): Adjust.
19226 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19227 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19228 * ggc.h (ggc_alloc): new function.
19229 (ggc_cleared_alloc): Likewise.
19230 (ggc_vec_alloc): Template on type of vector element, and remove
19231 element size argument.
19232 (ggc_cleared_vec_alloc): Likewise.
19233 * gimple.c (gimple_build_omp_for): Adjust.
19234 (gimple_copy): Likewise.
19235 * ipa-cp.c (get_replacement_map): Likewise.
19236 (find_aggregate_values_for_callers_subset): Likewise.
19237 (known_aggs_to_agg_replacement_list): Likewise.
19238 * ipa-devirt.c (get_odr_type): Likewise.
19239 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19240 (read_agg_replacement_chain): Likewise.
19241 * loop-iv.c (get_simple_loop_desc): Likewise.
19242 * lto-cgraph.c (input_node_opt_summary): Likewise.
19243 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19244 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19245 (input_eh_region): Likewise.
19246 (input_eh_lp): Likewise.
19247 (input_cfg): Likewise.
19248 * optabs.c (set_optab_libfunc): Likewise.
19249 (init_tree_optimization_optabs): Likewise.
19250 (set_conv_libfunc): Likewise.
19251 * passes.c (do_per_function_toporder): Likewise.
19252 * rtl.h: Don't use variable_size gty attribute.
19253 * sese.c (if_region_set_false_region): Adjust.
19254 * stringpool.c (gt_pch_save_stringpool): Likewise.
19255 * target-globals.c (save_target_globals): Likewise.
19256 * toplev.c (general_init): Likewise.
19257 * trans-mem.c (record_tm_replacement): Likewise.
19258 (split_bb_make_tm_edge): Likewise.
19259 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19260 * tree-data-ref.h (lambda_vector_new): Likewise.
19261 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19262 * tree-iterator.c (tsi_link_before): Likewise.
19263 (tsi_link_after): Likewise.
19264 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19265 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19266 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19267 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19268 * tree-ssa.c (init_tree_ssa): Adjust.
19269 * tree-ssanames.c (set_range_info): Likewise.
19270 (get_ptr_info): Likewise.
19271 (duplicate_ssa_name_ptr_info): Likewise.
19272 (duplicate_ssa_name_range_info): Likewise.
19273 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19274 (unpack_ts_fixed_cst_value_fields): Likewise.
19275 * tree.c (build_fixed): Likewise.
19276 (build_real): Likewise.
19277 (build_string): Likewise.
19278 (decl_priority_info): Likewise.
19279 (decl_debug_expr_insert): Likewise.
19280 (decl_value_expr_insert): Likewise.
19281 (decl_debug_args_insert): Likewise.
19282 (type_hash_add): Likewise.
19283 (build_omp_clause): Likewise.
19284 * ubsan.c (decl_for_type_insert): Likewise.
19285 * varasm.c (get_unnamed_section): Likewise.
19286 (get_noswitch_section): Likewise.
19287 (get_section): Likewise.
19288 (get_block_for_section): Likewise.
19289 (create_block_symbol): Likewise.
19290 (build_constant_desc): Likewise.
19291 (create_constant_pool): Likewise.
19292 (force_const_mem): Likewise.
19293 (record_tm_clone_pair): Likewise.
19294 * varpool.c (varpool_create_empty_node): Likewise.
19295
19296 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19297
19298 * dwarf2out.c (tree_add_const_value_attribute): Call
19299 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19300 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19301 instead of ggc_internal_<x>alloc_stat.
19302 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19303 (ggc_realloc): Likewise.
19304 * ggc-none.c (ggc_internal_alloc): Likewise.
19305 (ggc_internal_cleared_alloc): Likewise.
19306 * ggc-page.c: Likewise.
19307 * ggc.h (ggc_internal_alloc_stat): Likewise.
19308 (ggc_internal_alloc): Remove macro.
19309 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19310 (ggc_internal_cleared_alloc): Remove macro.
19311 (GGC_RESIZEVEC): Adjust.
19312 (ggc_resizevar): Remove macro.
19313 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19314 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19315 (ggc_internal_vec_cleared_alloc): Remove macro.
19316 (ggc_alloc_atomic_stat): Drop _stat suffix.
19317 (ggc_alloc_atomic): Remove macro.
19318 (ggc_alloc_cleared_atomic): Remove macro.
19319 (ggc_alloc_string_stat): Drop _stat suffix.
19320 (ggc_alloc_string): Remove macro.
19321 (ggc_alloc_rtx_def_stat): Adjust.
19322 (ggc_alloc_tree_node_stat): Likewise.
19323 (ggc_alloc_cleared_tree_node_stat): Likewise.
19324 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19325 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19326 * gimple.c (gimple_build_omp_for): Likewise.
19327 (gimple_copy): Likewise.
19328 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19329 * toplev.c (realloc_for_line_map): Adjust.
19330 * tree-data-ref.h (lambda_vector_new): Likewise.
19331 * tree-phinodes.c (allocate_phi_node): Likewise.
19332 * tree.c (grow_tree_vec_stat): Likewise.
19333 * vec.h (va_gc::reserve): Adjust.
19334
19335 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19336
19337 * config/microblaze/microblaze.c (break_handler): New Declaration.
19338 (microblaze_break_function_p,microblaze_is_break_handler): New.
19339 (compute_frame_size): Use microblaze_break_function_p.
19340 Add the test of break_handler.
19341 (microblaze_function_prologue) : Add the test of variable
19342 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19343 (microblaze_function_epilogue) : Add the test of break_handler.
19344 (microblaze_globalize_label) : Add the test of break_handler.
19345 Check the name by BREAK_HANDLER_NAME.
19346
19347 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19348
19349 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19350 microblaze_is_break_handler test.
19351 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19352 Use SYMBOL_REF_DECL.
19353
19354 * config/microblaze/microblaze-protos.h
19355 (microblaze_break_function_p,microblaze_is_break_handler):
19356 New Declaration.
19357
19358 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19359 new MicroBlaze break_handler functions.
19360
19361 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19362
19363 * doc/extend.texi (Size of an asm): Move node text according
19364 to its @menu entry position.
19365
19366 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19367
19368 PR tree-optimization/61140
19369 PR tree-optimization/61150
19370 PR tree-optimization/61197
19371 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19372
19373 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19374
19375 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19376
19377 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19378
19379 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19380 __SIZEOF_INT128__ is defined.
19381
19382 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19383
19384 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19385 (rs6000_delegitimize_address): Use it.
19386
19387 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19388
19389 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19390 inplace argument. Store the new address in the original MEM when true.
19391 * emit-rtl.c (change_address_1): Likewise.
19392 (adjust_address_1, adjust_automodify_address_1, offset_address):
19393 Update accordingly.
19394 * rtl.h (plus_constant): Add an inplace argument.
19395 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19396 when true. Avoid generating (plus X (const_int 0)).
19397 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19398 in-place. Pass true to plus_constant.
19399 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19400
19401 2014-05-16 Dehao Chen <dehao@google.com>
19402
19403 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19404
19405 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19406
19407 PR target/54089
19408 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19409 patterns.
19410 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19411
19412 2014-05-16 Dehao Chen <dehao@google.com>
19413
19414 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19415 optimize_function_for_size_p.
19416 * regs.h (REG_FREQ_FROM_BB): Likewise.
19417
19418 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19419
19420 PR target/51244
19421 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19422 negt_reg_operand cases.
19423 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19424 predicate.
19425 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19426
19427 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19428
19429 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19430 target variants.
19431
19432 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19433
19434 Revert:
19435 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19436
19437 * tree-cfg.c (dump_function_to_file): Dump the return type of
19438 functions, in a line to itself before the function body, mimicking
19439 the layout of a C function.
19440
19441 2014-05-16 Dehao Chen <dehao@google.com>
19442
19443 * cfghooks.c (make_forwarder_block): Use direct computation to
19444 get fall-through edge's count and frequency.
19445
19446 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19447
19448 * config/arc/arc.c (arc_init): Fix typo in error message.
19449 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19450 (split_stack_prologue_scratch_regno): Likewise.
19451 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19452 word from error message.
19453
19454 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19455
19456 * ira-costs.c: Fix typo in comment.
19457
19458 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19459
19460 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19461
19462 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19463
19464 * varpool.c (dump_varpool_node): Dump write-only flag.
19465 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19466 write-only flag.
19467 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19468 write-only variables.
19469 * ipa.c (process_references): New function.
19470 (set_readonly_bit): New function.
19471 (set_writeonly_bit): New function.
19472 (clear_addressable_bit): New function.
19473 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19474 fix handling of aliases.
19475 * cgraph.h (struct varpool_node): Add writeonly flag.
19476
19477 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19478
19479 PR rtl-optimization/60969
19480 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19481 Calculate costs for this case.
19482
19483 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19484
19485 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19486 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19487
19488 2014-05-16 Richard Biener <rguenther@suse.de>
19489
19490 PR tree-optimization/61194
19491 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19492 bool patterns ending in a COND_EXPR.
19493
19494 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19495
19496 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19497
19498 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19499
19500 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19501 where we were unable to cost an RTX.
19502
19503 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19504
19505 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19506 HIGH, LO_SUM.
19507
19508 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19509 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19510
19511 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19512
19513 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19514 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19515
19516 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19517 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19518
19519 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19520 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19521
19522 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19523 operators.
19524
19525 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19526 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19527
19528 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19529 DIV/MOD.
19530
19531 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19532 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19533
19534 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19535 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19536
19537 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19538 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19539
19540 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19541 rotates and shifts.
19542
19543 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19544 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19545
19546 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19547 ZERO_EXTEND and SIGN_EXTEND better.
19548
19549 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19550 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19551
19552 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19553 logical operations.
19554
19555 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19556 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19557
19558 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19559 costs when costing loads and stores to memory.
19560
19561 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19562 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
19563
19564 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19565 for SET RTX.
19566
19567 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19568
19569 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19570
19571 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19572 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19573
19574 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19575 to...
19576 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19577 well formed.
19578 (aarch64_rtx_mult_cost): New.
19579 (aarch64_rtx_costs): Use it, refactor as appropriate.
19580
19581 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19582 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19583
19584 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19585 emit instructions, return number of instructions which would
19586 be emitted.
19587 (aarch64_add_constant): Update call to aarch64_build_constant.
19588 (aarch64_output_mi_thunk): Likewise.
19589 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19590 a CONST_DOUBLE.
19591
19592 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19593
19594 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19595 (TARGET_RTX_COSTS): Call it.
19596
19597 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19598
19599 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19600 (cortexa57_vector_cost): Likewise.
19601 (cortexa57_tunings): Use them.
19602
19603 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19604
19605 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19606 (cpu_addrcost_table): Use it.
19607 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19608 (aarch64_address_cost): Rewrite using aarch64_classify_address,
19609 move it.
19610
19611 2014-05-16 Richard Biener <rguenther@suse.de>
19612
19613 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19614 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19615 (visit_phi): Ignore edges marked as not executable.
19616 (class cond_dom_walker): New.
19617 (cond_dom_walker::before_dom_children): Value-number
19618 control statements and mark successor edges as not
19619 executable if possible.
19620 (run_scc_vn): First walk all control statements in
19621 dominator order, marking edges as not executable.
19622 * tree-inline.c (copy_edges_for_bb): Be not confused
19623 about random edge flags.
19624
19625 2014-05-16 Richard Biener <rguenther@suse.de>
19626
19627 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19628
19629 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
19630
19631 PR target/61193
19632 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19633 (__TM_simple_begin): Use it.
19634 (__TM_begin): Likewise.
19635
19636 2014-05-15 Martin Jambor <mjambor@suse.cz>
19637
19638 PR ipa/61085
19639 * ipa-prop.c (update_indirect_edges_after_inlining): Check
19640 type_preserved flag when the indirect edge is polymorphic.
19641
19642 2014-05-15 Martin Jambor <mjambor@suse.cz>
19643
19644 PR tree-optimization/61090
19645 * tree-sra.c (sra_modify_expr): Pass the current gsi to
19646 build_ref_for_model.
19647
19648 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19649
19650 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19651 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19652
19653 2014-05-15 Jakub Jelinek <jakub@redhat.com>
19654
19655 PR tree-optimization/61158
19656 * fold-const.c (fold_binary_loc): If X is zero-extended and
19657 shiftc >= prec, make sure zerobits is all ones instead of
19658 invoking undefined behavior.
19659
19660 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19661
19662 * regcprop.h: New file.
19663 * regcprop.c (skip_debug_insn_p): New decl.
19664 (replace_oldest_value_reg): Check skip_debug_insn_p.
19665 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19666 * shrink-wrap.c: Include regcprop.h.
19667 (prepare_shrink_wrap): Call
19668 copyprop_hardreg_forward_bb_without_debug_insn.
19669
19670 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19671
19672 * shrink-wrap.h: Update comment.
19673 * shrink-wrap.c: Update comment.
19674 (next_block_for_reg): Rename to live_edge_for_reg.
19675 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19676 (move_insn_for_shrink_wrap): Split live_edge.
19677 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19678
19679 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19680
19681 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19682 Delete.
19683 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19684 * config/sparc/sparc.md (fptype_ut699): New attribute.
19685 (in_branch_delay): Return false if -mfix-ut699 is specified and
19686 fptype_ut699 is set to single.
19687 (truncdfsf2): Add fptype_ut699 attribute.
19688 (fix_truncdfsi2): Likewise.
19689 (floatsisf2): Change fptype attribute.
19690 (fix_truncsfsi2): Likewise.
19691 (negtf2_notv9): Delete.
19692 (negtf2_v9): Likewise.
19693 (negtf2_hq): New instruction.
19694 (negtf2): New instruction and splitter.
19695 (negdf2_notv9): Rewrite.
19696 (abstf2_notv9): Delete.
19697 (abstf2_hq_v9): Likewise.
19698 (abstf2_v9): Likewise.
19699 (abstf2_hq): New instruction.
19700 (abstf2): New instruction and splitter.
19701 (absdf2_notv9): Rewrite.
19702
19703 2014-05-14 Cary Coutant <ccoutant@google.com>
19704
19705 PR debug/61013
19706 * opts.c (common_handle_option): Don't special-case "-g".
19707 (set_debug_level): Default to at least level 2 with "-g".
19708
19709 2014-05-14 DJ Delorie <dj@redhat.com>
19710
19711 * config/msp430/msp430.c (msp430_builtin): Add
19712 MSP430_BUILTIN_DELAY_CYCLES.
19713 (msp430_init_builtins): Register void __delay_cycles(long long).
19714 (msp430_builtin_decl): Add it.
19715 (cg_magic_constant): New.
19716 (msp430_expand_delay_cycles): New.
19717 (msp430_expand_builtin): Call it.
19718 (msp430_print_operand_raw): Change integer printing from "int" to
19719 HOST_WIDE_INT.
19720 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19721 (delay_cycles_start): New.
19722 (delay_cycles_end): New.
19723 (delay_cycles_32): New.
19724 (delay_cycles_32x): New.
19725 (delay_cycles_16): New.
19726 (delay_cycles_16x): New.
19727 (delay_cycles_2): New.
19728 (delay_cycles_1): New.
19729 * doc/extend.texi: Document __delay_cycles().
19730
19731 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
19732
19733 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19734 length attribute computation.
19735
19736 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
19737
19738 PR debug/61188
19739 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19740
19741 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
19742
19743 PR target/61084
19744 * config/sparc/sparc.md: Fix types of low and high in DI constant
19745 splitter. Use gen_int_mode in some other splitters.
19746
19747 2014-05-14 Martin Jambor <mjambor@suse.cz>
19748
19749 PR ipa/60897
19750 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19751
19752 2014-05-14 James Norris <jnorris@codesourcery.com>
19753
19754 * omp-low.c (expand_parallel_call): Remove shadow variable.
19755 (expand_omp_taskreg): Likewise.
19756
19757 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
19758
19759 * common/config/i386/i386-common.c
19760 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19761 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19762 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19763 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19764 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19765 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19766 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19767 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19768 xsavecintrin.h, xsavesintrin.h.
19769 (x86_64-*-*): Ditto.
19770 * config/i386/clflushoptintrin.h: New.
19771 * config/i386/xsavecintrin.h: Ditto.
19772 * config/i386/xsavesintrin.h: Ditto.
19773 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19774 (bit_XSAVES): Ditto.
19775 (bit_XSAVES): Ditto.
19776 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19777 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19778 -mno-clflushopt.
19779 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19780 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19781 OPTION_MASK_ISA_XSAVES.
19782 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19783 -mxsavec, -mxsaves.
19784 (PTA_CLFLUSHOPT) Define.
19785 (PTA_XSAVEC): Ditto.
19786 (PTA_XSAVES): Ditto.
19787 (ix86_option_override_internal): Handle new options.
19788 (ix86_valid_target_attribute_inner_p): Ditto.
19789 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19790 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19791 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19792 (bdesc_special_args): Add __builtin_ia32_xsaves,
19793 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19794 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19795 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19796 (ix86_expand_builtin): Handle new builtins.
19797 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19798 (TARGET_CLFLUSHOPT_P): Ditto.
19799 (TARGET_XSAVEC): Ditto.
19800 (TARGET_XSAVEC_P): Ditto.
19801 (TARGET_XSAVES): Ditto.
19802 (TARGET_XSAVES_P): Ditto.
19803 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19804 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19805 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19806 (ANY_XRSTOR): New.
19807 (ANY_XRSTOR64): Ditto.
19808 (xrstor): Ditto.
19809 (xrstor): Change into <xrstor>.
19810 (xrstor_rex64): Change into <xrstor>_rex64.
19811 (xrstor64): Change into <xrstor>64
19812 (clflushopt): New.
19813 * config/i386/i386.opt (mclflushopt): New.
19814 (mxsavec): Ditto.
19815 (mxsaves): Ditto.
19816 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19817 xsavecintrin.h.
19818 * doc/invoke.texi: Document new options.
19819
19820 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19821
19822 PR rtl-optimization/60866
19823 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19824 Default it to -1. Pass it down to init_simplejump_data.
19825 (init_simplejump_data): New parameter old_seqno. Pass it down
19826 to get_seqno_for_a_jump.
19827 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
19828 initializing new jump seqno as a last resort. Add comment.
19829 (sel_redirect_edge_and_branch): Save old seqno of the conditional
19830 jump and pass it down to sel_init_new_insn.
19831 (sel_redirect_edge_and_branch_force): Likewise.
19832
19833 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
19834
19835 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19836 shifted values to avoid build warning.
19837
19838 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19839
19840 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19841 * cfgrtl.c (rtl_merge_blocks): Fix comment.
19842 (cfg_layout_merge_blocks): Likewise.
19843 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19844
19845 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19846
19847 PR rtl-optimization/60901
19848 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
19849 bb predecessor belongs to the same scheduling region. Adjust comment.
19850
19851 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
19852
19853 * doc/sourcebuild.texi: (dfp_hw): Document.
19854 (p8vector_hw): Likewise.
19855 (powerpc_eabi_ok): Likewise.
19856 (powerpc_elfv2): Likewise.
19857 (powerpc_htm_ok): Likewise.
19858 (ppc_recip_hw): Likewise.
19859 (vsx_hw): Likewise.
19860
19861 2014-05-13 Cary Coutant <ccoutant@google.com>
19862
19863 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
19864
19865 2014-05-13 David Malcolm <dmalcolm@redhat.com>
19866
19867 * gengtype-parse.c (require3): Eliminate in favor of...
19868 (require4): New.
19869 (require_template_declaration): Update to support optional single *
19870 on a type.
19871
19872 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19873 (create_user_defined_type): Handle a single level of explicit
19874 pointerness within template arguments.
19875 (struct write_types_data): Add field "kind".
19876 (filter_type_name): Handle "*" character.
19877 (write_user_func_for_structure_ptr): Require a write_types_data
19878 rather than just a prefix string, so that we can look up the kind
19879 of the wtd and use it as an index into wrote_user_func_for_ptr,
19880 ensuring that such functions are written at most once. Support
19881 subclasses by invoking the marking function of the ultimate base class.
19882 (write_user_func_for_structure_body): Require a write_types_data
19883 rather than just a prefix string, so that we can pass this to
19884 write_user_func_for_structure_ptr.
19885 (write_func_for_structure): Likewise.
19886 (ggc_wtd): Add initializer of new "kind" field.
19887 (pch_wtd): Likewise.
19888
19889 * gengtype.h (enum write_types_kinds): New.
19890 (struct type): Add field wrote_user_func_for_ptr to the "s"
19891 union member.
19892
19893 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19894
19895 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19896 instead of const_binop.
19897 (fold_binary_loc): Likewise.
19898
19899 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19900
19901 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19902 calculation to match get_ref_base_and_extent.
19903
19904 2014-05-13 Catherine Moore <clm@codesourcery.com>
19905 Sandra Loosemore <sandra@codesourcery.com>
19906
19907 * configure.ac: Fix assembly for explicit JALR relocation check.
19908 * configure: Regenerate.
19909
19910 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19911
19912 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
19913 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
19914 Remove associated type declarations and initialisations.
19915 (arm_expand_neon_builtin): Likewise.
19916 (neon_emit_pair_result_insn): Delete.
19917 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
19918 * config/arm/neon.md (neon_vtrn<mode>): Delete.
19919 (neon_vzip<mode>): Likewise.
19920 (neon_vuzp<mode>): Likewise.
19921
19922 2014-05-13 Richard Biener <rguenther@suse.de>
19923
19924 PR ipa/60973
19925 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
19926 it needs revisiting whether the call still may be tail-called.
19927
19928 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19929
19930 * rtl.def (SYMBOL_REF): Remove middle "0" field.
19931 * rtl.h (block_symbol): Reduce number of fields to 2.
19932 (rtx_def): Add u2.symbol_ref_flags.
19933 (SYMBOL_REF_FLAGS): Use it.
19934 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
19935 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
19936 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
19937 Lower index of SYMBOL_REF_DATA.
19938 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
19939 Print SYMBOL_REF_FLAGS at the same time.
19940 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
19941
19942 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19943
19944 * rtl.def (VAR_LOCATION): Remove "i" field.
19945 * rtl.h (rtx_def): Add u2.var_location_status.
19946 (PAT_VAR_LOCATION_STATUS): Use it.
19947 (gen_rtx_VAR_LOCATION): Declare.
19948 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
19949 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
19950 * var-tracking.c (emit_note_insn_var_location): Remove casts.
19951
19952 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19953
19954 * rtl.def (scratch): Fix outdated comment and remove "0" field.
19955 * gengtype.c (adjust_field_rtx_def): Update accordingly.
19956
19957 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19958
19959 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
19960 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
19961 * rtl.h (rtx_def): Add insn_uid to u2 field.
19962 (RTX_FLAG_CHECK8): Delete in favor of...
19963 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
19964 (INSN_DELETED_P): Update accordingly.
19965 (INSN_UID): Use u2.insn_uid.
19966 (INSN_CHAIN_CODE_P): Define.
19967 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
19968 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
19969 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
19970 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
19971 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
19972 indices accordingly.
19973 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
19974 Update indices for insn-chain rtxes.
19975 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
19976 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
19977 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
19978 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
19979 * combine.c (try_combine): Likewise.
19980 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19981
19982 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19983
19984 * rtl.def (REG): Remove middle field.
19985 * rtl.h (rtx_def): Add orignal_regno to u2.
19986 (ORIGINAL_REGNO): Use it instead of field 1.
19987 (REG_ATTRS): Lower field index accordingly.
19988 * gengtype.c (adjust_field_rtx_def): Remove handling of
19989 ORIGINAL_REGNO. Move REG_ATTRS index down.
19990 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
19991 code that prints the REGNO.
19992
19993 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19994
19995 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
19996 GENERATOR_FILE.
19997
19998 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19999
20000 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20001
20002 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20003
20004 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20005 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20006
20007 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20008
20009 * config/aarch64/aarch64-protos.h
20010 (aarch64_hard_regno_caller_save_mode): New prototype.
20011 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20012 New function.
20013 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20014
20015 2014-05-13 Christian Bruel <christian.bruel@st.com>
20016
20017 * target.def (mode_switching): New hook vector.
20018 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20019 (mode_exit, modepriority_to_mode): Likewise.
20020 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20021 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20022 * target.h: Include tm.h and hard-reg-set.h.
20023 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20024 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20025 * doc/tm.texi Regenerate.
20026 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20027 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20028 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20029 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20030 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20031 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20032 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20033 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20034 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20035 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20036 (ix86_emit_mode_set): Hookify.
20037 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20038 Delete.
20039 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20040 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20041 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20042 (epiphany_mode_priority_to_mode): Remove declaration.
20043 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20044 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20045 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20046 Likewise.
20047 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20048 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20049 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20050
20051 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20052
20053 PR target/61060
20054 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20055 is const0_rtx, return immediately. Don't test count == 0 when
20056 it is always true.
20057
20058 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20059
20060 * Makefile.in: add shrink-wrap.o.
20061 * config/i386/i386.c: include "shrink-wrap.h"
20062 * function.c: Likewise.
20063 (requires_stack_frame_p, next_block_for_reg,
20064 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20065 dup_block_and_redirect): Move to shrink-wrap.c
20066 (thread_prologue_and_epilogue_insns): Extract three code segments
20067 as functions in shrink-wrap.c
20068 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20069 shrink-wrap.h
20070 * shrink-wrap.c: New file.
20071 * shrink-wrap.h: New file.
20072
20073 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20074
20075 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20076 reference to Solaris.
20077
20078 2014-05-12 Mike Stump <mikestump@comcast.net>
20079
20080 PR other/31778
20081 * genattrtab.c (filename): Add.
20082 (convert_set_attr_alternative): Improve error message.
20083 (check_defs): Restore read_md_filename for error messages.
20084 (gen_insn): Save filename.
20085
20086 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20087
20088 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20089 -fno-local-ivars and -fivar-visibility.
20090 * c-family/c.opt: Make -Wshadow also implicitly enable
20091 -Wshadow-ivar.
20092
20093 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20094
20095 * doc/tm.texi: Remove reference to deleted macro.
20096 * doc/tm.texi.in: Likewise.
20097
20098 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20099
20100 PR target/60991
20101 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20102 to restore Y.
20103
20104 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20105
20106 PR libgcc/61152
20107 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20108 * config/arm/aout.h (License): Same.
20109 * config/arm/bpabi.h (License): Same.
20110 * config/arm/elf.h (License): Same.
20111 * config/arm/linux-elf.h (License): Same.
20112 * config/arm/linux-gas.h (License): Same.
20113 * config/arm/netbsd-elf.h (License): Same.
20114 * config/arm/uclinux-eabi.h (License): Same.
20115 * config/arm/uclinux-elf.h (License): Same.
20116 * config/arm/vxworks.h (License): Same.
20117
20118 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20119
20120 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20121 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20122 number of operands to 3.
20123 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20124 * tree-nested.c (convert_nonlocal_omp_clauses,
20125 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20126 * gimplify.c (gimplify_scan_omp_clauses): Handle
20127 OMP_CLAUSE_LINEAR_STMT.
20128 * omp-low.c (lower_rec_input_clauses): Fix typo.
20129 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20130 cast between Fortran boolean_type_node and C _Bool if
20131 needed.
20132
20133 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20134
20135 PR tree-optimization/61136
20136 * wide-int.h (multiple_of_p): Define a version that doesn't return
20137 the quotient.
20138 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20139 integer_zerop/const_binop pair.
20140 (multiple_of_p): Likewise, converting both operands to widest_int
20141 precision.
20142
20143 2014-05-09 Teresa Johnson <tejohnson@google.com>
20144
20145 * cgraphunit.c (analyze_functions): Use correct dump file.
20146
20147 2014-05-09 Florian Weimer <fweimer@redhat.com>
20148
20149 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20150 expand_used_vars.
20151 (stack_protect_return_slot_p): New function.
20152 (expand_used_vars): Call stack_protect_decl_p and
20153 stack_protect_return_slot_p for -fstack-protector-strong.
20154
20155 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20156 Andrew Haley <aph@redhat.com>
20157 Richard Sandiford <rdsandiford@googlemail.com>
20158
20159 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20160 pages.
20161
20162 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20163
20164 PR middle-end/61111
20165 * fold-const.c (fold_binary_loc): Changed width of mask.
20166
20167 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20168
20169 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20170 unsigned int initializers for regno_in, regno_out.
20171
20172 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20173
20174 PR target/61055
20175 * config/avr/avr.md (cc): Add new attribute set_vzn.
20176 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20177 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20178 with INC, DEC or NEG.
20179 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20180 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20181 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20182
20183 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20184
20185 Revert:
20186 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20187
20188 * wide-int.cc (UTItype): Define.
20189 (UDWtype): Define for appropriate W_TYPE_SIZE.
20190
20191 2014-05-09 Richard Biener <rguenther@suse.de>
20192
20193 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20194 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20195 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20196 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20197 ssa_propagate): Adjust.
20198
20199 2014-05-08 Jeff Law <law@redhat.com>
20200
20201 PR tree-optimization/61009
20202 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20203 tri-state rather than a boolean. When a block is too big to
20204 thread through, inform caller via negative return value.
20205 (thread_across_edge): If a block was too big for normal threading,
20206 then it's too big for a joiner too, so remove temporary equivalences
20207 and return immediately.
20208
20209 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20210 Matthias Klose <doko@ubuntu.com>
20211
20212 PR driver/61106
20213 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20214
20215 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20216
20217 PR target/59952
20218 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20219
20220 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20221
20222 PR target/61092
20223 * config/alpha/alpha.c: Include gimple-iterator.h.
20224 (alpha_gimple_fold_builtin): New function. Move
20225 ALPHA_BUILTIN_UMULH folding from ...
20226 (alpha_fold_builtin): ... here.
20227 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20228
20229 2014-05-08 Wei Mi <wmi@google.com>
20230
20231 PR target/58066
20232 * config/i386/i386.c (ix86_compute_frame_layout): Update
20233 preferred_stack_boundary for call, expanded from tls descriptor.
20234 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20235 to depend on SP register.
20236 (*tls_local_dynamic_base_32_gnu): Ditto.
20237 (*tls_local_dynamic_32_once): Ditto.
20238 (tls_global_dynamic_64_<mode>): Set
20239 ix86_tls_descriptor_calls_expanded_in_cfun.
20240 (tls_local_dynamic_base_64_<mode>): Ditto.
20241 (tls_global_dynamic_32): Set
20242 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20243 to depend on SP register.
20244 (tls_local_dynamic_base_32): Ditto.
20245
20246 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20247
20248 * config/arm/arm_neon.h: Update comment.
20249 * config/arm/neon-docgen.ml: Delete.
20250 * config/arm/neon-gen.ml: Delete.
20251 * doc/arm-neon-intrinsics.texi: Update comment.
20252
20253 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20254
20255 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20256 and v4sf versions.
20257 (vand, vorr, veor, vorn, vbic): Remove.
20258 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20259 iterator.
20260 (neon_vsub_unspec): Likewise.
20261 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20262
20263 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20264
20265 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20266 (vadd_s16): Likewise.
20267 (vadd_s32): Likewise.
20268 (vadd_f32): Likewise.
20269 (vadd_u8): Likewise.
20270 (vadd_u16): Likewise.
20271 (vadd_u32): Likewise.
20272 (vadd_s64): Likewise.
20273 (vadd_u64): Likewise.
20274 (vaddq_s8): Likewise.
20275 (vaddq_s16): Likewise.
20276 (vaddq_s32): Likewise.
20277 (vaddq_s64): Likewise.
20278 (vaddq_f32): Likewise.
20279 (vaddq_u8): Likewise.
20280 (vaddq_u16): Likewise.
20281 (vaddq_u32): Likewise.
20282 (vaddq_u64): Likewise.
20283 (vmul_s8): Likewise.
20284 (vmul_s16): Likewise.
20285 (vmul_s32): Likewise.
20286 (vmul_f32): Likewise.
20287 (vmul_u8): Likewise.
20288 (vmul_u16): Likewise.
20289 (vmul_u32): Likewise.
20290 (vmul_p8): Likewise.
20291 (vmulq_s8): Likewise.
20292 (vmulq_s16): Likewise.
20293 (vmulq_s32): Likewise.
20294 (vmulq_f32): Likewise.
20295 (vmulq_u8): Likewise.
20296 (vmulq_u16): Likewise.
20297 (vmulq_u32): Likewise.
20298 (vsub_s8): Likewise.
20299 (vsub_s16): Likewise.
20300 (vsub_s32): Likewise.
20301 (vsub_f32): Likewise.
20302 (vsub_u8): Likewise.
20303 (vsub_u16): Likewise.
20304 (vsub_u32): Likewise.
20305 (vsub_s64): Likewise.
20306 (vsub_u64): Likewise.
20307 (vsubq_s8): Likewise.
20308 (vsubq_s16): Likewise.
20309 (vsubq_s32): Likewise.
20310 (vsubq_s64): Likewise.
20311 (vsubq_f32): Likewise.
20312 (vsubq_u8): Likewise.
20313 (vsubq_u16): Likewise.
20314 (vsubq_u32): Likewise.
20315 (vsubq_u64): Likewise.
20316 (vand_s8): Likewise.
20317 (vand_s16): Likewise.
20318 (vand_s32): Likewise.
20319 (vand_u8): Likewise.
20320 (vand_u16): Likewise.
20321 (vand_u32): Likewise.
20322 (vand_s64): Likewise.
20323 (vand_u64): Likewise.
20324 (vandq_s8): Likewise.
20325 (vandq_s16): Likewise.
20326 (vandq_s32): Likewise.
20327 (vandq_s64): Likewise.
20328 (vandq_u8): Likewise.
20329 (vandq_u16): Likewise.
20330 (vandq_u32): Likewise.
20331 (vandq_u64): Likewise.
20332 (vorr_s8): Likewise.
20333 (vorr_s16): Likewise.
20334 (vorr_s32): Likewise.
20335 (vorr_u8): Likewise.
20336 (vorr_u16): Likewise.
20337 (vorr_u32): Likewise.
20338 (vorr_s64): Likewise.
20339 (vorr_u64): Likewise.
20340 (vorrq_s8): Likewise.
20341 (vorrq_s16): Likewise.
20342 (vorrq_s32): Likewise.
20343 (vorrq_s64): Likewise.
20344 (vorrq_u8): Likewise.
20345 (vorrq_u16): Likewise.
20346 (vorrq_u32): Likewise.
20347 (vorrq_u64): Likewise.
20348 (veor_s8): Likewise.
20349 (veor_s16): Likewise.
20350 (veor_s32): Likewise.
20351 (veor_u8): Likewise.
20352 (veor_u16): Likewise.
20353 (veor_u32): Likewise.
20354 (veor_s64): Likewise.
20355 (veor_u64): Likewise.
20356 (veorq_s8): Likewise.
20357 (veorq_s16): Likewise.
20358 (veorq_s32): Likewise.
20359 (veorq_s64): Likewise.
20360 (veorq_u8): Likewise.
20361 (veorq_u16): Likewise.
20362 (veorq_u32): Likewise.
20363 (veorq_u64): Likewise.
20364 (vbic_s8): Likewise.
20365 (vbic_s16): Likewise.
20366 (vbic_s32): Likewise.
20367 (vbic_u8): Likewise.
20368 (vbic_u16): Likewise.
20369 (vbic_u32): Likewise.
20370 (vbic_s64): Likewise.
20371 (vbic_u64): Likewise.
20372 (vbicq_s8): Likewise.
20373 (vbicq_s16): Likewise.
20374 (vbicq_s32): Likewise.
20375 (vbicq_s64): Likewise.
20376 (vbicq_u8): Likewise.
20377 (vbicq_u16): Likewise.
20378 (vbicq_u32): Likewise.
20379 (vbicq_u64): Likewise.
20380 (vorn_s8): Likewise.
20381 (vorn_s16): Likewise.
20382 (vorn_s32): Likewise.
20383 (vorn_u8): Likewise.
20384 (vorn_u16): Likewise.
20385 (vorn_u32): Likewise.
20386 (vorn_s64): Likewise.
20387 (vorn_u64): Likewise.
20388 (vornq_s8): Likewise.
20389 (vornq_s16): Likewise.
20390 (vornq_s32): Likewise.
20391 (vornq_s64): Likewise.
20392 (vornq_u8): Likewise.
20393 (vornq_u16): Likewise.
20394 (vornq_u32): Likewise.
20395 (vornq_u64): Likewise.
20396
20397 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20398
20399 * wide-int.cc (UTItype): Define.
20400 (UDWtype): Define for appropriate W_TYPE_SIZE.
20401
20402 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20403
20404 PR tree-optimization/59100
20405 * tree-ssa-phiopt.c: Include tree-inline.h.
20406 (neutral_element_p, absorbing_element_p): New functions.
20407 (value_replacement): Handle conditional binary operations with a
20408 neutral or absorbing element.
20409
20410 2014-05-08 Richard Biener <rguenther@suse.de>
20411
20412 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20413 folding the expression.
20414 (valueize_expr): Remove.
20415 (visit_reference_op_load): Do not valueize the result of
20416 vn_get_expr_for.
20417 (simplify_binary_expression): Likewise.
20418 (simplify_unary_expression): Likewise.
20419
20420 2014-05-08 Richard Biener <rguenther@suse.de>
20421
20422 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20423 looking at TYPE_ARG_TYPES.
20424
20425 2014-05-08 Richard Biener <rguenther@suse.de>
20426
20427 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20428 pointer propagation special-case.
20429
20430 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20431
20432 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20433 core part of address expressions.
20434
20435 2014-05-08 Alan Modra <amodra@gmail.com>
20436
20437 PR target/60737
20438 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20439 loads and stores when -mno-strict-align at any alignment.
20440 (expand_block_clear): Similarly. Also correct calculation of
20441 instruction count.
20442
20443 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20444
20445 PR middle-end/39246
20446 * tree-complex.c (expand_complex_move): Keep line info when expanding
20447 complex move.
20448 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20449 of complex expression. Use new argument to display correct location
20450 for values coming from phi statement.
20451 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20452 (warn_uninitialized_phi): Pass location of phi argument to
20453 warn_uninit.
20454 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20455 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20456
20457 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20458
20459 * config/rs6000/predicates.md (indexed_address_mem): New.
20460 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20461 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20462 fpstore_ux, fpstore_u.
20463 (sign_extend, indexed, update): New.
20464 (cell_micro): Adjust.
20465 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20466 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20467 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20468 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20469 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20470 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20471 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20472 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20473 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20474 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20475 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20476 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20477 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20478 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20479 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20480
20481 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20482 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20483 *vsx_extract_<mode>_store): Adjust.
20484 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20485 is_cracked_insn, insn_must_be_first_in_group,
20486 insn_must_be_last_in_group): Adjust.
20487
20488 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20489 Adjust.
20490 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20491 ppc440-fpstore): Adjust.
20492 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20493 ppc476-fpstore): Adjust.
20494 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20495 ppc601-fpstore): Adjust.
20496 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20497 Adjust.
20498 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20499 Adjust.
20500 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20501 ppc7450-fpstore): Adjust.
20502 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20503 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20504 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20505 Adjust.
20506 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20507 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20508 cell-fpstore, cell-fpstore-update): Adjust.
20509 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20510 ppce300c3_store, ppce300c3_fpstore): Adjust.
20511 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20512 e500mc_fpstore): Adjust.
20513 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20514 e500mc64_store, e500mc64_fpstore): Adjust.
20515 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20516 e5500_fpstore): Adjust.
20517 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20518 e6500_fpstore): Adjust.
20519 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20520 Adjust.
20521 * config/rs6000/power4.md (power4-load, power4-load-ext,
20522 power4-load-ext-update, power4-load-ext-update-indexed,
20523 power4-load-update-indexed, power4-load-update, power4-fpload,
20524 power4-fpload-update, power4-store, power4-store-update,
20525 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20526 Adjust.
20527 * config/rs6000/power5.md (power5-load, power5-load-ext,
20528 power5-load-ext-update, power5-load-ext-update-indexed,
20529 power5-load-update-indexed, power5-load-update, power5-fpload,
20530 power5-fpload-update, power5-store, power5-store-update,
20531 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20532 Adjust.
20533 * config/rs6000/power6.md (power6-load, power6-load-ext,
20534 power6-load-update, power6-load-update-indexed,
20535 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20536 power6-fpload-update, power6-store, power6-store-update,
20537 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20538 Adjust.
20539 * config/rs6000/power7.md (power7-load, power7-load-ext,
20540 power7-load-update, power7-load-update-indexed,
20541 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20542 power7-fpload-update, power7-store, power7-store-update,
20543 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20544 Adjust.
20545 * config/rs6000/power8.md (power8-load, power8-load-update,
20546 power8-load-ext, power8-load-ext-update, power8-fpload,
20547 power8-fpload-update, power8-store, power8-store-update-indexed,
20548 power8-fpstore, power8-fpstore-update): Adjust.
20549 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20550 Adjust.
20551 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20552 titan_lsu_store, titan_lsu_fpstore): Adjust.
20553 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20554
20555 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20556
20557 PR target/60884
20558 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20559 unrolled byte insns. Emit address increments after move insns.
20560
20561 2014-05-07 David Malcolm <dmalcolm@redhat.com>
20562
20563 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20564 const_gimple, rather than a gimple.
20565 (gimple_call_builtin_p): Likewise, for the three variants.
20566
20567 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20568 (gimple_call_builtin_p): Likewise, for the three variants.
20569
20570 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20571
20572 PR tree-optimization/61095
20573 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20574
20575 2014-05-07 Richard Biener <rguenther@suse.de>
20576
20577 PR tree-optimization/61034
20578 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20579 (maybe_skip_until): Use translate to take into account
20580 lattices when trying to do disambiguations.
20581 (get_continuation_for_phi_1): Likewise.
20582 (get_continuation_for_phi): Adjust for added translate arguments.
20583 (walk_non_aliased_vuses): Likewise.
20584 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20585 (walk_non_aliased_vuses): Likewise.
20586 (call_may_clobber_ref_p_1): Declare.
20587 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20588 calls. Stop early if we are only supposed to disambiguate.
20589 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20590
20591 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
20592
20593 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20594 Emit an error when the function has arguments.
20595
20596 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20597
20598 * cfgloop.h (unswitch_loops): Remove.
20599 * doc/passes.texi: Remove references to loop-unswitch.c
20600 * timevar.def (TV_LOOP_UNSWITCH): Remove.
20601
20602 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
20603
20604 * tree-vect-data-refs.c (vect_grouped_load_supported): New
20605 check for loads group of length 3.
20606 (vect_permute_load_chain): New permutations for loads group of
20607 length 3.
20608 * tree-vect-stmts.c (vect_model_load_cost): Change cost
20609 of vec_perm_shuffle for the new permutations.
20610
20611 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
20612
20613 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20614 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20615 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20616 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20617 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20618 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20619 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20620 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20621
20622 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20623
20624 * loop-unswitch.c: Delete.
20625
20626 2014-05-07 Richard Biener <rguenther@suse.de>
20627
20628 * config.gcc: Always set need_64bit_hwint to yes.
20629
20630 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
20631
20632 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20633 of using optimize_size.
20634
20635 2014-05-06 Mike Stump <mikestump@comcast.net>
20636
20637 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20638
20639 2014-05-06 Joseph Myers <joseph@codesourcery.com>
20640
20641 * config/i386/sse.md (*mov<mode>_internal)
20642 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20643 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20644 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20645 (*<code><mode>3, *andnot<mode>3<mask_name>)
20646 (<mask_codefor><code><mode>3<mask_name>): Only consider
20647 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20648
20649 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20650
20651 Revert:
20652 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20653
20654 * lra-constraints.c (valid_address_p): Move earlier in file.
20655 Add a constraint argument to the address_info version.
20656 (satisfies_memory_constraint_p): New function.
20657 (satisfies_address_constraint_p): Likewise.
20658 (process_alt_operands, curr_insn_transform): Use them.
20659 (process_address): Pass the constraint to valid_address_p when
20660 checking address operands.
20661
20662 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
20663
20664 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20665 to their respective blocks. Fix inadvertent use of "node".
20666
20667 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20668
20669 * emit-rtl.c (init_derived_machine_modes): New functionm, split
20670 out from...
20671 (init_emit_once): ...here.
20672 * rtl.h (init_derived_machine_modes): Declare.
20673 * toplev.c (do_compile): Call it even if no_backend.
20674
20675 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
20676 Mike Stump <mikestump@comcast.net>
20677 Richard Sandiford <rdsandiford@googlemail.com>
20678 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20679
20680 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20681 (rtx_equal_for_memref_p): Update comment.
20682 (adjust_offset_for_component_ref): Use wide-int interfaces.
20683 * builtins.c (get_object_alignment_2): Likewise.
20684 (c_readstr): Likewise.
20685 (target_char_cast): Add comment.
20686 (determine_block_size): Use wide-int interfaces.
20687 (expand_builtin_signbit): Likewise.
20688 (fold_builtin_int_roundingfn): Likewise.
20689 (fold_builtin_bitop): Likewise.
20690 (fold_builtin_bswap): Likewise.
20691 (fold_builtin_logarithm): Use signop.
20692 (fold_builtin_pow): Likewise.
20693 (fold_builtin_memory_op): Use wide-int interfaces.
20694 (fold_builtin_object_size): Likewise.
20695 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20696 nb_iterations_estimate.
20697 (record_niter_bound): Use wide-int interfaces.
20698 (get_estimated_loop_iterations_int): Likewise.
20699 (get_estimated_loop_iterations): Likewise.
20700 (get_max_loop_iterations): Likewise.
20701 * cfgloop.h: Include wide-int.h.
20702 (struct nb_iter_bound): Change bound to widest_int.
20703 (struct loop): Change nb_iterations_upper_bound and
20704 nb_iterations_estimate to widest_int.
20705 (record_niter_bound): Switch to use widest_int.
20706 (get_estimated_loop_iterations): Likewise.
20707 (get_max_loop_iterations): Likewise.
20708 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20709 update for wide-int.
20710 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20711 * combine.c (try_combine): Likewise.
20712 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20713 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20714 interfaces.
20715 (aarch64_float_const_representable_p): Likewise.
20716 * config/arc/arc.c: Include wide-int.h.
20717 (arc_can_use_doloop_p): Use wide-int interfaces.
20718 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20719 (vfp3_const_double_index): Likewise.
20720 * config/avr/avr.c (avr_out_round): Likewise.
20721 (avr_fold_builtin): Likewise.
20722 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20723 (bfin_can_use_doloop_p): Likewise.
20724 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20725 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20726 * config/i386/i386.c: Include wide-int.h.
20727 (ix86_data_alignment): Use wide-int interfaces.
20728 (ix86_local_alignment): Likewise.
20729 (ix86_emit_swsqrtsf): Update real_from_integer.
20730 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20731 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20732 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20733 (zero_constant): Likewise.
20734 (input_operand): Likewise.
20735 (splat_input_operand): Likewise.
20736 (non_logical_cint_operand): Change const_double to const_wide_int.
20737 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20738 (easy_altivec_constant): Remove comment.
20739 (paired_expand_vector_init): Use CONSTANT_P.
20740 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20741 (rs6000_emit_move): Update checks.
20742 (rs6000_aggregate_candidate): Use wide-int interfaces.
20743 (rs6000_expand_ternop_builtin): Likewise.
20744 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20745 (rs6000_assemble_integer): Likewise.
20746 (rs6000_hash_constant): Likewise.
20747 (output_toc): Likewise.
20748 (rs6000_rtx_costs): Likewise.
20749 (rs6000_emit_swrsqrt); Update call to real_from_integer.
20750 * config/rs6000/rs6000-c.c: Include wide-int.h.
20751 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20752 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20753 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20754 Handle CONST_WIDE_INT.
20755 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20756 Use tree_fits_uhwi_p.
20757 * config/sparc/sparc.c: Include wide-int.h.
20758 (sparc_fold_builtin): Use wide-int interfaces.
20759 * config/vax/vax.c: Include wide-int.h.
20760 (vax_float_literal): Use real_from_integer.
20761 * coretypes.h (struct hwivec_def): New.
20762 (hwivec): New.
20763 (const_hwivec): New.
20764 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20765 (equiv_constant): Handle CONST_WIDE_INT.
20766 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20767 (cselib_hash_rtx): Handle CONST_WIDE_INT.
20768 * dbxout.c (stabstr_U): Use wide-int interfaces.
20769 (dbxout_type): Update to use cst_fits_shwi_p.
20770 * defaults.h (LOG2_BITS_PER_UNIT): Define.
20771 (TARGET_SUPPORTS_WIDE_INT): Add default.
20772 * dfp.c: Include wide-int.h.
20773 (decimal_real_to_integer2): Use wide-int interfaces and rename to
20774 decimal_real_to_integer.
20775 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20776 decimal_real_to_integer.
20777 * doc/generic.texi (Constant expressions): Update for wide_int.
20778 * doc/rtl.texi (const_double): Likewise.
20779 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20780 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20781 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20782 (REAL_VALUE_FROM_INT): Remove.
20783 (TARGET_SUPPORTS_WIDE_INT): New.
20784 * doc/tm.texi: Regenerate.
20785 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20786 * double-int.h: Include wide-int.h.
20787 (struct wi::int_traits): New.
20788 * dwarf2out.c (get_full_len): New.
20789 (dw_val_equal_p): Add case dw_val_class_wide_int.
20790 (size_of_loc_descr): Likewise.
20791 (output_loc_operands): Likewise.
20792 (insert_double): Remove.
20793 (insert_wide_int): New.
20794 (add_AT_wide): New.
20795 (print_die): Add case dw_val_class_wide_int.
20796 (attr_checksum): Likewise.
20797 (attr_checksum_ordered): Likewise.
20798 (same_dw_val_p): Likewise.
20799 (size_of_die): Likewise.
20800 (value_format): Likewise.
20801 (output_die): Likewise.
20802 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20803 Use wide-int.
20804 (clz_loc_descriptor): Use wide-int interfaces.
20805 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
20806 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
20807 (round_up_to_align): Use wide-int interfaces.
20808 (field_byte_offset): Likewise.
20809 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
20810 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
20811 CONST_DOUBLE handling. Use wide-int interfaces.
20812 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
20813 (gen_enumeration_type_die): Use add_AT_wide.
20814 (hash_loc_operands): Add case dw_val_class_wide_int.
20815 (compare_loc_operands): Likewise.
20816 * dwarf2out.h: Include wide-int.h.
20817 (wide_int_ptr): New.
20818 (enum dw_val_class): Add dw_val_class_wide_int.
20819 (struct dw_val_struct): Add val_wide.
20820 * emit-rtl.c (const_wide_int_htab): New.
20821 (const_wide_int_htab_hash): New.
20822 (const_wide_int_htab_eq): New.
20823 (lookup_const_wide_int): New.
20824 (const_double_htab_hash): Use wide-int interfaces.
20825 (const_double_htab_eq): Likewise.
20826 (rtx_to_double_int): Conditionally compile for wide-int.
20827 (immed_double_int_const): Rename to immed_wide_int_const and
20828 update for wide-int.
20829 (immed_double_const): Conditionally compile for wide-int.
20830 (init_emit_once): Use wide-int interfaces.
20831 * explow.c (plus_constant): Likewise.
20832 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
20833 (lshift_value): Use wide-int interfaces.
20834 (expand_mult): Likewise.
20835 (choose_multiplier): Likewise.
20836 (expand_smod_pow2): Likewise.
20837 (make_tree): Likewise.
20838 * expr.c (convert_modes): Consolidate handling of constants.
20839 Use wide-int interfaces.
20840 (emit_group_load_1): Add note.
20841 (store_expr): Update comment.
20842 (get_inner_reference): Use wide-int interfaces.
20843 (expand_constructor): Update comment.
20844 (expand_expr_real_2): Use wide-int interfaces.
20845 (expand_expr_real_1): Likewise.
20846 (reduce_to_bit_field_precision): Likewise.
20847 (const_vector_from_tree): Likewise.
20848 * final.c: Include wide-int-print.h.
20849 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
20850 * fixed-value.c: Include wide-int.h.
20851 (fixed_from_string): Use wide-int interfaces.
20852 (fixed_to_decimal): Likewise.
20853 (fixed_convert_from_real): Likewise.
20854 (real_convert_from_fixed): Likewise.
20855 * fold-const.h (mem_ref_offset): Return an offset_int.
20856 (div_if_zero_remainder): Remove code parameter.
20857 * fold-const.c (div_if_zero_remainder): Remove code parameter.
20858 Use wide-int interfaces.
20859 (may_negate_without_overflow_p): Use wide-int interfaces.
20860 (negate_expr_p): Likewise.
20861 (fold_negate_expr): Likewise.
20862 (int_const_binop_1): Likewise.
20863 (const_binop): Likewise.
20864 (fold_convert_const_int_from_int): Likewise.
20865 (fold_convert_const_int_from_real): Likewise.
20866 (fold_convert_const_int_from_fixed): Likewise.
20867 (fold_convert_const_fixed_from_int): Likewise.
20868 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20869 (sign_bit_p): Use wide-int interfaces.
20870 (make_range_step): Likewise.
20871 (build_range_check): Likewise. Pass an integer of the correct type
20872 instead of using integer_one_node.
20873 (range_predecessor): Pass an integer of the correct type instead
20874 of using integer_one_node.
20875 (range_successor): Likewise.
20876 (merge_ranges): Likewise.
20877 (unextend): Use wide-int interfaces.
20878 (extract_muldiv_1): Likewise.
20879 (fold_div_compare): Likewise.
20880 (fold_single_bit_test): Likewise.
20881 (fold_sign_changed_comparison): Likewise.
20882 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20883 (fold_plusminus_mult_expr): Use wide-int interfaces.
20884 (native_encode_int): Likewise.
20885 (native_interpret_int): Likewise.
20886 (fold_unary_loc): Likewise.
20887 (pointer_may_wrap_p): Likewise.
20888 (size_low_cst): Likewise.
20889 (mask_with_tz): Likewise.
20890 (fold_binary_loc): Likewise.
20891 (fold_ternary_loc): Likewise.
20892 (multiple_of_p): Likewise.
20893 (tree_call_nonnegative_warnv_p): Update calls to
20894 tree_int_cst_min_precision and real_from_integer.
20895 (fold_negate_const): Use wide-int interfaces.
20896 (fold_abs_const): Likewise.
20897 (fold_relational_const): Use tree_int_cst_lt.
20898 (round_up_loc): Use wide-int interfaces.
20899 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20900 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20901 * gengtype.c: Remove include of double-int.h.
20902 (do_typedef): Use wide-int interfaces.
20903 (open_base_files): Add wide-int.h.
20904 (main): Add offset_int and widest_int typedefs.
20905 * gengtype-lex.l: Handle "^".
20906 (CXX_KEYWORD): Add "static".
20907 * gengtype-parse.c (require3): New.
20908 (require_template_declaration): Handle constant template arguments
20909 and nested templates.
20910 * gengtype-state.c: Don't include "double-int.h".
20911 * genpreds.c (write_one_predicate_function): Update comment.
20912 (write_tm_constrs_h): Add check for hval and lval use in
20913 CONST_WIDE_INT.
20914 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
20915 (add_to_sequence): Likewise.
20916 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
20917 and const_double_operand.
20918 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
20919 interfaces.
20920 * gimple-fold.c (get_base_constructor): Likewise.
20921 (fold_array_ctor_reference): Likewise.
20922 (fold_nonarray_ctor_reference): Likewise.
20923 (fold_const_aggregate_ref_1): Likewise.
20924 (gimple_val_nonnegative_real_p): Likewise.
20925 (gimple_fold_indirect_ref): Likewise.
20926 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
20927 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
20928 (struct slsr_cand_d): Change index to be widest_int.
20929 (struct incr_info_d): Change incr to be widest_int.
20930 (alloc_cand_and_find_basis): Use wide-int interfaces.
20931 (slsr_process_phi): Likewise.
20932 (backtrace_base_for_ref): Likewise. Return a widest_int.
20933 (restructure_reference): Take a widest_int instead of a double_int.
20934 (slsr_process_ref): Use wide-int interfaces.
20935 (create_mul_ssa_cand): Likewise.
20936 (create_mul_imm_cand): Likewise.
20937 (create_add_ssa_cand): Likewise.
20938 (create_add_imm_cand): Take a widest_int instead of a double_int.
20939 (slsr_process_add): Use wide-int interfaces.
20940 (slsr_process_cast): Likewise.
20941 (slsr_process_copy): Likewise.
20942 (dump_candidate): Likewise.
20943 (dump_incr_vec): Likewise.
20944 (replace_ref): Likewise.
20945 (cand_increment): Likewise. Return a widest_int.
20946 (cand_abs_increment): Likewise.
20947 (replace_mult_candidate): Take a widest_int instead of a double_int.
20948 (replace_unconditional_candidate): Use wide-int interfaces.
20949 (incr_vec_index): Take a widest_int instead of a double_int.
20950 (create_add_on_incoming_edge): Likewise.
20951 (create_phi_basis): Use wide-int interfaces.
20952 (replace_conditional_candidate): Likewise.
20953 (record_increment): Take a widest_int instead of a double_int.
20954 (record_phi_increments): Use wide-int interfaces.
20955 (phi_incr_cost): Take a widest_int instead of a double_int.
20956 (lowest_cost_path): Likewise.
20957 (total_savings): Likewise.
20958 (analyze_increments): Use wide-int interfaces.
20959 (ncd_with_phi): Take a widest_int instead of a double_int.
20960 (ncd_of_cand_and_phis): Likewise.
20961 (nearest_common_dominator_for_cands): Likewise.
20962 (insert_initializers): Use wide-int interfaces.
20963 (all_phi_incrs_profitable): Likewise.
20964 (replace_one_candidate): Likewise.
20965 (replace_profitable_candidates): Likewise.
20966 * godump.c: Include wide-int-print.h.
20967 (go_output_typedef): Use wide-int interfaces.
20968 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
20969 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
20970 (build_loop_iteration_domains): Likewise.
20971 * hooks.h: Include wide-int.h rather than double-int.h.
20972 (hook_bool_dint_dint_uint_bool_true): Delete.
20973 (hook_bool_wint_wint_uint_bool_true): Declare.
20974 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
20975 (hook_bool_wint_wint_uint_bool_true): New.
20976 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
20977 interfaces.
20978 (ubsan_expand_si_overflow_mul_check): Likewise.
20979 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
20980 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
20981 (get_ancestor_addr_info): Likewise.
20982 (ipa_modify_call_arguments): Likewise.
20983 * loop-doloop.c (doloop_modify): Likewise.
20984 (doloop_optimize): Likewise.
20985 * loop-iv.c (iv_number_of_iterations): Likewise.
20986 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
20987 (unroll_loop_constant_iterations): Likewise.
20988 (decide_unroll_runtime_iterations): Likewise.
20989 (unroll_loop_runtime_iterations): Likewise.
20990 (decide_peel_simple): Likewise.
20991 (decide_unroll_stupid): Likewise.
20992 * lto-streamer-in.c (streamer_read_wi): Add.
20993 (input_cfg): Use wide-int interfaces.
20994 (lto_input_tree_1): Likewise.
20995 * lto-streamer-out.c (streamer_write_wi): Add.
20996 (hash_tree): Use wide-int interfaces.
20997 (output_cfg): Likewise.
20998 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
20999 (GTFILES): Add wide-int.h and signop.h.
21000 (TAGS): Look for .cc files too.
21001 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21002 * optabs.c (expand_subword_shift): Likewise.
21003 (expand_doubleword_shift): Likewise.
21004 (expand_absneg_bit): Likewise.
21005 (expand_copysign_absneg): Likewise.
21006 (expand_copysign_bit): Likewise.
21007 * postreload.c (reload_cse_simplify_set): Likewise.
21008 * predict.c (predict_iv_comparison): Likewise.
21009 * pretty-print.h: Include wide-int-print.h.
21010 (pp_wide_int) New.
21011 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21012 * print-tree.c: Include wide-int-print.h.
21013 (print_node_brief): Use wide-int interfaces.
21014 (print_node): Likewise.
21015 * read-rtl.c (validate_const_wide_int): New.
21016 (read_rtx_code): Add CONST_WIDE_INT case.
21017 * real.c: Include wide-int.h.
21018 (real_to_integer2): Delete.
21019 (real_to_integer): New function, returning a wide_int.
21020 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21021 (ten_to_ptwo): Update call to real_from_integer.
21022 (real_digit): Likewise.
21023 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21024 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21025 (REAL_VALUE_TO_INT): Delete.
21026 (real_to_integer): Declare a wide-int form.
21027 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21028 * recog.c (const_int_operand): Improve comment.
21029 (const_scalar_int_operand): New.
21030 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21031 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21032 (split_double): Likewise.
21033 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21034 (rtx_size): Likewise.
21035 (rtx_alloc_stat_v): New.
21036 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21037 (cwi_output_hex): New.
21038 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21039 (cwi_check_failed_bounds): New.
21040 * rtl.def (CONST_WIDE_INT): New.
21041 * rtl.h: Include <utility> and wide-int.h.
21042 (struct hwivec_def): New.
21043 (CWI_GET_NUM_ELEM): New.
21044 (CWI_PUT_NUM_ELEM): New.
21045 (struct rtx_def): Add num_elem and hwiv.
21046 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21047 (CASE_CONST_UNIQUE): Likewise.
21048 (CASE_CONST_ANY): Likewise.
21049 (CONST_SCALAR_INT_P): Likewise.
21050 (CONST_WIDE_INT_P): New.
21051 (CWI_ELT): New.
21052 (HWIVEC_CHECK): New.
21053 (cwi_check_failed_bounds): New.
21054 (CWI_ELT): New.
21055 (HWIVEC_CHECK): New.
21056 (CONST_WIDE_INT_VEC) New.
21057 (CONST_WIDE_INT_NUNITS) New.
21058 (CONST_WIDE_INT_ELT) New.
21059 (rtx_mode_t): New type.
21060 (wi::int_traits <rtx_mode_t>): New.
21061 (wi::shwi): New.
21062 (wi::min_value): New.
21063 (wi::max_value): New.
21064 (rtx_alloc_v) New.
21065 (const_wide_int_alloc): New.
21066 (immed_wide_int_const): New.
21067 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21068 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21069 * signop.h: New file.
21070 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21071 (simplify_const_unary_operation): Use wide-int interfaces.
21072 (simplify_binary_operation_1): Likewise.
21073 (simplify_const_binary_operation): Likewise.
21074 (simplify_const_relational_operation): Likewise.
21075 (simplify_immed_subreg): Likewise.
21076 * stmt.c (expand_case): Likewise.
21077 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21078 signop rather than a bool.
21079 * stor-layout.c (layout_type): Use wide-int interfaces.
21080 (initialize_sizetypes): Update calls to
21081 set_min_and_max_values_for_integral_type.
21082 (set_min_and_max_values_for_integral_type): Take a signop rather
21083 than a bool. Use wide-int interfaces.
21084 (fixup_signed_type): Update accordingly. Remove
21085 HOST_BITS_PER_DOUBLE_INT limit.
21086 (fixup_unsigned_type): Likewise.
21087 * system.h (STATIC_CONSTANT_P): New.
21088 (STATIC_ASSERT): New.
21089 * target.def (can_use_doloop_p): Take widest_ints rather than
21090 double_ints.
21091 * target.h: Include wide-int.h rather than double-int.h.
21092 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21093 than double_ints.
21094 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21095 rather than INT_CST_LT_UNSIGNED.
21096 (can_use_doloop_if_innermost): Take widest_ints rather than
21097 double_ints.
21098 * tree-affine.c: Include wide-int-print.h.
21099 (double_int_ext_for_comb): Delete.
21100 (wide_int_ext_for_comb): New.
21101 (aff_combination_zero): Use wide-int interfaces.
21102 (aff_combination_const): Take a widest_int instead of a double_int.
21103 (aff_combination_elt): Use wide-int interfaces.
21104 (aff_combination_scale): Take a widest_int instead of a double_int.
21105 (aff_combination_add_elt): Likewise.
21106 (aff_combination_add_cst): Likewise.
21107 (aff_combination_add): Use wide-int interfaces.
21108 (aff_combination_convert): Likewise.
21109 (tree_to_aff_combination): Likewise.
21110 (add_elt_to_tree): Take a widest_int instead of a double_int.
21111 (aff_combination_to_tree): Use wide-int interfaces.
21112 (aff_combination_remove_elt): Likewise.
21113 (aff_combination_add_product): Take a widest_int instead of
21114 a double_int.
21115 (aff_combination_mult): Use wide-int interfaces.
21116 (aff_combination_expand): Likewise.
21117 (double_int_constant_multiple_p): Delete.
21118 (wide_int_constant_multiple_p): New.
21119 (aff_combination_constant_multiple_p): Take a widest_int pointer
21120 instead of a double_int pointer.
21121 (print_aff): Use wide-int interfaces.
21122 (get_inner_reference_aff): Take a widest_int pointer
21123 instead of a double_int pointer.
21124 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21125 * tree-affine.h: Include wide-int.h.
21126 (struct aff_comb_elt): Change type of coef to widest_int.
21127 (struct affine_tree_combination): Change type of offset to widest_int.
21128 (double_int_ext_for_comb): Delete.
21129 (wide_int_ext_for_comb): New.
21130 (aff_combination_const): Use widest_int instead of double_int.
21131 (aff_combination_scale): Likewise.
21132 (aff_combination_add_elt): Likewise.
21133 (aff_combination_constant_multiple_p): Likewise.
21134 (get_inner_reference_aff): Likewise.
21135 (aff_comb_cannot_overlap_p): Likewise.
21136 (aff_combination_zero_p): Use wide-int interfaces.
21137 * tree.c: Include tree.h.
21138 (init_ttree): Use make_int_cst.
21139 (tree_code_size): Removed code for INTEGER_CST case.
21140 (tree_size): Add INTEGER_CST case.
21141 (make_node_stat): Update comment.
21142 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21143 (build_int_cst_type): Use wide-int interfaces.
21144 (double_int_to_tree): Likewise.
21145 (double_int_fits_to_tree_p): Delete.
21146 (force_fit_type_double): Delete.
21147 (force_fit_type): New.
21148 (int_cst_hash_hash): Use wide-int interfaces.
21149 (int_cst_hash_eq): Likewise.
21150 (build_int_cst_wide): Delete.
21151 (wide_int_to_tree): New.
21152 (cache_integer_cst): Use wide-int interfaces.
21153 (build_low_bits_mask): Likewise.
21154 (cst_and_fits_in_hwi): Likewise.
21155 (real_value_from_int_cst): Likewise.
21156 (make_int_cst_stat): New.
21157 (integer_zerop): Use wide_int interfaces.
21158 (integer_onep): Likewise.
21159 (integer_all_onesp): Likewise.
21160 (integer_pow2p): Likewise.
21161 (integer_nonzerop): Likewise.
21162 (tree_log2): Likewise.
21163 (tree_floor_log2): Likewise.
21164 (tree_ctz): Likewise.
21165 (int_size_in_bytes): Likewise.
21166 (mem_ref_offset): Return an offset_int rather than a double_int.
21167 (build_type_attribute_qual_variant): Use wide_int interfaces.
21168 (type_hash_eq): Likewise
21169 (tree_int_cst_equal): Likewise.
21170 (tree_int_cst_lt): Delete.
21171 (tree_int_cst_compare): Likewise.
21172 (tree_fits_shwi_p): Use wide_int interfaces.
21173 (tree_fits_uhwi_p): Likewise.
21174 (tree_int_cst_sign_bit): Likewise.
21175 (tree_int_cst_sgn): Likewise.
21176 (tree_int_cst_min_precision): Take a signop rather than a bool.
21177 (simple_cst_equal): Use wide_int interfaces.
21178 (compare_tree_int): Likewise.
21179 (iterative_hash_expr): Likewise.
21180 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21181 INT_CST_LT.
21182 (get_type_static_bounds): Use wide_int interfaces.
21183 (tree_int_cst_elt_check_failed): New.
21184 (build_common_tree_nodes): Reordered to set prec before filling in
21185 value.
21186 (int_cst_value): Check cst_and_fits_in_hwi.
21187 (widest_int_cst_value): Use wide_int interfaces.
21188 (upper_bound_in_type): Likewise.
21189 (lower_bound_in_type): Likewise.
21190 (num_ending_zeros): Likewise.
21191 (drop_tree_overflow): Likewise.
21192 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21193 (gen_conditions_for_pow_cst_base): Likewise.
21194 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21195 (group_case_labels_stmt): Use wide-int interfaces.
21196 (verify_gimple_assign_binary): Likewise.
21197 (print_loop): Likewise.
21198 * tree-chrec.c (tree_fold_binomial): Likewise.
21199 * tree-core.h (struct tree_base): Add int_length.
21200 (struct tree_int_cst): Change rep of value.
21201 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21202 (dr_may_alias_p): Likewise.
21203 (max_stmt_executions_tree): Likewise.
21204 * tree.def (INTEGER_CST): Update comment.
21205 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21206 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21207 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21208 (dequeue_and_dump): Use wide-int interfaces.
21209 * tree.h: Include wide-int.h.
21210 (NULL_TREE): Moved to earlier loc in file.
21211 (TREE_INT_CST_ELT_CHECK): New.
21212 (tree_int_cst_elt_check_failed): New.
21213 (TYPE_SIGN): New.
21214 (TREE_INT_CST): Delete.
21215 (TREE_INT_CST_LOW): Use wide-int interfaces.
21216 (TREE_INT_CST_HIGH): Delete.
21217 (TREE_INT_CST_NUNITS): New.
21218 (TREE_INT_CST_EXT_NUNITS): Likewise.
21219 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21220 (TREE_INT_CST_ELT): Likewise.
21221 (INT_CST_LT): Delete.
21222 (tree_int_cst_elt_check): New (two forms).
21223 (type_code_size): Update comment.
21224 (make_int_cst_stat, make_int_cst): New.
21225 (tree_to_double_int): Delete.
21226 (double_int_fits_to_tree_p): Delete.
21227 (force_fit_type_double): Delete.
21228 (build_int_cstu): Replace with out-of-line function.
21229 (build_int_cst_wide): Delete.
21230 (tree_int_cst_lt): Define inline.
21231 (tree_int_cst_le): New.
21232 (tree_int_cst_compare): Define inline.
21233 (tree_int_cst_min_precision): Take a signop rather than a bool.
21234 (wi::int_traits <const_tree>): New.
21235 (wi::int_traits <tree>): New.
21236 (wi::extended_tree): New.
21237 (wi::int_traits <wi::extended_tree>): New.
21238 (wi::to_widest): New.
21239 (wi::to_offset): New.
21240 (wi::fits_to_tree_p): New.
21241 (wi::min_value): New.
21242 (wi::max_value): New.
21243 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21244 (copy_tree_body_r): Likewise.
21245 * tree-object-size.c (compute_object_offset): Likewise.
21246 (addr_object_size): Likewise.
21247 * tree-predcom.c: Include wide-int-print.h.
21248 (struct dref_d): Change type of offset to widest_int.
21249 (dump_dref): Call wide-int printer.
21250 (aff_combination_dr_offset): Use wide-int interfaces.
21251 (determine_offset): Take a widest_int pointer rather than a
21252 double_int pointer.
21253 (split_data_refs_to_components): Use wide-int interfaces.
21254 (suitable_component_p): Likewise.
21255 (order_drefs): Likewise.
21256 (add_ref_to_chain): Likewise.
21257 (valid_initializer_p): Likewise.
21258 (determine_roots_comp): Likewise.
21259 * tree-pretty-print.c: Include wide-int-print.h.
21260 (dump_generic_node): Use wide-int interfaces.
21261 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21262 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21263 (move_fixed_address_to_symbol): Likewise.
21264 (move_hint_to_base): Likewise.
21265 (move_pointer_to_base): Likewise.
21266 (move_variant_to_index): Likewise.
21267 (most_expensive_mult_to_index): Likewise.
21268 (addr_to_parts): Likewise.
21269 (copy_ref_info): Likewise.
21270 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21271 (indirect_refs_may_alias_p): Likewise.
21272 (stmt_kills_ref_p_1): Likewise.
21273 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21274 * tree-ssa-ccp.c: Update comment at top of file. Include
21275 wide-int-print.h.
21276 (struct prop_value_d): Change type of mask to widest_int.
21277 (extend_mask): New function.
21278 (dump_lattice_value): Use wide-int interfaces.
21279 (get_default_value): Likewise.
21280 (set_constant_value): Likewise.
21281 (set_value_varying): Likewise.
21282 (valid_lattice_transition): Likewise.
21283 (set_lattice_value): Likewise.
21284 (value_to_double_int): Delete.
21285 (value_to_wide_int): New.
21286 (get_value_from_alignment): Use wide-int interfaces.
21287 (get_value_for_expr): Likewise.
21288 (do_dbg_cnt): Likewise.
21289 (ccp_finalize): Likewise.
21290 (ccp_lattice_meet): Likewise.
21291 (bit_value_unop_1): Use widest_ints rather than double_ints.
21292 (bit_value_binop_1): Likewise.
21293 (bit_value_unop): Use wide-int interfaces.
21294 (bit_value_binop): Likewise.
21295 (bit_value_assume_aligned): Likewise.
21296 (evaluate_stmt): Likewise.
21297 (ccp_fold_stmt): Likewise.
21298 (visit_cond_stmt): Likewise.
21299 (ccp_visit_stmt): Likewise.
21300 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21301 (constant_pointer_difference): Likewise.
21302 (associate_pointerplus): Likewise.
21303 (combine_conversions): Likewise.
21304 * tree-ssa-loop.h: Include wide-int.h.
21305 (struct tree_niter_desc): Change type of max to widest_int.
21306 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21307 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21308 (remove_redundant_iv_tests): Likewise.
21309 (canonicalize_loop_induction_variables): Likewise.
21310 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21311 (constant_multiple_of): Take a widest_int pointer instead of
21312 a double_int pointer.
21313 (get_computation_aff): Use wide-int interfaces.
21314 (ptr_difference_cost): Likewise.
21315 (difference_cost): Likewise.
21316 (get_loop_invariant_expr_id): Likewise.
21317 (get_computation_cost_at): Likewise.
21318 (iv_elimination_compare_lt): Likewise.
21319 (may_eliminate_iv): Likewise.
21320 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21321 instead of double_int.
21322 (max_loop_iterations): Likewise.
21323 (max_stmt_executions): Likewise.
21324 (estimated_stmt_executions): Likewise.
21325 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21326 (split_to_var_and_offset): Use wide-int interfaces.
21327 (determine_value_range): Likewise.
21328 (bound_difference_of_offsetted_base): Likewise.
21329 (bounds_add): Take a widest_int instead of a double_int.
21330 (number_of_iterations_ne_max): Use wide-int interfaces.
21331 (number_of_iterations_ne): Likewise.
21332 (number_of_iterations_lt_to_ne): Likewise.
21333 (assert_loop_rolls_lt): Likewise.
21334 (number_of_iterations_lt): Likewise.
21335 (number_of_iterations_le): Likewise.
21336 (number_of_iterations_cond): Likewise.
21337 (number_of_iterations_exit): Likewise.
21338 (finite_loop_p): Likewise.
21339 (derive_constant_upper_bound_assign): Likewise.
21340 (derive_constant_upper_bound): Return a widest_int.
21341 (derive_constant_upper_bound_ops): Likewise.
21342 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21343 (record_estimate): Take a widest_int rather than a double_int.
21344 (record_nonwrapping_iv): Use wide-int interfaces.
21345 (double_int_cmp): Delete.
21346 (wide_int_cmp): New.
21347 (bound_index): Take a widest_int rather than a double_int.
21348 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21349 (maybe_lower_iteration_bound): Likewise.
21350 (estimate_numbers_of_iterations_loop): Likewise.
21351 (estimated_loop_iterations): Take a widest_int pointer than than
21352 a double_int pointer.
21353 (estimated_loop_iterations_int): Use wide-int interfaces.
21354 (max_loop_iterations): Take a widest_int pointer than than
21355 a double_int pointer.
21356 (max_loop_iterations_int): Use wide-int interfaces.
21357 (max_stmt_executions): Take a widest_int pointer than than
21358 a double_int pointer.
21359 (estimated_stmt_executions): Likewise.
21360 (n_of_executions_at_most): Use wide-int interfaces.
21361 (scev_probably_wraps_p): Likewise.
21362 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21363 to real_to_integer.
21364 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21365 interfaces.
21366 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21367 double_ints. Adjust for trailing_wide_ints <3> representation.
21368 (set_nonzero_bits): Likewise.
21369 (get_range_info): Return wide_ints rather than double_ints.
21370 Adjust for trailing_wide_ints <3> representation.
21371 (get_nonzero_bits): Likewise.
21372 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21373 representation.
21374 * tree-ssanames.h (struct range_info_def): Replace min, max and
21375 nonzero_bits with a trailing_wide_ints <3>.
21376 (set_range_info): Use wide_int_refs rather than double_ints.
21377 (set_nonzero_bits): Likewise.
21378 (get_range_info): Return wide_ints rather than double_ints.
21379 (get_nonzero_bits): Likewise.
21380 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21381 * tree-ssa-pre.c (phi_translate_1): Likewise.
21382 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21383 (acceptable_pow_call): Likewise.
21384 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21385 interfaces.
21386 (vn_reference_fold_indirect): Likewise.
21387 (vn_reference_maybe_forwprop_address): Likewise.
21388 (valueize_refs_1): Likewise.
21389 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21390 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21391 tree_int_cst_lt and tree_int_cst_le.
21392 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21393 interfaces.
21394 (streamer_alloc_tree): Likewise.
21395 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21396 (streamer_write_tree_header): Likewise.
21397 (streamer_write_integer_cst): Likewise.
21398 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21399 (build_constructors): Likewise.
21400 (array_value_type): Likewise.
21401 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21402 (vect_check_gather): Likewise.
21403 * tree-vect-generic.c (build_replicated_const): Likewise.
21404 (expand_vector_divmod): Likewise.
21405 * tree-vect-loop.c (vect_transform_loop): Likewise.
21406 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21407 (vect_do_peeling_for_alignment): Likewise.
21408 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21409 * tree-vrp.c: Include wide-int.h.
21410 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21411 (extract_range_from_assert): Use wide-int interfaces.
21412 (vrp_int_const_binop): Likewise.
21413 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21414 double_int pointers.
21415 (ranges_from_anti_range): Use wide-int interfaces.
21416 (quad_int_cmp): Delete.
21417 (quad_int_pair_sort): Likewise.
21418 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21419 (extract_range_from_unary_expr_1): Likewise.
21420 (adjust_range_with_scev): Likewise.
21421 (masked_increment): Take and return wide_ints rather than double_ints.
21422 (register_edge_assert_for_2): Use wide-int interfaces.
21423 (check_array_ref): Likewise.
21424 (search_for_addr_array): Likewise.
21425 (maybe_set_nonzero_bits): Likewise.
21426 (union_ranges): Pass an integer of the correct type instead of
21427 using integer_one_node.
21428 (intersect_ranges): Likewise.
21429 (simplify_truth_ops_using_ranges): Likewise.
21430 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21431 (range_fits_type_p): Likewise.
21432 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21433 a bool.
21434 (simplify_conversion_using_ranges): Use wide-int interfaces.
21435 (simplify_float_conversion_using_ranges): Likewise.
21436 (vrp_finalize): Likewise.
21437 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21438 (gimple_stringops_transform): Likewise.
21439 * varasm.c (decode_addr_const): Likewise.
21440 (const_hash_1): Likewise.
21441 (const_rtx_hash_1): Likewise
21442 (output_constant): Likewise.
21443 (array_size_for_constructor): Likewise.
21444 (output_constructor_regular_field): Likewise.
21445 (output_constructor_bitfield): Likewise.
21446 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21447 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21448 GENERATOR_FILEs.
21449 * gencheck.c: Define BITS_PER_UNIT.
21450 * wide-int.cc: New.
21451 * wide-int.h: New.
21452 * wide-int-print.cc: New.
21453 * wide-int-print.h: New.
21454
21455 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21456
21457 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21458
21459 2014-05-06 Richard Biener <rguenther@suse.de>
21460
21461 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21462 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21463 (TODO_verify_all): Adjust.
21464 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21465 TODO_verify_stmts and TODO_verify_rtl_sharing.
21466 * bb-reorder.c: Likewise.
21467 * cfgexpand.c: Likewise.
21468 * cprop.c: Likewise.
21469 * cse.c: Likewise.
21470 * function.c: Likewise.
21471 * fwprop.c: Likewise.
21472 * gcse.c: Likewise.
21473 * gimple-ssa-isolate-paths.c: Likewise.
21474 * gimple-ssa-strength-reduction.c: Likewise.
21475 * ipa-split.c: Likewise.
21476 * loop-init.c: Likewise.
21477 * loop-unroll.c: Likewise.
21478 * lower-subreg.c: Likewise.
21479 * modulo-sched.c: Likewise.
21480 * postreload-gcse.c: Likewise.
21481 * predict.c: Likewise.
21482 * recog.c: Likewise.
21483 * sched-rgn.c: Likewise.
21484 * store-motion.c: Likewise.
21485 * tracer.c: Likewise.
21486 * trans-mem.c: Likewise.
21487 * tree-call-cdce.c: Likewise.
21488 * tree-cfg.c: Likewise.
21489 * tree-cfgcleanup.c: Likewise.
21490 * tree-complex.c: Likewise.
21491 * tree-eh.c: Likewise.
21492 * tree-emutls.c: Likewise.
21493 * tree-if-conv.c: Likewise.
21494 * tree-into-ssa.c: Likewise.
21495 * tree-loop-distribution.c: Likewise.
21496 * tree-object-size.c: Likewise.
21497 * tree-parloops.c: Likewise.
21498 * tree-pass.h: Likewise.
21499 * tree-sra.c: Likewise.
21500 * tree-ssa-ccp.c: Likewise.
21501 * tree-ssa-copy.c: Likewise.
21502 * tree-ssa-copyrename.c: Likewise.
21503 * tree-ssa-dce.c: Likewise.
21504 * tree-ssa-dom.c: Likewise.
21505 * tree-ssa-dse.c: Likewise.
21506 * tree-ssa-forwprop.c: Likewise.
21507 * tree-ssa-ifcombine.c: Likewise.
21508 * tree-ssa-loop-ch.c: Likewise.
21509 * tree-ssa-loop-ivcanon.c: Likewise.
21510 * tree-ssa-loop.c: Likewise.
21511 * tree-ssa-math-opts.c: Likewise.
21512 * tree-ssa-phiopt.c: Likewise.
21513 * tree-ssa-phiprop.c: Likewise.
21514 * tree-ssa-pre.c: Likewise.
21515 * tree-ssa-reassoc.c: Likewise.
21516 * tree-ssa-sink.c: Likewise.
21517 * tree-ssa-strlen.c: Likewise.
21518 * tree-ssa-tail-merge.c: Likewise.
21519 * tree-ssa-uncprop.c: Likewise.
21520 * tree-switch-conversion.c: Likewise.
21521 * tree-tailcall.c: Likewise.
21522 * tree-vect-generic.c: Likewise.
21523 * tree-vectorizer.c: Likewise.
21524 * tree-vrp.c: Likewise.
21525 * tsan.c: Likewise.
21526 * var-tracking.c: Likewise.
21527 * bt-load.c: Likewise.
21528 * cfgcleanup.c: Likewise.
21529 * combine-stack-adj.c: Likewise.
21530 * combine.c: Likewise.
21531 * compare-elim.c: Likewise.
21532 * config/epiphany/resolve-sw-modes.c: Likewise.
21533 * config/i386/i386.c: Likewise.
21534 * config/mips/mips.c: Likewise.
21535 * config/s390/s390.c: Likewise.
21536 * config/sh/sh_treg_combine.cc: Likewise.
21537 * config/sparc/sparc.c: Likewise.
21538 * dce.c: Likewise.
21539 * dse.c: Likewise.
21540 * final.c: Likewise.
21541 * ifcvt.c: Likewise.
21542 * mode-switching.c: Likewise.
21543 * passes.c: Likewise.
21544 * postreload.c: Likewise.
21545 * ree.c: Likewise.
21546 * reg-stack.c: Likewise.
21547 * regcprop.c: Likewise.
21548 * regrename.c: Likewise.
21549 * web.c: Likewise.
21550
21551 2014-05-06 Richard Biener <rguenther@suse.de>
21552
21553 PR middle-end/61070
21554 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21555 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21556
21557 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
21558
21559 PR ipa/60965
21560 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21561
21562 2014-05-05 Radovan Obradovic <robradovic@mips.com>
21563 Tom de Vries <tom@codesourcery.com>
21564
21565 * target.def (call_fusage_contains_non_callee_clobbers): New
21566 DEFHOOKPOD.
21567 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21568 Hooks to @menu.
21569 (@node Miscellaneous Register Hooks): New node.
21570 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21571 * doc/tm.texi: Regenerate.
21572
21573 2014-05-05 Marek Polacek <polacek@redhat.com>
21574
21575 PR driver/61065
21576 * opts.c (common_handle_option): Call error_at instead of warning_at.
21577
21578 2014-05-05 Richard Biener <rguenther@suse.de>
21579
21580 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21581 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
21582 under the TODO_verify_il umbrella.
21583
21584 2014-05-05 Richard Biener <rguenther@suse.de>
21585
21586 * passes.c (execute_function_todo): Move TODO_verify_flow under
21587 the TODO_verify_ul umbrella.
21588
21589 2014-05-05 Richard Biener <rguenther@suse.de>
21590
21591 PR middle-end/61010
21592 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21593 X & CST away from a CST that is the mask of a mode.
21594
21595 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21596
21597 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21598 int argument to enum machine_mode.
21599 (picochip_class_max_nregs): Ditto.
21600 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21601 (picochip_class_max_nregs): Ditto.
21602
21603 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21604
21605 * target.def: Add new target hook.
21606 * doc/tm.texi: Regenerate.
21607 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21608 * targhooks.c (default_keep_leaf_when_profiled): New function.
21609
21610 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21611 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21612
21613 2014-05-05 Bin Cheng <bin.cheng@arm.com>
21614
21615 PR tree-optimization/60363
21616 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21617 (copy_phi_args): New parameters. Call get_value_locus_in_path.
21618 (update_destination_phis): New parameter.
21619 (create_edge_and_update_destination_phis): Ditto.
21620 (ssa_fix_duplicate_block_edges): Pass new arguments.
21621 (thread_single_edge): Ditto.
21622
21623 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
21624
21625 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21626 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21627 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21628 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21629 Use RS6000_BTM_HARD_FLOAT.
21630 (BU_MISC_2): Likewise.
21631 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21632 RS6000_BTM_HARD_FLOAT.
21633 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21634 is explicitly used.
21635 (rs6000_invalid_builtin): Add hard floating builtin support.
21636 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21637 hard float builtins.
21638 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21639
21640 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21641
21642 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21643 Add missing function* argument.
21644
21645 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21646
21647 * lra-constraints.c (valid_address_p): Move earlier in file.
21648 Add a constraint argument to the address_info version.
21649 (satisfies_memory_constraint_p): New function.
21650 (satisfies_address_constraint_p): Likewise.
21651 (process_alt_operands, curr_insn_transform): Use them.
21652 (process_address): Pass the constraint to valid_address_p when
21653 checking address operands.
21654
21655 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21656
21657 * config/mips/mips.c (mips_isa_rev): New variable.
21658 (mips_set_architecture): Set it.
21659 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21660 from mips_isa_rev.
21661 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21662 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21663 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21664 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21665 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21666 conditions in terms of mips_isa_rev.
21667 (mips_isa_rev): Declare.
21668
21669 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21670
21671 * config/sh/sh-mem.cc: Use tabs instead of spaces.
21672 (prob_unlikely, prob_likely): Make variables const.
21673
21674 2014-05-03 Denis Chertykov <chertykov@gmail.com>
21675
21676 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21677
21678 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21679
21680 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21681
21682 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21683
21684 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21685 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21686 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21687 functions.
21688 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21689 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21690 sh_pass_in_reg_p.
21691 Replace usage of ROUND_REG with sh_round_reg.
21692 Use CEIL instead of ROUND_ADVANCE.
21693
21694 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21695
21696 PR target/61026
21697 * config/sh/sh.c: Include stdlib headers before everything else.
21698
21699 2014-05-02 Jakub Jelinek <jakub@redhat.com>
21700
21701 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21702 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21703 (gimplify_adjust_omp_clauses): Simd region is never
21704 directly nested in combined parallel. Instead, for linear
21705 with copyin/copyout, if in combined for simd loop, make decl
21706 firstprivate/lastprivate on OMP_FOR.
21707 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21708 expand_omp_for_static_chunk): When setting endvar, also set
21709 fd->loop.v to the same value.
21710
21711 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21712
21713 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21714
21715 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
21716
21717 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21718 expression.
21719
21720 2014-05-02 Marek Polacek <polacek@redhat.com>
21721
21722 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21723
21724 2014-05-02 Kito Cheng <kito@0xlab.org>
21725
21726 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21727 to a C expression marco.
21728 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21729 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21730 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21731 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21732 HONOR_REG_ALLOC_ORDER.
21733 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21734
21735 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21736
21737 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21738
21739 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21740
21741 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21742
21743 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21744
21745 * tree-if-conv.c (is_cond_scalar_reduction): New function.
21746 (convert_scalar_cond_reduction): Likewise.
21747 (predicate_scalar_phi): Add recognition and transformation
21748 of simple conditioanl reduction to be vectorizable.
21749
21750 2014-05-01 Marek Polacek <polacek@redhat.com>
21751
21752 PR c/43245
21753 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21754
21755 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
21756
21757 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21758 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21759 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21760 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21761 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21762 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21763 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21764 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21765
21766 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
21767
21768 * config/arc/arc.opt (mlra): Move comment above option name
21769 to avoid mis-parsing as language options.
21770
21771 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21772
21773 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21774 * config/sol2.h: ... here.
21775 * config/sol2-10.h: Remove.
21776
21777 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21778 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21779 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21780 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21781 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21782 * config/sol2.h: ... here.
21783 (SECTION_NAME_FORMAT): Don't redefine.
21784 (STARTFILE_ARCH32_SPEC): Rename to ...
21785 (STARTFILE_ARCH_SPEC): ... this.
21786 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21787 * config/sparc/sol2.h: ... here.
21788 (SECTION_NAME_FORMAT): Don't undef.
21789 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21790 (SUBTARGET_EXTRA_SPECS): Remove.
21791 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21792
21793 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21794 (MD_STARTFILE_PREFIX): Remove.
21795 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21796 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21797 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21798 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21799 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21800 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21801 * config/i386/sol2.h: ... here.
21802 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21803 * config/i386/sol2-bi.h: Remove.
21804 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21805 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21806
21807 * config/i386/t-sol2-64: Rename to ...
21808 * config/i386/t-sol2: ... this.
21809 * config/sparc/t-sol2-64: Rename to ...
21810 * config/sparc/t-sol2: ... this.
21811
21812 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21813 sol2_tm_file_head, sol2_tm_file_tail.
21814 Include ${cpu_type}/sol2.h before sol2.h.
21815 Remove sol2-10.h.
21816 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21817 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21818 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21819 Reflect i386/t-sol2-64 renaming.
21820 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21821 Reflect sparc/t-sol2-64 renaming.
21822
21823 2014-04-30 Richard Biener <rguenther@suse.de>
21824
21825 * passes.c (execute_function_todo): Move TODO_verify_stmts
21826 and TODO_verify_ssa under the TODO_verify_il umbrella.
21827 * tree-ssa.h (verify_ssa): Adjust prototype.
21828 * tree-ssa.c (verify_ssa): Add parameter to tell whether
21829 we should verify SSA operands.
21830 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21831 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21832 whether we should verify whether not throwing stmts have EH info.
21833 * graphite-scop-detection.c (create_sese_edges): Adjust.
21834 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21835 * tree-eh.c (lower_try_finally_switch): Do not add the
21836 default case label twice.
21837
21838 2014-04-30 Marek Polacek <polacek@redhat.com>
21839
21840 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21841 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21842 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21843 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21844
21845 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
21846
21847 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
21848 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
21849 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
21850 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
21851 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
21852 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
21853 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
21854 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
21855
21856 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21857
21858 * tree-cfg.c (dump_function_to_file): Dump the return type of
21859 functions, in a line to itself before the function body, mimicking
21860 the layout of a C function.
21861
21862 2014-04-29 Jakub Jelinek <jakub@redhat.com>
21863
21864 PR tree-optimization/60971
21865 * tree-tailcall.c (process_assignment): Reject conversions which
21866 reduce precision.
21867
21868 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21869
21870 * calls.c (initialize_argument_information): Always treat
21871 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21872 (expand_call): Likewise.
21873 (emit_library_call_calue_1): Likewise.
21874 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21875 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21876 code accordingly.
21877
21878 2014-04-29 Nick Clifton <nickc@redhat.com>
21879
21880 * config/msp430/msp430.md (umulsidi): Fix typo.
21881 (mulhisi3): Enable even inside interrupt handlers.
21882 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21883 bigger return address pushed in large mode.
21884
21885 2014-04-29 Nick Clifton <nickc@redhat.com>
21886
21887 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21888 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21889 available modes.
21890 * config/m32r/m32r.c (init_reg_tables): Likewise.
21891 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21892 enum to hold the modes.
21893
21894 2014-04-29 Richard Biener <rguenther@suse.de>
21895
21896 * dominance.c (free_dominance_info): Add overload with
21897 function parameter.
21898 (dom_info_state): Likewise.
21899 (dom_info_available_p): Likewise.
21900 * basic-block.h (free_dominance_info, dom_info_state,
21901 dom_info_available_p): Declare overloads.
21902 * passes.c (execute_function_todo): Verify that verifiers
21903 don't change dominator info state. Drop dominator info
21904 for IPA pass invocations.
21905 * cgraph.c (release_function_body): Restore asserts that
21906 dominator information is released.
21907
21908 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
21909
21910 * doc/invoke.texi: Fix typo.
21911 * tree-vrp.c: Fix typos.
21912 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
21913
21914 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21915
21916 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
21917
21918 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21919
21920 * config/aarch64/aarch64-builtins.c
21921 (aarch64_types_storestruct_lane_qualifiers): New.
21922 (TYPES_STORESTRUCT_LANE): Likewise.
21923 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
21924 (st3_lane): Likewise.
21925 (st4_lane): Likewise.
21926 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
21927 (vec_store_lanesci_lane<mode>): Likewise.
21928 (vec_store_lanesxi_lane<mode>): Likewise.
21929 (aarch64_st2_lane<VQ:mode>): Likewise.
21930 (aarch64_st3_lane<VQ:mode>): Likewise.
21931 (aarch64_st4_lane<VQ:mode>): Likewise.
21932 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
21933 * config/aarch64/arm_neon.h
21934 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
21935 use new macro arguments.
21936 (__ST3_LANE_FUNC): Likewise.
21937 (__ST4_LANE_FUNC): Likewise.
21938 * config/aarch64/iterators.md (V_TWO_ELEM): New.
21939 (V_THREE_ELEM): Likewise.
21940 (V_FOUR_ELEM): Likewise.
21941
21942 2014-04-28 David Malcolm <dmalcolm@redhat.com>
21943
21944 * doc/gimple.texi: Replace the description of the now-defunct
21945 union gimple_statement_d with a diagram showing the
21946 gimple_statement_base class hierarchy and its relationships to
21947 the GSS_ and GIMPLE_ enums.
21948
21949 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21950
21951 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
21952 * config/aarch64/aarch64.c
21953 (aarch64_cannot_change_mode_class): Weaken conditions.
21954 (aarch64_modes_tieable_p): New.
21955 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
21956
21957 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
21958
21959 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21960 (loadsync_<mode>): Change mode.
21961 (load_quadpti, store_quadpti): New.
21962 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21963 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21964
21965 2014-04-28 Martin Jambor <mjambor@suse.cz>
21966
21967 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
21968 same alias type as the original statement.
21969 (subreplacement_assignment_data): New type.
21970 (handle_unscalarized_data_in_subtree): New type of parameter,
21971 generate new memory accesses with same alias type as the original
21972 statement.
21973 (load_assign_lhs_subreplacements): Likewise.
21974 (sra_modify_constructor_assign): Generate new memory accesses with
21975 same alias type as the original statement.
21976
21977 2014-04-28 Richard Biener <rguenther@suse.de>
21978
21979 * tree-pass.h (TODO_verify_il): Define.
21980 (TODO_verify_all): Complete properly.
21981 * passes.c (execute_function_todo): Move existing loop-closed
21982 SSA verification under TODO_verify_il.
21983 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
21984 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
21985 Fix tree sharing issue.
21986
21987 2014-04-28 Richard Biener <rguenther@suse.de>
21988
21989 PR middle-end/60092
21990 * builtins.def (DEF_C11_BUILTIN): Add.
21991 (BUILT_IN_ALIGNED_ALLOC): Likewise.
21992 * coretypes.h (enum function_class): Add function_c11_misc.
21993 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21994 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
21995 (call_may_clobber_ref_p_1): Likewise.
21996 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21997 (mark_all_reaching_defs_necessary_1): Likewise.
21998 (propagate_necessity): Likewise.
21999 (eliminate_unnecessary_stmts): Likewise.
22000 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22001
22002 2014-04-28 Richard Biener <rguenther@suse.de>
22003
22004 * tree-vrp.c (vrp_var_may_overflow): Remove.
22005 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22006 with overflow immediately bump to one before that value and
22007 let iteration figure out overflow status.
22008
22009 2014-04-28 Richard Biener <rguenther@suse.de>
22010
22011 * configure.ac: Do valgrind header checks unconditionally.
22012 Add --enable-valgrind-annotations.
22013 * system.h: Guard valgrind header inclusion with
22014 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22015 * alloc-pool.c (pool_alloc, pool_free): Use
22016 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22017 to guard possibly dead code.
22018 * config.in: Regenerated.
22019 * configure: Likewise.
22020
22021 2014-04-28 Jeff Law <law@redhat.com>
22022
22023 PR tree-optimization/60902
22024 * tree-ssa-threadedge.c
22025 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22026 over real defs when invalidating outputs from statements that do not
22027 produce useful outputs for threading.
22028
22029 2014-04-28 Richard Biener <rguenther@suse.de>
22030
22031 PR tree-optimization/60979
22032 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22033 SCOPs that end in a block with a successor with abnormal
22034 predecessors.
22035
22036 2014-04-28 Richard Biener <rguenther@suse.de>
22037
22038 * tree-pass.h (execute_pass_list): Adjust prototype.
22039 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22040 (do_per_function): Change callback signature, push all actual
22041 work to the callbals.
22042 (do_per_function_toporder): Likewise.
22043 (execute_function_dump): Adjust.
22044 (execute_function_todo): Likewise.
22045 (clear_last_verified): Likewise.
22046 (verify_curr_properties): Likewise.
22047 (update_properties_after_pass): Likewise.
22048 (execute_pass_list_1): Split out from ...
22049 (execute_pass_list): ... here. Adjust.
22050 (execute_ipa_pass_list): Likewise.
22051 * cgraphunit.c (cgraph_add_new_function): Adjust.
22052 (analyze_function): Likewise.
22053 (expand_function): Likewise.
22054 * cgraph.c (release_function_body): Free dominance info
22055 here instead of asserting it was magically freed elsewhere.
22056
22057 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22058
22059 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22060 * configure: Regenerate.
22061 * config/sparc/sparc.opt (muser-mode): New option.
22062 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22063 for LEON3.
22064 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22065 * doc/invoke.texi (SPARC options): Document -muser-mode.
22066
22067 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22068
22069 * cselib.c (find_slot_memmode): Delete.
22070 (cselib_hasher): Change compare_type to a struct.
22071 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22072 constants.
22073 (preserve_constants_and_equivs): Adjust for new compare_type.
22074 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22075 (wrap_constant): Delete.
22076 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22077
22078 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22079
22080 * doc/install.texi (Building with profile feedback): Remove
22081 outdated sentence.
22082
22083 2014-04-26 Tom de Vries <tom@codesourcery.com>
22084
22085 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22086 array accesses.
22087
22088 2014-04-25 Cary Coutant <ccoutant@google.com>
22089
22090 PR debug/60929
22091 * dwarf2out.c (should_move_die_to_comdat): A type definition
22092 can contain a subprogram definition, but don't move it to a
22093 comdat unit.
22094 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22095 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22096 from original DIE.
22097 (clone_tree_hash): Rename to...
22098 (clone_tree_partial): ...this; change callers. Copy
22099 DW_TAG_subprogram DIEs as declarations.
22100 (copy_decls_walk): Don't copy children of a declaration into a
22101 type unit.
22102
22103 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22104
22105 PR target/60969
22106 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22107 alternative 12.
22108
22109 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22110
22111 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22112 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22113 reg for long_call.
22114 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22115 restriction.
22116
22117 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22118
22119 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22120
22121 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22122
22123 PR tree-optimization/60930
22124 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22125 creating a multiply candidate by folding two constant
22126 multiplicands when the result overflows.
22127
22128 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22129
22130 PR tree-optimization/60960
22131 * tree-vect-generic.c (expand_vector_operation): Only call
22132 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22133
22134 2014-04-25 Tom de Vries <tom@codesourcery.com>
22135
22136 * expr.c (clobber_reg_mode): New function.
22137 * expr.h (clobber_reg): New function.
22138
22139 2014-04-25 Tom de Vries <tom@codesourcery.com>
22140
22141 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22142 clobbers.
22143
22144 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22145 Tom de Vries <tom@codesourcery.com>
22146
22147 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22148 handle.
22149 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22150 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22151 new argument to find_all_hard_reg_sets call.
22152
22153 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22154
22155 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22156 Use HOST_WIDE_INT_C for mask literal.
22157 (aarch_rev16_shleft_mask_imm_p): Likewise.
22158
22159 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22160
22161 PR target/60941
22162 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22163
22164 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22165
22166 PR preprocessor/56540
22167 * config/i386/i386-c.c (ix86_target_macros): Define
22168 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22169
22170 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22171
22172 * configure.ac (tga_func): Remove.
22173 (LIB_TLS_SPEC): Remove.
22174 * configure: Regenerate.
22175 * config.in: Regenerate.
22176 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22177
22178 2014-04-25 Richard Biener <rguenther@suse.de>
22179
22180 PR ipa/60912
22181 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22182 call stmt use/clobber sets during stmt walk instead of
22183 walking the possibly incomplete set of caller edges.
22184
22185 2014-04-25 Richard Biener <rguenther@suse.de>
22186
22187 PR ipa/60911
22188 * passes.c (apply_ipa_transforms): Inline into only caller ...
22189 (execute_one_pass): ... here. Properly bring in function
22190 bodies for nodes we want to apply IPA transforms to.
22191
22192 2014-04-24 Cong Hou <congh@google.com>
22193
22194 PR tree-optimization/60896
22195 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22196 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22197 (vect_mark_pattern_stmts): Set the def type of all statements in
22198 PATTERN_DEF_SEQ as vect_internal_def.
22199
22200 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22201
22202 * doc/extend.texi (PowerPC Built-in Functions): Document new
22203 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22204 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22205
22206 * config/rs6000/predicates.md (const_0_to_3_operand): New
22207 predicate to match 0..3 integer constants.
22208
22209 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22210 to support adding miscellaneous builtin functions.
22211 (BU_DFP_MISC_2): Likewise.
22212 (BU_P7_MISC_1): Likewise.
22213 (BU_P7_MISC_2): Likewise.
22214 (BU_P8V_MISC_3): Likewise.
22215 (BU_MISC_1): Likewise.
22216 (BU_MISC_2): Likewise.
22217 (DIVWE): Add extended divide builtin functions.
22218 (DIVWEO): Likewise.
22219 (DIVWEU): Likewise.
22220 (DIVWEUO): Likewise.
22221 (DIVDE): Likewise.
22222 (DIVDEO): Likewise.
22223 (DIVDEU): Likewise.
22224 (DIVDEUO): Likewise.
22225 (DXEX): Add decimal floating-point builtin functions.
22226 (DXEXQ): Likewise.
22227 (DDEDPD): Likewise.
22228 (DDEDPDQ): Likewise.
22229 (DENBCD): Likewise.
22230 (DENBCDQ): Likewise.
22231 (DIEX): Likewise.
22232 (DIEXQ): Likewise.
22233 (DSCLI): Likewise.
22234 (DSCLIQ): Likewise.
22235 (DSCRI): Likewise.
22236 (DSCRIQ): Likewise.
22237 (CDTBCD): Add new BCD builtin functions.
22238 (CBCDTD): Likewise.
22239 (ADDG6S): Likewise.
22240 (BCDADD): Likewise.
22241 (BCDADD_LT): Likewise.
22242 (BCDADD_EQ): Likewise.
22243 (BCDADD_GT): Likewise.
22244 (BCDADD_OV): Likewise.
22245 (BCDSUB): Likewise.
22246 (BCDSUB_LT): Likewise.
22247 (BCDSUB_EQ): Likewise.
22248 (BCDSUB_GT): Likewise.
22249 (BCDSUB_OV): Likewise.
22250 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22251 (UNPACK_TD): Likewise.
22252 (PACK_TF): Likewise.
22253 (UNPACK_TF): Likewise.
22254 (UNPACK_TF_0): Likewise.
22255 (UNPACK_TF_1): Likewise.
22256 (PACK_V1TI): Likewise.
22257 (UNPACK_V1TI): Likewise.
22258
22259 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22260 support for decimal floating point builtin functions.
22261 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22262 functions that take constant arguments.
22263 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22264 (rs6000_init_builtins): Setup long double, _Decimal64, and
22265 _Decimal128 types for new builtin functions.
22266 (builtin_function_type): Set the unsigned flags appropriately for
22267 the new builtin functions.
22268 (rs6000_opt_masks): Add support for decimal floating point builtin
22269 functions.
22270
22271 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22272 floating point builtin functions.
22273 (RS6000_BTM_COMMON): Likewise.
22274 (RS6000_BTI_long_double): Likewise.
22275 (RS6000_BTI_dfloat64): Likewise.
22276 (RS6000_BTI_dfloat128): Likewise.
22277 (long_double_type_internal_node): Likewise.
22278 (dfloat64_type_internal_node): Likewise.
22279 (dfloat128_type_internal_node): Likewise.
22280
22281 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22282 2.07 bcd arithmetic instructions.
22283 (UNSPEC_BCDSUB): Likewise.
22284 (UNSPEC_BCD_OVERFLOW): Likewise.
22285 (UNSPEC_BCD_ADD_SUB): Likewise.
22286 (bcd_add_sub): Likewise.
22287 (BCD_TEST): Likewise.
22288 (bcd<bcd_add_sub>): Likewise.
22289 (bcd<bcd_add_sub>_test): Likewise.
22290 (bcd<bcd_add_sub>_test2): Likewise.
22291 (bcd<bcd_add_sub>_<code>): Likewise.
22292 (peephole2 for combined bcd ops): Likewise.
22293
22294 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22295 decimal floating point builtin functions.
22296 (UNSPEC_DENBCD): Likewise.
22297 (UNSPEC_DXEX): Likewise.
22298 (UNSPEC_DIEX): Likewise.
22299 (UNSPEC_DSCLI): Likewise.
22300 (UNSPEC_DSCRI): Likewise.
22301 (D64_D128): Likewise.
22302 (dfp_suffix): Likewise.
22303 (dfp_ddedpd_<mode>): Likewise.
22304 (dfp_denbcd_<mode>): Likewise.
22305 (dfp_dxex_<mode>): Likewise.
22306 (dfp_diex_<mode>): Likewise.
22307 (dfp_dscli_<mode>): Likewise.
22308 (dfp_dscri_<mode>): Likewise.
22309
22310 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22311 builtin functions.
22312 (UNSPEC_CDTBCD): Likewise.
22313 (UNSPEC_CBCDTD): Likewise.
22314 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22315 (UNSPEC_DIVEO): Likewise.
22316 (UNSPEC_DIVEU): Likewise.
22317 (UNSPEC_DIVEUO): Likewise.
22318 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22319 pack/unpack 128-bit types.
22320 (UNSPEC_PACK_128BIT): Likewise.
22321 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22322 (udiv<mode>3): Use idiv_ldiv mode attribute.
22323 (div<mode>3): Likewise.
22324 (addg6s): Add new BCD builtin functions.
22325 (cdtbcd): Likewise.
22326 (cbcdtd): Likewise.
22327 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22328 (div_extend): Likewise.
22329 (div<div_extend>_<mode>"): Likewise.
22330 (FP128_64): Add support for new builtin functions to pack/unpack
22331 128-bit types.
22332 (unpack<mode>): Likewise.
22333 (unpacktf_0): Likewise.
22334 (unpacktf_1): Likewise.
22335 (unpack<mode>_dm): Likewise.
22336 (unpack<mode>_nodm): Likewise.
22337 (pack<mode>): Likewise.
22338 (unpackv1ti): Likewise.
22339 (packv1ti): Likewise.
22340
22341 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22342
22343 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22344 is disabled.
22345
22346 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22347
22348 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22349 * gimplify.c (omp_is_private): Change last argument's type to int.
22350 Only diagnose lastprivate if the simd argument is 1, only diagnose
22351 linear if the simd argument is 2.
22352 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22353 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22354 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22355 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22356 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22357 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22358 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22359 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22360 * tree-nested.c (convert_nonlocal_omp_clauses,
22361 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22362
22363 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22364
22365 PR target/60822
22366 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22367 operand 1.
22368
22369 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22370
22371 * flag-types.h (enum ivar_visibility): Add.
22372
22373 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22374
22375 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22376 function * argument.
22377
22378 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22379
22380 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22381
22382 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22383 Tom de Vries <tom@codesourcery.com>
22384
22385 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22386 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22387 reg-note.
22388 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22389 * emit-rtl.c (try_split): Same.
22390
22391 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22392 Tom de Vries <tom@codesourcery.com>
22393
22394 * common.opt (fuse-caller-save): New option.
22395
22396 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22397
22398 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22399 elements for big-endian.
22400
22401 2014-04-24 Richard Biener <rguenther@suse.de>
22402
22403 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22404 during TER and instead use the sepops interface for expanding
22405 non-GIMPLE_SINGLE_RHS.
22406
22407 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22408
22409 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22410 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22411
22412 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22413
22414 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22415 assembler 64-bit option.
22416 * configure: Regenerate.
22417
22418 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22419
22420 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22421 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22422 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22423 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22424 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22425
22426 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22427
22428 * config/aarch64/aarch64-builtins.c
22429 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22430 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22431 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22432 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22433 builtins.
22434 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22435 (Vrevsuff): New mode attribute.
22436
22437 2014-04-24 Terry Guo <terry.guo@arm.com>
22438
22439 * config/arm/arm.h (machine_function): Define variable
22440 after_arm_reorg here.
22441 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22442 (arm_split_constant): Update the way to access variable
22443 after_arm_reorg.
22444 (arm_reorg): Ditto.
22445 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22446
22447 2014-04-23 Tom de Vries <tom@codesourcery.com>
22448
22449 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22450
22451 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22452
22453 * is-a.h: Update comments to reflect the following changes to the
22454 "pointerness" of the API, making the template parameter match the
22455 return type, allowing use of is-a.h with typedefs of pointers.
22456 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22457 that the return type matches the parameter to the is_a_helper.
22458 (as_a): Likewise.
22459 (dyn_cast): Likewise.
22460
22461 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22462 pointer from the is-a.h API.
22463
22464 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22465 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22466 is-a.h API.
22467 (is_a_helper <varpool_node>::test): Likewise, convert to...
22468 (is_a_helper <varpool_node *>::test): ...this.
22469
22470 (varpool_first_variable): Update for removal of implicit pointer
22471 from the is-a.h API.
22472 (varpool_next_variable): Likewise.
22473 (varpool_first_static_initializer): Likewise.
22474 (varpool_next_static_initializer): Likewise.
22475 (varpool_first_defined_variable): Likewise.
22476 (varpool_next_defined_variable): Likewise.
22477 (cgraph_first_defined_function): Likewise.
22478 (cgraph_next_defined_function): Likewise.
22479 (cgraph_first_function): Likewise.
22480 (cgraph_next_function): Likewise.
22481 (cgraph_first_function_with_gimple_body): Likewise.
22482 (cgraph_next_function_with_gimple_body): Likewise.
22483 (cgraph_alias_target): Likewise.
22484 (varpool_alias_target): Likewise.
22485 (cgraph_function_or_thunk_node): Likewise.
22486 (varpool_variable_node): Likewise.
22487 (symtab_real_symbol_p): Likewise.
22488 * cgraphunit.c (referred_to_p): Likewise.
22489 (analyze_functions): Likewise.
22490 (handle_alias_pairs): Likewise.
22491 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22492 * gimple-ssa.h (gimple_vuse_op): Likewise.
22493 (gimple_vdef_op): Likewise.
22494 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22495 * gimple.c (gimple_build_asm_1): Likewise.
22496 (gimple_build_try): Likewise.
22497 (gimple_build_resx): Likewise.
22498 (gimple_build_eh_dispatch): Likewise.
22499 (gimple_build_omp_for): Likewise.
22500 (gimple_omp_for_set_clauses): Likewise.
22501
22502 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22503 (is_a_helper <gimple_statement_asm *>::test): ...this.
22504 (is_a_helper <gimple_statement_bind>::test): Convert to...
22505 (is_a_helper <gimple_statement_bind *>::test): ...this.
22506 (is_a_helper <gimple_statement_call>::test): Convert to...
22507 (is_a_helper <gimple_statement_call *>::test): ...this.
22508 (is_a_helper <gimple_statement_catch>::test): Convert to...
22509 (is_a_helper <gimple_statement_catch *>::test): ...this.
22510 (is_a_helper <gimple_statement_resx>::test): Convert to...
22511 (is_a_helper <gimple_statement_resx *>::test): ...this.
22512 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22513 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22514 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22515 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22516 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22517 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22518 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22519 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22520 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22521 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22522 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22523 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22524 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22525 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22526 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22527 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22528 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22529 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22530 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22531 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22532 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22533 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22534 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22535 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22536 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22537 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22538 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22539 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22540 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22541 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22542 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22543 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22544 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22545 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22546 (is_a_helper <gimple_statement_phi>::test): Convert to...
22547 (is_a_helper <gimple_statement_phi *>::test): ...this.
22548 (is_a_helper <gimple_statement_transaction>::test): Convert to...
22549 (is_a_helper <gimple_statement_transaction *>::test): ...this.
22550 (is_a_helper <gimple_statement_try>::test): Convert to...
22551 (is_a_helper <gimple_statement_try *>::test): ...this.
22552 (is_a_helper <gimple_statement_wce>::test): Convert to...
22553 (is_a_helper <gimple_statement_wce *>::test): ...this.
22554 (is_a_helper <const gimple_statement_asm>::test): Convert to...
22555 (is_a_helper <const gimple_statement_asm *>::test): ...this.
22556 (is_a_helper <const gimple_statement_bind>::test): Convert to...
22557 (is_a_helper <const gimple_statement_bind *>::test): ...this.
22558 (is_a_helper <const gimple_statement_call>::test): Convert to...
22559 (is_a_helper <const gimple_statement_call *>::test): ...this.
22560 (is_a_helper <const gimple_statement_catch>::test): Convert to...
22561 (is_a_helper <const gimple_statement_catch *>::test): ...this.
22562 (is_a_helper <const gimple_statement_resx>::test): Convert to...
22563 (is_a_helper <const gimple_statement_resx *>::test): ...this.
22564 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22565 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22566 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22567 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22568 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22569 Convert to...
22570 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22571 ...this.
22572 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22573 Convert to...
22574 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22575 ...this.
22576 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22577 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22578 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22579 to...
22580 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22581 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22582 to...
22583 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22584 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22585 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22586 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22587 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22588 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22589 to...
22590 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22591 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22592 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22593 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22594 to...
22595 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22596 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22597 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22598 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22599 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22600 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22601 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22602 (is_a_helper <const gimple_statement_phi>::test): Convert to...
22603 (is_a_helper <const gimple_statement_phi *>::test): ...this.
22604 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22605 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22606 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22607 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22608 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22609 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22610 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22611 to...
22612 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22613 ...this.
22614 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22615 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22616
22617 (gimple_use_ops): Update for removal of implicit pointer from the
22618 is-a.h API.
22619 (gimple_set_use_ops): Likewise.
22620 (gimple_vuse): Likewise.
22621 (gimple_vdef): Likewise.
22622 (gimple_vuse_ptr): Likewise.
22623 (gimple_vdef_ptr): Likewise.
22624 (gimple_set_vuse): Likewise.
22625 (gimple_set_vdef): Likewise.
22626 (gimple_omp_return_set_lhs): Likewise.
22627 (gimple_omp_return_lhs): Likewise.
22628 (gimple_omp_return_lhs_ptr): Likewise.
22629 (gimple_call_fntype): Likewise.
22630 (gimple_call_set_fntype): Likewise.
22631 (gimple_call_set_internal_fn): Likewise.
22632 (gimple_call_use_set): Likewise.
22633 (gimple_call_clobber_set): Likewise.
22634 (gimple_bind_vars): Likewise.
22635 (gimple_bind_set_vars): Likewise.
22636 (gimple_bind_body_ptr): Likewise.
22637 (gimple_bind_set_body): Likewise.
22638 (gimple_bind_add_stmt): Likewise.
22639 (gimple_bind_block): Likewise.
22640 (gimple_bind_set_block): Likewise.
22641 (gimple_asm_ninputs): Likewise.
22642 (gimple_asm_noutputs): Likewise.
22643 (gimple_asm_nclobbers): Likewise.
22644 (gimple_asm_nlabels): Likewise.
22645 (gimple_asm_input_op): Likewise.
22646 (gimple_asm_input_op_ptr): Likewise.
22647 (gimple_asm_output_op): Likewise.
22648 (gimple_asm_output_op_ptr): Likewise.
22649 (gimple_asm_set_output_op): Likewise.
22650 (gimple_asm_clobber_op): Likewise.
22651 (gimple_asm_set_clobber_op): Likewise.
22652 (gimple_asm_label_op): Likewise.
22653 (gimple_asm_set_label_op): Likewise.
22654 (gimple_asm_string): Likewise.
22655 (gimple_catch_types): Likewise.
22656 (gimple_catch_types_ptr): Likewise.
22657 (gimple_catch_handler_ptr): Likewise.
22658 (gimple_catch_set_types): Likewise.
22659 (gimple_catch_set_handler): Likewise.
22660 (gimple_eh_filter_types): Likewise.
22661 (gimple_eh_filter_types_ptr): Likewise.
22662 (gimple_eh_filter_failure_ptr): Likewise.
22663 (gimple_eh_filter_set_types): Likewise.
22664 (gimple_eh_filter_set_failure): Likewise.
22665 (gimple_eh_must_not_throw_fndecl): Likewise.
22666 (gimple_eh_must_not_throw_set_fndecl): Likewise.
22667 (gimple_eh_else_n_body_ptr): Likewise.
22668 (gimple_eh_else_e_body_ptr): Likewise.
22669 (gimple_eh_else_set_n_body): Likewise.
22670 (gimple_eh_else_set_e_body): Likewise.
22671 (gimple_try_eval_ptr): Likewise.
22672 (gimple_try_cleanup_ptr): Likewise.
22673 (gimple_try_set_eval): Likewise.
22674 (gimple_try_set_cleanup): Likewise.
22675 (gimple_wce_cleanup_ptr): Likewise.
22676 (gimple_wce_set_cleanup): Likewise.
22677 (gimple_phi_capacity): Likewise.
22678 (gimple_phi_num_args): Likewise.
22679 (gimple_phi_result): Likewise.
22680 (gimple_phi_result_ptr): Likewise.
22681 (gimple_phi_set_result): Likewise.
22682 (gimple_phi_arg): Likewise.
22683 (gimple_phi_set_arg): Likewise.
22684 (gimple_resx_region): Likewise.
22685 (gimple_resx_set_region): Likewise.
22686 (gimple_eh_dispatch_region): Likewise.
22687 (gimple_eh_dispatch_set_region): Likewise.
22688 (gimple_omp_critical_name): Likewise.
22689 (gimple_omp_critical_name_ptr): Likewise.
22690 (gimple_omp_critical_set_name): Likewise.
22691 (gimple_omp_for_clauses): Likewise.
22692 (gimple_omp_for_clauses_ptr): Likewise.
22693 (gimple_omp_for_set_clauses): Likewise.
22694 (gimple_omp_for_collapse): Likewise.
22695 (gimple_omp_for_index): Likewise.
22696 (gimple_omp_for_index_ptr): Likewise.
22697 (gimple_omp_for_set_index): Likewise.
22698 (gimple_omp_for_initial): Likewise.
22699 (gimple_omp_for_initial_ptr): Likewise.
22700 (gimple_omp_for_set_initial): Likewise.
22701 (gimple_omp_for_final): Likewise.
22702 (gimple_omp_for_final_ptr): Likewise.
22703 (gimple_omp_for_set_final): Likewise.
22704 (gimple_omp_for_incr): Likewise.
22705 (gimple_omp_for_incr_ptr): Likewise.
22706 (gimple_omp_for_set_incr): Likewise.
22707 (gimple_omp_for_pre_body_ptr): Likewise.
22708 (gimple_omp_for_set_pre_body): Likewise.
22709 (gimple_omp_parallel_clauses): Likewise.
22710 (gimple_omp_parallel_clauses_ptr): Likewise.
22711 (gimple_omp_parallel_set_clauses): Likewise.
22712 (gimple_omp_parallel_child_fn): Likewise.
22713 (gimple_omp_parallel_child_fn_ptr): Likewise.
22714 (gimple_omp_parallel_set_child_fn): Likewise.
22715 (gimple_omp_parallel_data_arg): Likewise.
22716 (gimple_omp_parallel_data_arg_ptr): Likewise.
22717 (gimple_omp_parallel_set_data_arg): Likewise.
22718 (gimple_omp_task_clauses): Likewise.
22719 (gimple_omp_task_clauses_ptr): Likewise.
22720 (gimple_omp_task_set_clauses): Likewise.
22721 (gimple_omp_task_child_fn): Likewise.
22722 (gimple_omp_task_child_fn_ptr): Likewise.
22723 (gimple_omp_task_set_child_fn): Likewise.
22724 (gimple_omp_task_data_arg): Likewise.
22725 (gimple_omp_task_data_arg_ptr): Likewise.
22726 (gimple_omp_task_set_data_arg): Likewise.
22727 (gimple_omp_taskreg_clauses): Likewise.
22728 (gimple_omp_taskreg_clauses_ptr): Likewise.
22729 (gimple_omp_taskreg_set_clauses): Likewise.
22730 (gimple_omp_taskreg_child_fn): Likewise.
22731 (gimple_omp_taskreg_child_fn_ptr): Likewise.
22732 (gimple_omp_taskreg_set_child_fn): Likewise.
22733 (gimple_omp_taskreg_data_arg): Likewise.
22734 (gimple_omp_taskreg_data_arg_ptr): Likewise.
22735 (gimple_omp_taskreg_set_data_arg): Likewise.
22736 (gimple_omp_task_copy_fn): Likewise.
22737 (gimple_omp_task_copy_fn_ptr): Likewise.
22738 (gimple_omp_task_set_copy_fn): Likewise.
22739 (gimple_omp_task_arg_size): Likewise.
22740 (gimple_omp_task_arg_size_ptr): Likewise.
22741 (gimple_omp_task_set_arg_size): Likewise.
22742 (gimple_omp_task_arg_align): Likewise.
22743 (gimple_omp_task_arg_align_ptr): Likewise.
22744 (gimple_omp_task_set_arg_align): Likewise.
22745 (gimple_omp_single_clauses): Likewise.
22746 (gimple_omp_single_clauses_ptr): Likewise.
22747 (gimple_omp_single_set_clauses): Likewise.
22748 (gimple_omp_target_clauses): Likewise.
22749 (gimple_omp_target_clauses_ptr): Likewise.
22750 (gimple_omp_target_set_clauses): Likewise.
22751 (gimple_omp_target_child_fn): Likewise.
22752 (gimple_omp_target_child_fn_ptr): Likewise.
22753 (gimple_omp_target_set_child_fn): Likewise.
22754 (gimple_omp_target_data_arg): Likewise.
22755 (gimple_omp_target_data_arg_ptr): Likewise.
22756 (gimple_omp_target_set_data_arg): Likewise.
22757 (gimple_omp_teams_clauses): Likewise.
22758 (gimple_omp_teams_clauses_ptr): Likewise.
22759 (gimple_omp_teams_set_clauses): Likewise.
22760 (gimple_omp_sections_clauses): Likewise.
22761 (gimple_omp_sections_clauses_ptr): Likewise.
22762 (gimple_omp_sections_set_clauses): Likewise.
22763 (gimple_omp_sections_control): Likewise.
22764 (gimple_omp_sections_control_ptr): Likewise.
22765 (gimple_omp_sections_set_control): Likewise.
22766 (gimple_omp_for_set_cond): Likewise.
22767 (gimple_omp_for_cond): Likewise.
22768 (gimple_omp_atomic_store_set_val): Likewise.
22769 (gimple_omp_atomic_store_val): Likewise.
22770 (gimple_omp_atomic_store_val_ptr): Likewise.
22771 (gimple_omp_atomic_load_set_lhs): Likewise.
22772 (gimple_omp_atomic_load_lhs): Likewise.
22773 (gimple_omp_atomic_load_lhs_ptr): Likewise.
22774 (gimple_omp_atomic_load_set_rhs): Likewise.
22775 (gimple_omp_atomic_load_rhs): Likewise.
22776 (gimple_omp_atomic_load_rhs_ptr): Likewise.
22777 (gimple_omp_continue_control_def): Likewise.
22778 (gimple_omp_continue_control_def_ptr): Likewise.
22779 (gimple_omp_continue_set_control_def): Likewise.
22780 (gimple_omp_continue_control_use): Likewise.
22781 (gimple_omp_continue_control_use_ptr): Likewise.
22782 (gimple_omp_continue_set_control_use): Likewise.
22783 (gimple_transaction_body_ptr): Likewise.
22784 (gimple_transaction_label): Likewise.
22785 (gimple_transaction_label_ptr): Likewise.
22786 (gimple_transaction_set_body): Likewise.
22787 (gimple_transaction_set_label): Likewise.
22788
22789 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22790 * ipa-inline-analysis.c (inline_write_summary): Likewise.
22791 * ipa-ref.c (ipa_record_reference): Likewise.
22792 * ipa-reference.c (analyze_function): Likewise.
22793 (ipa_reference_write_optimization_summary): Likewise.
22794 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22795 (address_taken_from_non_vtable_p): Likewise.
22796 (comdat_can_be_unshared_p_1): Likewise.
22797 * lto-cgraph.c (lto_output_ref): Likewise.
22798 (add_references): Likewise.
22799 (compute_ltrans_boundary): Likewise.
22800 (output_symtab): Likewise.
22801 (input_ref): Likewise.
22802 (input_cgraph_1): Likewise.
22803 (output_cgraph_opt_summary): Likewise.
22804 * lto-streamer-out.c (lto_output): Likewise.
22805 (output_symbol_p): Likewise.
22806 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22807 (lsei_start_function_in_partition): Likewise.
22808 (lsei_next_variable_in_partition): Likewise.
22809 (lsei_start_variable_in_partition): Likewise.
22810 * symtab.c (insert_to_assembler_name_hash): Likewise.
22811 (unlink_from_assembler_name_hash): Likewise.
22812 (symtab_unregister_node): Likewise.
22813 (symtab_remove_node): Likewise.
22814 (dump_symtab_node): Likewise.
22815 (verify_symtab_base): Likewise.
22816 (verify_symtab_node): Likewise.
22817 (symtab_make_decl_local): Likewise.
22818 (symtab_alias_ultimate_target): Likewise.
22819 (symtab_resolve_alias): Likewise.
22820 (symtab_get_symbol_partitioning_class): Likewise.
22821 * tree-phinodes.c (allocate_phi_node): Likewise.
22822 (reserve_phi_args_for_new_edge): Likewise.
22823 (remove_phi_args): Likewise.
22824 * varpool.c (varpool_node_for_asm): Likewise.
22825 (varpool_remove_unreferenced_decls): Likewise.
22826
22827 2014-04-23 Jeff Law <law@redhat.com>
22828
22829 PR tree-optimization/60902
22830 * tree-ssa-threadedge.c
22831 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22832 invalidate outputs from statements that do not produce useful
22833 outputs for threading.
22834
22835 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
22836
22837 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22838 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22839 machine descriptions for Stack Smashing Protector.
22840
22841 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
22842
22843 * aarch64.md (<optab>_rol<mode>3): New pattern.
22844 (<optab>_rolsi3_uxtw): Likewise.
22845 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
22846
22847 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
22848
22849 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
22850 (arm_cortex_a12_tune): Likewise.
22851
22852 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22853
22854 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
22855
22856 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22857
22858 * config/arm/arm.md (arm_rev16si2): New pattern.
22859 (arm_rev16si2_alt): Likewise.
22860 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
22861
22862 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22863
22864 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
22865 (rev16<mode>2_alt): Likewise.
22866 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
22867 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22868 (aarch_rev16_shleft_mask_imm_p): Likewise.
22869 (aarch_rev16_p_1): Likewise.
22870 (aarch_rev16_p): Likewise.
22871 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22872 (aarch_rev16_shright_mask_imm_p): Likewise.
22873 (aarch_rev16_shleft_mask_imm_p): Likewise.
22874
22875 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22876
22877 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22878 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22879 rev cost.
22880 (cortex_a53_extra_costs): Likewise.
22881 (cortex_a57_extra_costs): Likewise.
22882 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22883 (cortexa7_extra_costs): Likewise.
22884 (cortexa8_extra_costs): Likewise.
22885 (cortexa12_extra_costs): Likewise.
22886 (cortexa15_extra_costs): Likewise.
22887 (v7m_extra_costs): Likewise.
22888 (arm_new_rtx_costs): Handle BSWAP.
22889
22890 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22891
22892 * config/arm/arm.c (cortexa8_extra_costs): New table.
22893 (arm_cortex_a8_tune): New tuning struct.
22894 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22895
22896 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22897
22898 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22899
22900 2014-04-23 Richard Biener <rguenther@suse.de>
22901
22902 * Makefile.in (OBJS): Remove loop-unswitch.o.
22903 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22904 * passes.def (pass_rtl_unswitch): Likewise.
22905 * loop-init.c (gate_rtl_unswitch): Likewise.
22906 (rtl_unswitch): Likewise.
22907 (pass_data_rtl_unswitch): Likewise.
22908 (pass_rtl_unswitch): Likewise.
22909 (make_pass_rtl_unswitch): Likewise.
22910 * rtl.h (reversed_condition): Likewise.
22911 (compare_and_jump_seq): Likewise.
22912 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
22913 and make static.
22914 * loop-unroll.c (compare_and_jump_seq): Likewise.
22915
22916 2014-04-23 Richard Biener <rguenther@suse.de>
22917
22918 PR tree-optimization/60903
22919 * tree-ssa-loop-im.c (analyze_memory_references): Remove
22920 commented code block.
22921 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
22922 loop flags to newly created BBs and edges.
22923
22924 2014-04-23 Nick Clifton <nickc@redhat.com>
22925
22926 * config/msp430/msp430.c (msp430_handle_option): Move function
22927 to msp430-common.c
22928 (msp430_option_override): Simplify mcu and mcpu option handling.
22929 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
22930 support for -mhwmult command line option.
22931 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
22932 -mhwmult command line option.
22933 (msp430_hwmult_enabled): Delete.
22934 (msp43o_output_labelref): Add support for -mhwmult command line option.
22935 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
22936 (umulsidi3): Likewise.
22937 * config/msp430/msp430.opt (mmcu): Add Report attribute.
22938 (mcpu, mlarge, msmall): Likewise.
22939 (mhwmult): New option.
22940 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
22941 prototype.
22942 (msp430_is_f5_mcu): Remove prototype.
22943 (msp430_use_f5_series_hwmult): Add prototype.
22944 * config/msp430/msp430-opts.h: New file.
22945 * common/config/msp430: New directory.
22946 * common/config/msp430/msp430-common.c: New file.
22947 * config.gcc (msp430): Remove target_has_targetm_common.
22948 * doc/invoke.texi: Document -mhwmult command line option.
22949
22950 2014-04-23 Nick Clifton <nickc@redhat.com>
22951
22952 * config/i386/cygwin.h (ENDFILE_SPEC): Include
22953 default-manifest.o if it can be found in the search path.
22954 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22955
22956 2014-04-23 Terry Guo <terry.guo@arm.com>
22957
22958 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
22959
22960 2014-04-23 Richard Biener <rguenther@suse.de>
22961
22962 PR middle-end/60895
22963 * tree-inline.c (declare_return_variable): Use mark_addressable.
22964
22965 2014-04-23 Richard Biener <rguenther@suse.de>
22966
22967 PR middle-end/60891
22968 * loop-init.c (loop_optimizer_init): Make sure to apply
22969 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
22970
22971 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22972
22973 PR sanitizer/60275
22974 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
22975 New options.
22976 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
22977 if flag_sanitize_undefined_trap_on_error.
22978 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
22979 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
22980 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
22981 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
22982 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
22983 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
22984 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
22985 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
22986 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
22987 * ubsan.c (ubsan_instrument_unreachable): Return
22988 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
22989 (ubsan_expand_null_ifn): Emit __builtin_trap ()
22990 if flag_sanitize_undefined_trap_on_error and
22991 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
22992 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
22993 instrument_bool_enum_load): Emit __builtin_trap () if
22994 flag_sanitize_undefined_trap_on_error and
22995 __builtin_handle_*_abort () if !flag_sanitize_recover.
22996 * doc/invoke.texi (-fsanitize-recover,
22997 -fsanitize-undefined-trap-on-error): Document.
22998
22999 2014-04-22 Christian Bruel <christian.bruel@st.com>
23000
23001 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23002 Force immediates to SImode.
23003
23004 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23005
23006 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23007 (lroundsfsi2): New.
23008 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23009 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23010 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23011 (nios2_fpu_insn): Add entry for round.
23012 (N2FPU_NO_ERRNO_P): Define.
23013 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23014 flag_errno_math.
23015 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23016
23017 2014-04-22 Richard Henderson <rth@redhat.com>
23018
23019 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23020 (add<GPI>3_compare0): Remove leading * from name.
23021 (add<GPI>3_carryin): Likewise.
23022 (sub<GPI>3_compare0): Likewise.
23023 (sub<GPI>3_carryin): Likewise.
23024 (<su_optab>mulditi3): New expander.
23025 (multi3): New expander.
23026 (madd<GPI>): Remove leading * from name.
23027
23028 2014-04-22 Martin Jambor <mjambor@suse.cz>
23029
23030 * cgraphclones.c (cgraph_function_versioning): Copy
23031 ipa_transforms_to_apply instead of asserting it is empty.
23032
23033 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23034
23035 PR target/60868
23036 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23037 on count_exp to get mode.
23038
23039 2014-04-22 Andrew Pinski <apinski@cavium.com>
23040
23041 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23042 Handle TLS for ILP32.
23043 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23044 (tlsie_small_<mode>): this and handle PTR.
23045 (tlsie_small_sidi): New pattern.
23046 (tlsle_small): Change to an expand to handle ILP32.
23047 (tlsle_small_<mode>): New pattern.
23048 (tlsdesc_small): Rename to ...
23049 (tlsdesc_small_<mode>): this and handle PTR.
23050
23051 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23052
23053 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23054
23055 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23056
23057 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23058 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23059 (aarch64_types_signed_poly_qualifiers): Likewise.
23060 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23061 (aarch64_types_poly_signed_qualifiers): Likewise.
23062 (TYPES_REINTERP_SS): Type macro added.
23063 (TYPES_REINTERP_SU): Likewise.
23064 (TYPES_REINTERP_SP): Likewise.
23065 (TYPES_REINTERP_US): Likewise.
23066 (TYPES_REINTERP_PS): Likewise.
23067 (aarch64_fold_builtin): New expression folding added.
23068 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23069 Declarations removed.
23070 (REINTERP_SS): Declarations added.
23071 (REINTERP_US): Likewise.
23072 (REINTERP_PS): Likewise.
23073 (REINTERP_SU): Likewise.
23074 (REINTERP_SP): Likewise.
23075 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23076 (vreinterpretq_p8_f64): Likewise.
23077 (vreinterpret_p16_f64): Likewise.
23078 (vreinterpretq_p16_f64): Likewise.
23079 (vreinterpret_f32_f64): Likewise.
23080 (vreinterpretq_f32_f64): Likewise.
23081 (vreinterpret_f64_f32): Likewise.
23082 (vreinterpret_f64_p8): Likewise.
23083 (vreinterpret_f64_p16): Likewise.
23084 (vreinterpret_f64_s8): Likewise.
23085 (vreinterpret_f64_s16): Likewise.
23086 (vreinterpret_f64_s32): Likewise.
23087 (vreinterpret_f64_s64): Likewise.
23088 (vreinterpret_f64_u8): Likewise.
23089 (vreinterpret_f64_u16): Likewise.
23090 (vreinterpret_f64_u32): Likewise.
23091 (vreinterpret_f64_u64): Likewise.
23092 (vreinterpretq_f64_f32): Likewise.
23093 (vreinterpretq_f64_p8): Likewise.
23094 (vreinterpretq_f64_p16): Likewise.
23095 (vreinterpretq_f64_s8): Likewise.
23096 (vreinterpretq_f64_s16): Likewise.
23097 (vreinterpretq_f64_s32): Likewise.
23098 (vreinterpretq_f64_s64): Likewise.
23099 (vreinterpretq_f64_u8): Likewise.
23100 (vreinterpretq_f64_u16): Likewise.
23101 (vreinterpretq_f64_u32): Likewise.
23102 (vreinterpretq_f64_u64): Likewise.
23103 (vreinterpret_s64_f64): Likewise.
23104 (vreinterpretq_s64_f64): Likewise.
23105 (vreinterpret_u64_f64): Likewise.
23106 (vreinterpretq_u64_f64): Likewise.
23107 (vreinterpret_s8_f64): Likewise.
23108 (vreinterpretq_s8_f64): Likewise.
23109 (vreinterpret_s16_f64): Likewise.
23110 (vreinterpretq_s16_f64): Likewise.
23111 (vreinterpret_s32_f64): Likewise.
23112 (vreinterpretq_s32_f64): Likewise.
23113 (vreinterpret_u8_f64): Likewise.
23114 (vreinterpretq_u8_f64): Likewise.
23115 (vreinterpret_u16_f64): Likewise.
23116 (vreinterpretq_u16_f64): Likewise.
23117 (vreinterpret_u32_f64): Likewise.
23118 (vreinterpretq_u32_f64): Likewise.
23119
23120 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23121
23122 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23123 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23124 (vreinterpret_p8_s8): Likewise.
23125 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23126 (vreinterpret_p8_s16): Likewise.
23127 (vreinterpret_p8_s32): Likewise.
23128 (vreinterpret_p8_s64): Likewise.
23129 (vreinterpret_p8_f32): Likewise.
23130 (vreinterpret_p8_u8): Likewise.
23131 (vreinterpret_p8_u16): Likewise.
23132 (vreinterpret_p8_u32): Likewise.
23133 (vreinterpret_p8_u64): Likewise.
23134 (vreinterpret_p8_p16): Likewise.
23135 (vreinterpretq_p8_s8): Likewise.
23136 (vreinterpretq_p8_s16): Likewise.
23137 (vreinterpretq_p8_s32): Likewise.
23138 (vreinterpretq_p8_s64): Likewise.
23139 (vreinterpretq_p8_f32): Likewise.
23140 (vreinterpretq_p8_u8): Likewise.
23141 (vreinterpretq_p8_u16): Likewise.
23142 (vreinterpretq_p8_u32): Likewise.
23143 (vreinterpretq_p8_u64): Likewise.
23144 (vreinterpretq_p8_p16): Likewise.
23145 (vreinterpret_p16_s8): Likewise.
23146 (vreinterpret_p16_s16): Likewise.
23147 (vreinterpret_p16_s32): Likewise.
23148 (vreinterpret_p16_s64): Likewise.
23149 (vreinterpret_p16_f32): Likewise.
23150 (vreinterpret_p16_u8): Likewise.
23151 (vreinterpret_p16_u16): Likewise.
23152 (vreinterpret_p16_u32): Likewise.
23153 (vreinterpret_p16_u64): Likewise.
23154 (vreinterpret_p16_p8): Likewise.
23155 (vreinterpretq_p16_s8): Likewise.
23156 (vreinterpretq_p16_s16): Likewise.
23157 (vreinterpretq_p16_s32): Likewise.
23158 (vreinterpretq_p16_s64): Likewise.
23159 (vreinterpretq_p16_f32): Likewise.
23160 (vreinterpretq_p16_u8): Likewise.
23161 (vreinterpretq_p16_u16): Likewise.
23162 (vreinterpretq_p16_u32): Likewise.
23163 (vreinterpretq_p16_u64): Likewise.
23164 (vreinterpretq_p16_p8): Likewise.
23165 (vreinterpret_f32_s8): Likewise.
23166 (vreinterpret_f32_s16): Likewise.
23167 (vreinterpret_f32_s32): Likewise.
23168 (vreinterpret_f32_s64): Likewise.
23169 (vreinterpret_f32_u8): Likewise.
23170 (vreinterpret_f32_u16): Likewise.
23171 (vreinterpret_f32_u32): Likewise.
23172 (vreinterpret_f32_u64): Likewise.
23173 (vreinterpret_f32_p8): Likewise.
23174 (vreinterpret_f32_p16): Likewise.
23175 (vreinterpretq_f32_s8): Likewise.
23176 (vreinterpretq_f32_s16): Likewise.
23177 (vreinterpretq_f32_s32): Likewise.
23178 (vreinterpretq_f32_s64): Likewise.
23179 (vreinterpretq_f32_u8): Likewise.
23180 (vreinterpretq_f32_u16): Likewise.
23181 (vreinterpretq_f32_u32): Likewise.
23182 (vreinterpretq_f32_u64): Likewise.
23183 (vreinterpretq_f32_p8): Likewise.
23184 (vreinterpretq_f32_p16): Likewise.
23185 (vreinterpret_s64_s8): Likewise.
23186 (vreinterpret_s64_s16): Likewise.
23187 (vreinterpret_s64_s32): Likewise.
23188 (vreinterpret_s64_f32): Likewise.
23189 (vreinterpret_s64_u8): Likewise.
23190 (vreinterpret_s64_u16): Likewise.
23191 (vreinterpret_s64_u32): Likewise.
23192 (vreinterpret_s64_u64): Likewise.
23193 (vreinterpret_s64_p8): Likewise.
23194 (vreinterpret_s64_p16): Likewise.
23195 (vreinterpretq_s64_s8): Likewise.
23196 (vreinterpretq_s64_s16): Likewise.
23197 (vreinterpretq_s64_s32): Likewise.
23198 (vreinterpretq_s64_f32): Likewise.
23199 (vreinterpretq_s64_u8): Likewise.
23200 (vreinterpretq_s64_u16): Likewise.
23201 (vreinterpretq_s64_u32): Likewise.
23202 (vreinterpretq_s64_u64): Likewise.
23203 (vreinterpretq_s64_p8): Likewise.
23204 (vreinterpretq_s64_p16): Likewise.
23205 (vreinterpret_u64_s8): Likewise.
23206 (vreinterpret_u64_s16): Likewise.
23207 (vreinterpret_u64_s32): Likewise.
23208 (vreinterpret_u64_s64): Likewise.
23209 (vreinterpret_u64_f32): Likewise.
23210 (vreinterpret_u64_u8): Likewise.
23211 (vreinterpret_u64_u16): Likewise.
23212 (vreinterpret_u64_u32): Likewise.
23213 (vreinterpret_u64_p8): Likewise.
23214 (vreinterpret_u64_p16): Likewise.
23215 (vreinterpretq_u64_s8): Likewise.
23216 (vreinterpretq_u64_s16): Likewise.
23217 (vreinterpretq_u64_s32): Likewise.
23218 (vreinterpretq_u64_s64): Likewise.
23219 (vreinterpretq_u64_f32): Likewise.
23220 (vreinterpretq_u64_u8): Likewise.
23221 (vreinterpretq_u64_u16): Likewise.
23222 (vreinterpretq_u64_u32): Likewise.
23223 (vreinterpretq_u64_p8): Likewise.
23224 (vreinterpretq_u64_p16): Likewise.
23225 (vreinterpret_s8_s16): Likewise.
23226 (vreinterpret_s8_s32): Likewise.
23227 (vreinterpret_s8_s64): Likewise.
23228 (vreinterpret_s8_f32): Likewise.
23229 (vreinterpret_s8_u8): Likewise.
23230 (vreinterpret_s8_u16): Likewise.
23231 (vreinterpret_s8_u32): Likewise.
23232 (vreinterpret_s8_u64): Likewise.
23233 (vreinterpret_s8_p8): Likewise.
23234 (vreinterpret_s8_p16): Likewise.
23235 (vreinterpretq_s8_s16): Likewise.
23236 (vreinterpretq_s8_s32): Likewise.
23237 (vreinterpretq_s8_s64): Likewise.
23238 (vreinterpretq_s8_f32): Likewise.
23239 (vreinterpretq_s8_u8): Likewise.
23240 (vreinterpretq_s8_u16): Likewise.
23241 (vreinterpretq_s8_u32): Likewise.
23242 (vreinterpretq_s8_u64): Likewise.
23243 (vreinterpretq_s8_p8): Likewise.
23244 (vreinterpretq_s8_p16): Likewise.
23245 (vreinterpret_s16_s8): Likewise.
23246 (vreinterpret_s16_s32): Likewise.
23247 (vreinterpret_s16_s64): Likewise.
23248 (vreinterpret_s16_f32): Likewise.
23249 (vreinterpret_s16_u8): Likewise.
23250 (vreinterpret_s16_u16): Likewise.
23251 (vreinterpret_s16_u32): Likewise.
23252 (vreinterpret_s16_u64): Likewise.
23253 (vreinterpret_s16_p8): Likewise.
23254 (vreinterpret_s16_p16): Likewise.
23255 (vreinterpretq_s16_s8): Likewise.
23256 (vreinterpretq_s16_s32): Likewise.
23257 (vreinterpretq_s16_s64): Likewise.
23258 (vreinterpretq_s16_f32): Likewise.
23259 (vreinterpretq_s16_u8): Likewise.
23260 (vreinterpretq_s16_u16): Likewise.
23261 (vreinterpretq_s16_u32): Likewise.
23262 (vreinterpretq_s16_u64): Likewise.
23263 (vreinterpretq_s16_p8): Likewise.
23264 (vreinterpretq_s16_p16): Likewise.
23265 (vreinterpret_s32_s8): Likewise.
23266 (vreinterpret_s32_s16): Likewise.
23267 (vreinterpret_s32_s64): Likewise.
23268 (vreinterpret_s32_f32): Likewise.
23269 (vreinterpret_s32_u8): Likewise.
23270 (vreinterpret_s32_u16): Likewise.
23271 (vreinterpret_s32_u32): Likewise.
23272 (vreinterpret_s32_u64): Likewise.
23273 (vreinterpret_s32_p8): Likewise.
23274 (vreinterpret_s32_p16): Likewise.
23275 (vreinterpretq_s32_s8): Likewise.
23276 (vreinterpretq_s32_s16): Likewise.
23277 (vreinterpretq_s32_s64): Likewise.
23278 (vreinterpretq_s32_f32): Likewise.
23279 (vreinterpretq_s32_u8): Likewise.
23280 (vreinterpretq_s32_u16): Likewise.
23281 (vreinterpretq_s32_u32): Likewise.
23282 (vreinterpretq_s32_u64): Likewise.
23283 (vreinterpretq_s32_p8): Likewise.
23284 (vreinterpretq_s32_p16): Likewise.
23285 (vreinterpret_u8_s8): Likewise.
23286 (vreinterpret_u8_s16): Likewise.
23287 (vreinterpret_u8_s32): Likewise.
23288 (vreinterpret_u8_s64): Likewise.
23289 (vreinterpret_u8_f32): Likewise.
23290 (vreinterpret_u8_u16): Likewise.
23291 (vreinterpret_u8_u32): Likewise.
23292 (vreinterpret_u8_u64): Likewise.
23293 (vreinterpret_u8_p8): Likewise.
23294 (vreinterpret_u8_p16): Likewise.
23295 (vreinterpretq_u8_s8): Likewise.
23296 (vreinterpretq_u8_s16): Likewise.
23297 (vreinterpretq_u8_s32): Likewise.
23298 (vreinterpretq_u8_s64): Likewise.
23299 (vreinterpretq_u8_f32): Likewise.
23300 (vreinterpretq_u8_u16): Likewise.
23301 (vreinterpretq_u8_u32): Likewise.
23302 (vreinterpretq_u8_u64): Likewise.
23303 (vreinterpretq_u8_p8): Likewise.
23304 (vreinterpretq_u8_p16): Likewise.
23305 (vreinterpret_u16_s8): Likewise.
23306 (vreinterpret_u16_s16): Likewise.
23307 (vreinterpret_u16_s32): Likewise.
23308 (vreinterpret_u16_s64): Likewise.
23309 (vreinterpret_u16_f32): Likewise.
23310 (vreinterpret_u16_u8): Likewise.
23311 (vreinterpret_u16_u32): Likewise.
23312 (vreinterpret_u16_u64): Likewise.
23313 (vreinterpret_u16_p8): Likewise.
23314 (vreinterpret_u16_p16): Likewise.
23315 (vreinterpretq_u16_s8): Likewise.
23316 (vreinterpretq_u16_s16): Likewise.
23317 (vreinterpretq_u16_s32): Likewise.
23318 (vreinterpretq_u16_s64): Likewise.
23319 (vreinterpretq_u16_f32): Likewise.
23320 (vreinterpretq_u16_u8): Likewise.
23321 (vreinterpretq_u16_u32): Likewise.
23322 (vreinterpretq_u16_u64): Likewise.
23323 (vreinterpretq_u16_p8): Likewise.
23324 (vreinterpretq_u16_p16): Likewise.
23325 (vreinterpret_u32_s8): Likewise.
23326 (vreinterpret_u32_s16): Likewise.
23327 (vreinterpret_u32_s32): Likewise.
23328 (vreinterpret_u32_s64): Likewise.
23329 (vreinterpret_u32_f32): Likewise.
23330 (vreinterpret_u32_u8): Likewise.
23331 (vreinterpret_u32_u16): Likewise.
23332 (vreinterpret_u32_u64): Likewise.
23333 (vreinterpret_u32_p8): Likewise.
23334 (vreinterpret_u32_p16): Likewise.
23335 (vreinterpretq_u32_s8): Likewise.
23336 (vreinterpretq_u32_s16): Likewise.
23337 (vreinterpretq_u32_s32): Likewise.
23338 (vreinterpretq_u32_s64): Likewise.
23339 (vreinterpretq_u32_f32): Likewise.
23340 (vreinterpretq_u32_u8): Likewise.
23341 (vreinterpretq_u32_u16): Likewise.
23342 (vreinterpretq_u32_u64): Likewise.
23343 (vreinterpretq_u32_p8): Likewise.
23344 (vreinterpretq_u32_p16): Likewise.
23345
23346 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23347
23348 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23349 Pattern extended.
23350 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23351 (sqabs): Likewise.
23352 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23353 (vqnegd_s64): Likewise.
23354 (vqabs_s64): Likewise.
23355 (vqabsd_s64): Likewise.
23356
23357 2014-04-22 Richard Henderson <rth@redhat.com>
23358
23359 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23360 computation to the top of the loop.
23361
23362 2014-04-22 Renlin <renlin.li@arm.com>
23363 Jiong Wang <jiong.wang@arm.com>
23364
23365 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23366 * config/aarch64/aarch64.c (aarch64_layout_frame)
23367 (aarch64_initial_elimination_offset): Likewise.
23368
23369 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23370
23371 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23372 Fix indentation.
23373
23374 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23375
23376 * machmode.h (bitwise_mode_for_mode): Declare.
23377 * stor-layout.h (bitwise_type_for_mode): Likewise.
23378 * stor-layout.c (bitwise_mode_for_mode): New function.
23379 (bitwise_type_for_mode): Likewise.
23380 * builtins.c (fold_builtin_memory_op): Use it instead of
23381 int_mode_for_mode and build_nonstandard_integer_type.
23382
23383 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23384
23385 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23386 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23387 (*-*-solaris2*): Simplify.
23388 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23389 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23390 *-*-solaris2.9* handling.
23391
23392 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23393 as bug.
23394 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23395 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23396 handling, simplify.
23397 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23398 * configure: Regenerate.
23399
23400 * config/i386/sol2-9.h: Remove.
23401
23402 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23403 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23404 Remove Solaris 9 references.
23405
23406 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23407
23408 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23409 (floatuns<GPI:mode><GPF:mode>2): Remove.
23410 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23411 and floatuns conversions.
23412 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23413 and floatuns conversions.
23414 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23415 (w1,w2): New mode attributes for inequal width conversions.
23416
23417 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23418
23419 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23420 the output asm format.
23421
23422 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23423
23424 * config/aarch64/aarch64-simd.md
23425 (aarch64_cm<optab>di): Always split.
23426 (*aarch64_cm<optab>di): New.
23427 (aarch64_cmtstdi): Always split.
23428 (*aarch64_cmtstdi): New.
23429
23430 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23431
23432 PR tree-optimization/60823
23433 * omp-low.c (ipa_simd_modify_function_body): Go through
23434 all SSA_NAMEs and for those refering to vector arguments
23435 which are going to be replaced adjust SSA_NAME_VAR and,
23436 if it is a default definition, change it into a non-default
23437 definition assigned at the beginning of function from new_decl.
23438 (ipa_simd_modify_stmt_ops): Rewritten.
23439 * tree-dfa.c (set_ssa_default_def): When removing default def,
23440 check for NULL loc instead of NULL *loc.
23441
23442 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23443
23444 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23445 restrictions on core registers for DImode values in Thumb2.
23446
23447 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23448
23449 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23450 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23451
23452 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23453
23454 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23455 (*iordi_notzesidi_di): Likewise.
23456 (*iordi_notsesidi_di): Likewise.
23457
23458 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23459
23460 * config/arm/arm-protos.h (tune_params): New struct members.
23461 * config/arm/arm.c: Initialise tune_params per processor.
23462 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23463 for speed, based on new tune_params.
23464
23465 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23466
23467 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23468 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23469 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23470 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23471 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23472 (vrnda_f64): Likewise.
23473 (vrndi_f64): Likewise.
23474 (vrndm_f64): Likewise.
23475 (vrndn_f64): Likewise.
23476 (vrndp_f64): Likewise.
23477 (vrndx_f64): Likewise.
23478
23479 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23480
23481 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23482 GET_MODE_SIZE argument is enum machine_mode.
23483
23484 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23485
23486 PR target/60910
23487 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23488 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23489
23490 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23491
23492 PR middle-end/60281
23493 * asan.c (asan_emit_stack_protection): Force the base to align to
23494 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23495 appropriate bits if STRICT_ALIGNMENT.
23496 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23497 when asan is on.
23498 (expand_used_vars): Leave a space in the stack frame for alignment
23499 if STRICT_ALIGNMENT.
23500
23501 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23502
23503 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23504 than a gimple.
23505 (gimple_store_p): Likewise.
23506 (gimple_assign_load_p): Likewise.
23507 (gimple_assign_cast_p): Likewise.
23508 (gimple_clobber_p): Likewise.
23509
23510 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23511 rather than a gimple.
23512 (gimple_assign_cast_p): Likewise.
23513
23514 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23515
23516 PR target/60735
23517 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23518 If mode is DDmode and TARGET_E500_DOUBLE allow move.
23519
23520 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23521 more debug information for E500 if -mdebug=reg.
23522
23523 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
23524
23525 PR target/60909
23526 * config/i386/i386.c (ix86_expand_builtin)
23527 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23528 register for target RTX.
23529 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23530
23531 2014-04-18 Cong Hou <congh@google.com>
23532
23533 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23534 the widen-mult pattern by handling two operands with different sizes,
23535 and operands whose size is smaller than half of the result type.
23536
23537 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23538
23539 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23540 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23541 (do_estimate_edge_time): Compute it.
23542 * ipa-inline.c (want_inline_small_function_p): Bypass
23543 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23544
23545 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23546
23547 * ipa-inline.c (spec_rem): New static variable.
23548 (dump_overall_stats): New function.
23549 (dump_inline_stats): New function.
23550
23551 2014-04-18 Richard Henderson <rth@redhat.com>
23552
23553 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23554 to GET_MODE_SIZE, not a reg_class_t.
23555
23556 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23557
23558 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23559 (vsx_xxmrglw_<mode>): Likewise.
23560
23561 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
23562
23563 PR target/60876
23564 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23565 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23566 (rs6000_init_hard_regno_mode_ok): Likewise.
23567
23568 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
23569
23570 * ipa-inline.c (inline_small_functions): Account only non-cold
23571 functions.
23572 * doc/invoke.texi (inline-unit-growth): Update documentation.
23573
23574 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
23575
23576 * config/rs6000/rs6000.md (addti3, subti3): New.
23577
23578 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
23579
23580 PR target/60863
23581 * config/i386/i386.c (ix86_expand_clear): Remove outdated
23582 comment. Check optimize_insn_for_size_p instead of
23583 optimize_insn_for_speed_p.
23584
23585 2014-04-17 Martin Jambor <mjambor@suse.cz>
23586
23587 * gimple-iterator.c (gsi_start_edge): New function.
23588 * gimple-iterator.h (gsi_start_edge): Declare.
23589 * tree-sra.c (single_non_eh_succ): New function.
23590 (disqualify_ops_if_throwing_stmt): Renamed to
23591 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
23592 having one non-EH successor BB.
23593 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23594 generate loads into replacements.
23595 (sra_modify_assign): Likewise and and also use the simple path for
23596 such statements.
23597 (sra_modify_function_body): Commit statements on edges.
23598
23599 2014-04-17 Richard Biener <rguenther@suse.de>
23600
23601 PR middle-end/60849
23602 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23603 comparison results and add clarifying comment.
23604
23605 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23606
23607 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23608 (blank_mode): Initialize it.
23609 (emit_mode_size_inline, emit_mode_nunits_inline,
23610 emit_mode_inner_inline): New functions.
23611 (emit_insn_modes_h): Call them and surround their output with
23612 #if GCC_VERSION >= 4001 ... #endif.
23613 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23614 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23615 mode_* arrays if the argument is __builtin_constant_p.
23616 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23617 is enum machine_mode.
23618
23619 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23620
23621 * passes.c (opt_pass::execute): Adjust.
23622 (pass_manager::execute_pass_mode_switching): Likewise.
23623 (early_local_passes::execute): Likewise.
23624 (execute_one_pass): Pass cfun to the pass's execute method.
23625 * tree-pass.h (opt_pass::execute): Add function * argument.
23626 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23627 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23628 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23629 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23630 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23631 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23632 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23633 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23634 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23635 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23636 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23637 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23638 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23639 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23640 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23641 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23642 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23643 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23644 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23645 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23646 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23647 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23648 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23649 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23650 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23651 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23652 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23653 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23654 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23655 Adjust.
23656
23657 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23658
23659 * passes.c (opt_pass::gate): Take function * argument.
23660 (gate_all_early_local_passes): Merge into
23661 (early_local_passes::gate): this.
23662 (gate_all_early_optimizations): Merge into
23663 (all_early_optimizations::gate): this.
23664 (gate_all_optimizations): Mege into
23665 (all_optimizations::gate): this.
23666 (gate_all_optimizations_g): Merge into
23667 (all_optimizations_g::gate): this.
23668 (gate_rest_of_compilation): Mege into
23669 (rest_of_compilation::gate): this.
23670 (gate_postreload): Merge into
23671 (postreload::gate): this.
23672 (dump_one_pass): Pass cfun to the pass's gate method.
23673 (execute_ipa_summary_passes): Likewise.
23674 (execute_one_pass): Likewise.
23675 (ipa_write_summaries_2): Likewise.
23676 (ipa_write_optimization_summaries_1): Likewise.
23677 (ipa_read_summaries_1): Likewise.
23678 (ipa_read_optimization_summaries_1): Likewise.
23679 (execute_ipa_stmt_fixups): Likewise.
23680 * tree-pass.h (opt_pass::gate): Add function * argument.
23681 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23682 combine-stack-adj.c, combine.c, compare-elim.c,
23683 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23684 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23685 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23686 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
23687 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23688 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23689 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23690 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23691 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23692 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23693 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23694 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23695 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23696 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23697 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23698 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23699 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23700 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23701 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23702 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23703 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23704 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23705 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23706 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23707 var-tracking.c, vtable-verify.c, web.c: Adjust.
23708
23709 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23710
23711 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23712 * configure: Regenerate.
23713
23714 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23715
23716 * passes.c (dump_one_pass): don't check pass->has_gate.
23717 (execute_ipa_summary_passes): Likewise.
23718 (execute_one_pass): Likewise.
23719 (ipa_write_summaries_2): Likewise.
23720 (ipa_write_optimization_summaries_1): Likewise.
23721 (ipa_read_optimization_summaries_1): Likewise.
23722 (execute_ipa_stmt_fixups): Likewise.
23723 * tree-pass.h (pass_data::has_gate): Remove.
23724 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23725 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23726 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23727 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23728 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23729 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23730 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23731 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23732 gimple-low.c, gimple-ssa-isolate-paths.c,
23733 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23734 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23735 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23736 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23737 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23738 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23739 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23740 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23741 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23742 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23743 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23744 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23745 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23746 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23747 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23748 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23749 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23750 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23751 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23752 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23753 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23754 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23755 Adjust.
23756
23757 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23758
23759 * pass_manager.h (pass_manager::register_dump_files_1): Remove
23760 declaration.
23761 * passes.c (pass_manager::register_dump_files_1): Merge into
23762 (pass_manager::register_dump_files): this, and remove its handling of
23763 properties since the pass always has the properties anyway.
23764 (pass_manager::pass_manager): Adjust.
23765
23766 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23767
23768 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23769 * passes.c (pass_manager::register_dump_files_1): Remove dead code
23770 dealing with properties.
23771 (pass_manager::register_dump_files): Adjust.
23772
23773 2014-03-20 Mark Wielaard <mjw@redhat.com>
23774
23775 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23776 then represent the bound as normal constant value.
23777
23778 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23779
23780 PR target/60847
23781 Forward port from 4.8 branch
23782 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
23783
23784 * config/i386/bmiintrin.h (_blsi_u32): New.
23785 (_blsi_u64): Ditto.
23786 (_blsr_u32): Ditto.
23787 (_blsr_u64): Ditto.
23788 (_blsmsk_u32): Ditto.
23789 (_blsmsk_u64): Ditto.
23790 (_tzcnt_u32): Ditto.
23791 (_tzcnt_u64): Ditto.
23792
23793 2014-04-17 Kito Cheng <kito@0xlab.org>
23794
23795 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23796
23797 2014-04-17 Richard Biener <rguenther@suse.de>
23798
23799 PR middle-end/60849
23800 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23801 boolean results for comparisons.
23802
23803 2014-04-17 Richard Biener <rguenther@suse.de>
23804
23805 PR tree-optimization/60836
23806 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23807 initial PHI args to be gimple values.
23808
23809 2014-04-17 Richard Biener <rguenther@suse.de>
23810
23811 PR tree-optimization/60841
23812 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23813 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23814 of stmts to SLP build.
23815 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23816 (vect_analyze_slp): Likewise.
23817 (vect_analyze_slp_instance): Likewise.
23818 (vect_build_slp_tree): Limit overall SLP tree growth.
23819 * tree-vectorizer.h (vect_analyze_data_refs,
23820 vect_analyze_slp): Adjust prototypes.
23821
23822 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23823
23824 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23825 Silvermont.
23826
23827 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23828
23829 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23830 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23831 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23832 for TARGET_SLOW_PSHUFB
23833
23834 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23835
23836 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23837 * config/i386/i386.c (intel_cost): Ditto.
23838
23839 2014-04-17 Joey Ye <joey.ye@arm.com>
23840
23841 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23842
23843 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23844
23845 * opts.c (common_handle_option): Disable -fipa-reference coorectly
23846 with -fuse-profile.
23847
23848 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23849
23850 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
23851 (type_all_derivations_known_p): New predicate.
23852 (type_all_ctors_visible_p): New predicate.
23853 (type_possibly_instantiated_p): New predicate.
23854 (get_odr_type): Compute all_derivations_known.
23855 (dump_odr_type): Dump the flag.
23856 (maybe_record_type): Cleanup.
23857 (record_target_from_binfo): Add bases_to_consider array;
23858 record bases for types w/o instances and skip CXX destructor.
23859 (possible_polymorphic_call_targets_1): Add bases_to_consider
23860 and consider_construction parameters; check if type may have instance.
23861 (get_polymorphic_call_info): Set maybe_in_construction to true
23862 when we know nothing.
23863 (record_targets_from_bases): Skip CXX destructors; they are
23864 never called for types in construction.
23865 (possible_polymorphic_call_targets): Do not record target when
23866 type may not have instance.
23867
23868 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23869
23870 PR ipa/60854
23871 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23872 external aliases alive, too.
23873
23874 2014-04-16 Andrew Pinski <apinski@cavium.com>
23875
23876 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23877 definition.
23878
23879 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23880
23881 * final.c (compute_alignments): Do not apply loop alignment to a block
23882 falling through to the exit.
23883
23884 2014-04-16 Catherine Moore <clm@codesourcery.com>
23885
23886 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23887 Adjust constraints for microMIPS store patterns.
23888
23889 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23890
23891 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23892
23893 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23894
23895 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23896 (append_use): Run at -O0.
23897 (append_vdef): Likewise.
23898 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23899 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23900
23901 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23902
23903 PR tree-optimization/60844
23904 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23905 (propagate_op_to_single_use, remove_visited_stmt_chain,
23906 linearize_expr, repropagate_negates, reassociate_bb): Use it
23907 instead of gsi_remove.
23908
23909 2014-04-16 Martin Jambor <mjambor@suse.cz>
23910
23911 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
23912 ipa_transforms_to_apply.
23913 (cgraph_function_versioning): Assert that old_node has empty
23914 ipa_transforms_to_apply.
23915 * trans-mem.c (ipa_tm_create_version): Likewise.
23916 * tree-inline.c (tree_function_versioning): Do not duplicate
23917 ipa_transforms_to_apply.
23918
23919 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23920
23921 PR target/60817
23922 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
23923 x86_64-*-* cases.
23924 Pass necessary as flags on 64-bit Solaris/x86.
23925 Use lowercase relocs for x86_64-*-*.
23926 * configure: Regenerate.
23927
23928 2014-04-15 Jan Hubicka <jh@suse.cz>
23929
23930 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
23931 (maybe_record_node, likely_target_p): Use it.
23932
23933 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23934
23935 PR target/60839
23936 Revert following patch
23937
23938 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23939
23940 PR target/60735
23941 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23942 software floating point or no floating point registers, do not
23943 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23944 in GPRs that occurs after we tested for GPRs that would never be
23945 true.
23946
23947 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23948 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23949 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23950 specifically allow DDmode, since that does not use the SPE SIMD
23951 instructions.
23952
23953 2014-03-21 Mark Wielaard <mjw@redhat.com>
23954
23955 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
23956 as unsigned or int depending on type and value used.
23957
23958 2014-04-15 Richard Biener <rguenther@suse.de>
23959
23960 PR rtl-optimization/56965
23961 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
23962 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
23963 ... here.
23964 * alias.c (true_dependence_1): Do not call
23965 nonoverlapping_component_refs_p.
23966 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
23967 nonoverlapping_component_refs_p.
23968 (indirect_refs_may_alias_p): Likewise.
23969
23970 2014-04-15 Teresa Johnson <tejohnson@google.com>
23971
23972 * cfg.c (dump_bb_info): Fix flags check.
23973 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
23974
23975 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23976
23977 PR rtl-optimization/60663
23978 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
23979 avoid 0 cost.
23980
23981 2014-04-15 Richard Biener <rguenther@suse.de>
23982
23983 * lto-streamer.h (LTO_major_version): Bump to 4.
23984
23985 2014-04-15 Richard Biener <rguenther@suse.de>
23986
23987 * common.opt (lto_partition_model): New enum.
23988 (flto-partition=): Merge separate options with a single with argument,
23989 add -flto-partition=one support.
23990 * flag-types.h (enum lto_partition_model): Declare.
23991 * opts.c (finish_options): Remove duplicate -flto-partition=
23992 option check.
23993 * lto-wrapper.c (run_gcc): Adjust.
23994
23995 2014-04-15 Richard Biener <rguenther@suse.de>
23996
23997 * alias.c (ncr_compar): New function.
23998 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
23999
24000 2014-04-15 Richard Biener <rguenther@suse.de>
24001
24002 * alias.c (record_component_aliases): Do not walk BINFOs.
24003
24004 2014-04-15 Richard Biener <rguenther@suse.de>
24005
24006 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24007 Add struct function argument and adjust.
24008 (find_func_aliases_for_call): Likewise.
24009 (find_func_aliases): Likewise.
24010 (find_func_clobbers): Likewise.
24011 (intra_create_variable_infos): Likewise.
24012 (compute_points_to_sets): Likewise.
24013 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24014
24015 2014-04-15 Richard Biener <rguenther@suse.de>
24016
24017 * tree.c (iterative_hash_expr): Use enum tree_code_class
24018 to store TREE_CODE_CLASS.
24019 (tree_block): Likewise.
24020 (tree_set_block): Likewise.
24021 * tree.h (fold_build_pointer_plus_loc): Use
24022 convert_to_ptrofftype_loc.
24023
24024 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24025
24026 PR plugins/59335
24027 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24028 added in 4.9.
24029
24030 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24031
24032 * cfgloop.h (struct loop): Move force_vectorize down.
24033 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24034 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24035 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24036 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24037 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24038 * tree-core.h (enum annot_expr_kind): Add new kind values.
24039 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24040 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24041 kinds.
24042 * tree.def (ANNOTATE_EXPR): Tweak comment.
24043
24044 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24045
24046 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24047 cxa_pure_virtual).
24048
24049 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24050
24051 * tree.h (TYPE_IDENTIFIER): Declare.
24052 * tree.c (subrange_type_for_debug_p): Use it.
24053 * godump.c (go_format_type): Likewise.
24054 * dwarf2out.c (is_cxx_auto, modified_type_die,
24055 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24056 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24057
24058 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24059
24060 PR lto/60820
24061 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24062
24063 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24064
24065 * config/i386/i386.c (examine_argument): Return bool. Return true if
24066 parameter should be passed in memory.
24067 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24068 (construct_container): Update calls to examine_argument.
24069 (function_arg_advance_64): Ditto.
24070 (return_in_memory_32): Merge with ix86_return_in_memory.
24071 (return_in_memory_64): Ditto.
24072 (return_in_memory_ms_64): Ditto.
24073
24074 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24075
24076 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24077 * coverage.c (coverage_compute_profile_id): Handle externally visible
24078 symbols.
24079
24080 2014-04-14 Martin Jambor <mjambor@suse.cz>
24081
24082 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24083 DECL_DISREGARD_INLINE_LIMITS functions.
24084
24085 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24086
24087 PR target/60827
24088 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24089
24090 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24091
24092 PR target/60827
24093 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24094 optimize_insn_for_speed_p instead of
24095 optimize_function_for_speed_p.
24096
24097 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24098
24099 * doc/invoke.texi (free): Document AArch64.
24100
24101 2014-04-14 Richard Biener <rguenther@suse.de>
24102
24103 PR tree-optimization/60042
24104 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24105 (insert_into_preds_of_block): Do not prevent PHI insertion
24106 for REFERENCE exprs here ...
24107 (eliminate_dom_walker::before_dom_children): ... but prevent
24108 their use here under similar conditions when applied to the
24109 IL after PRE optimizations.
24110
24111 2014-04-14 Richard Biener <rguenther@suse.de>
24112
24113 * passes.def: Move early points-to after early SRA.
24114
24115 2014-04-14 Richard Biener <rguenther@suse.de>
24116
24117 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24118 check for which sign-changes we allow when forwarding
24119 a converted value into a switch.
24120
24121 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24122
24123 * stor-layout.c (place_field): Finalize non-constant offset for the
24124 field, if any.
24125
24126 2014-04-14 Richard Biener <rguenther@suse.de>
24127
24128 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24129 as argument.
24130 (expand_switch_using_bit_tests_p): Likewise.
24131 (process_switch): Compute and pass on speed_p based on the
24132 switch stmt.
24133 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24134 optimize_bb_for_speed_p.
24135
24136 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24137
24138 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24139 * function.h (struct function): Rename has_force_vect_loops into
24140 has_force_vectorize_loops.
24141 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24142 (input_struct_function_base): Likewise.
24143 * lto-streamer-out.c (output_cfg): Likewise.
24144 (output_struct_function_base): Likewise.
24145 * omp-low.c (expand_omp_simd): Likewise.
24146 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24147 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24148 (version_loop_for_if_conversion): Likewise.
24149 (tree_if_conversion): Likewise.
24150 (main_tree_if_conversion): Likewise.
24151 (gate_tree_if_conversion): Likewise.
24152 * tree-inline.c (copy_loops): Likewise.
24153 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24154 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24155 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24156 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24157 * tree-vectorizer.c (vectorize_loops): Likewise.
24158 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24159
24160 2014-04-14 Richard Biener <rguenther@suse.de>
24161
24162 PR lto/60720
24163 * lto-streamer-out.c (wrap_refs): New function.
24164 (lto_output): Wrap symbol references in global initializes in
24165 type-preserving MEM_REFs.
24166
24167 2014-04-14 Christian Bruel <christian.bruel@st.com>
24168
24169 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24170
24171 2014-04-14 Christian Bruel <christian.bruel@st.com>
24172
24173 * config/sh/sh.md (setmemqi): New expand pattern.
24174 * config/sh/sh.h (CLEAR_RATIO): Define.
24175 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24176 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24177
24178 2014-04-14 Richard Biener <rguenther@suse.de>
24179
24180 PR middle-end/55022
24181 * fold-const.c (negate_expr_p): Don't negate directional rounding
24182 division.
24183 (fold_negate_expr): Likewise.
24184
24185 2014-04-14 Richard Biener <rguenther@suse.de>
24186
24187 PR tree-optimization/59817
24188 PR tree-optimization/60453
24189 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24190 recursion to catch all CHRECs in the scalar evolution and restrict
24191 the predicate for the remains appropriately.
24192
24193 2014-04-12 Catherine Moore <clm@codesourcery.com>
24194
24195 * config/mips/constraints.md: Add new register constraint "kb".
24196 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24197 (*movhi_internal): Likewise.
24198 (*movqi_internal): Likewise.
24199 * config/mips/mips.h (M16_STORE_REGS): New register class.
24200 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24201 (REG_CLASS_CONTENTS): Likewise.
24202 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24203
24204 2014-04-11 Tobias Burnus <burnus@net-b.de>
24205
24206 PR c/60194
24207 * doc/invoke.texi (-Wformat-signedness): Document it.
24208 (Wformat=2): Mention that this enables -Wformat-signedness.
24209
24210 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24211
24212 * common/config/epiphany/epiphany-common.c
24213 (epiphany_option_optimization_table): Enable section anchors by
24214 default at -O1 or higher.
24215 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24216 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24217 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24218 carries no extra cost.
24219 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24220 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24221 * config/epiphany/predicates.md (memclob_operand): New predicate.
24222 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24223 Use memclob_operand predicate and X constraint for operand 3.
24224
24225 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24226
24227 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24228 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24229 its operands.
24230
24231 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24232
24233 PR rtl-optimization/60651
24234 * mode-switching.c (optimize_mode_switching): Make sure to emit
24235 sets of a lower numbered entity before sets of a higher numbered
24236 entity to a mode of the same or lower priority.
24237 When creating a seginfo for a basic block that starts with a code
24238 label, move the insertion point past the code label.
24239 (new_seginfo): Document and enforce requirement that
24240 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24241 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24242 * doc/tm.texi: Regenerate.
24243
24244 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24245
24246 PR target/60811
24247 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24248
24249 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24250
24251 * BASE-VER: Set to 4.10.0.
24252
24253 2014-04-11 Tobias Burnus <burnus@net-b.de>
24254
24255 PR other/59055
24256 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24257 * doc/gcc.texi (Service): Update description in the @menu
24258 * doc/invoke.texi (Option Summary): Remove misplaced and
24259 duplicated @menu.
24260
24261 2014-04-11 Steve Ellcey <sellcey@mips.com>
24262 Jakub Jelinek <jakub@redhat.com>
24263
24264 PR middle-end/60556
24265 * expr.c (convert_move): Use emit_store_flag_force instead of
24266 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24267 argument to it.
24268
24269 2014-04-11 Richard Biener <rguenther@suse.de>
24270
24271 PR middle-end/60797
24272 * varasm.c (assemble_alias): Avoid endless error reporting
24273 recursion by setting TREE_ASM_WRITTEN.
24274
24275 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24276
24277 * config/s390/s390.md: Add a splitter for NOT rtx.
24278
24279 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24280
24281 PR rtl-optimization/60663
24282 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24283
24284 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24285 Jakub Jelinek <jakub@redhat.com>
24286
24287 PR lto/60567
24288 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24289 flag from decl_node to node.
24290
24291 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24292
24293 PR debug/60655
24294 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24295 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24296 ameliorating the cases where it can be.
24297
24298 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24299
24300 Revert
24301 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24302
24303 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24304 (loadsync_<mode>): Change mode.
24305 (load_quadpti, store_quadpti): New.
24306 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24307 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24308 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24309
24310 2014-04-09 Cong Hou <congh@google.com>
24311
24312 PR testsuite/60773
24313 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24314 documentation.
24315
24316 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24317
24318 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24319 instead of vnor to exploit possible fusion opportunity in the
24320 future.
24321 (altivec_expand_vec_perm_const_le): Likewise.
24322
24323 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24324
24325 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24326 (loadsync_<mode>): Change mode.
24327 (load_quadpti, store_quadpti): New.
24328 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24329 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24330
24331 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24332
24333 PR target/60763
24334 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24335 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24336 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24337
24338 2014-04-08 Richard Biener <rguenther@suse.de>
24339
24340 PR middle-end/60706
24341 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24342 a 64bit widest int print double-int similar to on HWI64 hosts.
24343
24344 2014-04-08 Richard Biener <rguenther@suse.de>
24345
24346 PR tree-optimization/60785
24347 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24348 default defs properly.
24349
24350 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24351
24352 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24353 (Weffc++): Likewise.
24354
24355 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24356
24357 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24358 set completep to false rather than true.
24359
24360 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24361
24362 PR target/60504
24363 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24364 ARM_TARGET2_DWARF_FORMAT.
24365
24366 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24367
24368 PR target/60609
24369 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24370 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24371 ADDR_DIFF_VEC.
24372
24373 2014-04-07 Richard Biener <rguenther@suse.de>
24374
24375 PR tree-optimization/60766
24376 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24377 (may_eliminate_iv): Convert cand_value_at result to desired type.
24378
24379 2014-04-07 Jason Merrill <jason@redhat.com>
24380
24381 PR c++/60731
24382 * common.opt (-fno-gnu-unique): Add.
24383 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24384
24385 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24386
24387 * haifa-sched.c: Fix outdated function reference and minor
24388 grammar errors in introductory comment.
24389
24390 2014-04-07 Richard Biener <rguenther@suse.de>
24391
24392 PR middle-end/60750
24393 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24394 for noreturn calls.
24395 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24396
24397 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24398
24399 PR debug/55794
24400 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24401 size accounting for thunks.
24402 (pa_asm_output_mi_thunk): Use final_start_function() and
24403 final_end_function() to output function start and end directives.
24404
24405 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24406
24407 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24408 device specific ISA/ feature information. Remove short_sp and
24409 errata_skip ds. Add avr_device_specific_features enum to have device
24410 specific info.
24411 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24412 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24413 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24414 updated device specific info.
24415 * config/avr/avr-mcus.def: Merge device specific details to
24416 dev_attribute field.
24417 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24418 errata_skip.
24419 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24420 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24421 assembler if RMW isa supported by current device.
24422 * config/avr/genmultilib.awk: Update as device info structure changed.
24423 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24424
24425 2014-04-04 Cong Hou <congh@google.com>
24426
24427 PR tree-optimization/60656
24428 * tree-vect-stmts.c (supportable_widening_operation):
24429 Fix a bug that elements in a vector with vect_used_by_reduction
24430 property are incorrectly reordered when the operation on it is not
24431 consistant with the one in reduction operation.
24432
24433 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24434
24435 PR rtl-optimization/60155
24436 * gcse.c (record_set_data): New function.
24437 (single_set_gcse): New function.
24438 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24439 (hoist_code): Likewise.
24440 (get_pressure_class_and_nregs): Likewise.
24441
24442 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24443
24444 * explow.c (probe_stack_range): Emit a final optimization blockage.
24445
24446 2014-04-04 Anthony Green <green@moxielogic.com>
24447
24448 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24449 typos.
24450
24451 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24452
24453 PR ipa/59626
24454 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24455 flags are set only during streaming.
24456 * ipa.c (process_references, walk_polymorphic_call_targets,
24457 symtab_remove_unreachable_nodes): Drop bodies of always inline
24458 after early inlining.
24459 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24460
24461 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24462 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24463
24464 PR debug/60655
24465 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24466 containing a NOT.
24467
24468 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24469
24470 PR bootstrap/60743
24471 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24472 duration.
24473 (cortex_a53_fdivd): Likewise.
24474
24475 2014-04-04 Martin Jambor <mjambor@suse.cz>
24476
24477 PR ipa/60640
24478 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24479 Adjust all callers.
24480 * cgraph.c (clone_of_p): Also return true if thunks match.
24481 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24482 cgraph_function_or_thunk_node and an obsolete comment.
24483 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24484 file.
24485 (build_function_decl_skip_args): Likewise.
24486 (set_new_clone_decl_and_node_flags): New function.
24487 (duplicate_thunk_for_node): Likewise.
24488 (redirect_edge_duplicating_thunks): Likewise.
24489 (cgraph_clone_node): New parameter args_to_skip, pass it to
24490 redirect_edge_duplicating_thunks which is called instead of
24491 cgraph_redirect_edge_callee.
24492 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24493 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24494
24495 2014-04-04 Jeff Law <law@redhat.com>
24496
24497 PR target/60657
24498 * config/arm/predicates.md (const_int_I_operand): New predicate.
24499 (const_int_M_operand): Similarly.
24500 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24501 const_int_operand.
24502 (insv_t2, extv_reg, extzv_t2): Likewise.
24503 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24504 (pop_multiple_with_writeback_and_return): Likewise.
24505 (vfp_pop_multiple_with_writeback): Likewise
24506
24507 2014-04-04 Richard Biener <rguenther@suse.de>
24508
24509 PR ipa/60746
24510 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24511 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24512 non-GIMPLE_LABELs.
24513 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24514 * gimplify.c (gimple_add_tmp_var_fn): New function.
24515 * gimple-expr.h (create_tmp_reg_fn): Declare.
24516 * gimple-expr.c (create_tmp_reg_fn): New function.
24517 * gimple-low.c (record_vars_into): Don't change cfun.
24518 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24519 code generation without cfun.
24520
24521 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
24522
24523 PR bootstrap/60719
24524 * Makefile.in (install-driver): Fix shell scripting.
24525
24526 2014-04-03 Cong Hou <congh@google.com>
24527
24528 PR tree-optimization/60505
24529 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24530 threshold of number of iterations below which no vectorization
24531 will be done.
24532 * tree-vect-loop.c (new_loop_vec_info):
24533 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24534 * tree-vect-loop.c (vect_analyze_loop_operations):
24535 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24536 * tree-vect-loop.c (vect_transform_loop):
24537 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24538 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24539 of iterations of the loop and see if we should build the epilogue.
24540
24541 2014-04-03 Richard Biener <rguenther@suse.de>
24542
24543 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24544 (streamer_tree_cache_create): Adjust.
24545 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24546 to allow optional nodes array.
24547 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24548 (streamer_tree_cache_append): Likewise.
24549 (streamer_tree_cache_create): Create nodes array optionally
24550 as specified by parameter.
24551 * lto-streamer-out.c (create_output_block): Avoid maintaining
24552 the node array in the writer cache.
24553 (DFS_write_tree): Remove assertion.
24554 (produce_asm_for_decls): Free the out decl state hash table early.
24555 * lto-streamer-in.c (lto_data_in_create): Adjust for
24556 streamer_tree_cache_create prototype change.
24557
24558 2014-04-03 Richard Biener <rguenther@suse.de>
24559
24560 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24561 set TREE_CHAIN to NULL_TREE.
24562
24563 2014-04-03 Richard Biener <rguenther@suse.de>
24564
24565 PR tree-optimization/60740
24566 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24567 over all GIMPLE_COND operands.
24568
24569 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
24570
24571 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24572 (Weffc++): Remove Scott's numbering, merge lists and reference
24573 Wnon-virtual-dtor.
24574
24575 2014-04-03 Nick Clifton <nickc@redhat.com>
24576
24577 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24578 properly.
24579
24580 2014-04-03 Martin Jambor <mjambor@suse.cz>
24581
24582 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24583 mention gcc_unreachable before failing.
24584 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24585 removed symbols.
24586
24587 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
24588
24589 PR ipa/60659
24590 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24591 inconsistent code and instead mark the context inconsistent.
24592 (possible_polymorphic_call_targets): For inconsistent contexts
24593 return empty complete list.
24594
24595 2014-04-02 Anthony Green <green@moxielogic.com>
24596
24597 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24598 (extendqisi2, extendhisi2): Define.
24599 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24600 (WCHAR_TYPE): Change to unsigned int.
24601
24602 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24603
24604 PR tree-optimization/60733
24605 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24606 insertion point for PHI candidates to be the end of the feeding
24607 block for the PHI argument.
24608
24609 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
24610
24611 PR rtl-optimization/60650
24612 * lra-constraints.c (process_alt_operands): Decrease reject for
24613 earlyclobber matching.
24614
24615 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24616
24617 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24618
24619 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24620
24621 * config/spu/spu.c (pad_bb): Do not crash when the last
24622 insn is CODE_FOR_blockage.
24623
24624 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24625
24626 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24627 lies outside the target mode.
24628
24629 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24630
24631 PR target/60735
24632 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24633 software floating point or no floating point registers, do not
24634 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24635 in GPRs that occurs after we tested for GPRs that would never be
24636 true.
24637
24638 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24639 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24640 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24641 specifically allow DDmode, since that does not use the SPE SIMD
24642 instructions.
24643
24644 2014-04-02 Richard Biener <rguenther@suse.de>
24645
24646 PR middle-end/60729
24647 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24648 MODE_INTs. Properly use negv_optab.
24649 (expand_abs): Likewise.
24650
24651 2014-04-02 Richard Biener <rguenther@suse.de>
24652
24653 PR bootstrap/60719
24654 * Makefile.in (install-driver): Guard extra installs with special
24655 names properly.
24656
24657 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
24658
24659 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24660 Document vec_vgbbd.
24661
24662 2014-04-01 Richard Henderson <rth@redhat.com>
24663
24664 PR target/60704
24665 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24666 alternative enabled before register allocation.
24667
24668 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
24669
24670 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24671 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24672 typo.
24673 (nios2_large_got_address): Remove unneeded 'sym' parameter.
24674 (nios2_got_address): Update nios2_large_got_address call site.
24675 (nios2_delegitimize_address): New function.
24676 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24677 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24678 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24679
24680 2014-04-01 Martin Husemann <martin@duskware.de>
24681
24682 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24683 for -mabi=32.
24684
24685 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
24686
24687 PR rtl-optimization/60604
24688 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24689 check from register_operand.
24690 (register_operand): Redefine in terms of general_operand.
24691 (nonmemory_operand): Use register_operand for the non-constant cases.
24692
24693 2014-04-01 Richard Biener <rguenther@suse.de>
24694
24695 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24696
24697 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
24698
24699 * doc/invoke.texi (mapp-regs): Clarify.
24700
24701 2014-03-31 Ulrich Drepper <drepper@gmail.com>
24702
24703 * config/i386/avx512fintrin.h (__v32hi): Define type.
24704 (__v64qi): Likewise.
24705 (_mm512_set1_epi8): Define.
24706 (_mm512_set1_epi16): Define.
24707 (_mm512_set4_epi32): Define.
24708 (_mm512_set4_epi64): Define.
24709 (_mm512_set4_pd): Define.
24710 (_mm512_set4_ps): Define.
24711 (_mm512_setr4_epi64): Define.
24712 (_mm512_setr4_epi32): Define.
24713 (_mm512_setr4_pd): Define.
24714 (_mm512_setr4_ps): Define.
24715 (_mm512_setzero_epi32): Define.
24716
24717 2014-03-31 Martin Jambor <mjambor@suse.cz>
24718
24719 PR middle-end/60647
24720 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24721 callsite_arguments_match_p. Updated all callers. Also check types of
24722 corresponding formal parameters and actual arguments.
24723 (not_all_callers_have_enough_arguments_p) Renamed to
24724 some_callers_have_mismatched_arguments_p.
24725
24726 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
24727
24728 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24729
24730 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
24731
24732 PR target/60034
24733 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24734 section anchor.
24735
24736 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
24737
24738 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24739 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24740 Split out
24741 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24742 Use FMAMODE_NOVF512 mode iterator.
24743 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24744 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24745 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24746 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24747 Split out
24748 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24749 Use VF_128_256 mode iterator.
24750 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24751 Ditto.
24752
24753 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24754
24755 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24756 static chain if needed.
24757
24758 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24759
24760 PR target/60697
24761 * lra-constraints.c (index_part_to_reg): New.
24762 (process_address): Use it.
24763
24764 2014-03-27 Jeff Law <law@redhat.com>
24765 Jakub Jelinek <jakub@redhat.com>
24766
24767 PR target/60648
24768 * expr.c (do_tablejump): Use simplify_gen_binary rather than
24769 gen_rtx_{PLUS,MULT} to build up the address expression.
24770
24771 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24772 creating non-canonical RTL.
24773
24774 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24775
24776 PR ipa/60243
24777 * ipa-inline.c (want_inline_small_function_p): Short circuit large
24778 functions; reorganize to make cheap checks first.
24779 (inline_small_functions): Do not estimate growth when dumping;
24780 it is expensive.
24781 * ipa-inline.h (inline_summary): Add min_size.
24782 (growth_likely_positive): New function.
24783 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24784 (set_cond_stmt_execution_predicate): Cleanup.
24785 (estimate_edge_size_and_time): Compute min_size.
24786 (estimate_calls_size_and_time): Likewise.
24787 (estimate_node_size_and_time): Likewise.
24788 (inline_update_overall_summary): Update min_size.
24789 (do_estimate_edge_time): Likewise.
24790 (do_estimate_edge_size): Update.
24791 (do_estimate_edge_hints): Update.
24792 (growth_likely_positive): New function.
24793
24794 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24795
24796 PR target/60693
24797 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24798 also if addr has VOIDmode.
24799
24800 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24801
24802 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24803 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24804 Declare extern.
24805 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24806 instructions as well as AdvancedSIMD loads.
24807
24808 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24809
24810 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24811 Use crypto_aese type.
24812 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24813 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24814 crypto_aese, crypto_aesmc. Move to types.md.
24815 * config/arm/types.md (crypto_aes): Split into crypto_aese,
24816 crypto_aesmc.
24817 * config/arm/iterators.md (crypto_type): Likewise.
24818
24819 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24820
24821 * cgraph.c: Include expr.h and tree-dfa.h.
24822 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24823 remove LHS.
24824
24825 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24826
24827 PR target/60675
24828 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24829 regs from checking multi-reg pseudos.
24830
24831 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24832
24833 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24834
24835 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24836
24837 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24838 if it would clobber the stack pointer, even temporarily.
24839
24840 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
24841
24842 * mode-switching.c: Make small adjustments to the top comment.
24843
24844 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
24845
24846 * config/rs6000/constraints.md (wD constraint): New constraint to
24847 match the constant integer to get the top DImode/DFmode out of a
24848 vector in a VSX register.
24849
24850 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
24851 match the constant integer to get the top DImode/DFmode out of a
24852 vector in a VSX register.
24853
24854 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
24855 for ISA 2.07.
24856
24857 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24858 vbpermq builtins.
24859
24860 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24861 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
24862
24863 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
24864 Optimize vec_extract of 64-bit values, where the value being
24865 extracted is in the top word, where we can use scalar
24866 instructions. Add direct move and store support. Combine the big
24867 endian/little endian vector select load support into a single insn.
24868 (vsx_extract_<mode>_internal1): Likewise.
24869 (vsx_extract_<mode>_internal2): Likewise.
24870 (vsx_extract_<mode>_load): Likewise.
24871 (vsx_extract_<mode>_store): Likewise.
24872 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24873 combined into vsx_extract_<mode>_load.
24874 (vsx_extract_<mode>_one_le): Likewise.
24875
24876 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24877 define the top 64-bit vector element.
24878
24879 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24880 constraint.
24881
24882 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24883 Document vec_vbpermq builtin.
24884
24885 PR target/60672
24886 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24887 enable use of xxsldwi and xxpermdi builtin functions.
24888 (vec_xxpermdi): Likewise.
24889
24890 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24891 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24892
24893 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24894
24895 PR rtl-optimization/60650
24896 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24897 first_p. Use it.
24898 (find_spills_for): New.
24899 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24900 Spill all pseudos on the second iteration.
24901
24902 2014-03-27 Marek Polacek <polacek@redhat.com>
24903
24904 PR c/50347
24905 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24906 types.
24907
24908 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24909
24910 * config/s390/s390.c (s390_can_use_return_insn): Check for
24911 call-saved FPRs on 31 bit.
24912
24913 2014-03-27 Jakub Jelinek <jakub@redhat.com>
24914
24915 PR middle-end/60682
24916 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
24917 if they need regimplification, just drop them instead of
24918 calling gimple_regimplify_operands on them.
24919
24920 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
24921
24922 PR target/60580
24923 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
24924 (aarch64_frame_pointer_required): Adjust logic.
24925 (aarch64_can_eliminate): Adjust logic.
24926 (aarch64_override_options_after_change): Adjust logic.
24927
24928 2014-03-27 Dehao Chen <dehao@google.com>
24929
24930 * ipa-inline.c (early_inliner): Update node's inline info.
24931
24932 2014-03-26 Dehao Chen <dehao@google.com>
24933
24934 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
24935 compiler inserted conditional jumps for NAN float check.
24936
24937 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24938
24939 * ubsan.h (ubsan_create_data): Change second argument's type
24940 to const location_t *.
24941 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
24942 _("<unknown>").
24943 (ubsan_create_data): Change second argument to const location_t *PLOC.
24944 Create Loc field whenever PLOC is non-NULL.
24945 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
24946 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
24947 callers.
24948
24949 PR other/59545
24950 * real.c (real_to_integer2): Change type of low to UHWI.
24951
24952 2014-03-26 Tobias Burnus <burnus@net-b.de>
24953
24954 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
24955 (CILK_SELF_SPECS): New define.
24956 (driver_self_specs): Use it.
24957
24958 2014-03-26 Richard Biener <rguenther@suse.de>
24959
24960 * tree-pretty-print.c (percent_K_format): Implement special
24961 case for LTO and its stripped down BLOCK tree.
24962
24963 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24964
24965 PR sanitizer/60636
24966 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
24967
24968 * tree-vrp.c (simplify_internal_call_using_ranges): If only
24969 one range is range_int_cst_p, but not both, at least optimize
24970 addition/subtraction of 0 and multiplication by 0 or 1.
24971 * gimple-fold.c (gimple_fold_call): Fold
24972 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
24973 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
24974 INTEGER_CSTs, try to fold at least x * 0 and y - y.
24975
24976 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
24977
24978 PR rtl-optimization/60452
24979 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
24980 <case REG>: Return 1 for invalid offsets from the frame pointer.
24981
24982 2014-03-26 Marek Polacek <polacek@redhat.com>
24983
24984 PR c/37428
24985 * doc/extend.texi (C Extensions): Mention variable-length arrays in
24986 a structure/union.
24987
24988 2014-03-26 Marek Polacek <polacek@redhat.com>
24989
24990 PR c/39525
24991 * doc/extend.texi (Designated Inits): Describe what happens to omitted
24992 field members.
24993
24994 2014-03-26 Marek Polacek <polacek@redhat.com>
24995
24996 PR other/59545
24997 * ira-color.c (update_conflict_hard_regno_costs): Perform the
24998 multiplication in unsigned type.
24999
25000 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25001
25002 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25003
25004 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25005
25006 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25007
25008 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25009
25010 PR ipa/60315
25011 * cif-code.def (UNREACHABLE) New code.
25012 * ipa-inline.c (inline_small_functions): Skip edges to
25013 __builtlin_unreachable.
25014 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25015 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25016 predicate to __bulitin_unreachable.
25017 (set_cond_stmt_execution_predicate): Fix issue when
25018 invert_tree_comparison returns ERROR_MARK.
25019 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25020 propagate to inline clones.
25021 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25022 to unreachable.
25023 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25024 * cgraphclones.c (cgraph_clone_node): If call destination is already
25025 ureachable, do not redirect it back.
25026 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25027 unreachable.
25028
25029 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25030
25031 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25032 Do not modify inline clones.
25033
25034 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25035
25036 * config/i386/i386.md (general_sext_operand): New mode attr.
25037 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25038 don't generate (sign_extend (const_int)).
25039 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25040 operands[2]. Use We constraint instead of <i> and
25041 <general_sext_operand> predicate instead of <general_operand>.
25042 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25043 * config/i386/constraints.md (We): New constraint.
25044 * config/i386/predicates.md (x86_64_sext_operand,
25045 sext_operand): New predicates.
25046
25047 2014-03-25 Martin Jambor <mjambor@suse.cz>
25048
25049 PR ipa/60600
25050 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25051 inconsistent devirtualizations to __builtin_unreachable.
25052
25053 2014-03-25 Marek Polacek <polacek@redhat.com>
25054
25055 PR c/35449
25056 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25057
25058 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25059
25060 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25061 order of elements for big-endian.
25062
25063 2014-03-25 Richard Biener <rguenther@suse.de>
25064
25065 PR middle-end/60635
25066 * gimplify-me.c (gimple_regimplify_operands): Update the
25067 re-gimplifed stmt.
25068
25069 2014-03-25 Martin Jambor <mjambor@suse.cz>
25070
25071 PR ipa/59176
25072 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25073 (lto_output_varpool_node): Likewise.
25074 (input_overwrite_node): Likewise.
25075 (input_varpool_node): Likewise.
25076
25077 2014-03-25 Richard Biener <rguenther@suse.de>
25078
25079 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25080 (run_gcc): Likewise.
25081
25082 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25083
25084 * combine.c (simplify_compare_const): Add MODE argument.
25085 Handle mode_width 0 as very large mode_width.
25086 (try_combine, simplify_comparison): Adjust callers.
25087
25088 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25089 type to avoid signed integer overflow.
25090 * explow.c (plus_constant): Likewise.
25091
25092 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25093
25094 * doc/generic.texi: Correct typos.
25095
25096 2014-03-24 Tobias Burnus <burnus@net-b.de>
25097
25098 * doc/invoke.texi (-flto): Expand section about
25099 using static libraries with LTO.
25100
25101 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25102
25103 PR rtl-optimization/60501
25104 * optabs.def (addptr3_optab): New optab.
25105 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25106 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25107 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25108
25109 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25110
25111 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25112
25113 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25114
25115 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25116 _mm512_set1_pd.
25117
25118 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25119 (_mm256_undefined_ps): Define.
25120 (_mm256_undefined_pd): Define.
25121 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25122 (_mm_undefined_pd): Define.
25123 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25124 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25125 (_mm512_undefined_ps): Define.
25126 (_mm512_undefined_pd): Define.
25127 Use _mm*_undefined_*.
25128 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25129
25130 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25131
25132 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25133 (lshr_simd): DI mode added.
25134 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25135 (aarch64_ushr_simddi): Likewise.
25136 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25137 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25138 (vshrd_n_u64): Likewise.
25139
25140 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25141
25142 * Makefile.in (s-macro_list): Depend on cc1.
25143
25144 2014-03-23 Teresa Johnson <tejohnson@google.com>
25145
25146 * ipa-utils.c (ipa_print_order): Use specified dump file.
25147
25148 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25149
25150 PR rtl-optimization/60601
25151 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25152
25153 * gcc.c (eval_spec_function): Initialize save_growing_value.
25154
25155 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25156
25157 PR sanitizer/60613
25158 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25159 code == MINUS_EXPR, never swap op0 with op1.
25160
25161 * toplev.c (init_local_tick): Avoid signed integer multiplication
25162 overflow.
25163 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25164 shift by first operand's bitsize.
25165
25166 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25167
25168 PR target/60610
25169 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25170 redefine to 1 or 0.
25171 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25172 TARGET_ISA_64BIT_P(x).
25173
25174 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25175
25176 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25177 pattern for vector nor instead of subtract from splat(-1).
25178 (altivec_expand_vec_perm_const_le): Likewise.
25179
25180 2014-03-21 Richard Henderson <rth@twiddle.net>
25181
25182 PR target/60598
25183 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25184 related insns after epilogue_completed.
25185
25186 2014-03-21 Martin Jambor <mjambor@suse.cz>
25187
25188 PR ipa/59176
25189 * cgraph.h (symtab_node): New flag body_removed.
25190 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25191 when removing bodies.
25192 * symtab.c (dump_symtab_base): Dump body_removed flag.
25193 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25194 had their bodies removed.
25195
25196 2014-03-21 Martin Jambor <mjambor@suse.cz>
25197
25198 PR ipa/60419
25199 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25200 in the border.
25201
25202 2014-03-21 Richard Biener <rguenther@suse.de>
25203
25204 PR tree-optimization/60577
25205 * tree-core.h (struct tree_base): Document nothrow_flag use
25206 in DECL_NONALIASED.
25207 * tree.h (DECL_NONALIASED): New.
25208 (may_be_aliased): Adjust.
25209 * coverage.c (build_var): Set DECL_NONALIASED.
25210
25211 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25212
25213 * expr.c (expand_expr_real_1): Remove outdated comment.
25214
25215 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25216
25217 PR middle-end/60597
25218 * ira.c (adjust_cleared_regs): Call copy_rtx on
25219 *reg_equiv[REGNO (loc)].src_p before passing it to
25220 simplify_replace_fn_rtx.
25221
25222 PR target/60568
25223 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25224 into CONST, put pic register as first operand of PLUS. Use
25225 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25226
25227 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25228
25229 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25230
25231 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25232
25233 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25234 around for store forwarding issue in the FPU on the UT699.
25235 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25236 loads and operations if -mfix-ut699 is specified.
25237 (divtf3_hq): Tweak attribute.
25238 (sqrttf2_hq): Likewise.
25239
25240 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25241
25242 * calls.c (store_one_arg): Remove incorrect const qualification on the
25243 type of the temporary.
25244 * cfgexpand.c (expand_return): Likewise.
25245 * expr.c (expand_constructor): Likewise.
25246 (expand_expr_real_1): Likewise.
25247
25248 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25249
25250 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25251 of parts.
25252
25253 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25254
25255 PR target/60039
25256 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25257
25258 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25259
25260 * config/arm/aarch-common-protos.h
25261 (alu_cost_table): Fix spelling of "extend".
25262 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25263
25264 2014-03-19 Richard Biener <rguenther@suse.de>
25265
25266 PR middle-end/60553
25267 * tree-core.h (tree_type_common): Re-order pointer members
25268 to reduce recursion depth during GC walks.
25269
25270 2014-03-19 Marek Polacek <polacek@redhat.com>
25271
25272 PR sanitizer/60569
25273 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25274 before accessing it.
25275
25276 2014-03-19 Richard Biener <rguenther@suse.de>
25277
25278 PR lto/59543
25279 * lto-streamer-in.c (input_function): In WPA stage do not drop
25280 debug stmts.
25281
25282 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25283
25284 PR tree-optimization/60559
25285 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25286 with build_zero_cst assignment.
25287
25288 2014-03-18 Kai Tietz <ktietz@redhat.com>
25289
25290 PR rtl-optimization/56356
25291 * sdbout.c (sdbout_parms): Verify that parms'
25292 incoming argument is valid.
25293 (sdbout_reg_parms): Likewise.
25294
25295 2014-03-18 Richard Henderson <rth@redhat.com>
25296
25297 PR target/60562
25298 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25299 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25300 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25301
25302 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25303
25304 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25305 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25306 Italicize plugin event names in description. Explain that
25307 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25308 Remind that no GCC functions should be called after PLUGIN_FINISH.
25309 Explain what pragmas with expansion are.
25310
25311 2014-03-18 Martin Liska <mliska@suse.cz>
25312
25313 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25314 gimple call statement is update.
25315 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25316 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25317
25318 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25319
25320 PR sanitizer/60557
25321 * ubsan.c (ubsan_instrument_unreachable): Call
25322 initialize_sanitizer_builtins.
25323 (ubsan_pass): Likewise.
25324
25325 PR sanitizer/60535
25326 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25327 varpool_finalize_decl instead of rest_of_decl_compilation.
25328
25329 2014-03-18 Richard Biener <rguenther@suse.de>
25330
25331 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25332 by using bitmap_and_compl instead of bitmap_and_compl_into.
25333 (df_rd_transfer_function): Likewise.
25334
25335 2014-03-18 Richard Biener <rguenther@suse.de>
25336
25337 * doc/lto.texi (fresolution): Fix typo.
25338
25339 2014-03-18 Richard Biener <rguenther@suse.de>
25340
25341 * doc/invoke.texi (flto): Update for changes in 4.9.
25342
25343 2014-03-18 Richard Biener <rguenther@suse.de>
25344
25345 * doc/loop.texi: Remove section on the removed lambda framework.
25346 Update loop docs with recent changes in preserving loop structure.
25347
25348 2014-03-18 Richard Biener <rguenther@suse.de>
25349
25350 * doc/lto.texi (-fresolution): Document.
25351
25352 2014-03-18 Richard Biener <rguenther@suse.de>
25353
25354 * doc/contrib.texi: Adjust my name.
25355
25356 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25357
25358 PR ipa/58721
25359 * internal-fn.c: Include diagnostic-core.h.
25360 (expand_BUILTIN_EXPECT): New function.
25361 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25362 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25363 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25364 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25365 IFN_BUILTIN_EXPECT.
25366 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25367 Revert 3 argument __builtin_expect code.
25368 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25369 * gimple-fold.c (gimple_fold_call): Likewise.
25370 * tree.h (fold_builtin_expect): New prototype.
25371 * builtins.c (build_builtin_expect_predicate): Add predictor
25372 argument, if non-NULL, create 3 argument __builtin_expect.
25373 (fold_builtin_expect): No longer static. Add ARG2 argument,
25374 pass it through to build_builtin_expect_predicate.
25375 (fold_builtin_2): Adjust caller.
25376 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25377 * internal-fn.def (BUILTIN_EXPECT): New.
25378
25379 2014-03-18 Tobias Burnus <burnus@net-b.de>
25380
25381 PR ipa/58721
25382 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25383 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25384 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25385
25386 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25387
25388 PR ipa/58721
25389 * predict.c (combine_predictions_for_bb): Fix up formatting.
25390 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25391 fill what it points to if non-NULL.
25392 (tree_predict_by_opcode): Adjust caller, use the predictor.
25393 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25394
25395 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25396
25397 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25398 proper constant for the store mode.
25399
25400 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25401
25402 * symtab.c (change_decl_assembler_name): Fix transparent alias
25403 chain construction.
25404
25405 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25406
25407 * config/aarch64/aarch64.c: Correct the comments about the
25408 aarch64 stack layout.
25409
25410 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25411
25412 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25413 check for GF_OMP_FOR_KIND_FOR.
25414
25415 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25416
25417 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25418 ymm and zmm register names.
25419
25420 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25421
25422 PR target/60516
25423 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25424 note creation for the 2010-08-31 changes.
25425
25426 2014-03-17 Marek Polacek <polacek@redhat.com>
25427
25428 PR middle-end/60534
25429 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25430 as -fno-tree-loop-vectorize.
25431 (expand_omp_simd): Likewise.
25432
25433 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25434
25435 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25436 (eligible_for_call_delay): New prototype.
25437 * config/sparc/sparc.c (tls_call_delay): Rename into...
25438 (eligible_for_call_delay): ...this. Return false if the instruction
25439 cannot be put in the delay slot of a branch.
25440 (eligible_for_restore_insn): Simplify.
25441 (eligible_for_return_delay): Return false if the instruction cannot be
25442 put in the delay slot of a branch and simplify.
25443 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25444 put in the delay slot of a branch.
25445 * config/sparc/sparc.md (fix_ut699): New attribute.
25446 (tls_call_delay): Delete.
25447 (in_call_delay): Reimplement.
25448 (eligible_for_sibcall_delay): Rename into...
25449 (in_sibcall_delay): ...this.
25450 (eligible_for_return_delay): Rename into...
25451 (in_return_delay): ...this.
25452 (in_branch_delay): Reimplement.
25453 (in_uncond_branch_delay): Delete.
25454 (in_annul_branch_delay): Delete.
25455
25456 2014-03-14 Richard Henderson <rth@redhat.com>
25457
25458 PR target/60525
25459 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25460 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25461 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25462 (floathi splitters): Remove.
25463 (float<SWI48x>xf2): New pattern.
25464 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25465 code that tried to handle DImode for 32-bit, but which was excluded
25466 by the pattern's condition. Drop allocation of stack temporary.
25467 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25468 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25469 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25470 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25471 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25472 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25473 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25474 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25475 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25476 (*float<SWI48x><X87MODEF>2_i387): Remove.
25477 (all float _with_temp splitters): Remove.
25478 (*float<SWI48x><MODEF>2_i387): New pattern.
25479 (*float<SWI48><MODEF>2_sse): New pattern.
25480 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25481 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25482
25483 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25484 Marek Polacek <polacek@redhat.com>
25485
25486 PR middle-end/60484
25487 * common.opt (dump_base_name_prefixed): New Variable.
25488 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25489 if x_dump_base_name_prefixed is already set, set it at the end.
25490
25491 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25492
25493 PR rtl-optimization/60508
25494 * lra-constraints.c (get_reload_reg): Add new parameter
25495 in_subreg_p.
25496 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25497 Pass the new parameter values.
25498
25499 2014-03-14 Richard Biener <rguenther@suse.de>
25500
25501 * common.opt: Revert unintented changes from r205065.
25502 * opts.c: Likewise.
25503
25504 2014-03-14 Richard Biener <rguenther@suse.de>
25505
25506 PR middle-end/60518
25507 * cfghooks.c (split_block): Properly adjust all loops the
25508 block was a latch of.
25509
25510 2014-03-14 Martin Jambor <mjambor@suse.cz>
25511
25512 PR lto/60461
25513 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25514 and simplify it.
25515
25516 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
25517
25518 PR target/59396
25519 * config/avr/avr.c (avr_set_current_function): Pass function name
25520 through default_strip_name_encoding before sanity checking instead
25521 of skipping the first char of the assembler name.
25522
25523 2014-03-13 Richard Henderson <rth@redhat.com>
25524
25525 PR debug/60438
25526 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25527 (ix86_force_to_memory, ix86_free_from_memory): Remove.
25528 * config/i386/i386-protos.h: Likewise.
25529 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25530 in the expander instead of a splitter.
25531 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25532 any possibility of requiring a memory.
25533 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25534 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25535 (fp branch splitters): Update for ix86_split_fp_branch.
25536 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25537 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25538 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25539 (*fop_<MODEF>_2_i387): Remove f/r alternative.
25540 (*fop_<MODEF>_3_i387): Likewise.
25541 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25542 (splitters for the fop_* register patterns): Remove.
25543 (fscalexf4_i387): Rename from *fscalexf4_i387.
25544 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25545
25546 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25547
25548 PR tree-optimization/59779
25549 * tree-dfa.c (get_ref_base_and_extent): Use double_int
25550 type for bitsize and maxsize instead of HOST_WIDE_INT.
25551
25552 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
25553
25554 PR rtl-optimization/57320
25555 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25556 the CFG after thread_prologue_and_epilogue_insns.
25557
25558 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
25559
25560 PR rtl-optimization/57189
25561 * lra-constraints.c (process_alt_operands): Disfavor spilling
25562 vector pseudos.
25563
25564 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
25565
25566 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25567
25568 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25569
25570 PR tree-optimization/59025
25571 PR middle-end/60418
25572 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25573 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25574
25575 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
25576
25577 PR target/60486
25578 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25579 calls of avr_out_plus_1.
25580
25581 2014-03-13 Bin Cheng <bin.cheng@arm.com>
25582
25583 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25584 BB's single pred and update the father loop's latch info later.
25585
25586 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25587
25588 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25589 (VEC_M): Likewise.
25590 (VEC_N): Likewise.
25591 (VEC_R): Likewise.
25592 (VEC_base): Likewise.
25593 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25594 registers, we need to swap double words in little endian mode.
25595
25596 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25597 to be a container mode for 128-bit integer operations added in ISA
25598 2.07. Unlike TImode and PTImode, the preferred register set is
25599 the Altivec/VMX registers for the 128-bit operations.
25600
25601 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25602 declarations.
25603 (rs6000_split_128bit_ok_p): Likewise.
25604
25605 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25606 macros for creating ISA 2.07 normal and overloaded builtin
25607 functions with 3 arguments.
25608 (BU_P8V_OVERLOAD_3): Likewise.
25609 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25610 for use as overloaded functions.
25611 (VPERM_1TI_UNS): Likewise.
25612 (VSEL_1TI): Likewise.
25613 (VSEL_1TI_UNS): Likewise.
25614 (ST_INTERNAL_1ti): Likewise.
25615 (LD_INTERNAL_1ti): Likewise.
25616 (XXSEL_1TI): Likewise.
25617 (XXSEL_1TI_UNS): Likewise.
25618 (VPERM_1TI): Likewise.
25619 (VPERM_1TI_UNS): Likewise.
25620 (XXPERMDI_1TI): Likewise.
25621 (SET_1TI): Likewise.
25622 (LXVD2X_V1TI): Likewise.
25623 (STXVD2X_V1TI): Likewise.
25624 (VEC_INIT_V1TI): Likewise.
25625 (VEC_SET_V1TI): Likewise.
25626 (VEC_EXT_V1TI): Likewise.
25627 (EQV_V1TI): Likewise.
25628 (NAND_V1TI): Likewise.
25629 (ORC_V1TI): Likewise.
25630 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25631 added in ISA 2.07. Add both normal 'altivec' builtins, and the
25632 overloaded builtin.
25633 (VADDUQM): Likewise.
25634 (VSUBCUQ): Likewise.
25635 (VADDEUQM): Likewise.
25636 (VADDECUQ): Likewise.
25637 (VSUBEUQM): Likewise.
25638 (VSUBECUQ): Likewise.
25639
25640 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25641 __int128_t and __uint128_t types.
25642 (__uint128_type): Likewise.
25643 (altivec_categorize_keyword): Add support for vector __int128_t,
25644 vector __uint128_t, vector __int128, and vector unsigned __int128
25645 as a container type for TImode operations that need to be done in
25646 VSX/Altivec registers.
25647 (rs6000_macro_to_expand): Likewise.
25648 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25649 to support 128-bit integer instructions vaddcuq, vadduqm,
25650 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25651 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25652
25653 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25654 for V1TImode, and set up preferences to use VSX/Altivec registers.
25655 Setup VSX reload handlers.
25656 (rs6000_debug_reg_global): Likewise.
25657 (rs6000_init_hard_regno_mode_ok): Likewise.
25658 (rs6000_preferred_simd_mode): Likewise.
25659 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25660 (easy_altivec_constant): Likewise.
25661 (output_vec_const_move): Likewise.
25662 (rs6000_expand_vector_set): Convert V1TImode set and extract to
25663 simple move.
25664 (rs6000_expand_vector_extract): Likewise.
25665 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25666 addressing.
25667 (rs6000_const_vec): Add support for V1TImode.
25668 (rs6000_emit_le_vsx_load): Swap double words when loading or
25669 storing TImode/V1TImode.
25670 (rs6000_emit_le_vsx_store): Likewise.
25671 (rs6000_emit_le_vsx_move): Likewise.
25672 (rs6000_emit_move): Add support for V1TImode.
25673 (altivec_expand_ld_builtin): Likewise.
25674 (altivec_expand_st_builtin): Likewise.
25675 (altivec_expand_vec_init_builtin): Likewise.
25676 (altivec_expand_builtin): Likewise.
25677 (rs6000_init_builtins): Add support for V1TImode type. Add
25678 support for ISA 2.07 128-bit integer builtins. Define type names
25679 for the VSX/Altivec vector types.
25680 (altivec_init_builtins): Add support for overloaded vector
25681 functions with V1TImode type.
25682 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25683 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25684 external function.
25685 (rs6000_split_128bit_ok_p): Likewise.
25686 (rs6000_handle_altivec_attribute): Create V1TImode from vector
25687 __int128_t and vector __uint128_t.
25688
25689 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25690 and mode attributes.
25691 (VSX_M): Likewise.
25692 (VSX_M2): Likewise.
25693 (VSm): Likewise.
25694 (VSs): Likewise.
25695 (VSr): Likewise.
25696 (VSv): Likewise.
25697 (VS_scalar): Likewise.
25698 (VS_double): Likewise.
25699 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25700
25701 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25702 we support the ISA 2.07 128-bit integer arithmetic instructions.
25703 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25704 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25705 and TImode types for use with the builtin functions.
25706 (V1TI_type_node): Likewise.
25707 (unsigned_V1TI_type_node): Likewise.
25708 (intTI_type_internal_node): Likewise.
25709 (uintTI_type_internal_node): Likewise.
25710
25711 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25712 128-bit builtin functions.
25713 (UNSPEC_VADDEUQM): Likewise.
25714 (UNSPEC_VADDECUQ): Likewise.
25715 (UNSPEC_VSUBCUQ): Likewise.
25716 (UNSPEC_VSUBEUQM): Likewise.
25717 (UNSPEC_VSUBECUQ): Likewise.
25718 (VM): Add V1TImode to vector mode iterators.
25719 (VM2): Likewise.
25720 (VI_unit): Likewise.
25721 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25722 (altivec_vaddcuq): Likewise.
25723 (altivec_vsubuqm): Likewise.
25724 (altivec_vsubcuq): Likewise.
25725 (altivec_vaddeuqm): Likewise.
25726 (altivec_vaddecuq): Likewise.
25727 (altivec_vsubeuqm): Likewise.
25728 (altivec_vsubecuq): Likewise.
25729
25730 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25731 mode iterators.
25732 (BOOL_128): Likewise.
25733 (BOOL_REGS_OUTPUT): Likewise.
25734 (BOOL_REGS_OP1): Likewise.
25735 (BOOL_REGS_OP2): Likewise.
25736 (BOOL_REGS_UNARY): Likewise.
25737 (BOOL_REGS_AND_CR0): Likewise.
25738
25739 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25740 128-bit integer builtin support.
25741 (vec_vadduqm): Likewise.
25742 (vec_vaddecuq): Likewise.
25743 (vec_vaddeuqm): Likewise.
25744 (vec_vsubecuq): Likewise.
25745 (vec_vsubeuqm): Likewise.
25746 (vec_vsubcuq): Likewise.
25747 (vec_vsubuqm): Likewise.
25748
25749 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25750 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25751 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25752 128-bit integer add/subtract to ISA 2.07.
25753
25754 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
25755
25756 * config/arc/arc.c (arc_predicate_delay_insns):
25757 Fix third argument passed to conditionalize_nonjump.
25758
25759 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
25760
25761 * config/aarch64/aarch64-builtins.c
25762 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25763 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25764 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25765 instead of __builtin_lfloor.
25766 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25767
25768 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25769
25770 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25771 (tree_ssa_ifcombine_bb_1): New function.
25772 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
25773 is an empty forwarder block to then_bb or vice versa and then_bb
25774 and else_bb are effectively swapped.
25775
25776 2014-03-12 Christian Bruel <christian.bruel@st.com>
25777
25778 PR target/60264
25779 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25780 REG_CFA_DEF_CFA note.
25781 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25782 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25783
25784 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25785
25786 PR tree-optimization/60454
25787 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25788
25789 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25790
25791 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25792 Do not define target_cpu_default2 to generic.
25793 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25794 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25795 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25796
25797 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25798 Marc Glisse <marc.glisse@inria.fr>
25799
25800 PR tree-optimization/60502
25801 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25802 instead of build_low_bits_mask.
25803
25804 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25805
25806 PR middle-end/60482
25807 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25808 if there are multiple uses, but op doesn't live on E edge.
25809 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25810 clobber stmts before __builtin_unreachable.
25811
25812 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
25813
25814 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25815 hard_frame_pointer_rtx.
25816 * cse.c (cse_insn): Remove volatile check.
25817 * cselib.c (cselib_process_insn): Likewise.
25818 * dse.c (scan_insn): Likewise.
25819
25820 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25821
25822 * config/arc/arc.c (conditionalize_nonjump): New function,
25823 broken out of ...
25824 (arc_ifcvt): ... this.
25825 (arc_predicate_delay_insns): Use it.
25826
25827 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25828
25829 * config/arc/predicates.md (extend_operand): During/after reload,
25830 allow const_int_operand.
25831 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25832 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
25833 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25834 to "i".
25835 (umulsi3_highpart_i): Likewise.
25836
25837 2014-03-11 Richard Biener <rguenther@suse.de>
25838
25839 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25840 Add asserts to guard possible wrong-code bugs.
25841
25842 2014-03-11 Richard Biener <rguenther@suse.de>
25843
25844 PR tree-optimization/60429
25845 PR tree-optimization/60485
25846 * tree-ssa-structalias.c (set_union_with_increment): Properly
25847 take into account all fields that overlap the shifted vars.
25848 (do_sd_constraint): Likewise.
25849 (do_ds_constraint): Likewise.
25850 (get_constraint_for_ptr_offset): Likewise.
25851
25852 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
25853
25854 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
25855 (nios2_compute_frame_layout):
25856 Add calculation of cfun->machine->fp_save_offset.
25857 (nios2_expand_prologue): Correct setting of frame pointer register
25858 in prologue.
25859 (nios2_expand_epilogue): Update recovery of stack pointer from
25860 frame pointer accordingly.
25861 (nios2_initial_elimination_offset): Update calculation of offset
25862 for eliminating to HARD_FRAME_POINTER_REGNUM.
25863
25864 2014-03-10 Jakub Jelinek <jakub@redhat.com>
25865
25866 PR ipa/60457
25867 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25868 cgraph_get_create_node on VAR_DECLs.
25869
25870 2014-03-10 Richard Biener <rguenther@suse.de>
25871
25872 PR middle-end/60474
25873 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25874
25875 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25876
25877 * config/vms/vms.opt (vms_float_format): New variable.
25878
25879 2014-03-08 Tobias Burnus <burnus@net-b.de>
25880
25881 * doc/invoke.texi (-fcilkplus): Update implementation status.
25882
25883 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25884 Richard Biener <rguenther@suse.de>
25885
25886 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25887 consistently accross all TUs.
25888 (run_gcc): Enable -fshort-double automatically at link at link-time
25889 and disallow override.
25890
25891 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25892
25893 PR target/58271
25894 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25895 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25896 if they can't be used.
25897
25898 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25899
25900 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25901 for Solaris 11/x86 ld.
25902 * configure: Regenerate.
25903
25904 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25905
25906 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25907 (LIB_TLS_SPEC): Save as ld_tls_libs.
25908 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
25909 (HAVE_AS_IX86_TLSLDM): New test.
25910 * configure, config.in: Regenerate.
25911 * config/i386/i386.c (legitimize_tls_address): Fall back to
25912 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
25913 cannot support TLS_MODEL_LOCAL_DYNAMIC.
25914 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
25915 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
25916
25917 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
25918
25919 * common.opt (fira-loop-pressure): Mark as optimization.
25920
25921 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
25922
25923 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
25924 an OpenMP mappable type.
25925
25926 2014-03-06 Matthias Klose <doko@ubuntu.com>
25927
25928 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
25929 MULTILIB_OSDIRNAMES is not defined.
25930
25931 2014-03-06 Jakub Jelinek <jakub@redhat.com>
25932 Meador Inge <meadori@codesourcery.com>
25933
25934 PR target/58595
25935 * config/arm/arm.c (arm_tls_symbol_p): Remove.
25936 (arm_legitimize_address): Call legitimize_tls_address for any
25937 arm_tls_referenced_p expression, handle constant addend. Call it
25938 before testing for !TARGET_ARM.
25939 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
25940
25941 2014-03-06 Richard Biener <rguenther@suse.de>
25942
25943 PR middle-end/60445
25944 PR lto/60424
25945 PR lto/60427
25946 Revert
25947 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25948
25949 * tree-streamer.c (record_common_node): Assert we don't record
25950 nodes with type double.
25951 (preload_common_node): Skip type double, complex double and double
25952 pointer since it is now frontend dependent due to fshort-double option.
25953
25954 2014-03-06 Richard Biener <rguenther@suse.de>
25955
25956 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
25957 or -fno-lto is specified and the linker has full plugin support.
25958 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
25959 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
25960 * lto-wrapper.c (merge_and_complain): Merge compile-time
25961 optimization levels.
25962 (run_gcc): And pass it through to the link options.
25963
25964 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
25965
25966 PR debug/60381
25967 Revert:
25968 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25969 PR debug/59992
25970 * cselib.c (remove_useless_values): Skip to avoid quadratic
25971 behavior if the condition moved from...
25972 (cselib_process_insn): ... here holds.
25973
25974 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25975
25976 PR plugins/59335
25977 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
25978 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
25979
25980 PR plugins/59335
25981 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
25982 (TM_H): Add x86-tune.def.
25983
25984 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25985
25986 * config/aarch64/aarch64.c (generic_tunings):
25987 Use cortexa57_extra_costs.
25988
25989 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25990
25991 PR lto/60404
25992 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
25993 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
25994 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
25995 cost for in_lto_p.
25996
25997 2014-03-04 Heiher <r@hev.cc>
25998
25999 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26000 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26001
26002 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26003
26004 * config/i386/predicates.md (const2356_operand): Change to ...
26005 (const2367_operand): ... this.
26006 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26007 const2367_operand.
26008 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26009 (*avx512pf_scatterpf<mode>sf): Ditto.
26010 (avx512pf_scatterpf<mode>df): Ditto.
26011 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26012 (*avx512pf_scatterpf<mode>df): Ditto.
26013 * config/i386/i386.c (ix86_expand_builtin): Update
26014 incorrect hint operand error message.
26015
26016 2014-03-04 Richard Biener <rguenther@suse.de>
26017
26018 * lto-section-in.c (lto_get_section_data): Fix const cast.
26019
26020 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26021
26022 * tree-streamer.c (record_common_node): Assert we don't record
26023 nodes with type double.
26024 (preload_common_node): Skip type double, complex double and double
26025 pointer since it is now frontend dependent due to fshort-double option.
26026
26027 2014-03-04 Richard Biener <rguenther@suse.de>
26028
26029 PR lto/60405
26030 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26031 (lto_input_toplevel_asms): Likewise.
26032 * lto-section-in.c (lto_get_section_data): Instead do it here
26033 for every section.
26034
26035 2014-03-04 Richard Biener <rguenther@suse.de>
26036
26037 PR tree-optimization/60382
26038 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26039 dead PHIs a reduction.
26040
26041 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26042
26043 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26044 hint value.
26045 (_mm_prefetch): Move out of GCC target("sse") pragma.
26046 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26047 GCC target("prfchw") pragma.
26048 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26049 for locality <= 2.
26050 * config/i386/i386.c (ix86_option_override_internal): Enable
26051 -mprfchw with -mprefetchwt1.
26052
26053 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26054
26055 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26056 Mark as varying.
26057
26058 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26059
26060 * opts.h (CL_PCH_IGNORE): Define.
26061 * targhooks.c (option_affects_pch_p):
26062 Return false for options that have CL_PCH_IGNORE set.
26063 * opt-functions.awk: Process PchIgnore.
26064 * doc/options.texi: Document PchIgnore.
26065
26066 * config/arc/arc.opt (misize): Add PchIgnore property.
26067
26068 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26069
26070 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26071 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26072 constraint on constants to permit them being loaded into
26073 GENERAL_REGS or BASE_REGS.
26074
26075 2014-03-03 Nick Clifton <nickc@redhat.com>
26076
26077 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26078 anti-cacnonical alternatives.
26079 (negandhi3_real): New pattern.
26080 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26081
26082 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26083
26084 * config/avr/avr-mcus.def: Remove atxmega16x1.
26085 * config/avr/avr-tables.opt: Regenerate.
26086 * config/avr/t-multilib: Regenerate.
26087 * doc/avr-mmcu.texi: Regenerate.
26088
26089 2014-03-03 Tobias Grosser <tobias@grosser.es>
26090 Mircea Namolaru <mircea.namolaru@inria.fr>
26091
26092 PR tree-optimization/58028
26093 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26094 scalar dimensions.
26095
26096 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26097
26098 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26099 not handled by recognizers.
26100
26101 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26102
26103 PR middle-end/60175
26104 * function.c (expand_function_end): Don't emit
26105 clobber_return_register sequence if clobber_after is a BARRIER.
26106 * cfgexpand.c (construct_exit_block): Append instructions before
26107 return_label to prev_bb.
26108
26109 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26110
26111 * config/rs6000/constraints.md: Document reserved use of "wc".
26112
26113 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26114
26115 PR ipa/60150
26116 * ipa.c (function_and_variable_visibility): When dissolving comdat
26117 group, also set all symbols to local.
26118
26119 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26120
26121 PR ipa/60306
26122
26123 Revert:
26124 2013-12-14 Jan Hubicka <jh@suse.cz>
26125 PR middle-end/58477
26126 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26127
26128 2014-03-02 Jon Beniston <jon@beniston.com>
26129
26130 PR bootstrap/48230
26131 PR bootstrap/50927
26132 PR bootstrap/52466
26133 PR target/46898
26134 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26135 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26136 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26137 (simple_return, *simple_return): New patterns
26138 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26139 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26140
26141 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26142
26143 * dwarf2out.c (gen_subprogram_die): Tidy.
26144
26145 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26146
26147 PR target/60071
26148 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26149 (*mov_t_msb_neg_negc): ... this new insn.
26150
26151 2014-02-28 Jason Merrill <jason@redhat.com>
26152
26153 PR c++/58678
26154 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26155 function.
26156
26157 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26158
26159 PR c++/60314
26160 * dwarf2out.c (decltype_auto_die): New static.
26161 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26162 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26163 (is_cxx_auto): Likewise.
26164
26165 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26166
26167 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26168 we are not using general regs only.
26169
26170 2014-02-28 Richard Biener <rguenther@suse.de>
26171
26172 PR target/60280
26173 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26174 previous fix and only allow to remove trivial pre-headers
26175 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26176 (remove_forwarder_block): Properly update the latch of a loop.
26177
26178 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26179
26180 PR debug/59992
26181 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26182 (cselib_preserved_hash_table): New.
26183 (preserve_constants_and_equivs): Move preserved vals to it.
26184 (cselib_find_slot): Look it up first.
26185 (cselib_init): Initialize it.
26186 (cselib_finish): Release it.
26187 (dump_cselib_table): Dump it.
26188
26189 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26190
26191 PR debug/59992
26192 * cselib.c (remove_useless_values): Skip to avoid quadratic
26193 behavior if the condition moved from...
26194 (cselib_process_insn): ... here holds.
26195
26196 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26197
26198 PR debug/57232
26199 * var-tracking.c (vt_initialize): Apply the same condition to
26200 preserve the CFA base value.
26201
26202 2014-02-28 Joey Ye <joey.ye@arm.com>
26203
26204 PR target/PR60169
26205 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26206 if reload in progress or completed.
26207
26208 2014-02-28 Tobias Burnus <burnus@net-b.de>
26209
26210 PR middle-end/60147
26211 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26212 NAMELIST_DECL.
26213
26214 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26215
26216 * doc/tm.texi.in (Condition Code Status): Update documention for
26217 relative locations of cc0-setter and cc0-user.
26218
26219 2014-02-27 Jeff Law <law@redhat.com>
26220
26221 PR rtl-optimization/52714
26222 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26223 into two independent simple sets, if I3 is a jump, ensure the
26224 pattern we place into I3 is a (set (pc) ...).
26225
26226 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26227 Jeff Law <law@redhat.com>
26228
26229 PR rtl-optimization/49847
26230 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26231 are in different blocks.
26232 * doc/tm.texi (Condition Code Status): Update documention for
26233 relative locations of cc0-setter and cc0-user.
26234
26235 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26236
26237 PR target/59222
26238 * lra.c (lra_emit_add): Check SUBREG too.
26239
26240 2014-02-27 Andreas Schwab <schwab@suse.de>
26241
26242 * config/m68k/m68k.c (m68k_option_override): Disable
26243 -flive-range-shrinkage for classic m68k.
26244 (m68k_override_options_after_change): Likewise.
26245
26246 2014-02-27 Marek Polacek <polacek@redhat.com>
26247
26248 PR middle-end/59223
26249 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26250 -Wmaybe-uninitialized.
26251
26252 2014-02-27 Alan Modra <amodra@gmail.com>
26253
26254 PR target/57936
26255 * reload1.c (emit_input_reload_insns): When reload_override_in,
26256 set old to rl->in_reg when rl->in_reg is a subreg.
26257
26258 2014-02-26 Richard Biener <rguenther@suse.de>
26259
26260 PR bootstrap/60343
26261 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26262
26263 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26264
26265 * common/config/i386/predicates.md (const1256_operand): Remove.
26266 (const2356_operand): New.
26267 (const_1_to_2_operand): Remove.
26268 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26269 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26270 (*avx512pf_gatherpf<mode>sf): Ditto.
26271 (avx512pf_gatherpf<mode>df): Ditto.
26272 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26273 (*avx512pf_gatherpf<mode>df): Ditto.
26274 (avx512pf_scatterpf<mode>sf): Ditto.
26275 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26276 (*avx512pf_scatterpf<mode>sf): Ditto.
26277 (avx512pf_scatterpf<mode>df): Ditto.
26278 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26279 (*avx512pf_scatterpf<mode>df): Ditto.
26280 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26281
26282 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26283
26284 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26285 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26286 (_mm512_mask_testn_epi64_mask): Move to ...
26287 * config/i386/avx512cdintrin.h: Here.
26288 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26289 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26290 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26291 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26292 TARGET_AVX512F from TARGET_AVX512CD.
26293
26294 2014-02-26 Richard Biener <rguenther@suse.de>
26295
26296 PR ipa/60327
26297 * ipa.c (walk_polymorphic_call_targets): Properly guard
26298 call to inline_update_overall_summary.
26299
26300 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26301
26302 PR target/60280
26303 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26304 and latches only if requested. Fix latch if it is removed.
26305 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26306 LOOPS_HAVE_PREHEADERS.
26307
26308 2014-02-25 Andrew Pinski <apinski@cavium.com>
26309
26310 * builtins.c (expand_builtin_thread_pointer): Create a new target
26311 when the target is NULL.
26312
26313 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26314
26315 PR rtl-optimization/60317
26316 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26317 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26318 * lra-assigns.c: Include params.h.
26319 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26320 other reload pseudos considerations.
26321
26322 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26323
26324 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26325 to use canonical form for nor<mode>3.
26326
26327 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26328
26329 PR target/55426
26330 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26331 conversions.
26332
26333 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26334
26335 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26336 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26337 (ix86_handle_option): Handle OPT_mprefetchwt1.
26338 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26339 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26340 PREFETCHWT1 CPUID.
26341 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26342 OPTION_MASK_ISA_PREFETCHWT1.
26343 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26344 (PTA_PREFETCHWT1): New.
26345 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26346 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26347 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26348 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26349 (*prefetch_avx512pf_<mode>_: Change into ...
26350 (*prefetch_prefetchwt1_<mode>: This.
26351 * config/i386/i386.opt (mprefetchwt1): New.
26352 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26353 (_mm_prefetch): Handle intent to write.
26354 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26355
26356 2014-02-25 Richard Biener <rguenther@suse.de>
26357
26358 PR middle-end/60291
26359 * emit-rtl.c (mem_attrs_htab): Remove.
26360 (mem_attrs_htab_hash): Likewise.
26361 (mem_attrs_htab_eq): Likewise.
26362 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26363 (init_emit_once): Do not allocate mem_attrs_htab.
26364
26365 2014-02-25 Richard Biener <rguenther@suse.de>
26366
26367 PR lto/60319
26368 * lto-opts.c (lto_write_options): Output non-explicit conservative
26369 -fwrapv, -fno-trapv and -fno-strict-overflow.
26370 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26371 (run_gcc): And pass them through.
26372
26373 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26374
26375 * sel-sched.c (calculate_new_fences): New parameter ptime.
26376 Calculate it as a maximum over all fence cycles.
26377 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26378 Print the final schedule timing when sched_verbose.
26379
26380 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26381
26382 PR rtl-optimization/60292
26383 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26384 bit fot the fence instruction.
26385
26386 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26387
26388 * calls.h: Fix typo in comment.
26389
26390 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26391
26392 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26393 adjusting offsetable addresses.
26394
26395 2014-02-24 Guozhi Wei <carrot@google.com>
26396
26397 * sparseset.h (sparseset_pop): Fix the wrong index.
26398
26399 2014-02-24 Walter Lee <walt@tilera.com>
26400
26401 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26402 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26403 triplet.
26404 * common/config/tilegx/tilegx-common.c
26405 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26406 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26407 (LINK_SPEC): Ditto.
26408 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26409 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26410 (tilegx_gimplify_va_arg_expr): Handle big endian.
26411 (tilegx_expand_unaligned_load): Ditto.
26412 (tilegx_expand_unaligned_store): Ditto.
26413 (TARGET_RETURN_IN_MSB): New.
26414 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26415 (TARGET_ENDIAN_DEFAULT): New.
26416 (TARGET_BIG_ENDIAN): Handle big endian.
26417 (BYTES_BIG_ENDIAN): Ditto.
26418 (WORDS_BIG_ENDIAN): Ditto.
26419 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26420 (ENDIAN_SPEC): New.
26421 (EXTRA_SPECS): New.
26422 * config/tilegx/tilegx.md (extv): Handle big endian.
26423 (extzv): Ditto.
26424 (insn_st<n>): Ditto.
26425 (insn_st<n>_add<bitsuffix>): Ditto.
26426 (insn_stnt<n>): Ditto.
26427 (insn_stnt<n>_add<bitsuffix>):Ditto.
26428 (vec_interleave_highv8qi): Handle big endian.
26429 (vec_interleave_highv8qi_be): New.
26430 (vec_interleave_highv8qi_le): New.
26431 (insn_v1int_h): Handle big endian.
26432 (vec_interleave_lowv8qi): Handle big endian.
26433 (vec_interleave_lowv8qi_be): New.
26434 (vec_interleave_lowv8qi_le): New.
26435 (insn_v1int_l): Handle big endian.
26436 (vec_interleave_highv4hi): Handle big endian.
26437 (vec_interleave_highv4hi_be): New.
26438 (vec_interleave_highv4hi_le): New.
26439 (insn_v2int_h): Handle big endian.
26440 (vec_interleave_lowv4hi): Handle big endian.
26441 (vec_interleave_lowv4hi_be): New.
26442 (vec_interleave_lowv4hi_le): New.
26443 (insn_v2int_l): Handle big endian.
26444 (vec_interleave_highv2si): Handle big endian.
26445 (vec_interleave_highv2si_be): New.
26446 (vec_interleave_highv2si_le): New.
26447 (insn_v4int_h): Handle big endian.
26448 (vec_interleave_lowv2si): Handle big endian.
26449 (vec_interleave_lowv2si_be): New.
26450 (vec_interleave_lowv2si_le): New.
26451 (insn_v4int_l): Handle big endian.
26452 * config/tilegx/tilegx.opt (mbig-endian): New option.
26453 (mlittle-endian): New option.
26454 * doc/install.texi: Document tilegxbe-linux.
26455 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26456
26457 2014-02-24 Martin Jambor <mjambor@suse.cz>
26458
26459 PR ipa/60266
26460 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26461 there are no parameter descriptors.
26462
26463 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26464
26465 PR rtl-optimization/60268
26466 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26467 initialization to ...
26468 (sched_rgn_init): ... here.
26469 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26470
26471 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26472
26473 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26474 names.
26475
26476 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26477
26478 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26479 definition.
26480
26481 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26482
26483 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26484 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26485
26486 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26487
26488 * config/microblaze/predicates.md: Add cmp_op predicate.
26489 * config/microblaze/microblaze.md: Add branch_compare instruction
26490 which uses cmp_op predicate and emits cmp insn before branch.
26491 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26492 to microblaze_expand_conditional_branch and consolidate logic.
26493 (microblaze_expand_conditional_branch): emit branch_compare
26494 insn instead of handling cmp op separate from branch insn.
26495
26496 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26497
26498 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26499 to permit subregs.
26500
26501 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26502
26503 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26504 define_insn with define_expand and new define_insn
26505 *altivec_lve<VI_char>x_internal.
26506 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26507 and new define_insn *altivec_stve<VI_char>x_internal.
26508 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26509 prototype.
26510 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26511 lve*x built-ins.
26512 (altivec_expand_stvex_be): New function.
26513
26514 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
26515
26516 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26517 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26518 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26519 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26520
26521 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
26522
26523 PR target/60298
26524 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26525 instead of emit_move_insn.
26526
26527 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26528
26529 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26530 vspltw with vsldoi.
26531 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26532 gen_altivec_vsumsws.
26533
26534 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26535
26536 * config/rs6000/altivec.md (altivec_lvxl): Rename as
26537 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26538 (altivec_lvxl_<mode>): New define_expand incorporating
26539 -maltivec=be semantics where needed.
26540 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26541 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26542 semantics where needed.
26543 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26544 (altivec_stvx_<mode>): New define_expand incorporating
26545 -maltivec=be semantics where needed.
26546 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26547 VM2 iterator instead of V4SI.
26548 (altivec_stvxl_<mode>): New define_expand incorporating
26549 -maltivec=be semantics where needed.
26550 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26551 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26552 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26553 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26554 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26555 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26556 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26557 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26558 ALTIVEC_BUILTIN_STVXL.
26559 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26560 (altivec_expand_stvx_be): Likewise.
26561 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26562 (altivec_expand_lvx_be): Likewise.
26563 (altivec_expand_stvx_be): Likewise.
26564 (altivec_expand_builtin): Add cases for
26565 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26566 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26567 (altivec_init_builtins): Add definitions for
26568 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26569 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26570
26571 2014-02-21 Catherine Moore <clm@codesourcery.com>
26572
26573 * doc/invoke.texi (mvirt, mno-virt): Document.
26574 * config/mips/mips.opt (mvirt): New option.
26575 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26576
26577 2014-02-21 Richard Biener <rguenther@suse.de>
26578
26579 PR tree-optimization/60276
26580 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26581 (STMT_VINFO_MIN_NEG_DIST): New macro.
26582 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26583 STMT_VINFO_MIN_NEG_DIST.
26584 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26585 made for negative dependence distances still hold.
26586
26587 2014-02-21 Richard Biener <rguenther@suse.de>
26588
26589 PR middle-end/60291
26590 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26591 DECL_INITIAL for globals not in the current function context.
26592
26593 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26594
26595 PR tree-optimization/56490
26596 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26597 * tree-ssa-uninit.c: Include params.h.
26598 (compute_control_dep_chain): Add num_calls argument, return false
26599 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26600 num_calls to recursive call.
26601 (find_predicates): Change dep_chain into normal array,
26602 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26603 variable and adjust compute_control_dep_chain caller.
26604 (find_def_preds): Likewise.
26605
26606 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
26607
26608 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26609 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26610
26611 2014-02-21 Nick Clifton <nickc@redhat.com>
26612
26613 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26614 (pushhi1): Likewise.
26615 (popqi1): Add mode to pre_dec.
26616 (pophi1): Likewise.
26617
26618 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26619
26620 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26621 mode for mask of V8SFmode permutation.
26622
26623 2014-02-20 Richard Henderson <rth@redhat.com>
26624
26625 PR c++/60272
26626 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26627 a new pseudo for OLDVAL.
26628
26629 2014-02-20 Jakub Jelinek <jakub@redhat.com>
26630
26631 PR target/57896
26632 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26633 gen_reg_rtx if d->testing_p.
26634 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26635 if d->testing_p and we will certainly return true.
26636 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
26637 if d->testing_p.
26638
26639 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
26640
26641 * emit-rtl.c (gen_reg_rtx): Assert that
26642 crtl->emit.regno_pointer_align_length is non-zero.
26643
26644 2014-02-20 Richard Henderson <rth@redhat.com>
26645
26646 PR c++/60272
26647 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26648 on failure the store back into EXPECT.
26649
26650 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
26651 Sandra Loosemore <sandra@codesourcery.com>
26652
26653 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26654 * config/nios2/nios2.c (nios2_function_profiler): Add
26655 -fPIC (flag_pic == 2) support.
26656 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26657 (nios2_large_offset_p): New function.
26658 (nios2_unspec_reloc_p): Move up position, update to use
26659 nios2_large_offset_p.
26660 (nios2_unspec_address): Remove function.
26661 (nios2_unspec_offset): New function.
26662 (nios2_large_got_address): New function.
26663 (nios2_got_address): Add large offset support.
26664 (nios2_legitimize_tls_address): Update usage of removed and new
26665 functions.
26666 (nios2_symbol_binds_local_p): New function.
26667 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26668 (nios2_legitimize_address): Update to use nios2_large_offset_p.
26669 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26670 (nios2_print_operand): Merge H/L processing, add hiadj/lo
26671 processing for (const (unspec ...)).
26672 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26673
26674 2014-02-20 Richard Biener <rguenther@suse.de>
26675
26676 * tree-cfg.c (replace_uses_by): Mark altered BBs before
26677 doing the substitution.
26678 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26679
26680 2014-02-20 Martin Jambor <mjambor@suse.cz>
26681
26682 PR ipa/55260
26683 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26684 info when checking whether lattices are bottom.
26685
26686 2014-02-20 Richard Biener <rguenther@suse.de>
26687
26688 PR middle-end/60221
26689 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26690 regions at -O0.
26691
26692 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
26693
26694 PR ipa/58555
26695 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26696 parameter specifying the scaling.
26697 (inline_call): Update.
26698 (want_inline_recursively): Guard division by zero.
26699 (recursive_inlining): Update.
26700 * ipa-inline.h (clone_inlined_nodes): Update.
26701
26702 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26703
26704 PR target/60204
26705 * config/i386/i386.c (classify_argument): Pass structures of size
26706 64 bytes or less in register.
26707
26708 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26709 Kirill Yukhin <kirill.yukhin@intel.com>
26710
26711 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26712 (_mm_rcp28_round_ss): Ditto.
26713 (_mm_rsqrt28_round_sd): Ditto.
26714 (_mm_rsqrt28_round_ss): Ditto.
26715 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26716 (_mm_rcp14_round_ss): Ditto.
26717 (_mm_rsqrt14_round_sd): Ditto.
26718 (_mm_rsqrt14_round_ss): Ditto.
26719 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26720 the first input operand, get rid of match_dup.
26721 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26722 attribute to sse.
26723 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26724 Ditto.
26725 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26726 operand as the first input operand, set type attribute.
26727 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26728 Set type attribute.
26729 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26730 operand as the first input operand, set type attribute.
26731
26732 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26733
26734 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26735 bit of zero.
26736
26737 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
26738
26739 PR target/60207
26740 * config/i386/i386.c (construct_container): Remove TFmode check
26741 for X86_64_INTEGER_CLASS.
26742
26743 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
26744
26745 PR target/59794
26746 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26747 only when -Wpsabi is enabled.
26748
26749 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
26750
26751 PR target/59799
26752 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26753 passing arrays in registers are the same as for structs, so remove the
26754 special case for them.
26755
26756 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
26757
26758 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26759 destination type, extract only the valid bits if the source type is not
26760 integral and has a different mode.
26761
26762 2014-02-19 Richard Biener <rguenther@suse.de>
26763
26764 PR ipa/60243
26765 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26766 for all calls.
26767
26768 2014-02-19 Richard Biener <rguenther@suse.de>
26769
26770 PR ipa/60243
26771 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26772 (ipa_modify_call_arguments): Emit an argument load explicitely and
26773 preserve virtual SSA form there and for the replacement call.
26774 Do not update SSA form nor free dominance info.
26775
26776 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26777
26778 * ipa.c (function_and_variable_visibility): Also clear WEAK
26779 flag when disolving COMDAT_GROUP.
26780
26781 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26782
26783 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26784 * ipa-prop.c (ipa_set_jf_known_type): Return early when
26785 not devirtualizing.
26786 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26787 do more sanity checks.
26788 (detect_type_change): Return true when giving up early.
26789 (compute_complex_assign_jump_func): Fix type parameter of
26790 ipa_set_ancestor_jf.
26791 (compute_complex_ancestor_jump_func): Likewise.
26792 (update_jump_functions_after_inlining): Fix updating of
26793 ancestor function.
26794 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26795
26796 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26797
26798 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26799 inline clones when edge disappears.
26800
26801 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26802
26803 PR target/60203
26804 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26805 Split 64-bit moves into 2 patterns. Do not allow the use of
26806 direct move for TDmode in little endian, since the decimal value
26807 has little endian bytes within a word, but the 64-bit pieces are
26808 ordered in a big endian fashion, and normal subreg's of TDmode are
26809 not allowed.
26810 (mov<mode>_64bit_dm): Likewise.
26811 (movtd_64bit_nodm): Likewise.
26812
26813 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26814
26815 PR tree-optimization/60174
26816 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26817 statement of an SSA_NAME that occurs in an abnormal PHI node.
26818
26819 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26820
26821 PR sanitizer/60142
26822 * final.c (SEEN_BB): Remove.
26823 (SEEN_NOTE, SEEN_EMITTED): Renumber.
26824 (final_scan_insn): Don't force_source_line on second
26825 NOTE_INSN_BASIC_BLOCK.
26826
26827 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
26828
26829 PR target/60205
26830 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26831 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26832 (type_natural_mode): Warn ABI change when %zmm register is not
26833 available for AVX512F vector value passing.
26834
26835 2014-02-18 Kai Tietz <ktietz@redhat.com>
26836
26837 PR target/60193
26838 * config/i386/i386.c (ix86_expand_prologue): Use value in
26839 rax register as displacement when restoring %r10 or %rax.
26840 Fix wrong offset when restoring both registers.
26841
26842 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26843
26844 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26845 assertion with conditional return.
26846
26847 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26848 Uros Bizjak <ubizjak@gmail.com>
26849
26850 PR driver/60233
26851 * config/i386/driver-i386.c (host_detect_local_cpu): If
26852 YMM state is not saved by the OS, also clear has_f16c. Move
26853 CPUID 0x80000001 handling before YMM state saving checking.
26854
26855 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
26856
26857 PR rtl-optimization/58960
26858 * haifa-sched.c (alloc_global_sched_pressure_data): New,
26859 factored out from ...
26860 (sched_init): ... here.
26861 (free_global_sched_pressure_data): New, factored out from ...
26862 (sched_finish): ... here.
26863 * sched-int.h (free_global_sched_pressure_data): Declare.
26864 * sched-rgn.c (nr_regions_initial): New static global.
26865 (haifa_find_rgns): Initialize it.
26866 (schedule_region): Disable sched-pressure for the newly
26867 generated regions.
26868
26869 2014-02-17 Richard Biener <rguenther@suse.de>
26870
26871 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26872 release SSA defs of pattern stmts.
26873
26874 2014-02-17 Richard Biener <rguenther@suse.de>
26875
26876 * tree-inline.c (expand_call_inline): Release the virtual
26877 operand defined by the call we are about to inline.
26878
26879 2014-02-17 Richard Biener <rguenther@suse.de>
26880
26881 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26882
26883 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26884 Ilya Tocar <ilya.tocar@intel.com>
26885
26886 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26887 arguments order in builtin.
26888 (_mm512_permutexvar_epi64): Ditto.
26889 (_mm512_mask_permutexvar_epi64): Ditto
26890 (_mm512_maskz_permutexvar_epi32): Ditto
26891 (_mm512_permutexvar_epi32): Ditto
26892 (_mm512_mask_permutexvar_epi32): Ditto
26893
26894 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26895
26896 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26897 (p8_vmrgow): Likewise.
26898
26899 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26900
26901 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26902 endian targets.
26903
26904 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26905
26906 PR target/60203
26907 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
26908 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
26909 into 64-bit and 32-bit moves. On 64-bit moves, add support for
26910 using direct move instructions on ISA 2.07. Also adjust
26911 instruction length for 64-bit.
26912 (mov<mode>_64bit, TFmode/TDmode): Likewise.
26913 (mov<mode>_32bit, TFmode/TDmode): Likewise.
26914
26915 2014-02-15 Alan Modra <amodra@gmail.com>
26916
26917 PR target/58675
26918 PR target/57935
26919 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26920 find_replacement on parts of insn rtl that might be reloaded.
26921
26922 2014-02-15 Richard Biener <rguenther@suse.de>
26923
26924 PR tree-optimization/60183
26925 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
26926 (tree_ssa_phiprop): Calculate and free post-dominators.
26927
26928 2014-02-14 Jeff Law <law@redhat.com>
26929
26930 PR rtl-optimization/60131
26931 * ree.c (get_extended_src_reg): New function.
26932 (combine_reaching_defs): Use it rather than assuming location of REG.
26933 (find_and_remove_re): Verify first operand of extension is
26934 a REG before adding the insns to the copy list.
26935
26936 2014-02-14 Roland McGrath <mcgrathr@google.com>
26937
26938 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
26939 * configure: Regenerated.
26940 * config.in: Regenerated.
26941 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
26942 instead of ASM_SHORT.
26943
26944 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
26945 Richard Earnshaw <rearnsha@arm.com>
26946
26947 PR rtl-optimization/59535
26948 * lra-constraints.c (process_alt_operands): Encourage alternative
26949 when unassigned pseudo class is superset of the alternative class.
26950 (inherit_reload_reg): Don't inherit when optimizing for code size.
26951 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
26952 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
26953 modes not less than 4 for Thumb1.
26954
26955 2014-02-14 Kyle McMartin <kyle@redhat.com>
26956
26957 PR pch/60010
26958 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
26959
26960 2014-02-14 Richard Biener <rguenther@suse.de>
26961
26962 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
26963 (get_frame_arg): Drop the assert with langhook types_compatible_p.
26964 Do not strip INDIRECT_REFs.
26965
26966 2014-02-14 Richard Biener <rguenther@suse.de>
26967
26968 PR lto/60179
26969 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
26970 DECL_FUNCTION_SPECIFIC_TARGET.
26971 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
26972 * tree-streamer-out.c (pack_ts_target_option): Remove.
26973 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
26974 (write_ts_function_decl_tree_pointers): Do not stream
26975 DECL_FUNCTION_SPECIFIC_TARGET.
26976 * tree-streamer-in.c (unpack_ts_target_option): Remove.
26977 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
26978 (lto_input_ts_function_decl_tree_pointers): Do not stream
26979 DECL_FUNCTION_SPECIFIC_TARGET.
26980
26981 2014-02-14 Jakub Jelinek <jakub@redhat.com>
26982
26983 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
26984 (get_initial_def_for_induction, vectorizable_induction): Ignore
26985 debug stmts when looking for exit_phi.
26986 (vectorizable_live_operation): Fix up condition.
26987
26988 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26989
26990 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
26991 nreverse() because it changes the content of original tree list.
26992
26993 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26994
26995 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
26996 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
26997
26998 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26999
27000 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27001 GNU coding standards.
27002
27003 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27004
27005 PR debug/60152
27006 * dwarf2out.c (gen_subprogram_die): Don't call
27007 add_calling_convention_attribute if subr_die is old_die.
27008
27009 2014-02-13 Sharad Singhai <singhai@google.com>
27010
27011 * doc/optinfo.texi: Fix order of nodes.
27012
27013 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27014
27015 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27016 operands[2], not operands[3].
27017
27018 2014-02-13 Richard Biener <rguenther@suse.de>
27019
27020 PR bootstrap/59878
27021 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27022 mention the possibility of an in-tree build.
27023 (CLooG): Update recommended version to 0.18.1, mention the
27024 possibility of an in-tree build and clarify that the ISL
27025 bundled with CLooG does not work.
27026
27027 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27028
27029 PR target/43546
27030 * expr.c (compress_float_constant): If x is a hard register,
27031 extend into a pseudo and then move to x.
27032
27033 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27034
27035 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27036 caused by bad second argument to warning_at() with -mhotpatch and
27037 nested functions (e.g. with gfortran).
27038
27039 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27040
27041 * opts.c (option_name): Remove "enabled by default" rider.
27042
27043 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27044
27045 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27046
27047 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27048 Uros Bizjak <ubizjak@gmail.com>
27049
27050 PR target/60151
27051 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27052 * configure: Regenerated.
27053
27054 2014-02-12 Richard Biener <rguenther@suse.de>
27055
27056 * vec.c (vec_prefix::calculate_allocation): Move as
27057 inline variant to vec.h.
27058 (vec_prefix::calculate_allocation_1): New out-of-line version.
27059 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27060 (vec_prefix::m_has_auto_buf): Rename to ...
27061 (vec_prefix::m_using_auto_storage): ... this.
27062 (vec_prefix::calculate_allocation): Inline the easy cases
27063 and dispatch to calculate_allocation_1 which doesn't need the
27064 prefix address.
27065 (va_heap::reserve): Use gcc_checking_assert.
27066 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27067 m_using_auto_storage.
27068 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27069 member and adjust.
27070 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27071 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27072 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27073
27074 2014-02-12 Richard Biener <rguenther@suse.de>
27075
27076 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27077 when we found a dependence.
27078
27079 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27080
27081 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27082 common code...
27083 (maybe_fold_stmt): ... into this new function.
27084 * omp-low.c (lower_omp): Update comment.
27085
27086 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27087 last use.
27088
27089 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27090 dereference.
27091
27092 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27093
27094 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27095 identifiers in comments.
27096 (cortexa53_extra_costs): Likewise.
27097 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27098 (cortexa7_extra_costs): Likewise.
27099 (cortexa12_extra_costs): Likewise.
27100 (cortexa15_extra_costs): Likewise.
27101 (v7m_extra_costs): Likewise.
27102
27103 2014-02-12 Richard Biener <rguenther@suse.de>
27104
27105 PR middle-end/60092
27106 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27107 of posix_memalign being successful.
27108 (lower_stmt): Restrict lowering of posix_memalign to when
27109 -ftree-bit-ccp is enabled.
27110
27111 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27112
27113 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27114 arg_loc.
27115 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27116
27117 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27118
27119 PR rtl-optimization/60116
27120 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27121 other_insn once the combination has been validated.
27122
27123 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27124
27125 PR lto/59468
27126 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27127 and wrapper.
27128 * ipa-devirt.c: Include demangle.h
27129 (odr_violation_reported): New static variable.
27130 (add_type_duplicate): Update odr_violations.
27131 (maybe_record_node): Add completep parameter; update it.
27132 (record_target_from_binfo): Add COMPLETEP parameter;
27133 update it as needed.
27134 (possible_polymorphic_call_targets_1): Likewise.
27135 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27136 rename FINAL to COMPLETE.
27137 (record_targets_from_bases): Sanity check we found the binfo;
27138 fix COMPLETEP updating.
27139 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27140 parameter, fix computing of COMPLETEP.
27141 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27142 at LTO time do demangling.
27143 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27144 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27145 parameter.
27146 (gimple_get_virt_method_for_binfo): Likewise.
27147 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27148 gimple_get_virt_method_for_vtable): Update prototypes.
27149
27150 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27151
27152 PR target/49008
27153 * genautomata.c (add_presence_absence): Fix typo with
27154 {final_}presence_list.
27155
27156 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27157
27158 PR target/60137
27159 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27160 for VSX/Altivec vectors that land in GPR registers.
27161
27162 2014-02-11 Richard Henderson <rth@redhat.com>
27163 Jakub Jelinek <jakub@redhat.com>
27164
27165 PR debug/59776
27166 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27167 around drhs if type conversion to lacc->type is not useless.
27168
27169 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27170
27171 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27172 tuning struct.
27173 (cortex-a57.cortex-a53): Likewise.
27174 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27175
27176 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27177
27178 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27179 arm_restrict_it.
27180
27181 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27182
27183 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27184 add_options_for_arm_vfp3.
27185
27186 2014-02-11 Jeff Law <law@redhat.com>
27187
27188 PR middle-end/54041
27189 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27190 object with an undesirable mode.
27191
27192 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27193
27194 PR libgomp/60107
27195 * config/i386/sol2-9.h: New file.
27196 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27197 *-*-solaris2.9*): Use it.
27198
27199 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27200
27201 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27202 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27203
27204 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27205
27206 * config/microblaze/microblaze.c: Extend mcpu version format
27207
27208 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27209
27210 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27211
27212 2014-02-10 Richard Henderson <rth@redhat.com>
27213
27214 PR target/59927
27215 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27216 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27217 ms-abi vs -mno-accumulate-outgoing-args.
27218 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27219 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27220 respect to ms-abi.
27221
27222 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27223
27224 PR middle-end/60080
27225 * cfgexpand.c (expand_asm_operands): Attach source location to
27226 ASM_INPUT rtx objects.
27227 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27228
27229 2014-02-10 Nick Clifton <nickc@redhat.com>
27230
27231 * config/mn10300/mn10300.c (popcount): New function.
27232 (mn10300_expand_prologue): Include saved registers in stack usage
27233 count.
27234
27235 2014-02-10 Jeff Law <law@redhat.com>
27236
27237 PR middle-end/52306
27238 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27239 when changing the SET_DEST of a prior insn to avoid an input reload.
27240
27241 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27242
27243 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27244 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27245 -mcall-openbsd, or -mcall-linux.
27246 (CC1_ENDIAN_BIG_SPEC): Remove.
27247 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27248 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27249 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27250 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27251 and %cc1_endian_default.
27252 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27253
27254 2014-02-10 Richard Biener <rguenther@suse.de>
27255
27256 PR tree-optimization/60115
27257 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27258 MEM_REF handling. Properly verify that the accesses are not
27259 out of the objects bound.
27260
27261 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27262
27263 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27264 coretex to cortex.
27265
27266 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27267
27268 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27269 proper constants and fix formatting.
27270 (possible_polymorphic_call_targets): Fix formatting.
27271
27272 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27273 Ilya Tocar <ilya.tocar@intel.com>
27274
27275 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27276 (_mm512_loadu_epi32): Renamed into...
27277 (_mm512_loadu_si512): This.
27278 (_mm512_storeu_epi32): Renamed into...
27279 (_mm512_storeu_si512): This.
27280 (_mm512_maskz_ceil_ps): Removed.
27281 (_mm512_maskz_ceil_pd): Ditto.
27282 (_mm512_maskz_floor_ps): Ditto.
27283 (_mm512_maskz_floor_pd): Ditto.
27284 (_mm512_floor_round_ps): Ditto.
27285 (_mm512_floor_round_pd): Ditto.
27286 (_mm512_ceil_round_ps): Ditto.
27287 (_mm512_ceil_round_pd): Ditto.
27288 (_mm512_mask_floor_round_ps): Ditto.
27289 (_mm512_mask_floor_round_pd): Ditto.
27290 (_mm512_mask_ceil_round_ps): Ditto.
27291 (_mm512_mask_ceil_round_pd): Ditto.
27292 (_mm512_maskz_floor_round_ps): Ditto.
27293 (_mm512_maskz_floor_round_pd): Ditto.
27294 (_mm512_maskz_ceil_round_ps): Ditto.
27295 (_mm512_maskz_ceil_round_pd): Ditto.
27296 (_mm512_expand_pd): Ditto.
27297 (_mm512_expand_ps): Ditto.
27298 * config/i386/i386.c (ix86_builtins): Remove
27299 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27300 (bdesc_args): Ditto.
27301 * config/i386/predicates.md (const1256_operand): New.
27302 (const_1_to_2_operand): Ditto.
27303 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27304 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27305 (*avx512pf_gatherpf<mode>sf): Ditto.
27306 (avx512pf_gatherpf<mode>df): Ditto.
27307 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27308 (*avx512pf_gatherpf<mode>df): Ditto.
27309 (avx512pf_scatterpf<mode>sf): Ditto.
27310 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27311 (*avx512pf_scatterpf<mode>sf): Ditto.
27312 (avx512pf_scatterpf<mode>df): Ditto.
27313 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27314 (*avx512pf_scatterpf<mode>df): Ditto.
27315 (avx512f_expand<mode>): Removed.
27316 (<shift_insn><mode>3<mask_name>): Change predicate type.
27317
27318 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27319
27320 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27321 not at the end of datarefs vector use ordered_remove to avoid
27322 reordering datarefs vector.
27323
27324 PR c/59984
27325 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27326 mark local addressable non-static vars as GOVD_PRIVATE
27327 instead of GOVD_LOCAL.
27328 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27329 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27330 than copying them.
27331
27332 PR middle-end/60092
27333 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27334 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27335 assume_aligned or alloc_align attributes.
27336 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27337 arguments. Handle also assume_aligned and alloc_align attributes.
27338 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27339 calls to functions with assume_aligned or alloc_align attributes.
27340 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27341
27342 2014-02-08 Terry Guo <terry.guo@arm.com>
27343
27344 * doc/invoke.texi: Document ARM -march=armv7e-m.
27345
27346 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27347
27348 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27349 flag on __cilkrts_rethrow builtin.
27350
27351 PR ipa/60026
27352 * ipa-cp.c (determine_versionability): Fail at -O0
27353 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27354 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27355
27356 Revert:
27357 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27358
27359 PR ipa/60026
27360 * tree-inline.c (copy_forbidden): Fail for
27361 __attribute__((optimize (0))) functions.
27362
27363 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27364
27365 * varpool.c: Include pointer-set.h.
27366 (varpool_remove_unreferenced_decls): Variables in other partitions
27367 will not be output; be however careful to not lose information
27368 about partitioning.
27369
27370 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27371
27372 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27373 lookup in the vtable constructor.
27374
27375 2014-02-07 Jeff Law <law@redhat.com>
27376
27377 PR target/40977
27378 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27379 define_insn_and_split.
27380
27381 * ipa-inline.c (inline_small_functions): Fix typos.
27382
27383 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27384
27385 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27386 (s390_can_use_return_insn): Declare.
27387 * config/s390/s390.h (EPILOGUE_USES): Define.
27388 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27389 instructions.
27390 (s390_chunkify_start): Handle return JUMP_LABELs.
27391 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27392 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27393 (s390_can_use_return_insn): New functions.
27394 (s390_fix_long_loop_prediction): Handle conditional returns.
27395 (TARGET_SET_UP_BY_PROLOGUE): Define.
27396 * config/s390/s390.md (ANY_RETURN): New code iterator.
27397 (*creturn, *csimple_return, return, simple_return): New patterns.
27398
27399 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27400
27401 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27402 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27403 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27404 REG_CFA_RESTORE list when deciding not to restore a register.
27405
27406 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27407
27408 * config/s390/s390.c: Include tree-pass.h and context.h.
27409 (s390_early_mach): New function, split out from...
27410 (s390_emit_prologue): ...here.
27411 (pass_data_s390_early_mach): New pass structure.
27412 (pass_s390_early_mach): New class.
27413 (s390_option_override): Create and register early_mach pass.
27414 Move to end of file.
27415
27416 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27417
27418 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27419 to match for the exit block.
27420
27421 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27422
27423 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27424 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27425 Reject misaligned operands.
27426
27427 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27428
27429 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27430
27431 2014-02-07 Richard Biener <rguenther@suse.de>
27432
27433 PR middle-end/60092
27434 * gimple-low.c (lower_builtin_posix_memalign): New function.
27435 (lower_stmt): Call it to lower posix_memalign in a way
27436 to make alignment info accessible.
27437
27438 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27439
27440 PR c++/60082
27441 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27442 __builtin_setjmp_receiver.
27443
27444 2014-02-07 Richard Biener <rguenther@suse.de>
27445
27446 PR middle-end/60092
27447 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27448 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27449 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27450 Handle BUILT_IN_POSIX_MEMALIGN.
27451 (find_func_clobbers): Likewise.
27452 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27453 (call_may_clobber_ref_p_1): Likewise.
27454
27455 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27456
27457 PR ipa/59918
27458 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27459 sanity check.
27460
27461 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27462
27463 PR ipa/59469
27464 * lto-cgraph.c (lto_output_node): Use
27465 symtab_get_symbol_partitioning_class.
27466 (lto_output_varpool_node): likewise.
27467 (symtab_get_symbol_partitioning_class): Move here from
27468 lto/lto-partition.c
27469 * cgraph.h (symbol_partitioning_class): Likewise.
27470 (symtab_get_symbol_partitioning_class): Declare.
27471
27472 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27473
27474 * ggc.h (ggc_internal_cleared_alloc): New macro.
27475 * vec.h (vec_safe_copy): Handle memory stats.
27476 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27477 * target-globals.c (save_target_globals): Likewise.
27478
27479 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27480
27481 PR target/60077
27482 * expr.c (emit_move_resolve_push): Export; be bit more selective
27483 on when to clear alias set.
27484 * expr.h (emit_move_resolve_push): Declare.
27485 * function.h (struct function): Add tail_call_marked.
27486 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27487 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27488 * config/i386/i386.md (TImode move expander): De not call
27489 ix86_expand_push.
27490 (FP push expanders): Preserve memory attributes.
27491 * config/i386/sse.md (push<mode>1): Remove.
27492 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27493 (ix86_expand_push): Remove.
27494 * config/i386/mmx.md (push<mode>1): Remove.
27495
27496 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27497
27498 PR rtl-optimization/60030
27499 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27500 lopart with paradoxical subreg before shifting it up by hprec.
27501
27502 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27503
27504 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27505 Remove extra newline at end of file.
27506 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27507 (arm_issue_rate): Handle cortexa57.
27508 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27509 (cortex-a57.cortex-a53): Likewise.
27510
27511 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27512
27513 PR target/59575
27514 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27515 don't record in REG_FRAME_RELATED_EXPR registers not set in that
27516 bitmask.
27517 (arm_expand_prologue): Adjust all callers.
27518 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27519 info, registers also at the lowest numbered registers side. Use
27520 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27521 XEXP.
27522
27523 PR debug/59992
27524 * var-tracking.c (adjust_mems): Before adding a SET to
27525 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27526
27527 2014-02-06 Alan Modra <amodra@gmail.com>
27528
27529 PR target/60032
27530 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27531 change SDmode to DDmode when lra_in_progress.
27532
27533 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27534
27535 PR middle-end/59150
27536 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27537 free_data_ref on the dr first, and before goto again also set dr
27538 to the next dr. For simd_lane_access, free old datarefs[i] before
27539 overwriting it. For get_vectype_for_scalar_type failure, don't
27540 free_data_ref if simd_lane_access.
27541
27542 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27543
27544 PR target/60062
27545 * tree.h (opts_for_fn): New inline function.
27546 (opt_for_fn): Define.
27547 * config/i386/i386.c (ix86_function_regparm): Use
27548 opt_for_fn (decl, optimize) instead of optimize.
27549
27550 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
27551
27552 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27553 for SYMBOL_REF in large memory model.
27554
27555 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27556
27557 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27558 and crypto support.
27559 (cortex-a57): Likewise.
27560 (cortex-a57.cortex-a53): Likewise.
27561
27562 2014-02-06 Yury Gribov <y.gribov@samsung.com>
27563 Kugan Vivekanandarajah <kuganv@linaro.org>
27564
27565 * config/arm/arm.c (arm_vector_alignment_reachable): Check
27566 unaligned_access.
27567 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27568
27569 2014-02-06 Richard Biener <rguenther@suse.de>
27570
27571 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27572 set_loop_copy and initialize_original_copy_tables.
27573
27574 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
27575
27576 * config/aarch64/aarch64-simd.md
27577 (aarch64_ashr_simddi): Change QI to SI.
27578
27579 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27580 Jakub Jelinek <jakub@redhat.com>
27581
27582 PR middle-end/60013
27583 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27584 of the dataflow.
27585
27586 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27587
27588 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27589 CODE_FOR_altivec_vpku[hw]um to
27590 CODE_FOR_altivec_vpku[hw]um_direct.
27591 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27592 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27593 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27594 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27595
27596 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27597
27598 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27599 generation for -maltivec=be.
27600 (altivec_vsumsws): Simplify redundant test.
27601
27602 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27603
27604 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27605 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27606 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27607 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27608 gen_altivec_vpkuwum.
27609 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27610 BYTES_BIG_ENDIAN.
27611 (altivec_vpks<VI_char>ss): Likewise.
27612 (altivec_vpks<VI_char>us): Likewise.
27613 (altivec_vpku<VI_char>us): Likewise.
27614 (altivec_vpku<VI_char>um): Likewise.
27615 (altivec_vpku<VI_char>um_direct): New (copy of
27616 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27617 internal use).
27618 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27619 target is little endian and -maltivec=be is not specified.
27620 (*altivec_vupkhs<VU_char>_direct): New (copy of
27621 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27622 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27623 target is little endian and -maltivec=be is not specified.
27624 (*altivec_vupkls<VU_char>_direct): New (copy of
27625 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27626 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27627 little endian and -maltivec=be is not specified.
27628 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27629 little endian and -maltivec=be is not specified.
27630
27631 2014-02-05 Richard Henderson <rth@redhat.com>
27632
27633 PR debug/52727
27634 * combine-stack-adj.c: Revert r206943.
27635 * sched-int.h (struct deps_desc): Add last_args_size.
27636 * sched-deps.c (init_deps): Initialize it.
27637 (sched_analyze_insn): Add OUTPUT dependencies between insns that
27638 contain REG_ARGS_SIZE notes.
27639
27640 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27641
27642 * lto-cgraph.c (asm_nodes_output): Make global.
27643 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27644 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27645 (driver_handle_option): Handle OPT_fwpa.
27646
27647 2014-02-05 Jakub Jelinek <jakub@redhat.com>
27648
27649 PR ipa/59947
27650 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27651 a comment typo and formatting issue. If odr_hash hasn't been
27652 created, return vNULL and set *completep to false.
27653
27654 PR middle-end/57499
27655 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27656 bb with no successors.
27657
27658 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
27659
27660 PR target/59718
27661 * doc/invoke.texi (-march): Clarify documentation for ARM.
27662 (-mtune): Likewise.
27663 (-mcpu): Likewise.
27664
27665 2014-02-05 Richard Biener <rguenther@suse.de>
27666
27667 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27668 when not vectorizing because of too many alias checks.
27669 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27670 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27671
27672 2014-02-05 Nick Clifton <nickc@redhat.com>
27673
27674 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27675 accept extended registers in any mode when compiling for the MN10300.
27676
27677 2014-02-05 Yury Gribov <y.gribov@samsung.com>
27678
27679 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27680 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27681 sanitization attributes.
27682 (can_inline_edge_p): Likewise.
27683 (sanitize_attrs_match_for_inline_p): New function.
27684
27685 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27686
27687 * ipa-prop.c (detect_type_change): Shor circuit testing of
27688 type changes on THIS pointer.
27689
27690 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
27691
27692 PR target/59777
27693 * config/pa/pa.c (legitimize_tls_address): Return original address
27694 if not passed a SYMBOL_REF rtx.
27695 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27696 addresses.
27697 (pa_emit_move_sequence): Simplify TLS source operands.
27698 (pa_legitimate_constant_p): Reject all TLS constants.
27699 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27700 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27701
27702 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27703
27704 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27705 groups when we know they are controlled by LTO.
27706 * varasm.c (default_binds_local_p_1): If object is in other partition,
27707 it will be resolved locally.
27708
27709 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27710
27711 * config/host-linux.c (linux_gt_pch_use_address): Don't
27712 use SSIZE_MAX because it is not always defined.
27713
27714 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
27715
27716 PR bootstrap/59913
27717 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27718 threshold for pseudo splitting.
27719 (update_ebb_live_info): Process call argument hard registers and
27720 hard registers from insn definition too.
27721 (max_small_class_regs_num): New constant.
27722 (inherit_in_ebb): Update live hard regs through EBBs. Update
27723 reloads_num only for small register classes. Don't split for
27724 outputs of jumps.
27725
27726 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
27727
27728 PR ipa/60058
27729 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27730 is non-null.
27731
27732 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27733
27734 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27735 visibility is safe.
27736
27737 2014-02-04 Marek Polacek <polacek@redhat.com>
27738
27739 * gdbinit.in (pel): Define.
27740
27741 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27742
27743 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27744 behavior.
27745
27746 2014-02-04 Richard Biener <rguenther@suse.de>
27747
27748 PR lto/59723
27749 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27750 in function context local.
27751 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27752 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27753 similar to LTO_imported_decl_ref.
27754
27755 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27756
27757 PR tree-optimization/60002
27758 * cgraphclones.c (build_function_decl_skip_args): Clear
27759 DECL_LANG_SPECIFIC.
27760
27761 PR tree-optimization/60023
27762 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27763 false to gsi_replace.
27764 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27765 has been in some EH region and vec_stmt could throw, add
27766 vec_stmt into the same EH region.
27767 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27768 has no lhs, ignore it.
27769 * internal-fn.c (expand_MASK_LOAD): Likewise.
27770
27771 PR ipa/60026
27772 * tree-inline.c (copy_forbidden): Fail for
27773 __attribute__((optimize (0))) functions.
27774
27775 PR other/58712
27776 * omp-low.c (simd_clone_struct_copy): If from->inbranch
27777 is set, copy one less argument.
27778 (expand_simd_clones): Don't subtract clone_info->inbranch
27779 from simd_clone_struct_alloc argument.
27780
27781 PR rtl-optimization/57915
27782 * recog.c (simplify_while_replacing): If all unary/binary/relational
27783 operation arguments are constant, attempt to simplify those.
27784
27785 PR middle-end/59261
27786 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27787 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27788
27789 2014-02-04 Richard Biener <rguenther@suse.de>
27790
27791 PR tree-optimization/60012
27792 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27793 TBAA disambiguation to all DDRs.
27794
27795 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27796
27797 PR target/59788
27798 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27799 (LINK_SPEC): Use it for -shared, -shared-libgcc.
27800
27801 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27802
27803 PR ipa/59882
27804 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27805
27806 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27807
27808 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27809 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27810
27811 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27812
27813 PR ipa/59831
27814 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27815 to figure out targets of polymorphic calls with known decl.
27816 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27817 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27818 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27819 (get_polymorphic_call_info): ... here.
27820 (get_polymorphic_call_info_from_invariant): New function.
27821
27822 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27823
27824 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27825 lookup via vtable pointer; check for type consistency
27826 and turn inconsitent facts into UNREACHABLE.
27827 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27828 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27829 type inconsistent querries; return UNREACHABLE instead.
27830
27831 2014-02-03 Richard Henderson <rth@twiddle.net>
27832
27833 PR tree-opt/59924
27834 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27835 already processed this node.
27836 (normalize_one_pred_1): Pass along mark_set.
27837 (normalize_one_pred): Create and destroy a pointer_set_t.
27838 (normalize_one_pred_chain): Likewise.
27839
27840 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
27841
27842 PR gcov-profile/58602
27843 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27844
27845 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27846
27847 PR ipa/59831
27848 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
27849 -fno-devirtualize; try to devirtualize by the knowledge of
27850 virtual table pointer given by aggregate propagation.
27851 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27852 (ipa_print_node_jump_functions): Dump also offset that
27853 is relevant for polymorphic calls.
27854 (determine_known_aggregate_parts): Add arg_type parameter; use it
27855 instead of determining the type from pointer type.
27856 (ipa_compute_jump_functions_for_edge): Update call of
27857 determine_known_aggregate_parts.
27858 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
27859 (gimple_get_virt_method_for_binfo): ... here; simplify using
27860 vtable_pointer_value_to_vtable.
27861 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
27862 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
27863 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
27864 (vtable_pointer_value_to_vtable): Break out from ...; handle also
27865 POINTER_PLUS_EXPR.
27866 (vtable_pointer_value_to_binfo): ... here.
27867 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27868
27869 2014-02-03 Teresa Johnson <tejohnson@google.com>
27870
27871 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27872 redef of outer loop index variable.
27873
27874 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27875
27876 PR c++/53017
27877 PR c++/59211
27878 * doc/extend.texi (Function Attributes): Typo.
27879
27880 2014-02-03 Cong Hou <congh@google.com>
27881
27882 PR tree-optimization/60000
27883 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27884 if the vectorized statement is a store. A store statement can only
27885 appear at the end of pattern statements.
27886
27887 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27888
27889 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27890 (ix86_option_override_internal): Default long double to 64-bit for
27891 32-bit Bionic and to 128-bit for 64-bit Bionic.
27892
27893 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27894 TARGET_LONG_DOUBLE_128 is true.
27895 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27896
27897 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27898 (mlong-double-64): Negate -mlong-double-128.
27899 (mlong-double-128): New option.
27900
27901 * config/i386/i386-c.c (ix86_target_macros): Define
27902 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27903
27904 * doc/invoke.texi: Document -mlong-double-128.
27905
27906 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27907
27908 PR rtl-optimization/60024
27909 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
27910
27911 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
27912
27913 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
27914
27915 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27916
27917 PR rtl-optimization/57662
27918 * sel-sched.c (code_motion_path_driver): Do not mark already not
27919 existing blocks in the visiting bitmap.
27920
27921 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27922
27923 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
27924 on the insn being emitted.
27925
27926 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
27927 Will Deacon <will.deacon@arm.com>
27928
27929 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
27930
27931 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27932
27933 * config/arm/arm-tables.opt: Regenerate.
27934
27935 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27936
27937 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
27938 for vector types other than V16QImode.
27939 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
27940 define_expand, and call altivec_expand_vec_perm_le when producing
27941 code with little endian element order.
27942 (*altivec_vperm_<mode>_internal): New insn having previous
27943 behavior of altivec_vperm_<mode>.
27944 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
27945 altivec_expand_vec_perm_le when producing code with little endian
27946 element order.
27947 (*altivec_vperm_<mode>_uns_internal): New insn having previous
27948 behavior of altivec_vperm_<mode>_uns.
27949
27950 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27951
27952 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
27953 (altivec_vsumsws): Add handling for -maltivec=be with a little
27954 endian target.
27955 (altivec_vsumsws_direct): New.
27956 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
27957 gen_altivec_vsumsws.
27958
27959 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27960
27961 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
27962 vtable_pointer_value_to_binfo): New functions.
27963 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
27964 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
27965
27966 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
27967
27968 * config/nios2/nios2.md (load_got_register): Initialize GOT
27969 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
27970 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
27971
27972 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27973
27974 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
27975 preserverd by passthrough, do not propagate the type.
27976
27977 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27978
27979 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
27980 (mips_atomic_assign_expand_fenv): New function.
27981 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27982
27983 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27984
27985 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
27986 (__builtin_mips_set_fcsr): Likewise.
27987 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
27988 MIPS_USI_FTYPE_VOID.
27989 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
27990 (mips16_expand_set_fcsr): Likewise.
27991 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
27992 (mips16_set_fcsr_stub): Likewise.
27993 (mips16_get_fcsr_one_only_stub): New class.
27994 (mips16_set_fcsr_one_only_stub): Likewise.
27995 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
27996 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
27997 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
27998 (hard_float): New availability predicate.
27999 (mips_builtins): Add get_fcsr and set_fcsr.
28000 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28001 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28002 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28003 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28004 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28005 patterns.
28006
28007 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28008
28009 * config/mips/mips.c (mips_one_only_stub): New class.
28010 (mips_need_mips16_rdhwr_p): Replace with...
28011 (mips16_rdhwr_stub): ...this new variable.
28012 (mips16_stub_call_address): New function.
28013 (mips16_rdhwr_one_only_stub): New class.
28014 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28015 (mips_output_mips16_rdhwr): Delete.
28016 (mips_finish_stub): New function.
28017 (mips_code_end): Use it to handle rdhwr stubs.
28018
28019 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28020
28021 PR target/60017
28022 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28023 when calculating size of integer atomic types.
28024
28025 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28026
28027 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28028
28029 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28030
28031 PR tree-optimization/60003
28032 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28033 * profile.c (branch_prob): Use gimple_call_builtin_p
28034 to check for BUILT_IN_SETJMP_RECEIVER.
28035 * tree-inline.c (copy_bb): Call notice_special_calls.
28036
28037 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28038
28039 PR bootstrap/59985
28040 * lra-constraints.c (process_alt_operands): Update reload_sum only
28041 on the first pass.
28042
28043 2014-01-31 Richard Henderson <rth@redhat.com>
28044
28045 PR middle-end/60004
28046 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28047 until after else_eh is processed.
28048
28049 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28050
28051 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28052 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28053 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28054 in smmintrin.h, remove them.
28055 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28056 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28057 * config/i386/i386.md (ROUND_SAE): Fix value.
28058 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28059 (const48_operand): New.
28060 * config/i386/subst.md (round), (round_expand): Use
28061 const_4_or_8_to_11_operand.
28062 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28063
28064 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28065
28066 * config/i386/constraints.md (Yk): Swap meaning with k.
28067 * config/i386/i386.md (movhi_internal): Change Yk to k.
28068 (movqi_internal): Ditto.
28069 (*k<logic><mode>): Ditto.
28070 (*andhi_1): Ditto.
28071 (*andqi_1): Ditto.
28072 (kandn<mode>): Ditto.
28073 (*<code>hi_1): Ditto.
28074 (*<code>qi_1): Ditto.
28075 (kxnor<mode>): Ditto.
28076 (kortestzhi): Ditto.
28077 (kortestchi): Ditto.
28078 (kunpckhi): Ditto.
28079 (*one_cmplhi2_1): Ditto.
28080 (*one_cmplqi2_1): Ditto.
28081 * config/i386/sse.md (): Change k to Yk.
28082 (avx512f_load<mode>_mask): Ditto.
28083 (avx512f_blendm<mode>): Ditto.
28084 (avx512f_store<mode>_mask): Ditto.
28085 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28086 (avx512f_storedqu<mode>_mask): Ditto.
28087 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28088 Ditto.
28089 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28090 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28091 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28092 (avx512f_maskcmp<mode>3): Ditto.
28093 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28094 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28095 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28096 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28097 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28098 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28099 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28100 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28101 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28102 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28103 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28104 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28105 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28106 (vec_extract_lo_<mode>_maskm): Ditto.
28107 (vec_extract_hi_<mode>_maskm): Ditto.
28108 (avx512f_vternlog<mode>_mask): Ditto.
28109 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28110 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28111 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28112 (avx512f_<code>v8div16qi2_mask): Ditto.
28113 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28114 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28115 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28116 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28117 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28118 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28119 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28120 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28121 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28122 (avx512cd_maskb_vec_dupv8di): Ditto.
28123 (avx512cd_maskw_vec_dupv16si): Ditto.
28124 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28125 (avx512f_vpermi2var<mode>3_mask): Ditto.
28126 (avx512f_vpermi2var<mode>3_mask): Ditto.
28127 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28128 (*avx512f_gathersi<mode>): Ditto.
28129 (*avx512f_gathersi<mode>_2): Ditto.
28130 (*avx512f_gatherdi<mode>): Ditto.
28131 (*avx512f_gatherdi<mode>_2): Ditto.
28132 (*avx512f_scattersi<mode>): Ditto.
28133 (*avx512f_scatterdi<mode>): Ditto.
28134 (avx512f_compress<mode>_mask): Ditto.
28135 (avx512f_compressstore<mode>_mask): Ditto.
28136 (avx512f_expand<mode>_mask): Ditto.
28137 * config/i386/subst.md (mask): Change k to Yk.
28138 (mask_scalar_merge): Ditto.
28139 (sd): Ditto.
28140
28141 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28142
28143 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28144
28145 2014-01-31 Richard Biener <rguenther@suse.de>
28146
28147 PR middle-end/59990
28148 * builtins.c (fold_builtin_memory_op): Make sure to not
28149 use a floating-point mode or a boolean or enumeral type for
28150 the copy operation.
28151
28152 2014-01-30 DJ Delorie <dj@redhat.com>
28153
28154 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28155 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28156 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28157 whenever main() has an epilogue.
28158
28159 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28160
28161 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28162 unused variable "field".
28163 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28164 (vsx_mergeh_<mode>): Likewise.
28165 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28166 (altivec_vmrghh): Likewise.
28167 (altivec_vmrghw): Likewise.
28168 (altivec_vmrglb): Likewise.
28169 (altivec_vmrglh): Likewise.
28170 (altivec_vmrglw): Likewise.
28171 (altivec_vspltb): Add missing uses.
28172 (altivec_vsplth): Likewise.
28173 (altivec_vspltw): Likewise.
28174 (altivec_vspltsf): Likewise.
28175
28176 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28177
28178 PR target/59923
28179 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28180 frame related instructions.
28181
28182 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28183
28184 PR rtl-optimization/59959
28185 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28186 any reload of register whose subreg is invalid.
28187
28188 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28189
28190 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28191 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28192 Add missing return type - void.
28193
28194 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28195
28196 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28197 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28198 remove element index adjustment for endian (now handled in vsx.md
28199 and altivec.md).
28200 (altivec_expand_vec_perm_const): Use
28201 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28202 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28203 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28204 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28205 define_expand and a new define_insn *altivec_vspltb_internal;
28206 adjust for -maltivec=be on a little endian target.
28207 (altivec_vspltb_direct): New.
28208 (altivec_vsplth): Divide into a define_expand and a new
28209 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28210 little endian target.
28211 (altivec_vsplth_direct): New.
28212 (altivec_vspltw): Divide into a define_expand and a new
28213 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28214 little endian target.
28215 (altivec_vspltw_direct): New.
28216 (altivec_vspltsf): Divide into a define_expand and a new
28217 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28218 a little endian target.
28219
28220 2014-01-30 Richard Biener <rguenther@suse.de>
28221
28222 PR tree-optimization/59993
28223 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28224 can propagate form the earlier stmt and avoid the transform
28225 when the intermediate result is needed.
28226
28227 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28228
28229 * README.Portability: Fix typo.
28230
28231 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28232
28233 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28234 comparison_operator with ordered_comparison_operator.
28235
28236 2014-01-30 Nick Clifton <nickc@redhat.com>
28237
28238 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28239 Rename to mn10300_store_multiple_regs.
28240 * config/mn10300/mn10300.c: Likewise.
28241 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28242 store_multiple_regs.
28243 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28244 Call mn10300_store_multiple_regs.
28245
28246 2014-01-30 Nick Clifton <nickc@redhat.com>
28247 DJ Delorie <dj@redhat.com>
28248
28249 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28250 %fp 2 to keep registers after it properly word-aligned.
28251 (rl78_alloc_physical_registers_umul): Handle the case where both
28252 input operands are the same.
28253
28254 2014-01-30 Richard Biener <rguenther@suse.de>
28255
28256 PR tree-optimization/59903
28257 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28258 check properly.
28259
28260 2014-01-30 Jason Merrill <jason@redhat.com>
28261
28262 PR c++/59633
28263 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28264
28265 PR c++/59645
28266 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28267
28268 2014-01-30 Richard Biener <rguenther@suse.de>
28269
28270 PR tree-optimization/59951
28271 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28272
28273 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28274
28275 PR target/59784
28276 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28277 SFmode to DFmode case.
28278
28279 2014-01-29 DJ Delorie <dj@redhat.com>
28280
28281 * config/msp430/msp430.opt (-minrt): New.
28282 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28283 if -minrt given.
28284 (ENDFILE_SPEC): Likewise.
28285
28286 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28287
28288 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28289 (estimate_function_body_sizes): Use it.
28290
28291 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28292
28293 PR c++/58561
28294 * dwarf2out.c (is_cxx_auto): New.
28295 (is_base_type): Use it.
28296 (gen_type_die_with_usage): Likewise.
28297
28298 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28299
28300 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28301 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28302 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28303 -maltivec=be with LE targets.
28304 (vsx_mergeh_<mode>): Likewise.
28305 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28306 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28307 (altivec_vmrghb): Replace with define_expand and new
28308 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28309 (altivec_vmrghb_direct): New define_insn.
28310 (altivec_vmrghh): Replace with define_expand and new
28311 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28312 (altivec_vmrghh_direct): New define_insn.
28313 (altivec_vmrghw): Replace with define_expand and new
28314 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28315 (altivec_vmrghw_direct): New define_insn.
28316 (*altivec_vmrghsf): Adjust for endianness.
28317 (altivec_vmrglb): Replace with define_expand and new
28318 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28319 (altivec_vmrglb_direct): New define_insn.
28320 (altivec_vmrglh): Replace with define_expand and new
28321 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28322 (altivec_vmrglh_direct): New define_insn.
28323 (altivec_vmrglw): Replace with define_expand and new
28324 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28325 (altivec_vmrglw_direct): New define_insn.
28326 (*altivec_vmrglsf): Adjust for endianness.
28327 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28328 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28329 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28330 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28331 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28332 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28333 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28334 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28335
28336 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28337
28338 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28339 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28340 whitespace.
28341
28342 2014-01-29 Richard Biener <rguenther@suse.de>
28343
28344 PR tree-optimization/58742
28345 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28346 associate_pointerplus_align.
28347 (associate_pointerplus_diff): New function.
28348 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28349 and associate_pointerplus_diff.
28350
28351 2014-01-29 Richard Biener <rguenther@suse.de>
28352
28353 * lto-streamer.h (LTO_major_version): Bump to 3.
28354 (LTO_minor_version): Reset to 0.
28355
28356 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28357
28358 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28359 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28360 (arm_file_start): Generate correct asm header for armv7ve.
28361 * config/arm/bpabi.h: Add multilib support for armv7ve.
28362 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28363 and cortex-a15 to armv7ve.
28364 * config/arm/t-aprofile: Add multilib support for armv7ve.
28365 * doc/invoke.texi: Document -march=armv7ve.
28366
28367 2014-01-29 Richard Biener <rguenther@suse.de>
28368
28369 PR tree-optimization/58742
28370 * tree-ssa-forwprop.c (associate_plusminus): Return true
28371 if we changed sth, defer EH cleanup to ...
28372 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28373 (simplify_mult): New function.
28374
28375 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28376
28377 PR middle-end/59917
28378 PR tree-optimization/59920
28379 * tree.c (build_common_builtin_nodes): Remove
28380 __builtin_setjmp_dispatcher initialization.
28381 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28382 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28383 instead of gsi_after_labels + manually skipping debug stmts.
28384 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28385 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28386 * tree-inline.c (copy_edges_for_bb): Remove
28387 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28388 argument. Ignore computed_goto_p stmts. Don't call
28389 make_abnormal_goto_edges. If a call might need abnormal edges
28390 for non-local gotos, see if it already has an edge to
28391 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28392 with true argument, don't do anything then, otherwise add
28393 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28394 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28395 caller.
28396 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28397 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28398 (lower_stmt): Don't set data->calls_builtin_setjmp.
28399 (lower_builtin_setjmp): Adjust comment.
28400 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28401 * tree-cfg.c (found_computed_goto): Remove.
28402 (factor_computed_gotos): Remove.
28403 (make_goto_expr_edges): Return bool, true for computed gotos.
28404 Don't call make_abnormal_goto_edges.
28405 (build_gimple_cfg): Don't set found_computed_goto, don't call
28406 factor_computed_gotos.
28407 (computed_goto_p): No longer static.
28408 (make_blocks): Don't set found_computed_goto.
28409 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28410 (make_edges): If make_goto_expr_edges returns true, push bb
28411 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28412 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28413 vector. Record mapping between bbs and OpenMP regions if there
28414 are any, adjust make_gimple_omp_edges caller. Call
28415 handle_abnormal_edges.
28416 (make_abnormal_goto_edges): Remove.
28417 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28418 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28419 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28420 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28421 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28422 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28423 filling *region also set *region_idx to (*region)->entry->index.
28424
28425 PR other/58712
28426 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28427 For REGs set ORIGINAL_REGNO.
28428
28429 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28430
28431 * doc/md.texi: Mention that a target shouldn't implement
28432 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28433 than hi/lo pair.
28434
28435 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28436
28437 PR tree-optimization/59594
28438 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28439 a copy of the datarefs vector rather than the vector itself.
28440
28441 2014-01-28 Jason Merrill <jason@redhat.com>
28442
28443 PR c++/53756
28444 * dwarf2out.c (auto_die): New static.
28445 (gen_type_die_with_usage): Handle C++1y 'auto'.
28446 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28447 on definition.
28448
28449 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28450
28451 PR target/59672
28452 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28453 (SPEC_X32): Likewise.
28454 (SPEC_64): Likewise.
28455 * config/i386/i386.c (ix86_option_override_internal): Turn off
28456 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28457 for TARGET_16BIT.
28458 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28459 * config/i386/i386.h (TARGET_16BIT): New macro.
28460 (TARGET_16BIT_P): Likewise.
28461 * config/i386/i386.opt: Add m16.
28462 * doc/invoke.texi: Document -m16.
28463
28464 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28465
28466 PR preprocessor/59935
28467 * input.c (location_get_source_line): Bail out on when line number
28468 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28469
28470 2014-01-28 Richard Biener <rguenther@suse.de>
28471
28472 PR tree-optimization/58742
28473 * tree-ssa-forwprop.c (associate_plusminus): Handle
28474 pointer subtraction of the form (T)(P + A) - (T)P.
28475
28476 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28477
28478 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28479 at const_int_cost.
28480
28481 2014-01-28 Richard Biener <rguenther@suse.de>
28482
28483 Revert
28484 2014-01-28 Richard Biener <rguenther@suse.de>
28485
28486 PR rtl-optimization/45364
28487 PR rtl-optimization/59890
28488 * var-tracking.c (local_get_addr_clear_given_value): Handle
28489 already cleared slot.
28490 (val_reset): Handle not allocated local_get_addr_cache.
28491 (vt_find_locations): Use post-order on the inverted CFG.
28492
28493 2014-01-28 Richard Biener <rguenther@suse.de>
28494
28495 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28496
28497 2014-01-28 Richard Biener <rguenther@suse.de>
28498
28499 PR rtl-optimization/45364
28500 PR rtl-optimization/59890
28501 * var-tracking.c (local_get_addr_clear_given_value): Handle
28502 already cleared slot.
28503 (val_reset): Handle not allocated local_get_addr_cache.
28504 (vt_find_locations): Use post-order on the inverted CFG.
28505
28506 2014-01-28 Alan Modra <amodra@gmail.com>
28507
28508 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28509 * configure.ac <recursive call for build != host>: Define
28510 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28511 and LD_FOR_BUILD too.
28512 * configure: Regenerate.
28513
28514 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
28515
28516 * config/i386/i386.c (get_builtin_code_for_version): Separate
28517 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28518 Broadwell from Haswell.
28519
28520 2014-01-27 Steve Ellcey <sellcey@mips.com>
28521
28522 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28523 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28524 * config/mips/mips.c (mips_option_override): Change setting
28525 of TARGET_DSP.
28526 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28527 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28528 Change from Mask to Var.
28529
28530 2014-01-27 Jeff Law <law@redhat.com>
28531
28532 * ipa-inline.c (inline_small_functions): Fix typo.
28533
28534 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
28535
28536 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28537 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28538 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28539 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28540 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28541 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28542 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28543 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28544 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28545 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28546 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28547 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28548 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28549 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28550 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28551 (_mm512_storeu_epi64): Ditto.
28552 (_mm512_cmpge_epi32_mask): Ditto.
28553 (_mm512_cmpge_epu32_mask): Ditto.
28554 (_mm512_cmpge_epi64_mask): Ditto.
28555 (_mm512_cmpge_epu64_mask): Ditto.
28556 (_mm512_cmple_epi32_mask): Ditto.
28557 (_mm512_cmple_epu32_mask): Ditto.
28558 (_mm512_cmple_epi64_mask): Ditto.
28559 (_mm512_cmple_epu64_mask): Ditto.
28560 (_mm512_cmplt_epi32_mask): Ditto.
28561 (_mm512_cmplt_epu32_mask): Ditto.
28562 (_mm512_cmplt_epi64_mask): Ditto.
28563 (_mm512_cmplt_epu64_mask): Ditto.
28564 (_mm512_cmpneq_epi32_mask): Ditto.
28565 (_mm512_cmpneq_epu32_mask): Ditto.
28566 (_mm512_cmpneq_epi64_mask): Ditto.
28567 (_mm512_cmpneq_epu64_mask): Ditto.
28568 (_mm512_expand_pd): Ditto.
28569 (_mm512_expand_ps): Ditto.
28570 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28571 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28572 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28573 * config/i386/i386.c (ix86_builtins): Add
28574 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28575 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28576 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28577 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28578 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28579 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28580 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28581 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28582 IX86_BUILTIN_PMOVUSQW512_MEM.
28583 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28584 __builtin_ia32_pmovsqd512mem_mask,
28585 __builtin_ia32_pmovqd512mem_mask,
28586 __builtin_ia32_pmovusqw512mem_mask,
28587 __builtin_ia32_pmovsqw512mem_mask,
28588 __builtin_ia32_pmovqw512mem_mask,
28589 __builtin_ia32_pmovusdw512mem_mask,
28590 __builtin_ia32_pmovsdw512mem_mask,
28591 __builtin_ia32_pmovdw512mem_mask,
28592 __builtin_ia32_pmovqb512mem_mask,
28593 __builtin_ia32_pmovusqb512mem_mask,
28594 __builtin_ia32_pmovsqb512mem_mask,
28595 __builtin_ia32_pmovusdb512mem_mask,
28596 __builtin_ia32_pmovsdb512mem_mask,
28597 __builtin_ia32_pmovdb512mem_mask.
28598 (bdesc_args): Add __builtin_ia32_expanddf512,
28599 __builtin_ia32_expandsf512.
28600 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28601 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28602 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28603 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28604 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28605 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28606 (avx512f_<code>v8div16qi2_mask_store): This.
28607 (avx512f_expand<mode>): New.
28608
28609 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
28610
28611 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28612 New.
28613 (_mm512_mask_prefetch_i64gather_pd): Ditto.
28614 (_mm512_prefetch_i32scatter_pd): Ditto.
28615 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28616 (_mm512_prefetch_i64scatter_pd): Ditto.
28617 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28618 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28619 (_mm512_mask_prefetch_i64gather_ps): Ditto.
28620 (_mm512_prefetch_i32scatter_ps): Ditto.
28621 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28622 (_mm512_prefetch_i64scatter_ps): Ditto.
28623 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28624 * config/i386/i386-builtin-types.def: Define
28625 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28626 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28627 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28628 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28629 IX86_BUILTIN_SCATTERPFQPD.
28630 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28631 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28632 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28633 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28634 __builtin_ia32_scatterpfqps.
28635 (ix86_expand_builtin): Expand new built-ins.
28636 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28637 fix memory access data type.
28638 (*avx512pf_gatherpf<mode>_mask): Ditto.
28639 (*avx512pf_gatherpf<mode>): Ditto.
28640 (avx512pf_scatterpf<mode>): Ditto.
28641 (*avx512pf_scatterpf<mode>_mask): Ditto.
28642 (*avx512pf_scatterpf<mode>): Ditto.
28643 (GATHER_SCATTER_SF_MEM_MODE): New.
28644 (avx512pf_gatherpf<mode>df): Ditto.
28645 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28646 (*avx512pf_scatterpf<mode>df): Ditto.
28647
28648 2014-01-27 Jakub Jelinek <jakub@redhat.com>
28649
28650 PR bootstrap/59934
28651 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28652 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28653 reached.
28654
28655 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28656
28657 * common/config/arm/arm-common.c
28658 (arm_rewrite_mcpu): Handle multiple names.
28659 * config/arm/arm.h
28660 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28661
28662 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28663
28664 * gimple-builder.h (create_gimple_tmp): Delete.
28665
28666 2014-01-27 Christian Bruel <christian.bruel@st.com>
28667
28668 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28669 words comparisons.
28670
28671 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
28672
28673 * config/pa/pa.md (call): Generate indirect long calls to non-local
28674 functions when outputing 32-bit code.
28675 (call_value): Likewise except for special call to buggy powf function.
28676
28677 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28678 portable runtime and PIC indirect calls.
28679 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28680 and PIC call sequences. Use ldo instead of blr to set return register
28681 in PIC call sequence.
28682
28683 2014-01-25 Walter Lee <walt@tilera.com>
28684
28685 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28686 avoid clobbering a live register.
28687
28688 2014-01-25 Walter Lee <walt@tilera.com>
28689
28690 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28691 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28692 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28693 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28694
28695 2014-01-25 Walter Lee <walt@tilera.com>
28696
28697 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28698 arguments on even registers.
28699 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28700 STACK_BOUNDARY.
28701 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28702 (BIGGEST_ALIGNMENT): Ditto.
28703 (BIGGEST_FIELD_ALIGNMENT): Ditto.
28704
28705 2014-01-25 Walter Lee <walt@tilera.com>
28706
28707 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28708 insns before bundling.
28709 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28710
28711 2014-01-25 Walter Lee <walt@tilera.com>
28712
28713 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28714 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28715 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28716
28717 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28718
28719 * config/mips/constraints.md (kl): Delete.
28720 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28721 define expands, using...
28722 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28723 instructions for MIPS16.
28724 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28725 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28726
28727 2014-01-25 Walter Lee <walt@tilera.com>
28728
28729 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28730 (clzdi2): Ditto.
28731 (ffsdi2): Ditto.
28732
28733 2014-01-25 Walter Lee <walt@tilera.com>
28734
28735 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28736 (TARGET_EXPAND_TO_RTL_HOOK): Define.
28737
28738 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28739
28740 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28741 Handle XOR.
28742
28743 2014-01-25 Jakub Jelinek <jakub@redhat.com>
28744
28745 * print-rtl.c (in_call_function_usage): New var.
28746 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28747 EXPR_LIST mode as mode and not as reg note name.
28748
28749 PR middle-end/59561
28750 * cfgloopmanip.c (copy_loop_info): If
28751 loop->warned_aggressive_loop_optimizations, make sure
28752 the flag is set in target loop too.
28753
28754 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
28755
28756 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28757 flag_cilkplus.
28758 * builtins.def: Likewise.
28759 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28760 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28761 * ira.c (ira_setup_eliminable_regset): Likewise.
28762 * omp-low.c (gate_expand_omp): Likewise.
28763 (execute_lower_omp): Likewise.
28764 (diagnose_sb_0): Likewise.
28765 (gate_diagnose_omp_blocks): Likewise.
28766 (simd_clone_clauses_extract): Likewise.
28767 (gate): Likewise.
28768
28769 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28770
28771 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28772 correction for little endian...
28773 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28774 here.
28775
28776 2014-01-24 Jeff Law <law@redhat.com>
28777
28778 PR tree-optimization/59919
28779 * tree-vrp.c (find_assert_locations_1): Do not register asserts
28780 for non-returning calls.
28781
28782 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
28783
28784 * common/config/aarch64/aarch64-common.c
28785 (aarch64_rewrite_mcpu): Handle multiple names.
28786 * config/aarch64/aarch64.h
28787 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28788
28789 2014-01-24 Dodji Seketeli <dodji@redhat.com>
28790
28791 * input.c (add_file_to_cache_tab): Handle the case where fopen
28792 returns NULL.
28793
28794 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
28795
28796 PR target/59929
28797 * config/i386/i386.md (pushsf splitter): Get stack adjustment
28798 from push operand if code of push isn't PRE_DEC.
28799
28800 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28801
28802 PR target/59909
28803 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28804 -mquad-memory-atomic. Update -mquad-memory documentation to say
28805 it is only used for non-atomic loads/stores.
28806
28807 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28808 -mquad-memory or -mquad-memory-atomic switches.
28809
28810 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28811 -mquad-memory-atomic to ISA 2.07 support.
28812
28813 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28814 to separate support of normal quad word memory operations (ldq, stq)
28815 from the atomic quad word memory operations.
28816
28817 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28818 support to separate non-atomic quad word operations from atomic
28819 quad word operations. Disable non-atomic quad word operations in
28820 little endian mode so that we don't have to swap words after the
28821 load and before the store.
28822 (quad_load_store_p): Add comment about atomic quad word support.
28823 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28824 options printed with -mdebug=reg.
28825
28826 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28827 -mquad-memory-atomic as the test for whether we have quad word
28828 atomic instructions.
28829 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28830 or -mp8-vector are used, allow byte/half-word atomic operations.
28831
28832 * config/rs6000/sync.md (load_lockedti): Insure that the address
28833 is a proper indexed or indirect address for the lqarx instruction.
28834 On little endian systems, swap the hi/lo registers after the lqarx
28835 instruction.
28836 (load_lockedpti): Use indexed_or_indirect_operand predicate to
28837 insure the address is valid for the lqarx instruction.
28838 (store_conditionalti): Insure that the address is a proper indexed
28839 or indirect address for the stqcrx. instruction. On little endian
28840 systems, swap the hi/lo registers before doing the stqcrx.
28841 instruction.
28842 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28843 insure the address is valid for the stqcrx. instruction.
28844
28845 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28846 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
28847 type of quad memory support is available.
28848
28849 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
28850
28851 PR regression/59915
28852 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
28853 there is a danger of looping.
28854
28855 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
28856
28857 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28858 force flag_ira_loop_pressure if set via command line.
28859
28860 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28861
28862 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
28863 (ashr_simd): New builtin handling DI mode.
28864 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
28865 (aarch64_sshr_simddi): New match pattern.
28866 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
28867 (vshrd_n_s64): Likewise.
28868 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28869
28870 2014-01-23 Nick Clifton <nickc@redhat.com>
28871
28872 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28873 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28874 favour of mcu specific scripts.
28875 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28876 430x multilibs.
28877
28878 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28879 Alex Velenko <Alex.Velenko@arm.com>
28880
28881 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28882 (vaddv_s16): Likewise.
28883 (vaddv_s32): Likewise.
28884 (vaddv_u8): Likewise.
28885 (vaddv_u16): Likewise.
28886 (vaddv_u32): Likewise.
28887 (vaddvq_s8): Likewise.
28888 (vaddvq_s16): Likewise.
28889 (vaddvq_s32): Likewise.
28890 (vaddvq_s64): Likewise.
28891 (vaddvq_u8): Likewise.
28892 (vaddvq_u16): Likewise.
28893 (vaddvq_u32): Likewise.
28894 (vaddvq_u64): Likewise.
28895 (vaddv_f32): Likewise.
28896 (vaddvq_f32): Likewise.
28897 (vaddvq_f64): Likewise.
28898 (vmaxv_f32): Likewise.
28899 (vmaxv_s8): Likewise.
28900 (vmaxv_s16): Likewise.
28901 (vmaxv_s32): Likewise.
28902 (vmaxv_u8): Likewise.
28903 (vmaxv_u16): Likewise.
28904 (vmaxv_u32): Likewise.
28905 (vmaxvq_f32): Likewise.
28906 (vmaxvq_f64): Likewise.
28907 (vmaxvq_s8): Likewise.
28908 (vmaxvq_s16): Likewise.
28909 (vmaxvq_s32): Likewise.
28910 (vmaxvq_u8): Likewise.
28911 (vmaxvq_u16): Likewise.
28912 (vmaxvq_u32): Likewise.
28913 (vmaxnmv_f32): Likewise.
28914 (vmaxnmvq_f32): Likewise.
28915 (vmaxnmvq_f64): Likewise.
28916 (vminv_f32): Likewise.
28917 (vminv_s8): Likewise.
28918 (vminv_s16): Likewise.
28919 (vminv_s32): Likewise.
28920 (vminv_u8): Likewise.
28921 (vminv_u16): Likewise.
28922 (vminv_u32): Likewise.
28923 (vminvq_f32): Likewise.
28924 (vminvq_f64): Likewise.
28925 (vminvq_s8): Likewise.
28926 (vminvq_s16): Likewise.
28927 (vminvq_s32): Likewise.
28928 (vminvq_u8): Likewise.
28929 (vminvq_u16): Likewise.
28930 (vminvq_u32): Likewise.
28931 (vminnmv_f32): Likewise.
28932 (vminnmvq_f32): Likewise.
28933 (vminnmvq_f64): Likewise.
28934
28935 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28936
28937 * config/aarch64/aarch64-simd.md
28938 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
28939 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
28940 (*aarch64_mul3_elt<mode>): Likewise.
28941 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
28942 (*aarch64_mul3_elt_to_64v2df): Likewise.
28943 (*aarch64_mla_elt<mode>): Likewise.
28944 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
28945 (*aarch64_mls_elt<mode>): Likewise.
28946 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
28947 (*aarch64_fma4_elt<mode>): Likewise.
28948 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
28949 (*aarch64_fma4_elt_to_64v2df): Likewise.
28950 (*aarch64_fnma4_elt<mode>): Likewise.
28951 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
28952 (*aarch64_fnma4_elt_to_64v2df): Likewise.
28953 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
28954 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
28955 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28956 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28957 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
28958 (aarch64_sqdmull_lane<mode>_internal): Likewise.
28959 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
28960
28961 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
28962
28963 * config/aarch64/aarch64-simd.md
28964 (aarch64_be_checked_get_lane<mode>): New define_expand.
28965 * config/aarch64/aarch64-simd-builtins.def
28966 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
28967 New builtin definition.
28968 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
28969 Use new safe be builtin.
28970
28971 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28972
28973 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
28974 New define_insn.
28975 (aarch64_be_st1<mode>): Likewise.
28976 (aarch_ld1<VALL:mode>): Define_expand modified.
28977 (aarch_st1<VALL:mode>): Likewise.
28978 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
28979 (UNSPEC_ST1): Likewise.
28980
28981 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
28982
28983 * config/microblaze/microblaze.md: Add trap insn and attribute
28984
28985 2014-01-23 Dodji Seketeli <dodji@redhat.com>
28986
28987 PR preprocessor/58580
28988 * input.h (location_get_source_line): Take an additional line_size
28989 parameter.
28990 (void diagnostics_file_cache_fini): Declare new function.
28991 * input.c (struct fcache): New type.
28992 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
28993 New static constants.
28994 (diagnostic_file_cache_init, total_lines_num)
28995 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
28996 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
28997 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
28998 (get_next_line, read_next_line, goto_next_line, read_line_num):
28999 New static function definitions.
29000 (diagnostic_file_cache_fini): New function.
29001 (location_get_source_line): Take an additional output line_len
29002 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29003 read_line_num.
29004 * diagnostic.c (diagnostic_finish): Call
29005 diagnostic_file_cache_fini.
29006 (adjust_line): Take an additional input parameter for the length
29007 of the line, rather than calculating it with strlen.
29008 (diagnostic_show_locus): Adjust the use of
29009 location_get_source_line and adjust_line with respect to their new
29010 signature. While displaying a line now, do not stop at the first
29011 null byte. Rather, display the zero byte as a space and keep
29012 going until we reach the size of the line.
29013 * Makefile.in: Add vec.o to OBJS-libcommon
29014
29015 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29016 Ilya Tocar <ilya.tocar@intel.com>
29017
29018 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29019 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29020 (__builtin_ia32_kmov16): Ditto.
29021 * config/i386/i386.md (UNSPEC_KMOV): New.
29022 (kmovw): Ditto.
29023
29024 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29025
29026 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29027 (_mm512_storeu_si512): Ditto.
29028
29029 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29030
29031 PR target/52125
29032 * rtl.h (get_referenced_operands): Declare.
29033 * recog.c (get_referenced_operands): New function.
29034 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29035 operands have been referenced when recording LO_SUM references.
29036
29037 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29038
29039 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29040
29041 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29042
29043 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29044 Enable for generic and recent AMD targets.
29045
29046 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29047
29048 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29049 ARG_SIZE note when adjustment was eliminated.
29050
29051 2014-01-22 Jeff Law <law@redhat.com>
29052
29053 PR tree-optimization/59597
29054 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29055 in file. Accept new argument REGISTERING and use it to modify
29056 dump output appropriately.
29057 (register_jump_thread): Corresponding changes.
29058 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29059 thread paths involving joiner blocks. Add code to dump cancelled
29060 jump threading paths.
29061
29062 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29063
29064 PR rtl-optimization/59477
29065 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29066 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29067
29068 2014-01-22 Tom Tromey <tromey@redhat.com>
29069
29070 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29071 PARAMS.
29072 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29073
29074 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29075
29076 PR rtl-optimization/59896
29077 * lra-constraints.c (process_alt_operands): Check unused note for
29078 matched operands of insn with no output reloads.
29079
29080 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29081
29082 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29083 (mips_move_from_gpr_cost): Likewise.
29084
29085 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29086
29087 PR rtl-optimization/59858
29088 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29089 ira_class_hard_regs_num.
29090 (process_alt_operands): Increase reject for dying matched operand.
29091
29092 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29093
29094 PR target/59003
29095 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29096 smaller than size, perform several stores or loads and stores
29097 at dst + count - size to store or copy all of size bytes, rather
29098 than just last modesize bytes.
29099
29100 2014-01-20 DJ Delorie <dj@redhat.com>
29101
29102 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29103 that CLOBBERs are REGs before propogating their values.
29104
29105 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29106
29107 PR middle-end/59789
29108 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29109 (cgraph_inline_failed_type): New function.
29110 * cgraph.h (DEFCIFCODE): Add type.
29111 (cgraph_inline_failed_type_t): New enum.
29112 (cgraph_inline_failed_type): New prototype.
29113 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29114 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29115 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29116 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29117 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29118 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29119 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29120 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29121 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29122 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29123 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29124 OPTIMIZATION_MISMATCH.
29125 * tree-inline.c (expand_call_inline): Emit errors during
29126 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29127
29128 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29129
29130 PR target/59685
29131 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29132 mode attribute in insn output.
29133
29134 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29135
29136 * output.h (output_constant): Delete.
29137 * varasm.c (output_constant): Make private.
29138
29139 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29140
29141 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29142
29143 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29144
29145 PR middle-end/59860
29146 * tree.h (fold_builtin_strcat): New prototype.
29147 * builtins.c (fold_builtin_strcat): No longer static. Add len
29148 argument, if non-NULL, don't call c_strlen. Optimize
29149 directly into __builtin_memcpy instead of __builtin_strcpy.
29150 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29151 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29152
29153 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29154
29155 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29156 for SImode_address_operand operands, having only a REG argument.
29157
29158 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29159
29160 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29161 loader name using mbig-endian.
29162 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29163
29164 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29165
29166 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29167 (-mtune): Likewise.
29168 (-mcpu): Likewise.
29169
29170 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29171
29172 * config/aarch64/aarch64-protos.h
29173 (aarch64_cannot_change_mode_class_ptr): Declare.
29174 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29175 aarch64_cannot_change_mode_class_ptr): New.
29176 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29177 backend hook aarch64_cannot_change_mode_class.
29178
29179 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29180
29181 * common/config/aarch64/aarch64-common.c
29182 (aarch64_handle_option): Don't handle any option order logic here.
29183 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29184 selected_cpu, warn on architecture version mismatch.
29185 (aarch64_override_options): Fix parsing order for option strings.
29186
29187 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29188 Iain Sandoe <iain@codesourcery.com>
29189
29190 PR bootstrap/59496
29191 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29192 warning. Amend comment to reflect current functionality.
29193
29194 2014-01-20 Richard Biener <rguenther@suse.de>
29195
29196 PR middle-end/59860
29197 * builtins.c (fold_builtin_strcat): Remove case better handled
29198 by tree-ssa-strlen.c.
29199
29200 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29201
29202 * config/aarch64/aarch64.opt
29203 (mcpu, march, mtune): Make case-insensitive.
29204
29205 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29206
29207 PR target/59880
29208 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29209 if operands[1] is a REG or ZERO_EXTEND of a REG.
29210
29211 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29212
29213 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29214
29215 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29216
29217 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29218 long non-pic millicode calls.
29219
29220 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29221
29222 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29223
29224 2014-01-19 Kito Cheng <kito@0xlab.org>
29225
29226 * builtins.c (expand_movstr): Check movstr expand done or fail.
29227
29228 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29229 H.J. Lu <hongjiu.lu@intel.com>
29230
29231 PR target/59379
29232 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29233 to DImode for zero-extended addresses.
29234
29235 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29236
29237 PR rtl-optimization/57763
29238 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29239 on the new indirect jump_insn and increment LABEL_NUSES (label).
29240
29241 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29242
29243 PR bootstrap/59580
29244 PR bootstrap/59583
29245 * config.gcc (x86_archs): New variable.
29246 (x86_64_archs): Likewise.
29247 (x86_cpus): Likewise.
29248 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29249 --with-arch/--with-cpu= options.
29250 Support --with-arch=/--with-cpu={nehalem,westmere,
29251 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29252
29253 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29254
29255 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29256 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29257
29258 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29259
29260 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29261
29262 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29263
29264 PR target/58944
29265 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29266 clear cpp_get_options (parse_in)->warn_unused_macros for
29267 ix86_target_macros_internal with cpp_define.
29268
29269 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29270
29271 * jump.c (delete_related_insns): Keep (use (insn))s.
29272 * reorg.c (redundant_insn): Check for barriers too.
29273
29274 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29275
29276 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29277
29278 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29279
29280 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29281 call to $$dyncall when TARGET_LONG_CALLS is true.
29282
29283 2014-01-17 Jeff Law <law@redhat.com>
29284
29285 * ree.c (combine_set_extension): Temporarily disable test for
29286 changing number of hard registers.
29287
29288 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29289
29290 PR middle-end/58125
29291 * ipa-inline-analysis.c (inline_free_summary):
29292 Do not free summary of aliases.
29293
29294 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29295
29296 PR middle-end/59706
29297 * gimplify.c (gimplify_expr): Use create_tmp_var
29298 instead of create_tmp_var_raw. If cond doesn't have
29299 integral type, don't add the IFN_ANNOTATE builtin at all.
29300
29301 2014-01-17 Martin Jambor <mjambor@suse.cz>
29302
29303 PR ipa/59736
29304 * ipa-cp.c (prev_edge_clone): New variable.
29305 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29306 Also resize prev_edge_clone vector.
29307 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29308 (ipcp_edge_removal_hook): New function.
29309 (ipcp_driver): Register ipcp_edge_removal_hook.
29310
29311 2014-01-17 Andrew Pinski <apinski@cavium.com>
29312 Steve Ellcey <sellcey@mips.com>
29313
29314 PR target/59462
29315 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29316 of operator mode.
29317
29318 2014-01-17 Jeff Law <law@redhat.com>
29319
29320 PR middle-end/57904
29321 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29322 so that pass_ccp runs first.
29323
29324 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29325
29326 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29327 (ix86_adjust_cost): Use !TARGET_XXX.
29328 (do_reorder_for_imul): Likewise.
29329 (swap_top_of_ready_list): Likewise.
29330 (ix86_sched_reorder): Likewise.
29331
29332 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29333
29334 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29335 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29336 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29337 (intel_memset): New. Duplicate slm_memset.
29338 (intel_cost): New. Duplicate slm_cost.
29339 (m_INTEL): New macro.
29340 (processor_target_table): Add "intel".
29341 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29342 with PROCESSOR_INTEL for "intel".
29343 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29344 PROCESSOR_SILVERMONT.
29345 (ix86_issue_rate): Likewise.
29346 (ix86_adjust_cost): Likewise.
29347 (ia32_multipass_dfa_lookahead): Likewise.
29348 (swap_top_of_ready_list): Likewise.
29349 (ix86_sched_reorder): Likewise.
29350 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29351 instead of TARGET_OPT_AGU.
29352 * config/i386/i386.h (TARGET_INTEL): New.
29353 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29354 (processor_type): Add PROCESSOR_INTEL.
29355 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29356 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29357
29358 2014-01-17 Marek Polacek <polacek@redhat.com>
29359
29360 PR c/58346
29361 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29362 size is zero.
29363
29364 2014-01-17 Richard Biener <rguenther@suse.de>
29365
29366 PR tree-optimization/46590
29367 * opts.c (default_options_table): Add entries for
29368 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29369 all enabled at -O1 but not for -Og.
29370 * common.opt (fbranch-count-reg): Remove Init(1).
29371 (fmove-loop-invariants): Likewise.
29372 (ftree-pta): Likewise.
29373
29374 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29375
29376 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29377 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29378 decls to at least the GCC 4.8 used alignments.
29379
29380 PR fortran/59440
29381 * tree-nested.c (convert_nonlocal_reference_stmt,
29382 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29383 of GIMPLE_BIND stmts, adjust associated decls.
29384
29385 2014-01-17 Richard Biener <rguenther@suse.de>
29386
29387 PR tree-optimization/46590
29388 * vec.h (vec<>::bseach): New member function implementing
29389 binary search according to C89 bsearch.
29390 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29391 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29392 bitmap pointer again. Make accesses_in_loop a flat array.
29393 (mem_ref_obstack): New global.
29394 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29395 (mark_ref_stored): Likewise.
29396 (ref_indep_loop_p_2): Likewise.
29397 (set_ref_stored_in_loop): New helper function.
29398 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29399 (memref_free): Adjust.
29400 (record_mem_ref_loc): Simplify.
29401 (gather_mem_refs_stmt): Adjust.
29402 (sort_locs_in_loop_postorder_cmp): New function.
29403 (analyze_memory_references): Sort accesses_in_loop after
29404 loop postorder number.
29405 (find_ref_loc_in_loop_cmp): New function.
29406 (for_all_locs_in_loop): Find relevant cluster of locs in
29407 accesses_in_loop and iterate without recursion.
29408 (execute_sm): Avoid uninit warning.
29409 (struct ref_always_accessed): Simplify.
29410 (ref_always_accessed::operator ()): Likewise.
29411 (ref_always_accessed_p): Likewise.
29412 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29413 loop postorder numbers here.
29414 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29415 numbers.
29416
29417 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29418
29419 PR c++/57945
29420 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29421 on decls for which assemble_alias has been called.
29422
29423 2014-01-17 Nick Clifton <nickc@redhat.com>
29424
29425 * config/msp430/msp430.opt: (mcpu): New option.
29426 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29427 (msp430_option_override): Parse target_cpu. If the MCU name
29428 matches a generic string, clear target_mcu.
29429 (msp430_attr): Allow numeric interrupt values up to 63.
29430 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29431 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29432 option.
29433 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29434 Add mcpu matches.
29435 * config/msp430/msp430.md (popm): Use %J rather than %I.
29436 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29437 (addhi_cy_i): Use immediate_operand for operand 2.
29438 * doc/invoke.texi: Document -mcpu option.
29439
29440 2014-01-17 Richard Biener <rguenther@suse.de>
29441
29442 PR rtl-optimization/38518
29443 * df.h (df_analyze_loop): Declare.
29444 * df-core.c: Include cfgloop.h.
29445 (df_analyze_1): Split out main part of df_analyze.
29446 (df_analyze): Adjust.
29447 (loop_inverted_post_order_compute): New function.
29448 (loop_post_order_compute): Likewise.
29449 (df_analyze_loop): New function avoiding whole-function
29450 postorder computes.
29451 * loop-invariant.c (find_defs): Use df_analyze_loop.
29452 (find_invariants): Adjust.
29453 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29454
29455 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29456
29457 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29458 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29459
29460 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29461
29462 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29463 traversal when removing references.
29464
29465 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29466
29467 PR ipa/59775
29468 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29469
29470 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29471
29472 PR middle-end/56791
29473 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29474 pushing a reload for an autoinc when we had previously reloaded an
29475 inner part of the address.
29476
29477 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29478
29479 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29480 field.
29481 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29482 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29483 when not giving up or versioning for alias only because of
29484 loop->safelen.
29485 (vect_analyze_data_ref_dependences): Set to true.
29486 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29487 is a GIMPLE_PHI.
29488 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29489 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29490 to the condition.
29491
29492 PR middle-end/58344
29493 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29494
29495 PR target/59839
29496 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29497 operand 0 predicate for gathers, use a new pseudo as subtarget.
29498
29499 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29500
29501 PR middle-end/59609
29502 * lra-constraints.c (process_alt_operands): Add printing debug info.
29503 Check absence of input/output reloads for matched operands too.
29504
29505 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29506
29507 PR rtl-optimization/59835
29508 * ira.c (ira_init_register_move_cost): Increase cost for
29509 impossible modes.
29510
29511 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29512
29513 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29514
29515 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
29516
29517 PR target/59780
29518 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29519 non-register objects. Use gen_(high/low)part more consistently.
29520 Fix assertions.
29521
29522 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29523
29524 PR target/59844
29525 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29526 endian support, remove tests for WORDS_BIG_ENDIAN.
29527 (p8_mfvsrd_3_<mode>): Likewise.
29528 (reload_gpr_from_vsx<mode>): Likewise.
29529 (reload_gpr_from_vsxsf): Likewise.
29530 (p8_mfvsrd_4_disf): Likewise.
29531
29532 2014-01-16 Richard Biener <rguenther@suse.de>
29533
29534 PR rtl-optimization/46590
29535 * lcm.c (compute_antinout_edge): Use postorder iteration.
29536 (compute_laterin): Use inverted postorder iteration.
29537
29538 2014-01-16 Nick Clifton <nickc@redhat.com>
29539
29540 PR middle-end/28865
29541 * varasm.c (output_constant): Return the number of bytes actually
29542 emitted.
29543 (output_constructor_array_range): Update the field size with the
29544 number of bytes emitted by output_constant.
29545 (output_constructor_regular_field): Likewise. Also do not
29546 complain if the total number of bytes emitted is now greater
29547 than the expected fieldpos.
29548 * output.h (output_constant): Update prototype and descriptive comment.
29549
29550 2014-01-16 Marek Polacek <polacek@redhat.com>
29551
29552 PR middle-end/59827
29553 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29554 it is error_mark_node.
29555
29556 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
29557
29558 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29559 VALID_AVX256_REG_OR_OI_MODE.
29560
29561 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
29562
29563 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29564 current procedure should be profiled.
29565
29566 2014-01-15 Andrew Pinski <apinski@cavium.com>
29567
29568 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29569 of moving from/to the STACK_REG register class.
29570
29571 2014-01-15 Richard Henderson <rth@redhat.com>
29572
29573 PR debug/54694
29574 * reginfo.c (global_regs_decl): Globalize.
29575 * rtl.h (global_regs_decl): Declare.
29576 * ira.c (do_reload): Diagnose frame_pointer_needed and it
29577 reserved via global_regs.
29578
29579 2014-01-15 Teresa Johnson <tejohnson@google.com>
29580
29581 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29582
29583 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
29584
29585 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29586 and vmulosh rather than call gen_vec_widen_smult_*.
29587 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29588 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29589 (vec_widen_smult_even_v16qi): Likewise.
29590 (vec_widen_umult_even_v8hi): Likewise.
29591 (vec_widen_smult_even_v8hi): Likewise.
29592 (vec_widen_umult_odd_v16qi): Likewise.
29593 (vec_widen_smult_odd_v16qi): Likewise.
29594 (vec_widen_umult_odd_v8hi): Likewise.
29595 (vec_widen_smult_odd_v8hi): Likewise.
29596 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29597 vmuloub rather than call gen_vec_widen_umult_*.
29598 (vec_widen_umult_lo_v16qi): Likewise.
29599 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29600 vmulosb rather than call gen_vec_widen_smult_*.
29601 (vec_widen_smult_lo_v16qi): Likewise.
29602 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29603 rather than call gen_vec_widen_umult_*.
29604 (vec_widen_umult_lo_v8hi): Likewise.
29605 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29606 rather than call gen_vec_widen_smult_*.
29607 (vec_widen_smult_lo_v8hi): Likewise.
29608
29609 2014-01-15 Jeff Law <law@redhat.com>
29610
29611 PR tree-optimization/59747
29612 * ree.c (find_and_remove_re): Properly handle case where a second
29613 eliminated extension requires widening a copy created for elimination
29614 of a prior extension.
29615 (combine_set_extension): Ensure that the number of hard regs needed
29616 for a destination register does not change when we widen it.
29617
29618 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29619
29620 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29621 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29622 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29623 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29624 (avr-*-rtems*): Likewise.
29625 (bfin*-rtems*): Likewise.
29626 (moxie-*-rtems*): Likewise.
29627 (h8300-*-rtems*): Likewise.
29628 (i[34567]86-*-rtems*): Likewise.
29629 (lm32-*-rtems*): Likewise.
29630 (m32r-*-rtems*): Likewise.
29631 (m68k-*-rtems*): Likewise.
29632 (microblaze*-*-rtems*): Likewise.
29633 (mips*-*-rtems*): Likewise.
29634 (powerpc-*-rtems*): Likewise.
29635 (sh-*-rtems*): Likewise.
29636 (sparc-*-rtems*): Likewise.
29637 (sparc64-*-rtems*): Likewise.
29638 (v850-*-rtems*): Likewise.
29639 (m32c-*-rtems*): Likewise.
29640
29641 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
29642
29643 PR rtl-optimization/59511
29644 * ira.c (ira_init_register_move_cost): Use memory costs for some
29645 cases of register move cost calculations.
29646 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29647 instead of BB frequency.
29648 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29649 * lra-assigns.c (find_hard_regno_for): Ditto.
29650
29651 2014-01-15 Richard Biener <rguenther@suse.de>
29652
29653 PR tree-optimization/59822
29654 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29655 (vectorizable_load): Use it to hoist defs of uses of invariant
29656 loads out of the loop.
29657
29658 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
29659 Kugan Vivekanandarajah <kuganv@linaro.org>
29660
29661 PR target/59695
29662 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29663 truncation.
29664
29665 2014-01-15 Richard Biener <rguenther@suse.de>
29666
29667 PR rtl-optimization/59802
29668 * lcm.c (compute_available): Use inverted postorder to seed
29669 the initial worklist.
29670
29671 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29672
29673 PR target/59803
29674 * config/s390/s390.c (s390_preferred_reload_class): Don't return
29675 ADDR_REGS for invalid symrefs in non-PIC code.
29676
29677 2014-01-15 Jakub Jelinek <jakub@redhat.com>
29678
29679 PR other/58712
29680 * builtins.c (determine_block_size): Initialize *probable_max_size
29681 even if len_rtx is CONST_INT.
29682
29683 2014-01-14 Andrew Pinski <apinski@cavium.com>
29684
29685 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29686 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29687 (cortexa53_tunings): Likewise.
29688 (aarch64_sched_issue_rate): New function.
29689 (TARGET_SCHED_ISSUE_RATE): Define.
29690
29691 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29692
29693 * ira-costs.c (find_costs_and_classes): Add missed
29694 ira_init_register_move_cost_if_necessary.
29695
29696 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29697
29698 PR target/59787
29699 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29700
29701 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
29702
29703 PR target/59794
29704 * config/i386/i386.c (type_natural_mode): Add a bool parameter
29705 to indicate if type is used for function return value. Warn ABI
29706 change if the vector mode isn't available for function return value.
29707 (ix86_function_arg_advance): Pass false to type_natural_mode.
29708 (ix86_function_arg): Likewise.
29709 (ix86_gimplify_va_arg): Likewise.
29710 (function_arg_32): Don't warn ABI change.
29711 (ix86_function_value): Pass true to type_natural_mode.
29712 (ix86_return_in_memory): Likewise.
29713 (ix86_struct_value_rtx): Removed.
29714 (TARGET_STRUCT_VALUE_RTX): Likewise.
29715
29716 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29717
29718 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29719 converting a conditional jump into a conditional return.
29720
29721 2014-01-14 Richard Biener <rguenther@suse.de>
29722
29723 PR tree-optimization/58921
29724 PR tree-optimization/59006
29725 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29726 hoisting invariant stmts.
29727 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29728 invariant loads on the preheader edge if possible.
29729
29730 2014-01-14 Joey Ye <joey.ye@arm.com>
29731
29732 * doc/plugin.texi (Building GCC plugins): Update to C++.
29733
29734 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
29735
29736 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29737 (_mm_rcp28_round_ss): Ditto.
29738 (_mm_rsqrt28_round_sd): Ditto.
29739 (_mm_rsqrt28_round_ss): Ditto.
29740 (_mm_rcp28_sd): Ditto.
29741 (_mm_rcp28_ss): Ditto.
29742 (_mm_rsqrt28_sd): Ditto.
29743 (_mm_rsqrt28_ss): Ditto.
29744 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29745 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29746 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29747 (IX86_BUILTIN_RCP28SD): Ditto.
29748 (IX86_BUILTIN_RCP28SS): Ditto.
29749 (IX86_BUILTIN_RSQRT28SD): Ditto.
29750 (IX86_BUILTIN_RSQRT28SS): Ditto.
29751 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29752 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29753 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29754 (ix86_expand_special_args_builtin): Expand new FTYPE.
29755 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29756 (srcp14<mode>): Make insn unary.
29757 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29758 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29759 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29760 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29761 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29762 Fix rounding: make it SAE only.
29763 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29764 Ditto.
29765 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29766 Ditto.
29767 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29768 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29769 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29770 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29771 (round_saeonly_mask_scalar_operand4): Ditto.
29772 (round_saeonly_mask_scalar_op3): Ditto.
29773 (round_saeonly_mask_scalar_op4): Ditto.
29774
29775 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29776
29777 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29778 Implement -maltivec=be for vec_insert and vec_extract.
29779
29780 2014-01-10 DJ Delorie <dj@redhat.com>
29781
29782 * config/msp430/msp430.md (call_internal): Don't allow memory
29783 references with SP as the base register.
29784 (call_value_internal): Likewise.
29785 * config/msp430/constraints.md (Yc): New. For memory references
29786 that don't use SP as a base register.
29787
29788 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29789 "an integer without a # prefix"
29790 * config/msp430/msp430.md (epilogue_helper): Use it.
29791
29792 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29793
29794 PR target/59617
29795 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29796 AVX512F gather builtins.
29797 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29798 on gather decls with INTEGER_TYPE masktype.
29799 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29800 directly into the builtin rather than hoisting it before loop.
29801
29802 PR tree-optimization/59387
29803 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29804 (scev_const_prop): If folded_casts and type has undefined overflow,
29805 use force_gimple_operand instead of force_gimple_operand_gsi and
29806 for each added stmt if it is assign with
29807 arith_code_with_undefined_signed_overflow, call
29808 rewrite_to_defined_overflow.
29809 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29810 gimple-fold.h instead.
29811 (arith_code_with_undefined_signed_overflow,
29812 rewrite_to_defined_overflow): Moved to ...
29813 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29814 rewrite_to_defined_overflow): ... here. No longer static.
29815 Include gimplify-me.h.
29816 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29817 rewrite_to_defined_overflow): New prototypes.
29818
29819 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29820
29821 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29822
29823 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
29824
29825 * builtins.c (get_object_alignment_2): Minor tweak.
29826 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29827
29828 2014-01-13 Christian Bruel <christian.bruel@st.com>
29829
29830 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29831 optimized non constant lengths.
29832
29833 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29834
29835 PR libgomp/59194
29836 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29837 load as __atomic_load_N if possible.
29838
29839 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29840
29841 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29842 target parameter.
29843 (rs6000_expand_builtin): Adjust call.
29844
29845 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29846
29847 PR target/58115
29848 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
29849 * config/rs6000/rs6000.c: Include target-globals.h.
29850 (rs6000_set_current_function): Instead of doing target_reinit
29851 unconditionally, use save_target_globals_default_opts and
29852 restore_target_globals.
29853
29854 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
29855 FPSCR.
29856 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
29857 (rs6000_expand_builtin): Handle mffs and mtfsf.
29858 (rs6000_init_builtins): Define mffs and mtfsf.
29859 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
29860 (rs6000_mffs): New pattern.
29861 (rs6000_mtfsf): New pattern.
29862
29863 2014-01-11 Bin Cheng <bin.cheng@arm.com>
29864
29865 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
29866 Start narrowing with START. Apply candidate-use pair
29867 and check overall cost in narrowing.
29868 (iv_ca_prune): Pass new argument.
29869
29870 2014-01-10 Jeff Law <law@redhat.com>
29871
29872 PR middle-end/59743
29873 * ree.c (combine_reaching_defs): Ensure the defining statement
29874 occurs before the extension when optimizing extensions with
29875 different source and destination hard registers.
29876
29877 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29878
29879 PR ipa/58585
29880 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29881 vtables into the type inheritance graph.
29882
29883 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29884
29885 PR rtl-optimization/59754
29886 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29887 modes in the REGNO != REGNO case.
29888
29889 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29890
29891 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29892
29893 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29894
29895 PR tree-optimization/59745
29896 * tree-predcom.c (tree_predictive_commoning_loop): Call
29897 free_affine_expand_cache if giving up because components is NULL.
29898
29899 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29900 GC in payload of target_globals struct instead of allocating them on
29901 the heap and the larger structs separately using GC.
29902 * target-globals.h (struct target_globals): Make regs, hard_regs,
29903 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29904 of GTY((skip)) and change type to void *.
29905 (reset_target_globals): Cast loads from those fields to corresponding
29906 types.
29907
29908 2014-01-10 Steve Ellcey <sellcey@mips.com>
29909
29910 PR plugins/59335
29911 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
29912 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
29913 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
29914
29915 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
29916
29917 PR target/59744
29918 * aarch64-modes.def (CC_Zmode): New flags mode.
29919 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
29920 represents an equality.
29921 (aarch64_get_condition_code): Handle CC_Zmode.
29922 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
29923
29924 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29925
29926 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
29927 extraction in good case.
29928
29929 2014-01-10 Richard Biener <rguenther@suse.de>
29930
29931 PR tree-optimization/59374
29932 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
29933 checking after SLP discovery. Mark stmts not participating
29934 in any SLP instance properly.
29935
29936 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29937
29938 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
29939 when handling a SET rtx.
29940
29941 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29942
29943 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
29944 (cortex-a57): Likewise.
29945 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
29946
29947 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29948
29949 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
29950 non-iwmmxt builtins.
29951
29952 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29953
29954 PR ipa/58252
29955 PR ipa/59226
29956 * ipa-devirt.c record_target_from_binfo): Take as argument
29957 stack of binfos and lookup matching one for virtual inheritance.
29958 (possible_polymorphic_call_targets_1): Update.
29959
29960 2014-01-10 Huacai Chen <chenhc@lemote.com>
29961
29962 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
29963 kernel strings for Loongson-2E/2F/3A.
29964
29965 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29966
29967 PR middle-end/59670
29968 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
29969 is_gimple_call before calling gimple_call_internal_p.
29970
29971 2014-01-09 Steve Ellcey <sellcey@mips.com>
29972
29973 * Makefile.in (TREE_FLOW_H): Remove.
29974 (TREE_SSA_H): Add file names from tree-flow.h.
29975 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
29976 * tree.h: Remove tree-flow.h reference.
29977 * hash-table.h: Remove tree-flow.h reference.
29978 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
29979 reference with tree-ssa-loop.h.
29980
29981 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29982
29983 * doc/invoke.texi: Add -maltivec={be,le} options, and document
29984 default element-order behavior for -maltivec.
29985 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
29986 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
29987 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
29988 when targeting big endian, at least for now.
29989 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
29990
29991 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29992
29993 PR middle-end/47735
29994 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
29995 var satisfies use_register_for_decl, just take into account type
29996 alignment, rather than decl alignment.
29997
29998 PR tree-optimization/59622
29999 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30000 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30001 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30002 Don't devirtualize for inplace at all. For targets.length () == 1,
30003 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30004
30005 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30006
30007 * config/i386/i386.md (cpu): Remove the unused btver1.
30008
30009 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30010
30011 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30012
30013 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30014
30015 PR target/58115
30016 * tree-core.h (struct target_globals): New forward declaration.
30017 (struct tree_target_option): Add globals field.
30018 * tree.h (TREE_TARGET_GLOBALS): Define.
30019 (prepare_target_option_nodes_for_pch): New prototype.
30020 * target-globals.h (struct target_globals): Define even if
30021 !SWITCHABLE_TARGET.
30022 * tree.c (prepare_target_option_node_for_pch,
30023 prepare_target_option_nodes_for_pch): New functions.
30024 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30025 * config/i386/i386.c: Include target-globals.h.
30026 (ix86_set_current_function): Instead of doing target_reinit
30027 unconditionally, use save_target_globals_default_opts and
30028 restore_target_globals.
30029
30030 2014-01-09 Richard Biener <rguenther@suse.de>
30031
30032 PR tree-optimization/59715
30033 * tree-cfg.h (split_critical_edges): Declare.
30034 * tree-cfg.c (split_critical_edges): Export.
30035 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30036
30037 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30038
30039 * cfgexpand.c (expand_stack_vars): Optionally disable
30040 asan stack protection.
30041 (expand_used_vars): Likewise.
30042 (partition_stack_vars): Likewise.
30043 * asan.c (asan_emit_stack_protection): Optionally disable
30044 after return stack usage.
30045 (instrument_derefs): Optionally disable memory access instrumentation.
30046 (instrument_builtin_call): Likewise.
30047 (instrument_strlen_call): Likewise.
30048 (asan_protect_global): Optionally disable global variables protection.
30049 * doc/invoke.texi: Added doc for new options.
30050 * params.def: Added new options.
30051 * params.h: Likewise.
30052
30053 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30054
30055 PR rtl-optimization/59724
30056 * ifcvt.c (cond_exec_process_if_block): Don't call
30057 flow_find_head_matching_sequence with 0 longest_match.
30058 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30059 non-active insns if !stop_after.
30060 (try_head_merge_bb): Revert 2014-01-07 changes.
30061
30062 2014-01-08 Jeff Law <law@redhat.com>
30063
30064 * ree.c (get_sub_rtx): New function, extracted from...
30065 (merge_def_and_ext): Here.
30066 (combine_reaching_defs): Use get_sub_rtx.
30067
30068 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30069
30070 * cgraph.h (varpool_variable_node): Do not choke on null node.
30071
30072 2014-01-08 Catherine Moore <clm@codesourcery.com>
30073
30074 * config/mips/mips.md (simple_return): Attempt to use JRC
30075 for microMIPS.
30076 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30077
30078 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30079
30080 PR rtl-optimization/59137
30081 * reorg.c (steal_delay_list_from_target): Call update_block for
30082 elided insns.
30083 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30084
30085 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30086
30087 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30088 two duplicate entries.
30089
30090 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30091
30092 Revert:
30093 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30094
30095 * config/mips/mips.c (mips_truncated_op_cost): New function.
30096 (mips_rtx_costs): Adjust test for BADDU.
30097 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30098
30099 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30100
30101 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30102 (*baddu_si): ...this new pattern.
30103
30104 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30105
30106 PR ipa/59722
30107 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30108
30109 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30110
30111 PR middle-end/57748
30112 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30113 inner_reference_p.
30114 (expand_expr, expand_normal): Adjust.
30115 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30116 inner_reference_p. Use inner_reference_p to expand inner references.
30117 (store_expr): Adjust.
30118 * cfgexpand.c (expand_call_stmt): Adjust.
30119
30120 2014-01-08 Rong Xu <xur@google.com>
30121
30122 * gcov-io.c (gcov_var): Move from gcov-io.h.
30123 (gcov_position): Ditto.
30124 (gcov_is_error): Ditto.
30125 (gcov_rewrite): Ditto.
30126 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30127 only part to libgcc/libgcov.h.
30128
30129 2014-01-08 Marek Polacek <polacek@redhat.com>
30130
30131 PR middle-end/59669
30132 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30133
30134 2014-01-08 Marek Polacek <polacek@redhat.com>
30135
30136 PR sanitizer/59667
30137 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30138
30139 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30140
30141 PR rtl-optimization/59649
30142 * stor-layout.c (get_mode_bounds): For BImode return
30143 0 and STORE_FLAG_VALUE.
30144
30145 2014-01-08 Richard Biener <rguenther@suse.de>
30146
30147 PR middle-end/59630
30148 * gimple.h (is_gimple_builtin_call): Remove.
30149 (gimple_builtin_call_types_compatible_p): New.
30150 (gimple_call_builtin_p): New overload.
30151 * gimple.c (is_gimple_builtin_call): Remove.
30152 (validate_call): Rename to ...
30153 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30154 check return types.
30155 (validate_type): New static function.
30156 (gimple_call_builtin_p): New overload and adjust.
30157 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30158 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30159 (gimple_fold_stmt_to_constant_1): Likewise.
30160 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30161
30162 2014-01-08 Richard Biener <rguenther@suse.de>
30163
30164 PR middle-end/59471
30165 * gimplify.c (gimplify_expr): Gimplify register-register type
30166 VIEW_CONVERT_EXPRs to separate stmts.
30167
30168 2014-01-07 Jeff Law <law@redhat.com>
30169
30170 PR middle-end/53623
30171 * ree.c (combine_set_extension): Handle case where source
30172 and destination registers in an extension insn are different.
30173 (combine_reaching_defs): Allow source and destination registers
30174 in extension to be different under limited circumstances.
30175 (add_removable_extension): Remove restriction that the
30176 source and destination registers in the extension are the same.
30177 (find_and_remove_re): Emit a copy from the extension's
30178 destination to its source after the defining insn if
30179 the source and destination registers are different.
30180
30181 PR middle-end/59285
30182 * ifcvt.c (merge_if_block): If we are merging a block with more than
30183 one successor with a block with no successors, remove any BARRIER
30184 after the second block.
30185
30186 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30187
30188 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30189
30190 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30191
30192 PR target/59652
30193 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30194 for 14-bit register offsets when INT14_OK_STRICT is false.
30195
30196 2014-01-07 Roland Stigge <stigge@antcom.de>
30197 Michael Meissner <meissner@linux.vnet.ibm.com>
30198
30199 PR 57386/target
30200 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30201 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30202
30203 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30204
30205 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30206 -mcpu.
30207
30208 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30209
30210 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30211 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30212 rtx is const0_rtx or not.
30213
30214 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30215
30216 PR target/58115
30217 * target-globals.c (save_target_globals): Remove this_fn_optab
30218 handling.
30219 * toplev.c: Include optabs.h.
30220 (target_reinit): Temporarily restore the global options if another
30221 set of options are in force.
30222
30223 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30224
30225 PR rtl-optimization/58668
30226 * cfgcleanup.c (flow_find_cross_jump): Don't count
30227 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30228 to determine what is counted.
30229 (flow_find_head_matching_sequence): Use active_insn_p to determine
30230 what is counted.
30231 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30232 counting change.
30233 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30234 determine what is counted.
30235
30236 PR tree-optimization/59643
30237 * tree-predcom.c (split_data_refs_to_components): If one dr is
30238 read and one write, determine_offset fails and the write isn't
30239 in the bad component, just put the read into the bad component.
30240
30241 2014-01-07 Mike Stump <mikestump@comcast.net>
30242 Jakub Jelinek <jakub@redhat.com>
30243
30244 PR pch/59436
30245 * tree-core.h (struct tree_optimization_option): Change optabs
30246 type from unsigned char * to void *.
30247 * optabs.c (init_tree_optimization_optabs): Adjust
30248 TREE_OPTIMIZATION_OPTABS initialization.
30249
30250 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30251
30252 PR target/59644
30253 * config/i386/i386.h (struct machine_function): Add
30254 no_drap_save_restore field.
30255 * config/i386/i386.c (ix86_save_reg): Use
30256 !cfun->machine->no_drap_save_restore instead of
30257 crtl->stack_realign_needed.
30258 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30259 this function clears frame_pointer_needed. Set
30260 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30261 and DRAP reg is needed.
30262
30263 2014-01-06 Marek Polacek <polacek@redhat.com>
30264
30265 PR c/57773
30266 * doc/implement-c.texi: Mention that other integer types are
30267 permitted as bit-field types in strictly conforming mode.
30268
30269 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30270
30271 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30272 is newly allocated.
30273
30274 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30275
30276 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30277
30278 2014-01-06 Martin Jambor <mjambor@suse.cz>
30279
30280 PR ipa/59008
30281 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30282 to int.
30283 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30284
30285 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30286
30287 PR debug/59350
30288 PR debug/59510
30289 * var-tracking.c (add_stores): Preserve the value of the source even if
30290 we don't record the store.
30291
30292 2014-01-06 Terry Guo <terry.guo@arm.com>
30293
30294 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30295
30296 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30297
30298 PR bootstrap/59541
30299 * config/darwin.c (darwin_function_section): Adjust return values to
30300 correspond to optimisation changes made in r206070.
30301
30302 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30303
30304 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30305 from prefetch_block tune setting.
30306 (nocona_cost): Correct size of prefetch block to 64.
30307
30308 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30309
30310 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30311 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30312 used to save the static chain register in the computation of the offset
30313 from which the FP registers need to be restored.
30314
30315 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30316
30317 PR tree-optimization/59519
30318 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30319 ICE if get_current_def (current_new_name) is already non-NULL, as long
30320 as it is a phi result of some other phi in *new_exit_bb that has
30321 the same argument.
30322
30323 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30324 or vmovdqu* for misaligned_operand.
30325 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30326 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30327 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30328 aligned_mem for AVX512F masked aligned load and store builtins and for
30329 non-temporal moves.
30330
30331 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30332
30333 PR tree-optimization/59651
30334 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30335 Address range for negative step should be added by TYPE_SIZE_UNIT.
30336
30337 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30338
30339 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30340 overlapping registers also for registers other than the stack pointer.
30341
30342 2014-01-03 Marek Polacek <polacek@redhat.com>
30343
30344 PR other/59661
30345 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30346 __builtin_FILE.
30347
30348 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30349
30350 PR target/59625
30351 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30352 asm goto as jump.
30353
30354 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30355 (push splitter): Use <P:MODE_SIZE> instead of
30356 GET_MODE_SIZE (<P:MODE>mode).
30357 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30358 (mov -1, reg peephole2): Likewise.
30359 * config/i386/sse.md (*mov<mode>_internal,
30360 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30361 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30362 *<code><mode>3, *andnot<mode>3<mask_name>,
30363 <mask_codefor><code><mode>3<mask_name>): Likewise.
30364 * config/i386/subst.md (mask_mode512bit_condition,
30365 sd_mask_mode512bit_condition): Likewise.
30366
30367 2014-01-02 Xinliang David Li <davidxl@google.com>
30368
30369 PR tree-optimization/59303
30370 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30371 (dump_predicates): Better output format.
30372 (pred_equal_p): New function.
30373 (is_neq_relop_p): Ditto.
30374 (is_neq_zero_form_p): Ditto.
30375 (pred_expr_equal_p): Ditto.
30376 (pred_neg_p): Ditto.
30377 (simplify_pred): Ditto.
30378 (simplify_preds_2): Ditto.
30379 (simplify_preds_3): Ditto.
30380 (simplify_preds_4): Ditto.
30381 (simplify_preds): Ditto.
30382 (push_pred): Ditto.
30383 (push_to_worklist): Ditto.
30384 (get_pred_info_from_cmp): Ditto.
30385 (is_degenerated_phi): Ditto.
30386 (normalize_one_pred_1): Ditto.
30387 (normalize_one_pred): Ditto.
30388 (normalize_one_pred_chain): Ditto.
30389 (normalize_preds): Ditto.
30390 (normalize_cond_1): Remove function.
30391 (normalize_cond): Ditto.
30392 (is_gcond_subset_of): Ditto.
30393 (is_subset_of_any): Ditto.
30394 (is_or_set_subset_of): Ditto.
30395 (is_and_set_subset_of): Ditto.
30396 (is_norm_cond_subset_of): Ditto.
30397 (pred_chain_length_cmp): Ditto.
30398 (convert_control_dep_chain_into_preds): Type change.
30399 (find_predicates): Ditto.
30400 (find_def_preds): Ditto.
30401 (destroy_predicates_vecs): Ditto.
30402 (find_matching_predicates_in_rest_chains): Ditto.
30403 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30404 (is_pred_expr_subset): Ditto.
30405 (is_pred_chain_subset_of): Ditto.
30406 (is_included_in): Ditto.
30407 (is_superset_of): Ditto.
30408
30409 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30410
30411 Update copyright years.
30412
30413 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30414
30415 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30416 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30417 config/arc/arc.md, config/arc/arc.opt,
30418 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30419 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30420 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30421 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30422 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30423 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30424 vtable-verify.c, vtable-verify.h: Use the standard form for the
30425 copyright notice.
30426
30427 2014-01-02 Tobias Burnus <burnus@net-b.de>
30428
30429 * gcc.c (process_command): Update copyright notice dates.
30430 * gcov-dump.c: Ditto.
30431 * gcov.c: Ditto.
30432 * doc/cpp.texi: Bump @copying's copyright year.
30433 * doc/cppinternals.texi: Ditto.
30434 * doc/gcc.texi: Ditto.
30435 * doc/gccint.texi: Ditto.
30436 * doc/gcov.texi: Ditto.
30437 * doc/install.texi: Ditto.
30438 * doc/invoke.texi: Ditto.
30439
30440 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30441
30442 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30443
30444 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30445
30446 * config/i386/sse.md (*mov<mode>_internal): Guard
30447 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30448
30449 PR rtl-optimization/59647
30450 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30451 new_rtx into UNSIGNED_FLOAT rtxes.
30452 \f
30453 Copyright (C) 2014 Free Software Foundation, Inc.
30454
30455 Copying and distribution of this file, with or without modification,
30456 are permitted in any medium without royalty provided the copyright
30457 notice and this notice are preserved.