cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
[gcc.git] / gcc / ChangeLog
1 2014-09-10 Martin Jambor <mjambor@suse.cz>
2
3 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
4 (analyze): Do not set analyze flag if expand_thunk returns false;.
5 (create_wrapper): Likewise.
6 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
7
8 2014-09-10 Martin Jambor <mjambor@suse.cz>
9
10 PR ipa/61654
11 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
12 new decl properly. Analyze the new thunk if it is expanded.
13
14 2014-09-10 Andreas Schwab <schwab@suse.de>
15
16 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
17 [USED_FOR_TARGET]: Define.
18
19 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
20
21 * config/mips/mips.c (mips_secondary_reload_class): Handle
22 regno < 0 case.
23
24 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
25
26 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
27 assignment.
28
29 2014-09-10 Jakub Jelinek <jakub@redhat.com>
30
31 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
32 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
33 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
34 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
35 flag_delete_null_pointer_checks for them.
36 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
37 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
38 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
39 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
40 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
41 stmt's iterator.
42 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
43 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
44 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
45 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
46 * doc/invoke.texi (-fsanitize=nonnull-attribute,
47 -fsanitize=returns-nonnull-attribute): Document.
48
49 * ubsan.h (struct ubsan_mismatch_data): Removed.
50 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
51 * ubsan.c (ubsan_source_location): For unknown locations,
52 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
53 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
54 Allow more than one location and arbitrary extra arguments passed
55 in ... instead of through MISMATCH pointer.
56 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
57 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
58 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
59 callers.
60
61 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
62 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
63 Anna Tikhonova <anna.tikhonova@intel.com>
64 Ilya Tocar <ilya.tocar@intel.com>
65 Andrey Turetskiy <andrey.turetskiy@intel.com>
66 Ilya Verbin <ilya.verbin@intel.com>
67 Kirill Yukhin <kirill.yukhin@intel.com>
68 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
69
70 * config/i386/sse.md
71 (define_mode_iterator VI48F): New.
72 (define_insn "<avx512>_compress<mode>_mask"): Rename from
73 "avx512f_compress<mode>_mask" and update mode iterator.
74 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
75 "avx512f_compressstore<mode>_mask" and update mode iterator.
76 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
77 "avx512f_expand<mode>_maskz" and update mode iterator.
78 (define_insn "<avx512>_expand<mode>_mask"): Rename from
79 "avx512f_expand<mode>_mask" and update mode iterator.
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/i386.c
91 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
92 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
93 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
94 avx512dq_rangepv4sf_mask.
95 * config/i386/sse.md
96 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
97 UNSPEC_RANGE.
98 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
99 (define_insn "reduces<mode>"): Ditto.
100 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
101 Ditto.
102 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
103 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
104 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
105
106 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
107 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
108 Anna Tikhonova <anna.tikhonova@intel.com>
109 Ilya Tocar <ilya.tocar@intel.com>
110 Andrey Turetskiy <andrey.turetskiy@intel.com>
111 Ilya Verbin <ilya.verbin@intel.com>
112 Kirill Yukhin <kirill.yukhin@intel.com>
113 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
114
115 * config/i386/i386.c
116 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
117 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
118 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
119 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
120 avx512vl_getmantv2df_mask.
121 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
122 avx512f_vgetmantv4sf_round.
123 * config/i386/sse.md
124 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
125 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
126 mode iterator.
127 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
128 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
129 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
130 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
131 iterator..
132 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
133 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
134 update mode iterator.
135 (define_expand
136 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
137 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
138 mode iterator.
139 (define_insn
140 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
141 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
142 update mode iterator.
143 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
144 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
145 iterator..
146 (define_insn
147 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
148 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
149 mode iterator..
150 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
151 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
152 update mode iterator.
153 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
154 "avx512f_getmant<mode><round_saeonly_name>".
155
156 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
157
158 PR ipa/63166
159 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
160
161 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
162 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
163 Anna Tikhonova <anna.tikhonova@intel.com>
164 Ilya Tocar <ilya.tocar@intel.com>
165 Andrey Turetskiy <andrey.turetskiy@intel.com>
166 Ilya Verbin <ilya.verbin@intel.com>
167 Kirill Yukhin <kirill.yukhin@intel.com>
168 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
169
170 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
171 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
172 (define_mode_iterator FMAMODE_AVX512): New.
173 (define_mode_iterator FMAMODE): Remove conditions.
174 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
175 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
176 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
177 mode iterator.
178 (define_mode_iterator FMAMODE_NOVF512): Remove.
179 (define_insn "*fma_fmadd_<mode>"): Rename from
180 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
181 FMAMODE mode iterator.
182 (define_mode_iterator VF_SF_AVX512VL): New.
183 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
184 Use VF_SF_AVX512VL mode iterator.
185 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
186 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
187 iterator.
188 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
189 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
190 iterator.
191 (define_insn "*fma_fmsub_<mode>"): Rename from
192 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
193 FMAMODE mode iterator.
194 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
195 Use VF_SF_AVX512VL mode iterator.
196 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
197 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
198 iterator.
199 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
200 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
201 iterator.
202 (define_insn "*fma_fnmadd_<mode>"): Rename from
203 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
204 use FMAMODE mode iterator.
205 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
206 Use VF_SF_AVX512VL mode iterator.
207 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
208 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
209 iterator.
210 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
211 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
212 iterator.
213 (define_insn "*fma_fnmsub_<mode>"): Rename from
214 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
215 FMAMODE mode iterator.
216 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
217 Use VF_SF_AVX512VL mode iterator.
218 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
219 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
220 iterator.
221 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
222 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
223 iterator.
224 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
225 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
226 use VF_AVX512VL mode iterator.
227 (define_insn "*fma_fmaddsub_<mode>"): Rename from
228 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
229 remove subst usage.
230 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
231 Use VF_SF_AVX512VL mode iterator.
232 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
233 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
234 iterator.
235 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
236 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
237 iterator.
238 (define_insn "*fma_fmsubadd_<mode>"): Rename from
239 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
240 remove usage of subst.
241 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
242 Use VF_SF_AVX512VL mode iterator.
243 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
244 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
245 iterator.
246 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
247 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
248 iterator.
249
250 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
251
252 Revert r213751:
253 * calls.c (precompute_arguments): Check
254 promoted_for_signed_and_unsigned_p and set the promoted mode.
255 (promoted_for_signed_and_unsigned_p): New function.
256 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
257 and set the promoted mode.
258 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
259 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
260 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
261
262 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
263
264 * opth-gen.awk: Generate mapping from cpp message reasons to the
265 options that enable them.
266 * doc/options.texi (CppReason): Document.
267
268 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
269
270 * doc/invoke.texi (Wnormalized=): Update.
271
272 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
273
274 PR target/63195
275 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
276 operands. Split off the constant operand alternative to ...
277 (*bool<mode>3_imm): New.
278
279 2014-09-09 David Malcolm <dmalcolm@redhat.com>
280
281 * rtl.h (single_set_2): Strengthen first param from const_rtx to
282 const rtx_insn *, and move prototype to above...
283 (single_set): ...this. Convert this from a macro to an inline
284 function, enforcing the requirement that the param is a const
285 rtx_insn *.
286 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
287
288 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
289 Strengthen both params from rtx to rtx_insn *.
290 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
291 Likewise; introduce locals "producer_set", "consumer_set", using
292 them in place of "producer" and "consumer" when dealing with SET
293 rather than insn.
294 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
295 when invoking single_set in region guarded by INSN_P.
296 (avr_out_bitop): Likewise.
297 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
298 region guarded by GET_CODE check, using methods to strengthen
299 local "this_insn" from rtx to rtx_insn *, and for clarity.
300 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
301 Strengthen local "insn" from rtx to rtx_insn *.
302 (define_insn_and_split "xload<mode>_A"): Likewise.
303 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
304 "insn".
305 (find_load): Likewise for return type.
306 (workaround_speculation): Likewise for both locals named
307 "load_insn".
308 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
309 local "cc0_user".
310 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
311 for local "prev".
312 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
313 param 2.
314 * config/h8300/h8300.c (notice_update_cc): Likewise.
315 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
316 "insn" and "dep_insn".
317 (exact_store_load_dependency): Likewise for both params.
318 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
319 since this now clashes with inline function. Instead, delay
320 calling single_set until the point where its needed, and then
321 assign the result to "compare_set" and rework the conditional that
322 follows.
323 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
324 local "last" from rtx to rtx_insn *.
325 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
326 second param.
327 (mips_store_data_bypass_p): Likewise for both params.
328 * config/mips/mips.c (mips_load_store_insns): Likewise for second
329 param.
330 (mips_store_data_bypass_p): Likewise for both params.
331 (mips_orphaned_high_part_p): Likewise for param "insn".
332 * config/mn10300/mn10300.c (extract_bundle): Likewise.
333 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
334 Introduce local rtx "insn2_pat".
335 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
336 "ninsn".
337 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
338 Introduce local rtx "set", using it in place of "insn" for the
339 result of single_set. This appears to fix a bug, since the call
340 to find_regno_note on a SET does nothing.
341 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
342 params from rtx to rtx_insn *.
343 (set_to_load_agen): Likewise.
344 * config/s390/s390.c (s390_label_align): Likewise for local
345 "prev_insn". Introduce new rtx locals "set" and "src", using
346 them in place of "prev_insn" for the results of single_set
347 and SET_SRC respectively.
348 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
349 Introduce new rtx local "set" using in place of "jump" for the
350 result of single_set. Use SET_SRC (set) rather than plain
351 XEXP (set, 1).
352 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
353 rtx to rtx_insn *.
354 (noncall_uses_reg): Likewise.
355 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
356 guarded by GET_CODE check, using its methods for clarity, and to
357 enable strengthening local "this_insn" from rtx to rtx_insn *.
358 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
359 "insn" from rtx to rtx_insn *.
360 (define_expand "umulhisi3"): Likewise.
361 (define_expand "smulsi3_highpart"): Likewise.
362 (define_expand "umulsi3_highpart"): Likewise.
363 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
364 local "after". Replace GET_CODE check with a dyn_cast,
365 introducing new local rtx_sequence * "seq", using insn method for
366 typesafety.
367
368 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
369 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
370 place of "insn" once we're dealing with patterns rather than the
371 input insn.
372 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
373 (scan_trace): Likewise for local "elt", updating lookups within
374 sequence to use insn method rather than element method.
375 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
376 to rtx_insn *.
377 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
378 * ifcvt.c (noce_try_abs): Likewise for local "insn".
379 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
380 invoking single_set.
381 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
382 "insn" from rtx to rtx_insn *.
383 (skip_usage_debug_insns): Likewise for return type, adding a
384 checked cast.
385 (check_secondary_memory_needed_p): Likewise for local "insn".
386 (inherit_reload_reg): Likewise.
387 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
388 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
389 checked casts.
390 (store_data_bypass_p): Likewise for both params.
391 (if_test_bypass_p): Likewise.
392 * recog.h (store_data_bypass_p): Likewise for both params.
393 (if_test_bypass_p): Likewise.
394 * reload.c (find_equiv_reg): Likewise for local "where".
395 * reorg.c (delete_jump): Likewise for param "insn".
396 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
397 to const rtx_insn *.
398 * store-motion.c (replace_store_insn): Likewise for param "del".
399 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
400 and use its methods for clarity, and to strengthen local "del"
401 from rtx to rtx_insn *.
402 (build_store_vectors): Use insn method of "st" when calling
403 replace_store_insn for typesafety and clarity.
404
405 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
406
407 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
408 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
409 on how to make it legal in future.
410
411 2014-09-09 David Malcolm <dmalcolm@redhat.com>
412
413 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
414 to rtx_insn *.
415 (restinsn): Likewise.
416 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
417 Likewise for param.
418 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
419 Likewise.
420 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
421 first param.
422 (arc_hazard): Likewise for both params.
423 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
424 checked casts to rtx_sequence * and uses of the insn method for
425 type-safety.
426 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
427 (arc_adjust_insn_length): Likewise for param "insn".
428 (struct insn_length_parameters_s): Likewise for first param of
429 "get_variants" callback field.
430 (arc_get_insn_variants): Likewise for first param and local
431 "inner". Replace a check of GET_CODE with a dyn_cast to
432 rtx_sequence *, using methods for type-safety and clarity.
433 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
434 rtx_sequence * and uses of the insn method for type-safety when
435 invoking arc_adjust_insn_length.
436 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
437 for param.
438 (arm_address_offset_is_imm): Likewise.
439 (struct tune_params): Likewise for params 1 and 3 of the
440 "sched_adjust_cost" callback field.
441 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
442 params 1 and 3 ("insn" and "dep").
443 (xscale_sched_adjust_cost): Likewise.
444 (fa726te_sched_adjust_cost): Likewise.
445 (cortexa7_older_only): Likewise for param "insn".
446 (cortexa7_younger): Likewise.
447 (arm_attr_length_move_neon): Likewise.
448 (arm_address_offset_is_imm): Likewise.
449 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
450 * config/avr/avr.c (avr_notice_update_cc): Likewise.
451 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
452 (workaround_speculation): Likewise for local "last_condjump".
453 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
454 (shadow_or_blockage_p): Likewise.
455 (get_unit_reqs): Likewise.
456 (get_unit_operand_masks): Likewise.
457 (c6x_registers_update): Likewise.
458 (returning_call_p): Likewise.
459 (can_use_callp): Likewise.
460 (convert_to_callp): Likewise.
461 (find_last_same_clock): Likwise for local "t".
462 (reorg_split_calls): Likewise for local "shadow".
463 (hwloop_pattern_reg): Likewise for param "insn".
464 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
465 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
466 (frv_extract_membar): Likewise.
467 (frv_optimize_membar_local): Strengthen param "last_membar" from
468 rtx * to rtx_insn **.
469 (frv_optimize_membar_global): Strengthen param "membar" from rtx
470 to rtx_insn *.
471 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
472 to rtx_insn **.
473 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
474 both params from rtx to rtx_insn *.
475 (ia64_ld_address_bypass_p): Likewise.
476 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
477 "insn".
478 (ia64_safe_type): Likewise.
479 (group_barrier_needed): Likewise.
480 (safe_group_barrier_needed): Likewise.
481 (ia64_single_set): Likewise.
482 (is_load_p): Likewise.
483 (record_memory_reference): Likewise.
484 (get_mode_no_for_insn): Likewise.
485 (important_for_bundling_p): Likewise.
486 (unknown_for_bundling_p): Likewise.
487 (ia64_st_address_bypass_p): Likewise for both params.
488 (ia64_ld_address_bypass_p): Likewise.
489 (expand_vselect): Introduce new local rtx_insn * "insn", using it
490 in place of rtx "x" after the emit_insn call.
491 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
492 Strengthen param from rtx to rtx_insn *.
493 (ix86_agi_dependent): Likewise for both params.
494 (ix86_attr_length_immediate_default): Likewise for param 1.
495 (ix86_attr_length_address_default): Likewise for param.
496 (ix86_attr_length_vex_default): Likewise for param 1.
497 * config/i386/i386.c (ix86_attr_length_immediate_default):
498 Likewise for param "insn".
499 (ix86_attr_length_address_default): Likewise.
500 (ix86_attr_length_vex_default): Likewise.
501 (ix86_agi_dependent): Likewise for both params.
502 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
503 (vselect_insn): Likewise for this variable.
504 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
505 for param 1.
506 (m68k_sched_attr_opy_type): Likewise.
507 * config/m68k/m68k.c (sched_get_operand): Likewise.
508 (sched_attr_op_type): Likewise.
509 (m68k_sched_attr_opx_type): Likewise.
510 (m68k_sched_attr_opy_type): Likewise.
511 (sched_get_reg_operand): Likewise.
512 (sched_get_mem_operand): Likewise.
513 (m68k_sched_address_bypass_p): Likewise for both params.
514 (sched_get_indexed_address_scale): Likewise.
515 (m68k_sched_indexed_address_bypass_p): Likewise.
516 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
517 (m68k_sched_indexed_address_bypass_p): Likewise.
518 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
519 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
520 removing another.
521 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
522 params from rtx to rtx_insn *.
523 (mips_fmadd_bypass): Likewise.
524 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
525 (mips_linked_madd_p): Likewise.
526 (mips_macc_chains_last_hilo): Likewise for this variable.
527 (mips_macc_chains_record): Likewise for param.
528 (vr4130_last_insn): Likewise for this variable.
529 (vr4130_swap_insns_p): Likewise for both params.
530 (mips_ls2_variable_issue): Likewise for param.
531 (mips_need_noat_wrapper_p): Likewise for param "insn".
532 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
533 in place of "x" after the emit_insn.
534 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
535 params from rtx to rtx_insn *.
536 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
537 (pa_combine_instructions): Introduce local "par" for result of
538 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
539 to make_insn_raw.
540 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
541 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
542 (rl78_alloc_physical_registers_op1): Likewise.
543 (rl78_alloc_physical_registers_op2): Likewise.
544 (rl78_alloc_physical_registers_ro1): Likewise.
545 (rl78_alloc_physical_registers_cmp): Likewise.
546 (rl78_alloc_physical_registers_umul): Likewise.
547 (rl78_alloc_address_registers_macax): Likewise.
548 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
549 * config/s390/predicates.md (execute_operation): Likewise for
550 local "insn".
551 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
552 params.
553 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
554 (addr_generation_dependency_p): Likewise for param "insn".
555 (s390_agen_dep_p): Likewise for both params.
556 (s390_fpload_toreg): Likewise for param "insn".
557 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
558 * config/sh/sh.c (sh_loop_align): Likewise for param and local
559 "next".
560 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
561 * config/sh/sh_treg_combine.cc
562 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
563 and local "i".
564 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
565 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
566 "and_insn", "load", "shift".
567 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
568 "insn".
569 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
570 for XEXP (note, 0) of the REG_CC_SETTER note.
571 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
572 rtx_insn *, eliminating a checked cast made redundant by this.
573 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
574 to rtx_insn *.
575 * genattr.c (main): When writing out the prototype to
576 const_num_delay_slots, strengthen the param from rtx to
577 rtx_insn *.
578 * genattrtab.c (write_const_num_delay_slots): Likewise when
579 writing out the implementation of const_num_delay_slots.
580 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
581 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
582 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
583 favor of new rtx locals "src" and "set" and new local rtx_insn *
584 "insn" and "seq".
585 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
586 to rtx_insn *.
587 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
588 locals "cond", "if_then_else", "set" and new rtx_insn * locals
589 "insn" and "seq".
590 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
591 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
592 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
593 the top-level scope, replacing with new more tightly-scoped rtx
594 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
595 "new_insn", "copy_of_insn_b", and make local rtx "set" more
596 tightly-scoped.
597 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
598 rtx_insn *.
599 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
600 "move_insn".
601 (ira_setup_alts): Likewise for param "insn".
602 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
603 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
604 and an rtx_insn *.
605 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
606 new more-tightly scoped rtx locals "add3_insn", "insn",
607 "add2_insn" and rtx_insn * "move_insn".
608 * postreload-gcse.c (eliminate_partially_redundant_load): Add
609 checked cast on result of gen_move_insn when invoking
610 extract_insn.
611 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
612 rtx_insn *.
613 (verify_changes): Add a checked cast on "object" when invoking
614 insn_invalid_p.
615 (extract_insn_cached): Strengthen param "insn" from rtx to
616 rtx_insn *.
617 (extract_constrain_insn_cached): Likewise.
618 (extract_insn): Likewise.
619 * recog.h (insn_invalid_p): Likewise for param 1.
620 (recog_memoized): Likewise for param.
621 (extract_insn): Likewise.
622 (extract_constrain_insn_cached): Likewise.
623 (extract_insn_cached): Likewise.
624 * reload.c (can_reload_into): Likewise for local "test_insn".
625 * reload.h (cleanup_subreg_operands): Likewise for param.
626 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
627 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
628 result of emit_insn. Remove a checked cast made redundant by this
629 change.
630 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
631 rtx to rtx_insn *.
632 * sel-sched.c (get_reg_class): Likewise.
633
634 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
635 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
636
637 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
638 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
639 Define.
640 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
641
642 2014-09-09 David Malcolm <dmalcolm@redhat.com>
643
644 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
645 const rtx_insn *, and from rtx to rtx_insn * for the other
646 overloaded variant.
647 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
648 INSN_LOCATION, since we know INSN_P holds.
649 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
650 (insn_file): Likewise.
651 (insn_scope): Likewise.
652 (insn_location): Likewise.
653
654 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
655 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
656 for the result of gen_load_const_gp.
657 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
658 param from rtx to rtx_insn *.
659 * config/rs6000/rs6000.c (output_call): Likewise.
660 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
661 introducing a checked cast to rtx_sequence * and use of the insn
662 method.
663 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
664 from rtx to rtx_insn *.
665 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
666 (insn_line): Likewise.
667 (insn_file): Likewise.
668 (insn_location): Likewise.
669 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
670 from rtx to rtx_insn *.
671 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
672 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
673 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
674 via a checked cast.
675 * reorg.c (relax_delay_slots): Strengthen locals named "after"
676 from rtx to rtx_insn *; use methods of "pat" for type-safety.
677
678 2014-09-09 David Malcolm <dmalcolm@redhat.com>
679
680 * combine.c (try_combine): Eliminate checked cast on result of
681 gen_rtx_INSN.
682 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
683 autogenerated one by strengthening the return type and params 2 and 3
684 from rtx to rtx_insn *, and by naming the params.
685 * gengenrtl.c (special_rtx): Add INSN to those that are
686 special-cased.
687 * rtl.h (gen_rtx_INSN): New prototype.
688
689 2014-09-09 David Malcolm <dmalcolm@redhat.com>
690
691 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
692 than NULL_RTX.
693 (no_equiv): Likewise.
694 (update_equiv_regs): Likewise.
695 (setup_reg_equiv): Likewise. Strengthen locals "elem",
696 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
697 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
698 clarity.
699 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
700 from rtx to rtx_insn_list *.
701 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
702 rtx_insn_list * and use methods for clarity and typesafety.
703 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
704 "list".
705 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
706 redundant check on INSN_P (insns): this cannot hold, as "insns" is
707 an INSN_LIST, not an insn.
708 (reverse_equiv_p): Strengthen local "insns" from rtx to
709 rtx_insn_list * and use methods for clarity and typesafety.
710 (contains_reloaded_insn_p): Likewise for local "list".
711
712 2014-09-09 Jiong Wang <jiong.wang@arm.com>
713
714 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
715 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
716 (arm_builtin_vectorized_function): Likewise.
717 * config/arm/arm_neon_builtins.def: New macro for copysignf.
718 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
719
720 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
721
722 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
723 * builtins.h (default_target_builtins): Likewise.
724 * gcse.h (default_target_gcse): Likewise.
725 * target-globals.h (target_globals): Add a destructor. Convert
726 void-pointer fields back to their real type and change from
727 GTY((atomic)) to GTY((skip)).
728 (restore_target_globals): Remove casts accordingly.
729 * target-globals.c (save_target_globals): Use XCNEW rather than
730 ggc_internal_cleared_alloc to allocate non-GC structures.
731 Use ggc_cleared_alloc to allocate the target_globals structure
732 itself.
733 (target_globals::~target_globals): Define.
734
735 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
736
737 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
738 mnemonic instead of fldmfdd.
739 * config/arm/arm.c (vfp_output_fstmd): Rename to...
740 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
741 Output vpush when address register is SP.
742 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
743 (vfp_output_vstmd): ... This.
744 * config/arm/vfp.md (push_multi_vfp): Update call to
745 vfp_output_vstmd.
746
747 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
748
749 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
750
751 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
752
753 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
754 (*sqrtdf2_vfp): Likewise.
755 (*cmpsf_vfp): Likewise.
756 (*cmpsf_trap_vfp): Likewise.
757 (*cmpdf_vfp): Likewise.
758 (*cmpdf_trap_vfp): Likewise.
759
760 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
761
762 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
763 (*truncdfsf2_vfp): Likewise.
764 (*truncsisf2_vfp): Likewise.
765 (*truncsidf2_vfp): Likewise.
766 (fixuns_truncsfsi2): Likewise.
767 (fixuns_truncdfsi2): Likewise.
768 (*floatsisf2_vfp): Likewise.
769 (*floatsidf2_vfp): Likewise.
770 (floatunssisf2): Likewise.
771 (floatunssidf2): Likewise.
772
773 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
774
775 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
776 (*muldf3_vfp): Likewise.
777 (*mulsf3negsf_vfp): Likewise.
778 (*muldf3negdf_vfp): Likewise.
779 (*mulsf3addsf_vfp): Likewise.
780 (*muldf3adddf_vfp): Likewise.
781 (*mulsf3subsf_vfp): Likewise.
782 (*muldf3subdf_vfp): Likewise.
783 (*mulsf3negsfaddsf_vfp): Likewise.
784 (*fmuldf3negdfadddf_vfp): Likewise.
785 (*mulsf3negsfsubsf_vfp): Likewise.
786 (*muldf3negdfsubdf_vfp): Likewise.
787
788 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
789
790 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
791 (*absdf2_vfp): Likewise.
792 (*negsf2_vfp): Likewise.
793 (*negdf2_vfp): Likewise.
794 (*addsf3_vfp): Likewise.
795 (*adddf3_vfp): Likewise.
796 (*subsf3_vfp): Likewise.
797 (*subdf3_vfp): Likewise.
798 (*divsf3_vfp): Likewise.
799 (*divdf3_vfp): Likewise.
800
801 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
802
803 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
804 multiple.
805 (arm_print_operand): Don't convert real values to decimal
806 representation in default case.
807 (fp_immediate_constant): Delete.
808 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
809 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
810 syntax.
811 (*thumb2_movsi_vfp): Likewise.
812 (*movdi_vfp): Likewise.
813 (*movdi_vfp_cortexa8): Likewise.
814 (*movhf_vfp_neon): Likewise.
815 (*movhf_vfp): Likewise.
816 (*movsf_vfp): Likewise.
817 (*thumb2_movsf_vfp): Likewise.
818 (*movdf_vfp): Likewise.
819 (*thumb2_movdf_vfp): Likewise.
820 (*movsfcc_vfp): Likewise.
821 (*thumb2_movsfcc_vfp): Likewise.
822 (*movdfcc_vfp): Likewise.
823 (*thumb2_movdfcc_vfp): Likewise.
824
825 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
826
827 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
828 (-mtune): Likewise.
829 (-mcpu): Likewise.
830
831 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
832
833 PR target/61749
834 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
835 Use qualifier_immediate for last operand. Rename to...
836 (aarch64_types_ternop_lane_qualifiers): ... This.
837 (TYPES_QUADOP): Rename to...
838 (TYPES_TERNOP_LANE): ... This.
839 (aarch64_simd_expand_args): Return const0_rtx when encountering user
840 error. Change return of 0 to return of NULL_RTX.
841 (aarch64_crc32_expand_builtin): Likewise.
842 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
843 ICE when expanding unknown builtin.
844 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
845 TERNOP_LANE qualifiers.
846 (sqdmlsl_lane): Likewise.
847 (sqdmlal_laneq): Likewise.
848 (sqdmlsl_laneq): Likewise.
849 (sqdmlal2_lane): Likewise.
850 (sqdmlsl2_lane): Likewise.
851 (sqdmlal2_laneq): Likewise.
852 (sqdmlsl2_laneq): Likewise.
853
854 2014-09-09 Nick Clifton <nickc@redhat.com>
855
856 * doc/invoke.texi (Optimization Options): Add missing @gol to the
857 end of a line.
858 (S/390 and zSeries Options): Remove superfluous word from the
859 description of the -mhotpatch option.
860
861 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
862
863 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
864 * ira.c: #include "shrink-wrap.h"
865 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
866 * ifcvt.c: #include "shrink-wrap.h"
867 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
868
869 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
870
871 * common/config/picochip/picochip-common.c: Remove.
872 * config.gcc: Remove support for picochip.
873 * config/picochip/constraints.md: Remove.
874 * config/picochip/dfa_space.md: Remove.
875 * config/picochip/dfa_speed.md: Remove.
876 * config/picochip/picochip-protos.h: Remove.
877 * config/picochip/picochip.c: Remove.
878 * config/picochip/picochip.h: Remove.
879 * config/picochip/picochip.md: Remove.
880 * config/picochip/picochip.opt: Remove.
881 * config/picochip/predicates.md: Remove.
882 * config/picochip/t-picochip: Remove.
883 * doc/md.texi: Don't document picochi.
884
885 2014-09-08 David Malcolm <dmalcolm@redhat.com>
886
887 * basic-block.h (control_flow_insn_p): Strengthen param from
888 const_rtx to const rtx_insn *.
889 * cfgbuild.c (control_flow_insn_p): Likewise.
890
891 2014-09-08 David Malcolm <dmalcolm@redhat.com>
892
893 * gcse.c (modify_mem_list): Strengthen this variable from
894 vec<rtx> * to vec<rtx_insn *> *.
895 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
896 vec<rtx_insn *>.
897 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
898 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
899 (record_last_mem_set_info): Strengthen param "insn" from rtx to
900 rtx_insn *.
901 (record_last_set_info): Likewise for local "last_set_insn".
902
903 2014-09-08 DJ Delorie <dj@redhat.com>
904
905 * doc/invoke.texi (MSP430 Options): Add -minrt.
906
907 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
908
909 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
910 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
911 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
912 handling SH_SPLAT.
913 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
914 of extracted lane.
915 (adjust_splat): New function.
916 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
917 (dump_swap_insn_table): Add case for SH_SPLAT.
918
919 2014-09-08 Richard Biener <rguenther@suse.de>
920
921 PR ipa/63196
922 * tree-inline.c (copy_loops): The source loop header should
923 always be non-NULL.
924 (tree_function_versioning): If loops need fixup after removing
925 unreachable blocks fix them.
926 * omp-low.c (simd_clone_adjust): Do not add incr block to
927 loop under construction.
928
929 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
930
931 * config/aarch64/aarch64-builtins.c
932 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
933
934 2014-09-08 Joseph Myers <joseph@codesourcery.com>
935
936 * config/i386/cygming.h (TF_SIZE): Remove.
937 * config/i386/darwin.h (TF_SIZE): Remove.
938 * config/i386/dragonfly.h (TF_SIZE): Remove.
939 * config/i386/freebsd.h (TF_SIZE): Remove.
940 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
941 * config/i386/openbsdelf.h (TF_SIZE): Remove.
942 * config/i386/sol2.h (TF_SIZE): Remove.
943 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
944 * config/ia64/linux.h (TF_SIZE): Remove.
945 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
946 * doc/tm.texi: Regenerate.
947 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
948
949 2014-09-08 Joseph Myers <joseph@codesourcery.com>
950
951 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
952 Remove.
953 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
954 Remove.
955 * doc/tm.texi: Regenerate.
956 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
957 Poison.
958 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
959 * config/cris/cris.h (__make_dp): Remove.
960
961 2014-09-08 Richard Biener <rguenther@suse.de>
962
963 PR bootstrap/63204
964 * cfgloop.c (mark_loop_for_removal): Track former header
965 unconditionally.
966 * cfgloop.h (struct loop): Add former_header member unconditionally.
967 * loop-init.c (fix_loop_structure): Enable bogus loop removal
968 diagnostic unconditionally.
969
970 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
971
972 PR target/63190
973 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
974 constraint for operand0 and remove write only modifier from operand3.
975
976 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
977
978 PR rtl-optimization/62208
979 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
980 rather than const0_rtx in eq/ne-xor simplifications.
981
982 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
983
984 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
985 (arc_output_mi_thunk): Likewise.
986
987 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
988 arguments to silence bogus warning.
989
990 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
991
992 PR middle-end/63171
993 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
994
995 2014-09-06 Tom de Vries <tom@codesourcery.com>
996
997 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
998 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
999 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1000
1001 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1002
1003 PR target/63188
1004 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1005 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1006
1007 2014-09-05 Easwaran Raman <eraman@google.com>
1008
1009 PR rtl-optimization/62146
1010 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1011 hoisted instruction unconditional.
1012
1013 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1014
1015 PR target/63187
1016 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1017 Do not allow any_mask_operand for operands[2].
1018 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1019
1020 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1021
1022 * config/arc/arc.c (arc_print_operand): Use insn method of
1023 final_sequence for type-safety.
1024 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1025 "insn" from rtx to rtx_insn *.
1026 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1027 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1028 Likewise for locals "branch", "label".
1029 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1030 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1031 (same_cmp_following_p): Likewise for locals "i2", "i3".
1032 * config/sh/sh_optimize_sett_clrt.cc
1033 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1034 param "cbranch_insn".
1035 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1036 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1037 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1038 const rtx_insn *.
1039 (condjump_p): Likewise.
1040 (condjump_in_parallel_p): Likewise.
1041 (pc_set): Likewise.
1042 (any_uncondjump_p): Likewise.
1043 (any_condjump_p): Likewise.
1044 (condjump_label): Likewise.
1045 (returnjump_p): Strengthen param "insn" from rtx to
1046 const rtx_insn *.
1047 (onlyjump_p): Strengthen param "insn" from const_rtx to
1048 const rtx_insn *.
1049 (jump_to_label_p): Likewise.
1050 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1051 (invert_jump): Likewise.
1052 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1053 simplejump_p.
1054 (get_jump_flags): Strengthen param "insn" from rtx to
1055 const rtx_insn *.
1056 (get_branch_condition): Likewise.
1057 (condition_dominates_p): Likewise.
1058 (make_return_insns): Move declaration of local "pat" earlier, to
1059 after we've handled NONJUMP_INSN_P and non-sequences, using its
1060 methods to simplify the code and for type-safety.
1061 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1062 const rtx_insn *.
1063 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1064 (condjump_p): Strengthen param from const_rtx to
1065 const rtx_insn *.
1066 (any_condjump_p): Likewise.
1067 (any_uncondjump_p): Likewise.
1068 (pc_set): Likewise.
1069 (condjump_label): Likewise.
1070 (simplejump_p): Likewise.
1071 (returnjump_p): Likewise.
1072 (onlyjump_p): Likewise.
1073 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1074 (invert_jump): Likewise.
1075 (condjump_in_parallel_p): Strengthen param from const_rtx to
1076 const rtx_insn *.
1077 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1078 to const rtx_insn *.
1079 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1080 to const rtx_insn *.
1081 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1082
1083 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1084
1085 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1086 above the conditional, and convert the check on GET_CODE to a
1087 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1088 the conditional. Simplify the conditional by using methods of
1089 "trial_seq".
1090
1091 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1092
1093 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1094 "link" from rtx to rtx_insn_list *, and use its methods for
1095 clarity and type-safety.
1096 (toggle_cancelled_flags): Likewise.
1097 (restore_last_backtrack_point): Likewise.
1098 (queue_to_ready): Use insn method of "link" in one place.
1099 (schedule_block): Strengthen local "link" from rtx to
1100 rtx_insn_list *, and use its methods for clarity and type-safety.
1101
1102 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1103
1104 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1105 param "insn" from const_rtx to const rtx_insn *.
1106 (sched_get_reverse_condition_uncached): Likewise.
1107 (sched_get_condition_with_rev): Likewise.
1108 (sched_has_condition_p): Likewise.
1109 (sched_insns_conditions_mutex_p): Likewise for both params.
1110 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1111 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1112 (setup_insn_reg_uses): Move local "list" to be more tightly
1113 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1114 its methods for clarity and type-safety.
1115 (sched_analyze_1): Strengthen local "pending" from rtx to
1116 rtx_insn_list *, and local "pending_mem" from rtx to
1117 rtx_expr_list *. Use methods of each for clarity and type-safety.
1118 (sched_analyze_2): Likewise.
1119 (sched_analyze_insn): Likewise.
1120
1121 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1122 param from const_rtx to const rtx_insn *.
1123 (sched_insns_conditions_mutex_p): Likewise for both params.
1124 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1125 param.
1126
1127 * system.h (CONST_CAST_RTX_INSN): New macro.
1128
1129 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1130
1131 * recog.c (peep2_attempt): Strengthen return type from rtx to
1132 rtx_insn *.
1133 (peep2_update_life): Likewise for params "last", "prev", removing
1134 a checked cast made redundant by this.
1135 (peephole2_optimize): Likewise for local "last".
1136
1137 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1138
1139 * basic-block.h (set_block_for_insn): Eliminate this macro in
1140 favor of...
1141 * rtl.h (set_block_for_insn): New inline function, imposing the
1142 requirement that the "insn" param is an rtx_insn *.
1143
1144 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1145
1146 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1147 rtx to rtx_insn *.
1148 * final.c (get_call_reg_set_usage): Likewise for first param,
1149 eliminating a checked cast.
1150 * regs.h (get_call_reg_set_usage): Likewise for first param.
1151 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1152 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1153 cast, replacing references to "x" with "call_insn" where
1154 appropriate.
1155 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1156 rtx_insn *, adding a checked cast.
1157
1158 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1159
1160 * output.h (final_scan_insn): Strengthen first param from rtx to
1161 rtx_insn *.
1162
1163 * final.c (final_scan_insn): Likewise, renaming it back from
1164 "uncast_insn" to "insn", eliminating the checked cast.
1165
1166 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1167 "vec" with an rtx_sequence * "seq", taking a copy of
1168 "final_sequence", and using methods of "seq" for clarity, and for
1169 type-safety in the calls to final_scan_insn.
1170 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1171 of "final_sequence" for clarity, and for type-safety in the call to
1172 final_scan_insn.
1173 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1174 rtx_sequence * and rename from "insn" to "seq".
1175
1176 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1177
1178 * jump.c (delete_related_insns): Introduce a new local "table" by
1179 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1180 get_labels method of "table" to simplify access to the labels in
1181 the jump table.
1182
1183 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1184
1185 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1186 f_minmaxs, f_minmaxd types.
1187
1188 2014-09-05 Richard Biener <rguenther@suse.de>
1189
1190 * cfgloop.c (mark_loop_for_removal): Record former header
1191 when ENABLE_CHECKING.
1192 * cfgloop.h (strut loop): Add former_header member when
1193 ENABLE_CHECKING.
1194 * loop-init.c (fix_loop_structure): Sanity check loops
1195 marked for removal if they re-appeared.
1196
1197 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1198
1199 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1200 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1201
1202 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1203 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1204 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1205 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1206 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1207 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1208 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1209 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1210 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1211 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1212 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1213 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1214 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1215 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1216 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1217 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1218 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1219 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1220 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1221 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1222 with int{32,16,8}_t.
1223
1224 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1225
1226 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1227 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1228 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1229 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1230 Remove temporary __asm__ and reimplement.
1231
1232 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1233
1234 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1235 handling cmge, cmgt, cmeq, cmtst.
1236
1237 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1238 cmlt, cmgeu, cmgtu, cmtst): Remove.
1239
1240 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1241 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1242 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1243 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1244
1245 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1246
1247 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1248 TYPES_TST): Define.
1249 (aarch64_fold_builtin): Update pattern for cmtst.
1250
1251 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1252 Declare.
1253
1254 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1255
1256 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1257 Switch operands, separate out more cases, refactor.
1258
1259 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1260
1261 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1262 argument; rename old version to...
1263 (aarch64_const_vec_all_same_in_range_p): ...this.
1264 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1265
1266 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1267
1268 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1269
1270 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1271 Remove qualifier_const_pointer, update comment.
1272
1273 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1274
1275 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1276
1277 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1278
1279 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1280 varargs with pointer parameter.
1281 (aarch64_simd_expand_builtin): pass pointer into previous.
1282
1283 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1284
1285 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1286 alus_ext.
1287
1288 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1289
1290 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1291 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1292 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1293 Replace temporary asm with call to builtin.
1294 (vrbit_p8, vrbitq_p8): New functions.
1295
1296 2014-09-05 Richard Biener <rguenther@suse.de>
1297
1298 * cfgloop.c (mark_loop_for_removal): New function.
1299 * cfgloop.h (mark_loop_for_removal): Declare.
1300 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1301 (merge_blocks): Likewise.
1302 (duplicate_block): Likewise.
1303 * except.c (sjlj_emit_dispatch_table): Likewise.
1304 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1305 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1306 (thread_through_loop_header): Likewise.
1307
1308 2014-09-05 Richard Biener <rguenther@suse.de>
1309
1310 PR middle-end/63148
1311 * fold-const.c (try_move_mult_to_index): Remove.
1312 (fold_binary_loc): Do not call it.
1313 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1314 from the base object again.
1315
1316 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1317
1318 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1319 DImode.
1320
1321 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1322
1323 PR target/55701
1324 * config/arm/arm.md (setmem): New pattern.
1325 * config/arm/arm-protos.h (struct tune_params): New fields.
1326 (arm_gen_setmem): New prototype.
1327 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1328 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1329 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1330 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1331 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1332 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1333 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1334 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1335 (arm_const_inline_cost): New function.
1336 (arm_block_set_max_insns): New function.
1337 (arm_block_set_non_vect_profit_p): New function.
1338 (arm_block_set_vect_profit_p): New function.
1339 (arm_block_set_unaligned_vect): New function.
1340 (arm_block_set_aligned_vect): New function.
1341 (arm_block_set_unaligned_non_vect): New function.
1342 (arm_block_set_aligned_non_vect): New function.
1343 (arm_block_set_vect, arm_gen_setmem): New functions.
1344
1345 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1346
1347 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1348
1349 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1350
1351 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1352
1353 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1354
1355 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1356 an rtx.
1357 * valtrack.h: Adjust.
1358
1359 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1360
1361 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1362 an rtx.
1363 (emit_jump_insn_before_noloc): Likewise.
1364 (emit_call_insn_before_noloc): Likewise.
1365 (emit_label_before): Likewise.
1366 (emit_label_after): Likewise.
1367 (emit_insn_before_setloc): Likewise.
1368 (emit_jump_insn_before_setloc): Likewise.
1369 (emit_call_insn_before_setloc): Likewise.
1370 (emit_call_insn_before): Likewise.
1371 * rtl.h: Adjust.
1372
1373 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1374
1375 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1376 rtx_insn *, eliminating a checked cast.
1377
1378 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1379
1380 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1381 const_rtx to const rtx_insn *.
1382 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1383 cast.
1384
1385 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1386
1387 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1388 fixup_args_size_notes.
1389 * expr.c (fixup_args_size_notes): Strengthen first two params from
1390 rtx to rtx_insn *, eliminating a checked cast.
1391 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1392 rtx to rtx_insn *.
1393
1394 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1395
1396 * haifa-sched.c (get_ready_element): Strengthen return type from
1397 rtx to rtx_insn *.
1398 * sched-int.h (get_ready_element): Likewise.
1399
1400 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1401
1402 PR target/63165
1403 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1404 indexed_or_indirect_operand instead of memory_operand.
1405 (floatsi<mode>2_lfiwzx_mem): Ditto.
1406
1407 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1408
1409 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1410 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1411 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1412
1413 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1414
1415 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1416 rtx.
1417 (get_last_nonnote_insn): Likewise.
1418 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1419 * resource.c (find_basic_block): Likewise.
1420 * rtl.h: Adjust.
1421 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1422 const_rtx.
1423
1424 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1425
1426 * genattr.c (main): Within the prototype of insn_latency written
1427 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1428 * genautomata.c (output_internal_maximal_insn_latency_func):
1429 Within the implementation of insn_latency written out to
1430 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1431 eliminating a pair of checked casts.
1432
1433 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1434
1435 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1436 rtx_insn *.
1437
1438 * rtl.h (eh_returnjump_p): Likewise.
1439
1440 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1441
1442 * Makefile.in (TAGS): Handle constructs in timevar.def.
1443
1444 2014-09-04 Guozhi Wei <carrot@google.com>
1445
1446 PR target/62040
1447 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1448 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1449 it into two patterns.
1450 (move_lo_quad_internal_be_<mode>): Likewise.
1451
1452 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1453
1454 * doc/options.texi: Document that Var and Init are required if CPP
1455 is given.
1456 * optc-gen.awk: Require Var and Init if CPP is given.
1457 * common.opt (Wpedantic): Use Init.
1458
1459 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1460
1461 * config/rs6000/rs6000.c (special_handling_values): Add
1462 SH_EXTRACT.
1463 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1464 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1465 as swappable with special handling SH_EXTRACT. Remove
1466 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1467 optimization.
1468 (adjust_extract): New function.
1469 (handle_special_swappables): Add default to case statement; add
1470 case for SH_EXTRACT that calls adjust_extract.
1471 (dump_swap_insn_table): Handle SH_EXTRACT.
1472
1473 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1474
1475 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1476 selection of 0th memory doubleword, regardless of endianness.
1477
1478 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1479
1480 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1481
1482 2014-09-04 Alan Modra <amodra@gmail.com>
1483
1484 PR debug/60655
1485 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1486 can't be output.
1487
1488 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1489
1490 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1491 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1492 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1493 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1494 * doc/tm.texi: Regenerate.
1495 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1496 selection logic to default_dwarf_frame_reg_mode.
1497
1498 2014-09-03 Marek Polacek <polacek@redhat.com>
1499
1500 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1501 by -Wall.
1502
1503 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1504
1505 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1506 the automodified register.
1507
1508 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1509
1510 * output.h (get_some_local_dynamic_name): Declare.
1511 * final.c (some_local_dynamic_name): New variable.
1512 (get_some_local_dynamic_name): New function.
1513 (final_end_function): Clear some_local_dynamic_name.
1514 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1515 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1516 (print_operand): Report an error if '%&' is used inappropriately.
1517 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1518 (get_some_local_dynamic_name_1): Delete.
1519 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1520 (rs6000_get_some_local_dynamic_name): Delete.
1521 (rs6000_get_some_local_dynamic_name_1): Delete.
1522 (print_operand): Report an error if '%&' is used inappropriately.
1523 * config/s390/s390.c (machine_function): Remove some_ld_name.
1524 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1525 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1526 * config/sparc/sparc.c: Include rtl-iter.h.
1527 (machine_function): Remove some_ld_name.
1528 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1529 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1530
1531 2014-09-03 Richard Henderson <rth@redhat.com>
1532
1533 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1534 (aarch64_popwb_pair_reg): Remove.
1535 (aarch64_set_frame_expr): Remove.
1536 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1537 the restore ops performed by the insns generated.
1538 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1539 insn. Perform the calls_eh_return addition later; do not attempt to
1540 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1541 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1542 special markup at all. Load cfun->machine->frame.hard_fp_offset
1543 into a local variable.
1544 (aarch64_frame_pointer_required): Don't check calls_alloca.
1545
1546 2014-09-03 Richard Biener <rguenther@suse.de>
1547
1548 * opts.c (default_options_optimization): Adjust
1549 max-combine-insns to 2 for -Og.
1550
1551 2014-09-03 Martin Jambor <mjambor@suse.cz>
1552
1553 PR ipa/62015
1554 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1555 pass-trough jump functions correctly.
1556
1557 2014-09-03 Martin Jambor <mjambor@suse.cz>
1558
1559 PR ipa/61986
1560 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1561 created replacements in ascending order of offsets.
1562 (known_aggs_to_agg_replacement_list): Likewise.
1563
1564 2014-09-03 Martin Liska <mliska@suse.cz>
1565
1566 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1567 is set to set uninitialized value for vnresult.
1568
1569 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1570
1571 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1572 for TARGET_MUST_PASS_IN_STACK.
1573
1574 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1575
1576 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1577 for TARGET_ARG_PARTIAL_BYTES.
1578
1579 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1580
1581 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1582 instructions for varargs implementation.
1583 (nds32_expand_epilogue): Emit stack adjustment instructions for
1584 varargs implementation.
1585
1586 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1587
1588 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1589 optimization detection.
1590
1591 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1592
1593 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1594 arguments.
1595 (nds32_function_arg_advance): Deal with nameless arguments.
1596 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1597 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1598 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1599
1600 2014-09-03 Richard Biener <rguenther@suse.de>
1601
1602 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1603 (struct bb_bitmap_sets): Remove deferred member.
1604 (BB_DEFERRED): Remove.
1605 (defer_or_phi_translate_block): Remove.
1606 (compute_antic_aux): Remove deferring of blocks, assert
1607 proper iteration order.
1608 (compute_antic): Do not set BB_DEFERRED.
1609 (eliminate): Allocate el_avail of proper size initially.
1610
1611 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1612
1613 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1614 according to the value of crtl->args.pretend_args_size.
1615
1616 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1617
1618 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1619 varargs information.
1620
1621 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1622
1623 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1624 implementation for TARGET_SETUP_INCOMING_VARARGS.
1625 (nds32_strict_argument_naming): Refine comment.
1626 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1627 Define for future implementation.
1628
1629 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
1630
1631 * config/i386/adxintrin.h (_subborrow_u32): New.
1632 (_addcarry_u32): Ditto.
1633 (_subborrow_u64): Ditto.
1634 (_addcarry_u64): Ditto.
1635 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1636 IX86_BUILTIN_SBB64.
1637 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1638 __builtin_ia32_sbb_u64
1639
1640 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1641
1642 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1643 GPR-specific stuff.
1644 (nds32_function_arg_advance): Likewise.
1645 (nds32_init_cumulative_args): Likewise.
1646 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1647 (NDS32_FIRST_GPR_REGNUM): Define.
1648 (NDS32_LAST_GPR_REGNUM): Define.
1649 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1650 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1651 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1652 (machine_function): Use GRP-specific stuff.
1653
1654 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1655
1656 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1657 (nds32_expand_epilogue): Likewise.
1658 (nds32_expand_prologue_v3push): Likewise.
1659 (nds32_expand_epilogue_v3pop): Likewise.
1660
1661 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1662
1663 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1664 v3push/v3pop for variadic function.
1665 * config/nds32/nds32.md (prologue, epilogue): Likewise.
1666
1667 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1668
1669 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1670 Check rtx for varargs implementation.
1671 (nds32_output_stack_pop): Likewise.
1672 * config/nds32/nds32-protos.h: Have a rtx argument for
1673 nds32_output_stack_push and nds32_output_stack_pop.
1674 * config/nds32/nds32.md: Likewise.
1675
1676 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1677
1678 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1679 to check if FUNC is an interrupt service routine.
1680 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1681
1682 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1683
1684 * config/nds32/nds32.h (machine_function): Add some fields for variadic
1685 arguments implementation.
1686
1687 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1688
1689 * config/nds32/nds32-predicates.c
1690 (nds32_valid_stack_push_pop): Rename to ...
1691 (nds32_valid_stack_push_pop_p): ... this.
1692 * config/nds32/nds32-protos.h: Likewise.
1693 * config/nds32/predicates.md: Likewise.
1694
1695 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1696
1697 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1698 (nds32_emit_stack_v3push): ... this.
1699 (nds32_gen_stack_v3pop): Rename to ...
1700 (nds32_emit_stack_v3pop): ... this and consider CFA restore
1701 information.
1702
1703 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1704
1705 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1706 (nds32_emit_stack_push_multiple): ... this.
1707 (nds32_gen_stack_pop_multiple): Rename to ...
1708 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1709 information.
1710
1711 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1712
1713 PR target/61078
1714 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1715 and add a second splitter to handle the remaining cases.
1716
1717 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1718
1719 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1720
1721 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1722
1723 * cfgexpand.c (label_rtx_for_bb): Change type to
1724 hash_map<basic_block, rtx_code_label *> *.
1725 (expand_gimple_basic_block): Adjust.
1726 (pass_expand::execute): Likewise.
1727
1728 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1729
1730 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1731 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1732 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1733 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1734 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1735 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1736 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1737 of rtx.
1738
1739 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1740
1741 * alloc-pool.c: Include coretypes.h.
1742 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1743 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1744 hash_set instead of htab.
1745 * ggc-page.c (in_gc): New variable.
1746 (ggc_free): Do nothing if a collection is taking place.
1747 (ggc_collect): Set in_gc appropriately.
1748 * ggc.h (gt_ggc_mx(const char *)): New function.
1749 (gt_pch_nx(const char *)): Likewise.
1750 (gt_ggc_mx(int)): Likewise.
1751 (gt_pch_nx(int)): Likewise.
1752 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1753 (hash_map::hash_entry::pch_nx): Likewise.
1754 (hash_map::hash_entry::pch_nx_helper): Likewise.
1755 (hash_map::hash_map): Adjust.
1756 (hash_map::create_ggc): New function.
1757 (gt_ggc_mx): Likewise.
1758 (gt_pch_nx): Likewise.
1759 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1760 (default_hashset_traits::pch_nx): Likewise.
1761 (hash_set::hash_entry::ggc_mx): Likewise.
1762 (hash_set::hash_entry::pch_nx): Likewise.
1763 (hash_set::hash_entry::pch_nx_helper): Likewise.
1764 (hash_set::hash_set): Adjust.
1765 (hash_set::create_ggc): New function.
1766 (hash_set::elements): Likewise.
1767 (gt_ggc_mx): Likewise.
1768 (gt_pch_nx): Likewise.
1769 * hash-table.h (hash_table::hash_table): Adjust.
1770 (hash_table::m_ggc): New member.
1771 (hash_table::~hash_table): Adjust.
1772 (hash_table::expand): Likewise.
1773 (hash_table::empty): Likewise.
1774 (gt_ggc_mx): New function.
1775 (hashtab_entry_note_pointers): Likewise.
1776 (gt_pch_nx): Likewise.
1777
1778 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1779
1780 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
1781 built-in definition.
1782 (XVCVUXDDP_SCALE): Likewise.
1783 (XVCVDPSXDS_SCALE): Likewise.
1784 (XVCVDPUXDS_SCALE): Likewise.
1785 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1786 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1787 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1788 VSX_BUILTIN_XVCVDPUXDS_SCALE.
1789 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1790 prototype.
1791 * config/rs6000/rs6000.c (real.h): New include.
1792 (rs6000_scale_v2df): New function.
1793 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1794 (UNSPEC_VSX_XVCVUXDDP): Likewise.
1795 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1796 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1797 (vsx_xvcvsxddp_scale): New define_expand.
1798 (vsx_xvcvsxddp): New define_insn.
1799 (vsx_xvcvuxddp_scale): New define_expand.
1800 (vsx_xvcvuxddp): New define_insn.
1801 (vsx_xvcvdpsxds_scale): New define_expand.
1802 (vsx_xvcvdpsxds): New define_insn.
1803 (vsx_xvcvdpuxds_scale): New define_expand.
1804 (vsx_xvcvdpuxds): New define_insn.
1805 * doc/extend.texi (vec_ctf): Add new prototypes.
1806 (vec_cts): Likewise.
1807 (vec_ctu): Likewise.
1808 (vec_splat): Likewise.
1809 (vec_div): Likewise.
1810 (vec_mul): Likewise.
1811
1812 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1813
1814 PR target/62275
1815 * config/arm/neon.md
1816 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1817 <v_cmp_result>): New pattern.
1818 * config/arm/iterators.md (NEON_VCVT): New int iterator.
1819 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1820 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1821 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1822 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1823 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1824
1825 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1826
1827 PR target/62275
1828 * config/arm/iterators.md (FIXUORS): New code iterator.
1829 (VCVT): New int iterator.
1830 (su_optab): New code attribute.
1831 (su): Likewise.
1832 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1833
1834 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1835
1836 * config/aarch64/predicates.md (aarch64_comparison_operation):
1837 New special predicate.
1838 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1839 aarch64_comparison_operation instead of matching an operator.
1840 Update operand numbers.
1841 (csinc3<mode>_insn): Likewise.
1842 (*csinv3<mode>_insn): Likewise.
1843 (*csneg3<mode>_insn): Likewise.
1844 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1845 * config/aarch64/aarch64.c (aarch64_get_condition_code):
1846 Return -1 instead of aborting on invalid condition codes.
1847 (aarch64_print_operand): Update aarch64_get_condition_code callsites
1848 to assert that the returned condition code is valid.
1849 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1850
1851 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
1852
1853 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1854 tree.def, and gimple.def
1855
1856 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1857 Balaji V. Iyer <balaji.v.iyer@intel.com>
1858 Igor Zamyatin <igor.zamyatin@intel.com>
1859
1860 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1861 (__cilkrts_cilk_for_64): Likewise.
1862 * cilk-common.c (declare_cilk_for_builtin): New function.
1863 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1864 __cilkrts_cilk_for_64 bultins.
1865 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1866 CILK_TI_F_LOOP_64.
1867 (cilk_for_32_fndecl): New define.
1868 (cilk_for_64_fndecl): Likewise.
1869 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1870 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1871 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1872 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1873 GF_OMP_FOR_COMBINED_INTO.
1874 * gimplify.c (gimplify_scan_omp_clauses): Added
1875 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1876 (gimplify_adjust_omp_clauses): Ditto.
1877 (gimplify_omp_for): Added CILK_FOR case.
1878 (gimplify_expr): Ditto.
1879 * omp-low.c: Include cilk.h.
1880 (extract_omp_for_data): Set appropriate kind for
1881 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1882 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1883 (create_omp_child_function_name): Added second argument to handle
1884 cilk_for case.
1885 (cilk_for_check_loop_diff_type): New function.
1886 (expand_cilk_for_call): Likewise.
1887 (expand_cilk_for): Likewise.
1888 (create_omp_child_function): Set cilk_for_count; handle the cases when
1889 it is true; call create_omp_child_function_name with second argument.
1890 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1891 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1892 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1893 * tree-nested.c (convert_nonlocal_omp_clauses): Added
1894 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1895 (convert_local_omp_clauses): Ditto.
1896 * tree-pretty-print.c (dump_omp_clause): Added
1897 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1898 (dump_generic_node): Added CILK_FOR case.
1899 * tree.c (omp_clause_num_ops): New element
1900 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1901 (omp_clause_code_name): New element _Cilk_for_count_.
1902 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1903 * tree.def: Add tree code for CILK_FOR.
1904
1905 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1906
1907 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1908 (ppc403-compare): Add "exts with dot" case.
1909 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1910 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1911 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1912 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1913 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1914 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1915 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1916 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1917 cell-cmp-microcoded): Similarly.
1918 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1919 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1920 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1921 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1922 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1923 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1924 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1925 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
1926 (power6-compare): Add "exts with dot" case.
1927 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
1928 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
1929 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
1930
1931 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
1932 if avoiding Cell microcode.
1933 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
1934 (is_cracked_insn): Ditto.
1935 (insn_must_be_first_in_group): Ditto.
1936 * config/rs6000/rs6000.md (dot): Adjust comment.
1937 (cell_micro): Handle exts+dot.
1938 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
1939 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
1940 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
1941 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
1942 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
1943 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
1944 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
1945
1946 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1947
1948 * config/rs6000/rs6000.md (QHSI): Delete.
1949 (EXTQI, EXTHI, EXTSI): New mode iterators.
1950 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1951 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1952 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1953 9 anonymous instructions, and 8 splitters): Delete.
1954 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1955 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1956 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1957 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1958 *zero_extendsi<mode>2_dot2): New.
1959
1960 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1961
1962 * config/rs6000/rs6000.md (any_extend): New code iterator.
1963 (u, su): New code attributes.
1964 (dmode, DMODE): New mode attributes.
1965 (<su>mul<mode>3_highpart): New.
1966 (*<su>mul<mode>3_highpart): New.
1967 (<su>mulsi3_highpart_le): New.
1968 (<su>muldi3_highpart_le): New.
1969 (<su>mulsi3_highpart_64): New.
1970 (<u>mul<mode><dmode>3): New.
1971 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1972 splitters): Delete.
1973 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1974 splitters): Delete.
1975
1976 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1977
1978 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1979 *mulsi3_internal2, and two splitters): Delete.
1980 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1981 Delete.
1982 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1983
1984 2014-09-02 Richard Biener <rguenther@suse.de>
1985
1986 PR tree-optimization/62695
1987 * tree-ssa-structalias.c (find_func_clobbers): Add missing
1988 vector truncate.
1989
1990 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
1991
1992 PR target/62312
1993 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1994
1995 2014-09-01 Andi Kleen <ak@linux.intel.com>
1996
1997 * file-find.c (add_prefix_begin): Add.
1998 (do_add_prefix): Rename from add_prefix with first argument.
1999 (add_prefix): Add new wrapper.
2000 * file-find.h (add_prefix_begin): Add.
2001 * gcc-ar.c (main): Support -B option.
2002
2003 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2004
2005 * genemit.c: Include dumpfile.h.
2006 (gen_split): Print name of splitter function to dump file.
2007
2008 2014-09-01 Richard Biener <rguenther@suse.de>
2009
2010 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2011 Use stack auto_vecs for constraint expressions.
2012 (find_func_aliases_for_call): Likewise.
2013 (find_func_aliases): Likewise.
2014 (find_func_clobbers): Likewise.
2015
2016 2014-09-01 Richard Biener <rguenther@suse.de>
2017
2018 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2019 operands vector in most cases. Remove redundant code.
2020
2021 2014-09-01 Olivier Hainque <hainque@adacore.com>
2022
2023 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2024 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2025 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2026
2027 2014-09-01 Richard Biener <rguenther@suse.de>
2028
2029 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2030 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2031 vn_reference_compute_hash, vn_reference_insert): Remove.
2032 (vn_reference_lookup_call): New function.
2033 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2034 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2035 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2036 (create_reference_ops_from_call): Remove.
2037 (vn_reference_lookup_3): Properly update shared_lookup_references.
2038 (vn_reference_lookup_pieces): Assert that we updated
2039 shared_lookup_references properly.
2040 (vn_reference_lookup): Likewise.
2041 (vn_reference_lookup_call): New function.
2042 (visit_reference_op_call): Use it. Avoid re-building the
2043 reference ops.
2044 (visit_reference_op_load): Remove redundant lookup.
2045 (visit_reference_op_store): Perform special tail-merging work
2046 only when possibly doing tail-merging.
2047 (visit_use): Likewise.
2048 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2049
2050 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2051
2052 PR target/62025
2053 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2054 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2055 (find_inc): Revert 2014-08-13 change.
2056
2057 2014-09-01 Marek Polacek <polacek@redhat.com>
2058
2059 PR middle-end/61903
2060 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2061 Change the type of V to unsigned HOST_WIDE_INT.
2062
2063 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2064
2065 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2066 the size of byte markers.
2067 (do_shift_rotate): Fix confusion between host, target and marker byte
2068 size.
2069 (verify_symbolic_number_p): Likewise.
2070 (find_bswap_or_nop_1): Likewise.
2071 (find_bswap_or_nop): Likewise.
2072
2073 2014-09-01 Olivier Hainque <hainque@adacore.com>
2074
2075 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2076 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2077
2078 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2079
2080 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2081 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2082 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2083
2084 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2085
2086 PR sanitizer/61897
2087 PR sanitizer/62140
2088 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2089 (build_check_stmt): Likewise.
2090 (instrument_strlen_call): Likewise.
2091 (asan_expand_check_ifn): Likewise and fix types.
2092 (maybe_cast_to_ptrmode): New function.
2093
2094 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2095
2096 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2097
2098 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2099
2100 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2101
2102 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2103
2104 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2105 prefix to function labels when generating fast indirect calls.
2106
2107 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2108
2109 PR bootstrap/62304
2110
2111 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2112 param back from rtx_insn * to rtx. Rename param from "label" to
2113 "label_or_return", reintroducing "label" as an rtx_insn * after
2114 we've ensured it's not a RETURN.
2115 (first_active_target_insn): Likewise for return type and param;
2116 add a checked cast to rtx_insn * once we've ensured "insn" is not
2117 a RETURN.
2118 (steal_delay_list_from_target): Convert param "pnew_thread" back
2119 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2120 with JUMP_LABEL.
2121 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2122 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2123 cast once we've established we're not dealing with a RETURN,
2124 renaming subsequent uses of "thread" to "thread_insn".
2125 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2126 to JUMP_LABEL.
2127 (follow_jumps): Convert return type and param "label" from
2128 rtx_insn * back to rtx. Move initialization of "value" to after
2129 the handling for ANY_RETURN_P, adding a checked cast there to
2130 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2131 rename to "this_label_or_return", reintroducing "this_label" as
2132 an rtx_insn * once we've handled the case where it could be an
2133 ANY_RETURN_P.
2134 (fill_slots_from_thread): Rename param "thread" to
2135 "thread_or_return", converting from an rtx_insn * back to an rtx.
2136 Reintroduce name "thread" as an rtx_insn * local with a checked
2137 cast once we've handled the case of it being an ANY_RETURN_P.
2138 Convert local "new_thread" from an rtx_insn * back to an rtx.
2139 Add a checked cast when assigning to "trial" from "new_thread".
2140 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2141 checked cast to rtx_insn * from "new_thread" when invoking
2142 get_label_before.
2143 (fill_eager_delay_slots): Convert locals "target_label",
2144 "insn_at_target" from rtx_insn * back to rtx.
2145 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2146 (relax_delay_slots): Convert locals "trial", "target_label" from
2147 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2148 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2149 invoking update_block.
2150 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2151 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2152
2153 * resource.h (mark_target_live_regs): Undo erroneous conversion
2154 of second param of r214693, converting it back from rtx_insn * to
2155 rtx, since it could be a RETURN.
2156
2157 * resource.c (find_dead_or_set_registers): Similarly, convert
2158 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2159 could be writing back a RETURN. Rename local rtx_insn * "next" to
2160 "next_insn", and introduce "lab_or_return" as a local rtx,
2161 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2162 (mark_target_live_regs): Undo erroneous conversion
2163 of second param of r214693, converting it back from rtx_insn * to
2164 rtx, since it could be a RETURN. Rename it from "target" to
2165 "target_maybe_return", reintroducing the name "target" as a local
2166 rtx_insn * with a checked cast, after we've handled the case of
2167 ANY_RETURN_P.
2168
2169 2014-08-29 DJ Delorie <dj@redhat.com>
2170
2171 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2172 pointer size up to a power of two.
2173 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2174 (POINTER_SIZE_UNITS): New, rounded up value.
2175 * dwarf2asm.c (size_of_encoded_value): Use it.
2176 (dw2_output_indirect_constant_1): Likewise.
2177 * expmed.c (init_expmed_one_conv): We now know the sizes of
2178 partial int modes.
2179 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2180 * optabs.c (expand_float): Use precision, not size.
2181 (expand_fix): Likewise.
2182 * simplify-rtx (simplify_unary_operation_1): Likewise.
2183 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2184 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2185 (default_assemble_integer) Likewise.
2186 (dump_tm_clone_pairs): Likewise.
2187 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2188 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2189 (prepare_call_arguments): Likewise.
2190 * stor-layout.c (finalize_type_size): Preserve precision.
2191 (layout_type): Use precision, not size.
2192
2193 * expr.c (convert_move): If the target has an explicit converter,
2194 use it.
2195
2196 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2197
2198 * gdbinit.in: Skip various inline functions in rtl.h when
2199 stepping.
2200
2201 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2202
2203 PR bootstrap/62301
2204 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2205
2206 2014-08-29 Richard Biener <rguenther@suse.de>
2207
2208 PR tree-optimization/62291
2209 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2210 exactly the vector size needed and use quick_push.
2211 (phi_translate_1): Adjust comment.
2212 (valid_in_sets): Remove block argument and remove pointless
2213 checking of NAMEs.
2214 (dependent_clean): Adjust for removal of block argument.
2215 (clean): Likewise.
2216 (compute_antic_aux): Likewise.
2217 (compute_partial_antic_aux): Likewise.
2218
2219 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2220 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2221 Anna Tikhonova <anna.tikhonova@intel.com>
2222 Ilya Tocar <ilya.tocar@intel.com>
2223 Andrey Turetskiy <andrey.turetskiy@intel.com>
2224 Ilya Verbin <ilya.verbin@intel.com>
2225 Kirill Yukhin <kirill.yukhin@intel.com>
2226 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2227
2228 * config/i386/sse.md
2229 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2230 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2231 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2232 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2233
2234 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2235 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2236 Anna Tikhonova <anna.tikhonova@intel.com>
2237 Ilya Tocar <ilya.tocar@intel.com>
2238 Andrey Turetskiy <andrey.turetskiy@intel.com>
2239 Ilya Verbin <ilya.verbin@intel.com>
2240 Kirill Yukhin <kirill.yukhin@intel.com>
2241 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2242
2243 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2244 * config/i386/sse.md
2245 (define_mode_iterator VI4_128_8_256): New.
2246 (define_mode_iterator VI2_128_4_256): Ditto.
2247 (define_mode_iterator PMOV_DST_MODE): Rename into
2248 (define_mode_iterator PMOV_DST_MODE_1): this.
2249 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2250 Use PMOV_DST_MODE_1 mode iterator.
2251 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2252 Ditto.
2253 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2254 Ditto.
2255 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2256 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2257 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2258 (define_mode_iterator PMOV_DST_MODE_2): New.
2259 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2260 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2261 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2262 Ditto.
2263 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2264 (define_mode_attr pmov_dst_3): Ditto.
2265 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2266 (define_mode_attr pmov_suff_3): Ditto.
2267 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2268 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2269 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2270 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2271 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2272 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2273 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2274 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2275 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2276 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2277 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2278 (define_mode_attr pmov_dst_4): Ditto.
2279 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2280 (define_mode_attr pmov_suff_4): Ditto.
2281 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2282 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2283 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2284 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2285 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2286 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2287 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2288 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2289 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2290 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2291 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2292
2293 2014-08-29 Richard Biener <rguenther@suse.de>
2294
2295 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2296 NON_LVALUE_EXPR in gimple.
2297
2298 2014-08-29 Richard Biener <rguenther@suse.de>
2299
2300 PR middle-end/62292
2301 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2302 from previous refactoring.
2303 (gimple_fold_builtin_strncpy): Likewise.
2304
2305 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2306
2307 PR bootstrap/62300
2308 * function.c (assign_parm_setup_reg): Remove erroneous checked
2309 cast to rtx_insn * on result of gen_extend_insn in favor of
2310 introducing a new local rtx "pat".
2311
2312 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2313
2314 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2315 to silence warning.
2316 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2317
2318 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2319
2320 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2321 (next_insn): Likewise.
2322 * emit-rtl.c (next_insn): Likewise.
2323 (previous_insn): Likewise.
2324 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2325 "insn" and "next" from rtx to rtx_insn *.
2326 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2327 "insn", "insn1", "vliw_start", "prologue_end_note",
2328 "last_insn_in_packet".
2329
2330 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2331
2332 * shrink-wrap.h (active_insn_between): Strengthen both params from
2333 rtx to rtx_insn *.
2334 * function.c (active_insn_between): Likewise.
2335
2336 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2337
2338 * genattr.c (main): When writing out insn-attr.h, strengthen param
2339 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2340 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2341 writing out the definition of dfa_clear_single_insn_cache to the
2342 generated insn-automata.c
2343
2344 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2345
2346 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2347 rtx to rtx_insn *.
2348 (incr_ticks_for_insn): Likewise.
2349 (init_resource_info): Likewise.
2350
2351 * resource.c (init_resource_info): Likewise.
2352 (clear_hashed_info_for_insn): Likewise.
2353 (incr_ticks_for_insn): Likewise.
2354
2355 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2356 rtx to rtx_insn *.
2357 (steal_delay_list_from_target): Use methods of "seq".
2358 (try_merge_delay_insns): Use methods of "merged_insns".
2359 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2360 (reorg_redirect_jump): Likewise for param "jump".
2361
2362 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2363
2364 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2365 rtx to rtx_insn *.
2366 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2367 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2368 "set_insn".
2369 (s390_mainpool_finish): In three places, split out a local rtx
2370 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2371 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2372 and split another local rtx "insn" out into rtx "pat" and
2373 rtx_insn * "insn".
2374 * config/sh/sh.c (output_branchy_insn): Rather than working
2375 directly on operands[9], introduce local rtx_code_label *
2376 variables named "lab" in two places, working on them, and then
2377 assigning them to operands[9], so that the intervening operations
2378 are known by the type system to be on insns.
2379
2380 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2381
2382 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2383 const rtx_insn *.
2384
2385 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2386 in invocation of INSN_HAS_LOCATION.
2387
2388 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2389
2390 * config/rs6000/altivec.h (vec_xl): New #define.
2391 (vec_xst): Likewise.
2392 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2393 (XXSPLTD_V2DI): Likewise.
2394 (DIV_V2DI): Likewise.
2395 (UDIV_V2DI): Likewise.
2396 (MUL_V2DI): Likewise.
2397 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2398 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2399 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2400 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2401 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2402 (UNSPEC_VSX_DIVSD): Likewise.
2403 (UNSPEC_VSX_DIVUD): Likewise.
2404 (UNSPEC_VSX_MULSD): Likewise.
2405 (vsx_mul_v2di): New insn-and-split.
2406 (vsx_div_v2di): Likewise.
2407 (vsx_udiv_v2di): Likewise.
2408 (vsx_xxspltd_<mode>): New insn.
2409
2410 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2411
2412 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2413 NEXT_INSN.
2414 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2415 (NEXT_INSN): Likewise.
2416 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2417 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2418 const rtx_insn *.
2419 (no_labels_between_p): Likewise for both params.
2420
2421 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2422 cast when using NEXT_INSN on operands[2].
2423 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2424 "insn" from rtx to rtx_insn *, adding a checked cast.
2425 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2426 rtx_insn *.
2427 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2428 for third param.
2429 (arc_text_label): Likewise for param "insn".
2430 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2431 "insn".
2432 (arc_ccfsm_record_condition): Likewise for param "jump".
2433 (arc_text_label): Likewise for local "label".
2434 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2435 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2436 a method for typesafety. Add a checked cast.
2437 * config/arc/constraints.md (Clb): Add a checked cast when getting
2438 the CODE_LABEL from a LABEL_REF.
2439 * config/arm/arm.c (require_pic_register): Strengthen locals
2440 "seq", "insn" from rtx to rtx_insn *.
2441 (create_fix_barrier): Likewise for locals "selected", "next".
2442 (thumb1_reorg): Likewise for locals "prev", "insn".
2443 (arm_expand_prologue): Likewise for local "last".
2444 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2445 operands[0].
2446 (thumb2_output_casesi): Likewise for operands[2].
2447 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2448 strengthen local "insn" from rtx to rtx_insn *.
2449 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2450 type and param "insn".
2451 (find_prev_insn_start): Likewise.
2452 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2453 "prev".
2454 (gen_one_bundle): Likewise for loal "t".
2455 (find_load): Likewise for param "insn".
2456 (workaround_speculation): Likewise for locals "insn", "next",
2457 "target", "next_tgt".
2458 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2459 and for locals "insn", "within", "last".
2460 (count_unit_reqs): Likewise for params "head", "tail" and local
2461 "insn".
2462 (try_rename_operands): Likewise for params "head", "tail".
2463 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2464 (struct c6x_sched_context): Likewise for fields
2465 "last_scheduled_insn", "last_scheduled_iter0".
2466 (init_sched_state): Replace NULL_RTX with NULL.
2467 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2468 to rtx_insn *.
2469 (undo_split_delayed_nonbranch): Likewise for param and for local
2470 "prev".
2471 (conditionalize_after_sched): Likewise for local "insn".
2472 (bb_earliest_end_cycle): Likewise.
2473 (filter_insns_above): Likewise for locals "insn", "next".
2474 (hwloop_optimize): Remove redundant checked cast.
2475 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2476 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2477 NULL_RTX with NULL.
2478 (cris_simple_epilogue): Likewise.
2479 (cris_expand_prologue): Likewise.
2480 (cris_expand_epilogue): Likewise.
2481 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2482 local "insn" from rtx to rtx_insn *.
2483 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2484 (struct frv_packet_group): Likewise for the elements within array
2485 fields "insns", "sorted", and for field "nop".
2486 (frv_packet): Likewise for the elements within array field
2487 "insns".
2488 (frv_add_insn_to_packet): Likewise for param "insn".
2489 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2490 "last".
2491 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2492 (frv_sort_insn_group_1): Likewise for local "insn".
2493 (frv_optimize_membar_local): Likewise.
2494 (frv_align_label): Likewise for locals "x", "last", "barrier",
2495 "label".
2496 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2497 local.
2498 (ia64_sched_init): Likewise for local "insn".
2499 (scheduled_good_insn): Likewise for param "last".
2500 (struct _ia64_sched_context): Likewise for field
2501 "last_scheduled_insn".
2502 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2503 (struct bundle_state): Likewise for field "insn".
2504 (issue_nops_and_insn): Likewise for param "insn".
2505 (get_next_important_insn): Likewise for return type and both
2506 params.
2507 (ia64_add_bundle_selector_before): Likewise for param "insn".
2508 (bundling): Likewise for params "prev_head_insn", "tail" and
2509 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2510 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2511 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2512 Strengthen final param from rtx to rtx_insn *.
2513 (iq2000_move_1word): Likewise for second param.
2514 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2515 param "cur_insn" and local "next_insn".
2516 (iq2000_move_1word): Likewise for param "insn".
2517 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2518 casts when using NEXT_INSN on operands[1].
2519 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2520 "insn" from rtx to rtx_insn *.
2521 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2522 "x", introducing local rtx_insn * "insn" for when working with the
2523 CODE_LABEL of the LABEL_REF.
2524 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2525 rtx_insn *.
2526 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2527 param.
2528 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2529 type.
2530 (conditionalize_block): Likewise for return type and param.
2531 (mcore_is_dead): Likewise for param "first" and local "insn".
2532 (emit_new_cond_insn): Likewise for return type.
2533 (conditionalize_block): Likewise for return type, param, and
2534 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2535 "newinsn".
2536 (conditionalize_optimization): Likewise for local "insn".
2537 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2538 using NEXT_INSN.
2539 * config/microblaze/microblaze.md: Add checked casts when using
2540 NEXT_INSN.
2541 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2542 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2543 and rtx_insn * "insn".
2544 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2545 checked cast when using NEXT_INSN on operands[2].
2546 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2547 local "insn" from rtx to rtx_insn *.
2548 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2549 Likewise.
2550 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2551 Add a checked cast when using NEXT_INSN on operands[1].
2552 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2553 rtx to rtx_insn *.
2554 (pa_output_cbranch): Likewise for final param.
2555 (pa_output_lbranch): Likewise for second param.
2556 (pa_output_bb): Likewise for third param.
2557 (pa_output_bvb): Likewise.
2558 (pa_output_dbra): Likewise for second param.
2559 (pa_output_movb): Likewise.
2560 (pa_output_parallel_movb): Likewise.
2561 (pa_output_parallel_addb): Likewise.
2562 (pa_output_millicode_call): Likewise for first param.
2563 (pa_output_mul_insn): Likewise for second param.
2564 (pa_output_div_insn): Likewise for third param.
2565 (pa_output_mod_insn): Likewise for second param.
2566 (pa_jump_in_call_delay): Likewise for param.
2567 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2568 (pa_output_div_insn): Likewise.
2569 (pa_output_mod_insn): Likewise.
2570 (pa_output_cbranch): Likewise.
2571 (pa_output_lbranch): Likewise.
2572 (pa_output_bb): Likewise.
2573 (pa_output_bvb): Likewise.
2574 (pa_output_dbra): Likewise.
2575 (pa_output_movb): Likewise.
2576 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2577 to simplify and for typesafety.
2578 (pa_output_call): Use method of rtx_sequence *.
2579 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2580 (pa_jump_in_call_delay): Likewise.
2581 (pa_output_parallel_movb): Likewise.
2582 (pa_output_parallel_addb): Likewise.
2583 (pa_following_call): Likewise.
2584 (pa_combine_instructions): Likewise for locals "anchor",
2585 "floater".
2586 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2587 locals "start", "end".
2588 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2589 param "insn" and local "local_insn".
2590 (picochip_final_prescan_insn): Likewise for local "local_insn".
2591 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2592 local "insn".
2593 (uses_TOC): Likewise.
2594 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2595 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2596 splitting out to more tightly-scoped locals, 3 as rtx and one as
2597 rtx_insn *.
2598 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2599 to rtx_insn *.
2600 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2601 where needed.
2602 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2603 to rtx_insn *.
2604 (fixup_addr_diff_vecs): Likewise.
2605 (reg_unused_after): Likewise for param 2.
2606 (sh_can_redirect_branch): Likewise for both params.
2607 (check_use_sfunc_addr): Likewise for param 1.
2608 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2609 (find_barrier): Likewise for local "last_got".
2610 (gen_block_redirect): Likewise for return type, param "jump" and
2611 locals "prev", "scan", "next", "insn".
2612 (struct far_branch): Likewise for fields "near_label",
2613 "insert_place", "far_label".
2614 (gen_far_branch): Likewise for local "jump".
2615 (fixup_addr_diff_vecs): Likewise for param "first" and locals
2616 "insn", "prev".
2617 (barrier_align): Likewise for param and for locals "prev", "x".
2618 Introduce local rtx_sequence * "prev_seq" and use insn method for
2619 typesafety and clarity.
2620 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2621 (get_dest_uid): Likewise for local "dest".
2622 (split_branches): Likewise for locals "next", "beyond", "label",
2623 "block", "far_label". Add checked casts when assigning to
2624 bp->far_label and "far_label".
2625 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2626 (sequence_insn_p): Likewise.
2627 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
2628 more loop-scoped rtx "insn" when walking LABEL_REFS.
2629 (sh_can_redirect_branch): Strengthen both params from rtx to
2630 rtx_insn *.
2631 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
2632 new local rtx_sequence * "seq" via a dyn_cast, and use a method
2633 for clarity and typesafety.
2634 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2635 "insn" from rtx to rtx_insn *.
2636 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2637 when using NEXT_INSN on the CODE_LABEL in operands[2].
2638 (define_insn "casesi_worker_2"): Likewise.
2639 (define_insn "casesi_shift_media"): Likewise.
2640 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2641 operands[3].
2642 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2643 Strengthen field "insn" from rtx to rtx_insn *.
2644 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2645 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2646 param "start_insn" and local "start_insn".
2647 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2648 field "insn".
2649 (find_set_of_reg_bb): Likewise for param "insn".
2650 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2651 (trace_reg_uses): Likewise for param "start_insn".
2652 (sh_treg_combine::cbranch_trace): Likewise for field
2653 "cbranch_insn".
2654 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2655 param "insn".
2656 (sh_treg_combine::record_set_of_reg): Likewise for param
2657 "start_insn" and local "i".
2658 (sh_treg_combine::can_remove_cstore): Likewise for local
2659 "prev_insn".
2660 (sh_treg_combine::try_optimize_cbranch): Likewise for param
2661 "insn".
2662 (sh_treg_combine::execute): Likewise for local "i".
2663 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2664 param.
2665 (sparc_check_64): Likewise for second param.
2666 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2667 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
2668 dyn_cast, using its insn method for typesafety and clarity.
2669 (empty_delay_slot): Strengthen param "insn" from rtx to
2670 rtx_insn *.
2671 (set_extends): Likewise.
2672 (sparc_check_64): Likewise.
2673 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2674 for locals "seq", "last_insn".
2675 (combine_bnp): Likewise for param "insn".
2676 (xstormy16_reorg): Likewise for local "insn".
2677 * config/v850/v850.c (substitute_ep_register): Likewise for params
2678 "first_insn", "last_insn" and local "insn".
2679 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2680 elements of "regs" array, and local "insn".
2681 * except.c (emit_note_eh_region_end): Likewise for param "insn".
2682 * final.c (final_sequence): Strengthen this global from rtx to
2683 rtx_sequence *.
2684 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2685 rtx_insn *.
2686 (final_scan_insn): Update assignment to "final_sequence" to be
2687 from "seq", the cast version of "body", for type-safety.
2688 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2689 "insns" from rtx to rtx_insn *.
2690 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2691 * genattr.c (main): When writing out generated insn-attr.h,
2692 strengthen params 1 and 3 of eligible_for_delay,
2693 eligible_for_annul_true, eligible_for_annul_false from rtx to
2694 rtx_insn *.
2695 * genattrtab.c (write_eligible_delay): Likewise when writing out
2696 generated insn-attrtab.c; also local "insn" the generated
2697 functions.
2698 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2699 to rtx_insn *.
2700 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2701 "start_label" from rtx to rtx_insn *.
2702 * ira.c (decrease_live_ranges_number): Likewise for local "p".
2703 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2704 "insns" and local "insn".
2705 (validate_equiv_mem): Likewise for param "start" and local "insn".
2706 (memref_used_between_p): Likewise for params "start", "end" and
2707 local "insn".
2708 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2709 final param.
2710 * loop-doloop.c (doloop_optimize): Within region guarded by
2711 INSN_P (doloop_pat), introduce a new local rtx_insn *
2712 "doloop_insn" via a checked cast, and use it for typesafety,
2713 eventually writing the value back into doloop_pat.
2714 * output.h (final_sequence): Strengthen this global from rtx to
2715 rtx_sequence *.
2716 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2717 reintroducing "insn" as an rtx_insn * via a checked cast.
2718 Strengthen param "attempt" and local "new_insn"from rtx to
2719 rtx_insn *.
2720 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2721 to rtx_insn *.
2722 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2723 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2724 "p" in favor of more tightly-scoped replacements, sometimes rtx
2725 and sometimes rtx_insn *, as appropriate.
2726 (delete_output_reload): Eliminate top-level rtx "i1", splitting
2727 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2728 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
2729 local "trial" from rtx to rtx_insn *.
2730 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2731 rtx to rtx_insn *. Strenghten local "pat" from rtx to
2732 rtx_sequence * and use methods for clarity and typesafety.
2733 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2734 rtx to rtx_insn *. Strenghten local "li" from rtx to
2735 rtx_insn_list * and use its methods for clarity and typesafety.
2736 (steal_delay_list_from_target): Strengthen param "insn" from rtx
2737 to rtx_insn *.
2738 (steal_delay_list_from_fallthrough): Likewise.
2739 (try_merge_delay_insns): Likewise for param "thread" and locals
2740 "trial", "next_trial", "delay_insn".
2741 (redundant_insn): Likewise for param "target" and local "trial".
2742 (own_thread_p): Likewise for param "thread" and locals
2743 "active_insn", "insn".
2744 (get_label_before): Likewise for param "insn".
2745 (fill_simple_delay_slots): Likewise for local "new_label"; use
2746 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2747 (label_before_next_insn): Strengthen return type and local "insn"
2748 from rtx to rtx_insn *.
2749 (relax_delay_slots): Likewise for locals "other", "tmp".
2750 (make_return_insns): Likewise for param "first" and locals "insn",
2751 "jump_insn", "prev". Move declaration of "pat" to its assignment
2752 and strengthen from rtx to rtx_sequence *. Use its methods for
2753 clarity and typesafety.
2754 * rtlanal.c (no_labels_between_p): Strengthen params from
2755 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
2756 rtx_insn *.
2757 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2758 from const_rtx to const rtx_insn *.
2759 (reg_set_between_p): Rename param "from_insn" to
2760 "uncast_from_insn", and reintroduce "from_insn" as a
2761 const rtx_insn * via a checked cast.
2762 (modified_between_p): Likewise for param "start" as "uncast_start".
2763 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2764 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2765 "tmp", head" from rtx to rtx_insn *.
2766 (recompute_rev_top_order): Likewise for local "insn".
2767 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2768 * store-motion.c (build_store_vectors): Likewise for local "insn".
2769 Strengthen local "st" from rtx to rtx_insn_list * and use methods
2770 for clarity and typesafety.
2771 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2772 rtx to rtx_insn *.
2773 (computation_cost): Likewise for local "seq".
2774 (get_address_cost): Likewise.
2775
2776 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2777
2778 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2779 const rtx_insn *.
2780 (label_is_jump_target_p): Likewise for second param.
2781
2782 * rtlanal.c (tablejump_p): Likewise for param "insn".
2783 (label_is_jump_target_p): Likewise for param "jump_insn".
2784
2785 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2786
2787 * rtl.h (find_first_parameter_load): Strengthen return type and
2788 both params from rtx to rtx_insn *.
2789 * rtlanal.c (find_first_parameter_load): Strengthen return type,
2790 both params and locals "before", "first_set" from rtx to
2791 rtx_insn *. Remove now-redundant cast.
2792 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2793
2794 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2795
2796 * rtl.h (find_last_value): Delete.
2797 * rtlanal.c (find_last_value): Delete.
2798
2799 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2800
2801 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2802 from rtx to rtx_insn *.
2803 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2804 rtx "note" with new local rtx_insn * "new_head" when calculating
2805 head insn of new basic block.
2806 * combine.c (combine_split_insns): Strengthen return type and local
2807 "ret" from rtx to rtx_insn *.
2808 (likely_spilled_retval_p): Likewise for locals "use" and "p".
2809 (try_combine): Eliminate local "m_split", splitting into new
2810 locals "m_split_insn" and "m_split_pat".
2811 (find_split_point): Strengthen local "seq" from rtx into
2812 rtx_insn *.
2813 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2814 locals "label", "branch".
2815 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2816 for local "insn".
2817 (define_expand "umulsi3_highpart"): Likewise for local "insn".
2818 * dse.c (note_add_store_info): Likewise for fields "first",
2819 "current".
2820 (note_add_store): Likewise for local "insn".
2821 (emit_inc_dec_insn_before): Likewise for locals "insn",
2822 "new_insn", "cur".
2823 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2824 (replace_read): Likewise for locals "insns", "this_insn".
2825 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2826 (notice_eh_throw): Likewise for param "insn".
2827 (before_next_cfi_note): Likewise for return type, param, and local
2828 "prev".
2829 (connect_traces): Likewise for local "note".
2830 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2831 (verify_rtl_sharing): Likewise.
2832 (unshare_all_rtl_in_chain): Likewise for param "insn".
2833 (get_first_nonnote_insn): Likewise for local "insn".
2834 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
2835 "seq" and use its methods to clarify things.
2836 (next_insn): Strengthen return type from rtx to rtx_insn *.
2837 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2838 local rtx_insn * using a checked cast, dropping a checked cast
2839 made redundant by this change. Use a cast to and method of
2840 rtx_sequence to clarify the code.
2841 (previous_insn): Rename param "insn" to "uncast_insn" and
2842 reintroduce "insn" as a local rtx_insn * using a checked cast,
2843 dropping a checked cast made redundant by this change. Use a cast
2844 to and method of rtx_sequence to clarify the code.
2845 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2846 reintroduce "insn" as a local rtx_insn * using a checked cast,
2847 dropping a checked cast made redundant by this change.
2848 (next_nonnote_insn_bb): Likewise.
2849 (prev_nonnote_insn): Likewise.
2850 (prev_nonnote_insn_bb): Likewise.
2851 (next_nondebug_insn): Likewise.
2852 (prev_nondebug_insn): Likewise.
2853 (next_nonnote_nondebug_insn): Likewise.
2854 (prev_nonnote_nondebug_insn): Likewise.
2855 (next_real_insn): Likewise.
2856 (prev_real_insn): Likewise.
2857 (next_active_insn): Likewise.
2858 (prev_active_insn): Likewise.
2859 (next_cc0_user): Likewise. Use rtx_sequence and a method for
2860 clarity.
2861 (prev_cc0_setter): Likewise.
2862 (try_split): Rename param "trial" to "uncast_trial" and
2863 reintroduce "insn" as a local rtx_insn * using a checked cast,
2864 dropping checked casts made redundant by this change.
2865 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2866 rtx to rtx_insn *.
2867 (remove_insn): Rename param "insn" to "uncast_insn" and
2868 reintroduce "insn" as a local rtx_insn * using a checked cast.
2869 (emit_pattern_after_setloc): Likewise for param "after", as
2870 "uncast_after".
2871 (emit_pattern_after): Likewise. Strengthen local "prev" from
2872 rtx to rtx_insn *.
2873 (emit_pattern_before_setloc): Rename param "before" to
2874 "uncast_before" and reintroduce "before" as a local rtx_insn *
2875 using a checked cast. Strengthen locals "first", "last" from
2876 rtx to rtx_insn *.
2877 (emit_pattern_before): Likewise rename/cast param "before" to
2878 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2879 * except.c (copy_reg_eh_region_note_forward): Strengthen param
2880 "first" and local "insn" from rtx to rtx_insn *.
2881 (copy_reg_eh_region_note_backward): Likewise for param "last"
2882 and local "insn".
2883 * expr.c (fixup_args_size_notes): Rename param "last" to
2884 "uncast_last" and reintroduce "last" as a local rtx_insn *
2885 using a checked cast. Strengthen local "insn" from rtx to
2886 rtx_insn *.
2887 * function.c (set_insn_locations): Strengthen param "insn" from
2888 rtx to rtx_insn *.
2889 (record_insns): Likewise for param "insns" and local "tmp".
2890 (active_insn_between): Rename param "tail" to
2891 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2892 using a checked cast.
2893 (thread_prologue_and_epilogue_insns): Split out top-level local
2894 rtx "seq" into three different rtx_insn * locals. Strengthen
2895 local "prologue_seq" from rtx to rtx_insn *.
2896 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2897 from rtx to rtx_insn *.
2898 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2899 (priority): Likewise for locals "prev_first", "twin".
2900 (setup_insn_max_reg_pressure): Likewise for param "after".
2901 (sched_setup_bb_reg_pressure_info): Likewise.
2902 (no_real_insns_p): Strengthen params from const_rtx to
2903 const rtx_insn *.
2904 (schedule_block): Strengthen local "next_tail" from rtx to
2905 rtx_insn *.
2906 * ifcvt.c (find_active_insn_before): Strengthen return type and
2907 param "insn" from rtx to rtx_insn *.
2908 (find_active_insn_after): Likewise.
2909 (cond_exec_process_insns): Likewise for param "start" and local "insn".
2910 (cond_exec_process_if_block): Likewise for locals "then_start",
2911 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2912 (noce_process_if_block): Likewise for local "jump".
2913 (merge_if_block): Likewise for two locals named "end".
2914 (cond_exec_find_if_block): Likewise for local "last_insn".
2915 * jump.c (delete_related_insns): Rename param "insn" to
2916 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2917 checked cast. Strengthen local "p" from rtx to rtx_insn *.
2918 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2919 NULL.
2920 (split_reg): Likewise.
2921 * lra.c (lra_process_new_insns): Likewise.
2922 * modulo-sched.c (permute_partial_schedule): Strengthen param
2923 "last" from rtx to rtx_insn *.
2924 * optabs.c (add_equal_note): Likewise for param "insns" and local
2925 "last_insn".
2926 (expand_binop_directly): Add checked casts to rtx_insn * within
2927 NEXT_INSN (pat) uses.
2928 (expand_unop_direct): Likewise.
2929 (maybe_emit_unop_insn): Likewise.
2930 * recog.c (peep2_attempt): Strengthen locals "last",
2931 "before_try", "x" from rtx to rtx_insn *.
2932 * reorg.c (optimize_skip): Strengthen return type and local
2933 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
2934 and locals "trial", "next_trial" from rtx to rtx_insn *.
2935 * resource.c (next_insn_no_annul): Strengthen return type and
2936 param "insn" from rtx to rtx_insn *. Use a cast to and method of
2937 rtx_sequence to clarify the code.
2938 (mark_referenced_resources): Add a checked cast to rtx_insn *
2939 within PREV_INSN (x).
2940 (find_dead_or_set_registers): Strengthen return type, param
2941 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
2942 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
2943 to rtx_insn **.
2944 (mark_target_live_regs): Strengthen params "insns" and "target",
2945 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
2946 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2947 the code.
2948 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2949 from rtx to rtx_insn *.
2950 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2951 from rtx to rtx_insn *.
2952 (copy_reg_eh_region_note_backward): Likewise.
2953 (unshare_all_rtl_in_chain): Likewise for sole param.
2954 (dump_rtl_slim): Strengthen second and third params from const_rtx
2955 to const rtx_insn *.
2956 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2957 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2958 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2959 "next_tail" from rtx to rtx_insn *.
2960 (begin_move_insn): Likewise for local "next".
2961 * sched-int.h (sched_free_deps): Likewise for first and second
2962 params.
2963 (no_real_insns_p): Strengthen both params from const_rtx to
2964 const rtx_insn *.
2965 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2966 rtx to rtx_insn *.
2967 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2968 "next_tail".
2969 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2970 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2971 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2972 rtx_insn *.
2973 (debug_rtl_slim): Strengthen params "first" and "last" from
2974 const_rtx to const rtx_insn *.
2975 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2976 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2977 (convert_to_simple_return): Likewise for param "returnjump".
2978 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2979 "prologue_seq".
2980 (convert_to_simple_return): Likewise for param "returnjump".
2981 * valtrack.c (propagate_for_debug): Likewise for params
2982 "insn", "last".
2983 * valtrack.h (propagate_for_debug): Likewise for second param.
2984
2985 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2986
2987 * output.h (insn_current_reference_address): Strengthen param
2988 from rtx to rtx_insn *.
2989 * final.c (insn_current_reference_address): Likewise.
2990
2991 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2992
2993 * basic-block.h (inside_basic_block_p): Strengthen param from
2994 const_rtx to const rtx_insn *.
2995 * cfgbuild.c (inside_basic_block_p): Likewise.
2996
2997 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2998
2999 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3000 rtx_insn *.
3001 (get_trace_info): Likewise for param "insn".
3002 (save_point_p): Likewise.
3003 (maybe_record_trace_start): Likewise for both params.
3004 (maybe_record_trace_start_abnormal): Likewise.
3005 (create_trace_edges): Likewise for sole param and for three of the
3006 locals named "lab".
3007 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3008 to rtx_insn *, and update a call to pat->element to pat->insn.
3009
3010 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3011
3012 * function.h (struct expr_status): Convert field "x_forced_labels"
3013 from rtx_expr_list * to rtx_insn_list *.
3014
3015 * cfgbuild.c (make_edges): Convert local "x" from an
3016 rtx_expr_list * to an rtx_insn_list *, replacing use of
3017 "element" method with "insn" method.
3018 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3019 * except.c (sjlj_emit_dispatch_table): Replace use of
3020 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3021 forced_labels.
3022 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3023 rtx_expr_list * to an rtx_insn_list *, replacing use of
3024 "element" method with "insn" method.
3025 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3026 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3027 rtx_insn *, adding a checked cast. Replace use of
3028 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3029 forced_labels.
3030 (expand_label): Likewise for local "label_r".
3031
3032 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3033
3034 * function.h (struct rtl_data): Convert field
3035 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3036 rtx_insn_list *.
3037 * rtl.h (remove_node_from_insn_list): New prototype.
3038
3039 * builtins.c (expand_builtin): When prepending to
3040 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3041 gen_rtx_EXPR_LIST.
3042 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3043 to rtx_insn_list *, and use its "insn" method rather than
3044 "element" method.
3045 * cfgrtl.c (delete_insn): Use new function
3046 remove_node_from_insn_list rather than
3047 remove_node_from_expr_list.
3048 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3049 to rtx_insn_list *, and use its "insn" method rather than
3050 "element" method.
3051 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3052 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3053 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3054 from remove_node_from_expr_list.
3055 * stmt.c (expand_label): When prepending to
3056 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3057 gen_rtx_EXPR_LIST.
3058
3059 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3060
3061 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3062 and "x_naked_return_label" from rtx to rtx_code_label *.
3063
3064 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3065
3066 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3067 (SET_NEXT_INSN): Likewise.
3068 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3069
3070 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3071 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3072 to split out the SEQUENCE from local "bundle", strengthening the
3073 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3074 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3075 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3076 and the type of the elements of the "slot" array from rtx to
3077 rtx_insn *.
3078 (reorg_split_calls): Likewise for locals "insn" and "next", and
3079 the type of the elements of the "slot" array.
3080
3081 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3082 array.
3083 (frv_function_prologue): Likewise for locals "insn", "next",
3084 "last_call".
3085 (frv_register_nop): Introduce a local "nop_insn" to be the
3086 rtx_insn * containing rtx "nop".
3087
3088 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3089 used as an insn and sometimes as a pattern, so rename it to
3090 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3091 using it where dealing with the core insn.
3092
3093 * config/picochip/picochip.c (reorder_var_tracking_notes):
3094 Strengthen locals "insn", "next", "last_insn", "queue",
3095 "next_queue", "prev" from rtx to rtx_insn *.
3096
3097 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3098 the second param is an rtx_insn ** rather than an rtx **.
3099 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3100 from rtx to rtx_sequence *, and introduce local named "sequence",
3101 using methods of rtx_sequence to clarify the code.
3102 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3103 use its methods.
3104 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3105 Rename param "after" to "uncast_after", reintroducing "after" as a
3106 local rtx_insn * with a checked cast.
3107 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3108 reintroducing "after" as a local rtx_insn * with a checked cast.
3109 Strengthen local "last" from rtx to rtx_insn * and remove the
3110 now-redundant checked casts.
3111 (copy_delay_slot_insn): Strengthen return type and param from rtx
3112 to rtx_insn *.
3113
3114 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3115 "last" from rtx to rtx_insn *.
3116
3117 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3118
3119 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3120 param from rtx to rtx_insn *.
3121
3122 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3123
3124 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3125 and local "insn" from rtx to rtx_insn *.
3126 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3127 (unfilled_slots_next): Likewise.
3128 (function_return_label): Strengthen from rtx to rtx_code_label *.
3129 (function_simple_return_label): Likewise.
3130 (first_active_target_insn): Strengthen return type and param from
3131 rtx to rtx_insn *.
3132 (find_end_label): Strengthen return type from rtx to
3133 rtx_code_label *; strengthen locals as appropriate.
3134 (emit_delay_sequence): Strengthen return type, param "insn" and
3135 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3136 and local "li" from rtx to rtx_insn_list *, using methods of
3137 rtx_insn_list for clarity and typesafety.
3138 (add_to_delay_list): Strengthen return type and param "insn" from
3139 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3140 rtx_insn_list * and use methods of rtx_insn_list.
3141 (delete_from_delay_slot): Strengthen return type, param "insn",
3142 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3143 Strengthen local "seq" from rtx to rtx_sequence *, and local
3144 "delay_list" from rtx to rtx_insn_list *, using methods of
3145 rtx_sequence for clarity and type-safety.
3146 (delete_scheduled_jump): Add checked cast when invoking
3147 delete_from_delay_slot. Strengthen local "trial" from rtx to
3148 rtx_insn *.
3149 (optimize_skip): Strengthen return type and local "delay_list"
3150 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3151 rtx_insn *.
3152 (steal_delay_list_from_target): Strengthen return type, param
3153 "delay_list" and local "new_delay_list" from rtx to
3154 rtx_insn_list *. Strengthen param "seq" from rtx to
3155 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3156 rtx_insn **.
3157 Split out local "temp" into multiple more-tightly scoped locals:
3158 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3159 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3160 Strengthen locals named "trial" from rtx to rtx_insn *.
3161 (steal_delay_list_from_fallthrough): Strengthen return type and
3162 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3163 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3164 Strengthen local "trial" from rtx to rtx_insn *.
3165 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3166 to rtx_insn_list * and use its methods. Strengthen local "pat"
3167 from rtx to rtx_sequence * and use its methods. Strengthen locals
3168 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3169 (get_label_before): Strengthen return type and local "label" from
3170 rtx to rtx_insn *.
3171 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3172 "next_trial", "next", prev". Strengthen local "delay_list" from
3173 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3174 rtx_insn **.
3175 (follow_jumps): Strengthen return type, param "label" and locals
3176 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3177 (fill_slots_from_thread): Strengthen return type, param
3178 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3179 "insn", "thread", "opposite_thread" and locals "new_thread",
3180 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3181 "sequence" from a checked cast to rtx_sequence so that we can call
3182 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3183 with an rtx_sequence *.
3184 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3185 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3186 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3187 (relax_delay_slots): Strengthen param "first" and locals "insn",
3188 "next", "trial", "delay_insn", "target_label" from rtx to
3189 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3190 Introduce a local "trial_seq" for PATTERN (trial) of type
3191 rtx_sequence *, in both cases using methods of rtx_sequence.
3192 (dbr_schedule): Strengthen param "first" and locals "insn",
3193 "next", "epilogue_insn" from rtx to rtx_insn *.
3194
3195 2014-08-28 Richard Biener <rguenther@suse.de>
3196
3197 PR tree-optimization/62283
3198 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3199 Do not peel loops for alignment where the vector loop likely
3200 doesn't run at least VF times.
3201
3202 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3203
3204 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3205 important_candidates. Consider all important candidates if
3206 IVS doesn't give any result. Remove check on ivs->upto.
3207 (try_add_cand_for): Call iv_ca_add_use only once.
3208
3209 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3210 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3211 Anna Tikhonova <anna.tikhonova@intel.com>
3212 Ilya Tocar <ilya.tocar@intel.com>
3213 Andrey Turetskiy <andrey.turetskiy@intel.com>
3214 Ilya Verbin <ilya.verbin@intel.com>
3215 Kirill Yukhin <kirill.yukhin@intel.com>
3216 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3217
3218 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3219 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3220 masking.
3221 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3222 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3223 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3224 (define_insn "*mul<mode>3"): Add EVEX version.
3225
3226 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3227 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3228 Anna Tikhonova <anna.tikhonova@intel.com>
3229 Ilya Tocar <ilya.tocar@intel.com>
3230 Andrey Turetskiy <andrey.turetskiy@intel.com>
3231 Ilya Verbin <ilya.verbin@intel.com>
3232 Kirill Yukhin <kirill.yukhin@intel.com>
3233 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3234
3235 * config/i386/sse.md
3236 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3237 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3238 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3239 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3240 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3241 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3242 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3243 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3244 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3245 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3246 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3247 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3248 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3249 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3250 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3251 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3252
3253 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3254 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3255 Anna Tikhonova <anna.tikhonova@intel.com>
3256 Ilya Tocar <ilya.tocar@intel.com>
3257 Andrey Turetskiy <andrey.turetskiy@intel.com>
3258 Ilya Verbin <ilya.verbin@intel.com>
3259 Kirill Yukhin <kirill.yukhin@intel.com>
3260 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3261
3262 * config/i386/sse.md
3263 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3264 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3265 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3266
3267 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3268 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3269 Anna Tikhonova <anna.tikhonova@intel.com>
3270 Ilya Tocar <ilya.tocar@intel.com>
3271 Andrey Turetskiy <andrey.turetskiy@intel.com>
3272 Ilya Verbin <ilya.verbin@intel.com>
3273 Kirill Yukhin <kirill.yukhin@intel.com>
3274 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3275
3276 * config/i386/sse.md
3277 (define_mode_iterator VI128_256): New.
3278 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3279
3280 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3281 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3282 Anna Tikhonova <anna.tikhonova@intel.com>
3283 Ilya Tocar <ilya.tocar@intel.com>
3284 Andrey Turetskiy <andrey.turetskiy@intel.com>
3285 Ilya Verbin <ilya.verbin@intel.com>
3286 Kirill Yukhin <kirill.yukhin@intel.com>
3287 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3288
3289 * config/i386/sse.md
3290 (define_mode_iterator VI8_256_512): New.
3291 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3292 Ditto.
3293 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3294 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3295 Ditto.
3296 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3297
3298 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3299
3300 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3301 pointer to the cumulative reloc value and return the value for
3302 this reloc instead.
3303 (compute_reloc_for_rtx): Take a const_rtx. Call
3304 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3305 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3306 for_each_rtx for the CONST case.
3307
3308 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3309
3310 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3311 (mark_constants_in_pattern): ...this new function to iterate over
3312 all the subrtxes.
3313 (mark_constants): Update accordingly.
3314
3315 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3316
3317 * varasm.c: Include rtl-iter.h.
3318 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3319 Remove the pointer to the cumulative hashval_t and just return
3320 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3321 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3322 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3323
3324 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3325
3326 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3327 Give real type of data parameter. Remove return value.
3328 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3329 to iterate over subrtxes.
3330
3331 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3332
3333 * var-tracking.c (use_narrower_mode_test): Turn from being a
3334 for_each_rtx callback to being a function that examines each
3335 subrtx itself.
3336 (adjust_mems): Update accordingly.
3337
3338 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3339
3340 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3341 callback to being a function that examines each subrtx itself.
3342 Remove handling of null rtxes.
3343 (add_uses): Update accordingly.
3344
3345 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3346
3347 * var-tracking.c: Include rtl-iter.h.
3348 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3349 to being a function that examines each subrtx itself.
3350 (use_type): Update accordingly.
3351
3352 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3353
3354 * store-motion.c: Include rtl-iter.h.
3355 (extract_mentioned_regs_1): Delete.
3356 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3357 for_each_rtx to iterate over subrtxes.
3358
3359 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3360
3361 * sel-sched.c: Include rtl-iter.h
3362 (count_occurrences_1): Delete.
3363 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3364 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3365
3366 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3367
3368 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3369 * rtlanal.c (tls_referenced_p_1): Delete.
3370 (tls_referenced_p): Take a const_rtx rather than an rtx.
3371 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3372
3373 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3374
3375 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3376 (for_each_inc_dec): Take an rtx rather than an rtx *.
3377 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3378 (cselib_record_sets): Likewise.
3379 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3380 (check_for_inc_dec): Likewise.
3381 * rtlanal.c (for_each_inc_dec_ops): Delete.
3382 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3383 rather than a pointer to the memory address. Replace
3384 for_each_inc_dec_ops argument with separate function and data
3385 arguments. Abort on non-autoinc addresses.
3386 (for_each_inc_dec_find_mem): Delete.
3387 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3388 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3389
3390 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3391
3392 * rtl.h (find_all_hard_regs): Declare.
3393 * rtlanal.c (find_all_hard_regs): New function.
3394 (record_hard_reg_uses_1): Delete.
3395 (record_hard_reg_uses): Use find_all_hard_regs.
3396
3397 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3398
3399 * rtl.h (replace_label_data): Delete.
3400 (replace_label): Take the old label, new label and update-nuses flag
3401 as direct arguments. Return void.
3402 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3403 * rtlanal.c (replace_label): Update interface as above. Handle
3404 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3405 iterator. Use FOR_EACH_SUBRTX_PTR.
3406
3407 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3408
3409 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3410 with const_rtx parameters.
3411 * varasm.c (get_pool_constant): Likewise.
3412 * rtlanal.c (rtx_referenced_p_1): Delete.
3413 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3414 Assert that the rtx we're looking for is nonnull. Allow searches
3415 for constant pool SYMBOL_REFs.
3416
3417 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3418
3419 * reload1.c: Include rtl-iter.h.
3420 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3421 to being a function that examines each subrtx itself.
3422 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3423
3424 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3425
3426 * regcprop.c (cprop_find_used_regs_1): Delete.
3427 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3428
3429 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3430
3431 * regcprop.c: Include rtl-iter.h.
3432 (kill_value): Take a const_rtx.
3433 (kill_autoinc_value): Turn from being a for_each_rtx callback
3434 to being a function that examines each subrtx itself.
3435 (copyprop_hardreg_forward_1): Update accordingly.
3436
3437 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3438
3439 * reg-stack.c: Include rtl-iter.h.
3440 (subst_stack_regs_in_debug_insn): Delete.
3441 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3442 instead of for_each_rtx.
3443
3444 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3445
3446 * lower-subreg.c (find_decomposable_subregs): Turn from being
3447 a for_each_rtx callback to being a function that examines each
3448 subrtx itself. Remove handling of null rtxes.
3449 (decompose_multiword_subregs): Update accordingly.
3450
3451 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3452
3453 * lower-subreg.c (adjust_decomposed_uses): Delete.
3454 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3455 Remove handling of null rtxes.
3456
3457 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3458
3459 * lower-subreg.c: Include rtl-iter.h.
3460 (resolve_subreg_use): Turn from being a for_each_rtx callback
3461 to being a function that examines each subrtx itself. Remove
3462 handling of null rtxes.
3463 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3464 (decompose_multiword_subregs): Likewise.
3465
3466 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3467
3468 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3469 to being a function that examines each subrtx itself.
3470 (simplify_using_condition, simplify_using_initial_values): Update
3471 accordingly.
3472
3473 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3474
3475 * loop-iv.c: Include rtl-iter.h.
3476 (find_single_def_src): New function.
3477 (replace_single_def_regs): Turn from being a for_each_rtx callback
3478 to being a function that examines each subrtx itself.
3479 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3480
3481 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3482
3483 * jump.c (eh_returnjump_p_1): Delete.
3484 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3485 Remove handling of null rtxes.
3486
3487 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3488
3489 * jump.c: Include rtl-iter.h.
3490 (returnjump_p_1): Delete.
3491 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3492 Remove handling of null rtxes.
3493
3494 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3495
3496 * ira.c: Include rtl-iter.h.
3497 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3498 to being a function that examines each subrtx itself. Remove
3499 handling of null rtxes.
3500 (update_equiv_regs): Update call accordingly.
3501
3502 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3503
3504 * fwprop.c: Include rtl-iter.h.
3505 (varying_mem_p): Turn from being a for_each_rtx callback to being
3506 a function that examines each subrtx itself.
3507 (propagate_rtx): Update accordingly.
3508
3509 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3510
3511 * function.c: Include rtl-iter.h
3512 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3513 callback to being a function that examines each subrtx itself.
3514 Return the changed flag.
3515 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3516 (instantiate_virtual_regs): Update calls accordingly.
3517
3518 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3519
3520 * final.c: Include rtl-iter.h.
3521 (mark_symbol_ref_as_used): Delete.
3522 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3523 for_each_rtx.
3524
3525 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3526
3527 * emit-rtl.c: Include rtl-iter.h.
3528 (find_auto_inc): Turn from being a for_each_rtx callback to being
3529 a function that examines each subrtx itself. Assume the first operand
3530 to an RTX_AUTOINC is the automodified register.
3531 (try_split): Update call accordingly.
3532
3533 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3534
3535 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3536 Return a bool, inverting the result so that 0/false means "not ok".
3537 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3538 subrtxes of a CONST.
3539 (mem_loc_descriptor, add_const_value_attribute)
3540 (resolve_addr_in_expr): Update calls accordingly.
3541
3542 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3543
3544 * dwarf2out.c: Include rtl-iter.h.
3545 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3546 Remove unused data parameter. Return a bool, inverting the result
3547 so that 0/false means "not ok".
3548 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3549 instead of for_each_rtx.
3550
3551 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3552
3553 * dse.c: Include rtl-iter.h.
3554 (check_mem_read_rtx): Change void * parameter to real type.
3555 Remove return value.
3556 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3557 for_each_rtx. Don't handle null rtxes.
3558
3559 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3560
3561 * df-problems.c: Include rtl-iter.h.
3562 (find_memory): Turn from being a for_each_rtx callback to being
3563 a function that examines each subrtx itself. Continue to look for
3564 volatile references even after a nonvolatile one has been found.
3565 (can_move_insns_across): Update calls accordingly.
3566
3567 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3568
3569 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3570 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3571 to iterate over subrtxes. Return a bool rather than an int.
3572
3573 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3574
3575 * ddg.c: Include rtl-iter.h.
3576 (mark_mem_use_1): Rename to...
3577 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3578 instead of for_each_rtx.
3579 (mem_read_insn_p): Update accordingly.
3580
3581 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3582
3583 * cse.c (change_cc_mode_args): Delete.
3584 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3585 a function that examines each subrtx itself. Take the fields of
3586 change_cc_mode_args as argument and return void.
3587 (cse_change_cc_mode_insn): Update calls accordingly.
3588
3589 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3590
3591 * cse.c (is_dead_reg): Change argument to const_rtx.
3592 (dead_debug_insn_data): Delete.
3593 (is_dead_debug_insn): Expand commentary. Turn from being a
3594 for_each_rtx callback to being a function that examines
3595 each subrtx itself. Take the fields of dead_debug_insn_data
3596 as argument.
3597 (delete_trivially_dead_insns): Update call accordingly.
3598
3599 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3600
3601 * cse.c (check_for_label_ref): Move earlier in file. Turn from
3602 being a for_each_rtx callback to being a function that examines
3603 each subrtx itself.
3604 (cse_extended_basic_block): Update call accordingly.
3605
3606 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3607
3608 * cse.c (check_dependence_data): Delete.
3609 (check_dependence): Change from being a for_each_rtx callback to being
3610 a function that examines all subrtxes itself. Don't handle null rtxes.
3611 (invalidate): Update call accordingly.
3612
3613 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3614
3615 * cse.c: Include rtl-iter.h.
3616 (approx_reg_cost_1): Delete.
3617 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3618 Don't handle null rtxes.
3619
3620 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3621
3622 * cfgcleanup.c: Include rtl-iter.h.
3623 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3624 to being a function that examines each subrtx itself.
3625 (thread_jump): Update accordingly.
3626
3627 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3628
3629 * combine-stack-adj.c: Include rtl-iter.h.
3630 (record_stack_refs_data): Delete.
3631 (record_stack_refs): Turn from being a for_each_rtx callback
3632 to being a function that examines each subrtx itself.
3633 Take a pointer to the reflist. Invert sense of return value
3634 so that true means success and false means failure. Don't
3635 handle null rtxes.
3636 (combine_stack_adjustments_for_block): Update accordingly.
3637
3638 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3639
3640 * combine.c (record_truncated_value): Turn from being a for_each_rtx
3641 callback to a function that takes an rtx and returns a bool
3642 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3643 for_each_rtx.
3644
3645 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3646
3647 * combine.c: Include rtl-iter.h.
3648 (unmentioned_reg_p_1): Delete.
3649 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3650 Don't handle null rtxes.
3651
3652 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3653
3654 * calls.c: Include rtl-iter.h.
3655 (internal_arg_pointer_based_exp_1): Delete.
3656 (internal_arg_pointer_based_exp): Take a const_rtx.
3657 Use FOR_EACH_SUBRTX to iterate over subrtxes.
3658
3659 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3660
3661 * caller-save.c: Include rtl-iter.h.
3662 (add_used_regs_1): Delete.
3663 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3664 to iterate over subrtxes. Assert that any remaining pseudos
3665 have been spilled.
3666
3667 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3668
3669 * bt-load.c: Include rtl-iter.h.
3670 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3671 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
3672 to iterate over subrtxes.
3673 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3674 find_btr_use rather than btr_referenced_p.
3675
3676 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3677
3678 * alias.c: Include rtl-iter.h.
3679 (refs_newer_value_cb): Delete.
3680 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3681
3682 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3683
3684 * rtl-iter.h: New file.
3685 * rtlanal.c: Include it.
3686 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3687 (generic_subrtx_iterator <T>::add_single_to_queue)
3688 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3689 (generic_subrtx_iterator <T>::free_array): New functions.
3690 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3691 (generic_subrtx_iterator <const_rtx_accessor>)
3692 (generic_subrtx_iterator <rtx_var_accessor>
3693 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3694 (setup_reg_subrtx_bounds): New function.
3695 (init_rtlanal): Call it.
3696
3697 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3698
3699 PR target/62261
3700 * config/sh/sh.md (ashlsi3): Handle negative shift count for
3701 TARGET_SHMEDIA.
3702 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3703
3704 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
3705
3706 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3707
3708 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3709
3710 * rtl.h (JUMP_LABEL_AS_INSN): New.
3711
3712 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3713
3714 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3715 rtx_expr_list **.
3716 (alloc_EXPR_LIST): Strengthen return type from rtx to
3717 rtx_expr_list *.
3718 (remove_free_EXPR_LIST_node): Likewise for param.
3719 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3720 from rtx to rtx_expr_list *.
3721 * sched-int.h (struct deps_desc): Strengthen fields
3722 "pending_read_mems" and "pending_write_mems" from rtx to
3723 rtx_expr_list *.
3724
3725 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3726 rtx to rtx_expr_list *.
3727 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3728 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3729 rtx_expr_list **.
3730 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
3731 from rtx to rtx_expr_list *.
3732 * loop-iv.c (simplify_using_initial_values): Strengthen local
3733 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3734 "pnote_next" from rtx * to rtx_expr_list **.
3735 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
3736 param "exprp" from rtx * to rtx_expr_list **.
3737 (add_insn_mem_dependence): Strengthen local "mem_list" from
3738 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
3739 to rtx_expr_list *.
3740 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3741 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
3742 param "old_mems_p" from rtx * to rtx_expr_list **.
3743 * var-tracking.c (struct adjust_mem_data): Strengthen field
3744 "side_effects" from rtx to rtx_expr_list *.
3745 (adjust_insn): Replace NULL_RTX with NULL when assigning to
3746 rtx_expr_list *.
3747 (prepare_call_arguments): Likewise.
3748
3749 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3750
3751 * function.h (struct rtl_data): Strengthen field
3752 "x_stack_slot_list" from rtx to rtx_expr_list *.
3753
3754 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3755 when assigning to stack_slot_list.
3756
3757 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3758
3759 * function.h (struct rtl_data): Strengthen field
3760 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3761 * rtl.h (remove_node_from_expr_list): Strengthen second param from
3762 rtx * to rtx_expr_list **.
3763
3764 * cfgbuild.c (make_edges): In loop over
3765 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3766 rtx_expr_list *, and use methods of the latter class to clarify
3767 the code.
3768 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3769 rtx_expr_list *, and use methods of the latter class to clarify
3770 the code.
3771 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3772 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3773 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3774 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
3775 to rtx_expr_list *. Use methods of the latter class to clarify
3776 the code.
3777
3778 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3779
3780 * function.h (struct expr_status): Strengthen field
3781 "x_forced_labels" from rtx to rtx_expr_list *.
3782
3783 * cfgbuild.c (make_edges): Split local "x" into two locals,
3784 strengthening one from rtx to rtx_expr_list *, and using methods
3785 of said class.
3786 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3787 loop over forced_labels, introduce strengthen it from rtx to
3788 rtx_expr_list *, using methods to clarify the code.
3789 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3790 to rtx_expr_list *, using methods of said class to clarify the
3791 code.
3792 * reload1.c (set_initial_label_offsets): Split local "x" into two
3793 per-loop variables, strengthening the first from rtx to
3794 rtx_expr_list * and using methods.
3795
3796 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3797
3798 * coretypes.h (class rtx_expr_list): Add forward declaration.
3799 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3800 * gengenrtl.c (special_rtx): Add EXPR_LIST.
3801 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3802 invariant: GET_CODE (X) == EXPR_LIST.
3803 (is_a_helper <rtx_expr_list *>::test): New.
3804 (rtx_expr_list::next): New.
3805 (rtx_expr_list::element): New.
3806 (gen_rtx_EXPR_LIST): New.
3807
3808 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3809
3810 * varasm.c (mark_constants): Convert a GET_CODE check into a
3811 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3812 Use methods of rtx_sequence to clarify the code.
3813
3814 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3815
3816 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3817 local "seq" via a checked cast, and use methods of rtx_sequence
3818 to simplify the code.
3819
3820 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3821
3822 * resource.c (mark_referenced_resources): Strengthen local
3823 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3824 using methods of rtx_sequence to clarify the code.
3825 (find_dead_or_set_registers): Within the switch statement, convert
3826 a GET_CODE check to a dyn_cast, introducing local "seq". Within
3827 the JUMP_P handling, introduce another local "seq", adding a
3828 checked cast to rtx_sequence *. In both cases, use methods of
3829 rtx_sequence to clarify the code.
3830 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3831 via a checked cast, and use methods of rtx_sequence to simplify
3832 the code.
3833
3834 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3835
3836 * reorg.c (redundant_insn): In two places in the function, replace
3837 a check of GET_CODE with a dyn_cast, introducing local "seq", and
3838 usings methods of rtx_sequence to clarify the code.
3839
3840 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3841
3842 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3843 local "seq" with a checked cast, and use methods of rtx_sequence
3844 to clarify the code.
3845
3846 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3847
3848 * function.c (contains): Introduce local "seq" for PATTERN (insn),
3849 with a checked cast, in the region for where we know it's a
3850 SEQUENCE. Use methods of rtx_sequence.
3851
3852 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3853
3854 * final.c (get_attr_length_1): Replace GET_CODE check with a
3855 dyn_cast, introducing local "seq" and the use of methods of
3856 rtx_sequence.
3857 (shorten_branches): Likewise, introducing local "body_seq".
3858 Strengthen local "inner_insn" from rtx to rtx_insn *.
3859 (reemit_insn_block_notes): Replace GET_CODE check with a
3860 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3861 Use methods of rtx_sequence.
3862 (final_scan_insn): Likewise, introducing local "seq" for when
3863 "body" is known to be a SEQUENCE, using its methods.
3864
3865 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3866
3867 * except.c (can_throw_external): Strengthen local "seq" from rtx
3868 to rtx_sequence *. Use methods of rtx_sequence.
3869 (insn_nothrow_p): Likewise.
3870
3871 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3872
3873 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3874 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3875 Use methods of rtx_sequence.
3876 (scan_trace): Likewise for local "pat".
3877
3878 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3879
3880 * coretypes.h (class rtx_sequence): Add forward declaration.
3881 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3882 invariant: GET_CODE (X) == SEQUENCE.
3883 (is_a_helper <rtx_sequence *>::test): New.
3884 (is_a_helper <const rtx_sequence *>::test): New.
3885 (rtx_sequence::len): New.
3886 (rtx_sequence::element): New.
3887 (rtx_sequence::insn): New.
3888
3889 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3890
3891 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3892 rtx_insn_list **.
3893 (alloc_INSN_LIST): Strengthen return type from rtx to
3894 rtx_insn_list *.
3895 (copy_INSN_LIST): Likewise for return type and param.
3896 (concat_INSN_LIST): Likewise for both params and return type.
3897 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3898 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
3899 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3900 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
3901
3902 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3903 "implicit_sets", "control_uses", "clobbers" from rtx to
3904 rtx_insn_list *.
3905 (struct deps_desc): Likewise for fields "pending_read_insns",
3906 "pending_write_insns", "pending_jump_insns",
3907 "last_pending_memory_flush", "last_function_call",
3908 "last_function_call_may_noreturn", "sched_before_next_call",
3909 "sched_before_next_jump".
3910 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3911 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3912
3913 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3914 from rtx to rtx_insn_list *.
3915 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3916 rtx_insn_list *.
3917
3918 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3919 to rtx_insn_list **.
3920 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3921 rtx_insn_list *.
3922 (queue_insn): Likewise for local "link".
3923 (struct haifa_saved_data): Strengthen field "insn_queue" from
3924 rtx * to rtx_insn_list **.
3925 (save_backtrack_point): Update allocation of save->insn_queue to
3926 reflect the strengthening of elements from rtx to rtx_insn_list *.
3927 (queue_to_ready): Strengthen local "link" from rtx to
3928 rtx_insn_list *; use methods "next" and "insn" when traversing the
3929 list.
3930 (early_queue_to_ready): Likewise for locals "link", "next_link",
3931 "prev_link".
3932 (schedule_block): Update allocation of insn_queue to reflect the
3933 strengthening of elements from rtx to rtx_insn_list *. Strengthen
3934 local "link" from rtx to rtx_insn_list *, and use methods when
3935 working it.
3936 (add_to_speculative_block): Strengthen locals "twins" and
3937 "next_node" from rtx to rtx_insn_list *, and use methods when
3938 working with them. Strengthen local "twin" from rtx to
3939 rtx_insn *, eliminating a checked cast.
3940 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
3941 from rtx to rtx_insn_list *, and use methods when working with
3942 them.
3943
3944 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
3945 from rtx to rtx_insn_list *, adding a checked cast.
3946 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3947 rtx_insn_list **.
3948 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3949 "newlink" from rtx to rtx_insn_list *. Strengthen local
3950 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3951 from rtx to rtx_insn *.
3952 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3953 from rtx to rtx_insn_list *. Use methods of the latter class.
3954 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3955 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3956 (remove_free_INSN_LIST_node): Strengthen return type and local
3957 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3958 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3959 rtx_insn_list *, using "insn" method.
3960
3961 * sched-deps.c (add_dependence_list): Strengthen param "list"
3962 from rtx to rtx_insn_list *, and use methods when working with it.
3963 (add_dependence_list_and_free): Strengthen param "listp" from
3964 rtx * to rtx_insn_list **.
3965 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3966 to rtx_insn_list **, and use methods when working with *listp.
3967 (remove_from_both_dependence_lists): Strengthen param "listp" from
3968 rtx * to rtx_insn_list **
3969 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3970 to rtx_insn_list **. Eliminate local "link", in favor of two new
3971 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3972 respectively.
3973 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3974 by introducing local "cond_deps".
3975 (remove_from_deps): Strengthen param "insn" from rtx to
3976 rtx_insn *.
3977
3978 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3979 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3980 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3981 Use methods of rtx_insn_list.
3982
3983 * store-motion.c (struct st_expr): Strengthen fields
3984 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3985 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3986 rtx_insn_list *.
3987 (find_moveable_store): Split out "tmp" into multiple more-tightly
3988 scoped locals. Use methods of rtx_insn_list *.
3989 (compute_store_table): Strengthen local "tmp" from rtx to
3990 rtx_insn *. Use methods of rtx_insn_list *.
3991
3992 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3993
3994 * coretypes.h (class rtx_insn_list): Add forward declaration.
3995 * rtl.h (class rtx_insn_list): New subclass of rtx_def
3996 (is_a_helper <rtx_insn_list *>::test): New.
3997 (rtx_insn_list::next): New.
3998 (rtx_insn_list::insn): New.
3999 (gen_rtx_INSN_LIST): Add prototype.
4000 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4001 * gengenrtl.c (special_rtx): Add INSN_LIST.
4002
4003 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4004
4005 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4006 "prev" from rtx to rtx_insn *.
4007
4008 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4009
4010 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4011 functions. Require merely an rtx for now, not an rtx_insn *.
4012 (BLOCK_FOR_INSN): Likewise.
4013 (INSN_LOCATION): Likewise.
4014 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4015
4016 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4017
4018 * rtl.h (PATTERN): Convert this macro into a pair of inline
4019 functions, for now, requiring const_rtx and rtx.
4020
4021 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4022
4023 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4024 rtx_insn *.
4025 (final_postscan_insn): Likewise.
4026 (adjust_cost): Likewise.
4027 (adjust_priority): Likewise.
4028 (variable_issue): Likewise.
4029 (macro_fusion_pair_p): Likewise.
4030 (dfa_post_cycle_insn): Likewise.
4031 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4032 (first_cycle_multipass_issue): Likewise.
4033 (dfa_new_cycle): Likewise.
4034 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4035 (speculate_insn): Likewise for param "insn".
4036 (gen_spec_check): Likewise for params "insn" and "label".
4037 (get_insn_spec_ds): Likewise for param "insn".
4038 (get_insn_checked_ds): Likewise.
4039 (dispatch_do): Likewise.
4040 (dispatch): Likewise.
4041 (cannot_copy_insn_p): Likewise.
4042 (invalid_within_doloop): Likewise.
4043 (legitimate_combined_insn): Likewise.
4044 (needed): Likewise.
4045 (after): Likewise.
4046
4047 * doc/tm.texi: Automatically updated to reflect changes to
4048 target.def.
4049
4050 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4051 working with insn.
4052 (schedule_block): Likewise.
4053 (sched_init): Likewise.
4054 (sched_speculate_insn): Strengthen param "insn" from rtx to
4055 rtx_insn *.
4056 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4057 working with insn.
4058 * hooks.c (hook_bool_rtx_true): Rename to...
4059 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4060 rtx to rtx_insn *.
4061 (hook_constcharptr_const_rtx_null): Rename to...
4062 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4063 first param from const_rtx to const rtx_insn *.
4064 (hook_bool_rtx_int_false): Rename to...
4065 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4066 param from rtx to rtx_insn *.
4067 (hook_void_rtx_int): Rename to...
4068 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4069 rtx to rtx_insn *.
4070
4071 * hooks.h (hook_bool_rtx_true): Rename to...
4072 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4073 rtx to rtx_insn *.
4074 (hook_bool_rtx_int_false): Rename to...
4075 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4076 param from rtx to rtx_insn *.
4077 (hook_void_rtx_int): Rename to...
4078 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4079 rtx to rtx_insn *.
4080 (hook_constcharptr_const_rtx_null): Rename to...
4081 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4082 first param from const_rtx to const rtx_insn *.
4083
4084 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4085 and local "prev" from rtx to rtx_insn *.
4086
4087 * sched-int.h (sched_speculate_insn): Strengthen first param from
4088 rtx to rtx_insn *.
4089
4090 * sel-sched.c (create_speculation_check): Likewise for local "label".
4091 * targhooks.c (default_invalid_within_doloop): Strengthen param
4092 "insn" from const_rtx to const rtx_insn *.
4093 * targhooks.h (default_invalid_within_doloop): Strengthen param
4094 from const_rtx to const rtx_insn *.
4095
4096 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4097 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4098
4099 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4100 "insn".
4101 (arc_invalid_within_doloop): Likewise, with const.
4102
4103 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4104 (arm_cannot_copy_insn_p): Likewise for param "insn".
4105 (arm_unwind_emit): Likewise.
4106
4107 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4108 "dep_insn".
4109
4110 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4111 (c6x_variable_issue): Likewise. Removed now-redundant checked
4112 cast.
4113 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4114
4115 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4116 Likewise for param "insn".
4117 (epiphany_mode_after): Likewise.
4118 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4119 params "insn", "dep_insn".
4120 (epiphany_mode_needed): Likewise for param "insn".
4121 (epiphany_mode_after): Likewise.
4122
4123 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4124 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4125 (ix86_avx_u128_mode_needed): Likewise.
4126 (ix86_i387_mode_needed): Likewise.
4127 (ix86_mode_needed): Likewise.
4128 (ix86_avx_u128_mode_after): Likewise.
4129 (ix86_mode_after): Likewise.
4130 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4131 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4132 (ix86_adjust_priority): Likewise for param "insn".
4133 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4134 (do_dispatch): Likewise.
4135 (has_dispatch): Likewise.
4136 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4137
4138 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4139 reflect renaming of default hook implementation from
4140 hook_constcharptr_const_rtx_null to
4141 hook_constcharptr_const_rtx_insn_null.
4142 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4143 rtx to rtx_insn *.
4144 (ia64_variable_issue): Likewise for param "insn".
4145 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4146 (ia64_dfa_new_cycle): Likewise.
4147 (ia64_get_insn_spec_ds): Likewise.
4148 (ia64_get_insn_checked_ds): Likewise.
4149 (ia64_speculate_insn): Likewise.
4150 (ia64_gen_spec_check): Likewise for params "insn", "label".
4151 (ia64_asm_unwind_emit): Likewise for param "insn".
4152
4153 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4154
4155 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4156 "insn", "def_insn".
4157 (m68k_sched_variable_issue): Likewise for param "insn".
4158
4159 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4160 "def_insn".
4161
4162 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4163 Likewise for params "insn", "dep".
4164
4165 * config/mips/mips.c (mips_adjust_cost): Likewise.
4166 (mips_variable_issue): Likewise for param "insn".
4167 (mips_final_postscan_insn): Likewise.
4168
4169 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4170 for params "insn", "dep".
4171
4172 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4173 "dep_insn".
4174 (pa_adjust_priority): Likewise for param "insn".
4175
4176 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4177 Likewise for params "insn", "dep_insn".
4178
4179 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4180 param "insn".
4181 (rs6000_variable_issue): Likewise.
4182 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4183 (rs6000_debug_adjust_cost): Likewise.
4184 (rs6000_adjust_priority): Likewise for param "insn".
4185 (rs6000_use_sched_lookahead_guard): Likewise.
4186 (get_next_active_insn): Likewise for return type and both params.
4187 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4188 and locals "insn", "next_insn".
4189 (pad_groups): Likewise.
4190
4191 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4192 "insn".
4193 (s390_cannot_copy_insn_p): Likewise.
4194 (s390_sched_variable_issue): Likewise for third param, eliminating
4195 checked cast.
4196 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4197 default hook implementation from hook_constcharptr_const_rtx_null
4198 to hook_constcharptr_const_rtx_insn_null.
4199
4200 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4201 from rtx to rtx_insn *.
4202 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4203 (sh_variable_issue): Likewise for param "insn".
4204 (sh_dfa_new_cycle): Likewise.
4205 (sh_mode_needed): Likewise.
4206 (sh_mode_after): Likewise.
4207
4208 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4209 params "insn", "dep_insn".
4210 (hypersparc_adjust_cost): Likewise.
4211 (sparc_adjust_cost): Likewise.
4212
4213 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4214 param, eliminated checked cast.
4215 (spu_sched_adjust_cost): Likewise for first and third params.
4216
4217 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4218 params "insn" and "dep_insn" from rtx to rtx_insn *.
4219
4220 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4221
4222 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4223
4224 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4225 (set_is_load_p): ...this, updating to work on a SET pattern rather
4226 than an insn.
4227 (is_store_insn): Rename to...
4228 (set_is_store_p): ...this, updating to work on a SET pattern
4229 rather than an insn.
4230 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4231 top of function to where it is needed. Rewrite the bogus
4232 condition that checks for "insn" and "dep" being PARALLEL to
4233 instead use single_set, introducing locals "insn_set" and
4234 "dep_set". Given that we only ever returned "cost" for a non-pair
4235 of SETs, bail out early if we don't have a pair of SET.
4236 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4237 use the new locals "insn_set" and "dep_set", and update calls to
4238 is_load_insn and is_store_insn to be calls to set_is_load_p and
4239 set_is_store_p.
4240
4241 2014-08-27 Guozhi Wei <carrot@google.com>
4242
4243 PR target/62262
4244 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4245 amount before using it.
4246
4247 2014-08-27 Richard Biener <rguenther@suse.de>
4248
4249 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4250 get_maxval_strlen inside a more useful API.
4251 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4252 (gimple_fold_builtin): ... caller.
4253 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4254 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4255 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4256 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4257 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4258 gimple_fold_builtin_sprintf): Adjust to compute maxval
4259 themselves.
4260
4261 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4262
4263 PR other/62248
4264 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4265
4266 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4267 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4268 Anna Tikhonova <anna.tikhonova@intel.com>
4269 Ilya Tocar <ilya.tocar@intel.com>
4270 Andrey Turetskiy <andrey.turetskiy@intel.com>
4271 Ilya Verbin <ilya.verbin@intel.com>
4272 Kirill Yukhin <kirill.yukhin@intel.com>
4273 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4274
4275 * config/i386/sse.md
4276 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4277 Use `concat_tg_mode' attribute to determine asm register size.
4278
4279 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4280 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4281 Anna Tikhonova <anna.tikhonova@intel.com>
4282 Ilya Tocar <ilya.tocar@intel.com>
4283 Andrey Turetskiy <andrey.turetskiy@intel.com>
4284 Ilya Verbin <ilya.verbin@intel.com>
4285 Kirill Yukhin <kirill.yukhin@intel.com>
4286 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4287
4288 * config/i386/sse.md
4289 (define_mode_iterator VI48_AVX512VL): New.
4290 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4291 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4292 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4293 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4294 with VI1): Change mode iterator.
4295 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4296 with VI_ULOADSTORE_BW_AVX512VL): New.
4297 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4298 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4299 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4300 with VI1): Change mode iterator.
4301 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4302 with VI_ULOADSTORE_BW_AVX512VL): New.
4303 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4304 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4305 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4306 with VI1): Change mode iterator.
4307 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4308 with VI_ULOADSTORE_BW_AVX512VL): New.
4309 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4310 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4311 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4312 (define_insn "<avx512>_storedqu<mode>_mask" with
4313 VI48_AVX512VL): New.
4314 (define_insn "<avx512>_storedqu<mode>_mask" with
4315 VI12_AVX512VL): Ditto.
4316
4317 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4318 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4319 Anna Tikhonova <anna.tikhonova@intel.com>
4320 Ilya Tocar <ilya.tocar@intel.com>
4321 Andrey Turetskiy <andrey.turetskiy@intel.com>
4322 Ilya Verbin <ilya.verbin@intel.com>
4323 Kirill Yukhin <kirill.yukhin@intel.com>
4324 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4325
4326 * config/i386/sse.md
4327 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4328 (define_mode_iterator VI48_AVX512BW): New.
4329 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4330 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4331 with VI48_AVX2_48_AVX512F): New.
4332 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4333 with VI2_AVX512VL): Ditto.
4334
4335 2014-08-27 Richard Biener <rguenther@suse.de>
4336
4337 PR middle-end/62239
4338 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4339 (fold_builtin_3): Do not fold strcat_chk here.
4340 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4341 from builtins.c.
4342 (gimple_fold_builtin): Fold strcat_chk here.
4343
4344 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4345
4346 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4347 * dwarf2out.c (dwarf2out_decl): Make static.
4348
4349 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4350
4351 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4352
4353 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4354
4355 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4356 from rtx to rtx_insn *.
4357 (cselib_lookup_from_insn): Likewise for final param.
4358 (cselib_subst_to_values_from_insn): Likewise.
4359 (cselib_add_permanent_equiv): Likewise.
4360
4361 * cselib.c (cselib_current_insn): Likewise for this variable.
4362 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4363 (cselib_lookup_from_insn): Likewise.
4364 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4365 "save_cselib_current_insn".
4366 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4367
4368 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4369 from rtx to rtx_insn *.
4370
4371 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4372
4373 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4374 rtx_insn *.
4375
4376 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4377
4378 * df.h (df_dump_insn_problem_function): Strengthen first param of
4379 this callback from const_rtx to const rtx_insn *.
4380 (struct df_insn_info): Strengthen field "insn" from rtx to
4381 rtx_insn *.
4382 (DF_REF_INSN): Eliminate this function, reinstating the older
4383 macro definition.
4384 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4385 (df_reg_defined): Likewise.
4386 (df_find_use): Likewise.
4387 (df_reg_used): Likewise.
4388 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4389 const rtx_insn *.
4390 (df_dump_insn_bottom): Likewise.
4391 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4392 (df_insn_debug_regno): Likewise.
4393 (debug_df_insn): Likewise.
4394 (df_rd_simulate_one_insn): Likewise for param 2.
4395 (df_word_lr_simulate_defs): Likewise for param 1.
4396 (df_word_lr_simulate_uses): Likewise.
4397 (df_md_simulate_one_insn): Likewise for param 2.
4398 (df_simulate_find_noclobber_defs): Likewise for param 1.
4399 (df_simulate_find_defs): Likewise.
4400 (df_simulate_defs): Likewise.
4401 (df_simulate_uses): Likewise.
4402 (df_simulate_one_insn_backwards): Likewise for param 2.
4403 (df_simulate_one_insn_forwards): Likewise.
4404 (df_uses_create): Likewise for param 2.
4405 (df_insn_create_insn_record): Likewise for param 1.
4406 (df_insn_delete): Likewise.
4407 (df_insn_rescan): Likewise.
4408 (df_insn_rescan_debug_internal): Likewise.
4409 (df_insn_change_bb): Likewise.
4410 (df_notes_rescan): Likewise.
4411 * rtl.h (remove_death): Likewise for param 2.
4412 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4413 const rtx_insn *.
4414 * sched-int.h (reemit_notes): Strengthen param from rtx to
4415 rtx_insn *.
4416 * valtrack.h (propagate_for_debug): Likewise for param 1.
4417
4418 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4419 local "tmp_rtx" from const_rtx to const rtx_insn *.
4420 * combine.c (remove_death): Strengthen param "insn" from rtx to
4421 rtx_insn *.
4422 (move_deaths): Likewise for local "where_dead".
4423 * cse.c (delete_trivially_dead_insns): Introduce local
4424 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4425 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4426 rtx_insn *.
4427 (df_reg_defined): Likewise.
4428 (df_find_use): Likewise.
4429 (df_reg_used): Likewise.
4430 (df_dump_insn_problem_data): Strengthen param "insn" from
4431 const_rtx to const rtx_insn *.
4432 (df_dump_insn_top): Likewise.
4433 (df_dump_insn_bottom): Likewise.
4434 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4435 (df_insn_debug_regno): Likewise.
4436 (debug_df_insn): Likewise.
4437 (DF_REF_INSN): Delete.
4438 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4439 from rtx to rtx_insn *.
4440 (df_chain_insn_top_dump): Strengthen param "insn" from
4441 const_rtx to const rtx_insn *.
4442 (df_chain_insn_bottom_dump): Likewise.
4443 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4444 rtx_insn *.
4445 (df_word_lr_simulate_uses): Likewise.
4446 (df_print_note): Likewise.
4447 (df_remove_dead_and_unused_notes): Likewise.
4448 (df_set_unused_notes_for_mw): Likewise.
4449 (df_set_dead_notes_for_mw): Likewise.
4450 (df_create_unused_note): Likewise.
4451 (df_simulate_find_defs): Likewise.
4452 (df_simulate_find_uses): Likewise.
4453 (df_simulate_find_noclobber_defs): Likewise.
4454 (df_simulate_defs): Likewise.
4455 (df_simulate_uses): Likewise.
4456 (df_simulate_one_insn_backwards): Likewise.
4457 (df_simulate_one_insn_forwards): Likewise.
4458 (df_md_simulate_one_insn): Likewise.
4459 * df-scan.c (df_uses_create): Likewise.
4460 (df_insn_create_insn_record): Likewise.
4461 (df_insn_delete): Likewise.
4462 (df_insn_rescan): Likewise.
4463 (df_insn_rescan_debug_internal): Likewise.
4464 (df_insn_change_bb): Likewise.
4465 (df_notes_rescan): Likewise.
4466 (df_refs_add_to_chains): Likewise.
4467 (df_insn_refs_verify): Likewise.
4468 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4469 when invoking df_insn_delete.
4470 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4471 (set_unique_reg_note): Add checked cast.
4472 * final.c (cleanup_subreg_operands): Likewise.
4473 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4474 "insn" from rtx to rtx_insn *.
4475 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4476 "last" from rtx to rtx_insn *.
4477 * ira-emit.c (change_regs_in_insn): New function.
4478 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4479 Invoke change_regs_in_insn rather than change_regs.
4480 * ira.c (update_equiv_regs): Strengthen locals "insn",
4481 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4482 for_each_rtx_in_insn rather than for_each_rtx.
4483 * recog.c (confirm_change_group): Add checked casts.
4484 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4485 Add checked cast.
4486 (peep2_fill_buffer): Add checked cast.
4487 * rtlanal.c (remove_note): Likewise.
4488 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4489 locals "next" "end" from rtx to rtx_insn *.
4490
4491 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4492
4493 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4494 to rtx_insn *.
4495 (struct reg_use_data): Likewise for field "insn".
4496 (insn_cost): Likewise for param.
4497 (real_insn_for_shadow): Likewise for return type and param.
4498 (increase_insn_priority): Likewise for param 1.
4499 (debug_dependencies): Likewise for both params.
4500
4501 * haifa-sched.c (insn_delay): Likewise for param "insn".
4502 (real_insn_for_shadow): Likewise for return type and param "insn".
4503 (update_insn_after_change): Likewise for param "insn".
4504 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4505 "other".
4506 (insn_cost): Likewise for param "insn".
4507 (increase_insn_priority): Likewise.
4508 (calculate_reg_deaths): Likewise.
4509 (setup_insn_reg_pressure_info): Likewise.
4510 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4511 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4512 (model_recompute): Likewise.
4513 (must_restore_pattern_p): Likewise for param "next".
4514 (model_excess_cost): Likewise for param "insn".
4515 (queue_remove): Likewise.
4516 (adjust_priority): Likewise for param "prev".
4517 (update_register_pressure): Likewise for param "insn".
4518 (setup_insn_max_reg_pressure): Likewise for local "insn".
4519 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4520 (model_add_to_schedule): Likewise.
4521 (model_reset_queue_indices): Likewise for local "insn".
4522 (unschedule_insns_until): Strengthen local "recompute_vec" from
4523 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4524 "con" from rtx to rtx_insn *.
4525 (restore_last_backtrack_point): Likewise for both locals "x". Add
4526 checked casts.
4527 (estimate_insn_tick): Likewise for param "insn".
4528 (commit_schedule): Likewise for params "prev_head", "tail" and
4529 local "x".
4530 (verify_shadows): Likewise for locals "i1", "i2".
4531 (dump_insn_stream): Likewise for params "head", "tail" and locals
4532 "next_tail", "insn".
4533 (schedule_block): Likewise for locals "insn", "x". Add a checked
4534 cast.
4535 (fix_inter_tick): Likewise for params "head", "tail".
4536 (create_check_block_twin): Likewise for local "jump".
4537 (haifa_change_pattern): Likewise for param "insn".
4538 (haifa_speculate_insn): Likewise.
4539 (dump_new_block_header): Likewise for params "head", "tail".
4540 (fix_jump_move): Likewise for param "jump".
4541 (move_block_after_check): Likewise.
4542 (sched_init_insn_luid): Likewise for param "insn".
4543 (sched_init_luids): Likewise for local "insn".
4544 (insn_luid): Likewise for param "insn".
4545 (init_h_i_d): Likewise.
4546 (haifa_init_h_i_d): Likewise for local "insn".
4547 (haifa_init_insn): Likewise for param "insn".
4548 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4549 "other".
4550 (create_insn_reg_use): Likewise for param "insn".
4551 (setup_insn_reg_uses): Likewise. Add a checked cast.
4552 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4553 "tail" from rtx to rtx_insn *.
4554 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4555 "insn", "next_tail".
4556
4557 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4558
4559 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4560 from rtx to rtx_insn *.
4561 (model_add_to_schedule): Likewise for locals "start", "end",
4562 "iter".
4563
4564 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4565
4566 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4567 rtx_insn *.
4568 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4569 "to" and locals "insn", "next", "copy". Remove now-redundant
4570 checked cast.
4571
4572 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4573
4574 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4575 rtx_insn * and param 4 from rtx * to rtx_insn **.
4576 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4577 param 2 from rtx * to rtx_insn **.
4578
4579 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4580 rtx_insn * and final param from rtx * to rtx_insn **.
4581
4582 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4583 from rtx to rtx_insn *.
4584 (try_head_merge_bb): Likewise for both locals named "move_upto".
4585 * df-problems.c (can_move_insns_across): Likewise for params
4586 "from", "to", "across_from", "across_to" and locals "insn",
4587 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4588 rtx_insn **.
4589 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4590 from rtx to rtx_insn *.
4591 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4592 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4593 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4594 rtx_insn *.
4595 (noce_try_abs): Likewise.
4596 (noce_get_condition): Likewise for param "jump". Strengthen param
4597 "earliest" from rtx * to rtx_insn **.
4598 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4599 rtx_insn *.
4600 (find_cond_trap): Likewise.
4601 (dead_or_predicable): Likewise for local "earliest".
4602 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
4603 checked cast.
4604 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4605 and local "prev". Strengthen param "earliest" from rtx * to
4606 rtx_insn **.
4607 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4608 Strengthen param "earliest" from rtx * to rtx_insn **.
4609
4610 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4611
4612 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4613 "to" and local "insn" from rtx to rtx_insn *.
4614
4615 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4616
4617 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4618 from rtx to rtx_insn *.
4619 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4620 (code_motion_path_driver): Likewise for local "last_insn".
4621 (simplify_changed_insns): Likewise for local "insn".
4622
4623 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4624
4625 * rtl.h (push_to_sequence): Strengthen param from rtx to
4626 rtx_insn *.
4627 (push_to_sequence2): Likewise for both params.
4628 (delete_insns_since): Likewise for param.
4629 (reorder_insns_nobb): Likewise for all three params.
4630 (set_new_first_and_last_insn): Likewise for both params.
4631
4632 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4633 rtx_insn *. Remove now-redundant cast.
4634 (set_last_insn): Likewise.
4635
4636 * builtins.c (expand_builtin_return): Strengthen local
4637 "call_fusage" from rtx to rtx_insn *.
4638 * cfgrtl.c (create_basic_block_structure): Likewise for local
4639 "after".
4640 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4641 "first", "last" and local "insn".
4642 (delete_insns_since): Likewise for param "from".
4643 (reorder_insns_nobb): Likewise for params "from", "to", "after"
4644 and local "x".
4645 (push_to_sequence): Likewise for param "first" and local "last".
4646 (push_to_sequence2): Likewise for params "first" and "last".
4647 * lra.c (emit_add3_insn): Likewise for local "last".
4648 (lra_emit_add): Likewise.
4649 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4650 "last_insn".
4651 (process_address_1): Likewise for locals "insn", last".
4652 * modulo-sched.c (ps_first_note): Likewise for return type.
4653 * optabs.c (expand_binop_directly): Likewise for param "last".
4654
4655 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4656
4657 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4658 to rtx_insn*.
4659 * emit-rtl.c (get_last_insn_anywhere): Likewise.
4660
4661 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4662
4663 * function.h (struct sequence_stack): Strengthen fields "first"
4664 and "last" from rtx to rtx_insn *.
4665 (struct emit_status): Likewise for fields "x_first_insn" and
4666 "x_last_insn".
4667
4668 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4669 (set_first_insn): Add checked cast.
4670 (get_last_insn): Remove now-redundant checked cast.
4671 (set_last_insn): Add checked cast.
4672
4673 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4674 "saved_first" and "saved_last" from rtx to rtx_insn *.
4675
4676 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4677
4678 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4679 (unlink_insn_chain): Strengthen both params from rtx to
4680 rtx_insn *.
4681
4682 * cfgrtl.c (cfg_layout_function_header): Likewise for this
4683 variable.
4684 (unlink_insn_chain): Likewise for params "first" and "last".
4685 Remove now-redundant checked cast.
4686 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4687 (fixup_reorder_chain): Strengthen local "insn" from rtx to
4688 rtx_insn *.
4689 * emit-rtl.c (link_insn_into_chain): Likewise for all three
4690 params.
4691 (add_insn): Likewise for param "insn" and local "prev".
4692 (add_insn_after_nobb): Likewise for both params and local "next".
4693 (add_insn_before_nobb): Likewise for both params and local "prev".
4694 (add_insn_after): Rename param "after" to "uncast_after",
4695 introducing local "after" with another checked cast.
4696 (add_insn_before): Rename params "insn" and "before", giving them
4697 "uncast_" prefixes, adding the old names back using checked casts.
4698 (emit_note_after): Likewise for param "after".
4699 (emit_note_before): Likewise for param "before".
4700 (emit_label): Add a checked cast.
4701
4702 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4703
4704 * cselib.h (cselib_record_sets_hook): Strengthen initial param
4705 "insn" from rtx to rtx_insn *.
4706
4707 * cselib.c (cselib_record_sets_hook): Likewise.
4708
4709 * var-tracking.c (add_with_sets): Likewise, renaming back from
4710 "uncast_insn" to "insn" and eliminating the checked cast from rtx
4711 to rtx_insn *.
4712
4713 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4714
4715 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4716 and "header_" from rtx to rtx_insn *.
4717 (struct basic_block_d): Likewise for field "head_" within "x"
4718 field of union basic_block_il_dependent.
4719 (BB_HEAD): Drop function...
4720 (SET_BB_HEAD): ...and this function in favor of...
4721 (BB_HEAD): ...reinstate macro.
4722 (BB_END): Drop function...
4723 (SET_BB_END): ...and this function in favor of...
4724 (BB_END): ...reinstate macro.
4725 (BB_HEADER): Drop function...
4726 (SET_BB_HEADER): ...and this function in favor of...
4727 (BB_HEADER): ...reinstate macro.
4728
4729 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4730 (fix_crossing_unconditional_branches): Likewise.
4731 * caller-save.c (save_call_clobbered_regs): Likewise.
4732 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4733 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4734 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4735 (merge_blocks_move_successor_nojumps): Likewise.
4736 (outgoing_edges_match): Update use of for_each_rtx to
4737 for_each_rtx_in_insn.
4738 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4739 (expand_gimple_cond): Likewise.
4740 (expand_gimple_tailcall): Likewise.
4741 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4742 SET_BB_END.
4743 (construct_exit_block): Drop use of SET_BB_END.
4744 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4745 rtx_insn *.
4746 (delete_insn): Rename param "insn" to "uncast_insn", introducing
4747 a new local "insn" with a checked cast to rtx_insn *. Drop use of
4748 SET_BB_HEAD and SET_BB_END.
4749 (create_basic_block_structure): Drop use of SET_BB_HEAD and
4750 SET_BB_END.
4751 (rtl_delete_block): Drop use of SET_BB_HEAD.
4752 (rtl_split_block): Drop use of SET_BB_END.
4753 (emit_nop_for_unique_locus_between): Likewise.
4754 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4755 (block_label): Drop use of SET_BB_HEAD.
4756 (fixup_abnormal_edges): Drop use of SET_BB_END.
4757 (record_effective_endpoints): Drop use of SET_BB_HEADER.
4758 (relink_block_chain): Likewise.
4759 (fixup_reorder_chain): Drop use of SET_BB_END.
4760 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4761 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4762 rtx_insn **. Drop use of SET_BB_HEADER.
4763 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4764 SET_BB_HEAD.
4765 (BB_HEAD): Delete this function.
4766 (SET_BB_HEAD): Likewise.
4767 (BB_END): Likewise.
4768 (SET_BB_END): Likewise.
4769 (BB_HEADER): Likewise.
4770 (SET_BB_HEADER): Likewise.
4771 * emit-rtl.c (add_insn_after): Rename param "insn" to
4772 "uncast_insn", adding a new local "insn" and a checked cast to
4773 rtx_insn *. Drop use of SET_BB_END.
4774 (remove_insn): Strengthen locals "next" and "prev" from rtx to
4775 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
4776 (reorder_insns): Drop use of SET_BB_END.
4777 (emit_insn_after_1): Strengthen param "first" and locals "last",
4778 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
4779 (emit_pattern_after_noloc): Add checked cast.
4780 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4781 (restore_other_notes): Likewise.
4782 (move_insn): Likewise.
4783 (sched_extend_bb): Likewise.
4784 (fix_jump_move): Likewise.
4785 * ifcvt.c (noce_process_if_block): Likewise.
4786 (dead_or_predicable): Likewise.
4787 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4788 * reg-stack.c (change_stack): Drop use of SET_BB_END.
4789 * sel-sched-ir.c (sel_move_insn): Likewise.
4790 * sel-sched.c (move_nop_to_previous_block): Likewise.
4791
4792 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4793 SET_BB_END.
4794 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4795
4796 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4797
4798 * basic-block.h (create_basic_block_structure): Strengthen params
4799 1 "head" and 2 "end" from rtx to rtx_insn *.
4800 * cfgrtl.c (create_basic_block_structure): Likewise.
4801 (rtl_create_basic_block): Update casts from void * to rtx to
4802 rtx_insn *, so that we can pass them as rtx_insn * to
4803 create_basic_block_structure.
4804 * sel-sched-ir.c (sel_create_basic_block): Likewise.
4805
4806 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4807
4808 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4809 rtx_insn **.
4810 (check_for_inc_dec): Strengthen param "insn" from rtx to
4811 rtx_insn *.
4812
4813 * cselib.h (cselib_process_insn): Likewise.
4814
4815 * cselib.c (cselib_record_sets): Likewise.
4816 (cselib_process_insn): Likewise.
4817
4818 * dse.c (struct insn_info): Likewise for field "insn".
4819 (check_for_inc_dec_1): Likewise for local "insn".
4820 (check_for_inc_dec): Likewise for param "insn".
4821 (scan_insn): Likewise.
4822 (dse_step1): Likewise for local "insn".
4823
4824 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4825 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
4826
4827 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4828
4829 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4830 from rtx to rtx_insn *.
4831 (DEP_PRO): Delete this function and...
4832 (SET_DEP_PRO): ...this function in favor of...
4833 (DEP_PRO): ...reinstate this macro.
4834 (DEP_CON): Delete this function and...
4835 (SET_DEP_CON): ...this function in favor of...
4836 (DEP_CON): ...reinstate this old macro.
4837 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4838 (init_dep): Likewise.
4839 (set_priorities): Likewise for both params.
4840 (sd_copy_back_deps): Likewise for params 1 and 2.
4841
4842 * haifa-sched.c (priority): Likewise for param "insn" and local
4843 "next".
4844 (set_priorities): Likewise for params "head" and "tail" and local
4845 "insn".
4846 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4847 local "consumer".
4848 (add_to_speculative_block): Add a checked cast.
4849 (create_check_block_twin): Drop use of SET_DEP_CON.
4850 (add_jump_dependencies): Strengthen params "insn" and "jump" from
4851 rtx to rtx_insn *.
4852
4853 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4854 Drop use of SET_DEP_PRO
4855 (init_dep): Strengthen params "pro" and "con" from rtx to
4856 rtx_insn *.
4857 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
4858 use of SET_DEP_CON.
4859 (DEP_PRO): Delete.
4860 (DEP_CON): Delete.
4861 (SET_DEP_PRO): Delete.
4862 (SET_DEP_CON): Delete.
4863
4864 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4865
4866 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4867 from rtx to rtx_insn *.
4868 (VINSN_INSN_RTX): Eliminate rvalue function and...
4869 (SET_VINSN_INSN): ...lvalue function in favor of...
4870 (VINSN_INSN_RTX): reinstate this old macro.
4871
4872 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4873 in favor of VINSN_INSN_RTX.
4874 (VINSN_INSN_RTX): Delete this function.
4875 (SET_VINSN_INSN_RTX): Likewise.
4876
4877 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4878
4879 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4880 (BND_TO): Delete this function and...
4881 (SET_BND_TO): ...this functions in favor of...
4882 (BND_TO): ...reinstating this macro.
4883 (struct _fence): Strengthen field "executing_insns" from
4884 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
4885 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4886 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4887 and param "insn" from rtx to insn_t.
4888 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4889 rtx_insn *.
4890
4891 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4892 vec<rtx_insn *> .
4893 (rtx_vec_t): Likewise.
4894 (struct sched_deps_info_def): Strengthen param of "start_insn"
4895 callback from rtx to rtx_insn *. Likewise for param "insn2" of
4896 "note_mem_dep" callback and first param of "note_dep" callback.
4897
4898 * haifa-sched.c (add_to_speculative_block): Strengthen param
4899 "insn" from rtx to rtx_insn *.
4900 (clear_priorities): Likewise.
4901 (calc_priorities): Likewise for local "insn".
4902
4903 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4904 Remove redundant checked cast.
4905 (haifa_note_mem_dep): Likewise for param "pending_insn".
4906 (haifa_note_dep): Likewise for param "elem".
4907 (note_mem_dep): Likewise for param "e".
4908 (sched_analyze_1): Add checked casts.
4909 (sched_analyze_2): Likewise.
4910
4911 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4912 from rtx to rtx_insn *.
4913 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4914 from vec<rtx> * to vec<rtx_insn *> *.
4915
4916 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4917 scaffolding.
4918 (flist_add): Strengthen param "executing_insns" from
4919 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4920 (advance_deps_context): Remove now-redundant checked cast.
4921 (init_fences): Replace uses of NULL_RTX with NULL.
4922 (merge_fences): Strengthen params "last_scheduled_insn" and
4923 "sched_next" from rtx to rtx_insn * and "executing_insns" from
4924 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4925 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
4926 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
4927 an instruction, rather than doing double-duty as a pattern.
4928 (return_nop_to_pool): Update for change of insn_t.
4929 (deps_init_id): Remove now-redundant checked cast.
4930 (struct sched_scan_info_def): Strengthen param of "init_insn"
4931 callback from rtx to insn_t.
4932 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
4933 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
4934 NULL.
4935 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
4936 "end" from rtx to rtx_insn *.
4937 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
4938 (rtx insn_rtx, bool force_unique_p)
4939 (BND_TO): Delete function.
4940 (SET_BND_TO): Delete function.
4941
4942 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
4943 rtx to rtx_insn *.
4944 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
4945 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
4946 rtx to rtx_insn *.
4947 (undo_transformations): Likewise for param "insn".
4948 (update_liveness_on_insn): Likewise.
4949 (compute_live_below_insn): Likewise for param "insn" and local
4950 "succ".
4951 (update_data_sets): Likewise for param "insn".
4952 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4953 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4954 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4955 rtx_insn *.
4956 (move_cond_jump): Likewise for param "insn".
4957 (move_cond_jump): Drop use of SET_BND_TO.
4958 (compute_av_set_on_boundaries): Likewise.
4959 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4960 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4961 from rtx to rtx_insn *.
4962 (maybe_emit_renaming_copy): Likewise for param "insn".
4963 (maybe_emit_speculative_check): Likewise.
4964 (handle_emitting_transformations): Likewise.
4965 (remove_insn_from_stream): Likewise.
4966 (code_motion_process_successors): Strengthen local "succ" from rtx
4967 to insn_t.
4968
4969 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4970
4971 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4972 ilist_t, not _xlist_t;
4973 (ILIST_INSN): Define in terms of new union field "insn".
4974 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4975 _XLIST_NEXT.
4976 (struct _list_node): Add new field "insn" to the union, of type
4977 insn_t.
4978 (ilist_add): Replace macro with an inline function, requiring an
4979 insn_t.
4980 (ilist_remove): Define this macro directly in terms of
4981 _list_remove, rather than indirectly via _xlist_remove.
4982 (ilist_clear): Likewise, in terms of _list_clear rather than
4983 _xlist_clear.
4984 (ilist_is_in_p): Replace macro with an inline function, requiring
4985 an insn_t.
4986 (_list_iter_cond_insn): New function.
4987 (ilist_iter_remove): Define this macro directly in terms of
4988 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
4989 (ilist_iterator): Define directly in terms of _list_iterator
4990 rather than indirectly through _xlist_iterator.
4991 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
4992 than in terms of _FOR_EACH_X.
4993 (FOR_EACH_INSN_1): Likewise.
4994
4995 2014-08-26 Joseph Myers <joseph@codesourcery.com>
4996
4997 PR target/60606
4998 PR target/61330
4999 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5000 DECL_HARD_REGISTER and return for invalid register specifications.
5001 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5002 DECL_HARD_REGISTER, call expand_one_error_var.
5003 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5004 CC_REGNUM with non-MODE_CC modes.
5005 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5006
5007 2014-08-26 Marek Polacek <polacek@redhat.com>
5008
5009 PR c/61271
5010 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5011
5012 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5013
5014 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5015 qi cost; add di cost.
5016 (cortexa57_addrcost_table): Likewise.
5017
5018 2014-08-26 Marek Polacek <polacek@redhat.com>
5019
5020 PR c/61271
5021 * expr.c (is_aligning_offset): Remove logical not.
5022
5023 2014-08-26 Marek Polacek <polacek@redhat.com>
5024
5025 PR c/61271
5026 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5027 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5028
5029 2014-08-26 Richard Biener <rguenther@suse.de>
5030
5031 PR tree-optimization/62175
5032 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5033 expand possibly trapping operations.
5034
5035 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5036
5037 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5038 "insn" from rtx to rtx_insn *.
5039 (permute_load): Likewise for param "insn".
5040 (permute_store): Likewise.
5041 (handle_special_swappables): Likewise for local "insn".
5042 (replace_swap_with_copy): Likewise for locals "insn" and
5043 "new_insn".
5044 (rs6000_analyze_swaps): Likewise for local "insn".
5045
5046 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5047
5048 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5049 to rtx_insn *.
5050
5051 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5052
5053 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5054 "note_list" from rtx to rtx_insn *.
5055 (BB_NOTE_LIST): Replace this function and...
5056 (SET_BB_NOTE_LIST): ...this function with...
5057 (BB_NOTE_LIST): ...the former macro implementation.
5058
5059 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5060 local "from_start" from rtx to rtx_insn *. Strengthen param
5061 "to_endp" from rtx * to rtx_insn **.
5062
5063 * haifa-sched.c (concat_note_lists): Likewise.
5064 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5065 BB_NOTE_LIST.
5066 (sel_restore_notes): Likewise.
5067 (move_bb_info): Likewise.
5068 (BB_NOTE_LIST): Delete this function.
5069 (SET_BB_NOTE_LIST): Delete this function.
5070 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5071 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5072
5073 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5074
5075 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5076 from rtx * to rtx_insn **.
5077 (reorder2): Likewise.
5078 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5079 from rtx to rtx_insn *.
5080
5081 * doc/tm.texi: Update mechanically for above change to target.def.
5082
5083 * sched-int.h (note_list): Strengthen this variable from rtx to
5084 rtx_insn *.
5085 (remove_notes): Likewise for both params.
5086 (restore_other_notes): Likewise for return type and first param.
5087 (struct ready_list): Strengthen field "vec" from rtx * to
5088 rtx_insn **.
5089 (struct dep_replacement): Strenghten field "insn" from rtx to
5090 rtx_insn *.
5091 (struct deps_desc): Likewise for fields "last_debug_insn",
5092 "last_args_size".
5093 (struct haifa_sched_info): Likewise for callback field
5094 "can_schedule_ready_p"'s param, for first param of "new_ready"
5095 callback field, for both params of "rank" callback field, for
5096 first field of "print_insn" callback field (with a const), for
5097 both params of "contributes_to_priority" callback, for param
5098 of "insn_finishes_block_p" callback, for fields "prev_head",
5099 "next_tail", "head", "tail", for first param of "add_remove_insn"
5100 callback, for first param of "begin_schedule_ready" callback, for
5101 both params of "begin_move_insn" callback, and for second param
5102 of "advance_target_bb" callback.
5103 (add_dependence): Likewise for params 1 and 2.
5104 (sched_analyze): Likewise for params 2 and 3.
5105 (deps_analyze_insn): Likewise for param 2.
5106 (ready_element): Likewise for return type.
5107 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5108 (try_ready): Strenghten param from rtx to rtx_insn *.
5109 (sched_emit_insn): Likewise for return type.
5110 (record_delay_slot_pair): Likewise for params 1 and 2.
5111 (add_delay_dependencies): Likewise for param.
5112 (contributes_to_priority): Likewise for both params.
5113 (find_modifiable_mems): Likewise.
5114
5115 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5116 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5117 "first_older_only_insn" from rtx to rtx_insn *.
5118 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5119 rtx_insn **.
5120
5121 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5122 "last_scheduled_iter0" from rtx to rtx_insn *.
5123 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5124 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5125 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5126 "insn" from rtx to rtx_insn *.
5127 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5128 rtx_insn **.
5129 (c6x_sched_reorder2): Strengthen param "ready" and locals
5130 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5131 "insn" from rtx to rtx_insn *.
5132 (c6x_variable_issue): Add a checked cast when assigning from insn
5133 to ss.last_scheduled_iter0.
5134 (split_delayed_branch): Strengthen param "insn" and local "i1"
5135 from rtx to rtx_insn *.
5136 (split_delayed_nonbranch): Likewise.
5137 (undo_split_delayed_nonbranch): Likewise for local "insn".
5138 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5139 "entry_after", "end_packet", "head_insn", "tail_insn",
5140 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5141 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5142 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5143 but add a checked cast on loop->start_label. Consolidate calls to
5144 avoid assigning result of gen_spkernel to "insn", now an
5145 rtx_insn *.
5146
5147 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5148 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5149 rtx to rtx_insn *.
5150 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5151 rtx_insn **. Strengthen locals "top", "next" from rtx to
5152 rtx_insn *.
5153 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5154 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5155 (add_parameter_dependencies): Strengthen params "call", "head" and
5156 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5157 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5158 (add_dependee_for_func_arg): Likewise for param "arg" and local
5159 "insn".
5160 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5161 "tail" and locals "insn", "first_arg".
5162
5163 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5164 for params "head", "tail" and locals "insn", "next", "next_tail".
5165 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5166 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5167 "insn", "lowest", "highest" from rtx to rtx_insn *.
5168 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5169 rtx_insn **.
5170 (ia64_sched_reorder2): Likewise.
5171
5172 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5173 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5174 from rtx * to rtx_insn **.
5175 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5176 rtx_insn **.
5177 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5178 rtx_insn *.
5179 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5180 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5181 to rtx_insn *.
5182
5183 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5184 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5185 to rtx_insn *.
5186 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5187 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5188 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5189 rtx_insn **.
5190 (vr4130_reorder): Likewise.
5191 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5192 rtx to rtx_insn *.
5193 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5194 rtx_insn **.
5195 (mips_sched_reorder): Likewise.
5196 (mips_sched_reorder2): Likewise.
5197
5198 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5199
5200 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5201 Strengthen local "tmp" from rtx to rtx_insn *.
5202 (rs6000_sched_reorder2): Likewise.
5203
5204 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5205 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5206 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5207 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5208
5209 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5210 "tmp2" from rtx to rtx_insn *.
5211 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5212 Strengthen local "insn" from rtx to rtx_insn *.
5213 (ready_reorder): Strengthen param "ready" from rtx * to
5214 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5215 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5216 (sh_reorder2): Likewise.
5217
5218 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5219 local "insn" from rtx to rtx_insn *.
5220
5221 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5222 rtx_insn *.
5223 (scheduled_insns): Strengthen this variable from vec<rtx> to
5224 vec<rtx_insn *>.
5225 (set_modulo_params): Likewise for locals "i1", "i2".
5226 (record_delay_slot_pair): Likewise for params "i1", "i2".
5227 (add_delay_dependencies): Likewise for param "insn".
5228 (cond_clobbered_p): Likewise.
5229 (recompute_todo_spec): Likewise for local "prev".
5230 (last_scheduled_insn): Likewise for this variable.
5231 (nonscheduled_insns_begin): Likewise.
5232 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5233 rtx_insn **.
5234 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5235 rtx_insn *.
5236 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5237 Strengthen local "insn" from rtx to rtx_insn *.
5238 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5239 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5240 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5241 (ready_remove_first): Likewise for return type and local "t".
5242 (ready_element): Likewise for return type.
5243 (ready_remove): Likewise for return type and local "t".
5244 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5245 (check_clobbered_conditions): Strengthen local "x" from rtx to
5246 rtx_insn *, adding a checked cast.
5247 (schedule_insn): Likewise for param "insn".
5248 (remove_notes): Likewise for params "head", "tail" and locals
5249 "next_tail", "insn", "next".
5250 (struct haifa_saved_data): Likewise for fields
5251 "last_scheduled_insn", "nonscheduled_insns_begin".
5252 (save_backtrack_point): Update for change to field "vec" of
5253 struct ready_list.
5254 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5255 rtx_insn **.
5256 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5257 from rtx to rtx_insn *
5258 (resolve_dependencies): Strengthen param "insn" from rtx to
5259 rtx_insn *
5260 (restore_other_notes): Likewise for return type, for param "head"
5261 and local "note_head".
5262 (undo_all_replacements): Likewise for local "insn".
5263 (first_nonscheduled_insn): Likewise for return type and local "insn".
5264 (queue_to_ready): Likewise for local "insn", adding checked casts.
5265 (early_queue_to_ready): Likewise for local "insn".
5266 (debug_ready_list_1): Strengthen local "p" from rtx * to
5267 rtx_insn **.
5268 (move_insn): Strengthen param "insn" and local "note" from rtx to
5269 rtx_insn *
5270 (insn_finishes_cycle_p): Likewise for param "insn".
5271 (max_issue): Likewise for local "insn".
5272 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5273 to rtx_insn **.
5274 (commit_schedule): Strengthen param "prev_head" and local "insn"
5275 from rtx to rtx_insn *
5276 (prune_ready_list): Likewise for local "insn".
5277 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5278 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5279 (set_priorities): Likewise for local "prev_head".
5280 (try_ready): Likewise for param "next".
5281 (fix_tick_ready): Likewise.
5282 (change_queue_index): Likewise.
5283 (sched_extend_ready_list): Update for change to field "vec" of
5284 struct ready_list.
5285 (generate_recovery_code): Strengthen param "insn" from rtx to
5286 rtx_insn *.
5287 (begin_speculative_block): Likewise.
5288 (create_check_block_twin): Likewise for param "insn" and locals
5289 "label", "check", "twin". Introduce local "check_pat" to avoid
5290 "check" being used as a plain rtx before being used as an insn.
5291 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5292 extracting elements from ready_list.
5293 (sched_remove_insn): Strengthen param "insn" from rtx to
5294 rtx_insn *.
5295 (sched_emit_insn): Likewise for return type.
5296 (ready_remove_first_dispatch): Likewise for return type and local
5297 "insn".
5298
5299 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5300
5301 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5302 const rtx_insn *.
5303
5304 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5305 from rtx to rtx_insn *.
5306 (add_dependence_list): Likewise for param "insn". Add a checked
5307 cast.
5308 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5309 to rtx_insn *. Strengthen param "list_p" from rtx * to
5310 rtx_insn **.
5311 (chain_to_prev_insn): Strengthen param "insn" and locals
5312 "prec_nonnote", "i" from rtx to rtx_insn *.
5313 (flush_pending_lists): Likewise for param "insn".
5314 (cur_insn): Likewise for this variable.
5315 (haifa_start_insn): Add a checked cast.
5316 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5317 (sched_analyze_reg): Likewise for param "insn".
5318 (sched_analyze_1): Likewise.
5319 (sched_analyze_2): Likewise. Add checked casts.
5320 (sched_analyze_insn): Likewise. Also for local "prev".
5321 (deps_analyze_insn): Likewise for param "insn".
5322 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5323 (add_dependence_1): Likewise for params "insn", "elem".
5324 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5325 (parse_add_or_inc): Likewise for param "insn".
5326 (find_inc): Likewise for local "inc_cand".
5327 (find_modifiable_mems): Likewise for params "head", "tail" and
5328 locals "insn", "next_tail".
5329
5330 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5331 (begin_schedule_ready): Likewise for param "insn".
5332 (begin_move_insn): Likewise for params "insn" and "last".
5333 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5334 const rtx_insn *.
5335 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5336 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5337 (ebb_add_remove_insn): Likewise for param "insn".
5338 (advance_target_bb): Likewise.
5339
5340 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5341 "insn".
5342 (check_live): Likewise for param "insn".
5343 (init_ready_list): Likewise for local "insn".
5344 (can_schedule_ready_p): Likewise for param "insn".
5345 (begin_schedule_ready): Likewise.
5346 (new_ready): Likewise for param "next".
5347 (rgn_print_insn): Likewise for param "insn".
5348 (rgn_rank): Likewise for params "insn1", "insn2".
5349 (contributes_to_priority): Likewise for params "next", "insn".
5350 (rgn_insn_finishes_block_p): Likewise for param "insn".
5351 (add_branch_dependences): Likewise for params "head", "tail" and
5352 locals "insn", "last".
5353 (rgn_add_remove_insn): Likewise for param "insn".
5354 (advance_target_bb): Likewise.
5355
5356 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5357 const_rtx to const rtx_insn *.
5358
5359 * sel-sched-dump.h (sel_print_insn): Likewise.
5360
5361 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5362 (deps_init_id): Likewise.
5363
5364 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5365 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5366 rtx_insn **.
5367
5368 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5369
5370 * output.h (final_start_function): Strengthen param 1 from rtx to
5371 rtx_insn *.
5372
5373 * final.c (final_start_function): Likewise, renaming back from
5374 "uncast_first" to "first", and dropping the checked cast from rtx
5375 to rtx_insn *.
5376
5377 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5378
5379 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5380 * final.c (final): Likewise. Rename param back from
5381 "uncast_first" to "first" and eliminate the checked cast from rtx
5382 to rtx_insn *.
5383
5384 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5385
5386 * output.h (shorten_branches): Strengthen param from rtx to
5387 rtx_insn *.
5388
5389 * final.c (shorten_branches): Likewise, renaming param back from
5390 "uncast_first" to "first", and dropping the checked cast from rtx
5391 to rtx_insn *.
5392
5393 * genattr.c (gen_attr): Likewise when writing out the prototype of
5394 shorten_branches.
5395
5396 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5397
5398 * sched-int.h (struct haifa_sched_info): Strengthen fields
5399 "prev_head" and "next_tail" from rtx to rtx_insn *.
5400
5401 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5402
5403 * rtl.h (rtx_jump_table_data::get_labels): New method.
5404 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5405 with use of the new rtx_jump_table_data::get_labels method.
5406 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5407 to rtx_jump_table_data *. Simplify by using get_labels method.
5408 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5409 a dyn_cast, introducing local "table", using it to replace
5410 label-lookup logic with a get_labels method call.
5411 (patch_jump_insn): Simplify using get_labels method.
5412 * dwarf2cfi.c (create_trace_edges): Likewise.
5413 * rtlanal.c (label_is_jump_target_p): Likewise.
5414
5415 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5416
5417 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5418 to rtx_insn *.
5419
5420 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5421 (unshare_all_rtl_again): Likewise, also for local "p".
5422
5423 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5424
5425 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5426 to rtx_insn *.
5427 * cfgrtl.c (delete_insn_and_edges): Likewise.
5428
5429 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5430
5431 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5432 from rtx to rtx_insn *.
5433
5434 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5435
5436 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5437
5438 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5439 locals "returnjump", "epilogue_end", "insn", "next".
5440
5441 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5442 "returnjump" from rtx * to rtx_insn **.
5443 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5444
5445 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5446
5447 * basic-block.h (struct edge_def). Strengthen "r" within
5448 union edge_def_insns from rtx to rtx_insn *.
5449
5450 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5451 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5452 rtx_insn *.
5453 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5454 from rtx to rtx_insn *.
5455 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5456 rtx_insn *.
5457 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5458 (reg_used_on_edge): Likewise.
5459 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5460 (gt_pch_nx): New overload for rtx_insn *&.
5461 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5462 from rtx to rtx_insn *.
5463
5464 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5465
5466 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5467 from rtx to rtx_insn *.
5468 (BB_FOOTER): Replace function with access macro.
5469 (SET_BB_FOOTER): Delete.
5470
5471 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5472 with BB_FOOTER.
5473 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5474 (emit_barrier_after_bb): Likewise.
5475 (record_effective_endpoints): Likewise.
5476 (relink_block_chain): Likewise.
5477 (fixup_fallthru_exit_predecessor): Likewise.
5478 (cfg_layout_duplicate_bb): Likewise.
5479 (cfg_layout_split_block): Likewise.
5480 (cfg_layout_delete_block): Likewise.
5481 (cfg_layout_merge_blocks): Likewise.
5482 (BB_FOOTER): Delete function.
5483 (SET_BB_FOOTER): Delete function.
5484 * combine.c (update_cfg_for_uncondjump): Replace uses of
5485 SET_BB_FOOTER with BB_FOOTER.
5486
5487 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5488
5489 * except.h (struct eh_landing_pad_d): Strengthen field
5490 "landing_pad" from rtx to rtx_code_label *.
5491
5492 * except.c (sjlj_emit_dispatch_table): Likewise for param
5493 "dispatch_label"
5494 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5495
5496 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5497
5498 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5499 first param from rtx to rtx_insn *.
5500 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5501 field "set_frame_ptr_insn".
5502 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5503 "csend" from rtx to rtx_code_label *.
5504 (xtensa_expand_atomic): Likewise for local "csloop".
5505 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5506 rtx_insn *.
5507 (xtensa_call_tls_desc): Likewise for return type and locals
5508 "call_insn", "insns".
5509 (xtensa_legitimize_tls_address): Likewise for local "insns".
5510 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5511
5512 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5513
5514 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5515 first param from rtx to rtx_insn *.
5516 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5517 "insn".
5518
5519 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5520
5521 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5522 Strengthen param 1 from rtx to rtx_insn *.
5523 (tilepro_output_cbranch): Likewise.
5524 (tilepro_adjust_insn_length): Likewise.
5525 (tilepro_final_prescan_insn): Likewise for sole param.
5526
5527 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5528 Likewise for local "last".
5529 (cbranch_predicted_p): Likewise for param "insn".
5530 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5531 (tilepro_output_cbranch_with_opcode): Likewise.
5532 (tilepro_output_cbranch): Likewise.
5533 (frame_emit_load): Likewise for return type and locals "seq",
5534 "insn".
5535 (emit_sp_adjust): Likewise for return type and local "insn".
5536 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5537 "insn".
5538 (tilepro_adjust_insn_length): Likewise for param "insn".
5539 (next_insn_to_bundle): Likewise for return type and params
5540 "r", "end".
5541 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5542 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5543 local "new_insns".
5544 (match_addli_pcrel): Likewise for param "insn".
5545 (replace_addli_pcrel): Likewise.
5546 (match_auli_pcrel): Likewise.
5547 (replace_auli_pcrel): Likewise.
5548 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5549 "next_insn".
5550 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5551 "queue", "next_queue", "prev".
5552 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5553 (tilepro_final_prescan_insn): Likewise for param "insn".
5554
5555 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5556
5557 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5558 Strengthen param 1 from rtx to rtx_insn *.
5559 (tilegx_output_cbranch): Likewise.
5560 (tilegx_adjust_insn_length): Likewise.
5561 (tilegx_final_prescan_insn): Likewise for sole param.
5562
5563 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5564 or local "last".
5565 (cbranch_predicted_p): Likewise for param "insn".
5566 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5567 (tilegx_output_cbranch_with_opcode): Likewise.
5568 (tilegx_output_cbranch): Likewise.
5569 (frame_emit_load): Likewise for return type.
5570 (set_frame_related_p): Likewise for locals "seq", "insn".
5571 (emit_sp_adjust): Likewise for return type, and for local "insn".
5572 Introduce local "pat" for use in place of "insn" where the latter
5573 isn't an instruction.
5574 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5575 from rtx to rtx_insn *.
5576 (tilegx_adjust_insn_length): Likewise for param "insn".
5577 (next_insn_to_bundle): Likewise for return type and params "r" and
5578 "end".
5579 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5580 "end".
5581 (replace_insns): Likewise for params "old_insn", "new_insns".
5582 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5583 "new_insns".
5584 (replace_mov_pcrel_step2): Likewise.
5585 (replace_mov_pcrel_step3): Likewise.
5586 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5587 "next_insn".
5588 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5589 "queue", "next_queue", "prev".
5590 (tilegx_output_mi_thunk): Likewise for local "insn".
5591 (tilegx_final_prescan_insn): Likewise for param "insn".
5592
5593 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5594
5595 * config/spu/spu.c (frame_emit_store): Strengthen return type from
5596 rtx to rtx_insn *.
5597 (frame_emit_load): Likewise.
5598 (frame_emit_add_imm): Likewise, also for local "insn".
5599 (spu_expand_prologue): Likewise for local "insn".
5600 (struct spu_bb_info): Likewise for field "prop_jump".
5601 (emit_nop_for_insn): Likewise for param "insn" and local
5602 "new_insn".
5603 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5604 "hbr_insn".
5605 (spu_emit_branch_hint): Likewise for params "before", "branch" and
5606 locals "hint", "insn".
5607 (get_branch_target): Likewise for param "branch".
5608 (insn_clobbers_hbr): Likewise for param "insn".
5609 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5610 locals "insn", "before_4", "before_16".
5611 (insert_hbrp): Likewise for local "insn".
5612 (spu_machine_dependent_reorg): Likewise for locals "branch",
5613 "insn", "next", "bbend".
5614 (uses_ls_unit): Likewise for param "insn".
5615 (get_pipe): Likewise.
5616 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5617 introducing a checked cast.
5618 (spu_sched_adjust_cost): Likewise for params "insn" and
5619 "dep_insn".
5620 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5621 (spu_sms_res_mii): Likewise.
5622
5623 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5624
5625 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5626 from rtx to rtx_insn *.
5627 (output_cbranch): Likewise for param 6.
5628 (output_return): Likewise for param 1.
5629 (output_sibcall): Likewise.
5630 (output_v8plus_shift): Likewise.
5631 (output_v8plus_mult): Likewise.
5632 (output_v9branch): Likewise for param 7.
5633 (output_cbcond): Likewise for param 3.
5634
5635 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5636 for local "insn".
5637 (sparc_legitimize_pic_address): Likewise.
5638 (sparc_emit_call_insn): Likewise.
5639 (emit_save_or_restore_regs): Likewise.
5640 (emit_window_save): Likewise for return type and local "insn".
5641 (sparc_expand_prologue): Likewise for local "insn".
5642 (sparc_flat_expand_prologue): Likewise.
5643 (output_return): Likewise for param "insn".
5644 (output_sibcall): Likewise for param "insn" and local "delay".
5645 (output_ubranch): Likewise for param "insn".
5646 (output_cbranch): Likewise.
5647 (output_cbcond): Likewise.
5648 (output_v9branch): Likewise.
5649 (output_v8plus_shift): Likewise.
5650 (sparc_output_mi_thunk): Likewise for local "insn".
5651 (get_some_local_dynamic_name): Likewise.
5652 (output_v8plus_mult): Likewise for param "insn".
5653
5654 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5655
5656 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5657 from rtx to rtx_insn *.
5658 (output_branchy_insn): Likewise for param 3.
5659 (output_far_jump): Likewise for param 1.
5660 (final_prescan_insn): Likewise.
5661 (sh_insn_length_adjustment): Likewise for sole param.
5662
5663 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5664 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5665 rtx_code_label *.
5666 (sh_emit_compare_and_set): Likewise for local "lab".
5667 (output_far_jump): Strengthen param "insn" and local "prev" from
5668 rtx to rtx_insn *.
5669 (output_branchy_insn): Likewise for param "insn" and local
5670 "next_insn".
5671 (output_ieee_ccmpeq): Likewise for param "insn".
5672 (struct label_ref_list_d): Strengthen field "label" from rtx to
5673 rtx_code_label *.
5674 (pool_node): Likewise.
5675 (pool_window_label): Likewise for this global.
5676 (add_constant): Likewise for return type and locals "lab", "new_rtx".
5677 (dump_table): Strengthen params "start", "barrier" and local
5678 "scan" from rtx to rtx_insn *.
5679 (broken_move): Likewise for param "insn".
5680 (untangle_mova): Likewise for params "first_mova" and "new_mova".
5681 Strengthen param "first_mova" from rtx * to rtx_insn **.
5682 (mova_p): Likewise for param "insn".
5683 (fixup_mova): Likewise for param "mova".
5684 (find_barrier): Likewise for return type, params "mova" and
5685 "from", and locals "barrier_before_mova", "found_barrier",
5686 "good_barrier", "orig", "last_symoff", "next". Strengthen local
5687 "label" from rtx to rtx_code_label *.
5688 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5689 rtx to rtx_insn *.
5690 (sh_reorg): Likewise for locals "link", "scan", "barrier".
5691 (split_branches): Likewise for param "first" and local "insn".
5692 (final_prescan_insn): Likewise for param "insn".
5693 (sequence_insn_p): Likewise for locals "prev", "next".
5694 (sh_insn_length_adjustment): Likewise for param "insn".
5695 (sh_can_redirect_branch): Likewise for local "insn".
5696 (find_r0_life_regions): Likewise for locals "end", "insn".
5697 (sh_output_mi_thunk): Likewise for local "insns".
5698
5699 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5700
5701 * config/score/score.c (score_output_mi_thunk): Strengthen local
5702 "insn" from rtx to rtx_insn *.
5703 (score_prologue): Likewise.
5704
5705 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5706
5707 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5708 1 from rtx to rtx_insn *.
5709 (s390_emit_jump): Likewise for return type.
5710 (s390_emit_call): Likewise.
5711 (s390_load_got): Likewise.
5712
5713 * config/s390/s390.c (last_scheduled_insn): Likewise for this
5714 variable.
5715 (s390_match_ccmode): Likewise for param "insn".
5716 (s390_emit_jump): Likewise for return type.
5717 (s390_split_branches): Likewise for local "label".
5718 (struct constant): Strengthen field "label" from rtx to
5719 rtx_code_label *.
5720 (struct constant_pool): Likewise for field "label". Strengthen
5721 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5722 rtx_insn *.
5723 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5724 insns.
5725 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5726 (s390_end_pool): Likewise.
5727 (s390_dump_pool): Likewise for local "insn".
5728 (s390_mainpool_start): Likewise.
5729 (s390_chunkify_start): Likewise.
5730 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5731 with insns. Strengthen locals "label", "jump", "barrier", "next",
5732 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5733 (s390_chunkify_finish): Strengthen local "insn" from rtx to
5734 rtx_insn *.
5735 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5736 "jump", "label", "next_insn".
5737 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5738 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5739 "tbegin_insn".
5740 (s390_load_got): Likewise for return type and local "insns".
5741 (s390_save_gprs_to_fprs): Likewise for local "insn".
5742 (s390_restore_gprs_from_fprs): Likewise.
5743 (pass_s390_early_mach::execute): Likewise.
5744 (s390_emit_prologue): Likewise for local "insns".
5745 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5746 rtx_code_label *.
5747 (s390_emit_call): Strengthen return type and local "insn" from
5748 rtx to rtx_insn *.
5749 (s390_emit_tpf_eh_return): Likewise for local "insn".
5750 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5751 "next_insn", introducing locals "s_pat", "rpat" to allow this.
5752 (s390_fix_long_loop_prediction): Likewise for param "insn" and
5753 local "cur_insn".
5754 (s390_non_addr_reg_read_p): Likewise for param "insn".
5755 (find_cond_jump): Likewise for return type and param "insn".
5756 (s390_swap_cmp): Likewise for param "insn".
5757 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5758 "prev_insn", "next_insn".
5759 (s390_reorg): Likewise for locals "insn", "target".
5760 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5761 (s390_sched_variable_issue): For now, rename param "insn" to
5762 "uncast_insn", introducing a checked cast.
5763 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5764 insn.
5765 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5766 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
5767
5768 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5769
5770 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5771 param from rtx to rtx_insn *.
5772 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5773
5774 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5775
5776 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5777 4 from rtx to rtx_insn *.
5778 (rs6000_final_prescan_insn): Likewise for first param.
5779 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5780 local "insn".
5781 (rs6000_get_some_local_dynamic_name): Likewise.
5782 (output_cbranch): Likewise for param "insn".
5783 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5784 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5785 (rs6000_emit_allocate_stack): Likewise for local "insn".
5786 (load_cr_save): Likewise.
5787 (restore_saved_cr): Likewise.
5788 (restore_saved_lr): Likewise.
5789 (emit_cfa_restores): Likewise.
5790 (rs6000_output_function_epilogue): Likewise for locals "insn" and
5791 "deleted_debug_label".
5792 (rs6000_output_mi_thunk): Likewise for local "insn".
5793 (rs6000_final_prescan_insn): Likewise for param "insn".
5794
5795 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5796
5797 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5798 Strengthen param "insn" from rtx to rtx_insn *.
5799 * config/picochip/picochip.c (picochip_current_prescan_insn):
5800 Likewise for this variable.
5801 (picochip_final_prescan_insn): Likewise for param "insn".
5802
5803 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5804
5805 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5806 from rtx to rtx_insn *.
5807 (pa_output_indirect_call): Likewise.
5808 (pa_adjust_insn_length): Likewise.
5809 (pa_attr_length_millicode_call): Likewise.
5810 (pa_attr_length_call): Likewise.
5811 (pa_attr_length_indirect_call): Likewise.
5812
5813 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5814 "insn".
5815 (pa_attr_length_millicode_call): Likewise.
5816 (pa_attr_length_call): Likewise.
5817 (pa_output_call): Likewise.
5818 (pa_attr_length_indirect_call): Likewise.
5819 (pa_output_indirect_call): Likewise.
5820
5821 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5822
5823 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5824 Strengthen first param from rtx to rtx_insn *.
5825 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5826 param "insn".
5827
5828 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5829
5830 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5831 type from rtx to rtx_insn *.
5832 (mips_expand_call): Likewise.
5833 (mips_adjust_insn_length): Likewise for first param.
5834 (mips_output_conditional_branch): Likewise.
5835 (mips_output_order_conditional_branch): Likewise.
5836 (mips_final_prescan_insn): Likewise.
5837
5838 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5839 rtx_insn * for the SEQUENCE case.
5840 (SEQ_END): Likewise.
5841 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5842 (mips_emit_call_insn): Likewise, also for local "insn".
5843 (mips16_gp_pseudo_reg): Likewise for local "scan".
5844 (mips16_build_call_stub): Likewise for return type and for local
5845 "insn". Introduce a new local "pattern" so that "insn" can indeed
5846 be an insn.
5847 (mips_expand_call): Strengthen return type and local "insn" from
5848 rtx to rtx_insn *.
5849 (mips_block_move_loop): Strengthen local "label" from rtx to
5850 rtx_code_label *.
5851 (mips_expand_synci_loop): Likewise for locals "label",
5852 "end_label".
5853 (mips_set_frame_expr): Strengthen local "insn" from rtx to
5854 rtx_insn *.
5855 (mips16e_collect_argument_saves): Likewise for locals "insn",
5856 "next".
5857 (mips_find_gp_ref): Likewise for param of callback for "pred"
5858 param, and for local "insn".
5859 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5860 (mips_insn_has_flexible_gp_ref_p): Likewise.
5861 (mips_epilogue_emit_cfa_restores): Likewise for return type and
5862 local "insn".
5863 (mips_epilogue_set_cfa): Likewise for local "insn".
5864 (mips_expand_epilogue): Likewise.
5865 (mips_adjust_insn_length): Likewise for param "insn".
5866 (mips_output_conditional_branch): Likewise.
5867 (mips_output_order_conditional_branch): Likewise.
5868 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5869 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5870 "falu2_turn_enabled_insn".
5871 (mips_builtin_branch_and_move): Strengthen locals "true_label",
5872 "done_label" from rtx to rtx_code_label *.
5873 (struct mips16_constant): Likewise for field "label".
5874 (mips16_add_constant): Likewise for return type.
5875 (mips16_emit_constants_1): Strengthen return type and param "insn"
5876 from rtx to rtx_insn *.
5877 (mips16_emit_constants): Likewise for param "insn".
5878 (mips16_insn_length): Likewise.
5879 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5880 to rtx_code_label *.
5881 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5882 from rtx to rtx_insn *.
5883 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5884 "jump". Strengthen local "label" from rtx to rtx_code_label *.
5885 (r10k_simplify_address): Strengthen param "insn" and local
5886 "def_insn" from rtx to rtx_insn *.
5887 (r10k_safe_address_p): Strengthen param "insn" from rtx to
5888 rtx_insn *.
5889 (r10k_needs_protection_p_1): Update target type of cast of data
5890 from to rtx to rtx_insn *.
5891 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5892 rtx * to rtx_insn **.
5893 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5894 rtx_insn *.
5895 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5896 (mips_call_expr_from_insn): Likewise for param "insn".
5897 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5898 (mips_find_pic_call_symbol): Likewise for param "insn".
5899 (mips_annotate_pic_calls): Likewise for local "insn".
5900 (mips_sim_insn): Likewise for this variable.
5901 (struct mips_sim): Likewise for field "insn" within elements of
5902 last_set array.
5903 (mips_sim_wait_reg): Likewise for param "insn".
5904 (mips_sim_wait_regs): Likewise.
5905 (mips_sim_wait_units): Likewise.
5906 (mips_sim_wait_insn): Likewise.
5907 (mips_sim_issue_insn): Likewise.
5908 (mips_sim_finish_insn): Likewise.
5909 (mips_seq_time): Likewise for param "seq" and local "insn".
5910 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5911 locals "first", "second".
5912 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5913 "last", "last2", "next".
5914 (mips_avoid_hazard): Likewise for params "after", "insn".
5915 (mips_reorg_process_insns): Likewise for locals "insn",
5916 "last_insn", "subinsn", "next_insn".
5917 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5918 (mips16_split_long_branches): Likewise for locals "insn" "jump",
5919 "jump_sequence".
5920 (mips_output_mi_thunk): Likewise for local "insn".
5921 (mips_final_prescan_insn): Likewise for param "insn".
5922
5923 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5924
5925 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
5926 Strengthen return type and local "insns" from rtx to rtx_insn *.
5927 (microblaze_legitimize_tls_address): Likewise for local "insns".
5928 (microblaze_block_move_loop): Strengthen local "label" from rtx
5929 to rtx_code_label *.
5930 (microblaze_expand_prologue): Strengthen two locals named "insn"
5931 from rtx to rtx_insn *.
5932 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
5933 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
5934 "insn". Strengthen locals "div_label", "div_end_label" from rtx
5935 to rtx_code_label *.
5936
5937 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5938
5939 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
5940 param from rtx to rtx_insn *.
5941 (mep_reuse_lo): Likewise for third param.
5942 (mep_use_post_modify_p): Likewise for first param.
5943 (mep_core_address_length): Likewise.
5944 (mep_cop_address_length): Likewise.
5945 (mep_final_prescan_insn): Likewise.
5946 (mep_store_data_bypass_p): Likewise for both params.
5947 (mep_mul_hilo_bypass_p): Likewise.
5948 (mep_ipipe_ldc_p): Likewise for param.
5949
5950 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5951 (mep_rewrite_mult): Likewise.
5952 (mep_rewrite_mulsi3): Likewise.
5953 (mep_rewrite_maddsi3): Likewise.
5954 (mep_reuse_lo_p_1): Likewise.
5955 (mep_reuse_lo_p): Likewise.
5956 (mep_frame_expr): Likewise.
5957 (mep_make_parallel): Likewise for both params.
5958 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5959 local "insn".
5960 (mep_use_post_modify_p): Likewise for param "insn".
5961 (mep_core_address_length): Likewise.
5962 (mep_cop_address_length): Likewise.
5963 (mep_reg_set_in_function): Likewise for local "insn".
5964 (mep_asm_without_operands_p): Likewise.
5965 (F): Likewise for return type and param "x".
5966 (add_constant): Likewise for local "insn".
5967 (maybe_dead_move): Likewise for return type and local "insn".
5968 (mep_expand_prologue): Likewise for local "insn".
5969 (mep_final_prescan_insn): Likewise for param "insn".
5970 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5971 "next", "follow", "x".
5972 (mep_insert_repeat_label_last): Likewise for return type, param
5973 "last_insn", and locals "next", "prev". Strengthen param "label"
5974 from rtx to rtx_code_label *.
5975 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5976 rtx_insn *.
5977 (struct mep_doloop_end): Likewise for fields "insn" and
5978 "fallthrough".
5979 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5980 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5981 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5982 rtx_insn *.
5983 (mep_invert_branch): Likewise for params "insn" and "after".
5984 (mep_reorg_erepeat): Likewise for param "insns" and locals
5985 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5986 "l" from rtx to rtx_code_label *.
5987 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
5988 from rtx to rtx_insn *.
5989 (mep_reorg_addcombine): Likewise for param "insns" and locals
5990 "i", "n".
5991 (add_sp_insn_p): Likewise for param "insn".
5992 (mep_reorg_noframe): Likewise for param "insns" and locals
5993 "start_frame_insn", "end_frame_insn", "next".
5994 (mep_reorg): Likewise for local "insns".
5995 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
5996 cast.
5997 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
5998 (mep_mul_hilo_bypass_p): Likewise.
5999 (mep_ipipe_ldc_p): Likewise for param "insn".
6000 (mep_make_bundle): Likewise for return type, param "cop" and local
6001 "insn", splitting out the latter into a new local "seq" for when it
6002 is a SEQUENCE rather than an insn.
6003 (core_insn_p): Likewise for param "insn".
6004 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6005 "last", "first", "note", "prev", "core_insn".
6006
6007 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6008
6009 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6010 rtx to rtx_insn *.
6011 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6012 (m68k_final_prescan_insn): Likewise for first param.
6013
6014 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6015 (m68k_set_frame_related): Likewise for param "insn".
6016 (output_btst): Likewise for param "insn".
6017 (m68k_final_prescan_insn): Likewise.
6018 (m68k_move_to_reg): Likewise for local "insn".
6019 (m68k_call_tls_get_addr): Likewise for local "insns".
6020 (m68k_call_m68k_read_tp): Likewise.
6021 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6022 (m68k_output_mi_thunk): Likewise for local "insn".
6023
6024 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6025
6026 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6027 first param from rtx to rtx_insn *.
6028 (iq2000_adjust_insn_length): Likewise.
6029 (iq2000_output_conditional_branch): Likewise.
6030 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6031 "insn" and local "nop_insn".
6032 (iq2000_annotate_frame_insn): Likewise for param "insn".
6033 (iq2000_expand_prologue): Likewise for both locals "insn".
6034 (iq2000_adjust_insn_length): Likewise for param "insn".
6035 (iq2000_output_conditional_branch): Likewise.
6036
6037 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6038
6039 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6040 "insns" from rtx to rtx_insn *.
6041 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6042 (struct spill_fill_data): Likewise for field "init_after" and for
6043 elements of array field "prev_insn".
6044 (spill_restore_mem): Likewise for locals "insn", "first".
6045 (do_spill): Likewise for local "insn".
6046 (do_restore): Likewise.
6047 (ia64_expand_prologue): Likewise.
6048 (ia64_expand_epilogue): Likewise.
6049 (emit_insn_group_barriers): Likewise for locals "insn",
6050 "last_label".
6051 (emit_all_insn_group_barriers): Likewise for locals "insn",
6052 "last".
6053 (dfa_stop_insn): Likewise for this global.
6054 (dfa_pre_cycle_insn): Likewise.
6055 (ia64_nop): Likewise.
6056 (final_emit_insn_group_barriers): Likewise for locals "insn",
6057 "last".
6058 (emit_predicate_relation_info): Likewise for locals "head", "n",
6059 "insn", "b", "a".
6060 (ia64_reorg): Likewise for local "insn".
6061 (ia64_output_mi_thunk): Likewise.
6062 (expand_vec_perm_interleave_2): Likewise for local "seq".
6063
6064 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6065
6066 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6067 param 1 "insn" from rtx to rtx_insn *.
6068 (ix86_use_lea_for_mov): Likewise.
6069 (ix86_avoid_lea_for_addr): Likewise.
6070 (ix86_split_lea_for_addr): Likewise.
6071 (ix86_lea_for_add_ok): Likewise.
6072 (ix86_output_call_insn): Likewise.
6073
6074 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6075 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6076 (ix86_output_function_epilogue): Likewise for locals "insn",
6077 "deleted_debug_label".
6078 (legitimize_tls_address): Likewise for local "insn".
6079 (get_some_local_dynamic_name): Likewise.
6080 (increase_distance): Likewise for params "prev", "next".
6081 (distance_non_agu_define_in_bb): Likewise for params "insn",
6082 "start" and locals "prev", "next".
6083 (distance_non_agu_define): Likewise for param "insn".
6084 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6085 locals "next", "prev".
6086 (distance_agu_use): Likewise for param "insn".
6087 (ix86_lea_outperforms): Likewise.
6088 (ix86_ok_to_clobber_flags): Likewise.
6089 (ix86_avoid_lea_for_add): Likewise.
6090 (ix86_use_lea_for_mov): Likewise.
6091 (ix86_avoid_lea_for_addr): Likewise.
6092 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6093 (ix86_split_lea_for_addr): Likewise for param "insn".
6094 (ix86_lea_for_add_ok): Likewise for param "insn".
6095 (ix86_expand_carry_flag_compare): Likewise for local
6096 "compare_seq".
6097 (ix86_expand_int_movcc): Likewise.
6098 (ix86_output_call_insn): Likewise for param "insn".
6099 (ix86_output_call_insn): Likewise for local "i".
6100 (x86_output_mi_thunk): Introduce local "insn", using it in place
6101 of "tmp" when dealing with insns.
6102 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6103 "start".
6104 (ix86_pad_returns): Likewise for locals "ret", "prev".
6105 (ix86_count_insn_bb): Likewise for local "insn".
6106 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6107 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6108 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6109 (expand_vec_perm_interleave2): Likewise for local "seq".
6110 (expand_vec_perm_vperm2f128_vblend): Likewise.
6111 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6112 call to for_each_rtx with for_each_rtx_in_insn.
6113
6114 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6115
6116 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6117 "label" from rtx to rtx_code_label *.
6118 (ix86_expand_prologue): Likewise.
6119 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6120 "varargs_label".
6121 (ix86_split_idivmod): Likewise for locals "end_label" and
6122 "qimode_label".
6123 (ix86_expand_branch): Likewise for local "label2".
6124 (ix86_expand_aligntest): Likewise for return type and local "label".
6125 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6126 "top_label".
6127 (expand_movmem_epilogue): Likewise for the various locals named
6128 "label".
6129 (expand_setmem_epilogue): Likewise.
6130 (expand_small_movmem_or_setmem): Likewise for local "label".
6131 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6132 Strengthen param "done_label" from rtx * to rtx_code_label **.
6133 Strengthen locals "loop_label" and "label" from rtx to
6134 rtx_code_label *.
6135 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6136 Likewise for locals "loop_label", "label".
6137 (ix86_expand_set_or_movmem): Likewise for locals "label",
6138 "jump_around_label", "hot_label".
6139 (ix86_expand_strlensi_unroll_1): Likewise for locals
6140 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6141 "end_2_label".
6142 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6143 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6144 "label2", "jump_label".
6145 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6146 local "label".
6147 (ix86_expand_lfloorceil): Likewise for local "label".
6148 (ix86_expand_rint): Likewise.
6149 (ix86_expand_floorceildf_32): Likewise.
6150 (ix86_expand_floorceil): Likewise.
6151 (ix86_expand_rounddf_32): Likewise.
6152 (ix86_expand_trunc): Likewise.
6153 (ix86_expand_truncdf_32): Likewise.
6154 (ix86_expand_round): Likewise.
6155
6156 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6157
6158 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6159 first param from rtx to rtx_insn *.
6160 (h8300_insn_length_from_table): Likewise.
6161 * config/h8300/h8300.c (F): Likewise for return type and param
6162 "x".
6163 (Fpa): Add a checked cast to rtx_insn *.
6164 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6165 rtx_insn *.
6166 (final_prescan_insn): Likewise for param "insn".
6167 (h8300_binary_length): Likewise.
6168 (h8300_insn_length_from_table): Likewise.
6169
6170 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6171
6172 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6173 Strengthen first param "insn" from rtx to rtx_insn *.
6174
6175 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6176 Likewise.
6177 (frame_insn): Likewise for return type. Introduce local "insn"
6178 for use in place of local "x" for use as an rtx_insn *.
6179 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6180 (epiphany_expand_prologue): Likewise for local "insn".
6181 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6182 * config/epiphany/resolve-sw-modes.c
6183 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6184 "seq".
6185
6186 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6187
6188 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6189 param from rtx to rtx_insn *.
6190 (c6x_final_prescan_insn): Likewise for first param.
6191
6192 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6193 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6194 (c6x_expand_compare): Strengthen local "insns" from rtx to
6195 rtx_insn *.
6196 (c6x_get_unit_specifier): Likewise for param "insn".
6197 (c6x_print_unit_specifier_field): Likewise.
6198 (c6x_final_prescan_insn): Likewise.
6199 (emit_add_sp_const): Likewise for local "insn".
6200 (c6x_expand_prologue): Likewise.
6201
6202 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6203
6204 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6205 param 1 from rtx to rtx_insn *.
6206 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6207 the various locals named "insn".
6208 (expand_epilogue_reg_restore): Likewise.
6209 (frame_related_constant_load): Likewise.
6210 (add_to_reg): Likewise.
6211 (emit_link_insn): Likewise.
6212 (do_link): Likewise.
6213 (expand_interrupt_handler_prologue): Likewise.
6214 (branch_dest): Likewise for param "branch".
6215 (asm_conditional_branch): Likewise for param "insn".
6216 (gen_one_bundle): Likewise for elements of param "slot" and local
6217 "t".
6218 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6219 elements of local "slot".
6220 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6221 "queue", "next_queue", "prev".
6222 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6223 (add_sched_insns_for_speculation): Likewise for local "insn".
6224
6225 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6226
6227 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6228 from rtx to rtx_insn *.
6229 (output_movhi): Likewise.
6230 (output_movsisf): Likewise.
6231 (avr_out_tstsi): Likewise.
6232 (avr_out_tsthi): Likewise.
6233 (avr_out_tstpsi): Likewise.
6234 (avr_out_compare): Likewise.
6235 (avr_out_compare64): Likewise.
6236 (avr_out_movpsi): Likewise.
6237 (ashlqi3_out): Likewise.
6238 (ashlhi3_out): Likewise.
6239 (ashlsi3_out): Likewise.
6240 (ashrqi3_out): Likewise.
6241 (ashrhi3_out): Likewise.
6242 (ashrsi3_out): Likewise.
6243 (lshrqi3_out): Likewise.
6244 (lshrhi3_out): Likewise.
6245 (lshrsi3_out): Likewise.
6246 (avr_out_ashlpsi3): Likewise.
6247 (avr_out_ashrpsi3): Likewise.
6248 (avr_out_lshrpsi3): Likewise.
6249 (avr_out_fract): Likewise.
6250 (avr_out_sbxx_branch): Likewise.
6251 (avr_out_round): Likewise.
6252 (avr_out_xload): Likewise.
6253 (avr_out_movmem): Likewise.
6254 (adjust_insn_length): Likewise.
6255 (avr_out_lpm): Likewise.
6256 (reg_unused_after): Likewise.
6257 (_reg_unused_after): Likewise.
6258 (avr_jump_mode): Likewise for second param.
6259 (jump_over_one_insn): Likewise for first param.
6260 (avr_final_prescan_insn): Likewise.
6261 (out_shift_with_cnt): Likewise for second param.
6262
6263 * config/avr/avr.c (get_sequence_length): Likewise for param
6264 "insns" and local "insn".
6265 (emit_push_byte): Likewise for local "insn".
6266 (emit_push_sfr): Likewise.
6267 (avr_prologue_setup_frame): Likewise for locals "insn",
6268 "fp_plus_insns", "sp_plus_insns".
6269 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6270 "sp_plus_insns".
6271 (avr_jump_mode): Likewise for param "insn".
6272 (avr_final_prescan_insn): Likewise.
6273 (avr_find_unused_d_reg): Likewise.
6274 (avr_out_lpm_no_lpmx): Likewise.
6275 (avr_out_lpm): Likewise.
6276 (avr_out_xload): Likewise.
6277 (output_movqi): Likewise.
6278 (output_movhi): Likewise.
6279 (out_movqi_r_mr): Likewise.
6280 (out_movhi_r_mr): Likewise.
6281 (out_movsi_r_mr): Likewise.
6282 (out_movsi_mr_r): Likewise.
6283 (output_movsisf): Likewise.
6284 (avr_out_load_psi): Likewise.
6285 (avr_out_store_psi): Likewise.
6286 (avr_out_movpsi): Likewise.
6287 (out_movqi_mr_r): Likewise.
6288 (avr_out_movhi_mr_r_xmega): Likewise.
6289 (out_movhi_mr_r): Likewise.
6290 (compare_condition): Likewise for param "insn" and local "next".
6291 (compare_sign_p): Likewise for param "insn".
6292 (compare_diff_p): Likewise.
6293 (compare_eq_p): Likewise.
6294 (avr_out_compare): Likewise.
6295 (avr_out_compare64): Likewise.
6296 (avr_out_tsthi): Likewise.
6297 (avr_out_tstpsi): Likewise.
6298 (avr_out_tstsi): Likewise.
6299 (out_shift_with_cnt): Likewise.
6300 (ashlqi3_out): Likewise.
6301 (ashlhi3_out): Likewise.
6302 (avr_out_ashlpsi3): Likewise.
6303 (ashlsi3_out): Likewise.
6304 (ashrqi3_out): Likewise.
6305 (ashrhi3_out): Likewise.
6306 (avr_out_ashrpsi3): Likewise.
6307 (ashrsi3_out): Likewise.
6308 (lshrqi3_out): Likewise.
6309 (lshrhi3_out): Likewise.
6310 (avr_out_lshrpsi3): Likewise.
6311 (lshrsi3_out): Likewise.
6312 (avr_out_fract): Likewise.
6313 (avr_out_round): Likewise.
6314 (avr_adjust_insn_length): Likewise.
6315 (reg_unused_after): Likewise.
6316 (_reg_unused_after): Likewise.
6317 (avr_compare_pattern): Likewise.
6318 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6319 and locals "branch1", "branch2", "insn2", "jump".
6320 (avr_reorg): Likewise for local "insn".
6321 (avr_2word_insn_p): Likewise for param "insn".
6322 (jump_over_one_insn_p): Likewise.
6323 (avr_out_sbxx_branch): Likewise.
6324 (avr_out_movmem): Likewise.
6325
6326 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6327
6328 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6329 param from rtx to rtx_insn *.
6330 (thumb1_final_prescan_insn): Likewise.
6331 (thumb2_final_prescan_insn): Likewise.
6332
6333 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6334 rtx to rtx_insn *.
6335 (struct minipool_node): Likewise for field "insn".
6336 (dump_minipool): Likewise for param "scan".
6337 (create_fix_barrier): Likewise for local "from". Strengthen local
6338 "label" from rtx to rtx_code_label *.
6339 (push_minipool_barrier): Strengthen param "insn" from rtx to
6340 rtx_insn *.
6341 (push_minipool_fix): Likewise.
6342 (note_invalid_constants): Likewise.
6343 (thumb2_reorg): Likewise for local "insn".
6344 (arm_reorg): Likewise.
6345 (thumb2_final_prescan_insn): Likewise for param
6346 "insn" and local "first_insn".
6347 (arm_final_prescan_insn): Likewise for param "insn" and locals
6348 "start_insn", "this_insn".
6349 (arm_debugger_arg_offset): Likewise for param "insn".
6350 (thumb1_emit_multi_reg_push): Likewise for return type and local
6351 "insn".
6352 (thumb1_final_prescan_insn): Likewise for param "insn".
6353 (thumb_far_jump_used_p): Likewise for local "insn".
6354 (thumb1_expand_prologue): Likewise.
6355 (arm_expand_epilogue_apcs_frame): Likewise.
6356 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6357 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6358 from rtx to rtx_code_label *.
6359 (arm_split_atomic_op): Likewise for local "label".
6360 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6361
6362 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6363
6364 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6365 first param from rtx to rtx_insn *.
6366 (arc_verify_short): Likewise.
6367 (arc_short_long): Likewise.
6368 (arc_need_delay): Likewise.
6369
6370 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6371 "target_insn".
6372 (arc_ccfsm_advance): Likewise for param "insn" and locals
6373 "start_insn", "this_insn".
6374 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6375 (arc_ccfsm_post_advance): Likewise for param "insn".
6376 (arc_next_active_insn): Likewise for return type and param "insn".
6377 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6378 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6379 (output_short_suffix): Likewise for local "insn".
6380 (arc_final_prescan_insn): Likewise for param "insn". Remove
6381 now-redundant checked cast.
6382 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6383 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6384 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6385 for use where lc_set became an insn.
6386 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6387 rtx to rtx_insn *.
6388 (arc_get_insn_variants): Likewise for local "prev".
6389 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6390 "next".
6391 (arc_predicate_delay_insns): Likewise for local "insn".
6392 (arc_pad_return): Likewise for local "prev". For now, add a
6393 checked cast when extracting the insn from "final_sequence".
6394 (arc_short_long): Likewise for param "insn".
6395 (arc_need_delay): Likewise for param "insn" and local "next".
6396 (arc_label_align): Likewise for locals "prev", "next".
6397
6398 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6399
6400 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6401 "insn" from rtx to rtx_insn *.
6402 (alpha_gp_save_rtx): Likewise for local "seq".
6403 (alpha_instantiate_decls): Likewise for local "top".
6404 (get_some_local_dynamic_name): Likewise for local "insn".
6405 (alpha_does_function_need_gp): Likewise.
6406 (set_frame_related_p): Likewise for return type and for locals
6407 "seq" and "insn".
6408 (emit_frame_store_1): Likewise for local "insn".
6409 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6410 (alpha_end_function): Likewise for local "insn".
6411 (alpha_output_mi_thunk_osf): Likewise.
6412 (alphaev4_insn_pipe): Likewise for param "insn".
6413 (alphaev5_insn_pipe): Likewise.
6414 (alphaev4_next_group): Likewise for return type and param 1
6415 "insn".
6416 (alphaev5_next_group): Likewise.
6417 (alpha_align_insns_1): Likewise for return type and param 1 of
6418 callback param "next_group", and for locals "i", "next", "prev",
6419 "where", "where2", "insn".
6420
6421 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6422
6423 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6424 rather than modifying the stmt.
6425
6426 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6427
6428 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6429 cgraph_state conversion.
6430
6431 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6432
6433 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6434 Strengthen local "insns" from rtx to rtx_insn *.
6435 (aarch64_set_frame_expr): Likewise for local "insn".
6436 (aarch64_save_or_restore_fprs): Likewise.
6437 (aarch64_save_or_restore_callee_save_registers): Likewise.
6438 (aarch64_expand_prologue): Likewise.
6439 (aarch64_expand_epilogue): Likewise.
6440 (aarch64_output_mi_thunk): Likewise.
6441 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6442 "label2" from rtx to rtx_code_label *.
6443 (aarch64_split_atomic_op): Likewise for local "label".
6444
6445 2014-08-25 Martin Liska <mliska@suse.cz>
6446
6447 * cgraph.h (symtab_node):
6448 (bool needed_p (void)): created from decide_is_symbol_needed
6449 (bool referred_to_p (void)): created from referred_to_p
6450 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6451 * cgraph.h (cgraph_node):
6452 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6453 (void expand (void)): created from expand_function
6454 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6455 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6456 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6457 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6458 * cgraph.h (varpool_node):
6459 (static void add (tree decl): created from varpool_add_new_variable
6460 * cgraph.h (cgraph_edge):
6461 void remove (void);
6462 (void remove_caller (void)): created from cgraph_edge_remove_caller
6463 (void remove_callee (void)): created from cgraph_edge_remove_callee
6464 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6465 created from cgraph_set_call_stmt
6466 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6467 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6468 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6469 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6470 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6471 created from cgraph_speculative_call_info
6472 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6473 int freq_scale, bool update_original)): created from cgraph_clone_edge
6474 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6475 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6476 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6477 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6478 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6479 (static void rebuild_references (void)): created from cgraph_rebuild_references
6480 * cgraph.h (symbol_table):
6481 (create_reference): renamed from add_reference
6482 (maybe_create_reference): renamed from maybe_add_reference
6483 (void register_symbol (symtab_node *node)): new function
6484 (void clear_asm_symbols (void)): new function
6485 (void unregister (symtab_node *node)): new function
6486 (void release_symbol (cgraph_node *node, int uid)): new function
6487 (cgraph_node * allocate_cgraph_symbol (void)): new function
6488 (void initialize (void)): created from cgraph_init
6489 (symtab_node *first_symbol (void)):new function
6490 (asm_node *first_asm_symbol (void)):new function
6491 (symtab_node *first_defined_symbol (void)):new function
6492 (varpool_node *first_variable (void)):new function
6493 (varpool_node *next_variable (varpool_node *node)):new function
6494 (varpool_node *first_static_initializer (void)):new function
6495 (varpool_node *next_static_initializer (varpool_node *node)):new function
6496 (varpool_node *first_defined_variable (void)):new function
6497 (varpool_node *next_defined_variable (varpool_node *node)):new function
6498 (cgraph_node *first_defined_function (void)):new function
6499 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6500 (cgraph_node *first_function (void)):new function
6501 (cgraph_node *next_function (cgraph_node *node)):new function
6502 (cgraph_node *first_function_with_gimple_body (void)):new function
6503 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6504 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6505 created from symtab_remove_unreachable_nodes
6506 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6507 (void process_new_functions (void)): created from cgraph_process_new_functions
6508 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6509 (bool output_variables (void)): created from varpool_node::output_variables
6510 (void output_asm_statements (void)): created from output_asm_statements
6511 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6512 (void compile (void)): created from compile
6513 (void output_weakrefs (void)): created from output_weakrefs
6514 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6515 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6516 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6517 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6518 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6519 created from cgraph_next_function_with_gimple_body
6520 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6521 created from cgraph_remove_edge_removal_hook
6522 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6523 created from cgraph_add_node_removal_hook
6524 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6525 created from cgraph_remove_node_removal_hook
6526 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6527 created from varpool_add_node_removal_hook
6528 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6529 created from varpool_remove_node_removal_hook
6530 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6531 created from cgraph_add_function_insertion_hook
6532 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6533 created from cgraph_remove_function_insertion_hook
6534 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6535 created from varpool_add_variable_insertion_hook
6536 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6537 created from varpool_remove_variable_insertion_hook
6538 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6539 created from cgraph_add_edge_duplication_hook
6540 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6541 created from cgraph_remove_edge_duplication_hook
6542 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6543 created from cgraph_add_node_duplication_hook
6544 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6545 created from cgraph_remove_node_duplication_hook
6546 (void call_edge_removal_hooks (cgraph_edge *e)):
6547 created from cgraph_call_edge_removal_hooks
6548 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6549 created from call_function_insertion_hooks
6550 (void call_cgraph_removal_hooks (cgraph_node *node)):
6551 created from cgraph_call_node_removal_hooks
6552 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6553 created from cgraph_node::call_duplication_hooks
6554 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6555 created from cgraph_call_edge_duplication_hooks
6556 (void call_varpool_removal_hooks (varpool_node *node)):
6557 created from varpool_call_node_removal_hooks
6558 (void call_varpool_insertion_hooks (varpool_node *node)):
6559 created from varpool_call_variable_insertion_hooks
6560 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6561 created from insert_to_assembler_name_hash
6562 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6563 created from unlink_from_assembler_name_hash
6564 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6565 created from symtab_prevail_in_asm_name_hash
6566 (void symtab_initialize_asm_name_hash (void)):
6567 created from symtab_initialize_asm_name_hash
6568 (void change_decl_assembler_name (tree decl, tree name)):
6569 created from change_decl_assembler_name
6570 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6571 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6572 created from decl_assembler_name_hash
6573 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6574 created from decl_assembler_name_equal
6575 (static hashval_t hash_node_by_assembler_name (const void *p)):
6576 created from hash_node_by_assembler_name
6577 (static int eq_assembler_name (const void *p1, const void *p2)):
6578 created from eq_assembler_name
6579
6580 2014-08-25 Marek Polacek <polacek@redhat.com>
6581
6582 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6583
6584 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6585
6586 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6587 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6588 SWI1248_AVX512BW mode iterator.
6589
6590 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6591
6592 PR target/62111
6593 * config/sh/predicates.md (general_extend_operand): Disable
6594 TRUNCATE before reload completes.
6595
6596 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
6597
6598 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6599
6600 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
6601
6602 PR target/61996
6603 * config/sh/sh.opt (musermode): Allow negative form.
6604 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6605 targets that don't support it.
6606 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6607 Document -mno-usermode option.
6608
6609 2014-08-24 Kito Cheng <kito@0xlab.org>
6610
6611 * system.h (CALLER_SAVE_PROFITABLE): Poison.
6612 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6613 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6614 * doc/tm.texi: Regenerate.
6615
6616 2014-08-24 Kito Cheng <kito@0xlab.org>
6617
6618 * ira.c: Fix typo in comment.
6619
6620 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6621
6622 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6623 Deprecate c++1y. Change language to reflect greater confidence in C++14.
6624
6625 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
6626
6627 PR target/62038
6628 * config/pa/pa.c (pa_output_function_epilogue): Don't set
6629 last_address when the current function is a thunk.
6630 (pa_asm_output_mi_thunk): When we don't have named sections or they
6631 are not being used, check that thunk can reach the stub table with a
6632 short branch.
6633
6634 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6635
6636 * web.c (union_match_dups): Strengthen param "insn" from rtx to
6637 rtx_insn *.
6638 (pass_web::execute): Likewise for local "insn".
6639
6640 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6641
6642 * var-tracking.c (struct micro_operation_def): Strengthen field
6643 "insn" from rtx to rtx_insn *.
6644 (struct emit_note_data_def): Likewise.
6645 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6646 (vt_stack_adjustments): Likewise for local "insn".
6647 (adjust_insn): Likewise for param "insn".
6648 (val_store): Likewise.
6649 (val_resolve): Likewise.
6650 (struct count_use_info): Likewise for field "insn".
6651 (log_op_type): Likewise for param "insn".
6652 (reverse_op): Likewise.
6653 (prepare_call_arguments): Likewise.
6654 (add_with_sets): The initial param takes an insn, but we can't
6655 yet strengthen it from rtx to rtx_insn * since it's used as a
6656 cselib_record_sets_hook callback. For now rename initial param
6657 from "insn" to "uncast_insn", and introduce a local "insn" of
6658 the stronger rtx_insn * type, with a checked cast.
6659 (compute_bb_dataflow): Strengthen local "insn" from rtx to
6660 rtx_insn *.
6661 (emit_note_insn_var_location): Likewise.
6662 (emit_notes_for_changes): Likewise.
6663 (emit_notes_for_differences): Likewise.
6664 (next_non_note_insn_var_location): Likewise for return type and
6665 for param "insn".
6666 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6667 (vt_initialize): Likewise for local "insn".
6668 (delete_debug_insns): Likewise for locals "insn" and "next".
6669
6670 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6671
6672 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6673 rtx_insn *.
6674 (mark_constant_pool): Likewise for local "insn".
6675
6676 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6677
6678 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6679 rtx to rtx_insn *.
6680 (dead_debug_promote_uses): Likewise.
6681 (dead_debug_insert_temp): Likewise.
6682
6683 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6684
6685 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6686 from const_rtx to const rtx_insn *.
6687 (store_killed_after): Likewise. Strengthen locals "last", "act"
6688 from rtx to rtx_insn *.
6689 (store_killed_before): Strengthen param "insn" from const_rtx to
6690 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
6691 (find_moveable_store): Strengthen param "insn" from rtx to
6692 rtx_insn *.
6693 (compute_store_table): Likewise for local "insn".
6694 (insert_insn_start_basic_block): Likewise for param "insn" and
6695 locals "prev", "before", "insn".
6696 (insert_store): For now, add a checked cast to rtx_insn * on the
6697 result of gen_move_insn.
6698 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6699 to rtx_insn *.
6700 (replace_store_insn): Likewise. For now, add a checked cast to
6701 rtx_insn * on the result of gen_move_insn.
6702
6703 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6704
6705 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6706 rtx_insn *.
6707 (expand_sjlj_dispatch_table): Likewise.
6708
6709 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6710
6711 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6712 "insn" from rtx to rtx_insn *.
6713
6714 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6715
6716 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6717 "insn" from rtx to rtx_insn *.
6718 (dup_block_and_redirect): Likewise for param 3 "before".
6719
6720 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6721 from rtx to rtx_insn *.
6722 (move_insn_for_shrink_wrap): Likewise.
6723 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6724 (dup_block_and_redirect): Likewise for param "before" and local
6725 "insn".
6726 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6727 "end".
6728 (convert_to_simple_return): Likewise for local "start".
6729
6730 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6731 Strengthen local "insn" from rtx to rtx_insn *, for use when
6732 invoking requires_stack_frame_p.
6733
6734 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6735
6736 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6737 rtx_insn *.
6738 (speculate_expr): Likewise for locals "orig_insn_rtx",
6739 "spec_insn_rtx".
6740 (eq_transformed_insns): Likewise for locals "i1", "i2".
6741 (check_for_new_jump): Likewise for return type and local "end".
6742 (find_new_jump): Likewise for return type and local "jump".
6743 (sel_split_edge): Likewise for local "jump".
6744 (sel_create_recovery_block): Likewise.
6745 (sel_redirect_edge_and_branch_force): Likewise.
6746 (sel_redirect_edge_and_branch): Likewise.
6747
6748 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6749
6750 * sel-sched.c (substitute_reg_in_expr): Strengthen local
6751 "new_insn" from rtx to rtx_insn *.
6752 (create_insn_rtx_with_rhs): Likewise for return type and for local
6753 "insn_rtx".
6754 (create_insn_rtx_with_lhs): Likewise.
6755 (create_speculation_check): Likewise for local "insn_rtx".
6756 (implicit_clobber_conflict_p): Likewise for local "insn".
6757 (get_expr_cost): Likewise.
6758 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6759 (move_cond_jump): Likewise for locals "next", "prev", "link",
6760 "head", "from", "to".
6761
6762 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6763
6764 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6765 "next" from rtx to rtx_insn *.
6766 (find_conditional_protection): Likewise for local "next".
6767 (is_conditionally_protected): Likewise for local "insn1".
6768 (is_pfree): Likewise for locals "insn1", "insn2".
6769
6770 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6771
6772 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6773 from rtx to rtx_insn *.
6774
6775 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6776 locals "insn1", "insn2" from rtx to rtx_insn *.
6777 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6778 locals "insn", "prev", "last_jump", "next_tail".
6779 (schedule_ebb): Likewise for params "head", "tail".
6780 (schedule_ebbs): Likewise for locals "tail", "head".
6781
6782 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6783 to rtx_insn on "last_insn" in one of the invocations of
6784 schedule_ebb.
6785
6786 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6787
6788 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6789 "elem", "insn" from rtx to rtx_insn *.
6790 (change_spec_dep_to_hard): Likewise.
6791 (get_back_and_forw_lists): Likewise for local "con".
6792 (sd_add_dep): Likewise for locals "elem", "insn".
6793 (sd_resolve_dep): Likewise for locals "pro", "con".
6794 (sd_unresolve_dep): Likewise.
6795 (sd_delete_dep): Likewise.
6796 (chain_to_prev_insn): Likewise for local "pro".
6797 (find_inc): Likewise for locals "pro", "con".
6798
6799 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6800
6801 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6802 to rtx_insn *.
6803 (reg_set_between_p): Strengthen local "insn" from const_rtx to
6804 const rtx_insn *.
6805 (modified_between_p): Strengthen local "insn" from rtx to
6806 rtx_insn *.
6807 (remove_reg_equal_equiv_notes_for_regno): Likewise.
6808 (keep_with_call_p): Strengthen local "i2" from const_rtx to
6809 const rtx_insn *.
6810
6811 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6812
6813 * resource.c (next_insn_no_annul): Strengthen local "next" from
6814 rtx to rtx_insn *.
6815 (mark_referenced_resources): Likewise for local "insn".
6816
6817 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6818
6819 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6820 to rtx_insn *.
6821 (find_reloads): Likewise for param 1.
6822 (subst_reloads): Likewise for sole param.
6823 (find_equiv_reg): Likwise for param 2.
6824 (regno_clobbered_p): Likwise for param 2.
6825 (reload): Likewise for param 1.
6826
6827 * caller-save.c (save_call_clobbered_regs): Strengthen local
6828 "insn" from rtx to rtx_insn *.
6829 (insert_one_insn): Likewise for local "insn".
6830
6831 * reload.c (this_insn): Likewise for this global.
6832 (find_reloads): Likewise for param "insn".
6833 (find_reloads_toplev): Likewise.
6834 (find_reloads_address): Likewise.
6835 (subst_reg_equivs): Likewise.
6836 (update_auto_inc_notes): Likewise.
6837 (find_reloads_address_1): Likewise.
6838 (find_reloads_subreg_address): Likewise.
6839 (subst_reloads): Likewise.
6840 (find_equiv_reg): Likewise, also for local "p".
6841 (regno_clobbered_p): Likewise for param "insn".
6842
6843 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6844 array.
6845 (spill_reg_store): Likewise for the elements of this array.
6846 (remove_init_insns): Likewise for local "equiv_insn".
6847 (will_delete_init_insn_p): Likewise for param "insn".
6848 (reload): Likewise for param ""first" and local "insn".
6849 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6850 rtx_insn *.
6851 (calculate_elim_costs_all_insns): Likewise.
6852 (delete_caller_save_insns): Likewise.
6853 (spill_failure): Likewise for param "insn".
6854 (delete_dead_insn): Likewise.
6855 (set_label_offsets): Likewise.
6856 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6857 "prev_insn".
6858 (elimination_costs_in_insn): Likewise for param "insn".
6859 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6860 when referring to an insn.
6861 (set_initial_label_offsets): Likewise.
6862 (set_offsets_for_label): Strengthen param "insn" from rtx to
6863 rtx_insn *.
6864 (init_eliminable_invariants): Likewise for param "first" and local
6865 "insn".
6866 (fixup_eh_region_note): Likewise for param "insn".
6867 (reload_as_needed): Likewise for locals "prev", "insn",
6868 "old_next", "old_prev", "next".
6869 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6870 "last".
6871 (reload_inheritance_insn): Strengthen elements of this array from
6872 rtx to rtx_insn *.
6873 (failed_reload): Likewise for param "insn".
6874 (choose_reload_regs): Likewise for local "insn". Replace use of
6875 NULL_RTX with NULL when referring to an insn.
6876 (input_reload_insns): Strengthen elements of this array from rtx
6877 to rtx_insn *.
6878 (other_input_address_reload_insns): Likewise for this global.
6879 (other_input_reload_insns): Likewise for this global.
6880 (input_address_reload_insns): Likwise for the elements of this
6881 array.
6882 (inpaddr_address_reload_insns): Likwise for the elements of this
6883 array.
6884 (output_reload_insns): Likewise for the elements of this array.
6885 (output_address_reload_insns): Likewise for the elements of this
6886 array.
6887 (outaddr_address_reload_insns): Likewise for the elements of this
6888 array.
6889 (operand_reload_insns): Likewise for this global.
6890 (other_operand_reload_insns): Likewise for this global.
6891 (other_output_reload_insns): Likewise for the elements of this
6892 array.
6893 (new_spill_reg_store): Likewise for the elements of this
6894 array.
6895 (emit_input_reload_insns): Likewise for locals "insn", "temp".
6896 Strengthen local "where" from rtx * to rtx_insn **.
6897 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6898 from rtx to rtx_insn *.
6899 (do_input_reload): Likewise for local "insn".
6900 (do_output_reload): Likewise for local "insn".
6901 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6902 (emit_insn_if_valid_for_reload): Likewise for return type and local
6903 "last". Add checked cast to rtx_insn when returning "insn" since
6904 this has been through emit_insn.
6905 (gen_reload): Strengthen return type and locals "last", "insn", "set"
6906 from rtx to rtx_insn *. Add checked cast to rtx_insn when
6907 returning "insn" since it's been through
6908 emit_insn_if_valid_for_reload at this point.
6909 (delete_output_reload): Strengthen param "insn" and locals
6910 "output_reload_insn", "i2" from rtx to rtx_insn *.
6911 (delete_address_reloads): Likewise for params "dead_insn",
6912 "current_insn" and locals "prev", "next".
6913 (delete_address_reloads_1): Likewise for params "dead_insn",
6914 "current_insn" and locals "prev", "i2".
6915 (inc_for_reload): Likewise for locals "last", "add_insn".
6916 (add_auto_inc_notes): Strengthen param "insn" from rtx to
6917 rtx_insn *.
6918
6919 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6920 param of this duplicate of the prototype from reload.h
6921
6922 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6923
6924 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6925 rtx to rtx_insn *.
6926 (regstat_bb_compute_calls_crossed): Likewise.
6927
6928 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6929
6930 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
6931 to rtx_insn *.
6932 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
6933 with an insn.
6934 (regrename_analyze): Strengthen local "insn" from rtx to
6935 rtx_insn *.
6936 (scan_rtx_reg): Likewise for param "insn".
6937 (scan_rtx_address): Likewise.
6938 (scan_rtx): Likewise.
6939 (restore_operands): Likewise.
6940 (record_out_operands): Likewise.
6941 (build_def_use): Likewise for local "insn". Replace use of
6942 NULL_RTX with NULL when dealing with an insn.
6943
6944 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6945
6946 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
6947 * reginfo.c (reg_scan): Likewise, also for local "insn".
6948 (reg_scan_mark_refs): Likewise for param "insn".
6949 (init_subregs_of_mode): Likewise for local "insn".
6950
6951 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6952
6953 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6954 "insn" from rtx to rtx_insn *.
6955 (replace_oldest_value_reg): Likewise for param "insn".
6956 (replace_oldest_value_addr): Likewise.
6957 (replace_oldest_value_mem): Likewise.
6958 (apply_debug_insn_changes): Likewise for local "last_insn".
6959 (copyprop_hardreg_forward_1): Likewise for local "insn".
6960
6961 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6962
6963 * reg-stack.c (next_flags_user): Strengthen return type and param
6964 "insn" from rtx to rtx_insn *.
6965 (straighten_stack): Likewise for param "insn".
6966 (check_asm_stack_operands): Likewise.
6967 (remove_regno_note): Likewise.
6968 (emit_pop_insn): Likewise for return type, param "insn", local
6969 "pop_insn".
6970 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6971 "limit" from rtx to rtx_insn *.
6972 (swap_to_top): Likewise for param "insn".
6973 (move_for_stack_reg): Likewise.
6974 (move_nan_for_stack_reg): Likewise.
6975 (swap_rtx_condition): Likewise.
6976 (compare_for_stack_reg): Likewise.
6977 (subst_all_stack_regs_in_debug_insn): Likewise.
6978 (subst_stack_regs_pat): Likewise, and local "insn2".
6979 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6980 rtx_insn *.
6981 (subst_stack_regs): Likewise.
6982 (change_stack): Likewise.
6983 (convert_regs_1): Likewise for locals "insn", "next".
6984
6985 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6986
6987 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
6988 rtx_insn *.
6989 (combine_set_extension): Likewise for param "curr_insn".
6990 (transform_ifelse): Likewise for param "def_insn".
6991 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
6992 from vec<rtx> * to vec<rtx_insn *> *.
6993 (is_cond_copy_insn): Likewise for param "insn".
6994 (struct ext_state): Strengthen the four vec fields from vec<rtx>
6995 to vec<rtx_insn *>.
6996 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
6997 local "def_insn" from rtx to rtx_insn *.
6998 (get_sub_rtx): Likewise for param "def_insn".
6999 (merge_def_and_ext): Likewise.
7000 (combine_reaching_defs): Likewise.
7001 (add_removable_extension): Likewise for param "insn".
7002 (find_removable_extensions): Likewise for local "insn".
7003 (find_and_remove_re): Likewise for locals "curr_insn" and
7004 "def_insn". Strengthen locals "reinsn_del_list" and
7005 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7006
7007 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7008
7009 * recog.c (split_insn): Strengthen param "insn" and locals
7010 "first", "last" from rtx to rtx_insn *.
7011 (split_all_insns): Likewise for locals "insn", "next".
7012 (split_all_insns_noflow): Likewise.
7013
7014 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7015
7016 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7017 const rtx_insn *.
7018 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7019 (debug_rtx_find): Likewise for param 1 "x".
7020
7021 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7022 const_rtx to const rtx_insn *. Likewise for local "insn".
7023 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7024 (debug_rtx_find): Likewise for param 1 "x".
7025 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7026 from const_rtx to const rtx_insn * within the appropriate cases of
7027 the switch statement.
7028
7029 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7030 Strengthen local "insns" from rtx to rtx_insn * since this is
7031 passed to a call to debug_rtx_list.
7032
7033 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7034
7035 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7036 to rtx_insn *.
7037
7038 * function.c (stack_protect_epilogue): Add checked cast to
7039 rtx_insn for now when invoking predict_insn_def.
7040
7041 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7042 rtx_insn *.
7043 (predict_insn_def): Likewise.
7044 (rtl_predict_edge): Likewise for local "last_insn".
7045 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7046 const rtx_insn *.
7047 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7048 to rtx_insn *.
7049 (bb_estimate_probability_locally): Likewise for local "last_insn".
7050 (expensive_function_p): Likewise for local "insn".
7051
7052 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7053 local "jmp", since this is used when invoking predict_insn_def.
7054
7055 2014-08-22 Marek Polacek <polacek@redhat.com>
7056
7057 PR c++/62199
7058 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7059
7060 2014-08-22 Marek Polacek <polacek@redhat.com>
7061
7062 PR c/61271
7063 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7064 a comparison in parens.
7065 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7066 in parens.
7067
7068 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7069
7070 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7071 rtx_insn *.
7072
7073 * cprop.c (fis_get_condition): Likewise.
7074
7075 * postreload.c (reload_cse_regs): Likewise for param "first".
7076 (reload_cse_simplify): Likewise for param "insn".
7077 (reload_cse_regs_1): Likewise for local "insn".
7078 (reload_cse_simplify_set): Likewise for param "insn".
7079 (reload_cse_simplify_operands): Likewise.
7080 (struct reg_use): Likewise for field "insn".
7081 (reload_combine_purge_insn_uses): Likewise for param "insn".
7082 (fixup_debug_insns): Likewise for params "from", "to" and local
7083 "insn".
7084 (try_replace_in_use): Likewise for local "use_insn".
7085 (reload_combine_recognize_const_pattern): Likewise for param
7086 "insn" and locals "add_moved_after_insn", "use_insn".
7087 (reload_combine_recognize_pattern): Likewise for param "insn" and
7088 local "prev".
7089 (reload_combine): Likewise for locals "insn", "prev".
7090 (reload_combine_note_use): Likewise for param "insn".
7091 (move2add_use_add2_insn): Likewise.
7092 (move2add_use_add3_insn): Likewise.
7093 (reload_cse_move2add): Likewise, also for local "next".
7094 (move2add_note_store): Likewise for local "insn".
7095
7096 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7097
7098 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7099 rtx to rtx_insn *.
7100 (struct unoccr): Likewise.
7101 (struct modifies_mem): Likewise.
7102 (alloc_mem): Likewise for local "insn".
7103 (insert_expr_in_table): Likewise for param "insn".
7104 (dump_expr_hash_table_entry): Likewise for local "insn".
7105 (oprs_unchanged_p): Likewise for param "insn".
7106 (load_killed_in_block_p): Likewise for local "setter".
7107 (record_last_reg_set_info): Likewise for param "insn".
7108 (record_last_reg_set_info_regno): Likewise.
7109 (record_last_mem_set_info): Likewise.
7110 (record_last_set_info): Likewise for local "last_set_insn".
7111 (record_opr_changes): Likewise for param "insn".
7112 (hash_scan_set): Likewise.
7113 (compute_hash_table): Likewise for local "insn".
7114 (get_avail_load_store_reg): Likewise for param "insn".
7115 (eliminate_partially_redundant_load): Likewise, also for locals
7116 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7117 RTX for insns.
7118 (eliminate_partially_redundant_loads): Likewise for local "insn".
7119
7120 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7121
7122 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7123 rtx to rtx_insn *.
7124 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7125 (expand_twoval_unop): Likewise for locals entry_last", "last".
7126 (expand_twoval_binop): Likewise.
7127 (expand_twoval_binop_libfunc): Likewise for local "insns".
7128 (widen_leading): Likewise for local "last".
7129 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7130 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7131 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7132 (expand_parity): Likewise for locals "last" and "seq".
7133 (expand_ffs): Likewise for local "seq". Strengthen local
7134 "nonzero_label" from rtx to rtx_code_label *.
7135 (expand_absneg_bit): Strengthen local "insns" from rtx to
7136 rtx_insn *.
7137 (expand_unop_direct): Likewise for local "last".
7138 (expand_unop): Likewise for locals "last", "insns".
7139 (expand_abs_nojump): Likewise for local "last".
7140 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7141 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7142 rtx_insn *.
7143 (expand_copysign_absneg): Strengthen local "label" from rtx to
7144 rtx_code_label *.
7145 (expand_copysign_bit): Strengthen local "insns" from rtx to
7146 rtx_insn *.
7147 (struct no_conflict_data): Likewise for fields "first", "insn".
7148 (emit_libcall_block_1): Likewise for param "insns" and locals
7149 "next", "last", "insn".
7150 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7151 on "insns" when invoking emit_libcall_block_1. Ultimately we
7152 want to strengthen insns itself.
7153 (prepare_cmp_insn): Strengthen local "last" from rtx to
7154 rtx_insn *.
7155 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7156 (prepare_float_lib_cmp): Likewise for local "insns".
7157 (emit_conditional_move): Likewise for local "last".
7158 (emit_conditional_add): Likewise.
7159 (have_sub2_insn): Likewise for local "seq".
7160 (expand_float): Likewise for local "insns". Strengthen locals
7161 "label", "neglabel" from rtx to rtx_code_label *.
7162 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7163 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7164 (expand_fixed_convert): Likewise for local "insns" (to
7165 rtx_insn *).
7166 (expand_sfix_optab): Likewise for local "last".
7167 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7168 to rtx_code_label *.
7169 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7170 from rtx to rtx_insn *.
7171 (expand_atomic_fetch_op): Likewise for local "insn".
7172 (maybe_legitimize_operand_same_code): Likewise for local "last".
7173 (maybe_legitimize_operands): Likewise.
7174
7175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7176
7177 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7178 "insn" from rtx to rtx_insn *.
7179 (ps_rtl_insn): Likewise for return type.
7180 (doloop_register_get): Likewise for params "head", "tail" and
7181 locals "insn", "first_insn_not_to_check".
7182 (schedule_reg_move): Likewise for local "this_insn".
7183 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7184 of gen_move_insn for now.
7185 (reset_sched_times): Strengthen local "insn" from rtx to
7186 rtx_insn *.
7187 (permute_partial_schedule): Likewise.
7188 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7189 (dump_insn_location): Likewise for param "insn".
7190 (loop_canon_p): Likewise for local "insn".
7191 (sms_schedule): Likewise.
7192 (print_partial_schedule): Likewise.
7193 (ps_has_conflicts): Likewise.
7194
7195 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7196
7197 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7198 "tailp" from rtx * to rtx_insn **.
7199
7200 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7201 from rtx to rtx_insn *.
7202 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7203 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7204 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7205 rtx to rtx_insn *.
7206 * modulo-sched.c (const_iteration_count): Strengthen return type
7207 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7208 use of NULL_RTX with NULL when working with insns.
7209 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7210 to rtx_insn *.
7211 (sms_schedule): Likewise.
7212 * sched-rgn.c (init_ready_list): Likewise, also for locals
7213 "src_head" and "src_next_tail".
7214 (compute_block_dependences): Likewise.
7215 (free_block_dependencies): Likewise.
7216 (debug_rgn_dependencies): Likewise.
7217 (free_rgn_deps): Likewise.
7218 (compute_priorities): Likewise.
7219 (schedule_region): Likewise.
7220 * sel-sched.c (find_ebb_boundaries): Likewise.
7221
7222 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7223 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7224
7225 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7226
7227 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7228 from rtx to rtx_insn *.
7229 (new_seginfo): Likewise for param "insn".
7230 (create_pre_exit): Likewise for locals "last_insn",
7231 "before_return_copy", "return_copy".
7232 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7233 "mode_set".
7234
7235 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7236
7237 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7238 from rtx to rtx_insn *.
7239 (lra_push_insn): Likewise for 1st param.
7240 (lra_push_insn_and_update_insn_regno_info): Likewise.
7241 (lra_pop_insn): Likewise for return type.
7242 (lra_invalidate_insn_data): Likewise for 1st param.
7243 (lra_set_insn_deleted): Likewise.
7244 (lra_delete_dead_insn): Likewise.
7245 (lra_process_new_insns): Likewise for first 3 params.
7246 (lra_set_insn_recog_data): Likewise for 1st param.
7247 (lra_update_insn_recog_data): Likewise.
7248 (lra_set_used_insn_alternative): Likewise.
7249 (lra_invalidate_insn_regno_info): Likewise.
7250 (lra_update_insn_regno_info): Likewise.
7251 (lra_former_scratch_operand_p): Likewise.
7252 (lra_eliminate_regs_1): Likewise.
7253 (lra_get_insn_recog_data): Likewise.
7254
7255 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7256 rtx to rtx_insn *.
7257
7258 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7259 "mv1" and "mv2".
7260 (substitute_within_insn): New.
7261 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7262 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7263 Replace call to "substitute" with call to substitute_within_insn.
7264
7265 * lra-constraints.c (curr_insn): Strengthen from rtx to
7266 rtx_insn *.
7267 (get_equiv_with_elimination): Likewise for param "insn".
7268 (match_reload): Strengthen params "before" and "after" from rtx *
7269 to rtx_insn **.
7270 (emit_spill_move): Likewise for return type. Add a checked cast
7271 to rtx_insn * on result of gen_move_insn for now.
7272 (check_and_process_move): Likewise for local "before". Replace
7273 NULL_RTX with NULL when referring to insns.
7274 (process_addr_reg): Strengthen params "before" and "after" from
7275 rtx * to rtx_insn **.
7276 (insert_move_for_subreg): Likewise.
7277 (simplify_operand_subreg): Strengthen locals "before" and "after"
7278 from rtx to rtx_insn *.
7279 (process_address_1): Strengthen params "before" and "after" from
7280 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7281 rtx to rtx_insn *.
7282 (process_address): Strengthen params "before" and "after" from
7283 rtx * to rtx_insn **.
7284 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7285 (curr_insn_transform): Strengthen locals "before" and "after"
7286 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7287 to insns.
7288 (loc_equivalence_callback): Update cast of "data", changing
7289 resulting type from rtx to rtx_insn *.
7290 (substitute_pseudo_within_insn): New.
7291 (inherit_reload_reg): Strengthen param "insn" from rtx to
7292 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7293 NULL when referring to insns. Add a checked cast to rtx_insn *
7294 when using usage_insn to invoke lra_update_insn_regno_info.
7295 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7296 likewise for locals "restore", "save". Add checked casts to
7297 rtx_insn * when using usage_insn to invoke
7298 lra_update_insn_regno_info and lra_process_new_insns. Replace
7299 NULL_RTX with NULL when referring to insns.
7300 (split_if_necessary): Strengthen param "insn" from rtx to
7301 rtx_insn *.
7302 (update_ebb_live_info): Likewise for params "head", "tail" and local
7303 "prev_insn".
7304 (get_last_insertion_point): Likewise for return type and local "insn".
7305 (get_live_on_other_edges): Likewise for local "last".
7306 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7307 "prev_insn", "next_insn", "restore".
7308 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7309 (undo_optional_reloads): Likewise for local "insn".
7310
7311 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7312 "insn".
7313 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7314 insns.
7315 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7316 rtx_insn *.
7317 (spill_pseudos): Likewise for local "insn".
7318 (init_elimination): Likewise.
7319 (process_insn_for_elimination): Likewise for param "insn".
7320
7321 * lra-lives.c (curr_insn): Likewise.;
7322
7323 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7324 (remove_pseudos): Likewise for param "insn".
7325 (spill_pseudos): Likewise for local "insn".
7326 (lra_final_code_change): Likewise for locals "insn", "curr".
7327
7328 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7329 (lra_set_insn_deleted): Likewise.
7330 (lra_delete_dead_insn): Likewise, and for local "prev".
7331 (new_insn_reg): Likewise for param "insn".
7332 (lra_set_insn_recog_data): Likewise.
7333 (lra_update_insn_recog_data): Likewise.
7334 (lra_set_used_insn_alternative): Likewise.
7335 (get_insn_freq): Likewise.
7336 (invalidate_insn_data_regno_info): Likewise.
7337 (lra_invalidate_insn_regno_info): Likewise.
7338 (lra_update_insn_regno_info): Likewise.
7339 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7340 vec<rtx_insn *>.
7341 (lra_push_insn_1): Strengthen param "insn" from rtx to
7342 rtx_insn *.
7343 (lra_push_insn): Likewise.
7344 (lra_push_insn_and_update_insn_regno_info): Likewise.
7345 (lra_pop_insn): Likewise for return type and local "insn".
7346 (push_insns): Likewise for params "from", "to", and local "insn".
7347 (setup_sp_offset): Likewise for params "from", "last" and locals
7348 "before", "insn".
7349 (lra_process_new_insns): Likewise for params "insn", "before",
7350 "after" and local "last".
7351 (struct sloc): Likewise for field "insn".
7352 (lra_former_scratch_operand_p): Likewise for param "insn".
7353 (remove_scratches): Likewise for locals "insn", "last".
7354 (check_rtl): Likewise for local "insn".
7355 (add_auto_inc_notes): Likewise for param "insn".
7356 (update_inc_notes): Likewise for local "insn".
7357 (lra): Replace NULL_RTX with NULL when referring to insn.
7358
7359 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7360
7361 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7362 to rtx_insn *.
7363 (resolve_reg_notes): Likewise.
7364 (resolve_simple_move): Likewise for return type, param "insn", and
7365 locals "insns", "minsn".
7366 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7367 (resolve_use): Likewise.
7368 (resolve_debug): Likewise.
7369 (find_decomposable_shift_zext): Likewise.
7370 (resolve_shift_zext): Likewise for return type, param "insn", and
7371 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7372 (decompose_multiword_subregs): Likewise for local "insn",
7373 "orig_insn", "decomposed_shift", "end".
7374
7375 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7376
7377 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7378 param "insns" from rtx to rtx_insn *.
7379
7380 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7381 rtx to rtx_insn *.
7382 (struct iv_to_split): Likewise.
7383 (loop_exit_at_end_p): Likewise for local "insn".
7384 (split_edge_and_insert): Likewise for param "insns".
7385 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7386 and locals "seq", "jump".
7387 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7388 "branch_code"; update invocations of compare_and_jump_seq to
7389 eliminate NULL_RTX in favor of NULL.
7390 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7391 rtx to rtx_insn *.
7392 (reset_debug_uses_in_loop): Likewise.
7393 (analyze_insn_to_expand_var): Likewise for param "insn".
7394 (analyze_iv_to_split_insn): Likewise.
7395 (analyze_insns_in_loop): Likewise for local "insn".
7396 (insert_base_initialization): Likewise for param
7397 "insn" and local "seq".
7398 (split_iv): Likewise for param "insn" and local "seq".
7399 (expand_var_during_unrolling): Likewise for param "insn".
7400 (insert_var_expansion_initialization): Likewise for local "seq".
7401 (combine_var_copies_in_loop_exit): Likewise.
7402 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7403 "insn".
7404 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7405 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7406 "next".
7407
7408 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7409
7410 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7411 rtx_insn *.
7412 (iv_analyze_result): Likewise.
7413 (iv_analyze_expr): Likewise.
7414 (biv_p): Likewise.
7415
7416 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7417 local "def_insn" from rtx to rtx_insn *.
7418 (get_biv_step_1): Likewise for local "insn".
7419 (iv_analyze_expr): Likewise for param "insn".
7420 (iv_analyze_def): Likewise for local "insn".
7421 (iv_analyze_op): Likewise for param "insn".
7422 (iv_analyze): Likewise.
7423 (iv_analyze_result): Likewise.
7424 (biv_p): Likewise.
7425 (suitable_set_for_replacement): Likewise.
7426 (simplify_using_initial_values): Likewise for local "insn".
7427 (iv_number_of_iterations): Likewise for param "insn".
7428 (check_simple_exit): Add checked cast to rtx_insn when invoking
7429 iv_number_of_iterations for now (until get_condition is
7430 strengthened).
7431
7432 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7433 "insn" from rtx to rtx_insn *.
7434 (analyze_insns_in_loop): Likewise for local "insn".
7435
7436 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7437
7438 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7439 to rtx_insn *.
7440 (struct invariant): Likewise.
7441 (hash_invariant_expr_1): Likewise for param "insn".
7442 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7443 (find_exits): Likewise for local "insn".
7444 (create_new_invariant): Likewise for param "insn".
7445 (check_dependencies): Likewise.
7446 (find_invariant_insn): Likewise.
7447 (record_uses): Likewise.
7448 (find_invariants_insn): Likewise.
7449 (find_invariants_bb): Likewise for local "insn".
7450 (get_pressure_class_and_nregs): Likewise for param "insn".
7451 (calculate_loop_reg_pressure): Likewise for local "insn".
7452
7453 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7454
7455 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7456 to rtx_insn *.
7457 (add_test): Likewise for locals "seq", "jump".
7458 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7459
7460 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7461
7462 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7463 rtx_insn *.
7464 (rebuild_jump_labels_chain): Likewise for param "chain".
7465
7466 * cfgexpand.c (pass_expand::execute): Add checked cast to
7467 rtx_insn * when calling rebuild_jump_labels_chain in region where
7468 we know e->insns.r is non-NULL.
7469
7470 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7471 rtx_insn *.
7472 (rebuild_jump_labels): Likewise.
7473 (rebuild_jump_labels_chain): Likewise for param "chain".
7474 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7475 (init_label_info): Likewise for param "f".
7476 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7477 "prev_nonjump_insn".
7478 (mark_all_labels): Likewise for param "f" and locals "insn",
7479 "prev_nonjump_insn".
7480
7481 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7482
7483 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7484 from rtx to rtx_insn *insn.
7485 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7486 (ira_add_allocno_copy): Likewise.
7487 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7488 rtx to rtx_insn *.
7489 (ira_create_copy): Likewise.
7490 (ira_add_allocno_copy): Likewise.
7491 (create_bb_allocnos): Likewise for local "insn".
7492 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7493 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7494 process_regs_for_copy for rtx_insn * param.
7495 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7496 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7497 process_regs_for_copy for rtx_insn * param.
7498 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7499 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7500 (record_operand_costs): Likewise.
7501 (scan_one_insn): Likewise for return type, and for param "insn".
7502 (process_bb_for_costs): Likewise for local "insn".
7503 (process_bb_node_for_hard_reg_moves): Likewise.
7504 * ira-emit.c (struct move): Likewise for field "insn".
7505 (create_move): Eliminate use of NULL_RTX when dealing with an
7506 rtx_insn *.
7507 (emit_move_list): Strengthen return type and locals "result",
7508 "insn" from rtx to rtx_insn *insn.
7509 (emit_moves): Likewise for locals "insns", "tmp".
7510 (ira_emit): Likewise for local "insn".
7511 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7512 "insn".
7513 (find_call_crossed_cheap_reg): Likewise.
7514 (process_bb_node_lives): Likewise for local "insn".
7515 * ira.c (decrease_live_ranges_number): Likewise.
7516 (compute_regs_asm_clobbered): Likewise.
7517 (build_insn_chain): Likewise.
7518 (find_moveable_pseudos): Likewise, also locals "def_insn",
7519 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7520 to rtx_insn **. Add a checked cast when assigning from
7521 "closest_use" into closest_uses array in a region where we know
7522 it's a non-NULL insn.
7523 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7524 to rtx_insn *.
7525 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7526 "last_interesting_insn", "uin".
7527 (move_unallocated_pseudos): Likewise for locals "def_insn",
7528 "move_insn", "newinsn".
7529
7530 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7531
7532 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7533 Strengthen locals "done_label", "do_error" from rtx to
7534 rtx_code_label *.
7535 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7536 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7537 rtx_code_label *.
7538 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7539 "done_label", "do_error" to rtx_code_label * and local "last" to
7540 rtx_insn *.
7541 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7542 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7543 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7544 "after_lopart_neg", "do_overflow", "hipart_different" to
7545 rtx_code_label * and local "last" to rtx_insn *.
7546
7547 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7548
7549 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7550 "insn" and "move_insn" from rtx to rtx_insn *.
7551
7552 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7553
7554 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7555 rtx_insn *.
7556 (cheap_bb_rtx_cost_p): Likewise.
7557 (first_active_insn): Likewise for return type and local "insn".
7558 (last_active_insn): Likewise for return type and locals "insn",
7559 "head".
7560 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7561 "insn_b".
7562 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7563 "seq".
7564 (noce_try_move): Likewise for local "seq".
7565 (noce_try_store_flag): Likewise.
7566 (noce_try_store_flag_constants): Likewise.
7567 (noce_try_addcc): Likewise.
7568 (noce_try_store_flag_mask): Likewise.
7569 (noce_try_cmove): Likewise.
7570 (noce_try_minmax): Likewise.
7571 (noce_try_abs): Likewise.
7572 (noce_try_sign_mask): Likewise.
7573 (noce_try_bitop): Likewise.
7574 (noce_can_store_speculate_p): Likewise for local "insn".
7575 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7576 seq".
7577 (check_cond_move_block): Likewise for local "insn".
7578 (cond_move_convert_if_block): Likewise.
7579 (cond_move_process_if_block): Likewise for locals "seq",
7580 "loc_insn".
7581 (noce_find_if_block): Likewise for local "jump".
7582 (merge_if_block): Likewise for local "last".
7583 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7584 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7585 (block_has_only_trap): Likewise for return type and local "trap".
7586 (find_if_case_1): Likewise for local "jump".
7587 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7588 "insn".
7589
7590 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7591
7592 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7593 "last_insn", "loop_end" from rtx to rtx_insn *.
7594
7595 * hw-doloop.c (scan_loop): Likewise for local "insn".
7596 (discover_loop): Likewise for param "tail_insn".
7597 (discover_loops): Likewise for local "tail".
7598
7599 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7600 cast to rtx_insn * when assigning from an rtx local to a
7601 hwloop_info's "last_insn" field.
7602
7603 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7604
7605 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7606 (add_delay_dependencies): Strengthen local "pro" from rtx to
7607 rtx_insn *.
7608 (recompute_todo_spec): Likewise.
7609 (dep_cost_1): Likewise for locals "insn", "used".
7610 (schedule_insn): Likewise for local "dbg".
7611 (schedule_insn): Likewise for locals "pro", "next".
7612 (unschedule_insns_until): Likewise for local "con".
7613 (restore_pattern): Likewise for local "next".
7614 (estimate_insn_tick): Likewise for local "pro".
7615 (resolve_dependencies): Likewise for local "next".
7616 (fix_inter_tick): Likewise.
7617 (fix_tick_ready): Likewise for local "pro".
7618 (add_to_speculative_block): Likewise for locals "check", "twin",
7619 "pro".
7620 (sched_extend_bb): Likewise for locals "end", "insn".
7621 (init_before_recovery): Likewise for local "x".
7622 (sched_create_recovery_block): Likewise for local "barrier".
7623 (create_check_block_twin): Likewise for local "pro".
7624 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7625 "consumer".
7626 (unlink_bb_notes): Update for change to type of bb_header.
7627 Strengthen locals "prev", "label", "note", "next" from rtx to
7628 rtx_insn *.
7629 (clear_priorities): Likewise for local "pro".
7630
7631 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7632
7633 * gcse.c (struct occr): Strengthen field "insn" from rtx to
7634 rtx_insn *.
7635 (test_insn): Likewise for this global.
7636 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7637 const rtx_insn *.
7638 (oprs_anticipatable_p): Likewise.
7639 (oprs_available_p): Likewise.
7640 (insert_expr_in_table): Strengthen param "insn" from rtx to
7641 rtx_insn *.
7642 (hash_scan_set): Likewise.
7643 (hash_scan_clobber): Likewise.
7644 (hash_scan_call): Likewise.
7645 (hash_scan_insn): Likewise.
7646 (compute_hash_table_work): Likewise for local "insn".
7647 (process_insert_insn): Likewise for return type and local "pat".
7648 (insert_insn_end_basic_block): Likewise for locals "new_insn",
7649 "pat", "pat_end", "maybe_cc0_setter".
7650 (pre_edge_insert): Likewise for local "insn".
7651 (pre_insert_copy_insn): Likewise for param "insn".
7652 (pre_insert_copies): Likewise for local "insn".
7653 (struct set_data): Likewise for field "insn".
7654 (single_set_gcse): Likewise for param "insn".
7655 (gcse_emit_move_after): Likewise.
7656 (pre_delete): Likewise for local "insn".
7657 (update_bb_reg_pressure): Likewise for param "from" and local
7658 "insn".
7659 (should_hoist_expr_to_dom): Likewise for param "from".
7660 (hoist_code): Likewise for local "insn".
7661 (get_pressure_class_and_nregs): Likewise for param "insn".
7662 (calculate_bb_reg_pressure): Likewise for local "insn".
7663 (compute_ld_motion_mems): Likewise.
7664
7665 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7666
7667 * genpeep.c (main): Rename param back from "uncast_ins1" to
7668 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
7669 checked cast.
7670
7671 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7672
7673 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7674
7675 PR target/62195
7676 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7677 documentation to state it is only for VSX operations.
7678
7679 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7680 constraint only active if VSX.
7681
7682 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7683 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7684 (lfiwzx): Likewise.
7685
7686 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7687
7688 * fwprop.c (single_def_use_dom_walker::before_dom_children):
7689 Strengthen local "insn" from rtx to rtx_insn *.
7690 (use_killed_between): Likewise for param "target_insn".
7691 (all_uses_available_at): Likewise for param "target_insn" and
7692 local "next".
7693 (update_df_init): Likewise for params "def_insn", "insn".
7694 (update_df): Likewise for param "insn".
7695 (try_fwprop_subst): Likewise for param "def_insn" and local
7696 "insn".
7697 (free_load_extend): Likewise for param "insn".
7698 (forward_propagate_subreg): Likewise for param "def_insn" and
7699 local "use_insn".
7700 (forward_propagate_asm): Likewise for param "def_insn" and local
7701 "use_insn".
7702 (forward_propagate_and_simplify): Likewise for param "def_insn"
7703 and local "use_insn".
7704 (forward_propagate_into): Likewise for locals "def_insn" and
7705 "use_insn".
7706
7707 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7708
7709 * function.c (emit_initial_value_sets): Strengthen local "seq"
7710 from rtx to rtx_insn *.
7711 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7712 local "seq".
7713 (instantiate_virtual_regs): Likewise for local "insn".
7714 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7715 (reorder_blocks_1): Likewise for param "insns" and local "insn".
7716 (expand_function_end): Likewise for locals "insn" and "seq".
7717 (epilogue_done): Likewise for local "insn".
7718 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7719 "last", "trial".
7720 (reposition_prologue_and_epilogue_notes): Likewise for locals
7721 "insn", "last", "note", "first".
7722 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7723 (pass_match_asm_constraints::execute): Likewise for local "insn".
7724
7725 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7726
7727 * output.h (final_scan_insn): Strengthen return type from rtx to
7728 rtx_insn *.
7729 (final_forward_branch_p): Likewise for param.
7730 (current_output_insn): Likewise for this global.
7731
7732 * final.c (rtx debug_insn): Likewise for this variable.
7733 (current_output_insn): Likewise.
7734 (get_attr_length_1): Rename param "insn" to "uncast_insn",
7735 adding "insn" back in as an rtx_insn * with a checked cast, so
7736 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7737 first param.
7738 (compute_alignments): Strengthen local "label" from rtx to
7739 rtx_insn *.
7740 (shorten_branches): Rename param from "first" to "uncast_first",
7741 introducing a new local rtx_insn * "first" using a checked cast to
7742 effectively strengthen "first" from rtx to rtx_insn * without
7743 affecting the type signature. Strengthen locals "insn", "seq",
7744 "next", "label" from rtx to rtx_insn *.
7745 (change_scope): Strengthen param "orig_insn" and local "insn" from
7746 rtx to rtx_insn *.
7747 (final_start_function): Rename param from "first" to "uncast_first",
7748 introducing a new local rtx_insn * "first" using a checked cast to
7749 effectively strengthen "first" from rtx to rtx_insn * without
7750 affecting the type signature. Strengthen local "insn" from rtx to
7751 rtx_insn *.
7752 (dump_basic_block_info): Strengthen param "insn" from rtx to
7753 rtx_insn *.
7754 (final): Rename param from "first" to "uncast_first",
7755 introducing a new local rtx_insn * "first" using a checked cast to
7756 effectively strengthen "first" from rtx to rtx_insn * without
7757 affecting the type signature. Strengthen locals "insn", "next"
7758 from rtx to rtx_insn *.
7759 (output_alternate_entry_point): Strengthen param "insn" from rtx to
7760 rtx_insn *.
7761 (call_from_call_insn): Strengthen param "insn" from rtx to
7762 rtx_call_insn *.
7763 (final_scan_insn): Rename param from "insn" to "uncast_insn",
7764 introducing a new local rtx_insn * "insn" using a checked cast to
7765 effectively strengthen "insn" from rtx to rtx_insn * without
7766 affecting the type signature. Strengthen return type and locals
7767 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
7768 now-redundant checked cast to rtx_insn * from both invocations of
7769 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
7770 introducing a local "call_insn" for use when invoking
7771 call_from_call_insn.
7772 (notice_source_line): Strengthen param "insn" from rtx to
7773 rtx_insn *.
7774 (leaf_function_p): Likewise for local "insn".
7775 (final_forward_branch_p): Likewise.
7776 (leaf_renumber_regs): Likewise for param "first".
7777 (rest_of_clean_state): Likewise for locals "insn" and "next".
7778 (self_recursive_call_p): Likewise for param "insn".
7779 (collect_fn_hard_reg_usage): Likewise for local "insn".
7780 (get_call_fndecl): Likewise for param "insn".
7781 (get_call_cgraph_rtl_info): Likewise.
7782 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7783 introducing a new local rtx_insn * "insn" using a checked cast to
7784 effectively strengthen "insn" from rtx to rtx_insn * without
7785 affecting the type signature.
7786
7787 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7788 cast when assigning from param "insn" to current_output_insn.
7789 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7790 so that we can assign it back to current_output_insn.
7791
7792 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7793
7794 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7795 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7796 atmxt540s and atmxt540sreva devices.
7797 * config/avr/avr-tables.opt: Regenerate.
7798 * config/avr/t-multilib: Regenerate.
7799 * doc/avr-mmcu.texi: Regenerate.
7800
7801 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7802
7803 * expr.c (convert_move): Strengthen local "insns" from rtx to
7804 rtx_insn *.
7805 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7806 "top_label" from rtx to rtx_code_label *.
7807 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7808 rtx_insn *.
7809 (emit_single_push_insn): Likewise for locals "prev", "last".
7810 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7811 to rtx_code_label *.
7812 (store_constructor): Likewise for locals "loop_start", "loop_end".
7813 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7814 rtx_insn *.
7815 (expand_expr_real_2): Likewise.
7816 (expand_expr_real_1): Strengthen local "label" from rtx to
7817 rtx_code_label *.
7818
7819 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7820
7821 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7822 from rtx to rtx_insn *.
7823 (store_bit_field_1): Likewise.
7824 (extract_bit_field_1): Likewise.
7825 (expand_mult_const): Likewise for local "insns".
7826 (expmed_mult_highpart): Strengthen local "label" from rtx to
7827 rtx_code_label *.
7828 (expand_smod_pow2): Likewise.
7829 (expand_sdiv_pow2): Likewise.
7830 (expand_divmod): Strengthen locals "last", "insn" from rtx to
7831 rtx_insn *. Strengthen locals "label", "label1", "label2",
7832 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7833 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7834 (emit_store_flag): Likewise.
7835 (emit_store_flag_force): Strengthen local "label" from rtx to
7836 rtx_code_label *.
7837 (do_cmp_and_jump): Likewise for param "label".
7838
7839 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7840
7841 * explow.c (force_reg): Strengthen local "insn" from rtx to
7842 rtx_insn *.
7843 (adjust_stack_1): Likewise.
7844 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7845 "final_label", "available_label", "space_available" from rtx to
7846 rtx_code_label *.
7847 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7848 (anti_adjust_stack_and_probe): Likewise.
7849
7850 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7851
7852 * except.h (sjlj_emit_function_exit_after): Strengthen param
7853 "after" from rtx to rtx_insn *. This is only called with
7854 result of get_last_insn (in function.c) so type-change should be
7855 self-contained.
7856
7857 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7858 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7859 to rtx_insn *. These fields are only used from except.c so this
7860 type-change should be self-contained to this patch.
7861
7862 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7863 local "last" from rtx to rtx_insn *.
7864 (dw2_build_landing_pads): Likewise for local "seq".
7865 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7866 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7867 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
7868 rtx to rtx_insn *.
7869 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7870 to rtx_insn *.
7871 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7872 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7873 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7874 referring to an insn. Strengthen local "dispatch_label" from
7875 rtx to rtx_code_label *.
7876 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7877 rtx_insn *.
7878 (expand_eh_return): Strengthen local "around_label" from
7879 rtx to rtx_code_label *.
7880 (convert_to_eh_region_ranges): Strengthen locals "iter",
7881 "last_action_insn", "first_no_action_insn",
7882 "first_no_action_insn_before_switch",
7883 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7884
7885 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7886
7887 * dwarf2out.c (last_var_location_insn): Strengthen this variable
7888 from rtx to rtx_insn *.
7889 (cached_next_real_insn): Likewise.
7890 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7891 working with insns.
7892 (dwarf2out_var_location): Strengthen locals "next_real",
7893 "next_note", "expected_next_loc_note", "last_start", "insn" from
7894 rtx to rtx_insn *.
7895
7896 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7897
7898 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7899 from rtx to rtx_insn *.
7900 (create_pseudo_cfg): Likewise for local "insn".
7901
7902 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7903
7904 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7905 from rtx to rtx_insn *.
7906 (df_bb_regno_last_def_find): Likewise.
7907
7908 * df-problems.c (df_rd_bb_local_compute): Likewise.
7909 (df_lr_bb_local_compute): Likewise.
7910 (df_live_bb_local_compute): Likewise.
7911 (df_chain_remove_problem): Likewise.
7912 (df_chain_create_bb): Likewise.
7913 (df_word_lr_bb_local_compute): Likewise.
7914 (df_remove_dead_eq_notes): Likewise for param "insn".
7915 (df_note_bb_compute): Likewise for local "insn".
7916 (simulate_backwards_to_point): Likewise.
7917 (df_md_bb_local_compute): Likewise.
7918
7919 * df-scan.c (df_scan_free_bb_info): Likewise.
7920 (df_scan_start_dump): Likewise.
7921 (df_scan_start_block): Likewise.
7922 (df_install_ref_incremental): Likewise for local "insn".
7923 (df_insn_rescan_all): Likewise.
7924 (df_reorganize_refs_by_reg_by_insn): Likewise.
7925 (df_reorganize_refs_by_insn_bb): Likewise.
7926 (df_recompute_luids): Likewise.
7927 (df_bb_refs_record): Likewise.
7928 (df_update_entry_exit_and_calls): Likewise.
7929 (df_bb_verify): Likewise.
7930
7931 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7932
7933 * ddg.h (struct ddg_node): Strengthen fields "insn" and
7934 "first_note" from rtx to rtx_insn *.
7935 (get_node_of_insn): Likewise for param 2 "insn".
7936 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7937
7938 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
7939 rtx_insn *.
7940 (mem_write_insn_p): Likewise.
7941 (mem_access_insn_p): Likewise.
7942 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7943 (def_has_ccmode_p): Likewise for param "insn".
7944 (add_cross_iteration_register_deps): Likewise for locals
7945 "def_insn" and "use_insn".
7946 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
7947 (build_intra_loop_deps): Likewise for local "src_insn".
7948 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7949 to rtx_insn *.
7950 (get_node_of_insn): Likewise for param "insn".
7951
7952 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7953
7954 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7955 (deletable_insn_p): Strengthen param "insn" from rtx to
7956 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7957 find_call_stack_args, since this is guarded by CALL_P (insn).
7958 (marked_insn_p): Strengthen param "insn" from rtx to
7959 rtx_insn *.
7960 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7961 invoking find_call_stack_args, since this is guarded by
7962 CALL_P (insn).
7963 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7964 rtx_insn *; we know this is an insn since this was called by
7965 mark_nonreg_stores.
7966 (mark_nonreg_stores_2): Likewise.
7967 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7968 rtx_insn *.
7969 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7970 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7971 to rtx_insn *.
7972 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7973 from rtx to rtx_insn *.
7974 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7975 "next", "ref_insn".
7976 (delete_unmarked_insns): Likewise for locals "insn", "next".
7977 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7978 (mark_reg_dependencies): Likewise for param "insn".
7979 (rest_of_handle_ud_dce): Likewise for local "insn".
7980 (word_dce_process_block): Likewise.
7981 (dce_process_block): Likewise.
7982
7983 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7984
7985 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7986 from rtx to rtx_insn *.
7987 (struct change_cc_mode_args): Likewise for field "insn".
7988 (this_insn): Strengthen from rtx to rtx_insn *.
7989 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
7990 with insn.
7991 (validate_canon_reg): Strengthen param "insn" from rtx to
7992 rtx_insn *.
7993 (canon_reg): Likewise.
7994 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
7995 dealing with insn.
7996 (record_jump_equiv): Strengthen param "insn" from rtx to
7997 rtx_insn *.
7998 (try_back_substitute_reg): Likewise, also for locals "prev",
7999 "bb_head".
8000 (find_sets_in_insn): Likewise for param "insn".
8001 (canonicalize_insn): Likewise.
8002 (cse_insn): Likewise. Add a checked cast.
8003 (invalidate_from_clobbers): Likewise for param "insn".
8004 (invalidate_from_sets_and_clobbers): Likewise.
8005 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8006 dealing with insn.
8007 (cse_prescan_path): Strengthen local "insn" from rtx to
8008 rtx_insn *.
8009 (cse_extended_basic_block): Likewise for locals "insn" and
8010 "prev_insn".
8011 (cse_main): Likewise for param "f".
8012 (check_for_label_ref): Likewise for local "insn".
8013 (set_live_p): Likewise for second param ("insn").
8014 (insn_live_p): Likewise for first param ("insn") and for local
8015 "next".
8016 (cse_change_cc_mode_insn): Likewise for first param "insn".
8017 (cse_change_cc_mode_insns): Likewise for first and second params
8018 "start" and "end".
8019 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8020 and "end".
8021 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8022 "cc_src_insn".
8023
8024 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8025 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8026 Anna Tikhonova <anna.tikhonova@intel.com>
8027 Ilya Tocar <ilya.tocar@intel.com>
8028 Andrey Turetskiy <andrey.turetskiy@intel.com>
8029 Ilya Verbin <ilya.verbin@intel.com>
8030 Kirill Yukhin <kirill.yukhin@intel.com>
8031 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8032
8033 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8034 New.
8035 * config/i386/sse.md
8036 (define_mode_iterator VI248_AVX2): Delete.
8037 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8038 (define_mode_iterator VI48_AVX2): Ditto.
8039 (define_insn <shift_insn><mode>3): Delete.
8040 (define_insn "<shift_insn><mode>3<mask_name>" with
8041 VI2_AVX2_AVX512BW): New.
8042 (define_insn "<shift_insn><mode>3<mask_name>" with
8043 VI48_AVX2): Ditto.
8044
8045 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8046 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8047 Anna Tikhonova <anna.tikhonova@intel.com>
8048 Ilya Tocar <ilya.tocar@intel.com>
8049 Andrey Turetskiy <andrey.turetskiy@intel.com>
8050 Ilya Verbin <ilya.verbin@intel.com>
8051 Kirill Yukhin <kirill.yukhin@intel.com>
8052 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8053
8054 * config/i386/sse.md
8055 (define_mode_iterator VI4F_BRCST32x2): New.
8056 (define_mode_attr 64x2_mode): Ditto.
8057 (define_mode_attr 32x2mode): Ditto.
8058 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8059 with VI4F_BRCST32x2): Ditto.
8060 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8061 with V16FI mode iterator): Ditto.
8062 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8063 with V16FI): Ditto.
8064 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8065 with VI8F_BRCST64x2): Ditto.
8066
8067 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8068 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8069 Anna Tikhonova <anna.tikhonova@intel.com>
8070 Ilya Tocar <ilya.tocar@intel.com>
8071 Andrey Turetskiy <andrey.turetskiy@intel.com>
8072 Ilya Verbin <ilya.verbin@intel.com>
8073 Kirill Yukhin <kirill.yukhin@intel.com>
8074 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8075
8076 * config/i386/sse.md
8077 (define_mode_iterator VI8_AVX512VL): New.
8078 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8079
8080 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8081
8082 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8083 (define_mode_iterator V48_AVX512VL): New.
8084 (define_mode_iterator V12_AVX512VL): Ditto.
8085 (define_insn <avx512>_load<mode>_mask): Split into two similar
8086 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8087 Refactor output template.
8088 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8089
8090 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8091
8092 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8093 rtx_insn *.
8094 (reg_available_p): Likewise for param "insn".
8095 (insert_set_in_table): Likewise.
8096 (hash_scan_set): Likewise.
8097 (hash_scan_insn): Likewise.
8098 (make_set_regs_unavailable): Likewise.
8099 (compute_hash_table_work): Likewise for local "insn".
8100 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8101 const rtx_insn *.
8102 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8103 (try_replace_reg): Likewise.
8104 (find_avail_set): Likewise.
8105 (cprop_jump): Likewise for params "setcc", "jump".
8106 (constprop_register): Likewise for param "insn".
8107 (cprop_insn): Likewise.
8108 (do_local_cprop): Likewise.
8109 (local_cprop_pass): Likewise for local "insn".
8110 (bypass_block): Likewise for params "setcc" and "jump".
8111 (bypass_conditional_jumps): Likewise for locals "setcc" and
8112 "insn".
8113 (one_cprop_pass): Likewise for local "insn".
8114
8115 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8116
8117 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8118 from rtx to rtx_insn *.
8119 (struct comparison): Likewise, also for field "prev_clobber".
8120 (conforming_compare): Likewise for param "insn".
8121 (arithmetic_flags_clobber_p): Likewise.
8122 (find_flags_uses_in_insn): Likewise.
8123 (find_comparison_dom_walker::before_dom_children): Likewise for
8124 locals "insn", "next", "last_clobber".
8125 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8126
8127 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8128
8129 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8130 "insn" from rtx to rtx_insn *.
8131 (single_set_for_csa): Likewise for param "insn".
8132 (record_one_stack_ref): Likewise.
8133 (try_apply_stack_adjustment): Likewise.
8134 (struct record_stack_refs_data): Likewise for field "insn".
8135 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8136 (prev_active_insn_bb): Likewise for return type and param "insn".
8137 (next_active_insn_bb): Likewise.
8138 (force_move_args_size_note): Likewise for params "prev" and "last"
8139 and locals "test", "next_candidate", "prev_candidate".
8140 (combine_stack_adjustments_for_block): Strengthen locals
8141 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8142 rtx_insn *.
8143
8144 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8145
8146 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8147 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8148 (subst_insn): Likewise for this variable.
8149 (added_links_insn): Likewise.
8150 (struct insn_link): Likewise for field "insn".
8151 (alloc_insn_link): Likewise for param "insn".
8152 (struct undobuf): Likewise for field "other_insn".
8153 (find_single_use): Likewise for param "insn" and local "next".
8154 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8155 (delete_noop_moves): Likewise for locals "insn", "next".
8156 (create_log_links): Likewise for locals "insn", "use_insn".
8157 Strengthen local "next_use" from rtx * to rtx_insn **.
8158 (insn_a_feeds_b): Likewise for params "a", "b".
8159 (combine_instructions): Likewise for param "f" and locals "insn",
8160 "next", "prev", "first", "last_combined_insn", "link", "link1",
8161 "temp". Replace use of NULL_RTX with NULL when referring to
8162 insns.
8163 (setup_incoming_promotions): Likewise for param "first"
8164 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8165 (can_combine_p): Likewise for params "insn", "i3", "pred",
8166 "pred2", "succ", "succ2" and for local "p".
8167 (combinable_i3pat): Likewise for param "i3".
8168 (cant_combine_insn_p): Likewise for param "insn".
8169 (likely_spilled_retval_p): Likewise.
8170 (adjust_for_new_dest): Likewise.
8171 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8172 (try_combine): Likewise for return type and for params "i3", "i2",
8173 "i1", "i0", "last_combined_insn", and for locals "insn",
8174 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8175 "i0_insn". Eliminate local "tem" in favor of new locals
8176 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8177 checked cast for now to rtx_insn * on the return type of
8178 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8179 insns.
8180 (find_split_point): Strengthen param "insn" from rtx to
8181 rtx_insn *.
8182 (simplify_set): Likewise for local "other_insn".
8183 (recog_for_combine): Likewise for param "insn".
8184 (record_value_for_reg): Likewise.
8185 (record_dead_and_set_regs_1): Likewise for local
8186 "record_dead_insn".
8187 (record_dead_and_set_regs): Likewise for param "insn".
8188 (record_promoted_value): Likewise.
8189 (check_promoted_subreg): Likewise.
8190 (get_last_value_validate): Likewise.
8191 (reg_dead_at_p): Likewise.
8192 (move_deaths): Likewise for param "to_insn".
8193 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8194 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8195 in favor of new locals "tem_note" and "tem_insn", the latter being
8196 an rtx_insn *.
8197 (distribute_links): Strengthen locals "place", "insn" from rtx to
8198 rtx_insn *.
8199
8200 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8201
8202 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8203 than a const_rtx.
8204 (can_delete_label_p): Require a const rtx_code_label * rather than
8205 a const_rtx.
8206 (delete_insn): Add checked cast to rtx_code_label * when we know
8207 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8208 rtx to rtx_insn *.
8209 (delete_insn_chain): Strengthen locals "prev" and "current" from
8210 rtx to rtx_insn *. Add a checked cast when assigning from
8211 "finish" (strengthening the params will come later). Add a
8212 checked cast to rtx_note * in region where we know
8213 NOTE_P (current).
8214 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8215 rtx_insn *.
8216 (compute_bb_for_insn): Likewise.
8217 (free_bb_for_insn): Likewise for local "insn".
8218 (compute_bb_for_insn): Likewise.
8219 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8220 local "insn" from rtx to rtx_insn *
8221 (flow_active_insn_p): Require a const rtx_insn * rather than a
8222 const_rtx.
8223 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8224 rtx_insn *.
8225 (can_fallthru): Likewise for locals "insn" and "insn2".
8226 (bb_note): Likewise for local "note".
8227 (first_insn_after_basic_block_note): Likewise for local "note" and
8228 for return type.
8229 (rtl_split_block): Likewise for locals "insn" and "next".
8230 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8231 "end".
8232 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8233 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8234 "prev", "tmp".
8235 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8236 them), "kill_from", "barrier", "new_insn".
8237 (patch_jump_insn): Likewise for params "insn", "old_label".
8238 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8239 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8240 "old_label", "new_label".
8241 (rtl_tidy_fallthru_edge): Likewise for local "q".
8242 (rtl_split_edge): Likewise for locals "before", "last".
8243 (commit_one_edge_insertion): Likewise for locals "before",
8244 "after", "insns", "tmp", "last", adding a checked cast where
8245 currently necessary.
8246 (commit_edge_insertions): Likewise.
8247 (rtl_dump_bb): Likewise for locals "insn", "last".
8248 (print_rtl_with_bb): Likewise for local "x".
8249 (rtl_verify_bb_insns): Likewise for local "x".
8250 (rtl_verify_bb_pointers): Likewise for local "insn".
8251 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8252 "head", "end".
8253 (rtl_verify_fallthru): Likewise for local "insn".
8254 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8255 (purge_dead_edges): Likewise for local "insn".
8256 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8257 (skip_insns_after_block): Likewise for return type and for locals
8258 "insn", "last_insn", "next_head", "prev".
8259 (record_effective_endpoints): Likewise for locals "next_insn",
8260 "insn", "end".
8261 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8262 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8263 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8264 (duplicate_insn_chain): For now, add checked cast from rtx to
8265 rtx_insn * when returning insn.
8266 (cfg_layout_duplicate_bb): Likewise for local "insn".
8267 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8268 "prev", "remaints".
8269 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8270 (rtl_block_empty_p): Likewise.
8271 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8272 "split_point", "last".
8273 (rtl_block_ends_with_call_p): Likewise for local "insn".
8274 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8275 const rtx_insn *.
8276 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8277 "split_at_insn" from rtx to rtx_insn *.
8278 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8279 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8280 to const rtx_insn *.
8281 (rtl_account_profile_record): Likewise.
8282
8283 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8284
8285 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8286 rtx to rtx_insn *.
8287 (average_num_loop_insns): Likewise.
8288 (init_set_costs): Likewise for local "seq".
8289 (seq_cost): Likewise for param "seq", from const_rtx to const
8290 rtx_insn *.
8291
8292 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8293
8294 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8295 rtx to rtx_insn *.
8296
8297 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8298
8299 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8300 "f1" and "f2" from rtx * to rtx_insn **.
8301 (flow_find_head_matching_sequence): Likewise.
8302
8303 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8304 "cbranch_insn" from rtx to rtx_insn *.
8305 (thread_jump): Likewise for local "insn".
8306 (try_forward_edges): Likewise for local "last".
8307 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8308 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8309 "real_b_end".
8310 (can_replace_by): Likewise for params "i1", "i2".
8311 (old_insns_match_p): Likewise.
8312 (merge_notes): Likewise.
8313 (walk_to_nondebug_insn): Likewise for param "i1".
8314 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8315 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8316 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8317 (flow_find_head_matching_sequence): Strengthen params "f1" and
8318 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8319 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8320 rtx_insn *.
8321 (outgoing_edges_match): Likewise for locals "last1", "last2".
8322 (try_crossjump_to_edge): Likewise for local "insn".
8323 Replace call to for_each_rtx with for_each_rtx_in_insn.
8324
8325 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8326 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8327 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8328 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8329 (try_optimize_cfg): Strengthen local "last" from rtx to
8330 rtx_insn *.
8331 (delete_dead_jumptables): Likewise for locals "insn", "next",
8332 "label".
8333
8334 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8335 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8336 "rtx else_first_tail", to reflect the basic-block.h changes above.
8337
8338 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8339
8340 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8341 rtx_insn *.
8342 (purge_dead_tablejump_edges): Likewise.
8343 (find_bb_boundaries): Likewise for locals "insn", "end",
8344 "flow_transfer_insn".
8345
8346 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8347
8348 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8349 "ins" and "prev" from rtx to rtx_insn *.
8350
8351 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8352
8353 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8354 rtx_insn *.
8355 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8356 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8357 "scan_start".
8358 (load_register_parameters): Likewise for local "before_arg".
8359 (check_sibcall_argument_overlap): Likewise for param "insn".
8360 (expand_call): Likewise for locals "normal_call_insns",
8361 "tail_call_insns", "insns", "before_call", "after_args",
8362 "before_arg", "last", "prev". Strengthen one of the "last" from
8363 rtx to rtx_call_insn *.
8364 (fixup_tail_calls): Strengthen local "insn" from rtx to
8365 rtx_insn *.
8366 (emit_library_call_value_1): Likewise for locals "before_call" and
8367 "last".
8368
8369 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8370
8371 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8372 and "last" from rtx to rtx_insn *.
8373 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8374 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8375 rtx_call_insn *.
8376 (expand_errno_check): Strengthen local "lab" from rtx to
8377 rtx_code_label *.
8378 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8379 rtx_insn *.
8380 (expand_builtin_mathfn_2): Likewise.
8381 (expand_builtin_mathfn_ternary): Likewise.
8382 (expand_builtin_mathfn_3): Likewise.
8383 (expand_builtin_interclass_mathfn): Likewise for local "last".
8384 (expand_builtin_int_roundingfn): Likewise for local "insns".
8385 (expand_builtin_int_roundingfn_2): Likewise.
8386 (expand_builtin_strlen): Likewise for local "before_strlen".
8387 (expand_builtin_strncmp): Likewise for local "seq".
8388 (expand_builtin_signbit): Likewise for local "last".
8389 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8390 from rtx to rtx_code_label *.
8391 (expand_stack_restore): Strengthen local "prev" from rtx to
8392 rtx_insn *.
8393
8394 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8395
8396 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8397 to rtx_insn *.
8398 (struct btr_def_s): Likewise.
8399 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8400 const rtx_insn *.
8401 (add_btr_def): Likewise.
8402 (new_btr_user): Likewise.
8403 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8404 rtx to rtx_insn *.
8405 (link_btr_uses): Likewise.
8406 (move_btr_def): Likewise for locals "insp", "old_insn",
8407 "new_insn". Add checked cast to rtx_insn * for now on result of
8408 gen_move_insn.
8409 (can_move_up): Strengthen param "insn" from const_rtx to
8410 const rtx_insn *.
8411
8412 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8413
8414 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8415 rtx_insn *.
8416 (get_uncond_jump_length): Likewise for locals "label", "jump".
8417 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8418 "jump", "insn".
8419 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8420 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8421 (find_jump_block): Likewise for local "insn".
8422 (fix_crossing_conditional_branches): Likewise for locals
8423 "old_jump", "new_jump".
8424 (fix_crossing_unconditional_branches): Likewise for locals
8425 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8426 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8427
8428 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8429
8430 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8431 rtx to rtx_insn *.
8432 (struct mem_insn): Likewise for field "insn".
8433 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8434 (reg_next_inc_use): Likewise.
8435 (reg_next_def): Likewise.
8436 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8437 from rtx to rtx_insn *.
8438 (move_insn_before): Likewise for param "next_insn" and local "insns".
8439 (attempt_change): Likewise for local "mov_insn".
8440 (try_merge): Likewise for param "last_insn".
8441 (get_next_ref): Likewise for return type and local "insn".
8442 Strengthen param "next_array" from rtx * to rtx_insn **.
8443 (parse_add_or_inc): Strengthen param "insn" from rtx to
8444 rtx_insn *.
8445 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8446 the latter).
8447 (merge_in_block): Likewise for locals "insn", "curr",
8448 "other_insn".
8449 (pass_inc_dec::execute): Update allocations of the arrays to
8450 reflect the stronger types.
8451
8452 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8453
8454 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8455 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8456 from rtx to rtx_code_label *.
8457
8458 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8459
8460 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8461 to rtx_insn *.
8462
8463 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8464
8465 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8466 generated a warning and prevented bootstrapping the compiler.
8467
8468 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8469
8470 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8471 rtx_insn *.
8472
8473 * jump.c (delete_related_insns): Likewise, also for locals "next"
8474 and "prev".
8475
8476 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8477
8478 * genautomata.c (output_internal_insn_latency_func): When writing
8479 the function "internal_insn_latency" to insn-automata.c,
8480 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8481 allowing the optional guard function of (define_bypass) clauses to
8482 expect a pair of rtx_insn *, rather than a pair of rtx.
8483 (output_insn_latency_func): When writing the function
8484 "insn_latency", add an "uncast_" prefix to params "insn" and
8485 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8486 using checked casts from the params, thus enabling the above
8487 change to the generated "internal_insn_latency" function.
8488
8489 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8490
8491 PR tree-optimization/62091
8492 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8493 handle correctly arrays.
8494 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8495 inheritance binfos.
8496 (record_known_type): Walk into inner type.
8497 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8498 condition on no type changes.
8499
8500 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8501
8502 * genattrtab.c (write_attr_get): Within the generated get_attr_
8503 functions, rename param "insn" to "uncast_insn" and reintroduce
8504 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8505 is an rtx_insn * within insn-attrtab.c
8506
8507 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8508
8509 * output.h (peephole): Strengthen return type from rtx to
8510 rtx_insn *.
8511 * rtl.h (delete_for_peephole): Likewise for both params.
8512 * genpeep.c (main): In generated "peephole" function, strengthen
8513 return type and local "insn" from rtx to rtx_insn *. For now,
8514 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8515 rtx_insn *, with a checked cast.
8516 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8517 locals "insn", "next", "prev" from rtx to rtx_insn *.
8518
8519 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8520
8521 PR tree-optimization/62112
8522 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8523 * gimple-iterator.h (gsi_replace): Return bool.
8524 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8525 moved from ref_may_alias_global_p.
8526 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8527 New overloads.
8528 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8529 (stmt_kills_ref_p_1): Rename...
8530 (stmt_kills_ref_p): ... to this.
8531 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8532 stmt_kills_ref_p): Declare.
8533 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8534 Move the self-assignment case...
8535 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8536
8537 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8538
8539 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8540
8541 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8542 "after". For now, don't strengthen param "trial", which requires
8543 adding checked casts when returning it.
8544
8545 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8546
8547 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8548 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8549 "var_location" hook from rtx to rtx_insn *.
8550 (debug_nothing_rtx): Delete in favor of...
8551 (debug_nothing_rtx_code_label): New prototype.
8552 (debug_nothing_rtx_rtx): Delete unused prototype.
8553 (debug_nothing_rtx_insn): New prototype.
8554
8555 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8556 invoking debug_hooks->var_location (in two places, one in a NOTE
8557 case of a switch statement, the other guarded by a CALL_P
8558 conditional. Add checked cast to rtx_code_label * when invoking
8559 debug_hooks->label (within CODE_LABEL case of switch statement).
8560
8561 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8562 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8563 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8564 (xcoff_debug_hooks): Likewise.
8565 * debug.c (do_nothing_debug_hooks): Likewise.
8566 (debug_nothing_rtx): Delete in favor of...
8567 (debug_nothing_rtx_insn): New function.
8568 (debug_nothing_rtx_rtx): Delete unused function.
8569 (debug_nothing_rtx_code_label): New function.
8570 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8571 debug_nothing_rtx to debug_nothing_rtx_code_label.
8572 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8573 to rtx_insn *.
8574 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8575 debug_nothing_rtx to debug_nothing_rtx_insn.
8576 (sdbout_label): Strengthen param "insn" from rtx to
8577 rtx_code_label *.
8578 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8579 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8580 "var_location" hook from debug_nothing_rtx to
8581 debug_nothing_rtx_insn.
8582
8583 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8584
8585 * recog.h (insn_output_fn): Update this function typedef to match
8586 the changes below to the generated output functions, strengthening
8587 the 2nd param from rtx to rtx_insn *.
8588
8589 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8590 insn when invoking an output function, to match the new signature
8591 of insn_output_fn with a stronger second param.
8592
8593 * genconditions.c (write_header): In the generated code for
8594 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8595 to match the other changes in this patch.
8596
8597 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8598 the generated "gen_" functions from rtx to rtx_insn * within their
8599 implementations.
8600
8601 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8602 the subfunctions within the generated "recog_", "split", "peephole2"
8603 function trees from rtx to rtx_insn *. For now, the top-level
8604 generated functions ("recog", "split", "peephole2") continue to
8605 take a plain rtx for "insn", to avoid introducing dependencies on
8606 other patches. Rename this 2nd param from "insn" to
8607 "uncast_insn", and reintroduce "insn" as a local variable of type
8608 rtx_insn *, initialized at the top of the generated function with
8609 a checked cast on "uncast_insn".
8610 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8611 the generated "gen_" functions from rtx to rtx_insn * within their
8612 prototypes.
8613
8614 * genoutput.c (process_template): Strengthen the 2nd param within
8615 the generated "output_" functions "insn" from rtx to rtx_insn *.
8616
8617 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8618
8619 * tree-profile.c (tree_profiling): Skip external functions
8620 when doing coverage instrumentation.
8621 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8622
8623 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8624
8625 * config/rs6000/altivec.h (vec_cpsgn): New #define.
8626 (vec_mergee): Likewise.
8627 (vec_mergeo): Likewise.
8628 (vec_cntlz): Likewise.
8629 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8630 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8631 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8632 VMRGEW, and VMRGOW.
8633 * doc/extend.texi: Document various forms of vec_cpsgn,
8634 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8635 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8636 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8637 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8638 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8639
8640 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8641
8642 * config/rs6000/rs6000.c (context.h): New include.
8643 (tree-pass.h): Likewise.
8644 (make_pass_analyze_swaps): New decl.
8645 (rs6000_option_override): Register pass_analyze_swaps.
8646 (swap_web_entry): New subsclass of web_entry_base (df.h).
8647 (special_handling_values): New enum.
8648 (union_defs): New function.
8649 (union_uses): Likewise.
8650 (insn_is_load_p): Likewise.
8651 (insn_is_store_p): Likewise.
8652 (insn_is_swap_p): Likewise.
8653 (rtx_is_swappable_p): Likewise.
8654 (insn_is_swappable_p): Likewise.
8655 (chain_purpose): New enum.
8656 (chain_contains_only_swaps): New function.
8657 (mark_swaps_for_removal): Likewise.
8658 (swap_const_vector_halves): Likewise.
8659 (adjust_subreg_index): Likewise.
8660 (permute_load): Likewise.
8661 (permute_store): Likewise.
8662 (handle_special_swappables): Likewise.
8663 (replace_swap_with_copy): Likewise.
8664 (dump_swap_insn_table): Likewise.
8665 (rs6000_analyze_swaps): Likewise.
8666 (pass_data_analyze_swaps): New pass_data.
8667 (pass_analyze_swaps): New rtl_opt_pass.
8668 (make_pass_analyze_swaps): New function.
8669 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8670
8671 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8672
8673 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8674 type from rtx to rtx_insn *.
8675 (create_copy_of_insn_rtx): Likewise.
8676 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8677 (create_copy_of_insn_rtx): Likewise, also for local "res".
8678
8679 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8680
8681 * rtl.h (find_first_parameter_load): Strengthen return type from
8682 rtx to rtx_insn *.
8683 * rtlanal.c (find_first_parameter_load): Strengthen return type
8684 from rtx to rtx_insn *. Add checked cast for now, to postpone
8685 strengthening the params.
8686
8687 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8688
8689 PR fortran/44054
8690 * diagnostic.c: Set default caret.
8691 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8692 line is needed.
8693 * diagnostic.h (struct diagnostic_context):
8694
8695 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8696
8697 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8698 (sel_bb_head): Strengthen return type insn_t (currently just an
8699 rtx) to rtx_insn *.
8700 (sel_bb_end): Likewise.
8701
8702 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8703 (sel_bb_head): Strengthen return type and local "head" from
8704 insn_t (currently just an rtx) to rtx_insn *.
8705 (sel_bb_end): Likewise for return type.
8706 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8707 working with insn.
8708
8709 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8710
8711 * basic-block.h (get_last_bb_insn): Strengthen return type from
8712 rtx to rtx_insn *.
8713 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8714 end".
8715
8716 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8717
8718 PR fortran/44054
8719 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8720 to here ...
8721 (diagnostic_report_diagnostic): ... from here.
8722 * toplev.c (general_init): Move code to c-family.
8723
8724 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8725
8726 * df.h (web_entry_base): Replace existing struct web_entry with a
8727 new class web_entry_base with only the predecessor member.
8728 (unionfind_root): Remove declaration and move to class member.
8729 (unionfind_union): Remove declaration and move to friend
8730 function.
8731 (union_defs): Remove declaration.
8732 * web.c (web_entry_base::unionfind_root): Modify to be member
8733 function and adjust accessors.
8734 (unionfind_union): Modify to be friend function and adjust
8735 accessors.
8736 (web_entry): New subclass of web_entry_base containing the reg
8737 member.
8738 (union_match_dups): Modify for struct -> class changes.
8739 (union_defs): Likewise.
8740 (entry_register): Likewise.
8741 (pass_web::execute): Likewise.
8742
8743 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
8744
8745 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8746 builtin define __VEC_ELEMENT_REG_ORDER__.
8747
8748 2014-08-20 Martin Jambor <mjambor@suse.cz>
8749 Wei Mi <wmi@google.com>
8750
8751 PR ipa/60449
8752 PR middle-end/61776
8753 * tree-ssa-operands.c (update_stmt_operands): Remove
8754 MODIFIED_NORETURN_CALLS.
8755 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8756 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8757 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8758 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8759 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8760 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8761 (gimple_call_set_ctrl_altering): New func.
8762 (gimple_call_ctrl_altering_p): Ditto.
8763 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8764 (make_blocks): Use gimple_call_initialize_ctrl_altering.
8765 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8766 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8767 remove MODIFIED_NORETURN_CALLS.
8768
8769 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8770
8771 * coverage.c (coverage_compute_profile_id): Return non-0;
8772 also handle symbols with unique name.
8773 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8774
8775 2014-08-20 Steve Ellcey <sellcey@mips.com>
8776
8777 PR middle-end/49191
8778 * doc/sourcebuild.texi (non_strict_align): New.
8779
8780 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8781
8782 * cgraphunit.c (ipa_passes, compile): Reshedule
8783 symtab_remove_unreachable_nodes passes; update comments.
8784 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8785 TODO_remove_functions before the pass; the functions ought to be
8786 already removed.
8787 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8788 TODO_remove_functions.
8789 * passes.c (pass_data_early_local_passes): Do not schedule function
8790 removal.
8791 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8792
8793 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8794
8795 PR c/59304
8796 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8797 before setting the option.
8798 * diagnostic.c (diagnostic_classify_diagnostic): Record
8799 command-line status.
8800
8801 2014-08-20 Richard Biener <rguenther@suse.de>
8802
8803 PR lto/62190
8804 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8805 to build uint{16,32,64}_type_node.
8806
8807 2014-08-20 Terry Guo <terry.guo@arm.com>
8808
8809 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8810 with immediate_operand.
8811
8812 2014-08-20 David Malcolm <dmalcolm@redhat.com>
8813
8814 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8815 "insn" from an as_a to a safe_as_a, for the case when "insn" is
8816 NULL.
8817
8818 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8819
8820 PR preprocessor/51303
8821 * incpath.c (remove_duplicates): Use cpp_warning.
8822
8823 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8824
8825 PR c/60975
8826 PR c/53063
8827 * doc/options.texi (CPP): Document it.
8828 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8829 * optc-gen.awk: Handle CPP.
8830 * opth-gen.awk: Likewise.
8831
8832 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8833
8834 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8835 rtx_insn *.
8836 (duplicate_insn_chain): Likewise.
8837 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8838 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8839 checked cast for now (until we can strengthen the params in the
8840 same way).
8841 (duplicate_insn_chain): Likewise.
8842
8843 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8844
8845 * rtl.h (next_cc0_user): Strengthen return type from rtx to
8846 rtx_insn *.
8847 (prev_cc0_setter): Likewise.
8848
8849 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8850 rtx_insn *, adding checked casts for now as necessary.
8851 (prev_cc0_setter): Likewise.
8852
8853 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8854
8855 * expr.h (emit_move_insn): Strengthen return type from rtx to
8856 rtx_insn *.
8857 (emit_move_insn_1): Likewise.
8858 (emit_move_complex_push): Likewise.
8859 (emit_move_complex_parts): Likewise.
8860
8861 * expr.c (emit_move_via_integer): Strengthen return type from rtx
8862 to rtx_insn *. Replace use of NULL_RTX with NULL when working
8863 with insns.
8864 (emit_move_complex_push): Strengthen return type from rtx to
8865 rtx_insn *.
8866 (emit_move_complex): Likewise, also for local "ret".
8867 (emit_move_ccmode): Likewise.
8868 (emit_move_multi_word): Likewise for return type and locals
8869 "last_insn", "seq".
8870 (emit_move_insn_1): Likewise for return type and locals "result",
8871 "ret".
8872 (emit_move_insn): Likewise for return type and local "last_insn".
8873 (compress_float_constant): Likewise.
8874
8875 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8876
8877 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8878 from rtx to rtx_insn *.
8879
8880 * rtl.h (emit_insn_before): Likewise.
8881 (emit_insn_before_noloc): Likewise.
8882 (emit_insn_before_setloc): Likewise.
8883 (emit_jump_insn_before): Likewise.
8884 (emit_jump_insn_before_noloc): Likewise.
8885 (emit_jump_insn_before_setloc): Likewise.
8886 (emit_call_insn_before): Likewise.
8887 (emit_call_insn_before_noloc): Likewise.
8888 (emit_call_insn_before_setloc): Likewise.
8889 (emit_debug_insn_before): Likewise.
8890 (emit_debug_insn_before_noloc): Likewise.
8891 (emit_debug_insn_before_setloc): Likewise.
8892 (emit_label_before): Likewise.
8893 (emit_insn_after): Likewise.
8894 (emit_insn_after_noloc): Likewise.
8895 (emit_insn_after_setloc): Likewise.
8896 (emit_jump_insn_after): Likewise.
8897 (emit_jump_insn_after_noloc): Likewise.
8898 (emit_jump_insn_after_setloc): Likewise.
8899 (emit_call_insn_after): Likewise.
8900 (emit_call_insn_after_noloc): Likewise.
8901 (emit_call_insn_after_setloc): Likewise.
8902 (emit_debug_insn_after): Likewise.
8903 (emit_debug_insn_after_noloc): Likewise.
8904 (emit_debug_insn_after_setloc): Likewise.
8905 (emit_label_after): Likewise.
8906 (emit_insn): Likewise.
8907 (emit_debug_insn): Likewise.
8908 (emit_jump_insn): Likewise.
8909 (emit_call_insn): Likewise.
8910 (emit_label): Likewise.
8911 (gen_clobber): Likewise.
8912 (emit_clobber): Likewise.
8913 (gen_use): Likewise.
8914 (emit_use): Likewise.
8915 (emit): Likewise.
8916
8917 (emit_barrier_before): Strengthen return type from rtx to
8918 rtx_barrier *.
8919 (emit_barrier_after): Likewise.
8920 (emit_barrier): Likewise.
8921
8922 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
8923 from rtx to rtx_insn *. Add checked casts for now when converting
8924 "last" from rtx to rtx_insn *.
8925 (emit_insn_before_noloc): Likewise for return type.
8926 (emit_jump_insn_before_noloc): Likewise.
8927 (emit_call_insn_before_noloc): Likewise.
8928 (emit_debug_insn_before_noloc): Likewise.
8929 (emit_barrier_before): Strengthen return type and local "insn"
8930 from rtx to rtx_barrier *.
8931 (emit_label_before): Strengthen return type from rtx to
8932 rtx_insn *. Add checked cast for now when returning param
8933 (emit_pattern_after_noloc): Strengthen return type from rtx to
8934 rtx_insn *. Add checked casts for now when converting "last" from
8935 rtx to rtx_insn *.
8936 (emit_insn_after_noloc): Strengthen return type from rtx to
8937 rtx_insn *.
8938 (emit_jump_insn_after_noloc): Likewise.
8939 (emit_call_insn_after_noloc): Likewise.
8940 (emit_debug_insn_after_noloc): Likewise.
8941 (emit_barrier_after): Strengthen return type from rtx to
8942 rtx_barrier *.
8943 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
8944 Add checked cast for now when converting "label" from rtx to
8945 rtx_insn *.
8946 (emit_pattern_after_setloc): Strengthen return type from rtx to
8947 rtx_insn *. Add checked casts for now when converting "last" from
8948 rtx to rtx_insn *.
8949 (emit_pattern_after): Strengthen return type from rtx to
8950 rtx_insn *.
8951 (emit_insn_after_setloc): Likewise.
8952 (emit_insn_after): Likewise.
8953 (emit_jump_insn_after_setloc): Likewise.
8954 (emit_jump_insn_after): Likewise.
8955 (emit_call_insn_after_setloc): Likewise.
8956 (emit_call_insn_after): Likewise.
8957 (emit_debug_insn_after_setloc): Likewise.
8958 (emit_debug_insn_after): Likewise.
8959 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8960 when converting "last" from rtx to rtx_insn *.
8961 (emit_pattern_before): Strengthen return type from rtx to
8962 rtx_insn *.
8963 (emit_insn_before_setloc): Likewise.
8964 (emit_insn_before): Likewise.
8965 (emit_jump_insn_before_setloc): Likewise.
8966 (emit_jump_insn_before): Likewise.
8967 (emit_call_insn_before_setloc): Likewise.
8968 (emit_call_insn_before): Likewise.
8969 (emit_debug_insn_before_setloc): Likewise.
8970 (emit_debug_insn_before): Likewise.
8971 (emit_insn): Strengthen return type and locals "last", "insn",
8972 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8973 within cases where we know we have an insn.
8974 (emit_debug_insn): Likewise.
8975 (emit_jump_insn): Likewise.
8976 (emit_call_insn): Strengthen return type and local "insn" from rtx
8977 to rtx_insn *.
8978 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8979 a checked cast to rtx_insn * for now on "label".
8980 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8981 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8982 (emit_use): Likewise.
8983 (gen_use): Likewise, also for local "seq".
8984 (emit): Likewise for return type and local "insn".
8985 (rtx_insn): Likewise for return type and local "new_rtx".
8986
8987 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
8988 from rtx to rtx_barrier *.
8989
8990 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
8991 changed return type from rtx to rtx_insn *, we must update
8992 "emit_fn" type, and this in turn means updating...
8993 (frame_insn): ...this. Strengthen return type from rtx to
8994 rtx_insn *. Introduce a new local "insn" of the appropriate type.
8995
8996 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8997
8998 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
8999 rtx to rtx_jump_table_data *. Also for local.
9000 * rtl.h (emit_jump_table_data): Likewise.
9001
9002 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9003
9004 * basic-block.h (create_basic_block_structure): Strengthen third
9005 param "bb_note" from rtx to rtx_note *.
9006 * rtl.h (emit_note_before): Strengthen return type from rtx to
9007 rtx_note *.
9008 (emit_note_after): Likewise.
9009 (emit_note): Likewise.
9010 (emit_note_copy): Likewise. Also, strengthen param similarly.
9011 * function.h (struct rtl_data): Strengthen field
9012 "x_stack_check_probe_note" from rtx to rtx_note *.
9013
9014 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9015 from rtx to rtx_note *.
9016 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9017 "bb_note" from rtx to rtx_note *.
9018 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9019 when calling emit_note_copy.
9020 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9021 rtx_note *.
9022 (emit_note_after): Likewise.
9023 (emit_note_before): Likewise.
9024 (emit_note_copy): Likewise. Also, strengthen param similarly.
9025 (emit_note): Likewise.
9026 * except.c (emit_note_eh_region_end): Likewise for return type.
9027 Strengthen local "next" from rtx to rtx_insn *.
9028 (convert_to_eh_region_ranges): Strengthen local "note"
9029 from rtx to rtx_note *.
9030 * final.c (change_scope): Likewise.
9031 (reemit_insn_block_notes): Likewise, for both locals named "note".
9032 Also, strengthen local "insn" from rtx to rtx_insn *.
9033 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9034 rtx to rtx_note *.
9035 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9036 strengthen local "seq" from rtx to rtx_insn *.
9037 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9038 to rtx_note *.
9039 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9040 vec<rtx_note *>.
9041 (get_bb_note_from_pool): Strengthen return type from rtx to
9042 rtx_note *.
9043 (sel_create_basic_block): Strengthen local "new_bb_note" from
9044 insn_t to rtx_note *.
9045 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9046 "note" from rtx to rtx_note *.
9047 (emit_notes_in_bb): Likewise.
9048
9049 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9050
9051 * function.h (struct rtl_data): Strengthen field
9052 "x_parm_birth_insn" from rtx to rtx_insn *.
9053 * function.c (struct assign_parm_data_all): Strengthen fields
9054 "first_conversion_insn" and "last_conversion_insn" from rtx to
9055 rtx_insn *.
9056
9057 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9058
9059 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9060 to rtx_insn *; also for local "var_end_seq".
9061 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9062 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9063 "insn".
9064 (expand_gimple_cond): Likewise for locals "last2" and "last".
9065 (mark_transaction_restart_calls): Likewise for local "insn".
9066 (expand_gimple_stmt): Likewise for return type and locals "last"
9067 and "insn".
9068 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9069 (avoid_complex_debug_insns): Likewise for param "insn".
9070 (expand_debug_locations): Likewise for locals "insn", "last",
9071 "prev_insn" and "insn2".
9072 (expand_gimple_basic_block): Likewise for local "last".
9073 (construct_exit_block): Likewise for locals "head", "end",
9074 "orig_end".
9075 (pass_expand::execute): Likewise for locals "var_seq",
9076 "var_ret_seq", "next".
9077
9078 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9079
9080 * asan.h (asan_emit_stack_protection): Strengthen return type from
9081 rtx to rtx_insn *.
9082 * asan.c (asan_emit_stack_protection): Likewise. Add local
9083 "insns" to hold the return value.
9084
9085 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9086
9087 * basic-block.h (bb_note): Strengthen return type from rtx to
9088 rtx_note *.
9089 * sched-int.h (bb_note): Likewise.
9090 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9091
9092 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9093
9094 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9095 rtx_insn *.
9096
9097 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9098 "insn" from rtx to rtx_insn *.
9099 (make_debug_insn_raw): Strengthen return type from rtx to
9100 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9101 (make_jump_insn_raw): Strengthen return type from rtx to
9102 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9103 (make_call_insn_raw): Strengthen return type from rtx to
9104 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9105 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9106 callback from rtx to rtx_insn *; likewise for local "insn" and
9107 "next", adding a checked cast to rtx_insn in the relevant cases of
9108 the switch statement.
9109 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9110 callback from rtx to rtx_insn *.
9111 (emit_pattern_after_setloc): Likewise.
9112 (emit_pattern_after): Likewise.
9113 (emit_pattern_before_setloc): Likewise.
9114 (emit_pattern_before): Likewise.
9115
9116 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9117
9118 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9119 rtx_call_insn *.
9120 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9121 accepting an rtx_insn *.
9122 (last_call_insn): Strengthen return type from rtx to
9123 rtx_call_insn *.
9124
9125 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9126
9127 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9128 "insns" from rtx to rtx_insn *.
9129 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9130 locals "insn" and "prev".
9131
9132 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9133
9134 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9135 rtx_jump_table_data **.
9136
9137 * cfgbuild.c (make_edges): Introduce local "table", using it in
9138 place of "tmp" for jump table data.
9139 (find_bb_boundaries): Strengthen local "table" from rtx to
9140 rtx_jump_table_data *.
9141 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9142 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9143 (try_crossjump_to_edge): Likewise.
9144 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9145 "table".
9146 (patch_jump_insn): Introduce local "table", using it in place of
9147 "tmp" for jump table data.
9148 (force_nonfallthru_and_redirect): Introduce local "table", so that
9149 call to tablejump_p can receive an rtx_jump_table_data **. Update
9150 logic around the call to overwrite "note" appropriately if
9151 tablejump_p returns non-zero.
9152 (get_last_bb_insn): Introduce local "table", using it in place of
9153 "tmp" for jump table data.
9154 * dwarf2cfi.c (create_trace_edges): Likewise.
9155
9156 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9157 from rtx to rtx_jump_table_data *.
9158 (create_fix_barrier): Strengthen local "tmp" from rtx to
9159 rtx_jump_table_data *.
9160 (arm_reorg): Likewise for local "table".
9161
9162 * config/s390/s390.c (s390_chunkify_start): Likewise.
9163
9164 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9165
9166 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9167 rtx to rtx_jump_table_data *.
9168
9169 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9170 rtx_jump_table_data **. Add a checked cast when writing through
9171 the pointer: we know there that local "table" is non-NULL and that
9172 JUMP_TABLE_DATA_P (table) holds.
9173 (label_is_jump_target_p): Introduce local "table", using it in
9174 place of "tmp" for jump table data.
9175
9176 2014-08-19 Marek Polacek <polacek@redhat.com>
9177
9178 PR c++/62153
9179 * doc/invoke.texi: Document -Wbool-compare.
9180
9181 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9182
9183 * rtl.h (entry_of_function): Strengthen return type from rtx to
9184 rtx_insn *.
9185 * cfgrtl.c (entry_of_function): Likewise.
9186
9187 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9188
9189 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9190 rtx_insn *, adding a checked cast for now.
9191 (get_last_insn): Likewise.
9192
9193 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9194
9195 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9196 rtx_code_label *.
9197
9198 * emit-rtl.c (gen_label_rtx): Likewise.
9199
9200 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9201
9202 * rtl.h (previous_insn): Strengthen return type from rtx to
9203 rtx_insn *.
9204 (next_insn): Likewise.
9205 (prev_nonnote_insn): Likewise.
9206 (prev_nonnote_insn_bb): Likewise.
9207 (next_nonnote_insn): Likewise.
9208 (next_nonnote_insn_bb): Likewise.
9209 (prev_nondebug_insn): Likewise.
9210 (next_nondebug_insn): Likewise.
9211 (prev_nonnote_nondebug_insn): Likewise.
9212 (next_nonnote_nondebug_insn): Likewise.
9213 (prev_real_insn): Likewise.
9214 (next_real_insn): Likewise.
9215 (prev_active_insn): Likewise.
9216 (next_active_insn): Likewise.
9217
9218 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9219 rtx_insn *, adding a checked cast.
9220 (previous_insn): Likewise.
9221 (next_nonnote_insn): Likewise.
9222 (next_nonnote_insn_bb): Likewise.
9223 (prev_nonnote_insn): Likewise.
9224 (prev_nonnote_insn_bb): Likewise.
9225 (next_nondebug_insn): Likewise.
9226 (prev_nondebug_insn): Likewise.
9227 (next_nonnote_nondebug_insn): Likewise.
9228 (prev_nonnote_nondebug_insn): Likewise.
9229 (next_real_insn): Likewise.
9230 (prev_real_insn): Likewise.
9231 (next_active_insn): Likewise.
9232 (prev_active_insn): Likewise.
9233
9234 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9235 param "stepfunc" so that it returns an rtx_insn * rather than an
9236 rtx, to track the change to prev_nonnote_insn_bb, which is the
9237 only function this is called with.
9238 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9239
9240 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9241
9242 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9243 assert.
9244
9245 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9246
9247 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9248 (class rtx_nonjump_insn): Likewise.
9249 (class rtx_jump_insn): Likewise.
9250 (class rtx_call_insn): Likewise.
9251 (class rtx_jump_table_data): Likewise.
9252 (class rtx_barrier): Likewise.
9253 (class rtx_code_label): Likewise.
9254 (class rtx_note): Likewise.
9255
9256 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9257 adding the invariant DEBUG_INSN_P (X).
9258 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9259 the invariant NONJUMP_INSN_P (X).
9260 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9261 the invariant JUMP_P (X).
9262 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9263 the invariant CALL_P (X).
9264 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9265 invariant JUMP_TABLE_DATA_P (X).
9266 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9267 invariant BARRIER_P (X).
9268 (class rtx_code_label): New, a subclass of rtx_insn, adding
9269 the invariant LABEL_P (X).
9270 (class rtx_note): New, a subclass of rtx_insn, adding
9271 the invariant NOTE_P(X).
9272 (is_a_helper <rtx_debug_insn *>::test): New.
9273 (is_a_helper <rtx_nonjump_insn *>::test): New.
9274 (is_a_helper <rtx_jump_insn *>::test): New.
9275 (is_a_helper <rtx_call_insn *>::test): New.
9276 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9277 overloaded for both rtx and rtx_insn *.
9278 (is_a_helper <rtx_barrier *>::test): New.
9279 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9280 for both rtx and rtx_insn *.
9281 (is_a_helper <rtx_note *>::test): New.
9282
9283 2014-08-19 Marek Polacek <polacek@redhat.com>
9284
9285 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9286 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9287 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9288 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9289
9290 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9291
9292 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9293 rtx_insn *. To help with transition, for now, convert from an
9294 access macro into a pair of functions: BND_TO, returning an
9295 rtx_insn *, and...
9296 (SET_BND_TO): New function, for use where BND_TO is used as an
9297 lvalue.
9298
9299 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9300 SET_BND_TO.
9301 (BND_TO): New function, adding a checked cast.
9302 (SET_BND_TO): New function.
9303
9304 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9305 SET_BND_TO.
9306 (compute_av_set_on_boundaries): Likewise.
9307
9308 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9309
9310 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9311 destination if it is used in source.
9312 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9313 (*popcount<mode>2_falsedep_1): Likewise.
9314
9315 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9316
9317 PR other/62168
9318 * configure.ac: Set install_gold_as_default to no first.
9319 * configure: Regenerated.
9320
9321 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9322
9323 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9324 "note_list" field will eventually be an rtx_insn *. To help with
9325 transition, for now, convert from an access macro into a pair of
9326 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9327 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9328 used as an lvalue.
9329
9330 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9331 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9332
9333 * sel-sched-ir.c (init_bb): Likewise.
9334 (sel_restore_notes): Likewise.
9335 (move_bb_info): Likewise.
9336 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9337 (SET_BB_NOTE_LIST): New function.
9338
9339 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9340
9341 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9342 field will eventually be an rtx_insn *. To help with transition,
9343 for now, convert from an access macro into a pair of functions:
9344 VINSN_INSN_RTX, returning an rtx_insn *, and...
9345 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9346 is used as an lvalue.
9347
9348 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9349 SET_VINSN_INSN_RTX where it's used as an lvalue.
9350 (VINSN_INSN_RTX): New function.
9351 (SET_VINSN_INSN_RTX): New function.
9352
9353 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9354
9355 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9356 eventually be rtx_insn *, but to help with transition, for now,
9357 convert from an access macro into a pair of functions: DEP_PRO
9358 returning an rtx_insn * and...
9359 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9360 lvalue, returning an rtx&.
9361 (DEP_CON): Analogous changes to DEP_PRO above.
9362 (SET_DEP_CON): Likewise.
9363
9364 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9365 an lvalue to SET_DEP_CON.
9366 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9367 (sd_copy_back_deps): Likewise for DEP_CON.
9368 (DEP_PRO): New function, adding a checked cast for now.
9369 (DEP_CON): Likewise.
9370 (SET_DEP_PRO): New function.
9371 (SET_DEP_CON): Likewise.
9372
9373 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9374
9375 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9376 (extra_options): Add i386/cygwin.opt.
9377 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9378 (CPP_SPEC): Accept -pthread.
9379 (LINK_SPEC): Ditto.
9380 (GOMP_SELF_SPECS): Update comment.
9381 * config/i386/cygwin.opt: New file for -pthread flag.
9382
9383 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9384
9385 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9386 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9387 that we can return an rtx_insn *.
9388
9389 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9390
9391 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9392 when building executables, not DLLs. Add --large-address-aware
9393 under the same conditions.
9394 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9395 when building executables, not DLLs. Add --large-address-aware
9396 under the same conditions when using -m32.
9397
9398 * config/i386/cygwin-stdint.h: Throughout, make type
9399 definitions dependent on target architecture, not host.
9400
9401 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9402
9403 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9404 the return type from rtx to rtx_insn *, which will enable various
9405 conversions in followup patches. For now this is is done by a
9406 checked cast.
9407 (NEXT_INSN): Likewise.
9408 (SET_PREV_INSN): Convert to an inline function. This is intended
9409 for use as an lvalue, and so returns an rtx& to allow in-place
9410 modification.
9411 (SET_NEXT_INSN): Likewise.
9412
9413 2014-07-08 Mark Wielaard <mjw@redhat.com>
9414
9415 PR debug/59051
9416 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9417
9418 2014-08-19 Marek Polacek <polacek@redhat.com>
9419
9420 PR c/61271
9421 * cgraphunit.c (handle_alias_pairs): Fix condition.
9422
9423 2014-08-19 Richard Biener <rguenther@suse.de>
9424
9425 * gimple-fold.c (fold_gimple_assign): Properly build a
9426 null-pointer constant when devirtualizing addresses.
9427
9428 2014-07-07 Mark Wielaard <mjw@redhat.com>
9429
9430 * dwarf2out.c (decl_quals): New function.
9431 (modified_type_die): Take one cv_quals argument instead of two,
9432 one for const and one for volatile.
9433 (add_type_attribute): Likewise.
9434 (generic_parameter_die): Call add_type_attribute with one modifier
9435 argument.
9436 (base_type_for_mode): Likewise.
9437 (add_bounds_info): Likewise.
9438 (add_subscript_info): Likewise.
9439 (gen_array_type_die): Likewise.
9440 (gen_descr_array_type_die): Likewise.
9441 (gen_entry_point_die): Likewise.
9442 (gen_enumeration_type_die): Likewise.
9443 (gen_formal_parameter_die): Likewise.
9444 (gen_subprogram_die): Likewise.
9445 (gen_variable_die): Likewise.
9446 (gen_const_die): Likewise.
9447 (gen_field_die): Likewise.
9448 (gen_pointer_type_die): Likewise.
9449 (gen_reference_type_die): Likewise.
9450 (gen_ptr_to_mbr_type_die): Likewise.
9451 (gen_inheritance_die): Likewise.
9452 (gen_subroutine_type_die): Likewise.
9453 (gen_typedef_die): Likewise.
9454 (force_type_die): Likewise.
9455
9456 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9457
9458 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9459 if unset.
9460 * configure: Regenerate.
9461
9462 2014-08-19 Richard Biener <rguenther@suse.de>
9463
9464 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9465 DECL_EXTERNALs in BLOCKs as non-references.
9466 * tree-streamer-out.c (streamer_write_chain): Likewise.
9467
9468 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9469 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9470 Anna Tikhonova <anna.tikhonova@intel.com>
9471 Ilya Tocar <ilya.tocar@intel.com>
9472 Andrey Turetskiy <andrey.turetskiy@intel.com>
9473 Ilya Verbin <ilya.verbin@intel.com>
9474 Kirill Yukhin <kirill.yukhin@intel.com>
9475 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9476
9477 * config/i386/sse.md
9478 (define_mode_iterator VI48_AVX512F): Delete.
9479 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9480 (define_mode_iterator VI2_AVX512VL): Ditto.
9481 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9482 Delete.
9483 (define_insn
9484 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9485 New.
9486 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9487 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9488 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9489 with VI48_AVX512F_AVX512VL): New.
9490 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9491 with VI2_AVX512VL): Ditto.
9492
9493 2014-08-19 Marek Polacek <polacek@redhat.com>
9494
9495 * doc/invoke.texi: Document -Wc99-c11-compat.
9496
9497 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9498
9499 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9500 for rvalues, and...
9501 (SET_PREV_INSN): New macro, for use as an lvalue.
9502 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9503
9504 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9505 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9506 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9507 (fixup_abnormal_edges): Likewise.
9508 (unlink_insn_chain): Likewise.
9509 (fixup_reorder_chain): Likewise.
9510 (cfg_layout_delete_block): Likewise.
9511 (cfg_layout_merge_blocks): Likewise.
9512 * combine.c (update_cfg_for_uncondjump): Likewise.
9513 * emit-rtl.c (link_insn_into_chain): Likewise.
9514 (remove_insn): Likewise.
9515 (delete_insns_since): Likewise.
9516 (reorder_insns_nobb): Likewise.
9517 (emit_insn_after_1): Likewise.
9518 * final.c (rest_of_clean_state): Likewise.
9519 (final_scan_insn): Likewise.
9520 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9521 * haifa-sched.c (concat_note_lists): Likewise.
9522 (remove_notes): Likewise.
9523 (restore_other_notes): Likewise.
9524 (move_insn): Likewise.
9525 (unlink_bb_notes): Likewise.
9526 (restore_bb_notes): Likewise.
9527 * jump.c (delete_for_peephole): Likewise.
9528 * optabs.c (emit_libcall_block_1): Likewise.
9529 * reorg.c (emit_delay_sequence): Likewise.
9530 (fill_simple_delay_slots): Likewise.
9531 * sel-sched-ir.c (sel_move_insn): Likewise.
9532 (sel_remove_insn): Likewise.
9533 (get_bb_note_from_pool): Likewise.
9534 * sel-sched.c (move_nop_to_previous_block): Likewise.
9535
9536 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9537 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9538 (c6x_gen_bundles): Likewise.
9539 (hwloop_optimize): Likewise.
9540 * config/frv/frv.c (frv_function_prologue): Likewise.
9541 (frv_register_nop): Likewise.
9542 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9543 (ia64_reorg): Likewise.
9544 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9545 (mep_make_bundle): Likewise.
9546 (mep_bundle_insns): Likewise.
9547 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9548 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9549 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9550
9551 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9552
9553 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9554 return type from rtx to rtx_insn *.
9555 (BB_END): Likewise.
9556 (BB_HEADER): Likewise.
9557 (BB_FOOTER): Likewise.
9558 (SET_BB_HEAD): Convert to a function.
9559 (SET_BB_END): Likewise.
9560 (SET_BB_HEADER): Likewise.
9561 (SET_BB_FOOTER): Likewise.
9562
9563 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9564 Strengthen the return type from rtx to rtx_insn *. For now, this
9565 is done by adding a checked cast, but this will eventually
9566 become a field lookup.
9567 (BB_END): Likewise.
9568 (BB_HEADER): Likewise.
9569 (BB_FOOTER): Likewise.
9570 (SET_BB_HEAD): New function, from macro of same name. This is
9571 intended for use as an lvalue, and so returns an rtx& to allow
9572 in-place modification.
9573 (SET_BB_END): Likewise.
9574 (SET_BB_HEADER): Likewise.
9575 (SET_BB_FOOTER): Likewise.
9576
9577 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9578
9579 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9580 for rvalues, and...
9581 (SET_BB_HEAD): New macro, for use as a lvalue.
9582 (BB_END, SET_BB_END): Likewise.
9583 (BB_HEADER, SET_BB_HEADER): Likewise.
9584 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9585
9586 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9587 of BB_* macros into SET_BB_* macros.
9588 (fix_crossing_unconditional_branches): Likewise.
9589 * caller-save.c (save_call_clobbered_regs): Likewise.
9590 (insert_one_insn): Likewise.
9591 * cfgbuild.c (find_bb_boundaries): Likewise.
9592 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9593 (outgoing_edges_match): Likewise.
9594 (try_optimize_cfg): Likewise.
9595 * cfgexpand.c (expand_gimple_cond): Likewise.
9596 (expand_gimple_tailcall): Likewise.
9597 (expand_gimple_basic_block): Likewise.
9598 (construct_exit_block): Likewise.
9599 * cfgrtl.c (delete_insn): Likewise.
9600 (create_basic_block_structure): Likewise.
9601 (rtl_delete_block): Likewise.
9602 (rtl_split_block): Likewise.
9603 (emit_nop_for_unique_locus_between): Likewise.
9604 (rtl_merge_blocks): Likewise.
9605 (block_label): Likewise.
9606 (try_redirect_by_replacing_jump): Likewise.
9607 (emit_barrier_after_bb): Likewise.
9608 (fixup_abnormal_edges): Likewise.
9609 (record_effective_endpoints): Likewise.
9610 (relink_block_chain): Likewise.
9611 (fixup_reorder_chain): Likewise.
9612 (fixup_fallthru_exit_predecessor): Likewise.
9613 (cfg_layout_duplicate_bb): Likewise.
9614 (cfg_layout_split_block): Likewise.
9615 (cfg_layout_delete_block): Likewise.
9616 (cfg_layout_merge_blocks): Likewise.
9617 * combine.c (update_cfg_for_uncondjump): Likewise.
9618 * emit-rtl.c (add_insn_after): Likewise.
9619 (remove_insn): Likewise.
9620 (reorder_insns): Likewise.
9621 (emit_insn_after_1): Likewise.
9622 * haifa-sched.c (get_ebb_head_tail): Likewise.
9623 (restore_other_notes): Likewise.
9624 (move_insn): Likewise.
9625 (sched_extend_bb): Likewise.
9626 (fix_jump_move): Likewise.
9627 * ifcvt.c (noce_process_if_block): Likewise.
9628 (dead_or_predicable): Likewise.
9629 * ira.c (update_equiv_regs): Likewise.
9630 * reg-stack.c (change_stack): Likewise.
9631 * sel-sched-ir.c (sel_move_insn): Likewise.
9632 * sel-sched.c (move_nop_to_previous_block): Likewise.
9633
9634 * config/c6x/c6x.c (hwloop_optimize): Likewise.
9635 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9636
9637 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9638
9639 * rtl.h (for_each_rtx_in_insn): New function.
9640 * rtlanal.c (for_each_rtx_in_insn): Likewise.
9641
9642 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9643
9644 * coretypes.h (class rtx_insn): Add forward declaration.
9645
9646 * rtl.h: Include is-a.h.
9647 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9648 workaround to ensure gengtype knows inheritance is occurring,
9649 whilst continuing to use the pre-existing special-casing for
9650 rtx_def.
9651 (class rtx_insn): New subclass of rtx_def, adding the
9652 invariant that we're dealing with something we can sanely use
9653 INSN_UID, NEXT_INSN, PREV_INSN on.
9654 (is_a_helper <rtx_insn *>::test): New.
9655 (is_a_helper <const rtx_insn *>::test): New.
9656
9657 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9658
9659 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9660
9661 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9662
9663 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9664 comdats as extern.
9665
9666 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9667
9668 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9669 to BUILT_IN_UNREACHABLE.
9670
9671 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
9672
9673 PR target/62011
9674 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9675 New tune flag.
9676 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9677 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9678 (ffs<mode>2): Do not expand with tzcnt for
9679 TARGET_AVOID_FALSE_DEP_FOR_BMI.
9680 (ffssi2_no_cmove): Ditto.
9681 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9682 (ctz<mode>2): New expander.
9683 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9684 (*ctz<mode>2_falsedep): New insn.
9685 (*ctz<mode>2): Rename from ctz<mode>2.
9686 (clz<mode>2_lzcnt): New expander.
9687 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9688 (*clz<mode>2_lzcnt_falsedep): New insn.
9689 (*clz<mode>2): Rename from ctz<mode>2.
9690 (popcount<mode>2): New expander.
9691 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9692 (*popcount<mode>2_falsedep): New insn.
9693 (*popcount<mode>2): Rename from ctz<mode>2.
9694 (*popcount<mode>2_cmp): Remove.
9695 (*popcountsi2_cmp_zext): Ditto.
9696
9697 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
9698
9699 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9700 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9701 * config/microblaze/microblaze.h
9702 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9703
9704 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
9705
9706 PR other/62168
9707 * configure.ac: Set install_gold_as_default to no for
9708 --enable-gold=no.
9709 * configure: Regenerated.
9710
9711 2014-08-18 Roman Gareev <gareevroman@gmail.com>
9712
9713 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9714 * config.in: Add undef of HAVE_isl.
9715 * configure: Regenerate.
9716 * configure.ac: Add definition of HAVE_isl.
9717 * graphite-blocking.c: Add checking of HAVE_isl.
9718 * graphite-dependences.c: Likewise.
9719 * graphite-interchange.c: Likewise.
9720 * graphite-isl-ast-to-gimple.c: Likewise.
9721 * graphite-optimize-isl.c: Likewise.
9722 * graphite-poly.c: Likewise.
9723 * graphite-scop-detection.c: Likewise.
9724 * graphite-sese-to-poly.c: Likewise.
9725 * graphite.c: Likewise.
9726 * toplev.c: Replace the checking of HAVE_cloog with the checking
9727 of HAVE_isl.
9728
9729 2014-08-18 Richard Biener <rguenther@suse.de>
9730
9731 PR tree-optimization/62090
9732 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9733 (fold_builtin_3): Do not fold snprintf.
9734 (fold_builtin_4): Likewise.
9735 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9736 moved from builtins.c.
9737 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9738 (gimple_fold_builtin): Do not fold sprintf here.
9739
9740 2014-08-18 Richard Biener <rguenther@suse.de>
9741
9742 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9743 code to ...
9744 (maybe_canonicalize_mem_ref_addr): ... this function.
9745 (fold_stmt_1): Apply it here before all simplification.
9746
9747 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
9748
9749 PR ipa/61800
9750 * cgraph.h (cgraph_node::create_indirect_edge): Add
9751 compute_indirect_info param.
9752 * cgraph.c (cgraph_node::create_indirect_edge): Compute
9753 indirect_info only when it is required.
9754 * cgraphclones.c (cgraph_clone_edge): Do not recompute
9755 indirect_info fore cloned indirect edge.
9756
9757 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9758 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9759 Anna Tikhonova <anna.tikhonova@intel.com>
9760 Ilya Tocar <ilya.tocar@intel.com>
9761 Andrey Turetskiy <andrey.turetskiy@intel.com>
9762 Ilya Verbin <ilya.verbin@intel.com>
9763 Kirill Yukhin <kirill.yukhin@intel.com>
9764 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9765
9766 * config/i386/sse.md
9767 (define_mode_iterator VI8_AVX2_AVX512BW): New.
9768 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9769
9770 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9771 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9772 Anna Tikhonova <anna.tikhonova@intel.com>
9773 Ilya Tocar <ilya.tocar@intel.com>
9774 Andrey Turetskiy <andrey.turetskiy@intel.com>
9775 Ilya Verbin <ilya.verbin@intel.com>
9776 Kirill Yukhin <kirill.yukhin@intel.com>
9777 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9778
9779 * config/i386/sse.md
9780 (define_mode_iterator VF1_AVX512VL): New.
9781 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9782 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9783 New.
9784
9785 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9786 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9787 Anna Tikhonova <anna.tikhonova@intel.com>
9788 Ilya Tocar <ilya.tocar@intel.com>
9789 Andrey Turetskiy <andrey.turetskiy@intel.com>
9790 Ilya Verbin <ilya.verbin@intel.com>
9791 Kirill Yukhin <kirill.yukhin@intel.com>
9792 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9793
9794 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9795 * config/i386/i386.md
9796 (define_code_iterator any_float): New.
9797 (define_code_attr floatsuffix): New.
9798 * config/i386/sse.md
9799 (define_mode_iterator VF1_128_256VL): New.
9800 (define_mode_iterator VF2_512_256VL): New.
9801 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9802 TARGET check.
9803 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9804 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9805 New.
9806 (define_mode_attr qq2pssuff): New.
9807 (define_mode_attr sselongvecmode): New.
9808 (define_mode_attr sselongvecmodelower): New.
9809 (define_mode_attr sseintvecmode3): New.
9810 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9811 New.
9812 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9813 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9814 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9815 (define_insn "ufloatv2siv2df2<mask_name>"): New.
9816
9817 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9818 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9819 Anna Tikhonova <anna.tikhonova@intel.com>
9820 Ilya Tocar <ilya.tocar@intel.com>
9821 Andrey Turetskiy <andrey.turetskiy@intel.com>
9822 Ilya Verbin <ilya.verbin@intel.com>
9823 Kirill Yukhin <kirill.yukhin@intel.com>
9824 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9825
9826 * config/i386/sse.md
9827 (define_mode_iterator VF2_AVX512VL): New.
9828 (define_mode_attr sseintvecmode2): New.
9829 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9830 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9831 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9832 (define_insn
9833 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9834 Ditto.
9835 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9836 Ditto.
9837 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9838 Ditto.
9839
9840 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9841 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9842 Anna Tikhonova <anna.tikhonova@intel.com>
9843 Ilya Tocar <ilya.tocar@intel.com>
9844 Andrey Turetskiy <andrey.turetskiy@intel.com>
9845 Ilya Verbin <ilya.verbin@intel.com>
9846 Kirill Yukhin <kirill.yukhin@intel.com>
9847 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9848
9849 * config/i386/i386.md
9850 (define_insn "*movoi_internal_avx"): Add evex version.
9851 (define_insn "*movti_internal"): Ditto.
9852
9853 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9854 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9855 Anna Tikhonova <anna.tikhonova@intel.com>
9856 Ilya Tocar <ilya.tocar@intel.com>
9857 Andrey Turetskiy <andrey.turetskiy@intel.com>
9858 Ilya Verbin <ilya.verbin@intel.com>
9859 Kirill Yukhin <kirill.yukhin@intel.com>
9860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9861
9862 * config/i386/i386.md
9863 (define_attr "isa"): Add avx512dq, noavx512dq.
9864 (define_attr "enabled"): Ditto.
9865 * config/i386/sse.md
9866 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9867
9868 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9869 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9870 Anna Tikhonova <anna.tikhonova@intel.com>
9871 Ilya Tocar <ilya.tocar@intel.com>
9872 Andrey Turetskiy <andrey.turetskiy@intel.com>
9873 Ilya Verbin <ilya.verbin@intel.com>
9874 Kirill Yukhin <kirill.yukhin@intel.com>
9875 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9876
9877 * config/i386/i386.c
9878 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9879 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9880 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9881 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9882 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9883 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9884 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9885 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9886 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9887 * config/i386/sse.md
9888 (define_mode_iterator VMOVE): Allow V4TI mode.
9889 (define_mode_iterator V_AVX512VL): New.
9890 (define_mode_iterator V): New handling for AVX512VL.
9891 (define_insn "avx512f_load<mode>_mask"): Delete.
9892 (define_insn "<avx512>_load<mode>_mask"): New.
9893 (define_insn "avx512f_store<mode>_mask"): Delete.
9894 (define_insn "<avx512>_store<mode>_mask"): New.
9895
9896
9897 2014-08-18 Yury Gribov <y.gribov@samsung.com>
9898
9899 PR sanitizer/62089
9900 * asan.c (instrument_derefs): Fix bitfield check.
9901
9902 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9903
9904 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9905 * config/rs6000/htm.md (ttest): Remove clobber.
9906 * config/rs6000/predicates.md (any_mask_operand): New predicate.
9907 (and_operand): Reformat.
9908 (and_2rld_operand): New predicate.
9909 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9910 parameter.
9911 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9912 parameter. Handle AND directly.
9913 (rs6000_split_logical_di): Remove last parameter.
9914 (rs6000_split_logical): Remove last parameter. Remove obsolete
9915 comment.
9916 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9917 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9918 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
9919 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9920 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9921 and 5 anonymous splitters): Delete.
9922 (and<mode>3): New expander.
9923 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9924 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9925 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
9926 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
9927 (floatdisf2_internal1): Remove clobbers.
9928 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
9929 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
9930 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
9931 (and<mode>3 for BOOL_128): Remove clobber.
9932 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
9933 rs6000_split_logical.
9934 (*bool<mode>3_internal for BOOL_128): Adjust call of
9935 rs6000_split_logical.
9936 (*boolc<mode>3_internal1 for BOOL_128,
9937 *boolc<mode>3_internal2 for BOOL_128,
9938 *boolcc<mode>3_internal1 for BOOL_128,
9939 *boolcc<mode>3_internal2 for BOOL_128,
9940 *eqv<mode>3_internal1 for BOOL_128,
9941 *eqv<mode>3_internal2 for BOOL_128,
9942 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
9943 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
9944 clobber.
9945 (*vec_reload_and_reg_<mptrsize>): Delete.
9946
9947 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9948
9949 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9950 and split, *boolccsi3_internal3 and split): Delete.
9951 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9952 *boolccdi3_internal3 and split): Delete.
9953 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9954 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9955
9956 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9957
9958 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9959 and split, *boolcsi3_internal3 and split): Delete.
9960 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9961 *boolcdi3_internal3 and split): Delete.
9962 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9963
9964 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9965
9966 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9967 <'u'>: Also support printing the low-order 16 bits.
9968 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9969 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9970 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9971 *booldi3_internal3 and split): Delete.
9972 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9973 *bool<mode>3_dot2): New.
9974 (two anonymous define_splits for non_logical_cint_operand): Merge.
9975
9976 2014-08-17 Marek Polacek <polacek@redhat.com>
9977 Manuel López-Ibáñez <manu@gcc.gnu.org>
9978
9979 PR c/62059
9980 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9981 (diagnostic_show_locus): Don't print caret diagnostic
9982 if a column is larger than the line_width.
9983
9984 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9985
9986 * common.opt: Make the ISL AST generator to be the main code generator
9987 of Graphite.
9988
9989 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
9990
9991 * wide-int.h (generic_wide_int): Declare as class instead of struct.
9992
9993 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
9994
9995 PR target/61641
9996 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
9997 Declare.
9998 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
9999 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10000 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10001 Define.
10002 * config/pa/pa.md (begin_brtab): Delete insn.
10003 (end_brtab): Likewise.
10004
10005 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10006
10007 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10008
10009 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10010
10011 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10012 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10013 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10014 (get_dynamic_type): Remove.
10015 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10016 (clear_speculation): Bring to ipa-deivrt.h
10017 (get_class_context): Rename to ...
10018 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10019 (contains_type_p): Update.
10020 (get_dynamic_type): Rename to ...
10021 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10022 (possible_polymorphic_call_targets): UPdate.
10023 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10024 * ipa-prop.c (ipa_analyze_call_uses): Update.
10025
10026 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10027
10028 * doc/invoke.texi (SH options): Document missing processor variant
10029 options. Remove references to Hitachi. Undocument deprecated mspace
10030 option.
10031
10032 2014-08-15 Jason Merrill <jason@redhat.com>
10033
10034 * tree.c (type_hash_canon): Uncomment assert.
10035
10036 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10037
10038 * input.h (in_system_header_at): Add comment.
10039
10040 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10041
10042 PR fortran/44054
10043 * diagnostic.c (build_message_string): Make it extern.
10044 * diagnostic.h (build_message_string): Make it extern.
10045
10046 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10047
10048 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10049 load/store from/to non-floating class pseudo.
10050
10051 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10052
10053 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10054
10055 2014-08-15 Richard Biener <rguenther@suse.de>
10056
10057 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10058 (get_constraint_for_ssa_var): Remove dead code.
10059 (get_constraint_for_1): Adjust.
10060 (find_what_var_points_to): Likewise.
10061 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10062
10063 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10064
10065 PR target/61878
10066 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10067 (_mm512_mask_cmpge_epu32_mask): Ditto.
10068 (_mm512_cmpge_epu32_mask): Ditto.
10069 (_mm512_mask_cmpge_epi64_mask): Ditto.
10070 (_mm512_cmpge_epi64_mask): Ditto.
10071 (_mm512_mask_cmpge_epu64_mask): Ditto.
10072 (_mm512_cmpge_epu64_mask): Ditto.
10073 (_mm512_mask_cmple_epi32_mask): Ditto.
10074 (_mm512_cmple_epi32_mask): Ditto.
10075 (_mm512_mask_cmple_epu32_mask): Ditto.
10076 (_mm512_cmple_epu32_mask): Ditto.
10077 (_mm512_mask_cmple_epi64_mask): Ditto.
10078 (_mm512_cmple_epi64_mask): Ditto.
10079 (_mm512_mask_cmple_epu64_mask): Ditto.
10080 (_mm512_cmple_epu64_mask): Ditto.
10081 (_mm512_mask_cmplt_epi32_mask): Ditto.
10082 (_mm512_cmplt_epi32_mask): Ditto.
10083 (_mm512_mask_cmplt_epu32_mask): Ditto.
10084 (_mm512_cmplt_epu32_mask): Ditto.
10085 (_mm512_mask_cmplt_epi64_mask): Ditto.
10086 (_mm512_cmplt_epi64_mask): Ditto.
10087 (_mm512_mask_cmplt_epu64_mask): Ditto.
10088 (_mm512_cmplt_epu64_mask): Ditto.
10089 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10090 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10091 (_mm512_cmpneq_epu32_mask): Ditto.
10092 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10093 (_mm512_cmpneq_epi64_mask): Ditto.
10094 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10095 (_mm512_cmpneq_epu64_mask): Ditto.
10096 (_mm512_castpd_ps): Ditto.
10097 (_mm512_castpd_si512): Ditto.
10098 (_mm512_castps_pd): Ditto.
10099 (_mm512_castps_si512): Ditto.
10100 (_mm512_castsi512_ps): Ditto.
10101 (_mm512_castsi512_pd): Ditto.
10102 (_mm512_castpd512_pd128): Ditto.
10103 (_mm512_castps512_ps128): Ditto.
10104 (_mm512_castsi512_si128): Ditto.
10105 (_mm512_castpd512_pd256): Ditto.
10106 (_mm512_castps512_ps256): Ditto.
10107 (_mm512_castsi512_si256): Ditto.
10108 (_mm512_castpd128_pd512): Ditto.
10109 (_mm512_castps128_ps512): Ditto.
10110 (_mm512_castsi128_si512): Ditto.
10111 (_mm512_castpd256_pd512): Ditto.
10112 (_mm512_castps256_ps512): Ditto.
10113 (_mm512_castsi256_si512): Ditto.
10114 (_mm512_cmpeq_epu32_mask): Ditto.
10115 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10116 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10117 (_mm512_cmpeq_epu64_mask): Ditto.
10118 (_mm512_cmpgt_epu32_mask): Ditto.
10119 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10120 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10121 (_mm512_cmpgt_epu64_mask): Ditto.
10122 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10123 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10124 * config/i386/i386.c (enum ix86_builtins): Add
10125 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10126 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10127 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10128 (bdesc_args): Add __builtin_ia32_si512_256si,
10129 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10130 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10131 __builtin_ia32_pd512_pd.
10132 (ix86_expand_args_builtin): Handle new FTYPEs.
10133 * config/i386/sse.md (castmode): Add 512-bit modes.
10134 (AVX512MODE2P): New.
10135 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10136 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10137
10138 2014-08-15 Richard Biener <rguenther@suse.de>
10139
10140 * fold-const.c (tree_swap_operands_p): Put all constants
10141 last, also strip sign-changing NOPs when considering further
10142 canonicalization. Canonicalize also when optimizing for size.
10143
10144 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10145
10146 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10147 one_match > zero_match case to just before simple_sequence.
10148
10149 2014-08-15 Richard Biener <rguenther@suse.de>
10150
10151 * data-streamer.h (streamer_string_index, string_for_index):
10152 Remove.
10153 * data-streamer-out.c (streamer_string_index): Make static.
10154 * data-streamer-in.c (string_for_index): Likewise.
10155 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10156 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10157
10158 2014-08-15 Richard Biener <rguenther@suse.de>
10159
10160 PR tree-optimization/62031
10161 * tree-data-ref.c (dr_analyze_indices): Do not set
10162 DR_UNCONSTRAINED_BASE.
10163 (dr_may_alias_p): All indirect accesses have to go the
10164 formerly DR_UNCONSTRAINED_BASE path.
10165 * tree-data-ref.h (struct indices): Remove
10166 unconstrained_base member.
10167 (DR_UNCONSTRAINED_BASE): Remove.
10168
10169 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10170
10171 PR middle-end/62092
10172 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10173 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10174 in OMP_CLAUSE_MAP in some outer target region.
10175
10176 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10177
10178 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10179 name_expansion_cache.
10180 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10181 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10182 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10183 (difference_cannot_overflow_p): New parameter. Use affine
10184 expansion for equality check.
10185 (iv_elimination_compare_lt): Pass new argument.
10186
10187 2014-08-14 DJ Delorie <dj@redhat.com>
10188
10189 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10190 variables to the accumulator.
10191
10192 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10193 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10194 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10195 with far-far moves.
10196
10197 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10198 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10199 (umulqihi3_virt): Likewise.
10200 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10201 (umulqihi3_real): Likewise.
10202
10203 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10204
10205 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10206
10207 PR tree-optimization/62091
10208 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10209 function_entry_reached.
10210 (walk_aliased_vdefs): Clear it here.
10211 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10212
10213 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10214
10215 * ipa-utils.h (compare_virtual_tables): Declare.
10216 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10217
10218 2014-08-14 Marek Polacek <polacek@redhat.com>
10219
10220 DR 458
10221 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10222 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10223
10224 2014-08-14 Tom de Vries <tom@codesourcery.com>
10225
10226 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10227
10228 2014-08-14 Tom de Vries <tom@codesourcery.com>
10229
10230 PR rtl-optimization/62004
10231 PR rtl-optimization/62030
10232 * ifcvt.c (rtx_interchangeable_p): New function.
10233 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10234 * emit-rtl.h (mem_attrs_eq_p): Declare.
10235
10236 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10237
10238 * graphite-scop-detection.c:
10239 Add inclusion of cp-tree.h.
10240 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10241 in case they are pointers to object types
10242
10243 2014-08-14 Richard Biener <rguenther@suse.de>
10244
10245 * BASE-VER: Change to 5.0.0
10246
10247 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10248 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10249 Anna Tikhonova <anna.tikhonova@intel.com>
10250 Ilya Tocar <ilya.tocar@intel.com>
10251 Andrey Turetskiy <andrey.turetskiy@intel.com>
10252 Ilya Verbin <ilya.verbin@intel.com>
10253 Kirill Yukhin <kirill.yukhin@intel.com>
10254 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10255
10256 * config/i386/sse.md (define_mode_attr avx512): New.
10257 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10258 V4DI modes.
10259 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10260 (define_mode_attr ssse3_avx2): Ditto.
10261 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10262 (define_mode_attr avx2_avx512bw): New.
10263 (define_mode_attr ssedoublemodelower): New.
10264 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10265 V32HI, V64QI modes.
10266 (define_mode_attr ssebytemode): Allow V8DI modes.
10267 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10268 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10269 (define_mode_attr ssePSmode2): New.
10270 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10271 V16HI, V32HI modes.
10272 (define_mode_attr dbpsadbwmode): New.
10273 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10274 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10275 (vi8_sse4_1_avx2_avx512): New.
10276 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10277 mode attribute.
10278 (define_mode_attr blendbits): Move before its immediate use.
10279
10280 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10281 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10282 Anna Tikhonova <anna.tikhonova@intel.com>
10283 Ilya Tocar <ilya.tocar@intel.com>
10284 Andrey Turetskiy <andrey.turetskiy@intel.com>
10285 Ilya Verbin <ilya.verbin@intel.com>
10286 Kirill Yukhin <kirill.yukhin@intel.com>
10287 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10288
10289 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10290 * config/i386/subst.md
10291 (define_mode_iterator SUBST_V): Update.
10292 (define_mode_iterator SUBST_A): Ditto.
10293 (define_subst_attr "mask_operand7"): New.
10294 (define_subst_attr "mask_operand10"): New.
10295 (define_subst_attr "mask_operand_arg34") : New.
10296 (define_subst_attr "mask_expand_op3"): New.
10297 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10298 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10299 (define_subst_attr "mask_avx512vl_condition"): New.
10300 (define_subst_attr "round_mask_operand4"): Ditto.
10301 (define_subst_attr "round_mask_scalar_op3"): Delete.
10302 (define_subst_attr "round_mask_op4"): New.
10303 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10304 V16SImode.
10305 (define_subst_attr "round_modev8sf_condition"): New.
10306 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10307 <MODE>mode.
10308 (define_subst_attr "round_saeonly_mask_operand4"): New.
10309 (define_subst_attr "round_saeonly_mask_op4"): New.
10310 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10311 V8DImode, V16SImode.
10312 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10313 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10314 (define_subst_attr "mask_expand4_args"): New.
10315 (define_subst "mask_expand4"): New.
10316
10317 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10318 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10319 Anna Tikhonova <anna.tikhonova@intel.com>
10320 Ilya Tocar <ilya.tocar@intel.com>
10321 Andrey Turetskiy <andrey.turetskiy@intel.com>
10322 Ilya Verbin <ilya.verbin@intel.com>
10323 Kirill Yukhin <kirill.yukhin@intel.com>
10324 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10325
10326 * config/i386/i386.md
10327 (define_attr "isa"): Add avx512bw,noavx512bw.
10328 (define_attr "enabled"): Ditto.
10329 (define_split): Add 32/64-bit mask logic.
10330 (define_insn "*k<logic>qi"): New.
10331 (define_insn "*k<logic>hi"): New.
10332 (define_insn "*anddi_1"): Add mask version.
10333 (define_insn "*andsi_1"): Ditto.
10334 (define_insn "*<code><mode>_1"): Ditto.
10335 (define_insn "*<code>hi_1"): Ditto.
10336 (define_insn "kxnor<mode>"): New.
10337 (define_insn "kunpcksi"): New.
10338 (define_insn "kunpckdi"): New.
10339 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10340 (define_insn "*one_cmplhi2_1"): Ditto.
10341
10342 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10343 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10344 Anna Tikhonova <anna.tikhonova@intel.com>
10345 Ilya Tocar <ilya.tocar@intel.com>
10346 Andrey Turetskiy <andrey.turetskiy@intel.com>
10347 Ilya Verbin <ilya.verbin@intel.com>
10348 Kirill Yukhin <kirill.yukhin@intel.com>
10349 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10350
10351 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10352 V32HImode.
10353
10354 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10355 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10356 Anna Tikhonova <anna.tikhonova@intel.com>
10357 Ilya Tocar <ilya.tocar@intel.com>
10358 Andrey Turetskiy <andrey.turetskiy@intel.com>
10359 Ilya Verbin <ilya.verbin@intel.com>
10360 Kirill Yukhin <kirill.yukhin@intel.com>
10361 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10362
10363 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10364 registers.
10365 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10366 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10367 xmm/ymm16+ when availble.
10368 * config/i386/i386.h
10369 (HARD_REGNO_NREGS): Add mask regs.
10370 (VALID_AVX512F_REG_MODE): Ditto.
10371 (VALID_AVX512F_REG_MODE) : Define.
10372 (VALID_MASK_AVX512BW_MODE): Ditto.
10373 (reg_class) (MASK_REG_P(X)): Define.
10374 * config/i386/i386.md: Do not split long moves with mask register,
10375 use kmovb if avx512bw is availible.
10376 (movdi_internal): Handle mask registers.
10377
10378 2014-08-14 Richard Biener <rguenther@suse.de>
10379
10380 PR tree-optimization/62081
10381 * tree-ssa-loop.c (pass_fix_loops): New pass.
10382 (pass_tree_loop::gate): Do not fixup loops here.
10383 * tree-pass.h (make_pass_fix_loops): Declare.
10384 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10385
10386 2014-08-14 Richard Biener <rguenther@suse.de>
10387
10388 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10389 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10390
10391 2014-08-14 Richard Biener <rguenther@suse.de>
10392
10393 PR tree-optimization/62090
10394 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10395 (fold_builtin_2): Do not fold sprintf.
10396 (fold_builtin_3): Likewise.
10397 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10398 moved from builtins.c.
10399 (gimple_fold_builtin): Fold sprintf.
10400
10401 2014-08-14 Richard Biener <rguenther@suse.de>
10402
10403 PR rtl-optimization/62079
10404 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10405 run cleanup_cfg.
10406
10407 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10408
10409 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10410 current_function_decl.
10411
10412 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10413
10414 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10415 cgraph_function_node to cgraph_node::function_symbol
10416 refactoring.
10417
10418 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10419
10420 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10421 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10422
10423 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10424
10425 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10426 warning.
10427
10428 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10429
10430 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10431 generator.
10432
10433 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10434
10435 PR target/62025
10436 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10437 any registers that are used in mem_insn.
10438
10439 2014-08-12 Steve Ellcey <sellcey@mips.com>
10440
10441 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10442
10443 2014-08-12 Steve Ellcey <sellcey@mips.com>
10444
10445 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10446 (MULTILIB_DIRNAMES): Ditto.
10447 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10448 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10449 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10450 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10451 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10452 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10453
10454 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10455
10456 PR target/61413
10457 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10458 of __ARM_SIZEOF_WCHAR_T.
10459
10460 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10461
10462 PR target/62098
10463 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10464 Remove unnecessary attributes.
10465
10466 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10467
10468 * internal-fn.c (init_internal_fns): Fix off-by-one.
10469
10470 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10471 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10472 Anna Tikhonova <anna.tikhonova@intel.com>
10473 Ilya Tocar <ilya.tocar@intel.com>
10474 Andrey Turetskiy <andrey.turetskiy@intel.com>
10475 Ilya Verbin <ilya.verbin@intel.com>
10476 Kirill Yukhin <kirill.yukhin@intel.com>
10477 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10478
10479 * config/i386/i386.c (standard_sse_constant_opcode): Use
10480 vpxord/vpternlog if avx512 is availible.
10481
10482 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10483
10484 PR middle-end/62103
10485 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10486 bitfields, that is when size doesn't match the size of type or the
10487 size of the constructor.
10488
10489 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10490
10491 * config/rs6000/constraints.md (wh constraint): New constraint,
10492 for FP registers if direct move is available.
10493 (wi constraint): New constraint, for VSX/FP registers that can
10494 handle 64-bit integers.
10495 (wj constraint): New constraint for VSX/FP registers that can
10496 handle 64-bit integers for direct moves.
10497 (wk constraint): New constraint for VSX/FP registers that can
10498 handle 64-bit doubles for direct moves.
10499 (wy constraint): Make documentation match implementation.
10500
10501 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10502 scalar_in_vmx_p field to simplify tests of whether SFmode or
10503 DFmode can go in the Altivec registers.
10504 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10505 (rs6000_setup_reg_addr_masks): Likewise.
10506 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10507 field, and wh/wi/wj/wk constraints.
10508 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10509 the wh/wi/wj/wk constraints.
10510 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10511 upper registers, prefer VSX registers unless the operation is a
10512 memory operation with REG+OFFSET addressing.
10513
10514 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10515 DImode. Change SFmode to use ww constraint instead of d to allow
10516 SF registers in the upper registers.
10517 (VSr2): Likewise.
10518 (VSr3): Likewise.
10519 (VSr5): Fix thinko in comment.
10520 (VSa): New mode attribute that is an alternative to wa, that
10521 returns the VSX register class that a mode can go in, but may not
10522 be the preferred register class.
10523 (VS_64dm): New mode attribute for appropriate register classes for
10524 referencing 64-bit elements of vectors for direct moves and normal
10525 moves.
10526 (VS_64reg): Likewise.
10527 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10528 register allocator to only registers the data type can handle.
10529 (vsx_le_perm_load_<mode>): Likewise.
10530 (vsx_le_perm_store_<mode>): Likewise.
10531 (vsx_xxpermdi2_le_<mode>): Likewise.
10532 (vsx_xxpermdi4_le_<mode>): Likewise.
10533 (vsx_lxvd2x2_le_<mode>): Likewise.
10534 (vsx_lxvd2x4_le_<mode>): Likewise.
10535 (vsx_stxvd2x2_le_<mode>): Likewise.
10536 (vsx_add<mode>3): Likewise.
10537 (vsx_sub<mode>3): Likewise.
10538 (vsx_mul<mode>3): Likewise.
10539 (vsx_div<mode>3): Likewise.
10540 (vsx_tdiv<mode>3_internal): Likewise.
10541 (vsx_fre<mode>2): Likewise.
10542 (vsx_neg<mode>2): Likewise.
10543 (vsx_abs<mode>2): Likewise.
10544 (vsx_nabs<mode>2): Likewise.
10545 (vsx_smax<mode>3): Likewise.
10546 (vsx_smin<mode>3): Likewise.
10547 (vsx_sqrt<mode>2): Likewise.
10548 (vsx_rsqrte<mode>2): Likewise.
10549 (vsx_tsqrt<mode>2_internal): Likewise.
10550 (vsx_fms<mode>4): Likewise.
10551 (vsx_nfma<mode>4): Likewise.
10552 (vsx_eq<mode>): Likewise.
10553 (vsx_gt<mode>): Likewise.
10554 (vsx_ge<mode>): Likewise.
10555 (vsx_eq<mode>_p): Likewise.
10556 (vsx_gt<mode>_p): Likewise.
10557 (vsx_ge<mode>_p): Likewise.
10558 (vsx_xxsel<mode>): Likewise.
10559 (vsx_xxsel<mode>_uns): Likewise.
10560 (vsx_copysign<mode>3): Likewise.
10561 (vsx_float<VSi><mode>2): Likewise.
10562 (vsx_floatuns<VSi><mode>2): Likewise.
10563 (vsx_fix_trunc<mode><VSi>2): Likewise.
10564 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10565 (vsx_x<VSv>r<VSs>i): Likewise.
10566 (vsx_x<VSv>r<VSs>ic): Likewise.
10567 (vsx_btrunc<mode>2): Likewise.
10568 (vsx_b2trunc<mode>2): Likewise.
10569 (vsx_floor<mode>2): Likewise.
10570 (vsx_ceil<mode>2): Likewise.
10571 (vsx_<VS_spdp_insn>): Likewise.
10572 (vsx_xscvspdp): Likewise.
10573 (vsx_xvcvspuxds): Likewise.
10574 (vsx_float_fix_<mode>2): Likewise.
10575 (vsx_set_<mode>): Likewise.
10576 (vsx_extract_<mode>_internal1): Likewise.
10577 (vsx_extract_<mode>_internal2): Likewise.
10578 (vsx_extract_<mode>_load): Likewise.
10579 (vsx_extract_<mode>_store): Likewise.
10580 (vsx_splat_<mode>): Likewise.
10581 (vsx_xxspltw_<mode>): Likewise.
10582 (vsx_xxspltw_<mode>_direct): Likewise.
10583 (vsx_xxmrghw_<mode>): Likewise.
10584 (vsx_xxmrglw_<mode>): Likewise.
10585 (vsx_xxsldwi_<mode>): Likewise.
10586 (vsx_xscvdpspn): Tighten constraints to only use register classes
10587 the types use.
10588 (vsx_xscvspdpn): Likewise.
10589 (vsx_xscvdpspn_scalar): Likewise.
10590
10591 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10592 wj, and wk constraints.
10593 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10594 general purpose registers.
10595
10596 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10597 direct moves.
10598 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10599 DImode instead of wm. Use wk constraint for direct move of DFmode
10600 instead of wm.
10601 (extendsidi2_lfiwax): Likewise.
10602 (lfiwax): Likewise.
10603 (lfiwzx): Likewise.
10604 (movdi_internal64): Likewise.
10605
10606 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10607 wk constraints. Make the wy constraint documentation match them
10608 implementation.
10609
10610 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
10611
10612 Replacement of isl_int by isl_val
10613 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10614 (compute_bounds_for_param): use isl_val instead of isl_int
10615 (compute_bounds_for_loop): likewise
10616 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10617 (build_linearized_memory_access): use isl_val instead of isl_int
10618 (pdr_stride_in_loop): likewise
10619 * graphite-optimize-isl.c:
10620 (getPrevectorMap): use isl_val instead of isl_int
10621 * graphite-poly.c:
10622 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10623 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10624 (extern the_isl_ctx): declare
10625 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10626 (extract_affine_gmp): likewise
10627 (wrap): likewise
10628 (build_loop_iteration_domains): likewise
10629 (add_param_constraints): likewise
10630
10631 2014-08-11 Richard Biener <rguenther@suse.de>
10632
10633 PR tree-optimization/62075
10634 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10635 handle uses in patterns.
10636
10637 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10638 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10639 Anna Tikhonova <anna.tikhonova@intel.com>
10640 Ilya Tocar <ilya.tocar@intel.com>
10641 Andrey Turetskiy <andrey.turetskiy@intel.com>
10642 Ilya Verbin <ilya.verbin@intel.com>
10643 Kirill Yukhin <kirill.yukhin@intel.com>
10644 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10645
10646 * common/config/i386/i386-common.c
10647 (OPTION_MASK_ISA_AVX512VL_SET): Define.
10648 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10649 (ix86_handle_option): Handle OPT_mavx512vl.
10650 * config/i386/cpuid.h (bit_AVX512VL): Define.
10651 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10652 set -mavx512vl accordingly.
10653 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10654 OPTION_MASK_ISA_AVX512VL.
10655 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10656 (ix86_option_override_internal): Define PTA_AVX512VL, handle
10657 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10658 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10659 * config/i386/i386.h (TARGET_AVX512VL): Define.
10660 (TARGET_AVX512VL_P(x)): Ditto.
10661 * config/i386/i386.opt: Add mavx512vl.
10662
10663 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
10664
10665 PR tree-optimization/62073
10666 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10667 a basic block.
10668
10669 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10670 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10671 Anna Tikhonova <anna.tikhonova@intel.com>
10672 Ilya Tocar <ilya.tocar@intel.com>
10673 Andrey Turetskiy <andrey.turetskiy@intel.com>
10674 Ilya Verbin <ilya.verbin@intel.com>
10675 Kirill Yukhin <kirill.yukhin@intel.com>
10676 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10677
10678 * common/config/i386/i386-common.c
10679 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10680 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10681 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10682 (ix86_handle_option): Handle OPT_mavx512bw.
10683 * config/i386/cpuid.h (bit_AVX512BW): Define.
10684 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10685 set -mavx512bw accordingly.
10686 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10687 OPTION_MASK_ISA_AVX512BW.
10688 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10689 (ix86_option_override_internal): Define PTA_AVX512BW, handle
10690 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10691 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10692 * config/i386/i386.h (TARGET_AVX512BW): Define.
10693 (TARGET_AVX512BW_P(x)): Ditto.
10694 * config/i386/i386.opt: Add mavx512bw.
10695
10696 2014-08-11 Richard Biener <rguenther@suse.de>
10697
10698 PR tree-optimization/62070
10699 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10700 Remove SSA checking.
10701
10702 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10703
10704 * asan.c (asan_check_flags): New enum.
10705 (build_check_stmt_with_calls): Removed function.
10706 (build_check_stmt): Split inlining logic to
10707 asan_expand_check_ifn.
10708 (instrument_derefs): Rename parameter.
10709 (instrument_mem_region_access): Rename parameter.
10710 (instrument_strlen_call): Likewise.
10711 (asan_expand_check_ifn): New function.
10712 (asan_instrument): Remove old code.
10713 (pass_sanopt::execute): Change handling of
10714 asan-instrumentation-with-call-threshold.
10715 (asan_clear_shadow): Fix formatting.
10716 (asan_function_start): Likewise.
10717 (asan_emit_stack_protection): Likewise.
10718 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10719 Update description.
10720 * internal-fn.c (expand_ASAN_CHECK): New function.
10721 * internal-fn.def (ASAN_CHECK): New internal function.
10722 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10723 Update description.
10724 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10725 * tree.c: Small comment fix.
10726
10727 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10728
10729 * gimple.c (gimple_call_fnspec): Support internal functions.
10730 (gimple_call_return_flags): Use const.
10731 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10732 * internal-fn.def: Add fnspec information.
10733 * internal-fn.h (internal_fn_fnspec): New function.
10734 (init_internal_fns): Declare new function.
10735 * internal-fn.c (internal_fn_fnspec_array): New global variable.
10736 (init_internal_fns): New function.
10737 * tree-core.h: Update macro call.
10738 * tree.c (build_common_builtin_nodes): Initialize internal fns.
10739
10740 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
10741
10742 * lto-streamer.h (struct output_block::symbol): Change from
10743 struct symtab_node to plain symtab_node.
10744 (referenced_from_this_partition_p): Change first parameter
10745 from struct symtab_node to plain symtab_node.
10746
10747 2014-08-10 Marek Polacek <polacek@redhat.com>
10748
10749 PR c/51849
10750 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10751
10752 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
10753
10754 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10755 DECL correctly; do not give up on types in static storage.
10756
10757 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
10758
10759 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10760
10761 2014-08-09 Roman Gareev <gareevroman@gmail.com>
10762
10763 * graphite-isl-ast-to-gimple.c:
10764 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10765
10766 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10767
10768 2014-08-08 Guozhi Wei <carrot@google.com>
10769
10770 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10771
10772 2014-08-08 Cary Coutant <ccoutant@google.com>
10773
10774 * dwarf2out.c (get_skeleton_type_unit): Remove.
10775 (output_skeleton_debug_sections): Remove skeleton type units.
10776 (output_comdat_type_unit): Likewise.
10777 (dwarf2out_finish): Likewise.
10778
10779 2014-08-07 Yi Yang <ahyangyi@google.com>
10780
10781 * predict.c (expr_expected_value_1): Remove the redundant assignment.
10782
10783 2014-08-08 Richard Biener <rguenther@suse.de>
10784
10785 * lto-streamer.h (struct lto_input_block): Make it a class
10786 with a constructor.
10787 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10788 (struct lto_function_header, struct lto_simple_header,
10789 struct lto_simple_header_with_strings,
10790 struct lto_decl_header, struct lto_function_header): Make
10791 a simple inheritance hieararchy. Remove unused fields.
10792 (struct lto_asm_header): Remove.
10793 * lto-streamer-out.c (produce_asm): Adjust.
10794 (lto_output_toplevel_asms): Likewise.
10795 (produce_asm_for_decls): Likewise.
10796 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10797 * data-streamer-in.c (string_for_index): Likewise.
10798 * ipa-inline-analysis.c (inline_read_section): Likewise.
10799 * ipa-prop.c (ipa_prop_read_section): Likewise.
10800 (read_replacements_section): Likewise.
10801 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10802 * lto-section-in.c (lto_create_simple_input_block): Likewise.
10803 (lto_destroy_simple_input_block): Likewise.
10804 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10805 (lto_input_toplevel_asms): Likewise.
10806
10807 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
10808 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10809 Anna Tikhonova <anna.tikhonova@intel.com>
10810 Ilya Tocar <ilya.tocar@intel.com>
10811 Andrey Turetskiy <andrey.turetskiy@intel.com>
10812 Ilya Verbin <ilya.verbin@intel.com>
10813 Kirill Yukhin <kirill.yukhin@intel.com>
10814 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10815
10816 * common/config/i386/i386-common.c
10817 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10818 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10819 (ix86_handle_option): Handle OPT_mavx512dq.
10820 * config/i386/cpuid.h (bit_AVX512DQ): Define.
10821 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10822 set -mavx512dq accordingly.
10823 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10824 OPTION_MASK_ISA_AVX512DQ.
10825 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10826 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10827 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10828 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10829 * config/i386/i386.h (TARGET_AVX512DQ): Define.
10830 (TARGET_AVX512DQ_P(x)): Ditto.
10831 * config/i386/i386.opt: Add mavx512dq.
10832
10833 2014-08-08 Richard Biener <rguenther@suse.de>
10834
10835 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10836 target_percent, target_percent_s): Export.
10837 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10838 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10839 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10840 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10841 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10842 Move to gimple-fold.c.
10843 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10844 strcat and strcpy.
10845 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10846 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10847 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10848 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10849 (rewrite_call_expr_array): Remove.
10850 (fold_builtin_sprintf_chk): Likewise.
10851 (fold_builtin_snprintf_chk): Likewise.
10852 (fold_builtin_varargs): Remove handling of sprintf_chk,
10853 vsprintf_chk, snprintf_chk and vsnprintf_chk.
10854 (gimple_fold_builtin_sprintf_chk): Remove.
10855 (gimple_fold_builtin_snprintf_chk): Likewise.
10856 (gimple_fold_builtin_varargs): Likewise.
10857 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10858 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10859 * gimple.c (gimple_seq_add_seq_without_update): New function.
10860 * gimple.h (gimple_seq_add_seq_without_update): Declare.
10861 * gimple-fold.c: Include output.h.
10862 (gsi_replace_with_seq_vops): New function, split out from ...
10863 (gimplify_and_update_call_from_tree): ... here.
10864 (replace_call_with_value): New function.
10865 (replace_call_with_call_and_fold): Likewise.
10866 (var_decl_component_p): Moved from builtins.c.
10867 (gimple_fold_builtin_memory_op): Moved from builtins.c
10868 fold_builtin_memory_op and rewritten to GIMPLE.
10869 (gimple_fold_builtin_memset): Likewise.
10870 (gimple_fold_builtin_strcpy): Likewise.
10871 (gimple_fold_builtin_strncpy): Likewise.
10872 (gimple_fold_builtin_strcat): Likewise.
10873 (gimple_fold_builtin_fputs): Likewise.
10874 (gimple_fold_builtin_memory_chk): Likewise.
10875 (gimple_fold_builtin_stxcpy_chk): Likewise.
10876 (gimple_fold_builtin_stxncpy_chk): Likewise.
10877 (gimple_fold_builtin_snprintf_chk): Likewise.
10878 (gimple_fold_builtin_sprintf_chk): Likewise.
10879 (gimple_fold_builtin_strlen): New function.
10880 (gimple_fold_builtin_with_strlen): New function split out from
10881 gimple_fold_builtin.
10882 (gimple_fold_builtin): Change signature and handle
10883 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10884 here. Call gimple_fold_builtin_with_strlen.
10885 (gimple_fold_call): Adjust.
10886
10887 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10888
10889 * calls.c (precompute_arguments): Check
10890 promoted_for_signed_and_unsigned_p and set the promoted mode.
10891 (promoted_for_signed_and_unsigned_p): New function.
10892 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10893 and set the promoted mode.
10894 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10895 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10896 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10897
10898
10899 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10900
10901 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10902 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10903 (expand_call): Likewise.
10904 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10905 to get promoted mode.
10906 * combine.c (record_promoted_value): Skip > 0 comparison with
10907 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10908 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10909 of SUBREG_PROMOTED_UNSIGNED_P.
10910 (convert_modes): Likewise.
10911 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10912 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10913 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10914 SUBREG_PROMOTED_UNSIGNED_SET.
10915 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10916 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10917 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10918 SUBREG_PROMOTED_SET.
10919 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10920 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10921 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10922 of SUBREG_PROMOTED_UNSIGNED_P.
10923 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10924 (SUBREG_PROMOTED_SET): New define.
10925 (SUBREG_PROMOTED_GET): Likewise.
10926 (SUBREG_PROMOTED_SIGN): Likewise.
10927 (SUBREG_PROMOTED_SIGNED_P): Likewise.
10928 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
10929 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
10930 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
10931 instead of SUBREG_PROMOTED_UNSIGNED_GET.
10932 (nonzero_bits1): Skip > 0 comparison with the results as
10933 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
10934 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
10935 of !SUBREG_PROMOTED_UNSIGNED_P.
10936 * simplify-rtx.c (simplify_unary_operation_1): Use new
10937 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
10938 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
10939 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
10940 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
10941
10942 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
10943
10944 * ipa-devirt.c: Include gimple-pretty-print.h
10945 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
10946 further tests.
10947 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10948 (get_polymorphic_call_info): Fix return value
10949 (type_change_info): New sturcture based on ipa-prop
10950 variant.
10951 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10952 based on ipa-prop variant.
10953 (extr_type_from_vtbl_ptr_store): New function
10954 based on ipa-prop variant.
10955 (record_known_type): New function.
10956 (check_stmt_for_type_change): New function.
10957 (get_dynamic_type): New function.
10958 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10959 * tree-ssa-pre.c: ipa-utils.h
10960 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10961 machinery; sanity check with ipa-prop devirtualization.
10962 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10963 polymorphic flag.
10964
10965 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10966
10967 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10968 * alias.c, cfgexpand.c, cgraphbuild.c,
10969 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10970 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10971 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10972 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10973 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10974 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10975 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10976 dse.c, except.c, gengtype.c, gimple-expr.c,
10977 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10978 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10979 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10980 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10981 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10982 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10983 pointer-set.h.
10984 * pointer-set.c: Remove file.
10985 * pointer-set.h: Remove file.
10986
10987 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10988
10989 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
10990 * config/arm/types.md (f_sels, f_seld): Delete.
10991
10992 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10993
10994 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
10995 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
10996 (aarch64_movdi_<mode>high): Likewise.
10997 (aarch64_mov<mode>high_di): Likewise.
10998 (aarch64_movdi_<mode>low): Likewise.
10999 (aarch64_mov<mode>low_di): Likewise.
11000 (aarch64_movtilow_tilow): Likewise.
11001 Add comment explaining usage of fp,simd attributes and of
11002 TARGET_FLOAT and TARGET_SIMD.
11003
11004 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11005 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11006
11007 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11008 Use MOVN when one of the half-words is 0xffff.
11009
11010 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11011
11012 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11013
11014 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11015
11016 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11017 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11018 (rfs_str): String corresponding to RFS_* constants.
11019 (rank_for_schedule_stats_t): New typedef.
11020 (rank_for_schedule_stats): New static variable.
11021 (rfs_result): New static function.
11022 (rank_for_schedule): Track statistics for deciding heuristics.
11023 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11024 static functions.
11025 (ready_sort): Use them for debug printouts.
11026 (schedule_block): Init statistics state. Print statistics on
11027 rank_for_schedule decisions.
11028
11029 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11030
11031 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11032
11033 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11034
11035 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11036 constraint.
11037
11038 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11039
11040 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11041 function to not conflict.
11042 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11043 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11044 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11045 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11046 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11047 of pointer_map.
11048
11049 2014-08-07 Marek Polacek <polacek@redhat.com>
11050
11051 * fold-const.c (fold_binary_loc): Add folding of
11052 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11053
11054 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11055
11056 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11057 instead of type size.
11058 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11059
11060 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11061
11062 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11063 (*thumb1_movqi_insn): Likewise.
11064 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11065
11066 2014-08-07 Tom de Vries <tom@codesourcery.com>
11067
11068 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11069 (glibc_2_11_or_earlier): Remove effective-target keywords.
11070
11071 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11072
11073 * config/arm/arm.c (bdesc_2arg): Fix typo.
11074 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11075
11076 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11077
11078 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11079
11080 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11081
11082 PR debug/61923
11083 * haifa-sched.c (advance_one_cycle): Fix dump.
11084 (schedule_block): Don't advance cycle if we are already at the
11085 beginning of the cycle.
11086
11087 2014-08-06 Martin Jambor <mjambor@suse.cz>
11088
11089 PR ipa/61393
11090 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11091
11092 2014-08-06 Richard Biener <rguenther@suse.de>
11093
11094 PR lto/62034
11095 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11096 SCCs here.
11097 (lto_input_tree): Pop SCCs here.
11098
11099 2014-08-06 Richard Biener <rguenther@suse.de>
11100
11101 PR tree-optimization/61320
11102 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11103 handle misaligned loads.
11104
11105 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11106
11107 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11108 (aarch64_expand_vec_perm_const): Check for dup before zip.
11109
11110 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11111
11112 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11113 CONST_INT_P instead of GET_CODE and compare.
11114 (aarch64_select_cc_mode): Likewise.
11115 (aarch64_print_operand): Likewise.
11116 (aarch64_rtx_costs): Likewise.
11117 (aarch64_simd_valid_immediate): Likewise.
11118 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11119 (aarch64_simd_emit_pair_result_insn): Likewise.
11120
11121 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11122
11123 * gdbhooks.py (find_gcc_source_dir): New helper function.
11124 (class PassNames): New class, locating and parsing passes.def.
11125 (class BreakOnPass): New command "break-on-pass".
11126
11127 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11128
11129 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11130 getting olde.
11131
11132 2014-08-05 Richard Biener <rguenther@suse.de>
11133
11134 PR rtl-optimization/61672
11135 * emit-rtl.h (mem_attrs_eq_p): Declare.
11136 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11137 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11138 * cfgcleanup.c (merge_memattrs): Likewise.
11139 Include emit-rtl.h.
11140
11141 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11142
11143 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11144 rather than singleton vectors.
11145 (vqdmlsls_lane_s32): Likewise.
11146
11147 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11148
11149 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11150 Use VSDQ_HSI mode iterator.
11151 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11152 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11153 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11154 Use BUILTIN_VDQHS macro.
11155 (sqrdmulh_laneq): Likewise.
11156 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11157 (vqdmlals_laneq_s32): Likewise.
11158 (vqdmlslh_laneq_s16): Likewise.
11159 (vqdmlsls_laneq_s32): Likewise.
11160 (vqdmulhh_laneq_s16): Likewise.
11161 (vqdmulhs_laneq_s32): Likewise.
11162 (vqrdmulhh_laneq_s16): Likewise.
11163 (vqrdmulhs_laneq_s32): Likewise.
11164
11165 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11166
11167 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11168 (vmuld_laneq_f64): Likewise.
11169 (vmuls_laneq_f32): Likewise.
11170 (vmul_n_f64): Likewise.
11171 (vmuld_lane_f64): Reimplement in C.
11172 (vmuls_lane_f32): Likewise.
11173
11174 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11175
11176 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11177 to reservation.
11178 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11179
11180 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11181
11182 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11183 (rbitsi2): Likewise.
11184 (*arm_rev): Set predicable and predicable_short_it attributes.
11185
11186 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11187
11188 * convert.c (convert_to_integer): Guard transformation to lrint by
11189 -fno-math-errno.
11190
11191 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11192
11193 * config/aarch64/aarch64-builtins.c
11194 (aarch64_simd_builtin_type_mode): Delete.
11195 (v8qi_UP): Remap to V8QImode.
11196 (v4hi_UP): Remap to V4HImode.
11197 (v2si_UP): Remap to V2SImode.
11198 (v2sf_UP): Remap to V2SFmode.
11199 (v1df_UP): Remap to V1DFmode.
11200 (di_UP): Remap to DImode.
11201 (df_UP): Remap to DFmode.
11202 (v16qi_UP):V16QImode.
11203 (v8hi_UP): Remap to V8HImode.
11204 (v4si_UP): Remap to V4SImode.
11205 (v4sf_UP): Remap to V4SFmode.
11206 (v2di_UP): Remap to V2DImode.
11207 (v2df_UP): Remap to V2DFmode.
11208 (ti_UP): Remap to TImode.
11209 (ei_UP): Remap to EImode.
11210 (oi_UP): Remap to OImode.
11211 (ci_UP): Map to CImode.
11212 (xi_UP): Remap to XImode.
11213 (si_UP): Remap to SImode.
11214 (sf_UP): Remap to SFmode.
11215 (hi_UP): Remap to HImode.
11216 (qi_UP): Remap to QImode.
11217 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11218 (VAR1): Build builtin name.
11219 (aarch64_init_simd_builtins): Remove dead code.
11220
11221 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11222
11223 * graphite-isl-ast-to-gimple.c:
11224 (set_options): New function.
11225 (scop_to_isl_ast): Add calling of set_options.
11226
11227 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11228
11229 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11230 (analyze_iv_to_split_insn): Don't initialize them.
11231 (get_ivts_expr): Removed.
11232 (allocate_basic_variable, insert_base_initialization): Use
11233 SET_SRC instead of *get_ivts_expr.
11234 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11235
11236 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11237
11238 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11239 (translate_isl_ast_for_loop): Add checking of the
11240 flag_loop_parallelize_all.
11241 (ast_build_before_for): New function.
11242 (scop_to_isl_ast): Add checking of the
11243 flag_loop_parallelize_all.
11244 * graphite-dependences.c: Move the defenition of the
11245 scop_get_dependences from graphite-optimize-isl.c to this file.
11246 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11247 (carries_deps): Add checking of the x's value.
11248 * graphite-optimize-isl.c: Move the defenition of the
11249 scop_get_dependences to graphite-dependences.c.
11250 * graphite-poly.h: Add declarations of scop_get_dependences
11251 and carries_deps.
11252
11253 2014-08-04 Rohit <rohitarulraj@freescale.com>
11254
11255 PR target/60102
11256 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11257 names.
11258 (alt_reg_names): Likewise.
11259 (rs6000_dwarf_register_span): For SPE high registers, replace
11260 dwarf register numbers with GCC hard register numbers.
11261 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11262 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11263 register number for the corresponding GCC hard register number.
11264 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11265 newly added GCC hard register numbers for SPE high registers.
11266 (DWARF_FRAME_REGISTERS): Likewise.
11267 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11268 (DWARF_FRAME_REGNUM): Likewise.
11269 (FIXED_REGISTERS): Likewise.
11270 (CALL_USED_REGISTERS): Likewise.
11271 (CALL_REALLY_USED_REGISTERS): Likewise.
11272 (REG_ALLOC_ORDER): Likewise.
11273 (enum reg_class): Likewise.
11274 (REG_CLASS_NAMES): Likewise.
11275 (REG_CLASS_CONTENTS): Likewise.
11276 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11277
11278 2014-08-04 Richard Biener <rguenther@suse.de>
11279
11280 * gimple-fold.h (gimple_fold_builtin): Remove.
11281 * gimple-fold.c (gimple_fold_builtin): Make static.
11282 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11283 fold_stmt, not gimple_fold_builtin.
11284
11285 2014-08-04 Martin Liska <mliska@suse.cz>
11286
11287 * cgraph.h (csi_end_p): Removed.
11288 (csi_next): Likewise.
11289 (csi_node): Likewise.
11290 (csi_start): Likewise.
11291 (cgraph_node_in_set_p): Likewise.
11292 (cgraph_node_set_size): Likewise.
11293 (vsi_end_p): Likewise.
11294 (vsi_next): Likewise.
11295 (vsi_node): Likewise.
11296 (vsi_start): Likewise.
11297 (varpool_node_set_size): Likewise.
11298 (cgraph_node_set_nonempty_p): Likewise.
11299 (varpool_node_set_nonempty_p): Likewise.
11300 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11301 cgraph_node_set.
11302 * ipa-inline-transform.c: Likewise.
11303 * ipa-utils.c (cgraph_node_set_new): Removed.
11304 (cgraph_node_set_add): Likewise.
11305 (cgraph_node_set_remove): Likewise.
11306 (cgraph_node_set_find): Likewise.
11307 (dump_cgraph_node_set): Likewise.
11308 (debug_cgraph_node_set): Likewise.
11309 (free_cgraph_node_set): Likewise.
11310 (varpool_node_set_new): Likewise.
11311 (varpool_node_set_add): Likewise.
11312 (varpool_node_set_remove): Likewise.
11313 (varpool_node_set_find): Likewise.
11314 (dump_varpool_node_set): Likewise.
11315 (free_varpool_node_set): Likewise.
11316 (debug_varpool_node_set): Likewise.
11317 * tree-emutls.c (struct tls_var_data):
11318 (emutls_index): Removed.
11319 (emutls_decl): Likewise.
11320 (gen_emutls_addr): Function implementation uses newly added
11321 hash_map<varpool_node *, tls_var_data>.
11322 (clear_access_vars): Likewise.
11323 (create_emultls_var): Likewise.
11324 (ipa_lower_emutls): Likewise.
11325 (reset_access): New function.
11326
11327 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11328
11329 * config/i386/i386.c (ix86_option_override_internal): Add
11330 PTA_RDRND and PTA_MOVBE for bdver4.
11331
11332 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11333 James Greenhalgh <james.greenhalgh@arm.com>
11334
11335 * doc/md.texi (clrsb): Document.
11336 (clz): Change reference to x into operand 1.
11337 (ctz): Likewise.
11338 (popcount): Likewise.
11339
11340 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11341
11342 PR target/61713
11343 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11344 move to subtarget in serial version if result is ignored.
11345
11346 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11347 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11348
11349 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11350 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11351 (sched_analyze_insn): Update use of try_group_insn to
11352 sched_macro_fuse_insns.
11353 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11354 arguments that are not conditional jumps.
11355
11356 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11357
11358 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11359 family information. Handle BTVER2 cpu with cpuid family value.
11360
11361 2014-08-04 Tom de Vries <tom@codesourcery.com>
11362
11363 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11364 (glibc_2_11_or_earlier): Document effective-target keywords.
11365
11366 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11367
11368 * ipa-devirt.c (odr_type_warn_count): Add type.
11369 (possible_polymorphic_call_targets): Set it.
11370 (ipa_devirt): Use it.
11371
11372 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11373
11374 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11375 Document.
11376 * ipa-devirt.c: Include hash-map.h
11377 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11378 (clear_speculation): Break out of ...
11379 (get_class_context): ... here; speed up handling obviously useless
11380 speculations.
11381 (odr_type_warn_count, decl_warn_count): New structures.
11382 (final_warning_record): New structure.
11383 (final_warning_records): New static variable.
11384 (possible_polymorphic_call_targets): Cleanup handling of
11385 speculative info; do not build speculation when user do not care;
11386 record info about warnings when asked for.
11387 (add_decl_warning): New function.
11388 (type_warning_cmp): New function.
11389 (decl_warning_cmp): New function.
11390 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11391 (gate): Enable pass when warnings are requested.
11392 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11393 options.
11394
11395 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11396
11397 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11398 Fix cast.
11399 (hash_map::remove): New method.
11400 (hash_map::traverse): New method.
11401 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11402 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11403 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11404 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11405 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11406 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11407 pointer_map.
11408
11409 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11410
11411 * hash-set.h: new File.
11412 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11413 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11414 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11415 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11416 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11417 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11418 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11419 varpool.c: Use hash_set instead of pointer_set.
11420
11421 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11422
11423 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11424
11425 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11426
11427 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11428 for frame access when strict_p is false.
11429
11430 2014-08-01 Renlin Li <renlin.li@arm.com>
11431 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11432
11433 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11434 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11435 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11436 Declaration.
11437 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11438 predicate.
11439 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11440 aarch64_mem_pair_offset.
11441
11442 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11443
11444 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11445 offset.
11446 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11447 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11448
11449 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11450
11451 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11452
11453 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11454
11455 PR regression/61510
11456 * cgraphunit.c (analyze_functions): Use get_create rather than get
11457 for decls which are clones of abstract functions.
11458
11459 2014-08-01 Martin Liska <mliska@suse.cz>
11460
11461 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11462 * ipa-prop.h (count_formal_params): Global function created from static.
11463 * ipa-prop.c (count_formal_params): Likewise.
11464 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11465 profiles for semantically equivalent functions.
11466 * passes.c (do_per_function): If we load body of a function
11467 during WPA, this condition should behave same.
11468 * varpool.c (ctor_for_folding): More tolerant assert for variable
11469 aliases created during WPA.
11470
11471 2014-08-01 Martin Liska <mliska@suse.cz>
11472
11473 * doc/invoke.texi (Options That Control Optimization): Documentation
11474 for -foptimize-strlen introduced. Optimization levels default options
11475 fixed.
11476
11477 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11478
11479 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11480 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11481 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11482 type to bool.
11483 * stor-layout.h (min_align_of_type): New prototype.
11484 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11485 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11486 check.
11487 * ubsan.c: Include builtins.h.
11488 (ubsan_expand_bounds_ifn): Change return type to bool,
11489 always return true.
11490 (ubsan_expand_null_ifn): Change return type to bool, change
11491 argument to gimple_stmt_iterator *. Handle both null and alignment
11492 sanitization, take type from ckind argument's type rather than
11493 first argument.
11494 (instrument_member_call): Removed.
11495 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11496 Handle both null and alignment sanitization, don't say whole
11497 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11498 call instead of 2 argument.
11499 (instrument_null): Adjust instrument_mem_ref caller. Don't
11500 instrument calls here.
11501 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11502 like SANITIZE_NULL.
11503 * stor-layout.c (min_align_of_type): New function.
11504 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11505 Or it into SANITIZE_UNDEFINED.
11506 * doc/invoke.texi (-fsanitize=alignment): Document.
11507
11508 2014-07-31 Andi Kleen <ak@linux.intel.com>
11509
11510 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11511
11512 2014-07-31 Andi Kleen <ak@linux.intel.com>
11513
11514 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11515 inchash.
11516 (vn_reference_compute_hash): Dito.
11517 (vn_nary_op_compute_hash): Dito.
11518 (vn_phi_compute_hash): Dito.
11519 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11520
11521 2014-07-31 Andi Kleen <ak@linux.intel.com>
11522
11523 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11524 Rename to inchash:add_expr_commutative. Convert to inchash.
11525 (iterative_hash_hashable_expr): Rename to
11526 inchash:add_hashable_expr. Convert to inchash.
11527 (avail_expr_hash): Dito.
11528
11529 2014-07-31 Andi Kleen <ak@linux.intel.com>
11530
11531 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11532 Convert to inchash.
11533
11534 2014-07-31 Andi Kleen <ak@linux.intel.com>
11535
11536 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11537
11538 2014-07-31 Andi Kleen <ak@linux.intel.com>
11539
11540 * Makefile.in (OBJS): Add rtlhash.o
11541 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11542 (loc_checksum): Dito.
11543 (loc_checksum_ordered): Dito.
11544 (hash_loc_operands): Dito.
11545 (hash_locs): Dito.
11546 (hash_loc_list): Dito.
11547 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11548 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11549 * rtlhash.c: New file.
11550 * rtlhash.h: New file.
11551
11552 2014-07-31 Andi Kleen <ak@linux.intel.com>
11553
11554 * inchash.h (inchash): Change inchash class to namespace.
11555 (class hash): ... Rename from inchash.
11556 (add_object): Move from macro to class template.
11557 * lto-streamer-out.c (hash_tree): Change inchash
11558 to inchash::hash.
11559 * tree.c (build_type_attribute_qual_variant): Dito.
11560 (type_hash_list): Dito.
11561 (attribute_hash_list): Dito.
11562 (iterative_hstate_expr): Rename to inchash::add_expr
11563 (build_range_type_1): Change inchash to inchash::hash
11564 and use hash::add_expr.
11565 (build_array_type_1): Dito.
11566 (build_function_type): Dito
11567 (build_method_type_directly): Dito.
11568 (build_offset_type): Dito.
11569 (build_complex_type): Dito.
11570 (make_vector_type): Dito.
11571 * tree.h (iterative_hash_expr): Dito.
11572
11573 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11574
11575 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11576
11577 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11578
11579 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11580 correct alphabetical position.
11581 (vpaddd_f64): Rewrite using builtins.
11582 (vpaddd_s64): Move to correct alphabetical position.
11583 (vpaddd_u64): New.
11584
11585 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11586
11587 PR target/61844
11588 * config/sh/sh.c (sh_legitimate_address_p,
11589 sh_legitimize_reload_address): Handle reg+reg address modes when
11590 ALLOW_INDEXED_ADDRESS is false.
11591 * config/sh/predicates.md (general_movsrc_operand,
11592 general_movdst_operand): Likewise.
11593
11594 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11595
11596 * config/aarch64/aarch64-builtins.c
11597 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11598 BYTES_BIG_ENDIAN.
11599
11600 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11601
11602 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11603 the generated mask based on BYTES_BIG_ENDIAN.
11604 (aarch64_simd_check_vect_par_cnst_half): New.
11605 * config/aarch64/aarch64-protos.h
11606 (aarch64_simd_check_vect_par_cnst_half): New.
11607 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11608 the check out to aarch64_simd_check_vect_par_cnst_half.
11609 (vect_par_cnst_lo_half): Likewise.
11610 * config/aarch64/aarch64-simd.md
11611 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11612 (move_hi_quad_<mode>): Always generate a low mask.
11613
11614 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11615
11616 * doc/invoke.texi (AVR Options): Add documentation about
11617 __AVR_DEVICE_NAME__ built-in macro.
11618
11619 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
11620
11621 PR target/61948
11622 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11623 constraints are satisfied.
11624 (<shift>di3_neon): Likewise.
11625
11626 2014-07-31 Richard Biener <rguenther@suse.de>
11627
11628 PR tree-optimization/61964
11629 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11630 by structural equality.
11631
11632 2014-07-31 Yury Gribov <y.gribov@samsung.com>
11633
11634 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11635 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11636 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11637 New enums.
11638 * gcc.c (sanitize_spec_function): Support new option.
11639 (SANITIZER_SPEC): Remove now redundant check.
11640 * opts.c (common_handle_option): Support new option.
11641 (finish_options): Check for incompatibilities.
11642 * toplev.c (process_options): Split userspace-specific checks.
11643
11644 2014-07-31 Richard Biener <rguenther@suse.de>
11645
11646 * lto-streamer.h (struct output_block): Remove global.
11647 (struct data_in): Remove labels, num_named_labels and
11648 num_unnamed_labels.
11649 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11650 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11651
11652 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
11653
11654 PR c++/60517
11655 * common.opt (-Wreturn-local-addr): Moved from c.opt.
11656 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11657 (isolate_path): New argument to avoid inserting a trap.
11658 (find_implicit_erroneous_behaviour): Handle returning the address
11659 of a local variable.
11660 (find_explicit_erroneous_behaviour): Likewise.
11661
11662 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
11663
11664 PR lto/61868
11665 * toplev.c (init_random_seed): Move piece of code never called to
11666 set_random_seed.
11667 (set_random_seed): see above.
11668
11669 2014-07-31 Tom de Vries <tom@codesourcery.com>
11670
11671 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11672
11673 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11674
11675 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11676 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11677
11678 2014-07-31 Richard Biener <rguenther@suse.de>
11679
11680 * data-streamer.h (streamer_write_data_stream): Declare here,
11681 renamed from ...
11682 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
11683 * lto-cgraph.c (lto_output_node): Adjust.
11684 (lto_output_varpool_node): Likewise.
11685 * data-streamer-out.c (streamer_string_index): Likewise.
11686 (streamer_write_data_stream, lto_append_block): Move from ...
11687 * lto-section-out.c (lto_output_data_stream,
11688 lto_append_block): ... here.
11689
11690 2014-07-30 Mike Stump <mikestump@comcast.net>
11691
11692 * configure.ac: Also check for popen.
11693 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11694 * configure: Regenerate.
11695 * config.in: Regenerate.
11696
11697 2014-07-30 Martin Jambor <mjambor@suse.cz>
11698
11699 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11700 parameter to gimple.
11701
11702 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11703
11704 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11705 address as second parameter to __tpf_eh_return routine.
11706
11707 2014-07-30 Jiong Wang <jiong.wang@arm.com>
11708
11709 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11710 Thumb2.
11711
11712 2014-07-30 Tom Tromey <tromey@redhat.com>
11713
11714 PR c/59855
11715 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11716 * doc/extend.texi (Type Attributes): Document designated_init
11717 attribute.
11718
11719 2014-07-30 Roman Gareev <gareevroman@gmail.com>
11720
11721 * graphite-isl-ast-to-gimple.c:
11722 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11723 (gcc_expression_from_isl_expression): Pass type to
11724 gcc_expression_from_isl_ast_expr_id.
11725
11726 2014-07-30 Richard Biener <rguenther@suse.de>
11727
11728 * lto-streamer.h (lto_write_data): New function.
11729 * langhooks.c (lhd_append_data): Do not free block.
11730 * lto-section-out.c (lto_write_data): New function writing
11731 raw data to the current section.
11732 (lto_write_stream): Adjust for langhook semantic change.
11733 (lto_destroy_simple_output_block): Write header directly.
11734 * lto-opts.c (lto_write_options): Write options directly.
11735 * lto-streamer-out.c (produce_asm): Write heaeder directly.
11736 (lto_output_toplevel_asms): Likewise.
11737 (copy_function_or_variable): Copy data directly.
11738 (write_global_references): Output index table directly.
11739 (lto_output_decl_state_refs): Likewise.
11740 (write_symbol): Write data directly.
11741 (produce_symtab): Adjust.
11742 (produce_asm_for_decls): Output header and refs directly.
11743
11744 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11745
11746 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11747 to speculative_targets
11748 (get_class_context): Fix handling of contextes without outer type;
11749 avoid matching non-polymorphic types in LTO.
11750 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11751 parameter to speculative_targetsp; handle speculation.
11752 (dump_possible_polymorphic_call_targets): Update dumping.
11753
11754 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11755
11756 * common.opt (Wodr): Enable by default.
11757
11758 2014-07-29 Olivier Hainque <hainque@adacore.com>
11759
11760 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11761
11762 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
11763
11764 PR bootstrap/61914
11765 * gengtype.c (strtoken): New function.
11766 (create_user_defined_type): Replace strtok with strtoken.
11767
11768 2014-07-29 Nathan Sidwell <nathan@acm.org>
11769
11770 * gcov-io.c (gcov_var): Make hidden.
11771 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11772 (gcov_do_dump): Declare.
11773 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11774
11775 2014-07-29 Martin Jambor <mjambor@suse.cz>
11776
11777 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11778 parameter to gimple.
11779 (sra_modify_assign): Likewise.
11780
11781 2014-07-29 Richard Biener <rguenther@suse.de>
11782
11783 PR middle-end/52478
11784 * expr.c (expand_expr_real_2): Revert last change.
11785
11786 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11787
11788 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11789 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11790 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11791 call.
11792 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11793 (contains_type_p): Forward declare.
11794 (polymorphic_call_target_hasher::hash): Hash speculative info.
11795 (polymorphic_call_target_hasher::equal): Compare speculative info.
11796 (get_class_context): Handle speuclation.
11797 (contains_type_p): Update.
11798 (get_polymorphic_call_info_for_decl): Update.
11799 (walk_ssa_copies): Break out from ...
11800 (get_polymorphic_call_info): ... here; set speculative context
11801 before giving up.
11802 * ipa-prop.c (ipa_write_indirect_edge_info,
11803 ipa_read_indirect_edge_info): Stream speculative context.
11804 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11805 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11806 SPECULATIVE_MAYBE_DERIVED_TYPE).
11807 (possible_polymorphic_call_targets overriders): Update.
11808 (dump_possible_polymorphic_call_targets overriders): Update.
11809 (dump_possible_polymorphic_call_target_p overriders): Update.
11810
11811 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11812
11813 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11814 ipa-devirt path; fix thinko there.
11815
11816 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
11817
11818 * config/i386/i386.c (ix86_return_in_memory): Replace one
11819 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11820
11821 2014-07-28 Marek Polacek <polacek@redhat.com>
11822
11823 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
11824
11825 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
11826
11827 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11828 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11829 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11830 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11831 (USE_LD_AS_NEEDED): Likewise.
11832 (ASM_APP_ON): Likewise.
11833 (ASM_APP_OFF): Likewise.
11834 (TARGET_POSIX_IO): Likewise.
11835 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11836 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11837 (USE_LD_AS_NEEDED): Likewise.
11838 (ASM_APP_ON): Likewise.
11839 (ASM_APP_OFF): Likewise.
11840 (TARGET_POSIX_IO): Likewise.
11841
11842 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
11843
11844 PR middle-end/61734
11845 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11846 operators other than the equality operators.
11847
11848 2014-07-28 Richard Biener <rguenther@suse.de>
11849
11850 PR middle-end/52478
11851 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11852 sure to register SImode ones, not only >= word_mode ones.
11853 * expr.c (expand_expr_real_2): When expanding -ftrapv
11854 binops do not use OPTAB_LIB_WIDEN.
11855
11856 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
11857
11858 PR middle-end/61919
11859 * tree-outof-ssa.c (insert_partition_copy_on_edge)
11860 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11861 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11862 inserting them in the insn stream.
11863
11864 2014-07-28 Marek Polacek <polacek@redhat.com>
11865
11866 PR middle-end/61913
11867 * common.opt (Wodr): Add Var.
11868
11869 2014-07-28 Richard Biener <rguenther@suse.de>
11870
11871 PR tree-optimization/61921
11872 * tree-ssa-structalias.c (create_variable_info_for_1): Check
11873 if there is a varpool node before dereferencing it.
11874
11875 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11876
11877 * graphite-sese-to-poly.c:
11878 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11879 id of the pbb), which contains pointer to the pbb1.
11880
11881 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11882
11883 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11884
11885 * graphite-isl-ast-to-gimple.c:
11886 (graphite_create_new_guard): New function.
11887 (translate_isl_ast_node_if): New function.
11888 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11889
11890 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11891
11892 2014-07-27 Anthony Green <green@moxielogic.com>
11893
11894 * config.gcc: Add moxie-*-moxiebox* configuration.
11895 * config/moxie/moxiebox.h: New file.
11896
11897 2014-07-26 Andrew Pinski <apinski@cavium.com>
11898
11899 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11900 from the read only register.
11901
11902 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11903
11904 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11905 as the allocation class if it isn't likely to be spilled.
11906
11907 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11908
11909 * rtl.h (tls_referenced_p): Declare.
11910 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11911 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11912 (mips_cannot_force_const_mem): Use tls_referenced_p.
11913 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11914 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11915 instead of pa_tls_referenced_p.
11916 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11917 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11918 (pa_legitimate_constant_p): Likewise.
11919 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11920 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11921 (rs6000_cannot_force_const_mem, rs6000_emit_move)
11922 (rs6000_address_for_altivec): Use tls_referenced_p instead of
11923 rs6000_tls_referenced_p.
11924 (rs6000_tls_symbol_ref_1): Delete.
11925
11926 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
11927
11928 PR target/44551
11929 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
11930 Optimize inverse of a VEC_CONCAT.
11931
11932 2014-07-25 Xinliang David Li <davidxl@google.com>
11933
11934 * params.def: New parameter.
11935 * coverage.c (get_coverage_counts): Check new flag.
11936 (coverage_compute_profile_id): Check new flag.
11937 (coverage_begin_function): Check new flag.
11938 (coverage_end_function): Check new flag.
11939 * value-prof.c (coverage_node_map_initialized_p): New function.
11940 (init_node_map): Populate map with all functions.
11941 * doc/invoke.texi: Document new parameter.
11942
11943 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
11944 Richard Biener <rguenther@suse.de>
11945
11946 * lto-streamer-out.c (struct sccs): Turn to ...
11947 (class DFS): ... this one; refactor the DFS walk so it can
11948 be re-done on per-SCC basis.
11949 (DFS::DFS): New constructor.
11950 (DFS::~DFS): New destructor.
11951 (hash_tree): Add new MAP argument holding in-SCC hash values;
11952 remove POINTER_TYPE hashing hack.
11953 (scc_entry_compare): Rename to ...
11954 (DFS::scc_entry_compare): ... this one.
11955 (hash_scc): Rename to ...
11956 (DFS::hash_scc): ... this one; pass output_block instead
11957 of streamer_cache; work harder to get unique and stable SCC
11958 hashes.
11959 (DFS_write_tree): Rename to ...
11960 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11961 (lto_output_tree): Update.
11962
11963 2014-07-25 Andi Kleen <ak@linux.intel.com>
11964
11965 * lto-streamer-out.c (hash_tree): Convert to inchash.
11966
11967 2014-07-25 Andi Kleen <ak@linux.intel.com>
11968
11969 * tree.c (build_type_attribute_qual_variant): Use inchash.
11970 (type_hash_list): Dito.
11971 (attribute_hash_list): Dito
11972 (iterative_hstate_expr): Dito.
11973 (iterative_hash_expr): Dito.
11974 (build_range_type_1): Dito.
11975 (build_array_type_1): Dito.
11976 (build_function_type): Dito.
11977 (build_method_type_directly): Dito.
11978 (build_offset_type): Dito.
11979 (build_complex_type): Dito.
11980 (make_vector_type): Dito.
11981 * tree.h (iterative_hash_expr): Add compat wrapper.
11982 (iterative_hstate_expr): Add.
11983
11984 2014-07-25 Andi Kleen <ak@linux.intel.com>
11985
11986 * Makefile.in (OBJS): Add inchash.o.
11987 (PLUGIN_HEADERS): Add inchash.h.
11988 * ipa-devirt.c: Include inchash.h.
11989 * lto-streamer-out.c: Dito.
11990 * tree-ssa-dom.c: Dito.
11991 * tree-ssa-pre.c: Dito.
11992 * tree-ssa-sccvn.c: Dito.
11993 * tree-ssa-tail-merge.c: Dito.
11994 * asan.c: Dito.
11995 * tree.c (iterative_hash_hashval_t): Move to ...
11996 (iterative_hash_host_wide_int): Move to ...
11997 * inchash.c: Here. New file.
11998 * tree.h (iterative_hash_hashval_t): Move to ...
11999 (iterative_hash_host_wide_int): Move to ...
12000 * inchash.h: Here. New file.
12001
12002 2014-07-25 Richard Biener <rguenther@suse.de>
12003
12004 PR middle-end/61762
12005 PR middle-end/61894
12006 * fold-const.c (native_encode_int): Add and handle offset
12007 parameter to do partial encodings of expr.
12008 (native_encode_fixed): Likewise.
12009 (native_encode_real): Likewise.
12010 (native_encode_complex): Likewise.
12011 (native_encode_vector): Likewise.
12012 (native_encode_string): Likewise.
12013 (native_encode_expr): Likewise.
12014 * fold-const.c (native_encode_expr): Add offset parameter
12015 defaulting to -1.
12016 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12017 (fold_ctor_reference): Handle all reads from tcc_constant
12018 ctors.
12019
12020 2014-07-25 Richard Biener <rguenther@suse.de>
12021
12022 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12023 as possibly unused.
12024
12025 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12026
12027 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12028
12029 2014-07-24 Kyle McMartin <kyle@redhat.com>
12030
12031 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12032
12033 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12034
12035 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12036 Add prototype.
12037 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12038 function.
12039 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12040 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12041 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12042
12043 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12044
12045 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12046 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12047 aggregate types. Instead, *all* aggregate types, except for single-
12048 element or homogeneous float/vector aggregates, are quadword-aligned
12049 if required by their type alignment. Issue -Wpsabi note when a type
12050 is now treated differently than before.
12051
12052 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12053
12054 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12055 does not fit fully into floating-point registers, and there is still
12056 space in the register parameter area, use GPRs to pass those parts
12057 of the argument. Issue -Wpsabi note if any parameter is now treated
12058 differently than before.
12059 (rs6000_arg_partial_bytes): Update.
12060
12061 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12062
12063 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12064
12065 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12066
12067 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12068 * toplev.c (initialize_rtl): Don't use it. Move previously
12069 "language-dependent" calls to...
12070 (backend_init): ...here.
12071 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12072 Assert that RTL initialization hasn't happend yet.
12073
12074 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12075
12076 PR rtl-optimization/61629
12077 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12078 they have already been initialized.
12079
12080 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12081
12082 PR middle-end/61268
12083 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12084 DECL_INCOMING_RTL and entry_parm.
12085 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12086 * calls.c (load_register_parameters): Likewise argument values.
12087 (emit_library_call_value_1, store_one_arg): Likewise argument
12088 save areas.
12089 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12090 stack slot.
12091 * explow.c (validize_mem): Modify the argument in-place.
12092
12093 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12094
12095 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12096 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12097
12098 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12099
12100 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12101 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12102
12103 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12104
12105 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12106 (aarch64_save_callee_saves): New parameter "skip_wb".
12107 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12108
12109 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12110
12111 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12112 "wb_candidate2".
12113 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12114
12115 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12116
12117 * graphite-isl-ast-to-gimple.c:
12118 (graphite_create_new_loop): Add calling of isl_id_free to properly
12119 decrement reference counts.
12120
12121 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12122
12123 2014-07-24 Martin Liska <mliska@suse.cz>
12124 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12125 function used.
12126 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12127 (rs6000_code_end): Likewise.
12128
12129 2014-07-24 Martin Liska <mliska@suse.cz>
12130
12131 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12132 symtab_node funtion used.
12133 (rs6000_xcoff_declare_object_name): Likewise.
12134
12135 2014-07-24 Martin Liska <mliska@suse.cz>
12136
12137 * cgraphunit.c (compile): Correct function used.
12138
12139 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12140
12141 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12142 as non-indexable.
12143
12144 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12145
12146 PR lto/61802
12147 * varasm.c (bss_initializer_p): Handle offlined ctors.
12148 (align_variable, get_variable_align): Likewise.
12149 (make_decl_one_only): Likewise.
12150 (default_binds_local_p_1): Likewise.
12151 (decl_binds_to_current_def_p): Likewise.
12152 (get_variable_section): Get constructor if it is offlined.
12153 (assemble_variable_contents): Sanity check that the caller
12154 streamed in the ctor in LTO.
12155
12156 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12157
12158 * graphite-isl-ast-to-gimple.c:
12159 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12160 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12161 isl_ast_op_pdiv_r to the different case.
12162
12163 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12164
12165 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12166
12167 PR middle-end/61876
12168 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12169 when flag_errno_math is on.
12170
12171 2014-07-24 Martin Liska <mliska@suse.cz>
12172
12173 * cgraph.h (varpool_node):
12174 (availability get_availability (void)):
12175 created from cgraph_variable_initializer_availability
12176 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12177 created from: cgraph_variable_initializer_availability
12178 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12179 (void finalize_named_section_flags (void)):
12180 created from varpool_finalize_named_section_flags
12181 (bool assemble_decl (void)): created from varpool_assemble_decl
12182 (void analyze (void)): created from varpool_analyze_node
12183 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12184 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12185 (void remove_initializer (void)): created from varpool_remove_initializer
12186 (tree get_constructor (void)): created from varpool_get_constructor
12187 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12188 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12189 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12190 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12191 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12192 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12193 (static bool output_variables (void)): created from varpool_output_variables
12194 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12195 created from varpool_extra_name_alias
12196 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12197 (static void dump_varpool (FILE *f)): created from dump_varpool
12198 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12199 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12200 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12201 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12202 (void assemble_aliases (void)): created from assemble_aliases
12203
12204 2014-07-24 Martin Liska <mliska@suse.cz>
12205
12206 * cgraph.h (symtab_node):
12207 (void register_symbol (void)): created from symtab_register_node
12208 (void remove (void)): created from symtab_remove_node
12209 (void dump (FILE *f)): created from dump_symtab_node
12210 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12211 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12212 (struct ipa_ref *add_reference (symtab_node *referred_node,
12213 enum ipa_ref_use use_type)): created from add_reference
12214 (struct ipa_ref *add_reference (symtab_node *referred_node,
12215 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12216 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12217 gimple stmt)): created from maybe_add_reference
12218 (bool semantically_equivalent_p (symtab_node *target)): created from
12219 symtab_semantically_equivalent_p
12220 (void remove_from_same_comdat_group (void)): created from
12221 remove_from_same_comdat_group
12222 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12223 symtab_add_to_same_comdat_group
12224 (void dissolve_same_comdat_group_list (void)): created from
12225 symtab_dissolve_same_comdat_group_list
12226 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12227 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12228 created from symtab_alias_ultimate_target
12229 (inline symtab_node *next_defined_symbol (void)): created from
12230 symtab_next_defined_symbol
12231 (bool resolve_alias (symtab_node *target)): created from
12232 symtab_resolve_alias
12233 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12234 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12235 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12236 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12237 (void set_section (const char *section)): created from set_section_1
12238 (enum availability get_availability (void)): created from symtab_node_availability
12239 (void make_decl_local (void)): created from symtab_make_decl_local
12240 (bool real_symbol_p (void)): created from symtab_read_node
12241 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12242 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12243 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12244 symtab_in_same_comdat_p;
12245 (bool address_taken_from_non_vtable_p (void)): created from
12246 address_taken_from_non_vtable_p
12247 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12248 (static void dump_table (FILE *)): created from dump_symtab
12249 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12250 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12251 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12252 symtab_used_from_object_file_p
12253 (void dump_base (FILE *)): created from dump_symtab_base
12254 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12255 (void unregister (void)): created from symtab_unregister_node
12256 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12257 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12258 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12259 symtab_nonoverwritable_alias_1
12260 * cgraph.h (cgraph_node):
12261 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12262 created from cgraph_remove_node_and_inline_clones
12263 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12264 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12265 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12266 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12267 created from cgraph_function_node
12268 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12269 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12270 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12271 created from cgraph_create_clone
12272 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12273 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12274 created from cgraph_create_virtual_clone
12275 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12276 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12277 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12278 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12279 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12280 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12281 created from cgraph_function_version_info
12282 (struct cgraph_function_version_info *insert_new_function_version (void)):
12283 created from insert_new_cgraph_node_version
12284 (struct cgraph_function_version_info *function_version (void)): created from
12285 get_cgraph_node_version
12286 (void analyze (void)): created from analyze_function
12287 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12288 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12289 tree real_alias) cgraph_add_thunk
12290 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12291 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12292 created from cgraph_function_or_thunk_node
12293 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12294 created from expand_thunk
12295 (void reset (void)): created from cgraph_reset_node
12296 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12297 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12298 (void remove (void)): created from cgraph_remove_node
12299 (void dump (FILE *f)): created from dump_cgraph_node
12300 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12301 (bool get_body (void)): created from cgraph_get_body
12302 (void release_body (void)): created from cgraph_release_function_body
12303 (void unnest (void)): created from cgraph_unnest_node
12304 (void make_local (void)): created from cgraph_make_node_local
12305 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12306 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12307 gcov_type count, int freq)): created from cgraph_create_edge
12308 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12309 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12310 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12311 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12312 created from cgraph_create_edge_including_clones
12313 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12314 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12315 (void remove_callers (void)): created from cgraph_node_remove_callers
12316 (void remove_callees (void)): created from cgraph_node_remove_callees
12317 (enum availability get_availability (void)): created from cgraph_function_body_availability
12318 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12319 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12320 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12321 (void call_duplication_hooks (cgraph_node *node2)): created from
12322 cgraph_call_node_duplication_hooks
12323 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12324 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12325 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12326 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12327 (void call_function_insertion_hooks (void)):
12328 created from cgraph_call_function_insertion_hooks
12329 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12330 (bool local_p (void)): created from cgraph_local_node
12331 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12332 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12333 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12334 (inline bool only_called_directly_or_aliased_p (void)):
12335 created from cgraph_only_called_directly_or_aliased_p
12336 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12337 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12338 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12339 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12340 (bool can_remove_if_no_direct_calls_p (void)):
12341 created from cgraph_can_remove_if_no_direct_calls_p
12342 (inline bool has_gimple_body_p (void)):
12343 created from cgraph_function_with_gimple_body_p
12344 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12345 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12346 (static inline void debug_cgraph (void)): created from debug_cgraph
12347 (static void record_function_versions (tree decl1, tree decl2)):
12348 created from record_function_versions
12349 (static void delete_function_version (tree decl)):
12350 created from delete_function_version
12351 (static void add_new_function (tree fndecl, bool lowered)):
12352 created from cgraph_add_new_function
12353 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12354 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12355 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12356 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12357 (static cgraph_node *get_for_asmname (tree asmname)):
12358 created from cgraph_node_for_asm
12359 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12360 created from cgraph_same_body_alias
12361 (static bool used_from_object_file_p_worker (cgraph_node *node,
12362 void *): new function
12363 (static bool non_local_p (cgraph_node *node, void *)):
12364 created from cgraph_non_local_node_p_1
12365 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12366 created from verify_cgraph
12367 (static bool make_local (cgraph_node *node, void *)):
12368 created from cgraph_make_node_local
12369 (static cgraph_node *create_alias (tree alias, tree target)):
12370 created from cgraph_create_function_alias
12371 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12372 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12373 created from cgraph_create_edge_1
12374 * cgraph.h (varpool_node):
12375 (void remove (void)): created from varpool_remove_node
12376 (void dump (FILE *f)): created from dump_varpool_node
12377
12378 2014-07-24 Richard Biener <rguenther@suse.de>
12379
12380 PR ipa/61823
12381 * tree-ssa-structalias.c (create_variable_info_for_1):
12382 Use varpool_get_constructor.
12383 (create_variable_info_for): Likewise.
12384
12385 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12386
12387 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12388 subtract outgoing area size when restoring stack_pointer_rtx.
12389
12390 2014-07-24 Nick Clifton <nickc@redhat.com>
12391
12392 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12393 that operations are taking place in parallel.
12394 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12395
12396 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12397
12398 * omp-low.c (extract_omp_for_data): Add missing break statement.
12399
12400 2014-07-24 Richard Biener <rguenther@suse.de>
12401
12402 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12403 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12404 and adjust MOVE_RATIO query accordingly.
12405 (estimate_num_insns): Adjust callers.
12406 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12407 * ipa-cp.c (gather_context_independent_values,
12408 estimate_local_effects): Likewise.
12409 * ipa-split.c (consider_split): Likewise.
12410
12411 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12412
12413 * config/i386/driver-i386.c: Remove names of unused arguments and
12414 unnecessary unused attributes.
12415 * config/i386/host-mingw32.c: Likewise.
12416 * config/i386/i386.c: Likewise.
12417 * config/i386/winnt-stubs.c: Likewise.
12418 * config/i386/winnt.c: Likewise.
12419
12420 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12421
12422 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12423 (aarch64_gen_loadwb_pair): New helper function.
12424 (aarch64_expand_epilogue): Simplify code using new helper functions.
12425 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12426
12427 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12428
12429 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12430 (aarch64_gen_storewb_pair): New helper function.
12431 (aarch64_expand_prologue): Simplify code using new helper functions.
12432 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12433
12434 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12435
12436 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12437 Rename to aarch64_save_callee_saves, remove restore code.
12438 (aarch64_restore_callee_saves): New function.
12439
12440 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12441
12442 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12443 (aarch64_save_callee_saves): New function to handle reg save
12444 for both core and vectore regs.
12445
12446 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12447
12448 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12449 (aarch64_gen_store_pair): New helper function.
12450 (aarch64_save_or_restore_callee_save_registers)
12451 (aarch64_save_or_restore_fprs): Use new helper functions.
12452
12453 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12454
12455 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12456 (aarch64_save_or_restore_callee_save_registers)
12457 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12458
12459 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12460
12461 * config/aarch64/aarch64.c
12462 (aarch64_save_or_restore_callee_save_registers)
12463 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12464
12465 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12466
12467 * config/aarch64/aarch64.c
12468 (aarch64_save_or_restore_callee_save_registers)
12469 (aarch64_save_or_restore_fprs): Remove 'increment'.
12470
12471 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12472
12473 * config/aarch64/aarch64.c
12474 (aarch64_save_or_restore_callee_save_registers)
12475 (aarch64_save_or_restore_fprs): Use register offset in
12476 cfun->machine->frame.reg_offset.
12477
12478 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12479
12480 * config/aarch64/aarch64.c
12481 (aarch64_save_or_restore_callee_save_registers)
12482 (aarch64_save_or_restore_fprs): Remove base_rtx.
12483
12484 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12485
12486 * config/aarch64/aarch64.c
12487 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12488 to 'start_offset'. Remove local variable 'start_offset'.
12489
12490 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12491
12492 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12493 type to HOST_WIDE_INT.
12494
12495 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12496
12497 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12498 (aarch64_save_or_restore_fprs)
12499 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12500
12501 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12502
12503 * config/arm/t-rtems-eabi: Add
12504 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12505 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12506 mbig-endian/mthumb/march=armv7-r, and
12507 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12508 multilibs.
12509
12510 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12511 Chris Johns <chrisj@rtems.org>
12512 Joel Sherrill <joel.sherrill@oarcorp.com>
12513
12514 * config.gcc: Add nios2-*-rtems*.
12515 * config/nios2/rtems.h: New file.
12516 * gcc/config/nios2/t-rtems: New file.
12517
12518 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12519
12520 PR target/61396
12521 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12522 constant numbers, not general constants.
12523 (rs6000_expand_vector_init): Ditto.
12524
12525 2014-07-23 Nathan Sidwell <nathan@acm.org>
12526
12527 * gcov-tool.c (gcov_list): Declare here.
12528 (set_gcov_list): Remove.
12529 (gcov_output_files): Set gcov_list directly.
12530
12531 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12532
12533 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12534
12535 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12536
12537 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12538 callee-saved registers are available for padding purpose
12539 and r3 is not mandatory, then prefer use those callee-saved
12540 instead of r3.
12541
12542 2014-07-23 Richard Biener <rguenther@suse.de>
12543
12544 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12545 * combine.c: Include statistics.h and params.h.
12546 (combine_instructions): Guard three and four insn combines
12547 with max-combine-insns value. Record statistics for combines
12548 performed.
12549 * doc/invoke.texi (max-combine-insns): Document new param.
12550
12551 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12552
12553 * graphite-isl-ast-to-gimple.c:
12554 (translate_isl_ast_node_block): New function.
12555 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12556
12557 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12558 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12559
12560 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12561
12562 * graphite-isl-ast-to-gimple.c:
12563 (get_max_schedule_dimensions): New function.
12564 (extend_schedule): Likewise.
12565 (generate_isl_schedule): Add calling of extend_schedule and
12566 get_max_schedule_dimensions.
12567
12568 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12569
12570 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12571 (case UNSPEC): Handle UNSPEC_RBIT.
12572
12573 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12574
12575 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12576 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12577
12578 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12579
12580 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12581
12582 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12583
12584 * graphite-isl-ast-to-gimple.c:
12585 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12586 (ivs_params_clear):
12587 (build_iv_mapping): New function.
12588 (translate_isl_ast_node_user): Likewise.
12589 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12590
12591 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12592 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12593 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12594
12595 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12596
12597 PR target/55701
12598 * config/arm/arm.md (setmem): New pattern.
12599 * config/arm/arm-protos.h (struct tune_params): New fields.
12600 (arm_gen_setmem): New prototype.
12601 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12602 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12603 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12604 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12605 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12606 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12607 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12608 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12609 (arm_const_inline_cost): New function.
12610 (arm_block_set_max_insns): New function.
12611 (arm_block_set_non_vect_profit_p): New function.
12612 (arm_block_set_vect_profit_p): New function.
12613 (arm_block_set_unaligned_vect): New function.
12614 (arm_block_set_aligned_vect): New function.
12615 (arm_block_set_unaligned_non_vect): New function.
12616 (arm_block_set_aligned_non_vect): New function.
12617 (arm_block_set_vect, arm_gen_setmem): New functions.
12618
12619 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12620
12621 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12622
12623 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
12624
12625 PR target/61855
12626 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12627 out of #ifdef __OPTIMIZE__.
12628
12629 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12630
12631 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12632 different trapping status if -fnon-call-exceptions is enabled.
12633
12634 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12635
12636 * expr.c (store_field): Handle VOIDmode for calls that return values
12637 in multiple locations.
12638
12639 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12640
12641 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
12642 (altivec_vsldoi_<mode>): Likewise.
12643
12644 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12645
12646 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12647 to the number of characters in the line.
12648
12649 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12650
12651 * graphite-isl-ast-to-gimple.c: Add using of
12652 build_nonstandard_integer_type instead of int128_integer_type_node.
12653
12654 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
12655
12656 * toplev.c (output_stack_usage): Adjust the location of the warning.
12657
12658 2014-07-19 Daniel Cederman <cederman@gaisler.com>
12659
12660 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12661 (*membar_storeload): Disable for LEON3.
12662
12663 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12664
12665 PR rtl-optimization/61461
12666 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12667
12668 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
12669
12670 PR target/61794
12671 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12672 Fix instruction constraint.
12673 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12674
12675 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
12676
12677 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12678
12679 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
12680
12681 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12682 GNU coding standards.
12683 (nds32_register_move_cost): Likewise.
12684 (nds32_memory_move_cost): Likewise.
12685 (nds32_address_cost): Likewise.
12686
12687 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12688
12689 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12690
12691 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
12692
12693 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12694 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12695 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12696 (HAVE_sync_compare_and_swapqi): Define.
12697 (HAVE_sync_compare_and_swaphi): Likewise.
12698 (HAVE_sync_compare_and_swapsi): Likewise.
12699
12700 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
12701
12702 * config/mips/p5600.md: Add missing cpu tests.
12703
12704 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12705
12706 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12707 (vmla_f64): Likewise.
12708 (vfms_f64): Likewise.
12709 (vmls_f64): Likewise.
12710
12711 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12712
12713 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12714 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12715
12716 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12717
12718 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12719 (vmlal_high_lane_s32): Likewise.
12720 (vmlal_high_lane_u16): Likewise.
12721 (vmlal_high_lane_u32): Likewise.
12722 (vmlsl_high_lane_s16): Likewise.
12723 (vmlsl_high_lane_s32): Likewise.
12724 (vmlsl_high_lane_u16): Likewise.
12725 (vmlsl_high_lane_u32): Likewise.
12726
12727 2014-07-17 Terry Guo <terry.guo@arm.com>
12728
12729 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12730 (alus_reg): Renamed to alus_sreg.
12731 * config/arm/arm-fixed.md: Change type of non-dsp instructions
12732 from alu_reg to alu_sreg. Change type of dsp instructions from
12733 alu_reg to alu_dsp_reg.
12734 * config/arm/thumb1.md: Likewise.
12735 * config/arm/thumb2.md: Likewise.
12736 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12737 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12738 with alu_sreg and alus_sreg.
12739 * config/arm/arm1026ejs.md (alu_op): Likewise.
12740 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12741 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12742 * config/arm/fa526.md (526_alu_op): Likewise.
12743 * config/arm/fa606te.md (606te_alu_op): Likewise.
12744 * config/arm/fa626te.md (626te_alu_op): Likewise.
12745 * config/arm/fa726te.md (726te_alu_op): Likewise.
12746 * config/arm/fmp626.md (mp626_alu_op): Likewise.
12747 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12748 alu_sreg, alu_dsp_reg and alus_sreg.
12749 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12750 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12751 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12752 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12753 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12754 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12755 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12756 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12757 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12758 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12759 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12760 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12761 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12762 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12763 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12764 alus_reg to alus_sreg.
12765
12766 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
12767
12768 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12769 infinity format.
12770
12771 2014-07-17 Richard Biener <rguenther@suse.de>
12772
12773 PR rtl-optimization/61801
12774 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12775 don't set reg_pending_barrier if it appears in a debug-insn.
12776
12777 2014-07-16 DJ Delorie <dj@redhat.com>
12778
12779 * config/rx/rx.c (rx_option_override): Fix alignment values.
12780 (rx_align_for_label): Likewise.
12781
12782 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
12783
12784 PR target/61737.
12785 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12786 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12787 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12788 functions.
12789 (cris_print_index, cris_print_operand, cris_constant_index_p)
12790 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12791 (cris_address_cost): Ditto last CONSTANT_P.
12792 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
12793 callers changed. Yield cris_offsettable_symbol for non-PIC
12794 constant symbolic expressions including labels. Yield cris_unspec
12795 for all unspecs.
12796 (cris_expand_pic_call_address): New parameter MARKERP. Set its
12797 target to pic_offset_table_rtx for calls that will likely go
12798 through PLT, const0_rtx when they can't. All callers changed.
12799 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12800 symbolic expressions to be PICified. Remove second, redundant,
12801 assert on can_create_pseudo_p returning non-zero. Use
12802 replace_equiv_address_nv, not replace_equiv_address, for final
12803 operand update.
12804 * config/cris/cris.md ("movsi"): Move variable t to pattern
12805 toplevel. Adjust assert for new cris_symbol_type member. Use
12806 CONSTANT_P instead of CONSTANT_ADDRESS_P.
12807 ("*movsi_internal") <case 9>: Make check for valid unspec operands
12808 for lapc stricter.
12809 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12810 ("call", "call_value"): Use second incoming operand as a marker
12811 for pic-offset-table-register being used.
12812 ("*expanded_call_non_v32", "*expanded_call_v32")
12813 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12814 second incoming operand to CALL, match cris_call_type_marker.
12815 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
12816 ("*expanded_call_side"): Ditto. Fix typo in comment.
12817 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12818 CONSTANT_P.
12819 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12820 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12821 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
12822 users changed. Add members cris_offsettable_symbol and cris_unspec.
12823 (cris_symbol_type): Rename from cris_pic_symbol_type.
12824 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12825 just CONSTANT_P.
12826 * config/cris/cris-protos.h (cris_symbol_type_of,
12827 cris_expand_pic_call_address): Adjust prototypes.
12828 (cris_legitimate_constant_p): New prototype.
12829
12830 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12831 an existing tmake_file. Don't add t-slibgcc and t-linux.
12832
12833 2014-07-17 Jason Merrill <jason@redhat.com>
12834
12835 PR c++/61623
12836 * symtab.c (symtab_remove_from_same_comdat_group): Also
12837 set_comdat_group to NULL_TREE.
12838 (verify_symtab): Fix diagnostic.
12839
12840 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
12841
12842 PR target/61662
12843 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12844
12845 2014-07-16 Dodji Seketeli <dodji@redhat.com>
12846
12847 Support location tracking for built-in macro tokens
12848 * input.h (is_location_from_builtin_token): New function declaration.
12849 * input.c (is_location_from_builtin_token): New function definition.
12850 * toplev.c (general_init): Tell libcpp what the pre-defined
12851 spelling location for built-in tokens is.
12852
12853 2014-07-16 Jakub Jelinek <jakub@redhat.com>
12854
12855 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12856 on the FUNCTION_DECL.
12857
12858 2014-07-16 Richard Biener <rguenther@suse.de>
12859
12860 PR other/61782
12861 * doc/extend.texi (always_inline): Clarify.
12862
12863 2014-07-15 Eric Christopher <echristo@gmail.com>
12864
12865 * doc/invoke.texi (Link Options): Document -z option.
12866
12867 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
12868
12869 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12870 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12871
12872 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
12873
12874 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12875
12876 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
12877
12878 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12879 varpool_assemble_decl.
12880 * varpool.c (varpool_assemble_decl): Assert that node->definition is
12881 true.
12882
12883 2014-07-15 Michael Matz <matz@suse.de>
12884
12885 PR rtl-optimization/61772
12886 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12887
12888 2014-07-15 Richard Biener <rguenther@suse.de>
12889
12890 * opts.c (default_options_table): Disable bit-ccp at -Og.
12891
12892 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12893
12894 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12895
12896 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12897
12898 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12899 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12900 call langhook for unknown declaration.
12901 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12902 * tree.h (DECL_ARGUMENTS): Update.
12903 * print-tree.c (print_node): Update.
12904 * tree-core.h (tree_decl_non_common): Remove arguments.
12905 (tree_function_decl): Add arguments.
12906
12907 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
12908
12909 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12910
12911 2014-07-14 Richard Biener <rguenther@suse.de>
12912
12913 PR tree-optimization/61779
12914 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12915 simplifying a condition.
12916
12917 2014-07-14 Richard Biener <rguenther@suse.de>
12918
12919 * builtins.c (c_strlen): Make only_value == 2 really only
12920 affect warning generation.
12921
12922 2014-07-14 Richard Biener <rguenther@suse.de>
12923
12924 PR tree-optimization/61757
12925 PR tree-optimization/61783
12926 PR tree-optimization/61787
12927 * tree-ssa-dom.c (record_equality): Revert canonicalization
12928 change and add comment.
12929 (propagate_rhs_into_lhs): Revert previous fix, removing
12930 loop depth restriction again.
12931
12932 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12933
12934 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
12935 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12936 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12937 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
12938 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12939 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12940 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12941
12942 2014-07-14 Richard Biener <rguenther@suse.de>
12943
12944 * cgraph.h (decl_in_symtab_p): Make inline.
12945
12946 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12947
12948 PR middle-end/61294
12949 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12950
12951 PR target/61656
12952 * config/i386/i386.c (classify_argument): Don't merge classes above
12953 number of words.
12954
12955 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12956
12957 * cgraph.h (symtab_node): Add nonzero_address.
12958 (decl_in_symtab_p): Break out from ...
12959 (symtab_get_node): ... here.
12960 * fold-const.c: Include cgraph.h
12961 (tree_single_nonzero_warnv_p): Use symtab to determine
12962 if symbol is non-zero.
12963 * symtab.c (symtab_node::nonzero_address): New method.
12964
12965 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12966
12967 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12968 forgotten in previous commit.
12969
12970 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12971
12972 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12973 on builtin types.
12974 * ipa-devirt.c: Include stor-layout.h and intl.h
12975 (odr_subtypes_equivalent_p): New function.
12976 (warn_odr): New function.
12977 (warn_type_mismatch): New function.
12978 (odr_types_equivalent_p): New function.
12979 (add_type_duplicate): Use it.
12980 * common.opt (Wodr): New flag.
12981 * doc/invoke.texi (Wodr): Document new warning.
12982
12983 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12984
12985 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12986 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12987 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
12988 (varpool_get_constructor): Push CTORS_IN timevar.
12989 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
12990
12991 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
12992
12993 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
12994 Remove VOID_FTYPE_PUSHORT.
12995 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
12996 Change code to USHORT_FTYPE_VOID.
12997 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
12998 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
12999 (ix86_atomic_assign_expand_fenv): Update for
13000 __builtin_ia32_fnstsw changes.
13001 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13002 (fnstsw): Change operand 0 to nonimmediate operand.
13003
13004 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13005
13006 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13007 (varpool_get_constructor): New function.
13008 (varpool_ctor_useable_for_folding_p): Break out from ...
13009 (ctor_for_folding): ... here; use varpool_get_constructor.
13010 (varpool_assemble_decl): Likewise.
13011 * lto-streamer.h (struct output_block): Turn cgraph_node
13012 to symbol filed.
13013 (lto_input_variable_constructor): Declare.
13014 * ipa-visibility.c (function_and_variable_visibility): Use
13015 varpool_get_constructor.
13016 * cgraph.h (varpool_get_constructor): Declare.
13017 (varpool_ctor_useable_for_folding_p): New function.
13018 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13019 parameter; return error_mark_node for non-trivial constructors.
13020 (lto_write_tree_1, DFS_write_tree): Update use of
13021 get_symbol_initial_value.
13022 (output_function): Update initialization of symbol.
13023 (output_constructor): New function.
13024 (copy_function): Rename to ..
13025 (copy_function_or_variable): ... this one; handle vars too.
13026 (lto_output): Output variable sections.
13027 * lto-streamer-in.c (input_constructor): New function.
13028 (lto_read_body): Rename from ...
13029 (lto_read_body_or_constructor): ... this one; handle vars too.
13030 (lto_input_variable_constructor): New function.
13031 * ipa-prop.c (ipa_prop_write_jump_functions,
13032 ipa_prop_write_all_agg_replacement): Update.
13033 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13034 (output_cgraph_opt_summary): Set symbol to NULL.
13035
13036 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13037
13038 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13039 non-polymorphic types.
13040 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13041 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13042 of types is not polymorphic.
13043
13044 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13045
13046 * lra-constraints.c (remove_inheritance_pseudos): Process
13047 destination pseudo too.
13048
13049 2014-07-11 Rong Xu <xur@google.com>
13050
13051 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13052 commit r212448.
13053
13054 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13055
13056 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13057 * config/avr/avr-devices.c (AVR_MCU): Same.
13058 (avr_mcu_types): add text start value to end of device list.
13059 * config/avr/avr-mcus.def: Add text section start for all devices.
13060 (ata5782): Add new avr5 device.
13061 (ata5831): Same.
13062 * config/avr/avr-tables.opt: Regenerate.
13063 * config/avr/avr.h: Add declaration for text section start handler.
13064 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13065 SPEC functions.
13066 (LINK_SPEC): Include text section start handler to linker spec.
13067 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13068 pass -Ttext option to linker if the text section start for the device
13069 is not zero.
13070 * config/avr/t-multilib: Regenerate.
13071 * doc/avr-mmcu.texi: Regenerate.
13072
13073 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13074
13075 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13076 * config/rs6000/aix52.h (LINK_SPEC): Same.
13077 * config/rs6000/aix53.h (LINK_SPEC): Same.
13078 * config/rs6000/aix61.h (LINK_SPEC): Same.
13079 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13080
13081 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13082
13083 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13084 (graphite_verify): New function.
13085 (ivs_params_clear): New function.
13086 (gcc_expression_from_isl_ast_expr_id): New function.
13087 (gcc_expression_from_isl_expr_int): New function.
13088 (binary_op_to_tree): New function.
13089 (ternary_op_to_tree): New function.
13090 (unary_op_to_tree): New function.
13091 (nary_op_to_tree): New function.
13092 (gcc_expression_from_isl_expr_op): New function.
13093 (gcc_expression_from_isl_expression): New function.
13094 (graphite_create_new_loop): New function.
13095 (translate_isl_ast_for_loop): New function.
13096 (get_upper_bound): New function.
13097 (graphite_create_new_loop_guard): New function.
13098 (translate_isl_ast_node_for): New function.
13099 (translate_isl_ast): New function.
13100 (add_parameters_to_ivs_params): New function.
13101 (scop_to_isl_ast): New parameter ip.
13102 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13103
13104 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13105
13106 * config/xtensa/predicates.md (call expander): Update for
13107 DECL_SECTION_NAME being string.
13108
13109 2014-07-11 Richard Biener <rguenther@suse.de>
13110
13111 PR middle-end/61473
13112 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13113 can be implemented with a single load followed by a single store.
13114 (c_strlen): Only warn when only_value is not 2.
13115
13116 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13117
13118 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13119
13120 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13121
13122 PR target/61561
13123 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13124 (*movhi_bytes): Likewise.
13125 (*arm_movqi_insn): Likewise.
13126
13127 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13128
13129 PR target/56858
13130 * config/alpha/alpha.c: Include tree-pass.h, context.h
13131 and pass_manager.h.
13132 (pass_data_handle_trap_shadows): New pass.
13133 (pass_handle_trap_shadows::gate): New pass gate function.
13134 (make_pass_handle_trap_shadows): New function.
13135 (rest_of_handle_trap_shadows): Ditto.
13136
13137 (alpha_align_insns_1): Rename from alpha_align_insns.
13138 (pass_data_align_insns): New pass.
13139 (pass_align_insns::gate): New pass gate function.
13140 (make_pass_aling_insns): New function.
13141 (rest_of_align_insns): Ditto.
13142 (alpha_align_insns): Ditto.
13143
13144 (alpha_option_override): Declare handle_trap_shadows info
13145 and align_insns_info. Register handle_trap_shadows and align_insns
13146 passes here.
13147 (alpha_reorg): Do not call alpha_trap_shadows and
13148 alpha_align_insn from here.
13149
13150 (alpha_pad_function_end): Do not skip BARRIERs.
13151
13152 2014-07-10 Rong Xu <xur@google.com>
13153
13154 Add gcov-tool: an offline gcda profile processing tool support.
13155 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13156 (gcov_is_error): Ditto.
13157 (gcov_read_string): Ditto.
13158 (gcov_read_sync): Ditto.
13159 * gcov-io.h: Move counter defines to gcov-counter.def.
13160 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13161 * coverage.c: Ditto.
13162 * gcov-tool.c: Offline gcda profile processing tool.
13163 (unlink_gcda_file): Remove one gcda file.
13164 (unlink_profile_dir): Remove gcda files from the profile path.
13165 (gcov_output_files): Output gcda files to an output dir.
13166 (profile_merge): Merge two profiles in directory.
13167 (print_merge_usage_message): Print merge usage.
13168 (merge_usage): Print merge usage and exit.
13169 (do_merge): Driver for profile merge sub-command.
13170 (profile_rewrite): Rewrite profile.
13171 (print_rewrite_usage_message): Print rewrite usage.
13172 (rewrite_usage): Print rewrite usage and exit.
13173 (do_rewrite): Driver for profile rewrite sub-command.
13174 (print_usage): Print gcov-info usage and exit.
13175 (print_version): Print gcov-info version.
13176 (process_args): Process arguments.
13177 (main): Main routine for gcov-tool.
13178 * Makefile.in: Build and install gcov-tool.
13179 * gcov-counter.def: New file split from gcov-io.h.
13180 * doc/gcc.texi: Include gcov-tool.texi.
13181 * doc/gcov-tool.texi: Document for gcov-tool.
13182
13183 2014-07-10 Richard Biener <rguenther@suse.de>
13184
13185 PR tree-optimization/61757
13186 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13187 (propagate_rhs_into_lhs): Revert part of last change.
13188
13189 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13190
13191 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13192 FUNCTION_DECLs.
13193
13194 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13195
13196 PR middle-end/53590
13197 * function.c (allocate_struct_function): Revert r188667 change.
13198
13199 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13200
13201 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13202
13203 * doc/install.texi: Remove links to defunct package providers for
13204 Solaris.
13205
13206 2014-07-09 Tom de Vries <tom@codesourcery.com>
13207
13208 * final.c (get_call_fndecl): Declare.
13209 (self_recursive_call_p): New function.
13210 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13211
13212 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13213
13214 * ipa-devirt.c (record_node): Walk through aliases.
13215
13216 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13217
13218 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13219
13220 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13221
13222 Revert:
13223 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13224
13225 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13226
13227 * ipa-visibility.c (function_and_variable_visibility): Remove
13228 temporary hack disabling local aliases on AIX.
13229
13230 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13231
13232 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13233 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13234
13235 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13236
13237 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13238 * rs6000/rs6000.c: Inline output of .set instruction.
13239 (declare_alias_data): New struct.
13240 (rs6000_declare_alias): New function.
13241 (rs6000_xcoff_declare_function_name): Use it.
13242 (rs6000_xcoff_declare_object_name): New function.
13243 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13244 (ASM_OUTPUT_DEF): Turn to empty definition.
13245
13246 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13247
13248 PR bootstrap/61679
13249 * hash-table.h: use hash_table::value_type instead of
13250 Descriptor::value_type in the return types of several methods.
13251
13252 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13253
13254 * tree-pass.h (pass_data): Remove has_execute member.
13255 * passes.c (execute_one_pass): Don't check pass->has_execute.
13256 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13257 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13258 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13259 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13260 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13261 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13262 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13263 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13264 gimple-low.c, gimple-ssa-isolate-paths.c,
13265 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13266 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13267 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13268 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13269 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13270 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13271 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13272 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13273 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13274 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13275 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13276 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13277 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13278 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13279 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13280 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13281 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13282 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13283 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13284 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13285 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13286 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13287 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13288 web.c: Remove initializer for pass_data::has_execute.
13289
13290 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13291
13292 * graphite-htab.h: Use hash_map instead of hash_table.
13293 * graphite-clast-to-gimple.c: Adjust.
13294 * passes.c: Use hash_map instead of hash_table.
13295 * sese.c: Likewise.
13296 * sese.h: Remove now unused code.
13297
13298 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13299
13300 PR target/61599
13301 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13302 than zero.
13303
13304 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13305
13306 PR rtl-optimization/61673
13307 * combine.c (simplify_comparison): Test just mode's sign bit
13308 in tmode rather than the sign bit and any bits above it.
13309
13310 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13311
13312 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13313 Add __isl_give to the declaration.
13314 (generate_isl_schedule): Likewise.
13315 (scop_to_isl_ast): Likewise.
13316
13317 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13318
13319 * config/arm/arm.c (cortexa5_extra_costs): New table.
13320 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13321
13322 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13323
13324 PR tree-optimization/61725
13325 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13326 range, use range_includes_zerop_p instead of integer_zerop on
13327 vr0->min, only use log2 of max if min is not negative.
13328
13329 2014-07-08 Richard Biener <rguenther@suse.de>
13330
13331 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13332 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13333 restriction on loop depth difference.
13334 (record_equality): Likewise.
13335 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13336 (loop_depth_of_name): Remove.
13337 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13338 restriction on loop depth difference.
13339 (init_copy_prop): Likewise.
13340
13341 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13342
13343 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13344 parameter.
13345 (walk_aliased_vdefs): Likewise.
13346 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13347 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13348 (detect_type_change_from_memory_writes): Check if entry was reached.
13349
13350 2014-07-08 Richard Biener <rguenther@suse.de>
13351
13352 PR tree-optimization/61681
13353 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13354 NONLOCAL inside ESCAPED.
13355
13356 2014-07-08 Richard Biener <rguenther@suse.de>
13357
13358 PR tree-optimization/61680
13359 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13360 Handle properly all read-write dependences with group accesses.
13361
13362 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13363
13364 PR tree-optimization/61576
13365 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13366 block containing reduction statement is predecessor of phi basi block.
13367
13368 2014-07-08 Marek Polacek <polacek@redhat.com>
13369
13370 PR c/60226
13371 * fold-const.c (round_up_loc): Change the parameter type.
13372 Remove assert.
13373 * fold-const.h (round_up_loc): Adjust declaration.
13374 * stor-layout.c (finalize_record_size): Check for too large types.
13375
13376 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13377
13378 * symtab.c: Include calls.h.
13379 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13380
13381 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13382
13383 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13384 little-endian code generation.
13385 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13386 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13387 (spe_evmergehilo): Rename to...
13388 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13389 (spe_evmergelo): Rename to...
13390 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13391 (spe_evmergelohi): Rename to...
13392 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13393 (spe_evmergehi, spe_evmergehilo): New expanders.
13394 (spe_evmergelo, spe_evmergelohi): Likewise.
13395 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13396 (*frob_tf_ti): Likewise.
13397 (*frob_<mode>_di_2): Likewise.
13398 (*frob_tf_di_8_2): Likewise.
13399 (*frob_di_<mode>): Likewise.
13400 (*frob_ti_tf): Likewise.
13401 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13402 (*frob_ti_<mode>_8_2): Likewise.
13403 (*frob_ti_tf_2): Likewise.
13404 (mov_si<mode>_e500_subreg0): Rename to...
13405 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13406 endianness only.
13407 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13408 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13409 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13410 the big endianness only.
13411 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13412 (*mov_si<mode>_e500_subreg0_2): Rename to...
13413 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13414 big big endianness only.
13415 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13416 (*mov_si<mode>_e500_subreg4): Rename to...
13417 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13418 endianness only.
13419 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13420 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13421 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13422 the big endianness only.
13423 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13424 pattern.
13425 (*mov_si<mode>_e500_subreg4_2): Rename to...
13426 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13427 endianness only.
13428 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13429 (*mov_sitf_e500_subreg8): Rename to...
13430 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13431 endianness only.
13432 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13433 (*mov_sitf_e500_subreg8_2): Rename to...
13434 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13435 endianness only.
13436 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13437 (*mov_sitf_e500_subreg12): Rename to...
13438 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13439 endianness only.
13440 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13441 (*mov_sitf_e500_subreg12_2): Rename to...
13442 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13443 endianness only.
13444 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13445
13446 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13447
13448 * asan.c (instrument_strlen_call): Do not instrument first byte
13449 in strlen if already instrumented.
13450
13451 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13452
13453 * config/arm/arm.opt (mwords-little-endian): Delete.
13454 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13455 of TARGET_LITTLE_WORDS.
13456 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13457 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13458 warning.
13459 * doc/invoke.texi: Remove references to -mwords-little-endian.
13460
13461 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13462
13463 * expmed.c (struct init_expmed_rtl): Change all fields but
13464 pow2 and cint from struct rtx_def to rtx.
13465 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13466 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13467 at the end again.
13468
13469 2014-07-06 Marek Polacek <polacek@redhat.com>
13470
13471 PR c/6940
13472 * doc/invoke.texi: Document -Wsizeof-array-argument.
13473
13474 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13475
13476 * wide-int.h (wide_int_storage): Change declaration from struct
13477 to class.
13478
13479 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13480
13481 * cgraph.c (cgraph_create_indirect_edge): Update call of
13482 get_polymorphic_call_info.
13483 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13484 (possible_polymorphic_call_targets): Add parameter call.
13485 (decl_maybe_in_construction_p): New predicate.
13486 (get_polymorphic_call_info): Add parameter call;
13487 use decl_maybe_in_construction_p.
13488 * gimple-fold.c (fold_gimple_assign): Update use of
13489 possible_polymorphic_call_targets.
13490 (gimple_fold_call): Likewise.
13491 * ipa-prop.c: Inlcude calls.h
13492 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13493 (param_type_may_change_p): New predicate.
13494 (detect_type_change_from_memory_writes): Break out from ...
13495 (detect_type_change): ... this one; use param_type_may_change_p.
13496 (detect_type_change_ssa): Use param_type_may_change_p.
13497 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13498
13499 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13500
13501 PR target/49423
13502 * config/arm/arm-protos.h (arm_legitimate_address_p,
13503 arm_is_constant_pool_ref): Add prototypes.
13504 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13505 (arm_is_constant_pool_ref) New function.
13506 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13507 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13508 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13509 operand. Remove pool_range and neg_pool_range attributes.
13510 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13511 pool_range and neg_pool_range attributes.
13512 * config/arm/constraints.md (Uh): New constraint.
13513 (Uq): Don't allow constant pool references.
13514
13515 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13516
13517 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13518 (move_lo_quad_internal_be_<mode>): Likewise.
13519 (move_lo_quad_<mode>): Convert to define_expand.
13520 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13521 (aarch64_simd_move_hi_quad_be_<mode>): New.
13522 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13523 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13524 (aarch64_combinez_be<mode>): New.
13525 (aarch64_combine<mode>): Convert to define_expand.
13526 (aarch64_combine_internal<mode>): New.
13527 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13528
13529 2014-07-04 Tom de Vries <tom@codesourcery.com>
13530
13531 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13532 combination of earlyclobber and read/write modifiers.
13533
13534 2014-07-04 Tom de Vries <tom@codesourcery.com>
13535
13536 * config/aarch64/aarch64-simd.md
13537 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13538
13539 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13540
13541 PR target/61714
13542 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13543
13544 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13545
13546 PR middle-end/61654
13547 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13548
13549 PR tree-optimization/61684
13550 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13551 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13552
13553 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13554 Kito Cheng <kito@0xlab.org>
13555 Monk Chiang <sh.chiang04@gmail.com>
13556
13557 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13558 (nds32_symbol_load_store_p): Move to ...
13559 (nds32_fp_as_gp_check_available): Move to ...
13560 * config/nds32/nds32-fp-as-gp.c: ... here.
13561 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13562 extern declaration.
13563
13564 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13565 Kito Cheng <kito@0xlab.org>
13566 Monk Chiang <sh.chiang04@gmail.com>
13567
13568 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13569 (nds32_expand_store_multiple): Move to ...
13570 (nds32_expand_movmemqi): Move to ...
13571 * config/nds32/nds32-memory-manipulation.c: ... here.
13572
13573 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13574 Kito Cheng <kito@0xlab.org>
13575 Monk Chiang <sh.chiang04@gmail.com>
13576
13577 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13578 (nds32_output_casesi_pc_relative): Move to ...
13579 (nds32_output_casesi): Move to ...
13580 (nds32_mem_format): Move to ...
13581 (nds32_output_16bit_store): Move to ...
13582 (nds32_output_16bit_load): Move to ...
13583 (nds32_output_32bit_store): Move to ...
13584 (nds32_output_32bit_load): Move to ...
13585 (nds32_output_32bit_load_s): Move to ...
13586 (nds32_output_stack_push): Move to ...
13587 (nds32_output_stack_pop): Move to ...
13588 * config/nds32/nds32-md-auxiliary.c: ... here.
13589
13590 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13591 Ling-Hua Tseng <uranus@tinlans.org>
13592
13593 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13594 the purpose of this file.
13595
13596 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13597 Kito Cheng <kito@0xlab.org>
13598 Monk Chiang <sh.chiang04@gmail.com>
13599
13600 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13601 (nds32_address_cost): Move implementation to ...
13602 * config/nds32/nds32-cost.c: ... here.
13603 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13604 (nds32_address_cost_impl): Declare.
13605
13606 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13607 Kito Cheng <kito@0xlab.org>
13608 Monk Chiang <sh.chiang04@gmail.com>
13609
13610 * config/nds32/nds32.c
13611 (nds32_consecutive_registers_load_store_p): Move to ...
13612 (nds32_valid_multiple_load_store): Move to ...
13613 (nds32_valid_stack_push_pop): Move to ...
13614 (nds32_can_use_bclr_p): Move to ...
13615 (nds32_can_use_bset_p): Move to ...
13616 (nds32_can_use_btgl_p): Move to ...
13617 (nds32_can_use_bitci_p): Move to ...
13618 * config/nds32/nds32-predicates.c: ... here.
13619
13620 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13621 Kito Cheng <kito@0xlab.org>
13622 Monk Chiang <sh.chiang04@gmail.com>
13623
13624 * config/nds32/nds32.c
13625 (nds32_expand_builtin_null_ftype_reg): Move to ...
13626 (nds32_expand_builtin_reg_ftype_imm): Move to ...
13627 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13628 (nds32_init_builtins): Move implementation to ...
13629 (nds32_expand_builtin): Move implementation to ...
13630 * config/nds32/nds32-intrinsic.c: ... here.
13631 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13632 (nds32_expand_builtin_impl): Declare.
13633
13634 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13635 Kito Cheng <kito@0xlab.org>
13636 Monk Chiang <sh.chiang04@gmail.com>
13637
13638 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13639 (nds32_emit_section_tail_template): Move to ...
13640 (nds32_emit_isr_jmptbl_section): Move to ...
13641 (nds32_emit_isr_vector_section): Move to ...
13642 (nds32_emit_isr_reset_conten): Move to ...
13643 (nds32_check_isr_attrs_conflict): Move to ...
13644 (nds32_construct_isr_vectors_information): Move to ...
13645 (nds32_asm_file_start): Move implementation to ...
13646 (nds32_asm_file_end): Move implementation to ...
13647 * config/nds32/nds32-isr.c: ... here.
13648 * config/nds32/nds32-protos.h
13649 (nds32_check_isr_attrs_conflict): Declare.
13650 (nds32_construct_isr_vectors_information): Declare.
13651 (nds32_asm_file_start_for_isr): Declare.
13652 (nds32_asm_file_end_for_isr): Declare.
13653
13654 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13655 Kito Cheng <kito@0xlab.org>
13656 Monk Chiang <sh.chiang04@gmail.com>
13657
13658 * config.gcc (nds32*): Add new modules to extra_objs.
13659 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13660 (nds32be-*-*): Likewise.
13661 * config/nds32/nds32-cost.c: New file.
13662 * config/nds32/nds32-fp-as-gp.c: New file.
13663 * config/nds32/nds32-intrinsic.c: New file.
13664 * config/nds32/nds32-isr.c: New file.
13665 * config/nds32/nds32-md-auxiliary.c: New file.
13666 * config/nds32/nds32-memory-manipulation.c: New file.
13667 * config/nds32/nds32-pipelines-auxiliary.c: New file.
13668 * config/nds32/nds32-predicates.c: New file.
13669 * config/nds32/t-nds32: New file.
13670
13671 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13672
13673 PR tree-optimization/61682
13674 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13675 using cases and when one of the operands is equal to 1.
13676
13677 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
13678
13679 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13680 ashr<mode>3): Correct mode of operands[2].
13681 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13682 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13683 Correct mode of operands[2]. Fix split condition.
13684
13685 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
13686
13687 * arm.md (arch): Add armv6_or_vfpv3.
13688 (arch_enabled): Add test for the above.
13689 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13690 on VFP9.
13691 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13692
13693 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13694
13695 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13696 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13697 HWI 1 and negate the unsigned value.
13698 * expmed.c (expand_sdiv_pow2): For modes wider than word always
13699 use AND instead of shift.
13700 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13701
13702 2014-07-03 Marek Polacek <polacek@redhat.com>
13703
13704 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13705 (-fsanitize=float-divide-by-zero): Move to the table with
13706 -fsanitize=undefined suboptions.
13707 (-fsanitize=float-cast-overflow): Likewise.
13708
13709 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
13710
13711 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13712 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13713 endianness.
13714
13715 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13716
13717 * loop-invariant.c (struct invariant): Add a new member: eqno;
13718 (find_identical_invariants): Update eqno;
13719 (create_new_invariant): Init eqno;
13720 (get_inv_cost): Compute comp_cost with eqno;
13721
13722 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13723
13724 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13725 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13726 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13727 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13728 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13729
13730 2014-07-02 Christian Bruel <christian.bruel@st.com>
13731
13732 PR target/29349
13733 PR target/53513
13734 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13735 (make_preds_opaque): Delete.
13736 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13737 (commit_mode_sets): New function.
13738 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13739 Process all modes at once.
13740 * basic-block.h (pre_edge_lcm_avs): Declare.
13741 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13742 Call clear_aux_for_edges. Fix comments.
13743 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13744 (pre_edge_rev_lcm): Idem.
13745 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13746 parameter.
13747 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13748 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13749 Idem.
13750 * config/i386/i386.c (x96_emit_mode_set): Idem.
13751 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13752 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
13753 (fpscr_toggle) Disallow from delay slot.
13754 * target.def (emit_mode_set): Add prev_mode parameter.
13755 * doc/tm.texi: Regenerate.
13756
13757 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13758
13759 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13760 variable i.
13761
13762 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13763
13764 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13765 vtable_pointer_value_to_vtable): Constify.
13766 (contains_polymorphic_type_p): Declare.
13767 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13768 vtable_pointer_value_to_vtable): Constify.
13769 (contains_polymorphic_type_p): New predicate.
13770 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13771 polymorphic types.
13772 (ipa_set_ancestor_jf): Likewise.
13773 (detect_type_change): Return false in easy cases.
13774 (compute_complex_assign_jump_func): Require type to contain
13775 polymorphic type.
13776 (compute_known_type_jump_func): Likewise.
13777
13778 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13779
13780 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13781 Remove.
13782 (type_in_anonymous_namespace_p): Constify argument.
13783 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13784 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13785 (main_odr_variant): New function.
13786 (hash_type_name): Make static; update assert; do not ICE on
13787 non-records.
13788 (types_same_for_odr): Bring here from tree.c; simplify and remove
13789 old structural comparing code that doesn't work for templates.
13790 (odr_hasher::equal): Update assert.
13791 (add_type_duplicate): Return true when bases should be computed;
13792 replace incomplete loader by complete; do not output duplicated
13793 warnings; do not ICE on non-records; set odr_violated flag.
13794 (get_odr_type): Be ready to replace incomplete type by complete
13795 one; work on ODR variants instead of main variants; reorder item
13796 in array so bases have still smaller indexes.
13797 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13798 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13799
13800 2014-07-01 Cary Coutant <ccoutant@google.com>
13801
13802 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13803 lookup.
13804 (resolve_addr_in_expr): When replacing the rtx in a location list
13805 entry, get a new address table entry.
13806 (dwarf2out_finish): Call index_location_lists even if there are no
13807 addr_index_table entries yet.
13808
13809 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13810
13811 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13812 change for not being obvious.
13813
13814 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13815
13816 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13817 unused argument.
13818
13819 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13820
13821 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13822 (vcagt_f64): Likewise.
13823 (vcale_f64): Likewise.
13824 (vcaled_f64): Likewise.
13825 (vcales_f32): Likewise.
13826 (vcalt_f64): Likewise.
13827 (vcaltd_f64): Likewise.
13828 (vcalts_f32): Likewise.
13829
13830 2014-07-01 Marek Polacek <polacek@redhat.com>
13831
13832 * doc/invoke.texi: Document -Wint-conversion.
13833
13834 2014-07-01 Marek Polacek <polacek@redhat.com>
13835
13836 PR c/58286
13837 * doc/invoke.texi: Document -Wincompatible-pointer-types.
13838
13839 2014-07-01 Martin Liska <mliska@suse.cz>
13840
13841 IPA REF alias refactoring
13842 * cgraph.h (iterate_direct_aliases): New function.
13843 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13844 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13845 FOR_EACH_ALIAS added.
13846 (cgraph_for_node_and_aliases): Likewise.
13847 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13848 * ipa-inline.c (reset_edge_caches): Likewise.
13849 (update_caller_keys): Likewise.
13850 * trans-mem.c (ipa_tm_execute): Likewise.
13851 *varpool.c (varpool_analyze_node): Likewise.
13852 (varpool_for_node_and_aliases): Likewise.
13853 * ipa-ref.h (first_alias): New function.
13854 (last_alias): Likewise.
13855 (has_aliases_p): Likewise.
13856 * ipa-ref.c (ipa_ref::remove_reference): Removal function
13857 is sensitive to IPA_REF_ALIASes.
13858 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13859 are put at the beginning of the list.
13860 (symtab_node::iterate_direct_aliases): New function.
13861
13862 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13863
13864 Revert:
13865 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13866 type is complete.
13867 (write_ts_type_common_tree_pointers): Do not stream fields not set
13868 for incomplete types; do not stream duplicated fields for variants;
13869 sanity check that variant and type match.
13870 (write_ts_type_non_common_tree_pointers): Likewise.
13871 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13872 TYPE_SIZE whether type is complete.
13873 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13874 write_ts_type_common_tree_pointers
13875 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13876
13877 2014-06-30 Joseph Myers <joseph@codesourcery.com>
13878
13879 * var-tracking.c (add_stores): Return instead of asserting if old
13880 and new values for conditional store are the same.
13881
13882 2014-06-30 Richard Henderson <rth@redhat.com>
13883
13884 PR rtl-opt/61608
13885 PR target/39284
13886 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13887 the cfg if there were any changes.
13888 * passes.def: Revert move of peephole2 after reorder_blocks;
13889 move duplicate_computed_gotos before peephole2.
13890
13891 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
13892
13893 * except.c (emit_note_eh_region_end): New helper function.
13894 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13895 emit EH_REGION_END note.
13896 * jump.c (cleanup_barriers): Do not split a call and its
13897 corresponding CALL_ARG_LOCATION note.
13898
13899 2014-06-30 Jeff Law <law@redhat.com>
13900
13901 PR tree-optimization/61607
13902 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13903 deeper into the SSA_NAME_VALUE chain.
13904
13905 2014-06-30 Marek Polacek <polacek@redhat.com>
13906
13907 * convert.c (convert_to_integer): Don't instrument conversions if the
13908 function has no_sanitize_undefined attribute.
13909 * ubsan.c: Don't run the ubsan pass if the function has
13910 no_sanitize_undefined attribute.
13911
13912 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13913
13914 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13915 -fsanitize=undefined suboptions.
13916
13917 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
13918
13919 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13920 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13921 against bigendian and adjust indices.
13922
13923 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13924
13925 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
13926
13927 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
13928
13929 PR target/61633
13930 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
13931 Add alternative; make early clobber. Adjust both split patterns
13932 to use operand 0 as the working register.
13933
13934 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13935
13936 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
13937 as ira_object_id_map might be NULL, or 1.
13938
13939 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13940
13941 * loop-invariant.c (get_inv_cost): Handle register class.
13942 (gain_for_invariant): Check the register pressure of the inv
13943 and its overlapped register class, other than all.
13944
13945 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13946
13947 * doc/invoke.texi (Optimize Options): Fix descriptions of
13948 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13949
13950 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13951
13952 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13953 documentation.
13954
13955 2014-06-29 Tobias Grosser <tobias@grosser.es>
13956
13957 PR bootstrap/61650
13958 * graphite-isl-ast-to-gimple.c: Add missing guards.
13959
13960 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13961
13962 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13963 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13964 * flag-types.h: Add new enum fgraphite_generator.
13965 * graphite-isl-ast-to-gimple.c: New.
13966 * graphite-isl-ast-to-gimple.h: New.
13967 * graphite.c (graphite_transform_loops): Add choice of Graphite
13968 code generator, which depends on flag_graphite_code_gen.
13969
13970 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13971
13972 * graphite-dependences.c (subtract_commutative_associative_deps):
13973 Add NULL checking of the following variables: must_raw_no_source,
13974 may_raw_no_source, must_war_no_source, may_war_no_source,
13975 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13976 must_war, may_war, must_waw, may_waw.
13977
13978 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13979
13980 * graphite-clast-to-gimple.c: gloog is renamed to
13981 graphite_regenerate_ast_cloog. gloog_error is renamed to
13982 graphite_regenerate_error.
13983 * graphite-clast-to-gimple.h: The definition of the struct
13984 bb_pbb_def is moved to graphite-htab.h.
13985 Add inclusion of the hash-table.h.
13986 * graphite-htab.h: The declaration of the function gloog is moved
13987 to graphite-clast-to-gimple.h and renamed to
13988 graphite_regenerate_ast_cloog.
13989 * graphite.c (graphite_transform_loops): gloog is renamed
13990 to graphite_regenerate_ast_cloog.
13991
13992 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13993
13994 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13995 type is complete.
13996 (write_ts_type_common_tree_pointers): Do not stream fields not set
13997 for incomplete types; do not stream duplicated fields for variants;
13998 sanity check that variant and type match.
13999 (write_ts_type_non_common_tree_pointers): Likewise.
14000 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14001 TYPE_SIZE whether type is complete.
14002 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14003 write_ts_type_common_tree_pointers
14004 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14005
14006 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14007
14008 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14009
14010 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14011
14012 * tree-inline.c (remap_type_1): Do not duplicate fields
14013 that are shared in between type and its main variant.
14014
14015 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14016
14017 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14018 of the type.
14019 (ipa_set_ancestor_jf) Likewise.
14020 (check_stmt_for_type_change): Check that we work on main variant.
14021 (detect_type_change): Look into main variant.
14022 (compute_known_type_jump_func): Check that main variant has BINFO.
14023
14024 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14025
14026 * ipa-devirt.c (set_type_binfo): New function.
14027 (add_type_duplicate): Use it.
14028 (get_odr_type): Sanity check that binfos points to main variants.
14029 (get_class_context): Be sure the context's outer_type is main variant.
14030 (contains_type_p): Walk main variant.
14031 (get_polymorphic_call_info_for_decl): Set outer_type to be
14032 main variant.
14033 (get_polymorphic_call_info): Likewise.
14034 (possible_polymorphic_call_targets): Sanity check that we operate
14035 on main variant.
14036
14037 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14038
14039 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14040
14041 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14042
14043 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14044 accidental change due to wide-int branch merge.
14045
14046 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14047
14048 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14049 compressed debug support.
14050 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14051 * configure: Regenerate.
14052 * config.in: Regenerate.
14053 * common.opt (compressed_debug_sections): New enum.
14054 (gz, gz=): New options.
14055 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14056 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14057 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14058 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14059 LINK_COMPRESS_DEBUG_SPEC.
14060 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14061 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14062 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14063 (Debugging Options): Document -gz[=type].
14064
14065 2014-06-27 Martin Jambor <mjambor@suse.cz>
14066
14067 PR ipa/61160
14068 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14069 args_to_skip, use those from node instead. Copy args_to_skip and
14070 combined_args_to_skip from node to the new thunk.
14071 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14072 (cgraph_create_virtual_clone): Moved computation of
14073 combined_args_to_skip...
14074 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14075
14076 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14077
14078 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14079 redundant diagnostic machinary.
14080
14081 2014-06-27 Richard Biener <rguenther@suse.de>
14082
14083 * tree-ssa-math-opts.c (bswap_replace): Fix
14084 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14085
14086 2014-06-27 Martin Liska <mliska@suse.cz>
14087
14088 * gimple.h (gimple_location_safe): New function introduced.
14089 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14090 of gimple_location_safe replaces gimple_location.
14091 (gimple_fold_call): Likewise.
14092 * ipa-devirt.c (ipa_devirt): Likewise.
14093 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14094 * ipa.c (walk_polymorphic_call_targets): Likewise.
14095 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14096
14097 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14098
14099 PR tree-optimization/57233
14100 PR tree-optimization/61299
14101 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14102 functions.
14103 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14104 would be lowered to scalar shifts, check if corresponding
14105 shifts and vector BIT_IOR_EXPR are supported and don't lower
14106 or lower just to narrower vector type in that case.
14107 * expmed.c (expand_shift_1): Fix up handling of vector
14108 shifts and rotates.
14109
14110 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14111
14112 PR target/61586
14113 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14114
14115 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14116
14117 * doc/invoke.texi (-fsemantic-interposition): Document.
14118 * common.opt (fsemantic-interposition): New flag.
14119 * varasm.c (decl_replaceable_p): Use it.
14120
14121 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14122
14123 PR target/61542
14124 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14125 extraction other than index 3.
14126
14127 2014-06-26 Teresa Johnson <tejohnson@google.com>
14128
14129 * doc/invoke.texi: Fix typo.
14130 * dumpfile.c: Add support for documented -fdump-* options
14131 optimized/missed/note/optall.
14132
14133 2014-06-26 Martin Jambor <mjambor@suse.cz>
14134
14135 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14136 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14137 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14138 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14139 * opts.c (default_options_optimization): Set
14140 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14141 * doc/invoke.texi (allow-load-data-races)
14142 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14143 (allow-store-data-races): Document the new default.
14144
14145 2014-06-26 Martin Jambor <mjambor@suse.cz>
14146
14147 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14148 renamed to ipa_impossible_devirt_target. Fix typo.
14149 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14150 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14151 ipa_impossible_devirt_target.
14152
14153 2014-06-26 Richard Biener <rguenther@suse.de>
14154
14155 PR tree-optimization/61607
14156 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14157 explaining why we restrict copies on loop depth.
14158 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14159 on loop depth.
14160 (record_equivalences_from_phis): Instead add it here.
14161
14162 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14163
14164 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14165 (LTO_WRAPPER_OBJS): New variable.
14166 (lto-wrapper$(exeext)): Use it.
14167 * collect2.c: Include "collect-utils.h".
14168 (verbose, debug): Remove variables.
14169 (at_file_supplied): No longer static.
14170 (tool_name): New variable.
14171 (do_wait, fork_execute, maybe_unlink): Don't declare.
14172 (tool_cleanup): No longer static.
14173 (notice): Remove function.
14174 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14175 fork_execute calls.
14176 (collect_wait, do_wait, collect_execute): Remove functions.
14177 (maybe_unlink): No longer static.
14178 * collect2.h (verbose, debug): Don't declare.
14179 (at_file_supplied): Declare.
14180 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14181 changed.
14182 (collect_execute): Replace with implementation from collect2, plus a
14183 new arg use_atfile. All callers changed.
14184 (collect_wait): Replace with implementation from collect2.
14185 (maybe_unlink_file): Remove function.
14186 (fork_execute): Replace with implementation from collect2, plus a
14187 new arg use_atfile. All callers changed.
14188 (do_wait): Add call to utils_cleanup to the error path.
14189 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14190 (tool_cleanup): Adjust declarations.
14191 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14192 * tlink.c: Include "collect-utils.h".
14193 (tlink_execute): New arg use_atfile. All callers changed.
14194 (tlink_init, tlink_execute): Remove declarations.
14195
14196 * collect-utils.c (save_temps): New variable.
14197 (do_wait): Use it instead of debug. Use fatal_error.
14198 * collect-utils.h (save_temps): Declare.
14199 * collect2.c (verbose): Rename from vflag. All uses changed.
14200 (tool_cleanup): New function, copied from collect_atexit.
14201 (collect_atexit, handler): Just call it.
14202 * collect2.h (verbose): Declaration renamed from vflag.
14203 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14204 debug.
14205
14206 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14207 (lto-wrapper$(exeext)): Link with collect-utils.o.
14208 * collect-utils.c: New file.
14209 * collect-utils.h: New file.
14210 * lto-wrapper.c: Include "collect-utils.h".
14211 (args_name): Delete variable.
14212 (tool_name): New variable.
14213 (tool_cleanup): New function.
14214 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14215 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14216 (fork_execute): Remove functions.
14217
14218 2014-06-26 Nick Clifton <nickc@redhat.com>
14219
14220 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14221
14222 * doc/extend.texi (Function Attributes): Fix typo in description
14223 of RX vector attribute.
14224
14225 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14226
14227 * config.gcc (supported_defaults): Error when passing either
14228 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14229
14230 2014-06-26 Richard Biener <rguenther@suse.de>
14231
14232 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14233 propagating volatile pointers.
14234
14235 2014-06-26 Richard Biener <rguenther@suse.de>
14236
14237 PR tree-optimization/61607
14238 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14239 loop if we redirected its latch edge.
14240 (thread_block_1): Do not cancel loops prematurely.
14241
14242 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14243
14244 * toplev.c (backend_init_target): Move init_emit_regs and
14245 init_regs to...
14246 (backend_init) ... here; skip ira_init_once and backend_init_target.
14247 (target_reinit) ... and here; clear
14248 this_target_rtl->lang_dependent_initialized.
14249 (lang_dependent_init_target): Clear
14250 this_target_rtl->lang_dependent_initialized;
14251 break out rtl initialization to ...
14252 (initialize_rtl): ... here; call also backend_init_target
14253 and ira_init_once.
14254 * toplev.h (initialize_rtl): New function.
14255 * function.c: Include toplev.h
14256 (init_function_start): Call initialize_rtl.
14257 * rtl.h (target_rtl): Add target_specific_initialized,
14258 lang_dependent_initialized.
14259
14260 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14261 Jakub Jelinek <jakub@redhat.com>
14262
14263 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14264
14265 2014-06-25 Tom de Vries <tom@codesourcery.com>
14266
14267 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14268
14269 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14270
14271 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14272 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14273 Issue a strict overflow warning if appropriate.
14274
14275 2014-06-25 Martin Liska <mliska@suse.cz>
14276
14277 IPA REF refactoring
14278 * Makefile.in: Removed header file (ipa-ref-inline.h).
14279 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14280 called.
14281 (cgraph_speculative_call_info): Likewise.
14282 (cgraph_for_node_thunks_and_aliases): Likewise.
14283 (cgraph_for_node_and_aliases): Likewise.
14284 (verify_cgraph_node): Likewise.
14285 * cgraph.h: Batch of IPA REF functions become member functions of
14286 symtab_node: add_reference, maybe_add_reference, clone_references,
14287 clone_referring, clone_reference, find_reference,
14288 remove_stmt_references, remove_all_references,
14289 remove_all_referring, dump_references, dump_referring,
14290 has_alias_p, iterate_reference, iterate_referring.
14291 * cgraphbuild.c (record_reference): New IPA REF function used.
14292 (record_type_list): Likewise.
14293 (record_eh_tables): Likewise.
14294 (mark_address): Likewise.
14295 (mark_load): Likewise.
14296 (mark_store): Likewise.
14297 (pass_build_cgraph_edges): Likewise.
14298 (rebuild_cgraph_edge): Likewise.
14299 (cgraph_rebuild_references): Likewise.
14300 (pass_remove_cgraph_callee_edges): Likewise.
14301 * cgraphclones.c (cgraph_clone_node): Likewise.
14302 (cgraph_create_virtual_clone): Likewise.
14303 (cgraph_materialize_clone): Likewise.
14304 (cgraph_materialize_all_clones): Likewise.
14305 * cgraphunit.c (cgraph_reset_node): Likewise.
14306 (cgraph_reset_node): Likewise.
14307 (analyze_function): Likewise.
14308 (assemble_thunks_and_aliases): Likewise.
14309 (expand_function): Likewise.
14310 * ipa-comdats.c (propagate_comdat_group): Likewise.
14311 (enqueue_references): Likewise.
14312 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14313 (create_specialized_node): Likewise.
14314 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14315 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14316 * ipa-inline.c (reset_edge_caches): Likewise.
14317 (update_caller_keys): Likewise.
14318 (execute): Likewise.
14319 * ipa-prop.c (remove_described_reference): Likewise.
14320 (propagate_controlled_uses): Likewise.
14321 (ipa_edge_duplication_hook): Likewise.
14322 (ipa_modify_call_arguments): Likewise.
14323 * ipa-pure-const.c (propagate_pure_const): Likewise.
14324 * ipa-ref-inline.h: Header file removed, functions moved
14325 to symtab_node class.
14326 * ipa-ref.c (remove_reference): New class member function.
14327 (cannot_lead_to_return): New class member function.
14328 (referring_ref_list): Likewise.
14329 (referred_ref_list): Likewise.
14330 Rest of functions moved to symtab_node class.
14331 * ipa-ref.h: New member functions remove_reference,
14332 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14333 to ipa_ref class.
14334 ipa_ref_list class has new member functions: first_reference,
14335 first_referring, clear, nreferences.
14336 * ipa-reference.c (analyze_function): New IPA REF function used.
14337 (write_node_summary_p): Likewise.
14338 (ipa_reference_write_optimization_summary): Likewise.
14339 * ipa-split.c (split_function): Likewise.
14340 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14341 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14342 (function_and_variable_visibility): Likewise.
14343 * ipa.c (has_addr_references_p): Likewise.
14344 (process_references): Argument type changed.
14345 (symtab_remove_unreachable_nodes): New IPA REF function used.
14346 (process_references): Likewise.
14347 (set_writeonly_bit): Likewise.
14348 * lto-cgraph.c: Implementation of new symtab_node member functions
14349 that uses new IPA REF functions.
14350 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14351 function used.
14352 * lto-streamer-out.c (output_symbol_p): Likewise.
14353 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14354 changed.
14355 * symtab.c: Implementation of new IPA REF API.
14356 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14357 (ipa_tm_create_version): Likewise.
14358 (ipa_tm_execute): Likewise.
14359 * tree-emutls.c (gen_emutls_addr): Likewise.
14360 * tree-inline.c (copy_bb): Likewise.
14361 (delete_unreachable_blocks_update_callgraph): Likewise.
14362 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14363 (varpool_for_node_and_aliases): Likewise.
14364
14365 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14366
14367 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14368
14369 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14370
14371 PR bootstrap/61598
14372 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14373 tree_node * instead of tree_node *.
14374 (fold): Adjust.
14375 (print_fold_checksum): Likewise.
14376 (fold_check_failed): Likewise.
14377 (debug_fold_checksum): Likewise.
14378 (fold_build1_stat_loc): Likewise.
14379 (fold_build2_stat_loc): Likewise.
14380 (fold_build3_stat_loc): Likewise.
14381 (fold_build_call_array_loc): Likewise.
14382
14383 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14384
14385 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14386 implementation with call to...
14387 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14388 function.
14389 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14390 Declare.
14391
14392 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14393
14394 PR tree-optimization/57742
14395 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14396 after replacing the statement.
14397
14398 2014-06-25 Nick Clifton <nickc@redhat.com>
14399
14400 * config/v850/v850.c (GHS_default_section_names): Change to const
14401 char * type.
14402 (GHS_current_section_names): Likewise.
14403 (v850_insert_attributes): Do not build strings, just assign the
14404 names directly. Change the type of 'chosen_section' to const
14405 char*.
14406 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14407 directly to the array entry.
14408 * config/v850/v850.h (GHS_default_section_names): Change to const
14409 char * type.
14410 (GHS_current_section_names): Likewise.
14411
14412 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14413
14414 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14415 (LANG_HOOKS_DECLS): Add it.
14416 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14417 has correct type.
14418 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14419 * langhooks.h (struct lang_hooks_for_decls): Add
14420 omp_clause_linear_ctor hook.
14421 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14422 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14423 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14424 combined simd loop use omp_clause_linear_ctor hook.
14425
14426 2014-06-24 Cong Hou <congh@google.com>
14427
14428 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14429 pattern recognition.
14430 (type_conversion_p): PROMOTION is true if it's a type promotion
14431 conversion, and false otherwise. Return true if the given expression
14432 is a type conversion one.
14433 * tree-vectorizer.h: Adjust the number of patterns.
14434 * tree.def: Add SAD_EXPR.
14435 * optabs.def: Add sad_optab.
14436 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14437 * expr.c (expand_expr_real_2): Likewise.
14438 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14439 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14440 * optabs.c (optab_for_tree_code): Likewise.
14441 * tree-cfg.c (estimate_operator_cost): Likewise.
14442 * tree-ssa-operands.c (get_expr_operands): Likewise.
14443 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14444 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14445 * doc/generic.texi: Add document for SAD_EXPR.
14446 * doc/md.texi: Add document for ssad and usad.
14447
14448 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14449
14450 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14451 qualification in cast.
14452
14453 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14454
14455 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14456 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14457 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14458 (tree_function_decl): ... here.
14459 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14460 streaming of vindex to ...
14461 (write_ts_function_decl_tree_pointers): ... here.
14462 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14463 Do not stream DECL_VINDEX.
14464 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14465
14466 2014-06-24 Catherine Moore <clm@codesourcery.com>
14467 Sandra Loosemore <sandra@codesourcery.com>
14468
14469 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14470 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14471 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14472
14473 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14474
14475 * doc/invoke.texi (Warning Options): Remove duplicated
14476 -Wmaybe-uninitialized.
14477
14478 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14479
14480 PR tree-optimization/57742
14481 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14482 (handle_builtin_malloc, handle_builtin_memset): New functions.
14483 (strlen_optimize_stmt): Call them.
14484 * passes.def: Move strlen after loop+dom but before vrp.
14485
14486 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14487
14488 PR target/61570
14489 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14490 model family 6 CPU with has_longmode never use a CPU without
14491 64-bit support.
14492
14493 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14494
14495 PR target/61570
14496 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14497 the last change.
14498
14499 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14500
14501 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14502 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14503 pointer_map.
14504 * hash-map.h: New file.
14505 * ipa-comdats.c: Use hash_map instead of pointer_map.
14506 * ipa.c: Likewise.
14507 * lto-section-out.c: Adjust.
14508 * lto-streamer.h: Replace pointer_map with hash_map.
14509 * symtab.c (verify_symtab): Likewise.
14510 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14511 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14512 * tree-streamer.h: Likewise.
14513 * tree-streamer.c: Adjust.
14514 * pointer-set.h: Remove pointer_map.
14515
14516 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14517
14518 * hash-table.h: Add a template arg to choose between storing values
14519 and storing pointers to values, and then provide partial
14520 specializations for both.
14521 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14522 should store, not the type values should point to.
14523 * tree-into-ssa.c (var_info_hasher): Likewise.
14524 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14525 * tree-complex.c: Adjust.
14526 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14527 table instead of int_tree_map *.
14528 * tree-parloops.c: Adjust.
14529 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14530 type is being stored.
14531 * tree-vectorizer.c: Adjust.
14532
14533 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14534
14535 * hash-table.h: Remove a layer of indirection from hash_table so that
14536 it contains the hash table's data instead of a pointer to the data.
14537 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14538 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14539 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14540 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14541 fold-const.c, gcse.c, ggc-common.c,
14542 gimple-ssa-strength-reduction.c, gimplify.c,
14543 graphite-clast-to-gimple.c, graphite-dependences.c,
14544 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14545 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14546 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14547 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14548 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14549 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14550 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14551 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14552 tree-ssa-live.c, tree-ssa-loop-im.c,
14553 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14554 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14555 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14556 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14557 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14558 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14559 vtable-verify.c, vtable-verify.h: Adjust.
14560
14561 2014-06-24 Richard Biener <rguenther@suse.de>
14562
14563 PR tree-optimization/61572
14564 * tree-ssa-sink.c (statement_sink_location): Do not sink
14565 loads from hard registers.
14566
14567 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14568
14569 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14570 not mentioned in clauses use private clause if the iterator is
14571 declared in #pragma omp for simd, and when adding lastprivate
14572 instead, add it to the outer #pragma omp for too. Diagnose
14573 if the variable is private in outer context. For simd collapse > 1
14574 loops, replace all iterators with temporaries.
14575 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14576 same even in collapse > 1 loops.
14577
14578 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14579 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14580 non-NULL.
14581 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14582 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14583 non-NULL.
14584 (gimplify_adjust_omp_clauses): Likewise.
14585 * omp-low.c (lower_rec_simd_input_clauses,
14586 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14587 safelen the same as safelen(1).
14588 * tree-nested.c (convert_nonlocal_omp_clauses,
14589 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14590 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14591 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14592 Fixup handling of GIMPLE_OMP_TARGET.
14593 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14594 GIMPLE_OMP_TARGET.
14595
14596 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
14597
14598 PR tree-optimization/61554
14599 * tree-ssa-propagate.c: Include "bitmap.h".
14600 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14601 properly update constructor/destructor.
14602 (substitute_and_fold_dom_walker::before_dom_children):
14603 Remove call to gimple_purge_dead_eh_edges, add bb->index to
14604 need_eh_cleaup instead.
14605 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14606 need_eh_cleanup.
14607
14608 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14609
14610 * varpool.c (dump_varpool_node): Dump used_by_single_function.
14611 * tree-pass.h (make_pass_ipa_single_use): New pass.
14612 * cgraph.h (used_by_single_function): New flag.
14613 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14614 Stream it.
14615 * passes.def (pass_ipa_single_use): Scedule.
14616 * ipa.c (BOTTOM): New macro.
14617 (meet): New function
14618 (propagate_single_user): New function.
14619 (ipa_single_use): New function.
14620 (pass_data_ipa_single_use): New pass.
14621 (pass_ipa_single_use): New pass.
14622 (pass_ipa_single_use::gate): New gate.
14623 (make_pass_ipa_single_use): New function.
14624
14625 2014-06-23 Kai Tietz <ktietz@redhat.com>
14626
14627 PR target/39284
14628 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14629 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14630
14631 2014-06-23 Richard Biener <rguenther@suse.de>
14632
14633 * tree-ssa-loop.c (gate_loop): New function.
14634 (pass_tree_loop::gate): Call it.
14635 (pass_data_tree_no_loop, pass_tree_no_loop,
14636 make_pass_tree_no_loop): New.
14637 * tree-vectorizer.c: Include tree-scalar-evolution.c
14638 (pass_slp_vectorize::execute): Initialize loops and SCEV if
14639 required.
14640 (pass_slp_vectorize::clone): New method.
14641 * timevar.def (TV_TREE_NOLOOP): New.
14642 * tree-pass.h (make_pass_tree_no_loop): Declare.
14643 * passes.def (pass_tree_no_loop): New pass group with
14644 SLP vectorizer.
14645
14646 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
14647
14648 PR target/61570
14649 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14650 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14651
14652 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14653
14654 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14655 "yes" where needed.
14656
14657 2014-06-23 Alan Modra <amodra@gmail.com>
14658
14659 PR bootstrap/61583
14660 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14661 to zero on debug statements.
14662
14663 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14664
14665 PR target/60825
14666 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14667 Ignore third operand if present by marking qualifier_internal.
14668
14669 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14670
14671 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14672 vector extension.
14673 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14674 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14675 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14676 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14677 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14678 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14679 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14680 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14681 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14682 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14683 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14684 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14685 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14686 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14687 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14688 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14689 logic in GCC vector extensions
14690
14691 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14692 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14693 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14694 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14695 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14696 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14697 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14698 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14699 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14700 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14701
14702 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14703
14704 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14705 extensions.
14706
14707 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14708 (vget_low_s64): Use __GET_LOW macro.
14709 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14710 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14711 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14712 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14713 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14714
14715 (vcombine_s64): Use GCC vector extensions; remove cast.
14716 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14717 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14718 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14719 Fix type signature; remove cast.
14720
14721 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14722
14723 PR target/60825
14724 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14725 V1DFmode.
14726 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14727 add V1DFmode
14728 (BUILTIN_VD1): New.
14729 (BUILTIN_VD_RE): Remove.
14730 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14731 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14732 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14733 variant but not df.
14734 (vreinterpretv1df*, vreinterpret*v1df): New.
14735 (vreinterpretdf*, vreinterpret*df): Remove.
14736 * config/aarch64/aarch64-simd.md (aarch64_create,
14737 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14738 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14739 (VD1): New.
14740 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14741 (vcreate_f64): Remove cast, use v1df builtin.
14742 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14743 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14744 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14745 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14746 vmov_n_f64, vst1_f64): Use gcc vector extensions.
14747 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14748 add range check using __builtin_aarch64_im_lane_boundsi.
14749 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14750 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14751 type signature, use gcc vector extensions.
14752 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14753 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14754 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14755 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14756 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14757 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14758 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14759 vreinterpret_u64_f64): Use v1df builtin not df.
14760
14761 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14762
14763 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14764 vector registers.
14765
14766 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14767
14768 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14769 priority directly.
14770
14771 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14772
14773 * loop-invariant.c (pre_check_invariant_p): New function.
14774 (find_invariant_insn): Call pre_check_invariant_p.
14775
14776 2014-06-22 Richard Henderson <rth@redhat.com>
14777
14778 PR target/61565
14779 * compare-elim.c (struct comparison): Add eh_note.
14780 (find_comparison_dom_walker::before_dom_children): Don't eliminate
14781 a redundant comparison in a different EH region. Purge EH edges if
14782 necessary.
14783
14784 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14785
14786 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14787 (var_shift): Use it.
14788 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14789 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14790 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14791 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14792 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14793 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14794 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14795 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14796 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14797 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14798 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14799 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14800 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14801 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14802 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14803 *rotldi3_internal15be): Use the new attribute. Merge register and
14804 integer alternatives.
14805
14806 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14807
14808 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14809 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14810 split, *ashrdi3_internal3 and split): Delete, merge into...
14811 (ashr<mode>3): New expander.
14812 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14813 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
14814
14815 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14816
14817 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14818 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14819 *rotldi3_internal3 and split): Delete, merge into...
14820 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14821 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
14822 Use "rotlw" extended mnemonic.
14823
14824 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14825
14826 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14827 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14828 and split, *ashldi3_internal3 and split): Delete, merge into...
14829 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14830 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
14831
14832 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14833
14834 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14835 (lshrsi3, two anonymous define_insns and define_splits,
14836 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14837 *lshrdi3_internal3 and split): Delete, merge into...
14838 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14839 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
14840
14841 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14842
14843 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14844 Remove "O" alternative.
14845
14846 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
14847
14848 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14849 (mips_move_from_gpr_cost): Likewise.
14850 (mips_register_move_cost): Update accordingly.
14851 (mips_secondary_reload_class): Remove name of in_p.
14852
14853 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
14854
14855 PR target/61503
14856 * config/i386/i386.md (x86_64_shrd, x86_shrd,
14857 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14858
14859 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14860
14861 * config/nios2/nios2.c: Include "builtins.h".
14862
14863 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14864
14865 * cgraph.h (tls_model_names): New variable.
14866 * print-tree.c (print_node): Simplify.
14867 * varpool.c (tls_model_names): New variable.
14868 (dump_varpool_node): Output tls model.
14869
14870 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14871
14872 * ipa-visibility.c (function_and_variable_visibility): Disable
14873 temporarily local aliases for some targets.
14874
14875 2014-06-20 Marek Polacek <polacek@redhat.com>
14876
14877 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14878 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14879 into SANITIZE_UNDEFINED.
14880 * doc/invoke.texi: Describe -fsanitize=bounds.
14881 * gimplify.c (gimplify_call_expr): Add gimplification of internal
14882 functions created in the FEs.
14883 * internal-fn.c: Move "internal-fn.h" after "tree.h".
14884 (expand_UBSAN_BOUNDS): New function.
14885 * internal-fn.def (UBSAN_BOUNDS): New internal function.
14886 * internal-fn.h: Don't define internal functions here.
14887 * opts.c (common_handle_option): Add -fsanitize=bounds.
14888 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14889 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14890 * tree-core.h: Define internal functions here.
14891 (struct tree_base): Add ifn field.
14892 * tree-pretty-print.c: Include "internal-fn.h".
14893 (dump_generic_node): Handle functions without CALL_EXPR_FN.
14894 * tree.c (get_callee_fndecl): Likewise.
14895 (build_call_expr_internal_loc): New function.
14896 * tree.def (CALL_EXPR): Update description.
14897 * tree.h (CALL_EXPR_IFN): Define.
14898 (build_call_expr_internal_loc): Declare.
14899 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14900 types.
14901 (ubsan_type_descriptor): Change bool parameter to enum
14902 ubsan_print_style. Adjust the code. Add handling of
14903 UBSAN_PRINT_ARRAY.
14904 (ubsan_expand_bounds_ifn): New function.
14905 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14906 (ubsan_build_overflow_builtin): Likewise.
14907 (instrument_bool_enum_load): Likewise.
14908 (ubsan_instrument_float_cast): Likewise.
14909 * ubsan.h (enum ubsan_print_style): New enum.
14910 (ubsan_expand_bounds_ifn): Declare.
14911 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
14912
14913 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
14914
14915 * config/rs6000/rs6000.md: Append `DONE' to preparation
14916 statements of `bswap' pattern splitters.
14917
14918 2014-06-20 Tom de Vries <tom@codesourcery.com>
14919
14920 * target.def (call_fusage_contains_non_callee_clobbers): Update
14921 definition.
14922 * doc/tm.texi: Regenerate.
14923
14924 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14925 Max Ostapenko <m.ostapenko@partner.samsung.com>
14926
14927 PR sanitizer/61547
14928 * asan.c (instrument_strlen_call): Fixed instrumentation of
14929 trailing byte.
14930
14931 2014-06-20 Martin Jambor <mjambor@suse.cz>
14932
14933 PR ipa/61540
14934 * ipa-prop.c (impossible_devirt_target): New function.
14935 (try_make_edge_direct_virtual_call): Use it, also instead of
14936 asserting.
14937
14938 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14939 Max Ostapenko <m.ostapenko@partner.samsung.com>
14940
14941 PR sanitizer/61530
14942 * asan.c (build_check_stmt): Add condition.
14943
14944 2014-06-20 Martin Jambor <mjambor@suse.cz>
14945
14946 PR ipa/61211
14947 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14948 expanded clones.
14949
14950 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14951
14952 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14953 Update comments.
14954 (VCONQ): Make comment more helpful.
14955 (VCON): Delete.
14956 * config/aarch64/aarch64-simd.md
14957 (aarch64_sqdmulh_lane<mode>):
14958 Use VCOND for operands 2. Update lane checking and flipping logic.
14959 (aarch64_sqrdmulh_lane<mode>): Likewise.
14960 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14961 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14962 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14963 attribute of operand 3 to VCOND.
14964 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14965 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14966 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14967 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14968 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14969 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14970 define_insn.
14971 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14972 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14973 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14974 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14975 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14976 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14977 operand to VCOND. Update lane flipping and bounds checking logic.
14978 (aarch64_sqdmlal2_lane<mode>): Likewise.
14979 (aarch64_sqdmlsl_lane<mode>): Likewise.
14980 (aarch64_sqdmull_lane<mode>): Likewise.
14981 (aarch64_sqdmull2_lane<mode>): Likewise.
14982 (aarch64_sqdmlal_laneq<mode>):
14983 Replace VCON usage with VCONQ.
14984 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14985 (aarch64_sqdmlal2_laneq<mode>): Emit
14986 aarch64_sqdmlal2_laneq<mode>_internal insn.
14987 Replace VCON with VCONQ.
14988 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
14989 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14990 (aarch64_sqdmull_laneq<mode>): Emit
14991 aarch64_sqdmull_laneq<mode>_internal insn.
14992 Replace VCON with VCONQ.
14993 (aarch64_sqdmull2_laneq<mode>): Emit
14994 aarch64_sqdmull2_laneq<mode>_internal insn.
14995 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
14996 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
14997 of 3rd argument to int16x4_t.
14998 (vqdmlalh_lane_s16): Likewise.
14999 (vqdmlslh_lane_s16): Likewise.
15000 (vqdmull_high_lane_s16): Likewise.
15001 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15002 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15003 (vqdmlsl_lane_s16): Likewise.
15004 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15005 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15006 (vqdmlals_lane_s32): Likewise.
15007 (vqdmlsls_lane_s32): Likewise.
15008 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15009 (vqdmulls_lane_s32): Likewise.
15010 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15011 (vqdmlsl_lane_s32): Likewise.
15012 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15013 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15014 (vqrdmulhh_lane_s16): Likewise.
15015 (vqdmlsl_high_lane_s16): Likewise.
15016 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15017 (vqdmlsl_high_lane_s32): Likewise.
15018 (vqrdmulhs_lane_s32): Likewise.
15019
15020 2014-06-20 Tom de Vries <tom@codesourcery.com>
15021
15022 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15023 get_call_reg_set_usage.
15024
15025 2014-06-20 Tom de Vries <tom@codesourcery.com>
15026
15027 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15028 it contains all call_used_regs.
15029
15030 2014-06-20 Tom de Vries <tom@codesourcery.com>
15031
15032 * final.c (collect_fn_hard_reg_usage): Add and use variable
15033 function_used_regs.
15034
15035 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15036
15037 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15038 (set_init_priority, get_init_priority, set_fini_priority,
15039 get_fini_priority): New methods.
15040 * tree.c (init_priority_for_decl): Remove.
15041 (init_ttree): Do not initialize init priority.
15042 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15043 (decl_priority_info): Remove.
15044 (decl_init_priority_insert): Rewrite.
15045 (decl_fini_priority_insert): Rewrite.
15046 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15047 tree_priority_map_marked_p): Remove.
15048 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15049 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15050 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15051 not output priorities.
15052 (pack_ts_function_decl_value_fields): Likewise.
15053 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15054 not input priorities.
15055 (unpack_ts_function_decl_value_fields): Likewise.
15056 * symtab.c (symbol_priority_map): Declare.
15057 (init_priority_hash): Declare.
15058 (symtab_unregister_node): Unregister from priority hash, too.
15059 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15060 New methods.
15061 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15062 (symbol_priority_info): New function.
15063 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15064 New methods.
15065 * tree-core.h (tree_priority_map): Remove.
15066
15067 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15068
15069 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15070 0xff to uint64_t before shifting it up.
15071
15072 2014-06-20 Julian Brown <julian@codesourcery.com>
15073 Chung-Lin Tang <cltang@codesourcery.com>
15074
15075 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15076 TARGET_THUMB1_ONLY. Add comments.
15077
15078 2014-06-19 Tom de Vries <tom@codesourcery.com>
15079
15080 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15081 return type to void.
15082 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15083
15084 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15085
15086 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15087 as "move", from depends_on.
15088
15089 2014-06-19 Terry Guo <terry.guo@arm.com>
15090
15091 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15092 stage.
15093
15094 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15095
15096 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15097 Remove cr5.
15098 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15099
15100 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15101
15102 PR target/61550
15103 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15104 addresses here if reload in progress or completed.
15105
15106 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15107
15108 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15109 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15110 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15111 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15112 (mips_register_priority): New function that implements the target
15113 hook TARGET_REGISTER_PRIORITY.
15114 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15115 (mips_lra_p): Likewise for TARGET_LRA_P.
15116 (TARGET_REGISTER_PRIORITY): Define macro.
15117 (TARGET_SPILL_CLASS): Likewise.
15118 (TARGET_LRA_P): Likewise.
15119 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15120 classes.
15121 (REG_CLASS_NAMES): Likewise.
15122 (REG_CLASS_CONTENTS): Likewise.
15123 (BASE_REG_CLASS): Use M16_SP_REGS.
15124 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15125 New set attribute to enable alternatives depending on the register
15126 allocator used.
15127 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15128 (*lea64): Disable pattern for MIPS16.
15129 * config/mips/mips.opt (mlra): New option.
15130
15131 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15132
15133 * lra-constraints.c (base_to_reg): New function.
15134 (process_address): Use new function.
15135
15136 2014-06-18 Tom de Vries <tom@codesourcery.com>
15137
15138 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15139 * config/aarch64/aarch64.c
15140 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15141 (aarch64_emit_call_insn): New function.
15142 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15143 of emit_call_insn.
15144 * config/aarch64/aarch64.md (define_expand "call_internal")
15145 (define_expand "call_value_internal", define_expand "sibcall_internal")
15146 (define_expand "sibcall_value_internal"): New.
15147 (define_expand "call", define_expand "call_value")
15148 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15149 expand variant and aarch64_emit_call_insn.
15150
15151 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15152 Tom de Vries <tom@codesourcery.com>
15153
15154 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15155 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15156 Redefine to true.
15157 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15158 clobbers to CALL_INSN_FUNCTION_USAGE.
15159 (define_expand "sibcall_internal")
15160 (define_expand "sibcall_value_internal"): New.
15161 (define_expand "call", define_expand "call_value"): Add argument to
15162 arm_emit_call_insn.
15163 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15164 (define_expand "sibcall_value"): Use sibcall_value_internal and
15165 arm_emit_call_insn.
15166
15167 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15168
15169 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15170
15171 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15172
15173 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15174 __udivmoddi4.
15175
15176 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15177
15178 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15179 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15180 annotations. Fix DWARF information.
15181
15182 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15183
15184 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15185 __udivmoddi4, and fixups for negative operands.
15186
15187 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15188
15189 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15190
15191 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15192
15193 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15194 to __udivmoddi4.
15195
15196 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15197
15198 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15199 manipulation.
15200
15201 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15202
15203 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15204 describing register usage on function entry and exit.
15205
15206 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15207
15208 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15209 (__aeabi_ldivmod): Fix whitespace.
15210
15211 2014-06-18 Andreas Schwab <schwab@suse.de>
15212
15213 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15214 Remove blank line after @item.
15215
15216 2014-06-18 Richard Henderson <rth@redhat.com>
15217
15218 PR target/61545
15219 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15220
15221 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15222
15223 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15224 POST_MODIFY for neon loads and stores.
15225 (arm_print_operand): Output post-index register for neon loads and
15226 stores.
15227
15228 2014-06-18 Richard Biener <rguenther@suse.de>
15229
15230 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15231
15232 2014-06-18 Richard Biener <rguenther@suse.de>
15233
15234 * tree-pass.h (make_pass_dce_loop): Remove.
15235 * passes.def: Replace pass_dce_loop with pass_dce.
15236 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15237 changed free niter estimates and reset the scev cache.
15238 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15239 make_pass_dce_loop): Remove.
15240 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15241 (fini_copy_prop): Return whether something changed. Always
15242 let substitute_and_fold perform DCE and free niter estimates
15243 and reset the scev cache if so.
15244 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15245 (pass_data_copy_prop): Do not unconditionally schedule
15246 cleanup-cfg or update-ssa.
15247
15248 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15249
15250 PR tree-optimization/61518
15251 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15252 reduction var is used in reduction stmt or phi-function only.
15253
15254 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15255
15256 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15257
15258 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15259
15260 PR tree-optimization/61517
15261 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15262 whose rhs's first tree is the source expression instead of the
15263 expression itself.
15264 (find_bswap_or_nop): Likewise.
15265 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15266 gimple stmt whose rhs's first tree is the source. In the memory source
15267 case, move the stmt to be replaced close to one of the original load to
15268 avoid the problem of a store between the load and the stmt's original
15269 location.
15270 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15271 signature.
15272
15273 2014-06-18 Andreas Schwab <schwab@suse.de>
15274
15275 PR rtl-optimization/54555
15276 * postreload.c (move2add_use_add2_insn): Substitute
15277 STRICT_LOW_PART only if it is cheaper.
15278
15279 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15280
15281 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15282 Do not use unspec as call operand. Use memory_operand instead of
15283 memory_nox32_operand and add "m" operand constraint. Disable
15284 pattern for TARGET_X32.
15285 (*sibcall_pop_memory): Ditto.
15286 (*sibcall_value_memory): Ditto.
15287 (*sibcall_value_pop_memory): Ditto.
15288 (sibcall peepholes): Merge SImode and DImode patterns using
15289 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15290 Disable pattern for TARGET_X32. Check if eliminated register is
15291 really dead after call insn. Generate call RTX without unspec operand.
15292 (sibcall_value peepholes): Ditto.
15293 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15294 instead of memory_nox32_operand. Check if eliminated register is
15295 really dead after call insn. Generate call RTX without unspec operand.
15296 (sibcall_value_pop peepholes): Ditto.
15297 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15298
15299 2014-06-18 Terry Guo <terry.guo@arm.com>
15300
15301 PR target/61544
15302 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15303 reach the head.
15304
15305 2014-06-18 Olivier Hainque <hainque@adacore.com>
15306
15307 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15308 memorization of the end of block source location.
15309 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15310 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15311 end source location info we have on the block entry/exit code we
15312 generate.
15313
15314 2014-06-18 Richard Biener <rguenther@suse.de>
15315
15316 * common.opt (fssa-phiopt): New option.
15317 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15318 but not with -Og.
15319 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15320 * doc/invoke.texi (-fssa-phiopt): Document.
15321
15322 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15323
15324 * genattrtab.c (n_bypassed): New variable.
15325 (process_bypasses): Initialise n_bypassed.
15326 Count number of bypassed reservations.
15327 (make_automaton_attrs): Allocate space for bypassed reservations
15328 rather than number of bypasses.
15329
15330 2014-06-18 Richard Biener <rguenther@suse.de>
15331
15332 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15333 we propagated anything.
15334 (substitute_and_fold_dom_walker::before_dom_children): Something
15335 changed if we propagated into PHI arguments.
15336 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15337 we removed a stmt.
15338
15339 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15340
15341 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15342 vector case.
15343 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15344 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15345 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15346 Introduces alternative way of loads group permutaions.
15347 (vect_transform_grouped_load): Try alternative way of permutations.
15348
15349 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15350
15351 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15352 changed in ORT_TARGET region, don't jump to do_outer.
15353 (struct gimplify_adjust_omp_clauses_data): New type.
15354 (gimplify_adjust_omp_clauses_1): Adjust for data being
15355 a struct gimplify_adjust_omp_clauses_data pointer instead
15356 of tree *. Pass pre_p as a new argument to
15357 lang_hooks.decls.omp_finish_clause hook.
15358 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15359 splay_tree_foreach to pass both list_p and pre_p.
15360 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15361 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15362 gimplify_adjust_omp_clauses callers.
15363 * langhooks.c (lhd_omp_finish_clause): New function.
15364 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15365 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15366 * langhooks.h (struct lang_hooks_for_decls): Add a new
15367 gimple_seq * argument to omp_finish_clause hook.
15368 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15369 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15370 (scan_omp_parallel, lower_omp_for): When adding
15371 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15372 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15373 * tree-nested.c (convert_nonlocal_omp_clauses,
15374 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15375 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15376
15377 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15378
15379 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15380 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15381
15382 2014-06-17 Xinliang David Li <davidxl@google.com>
15383
15384 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15385 * passes.c (pass_init_dump_file): Do not set initialize
15386 flag to false unconditionally.
15387
15388 2014-06-17 Richard Biener <rguenther@suse.de>
15389
15390 * genopinit.c (main): Use vec<>::qsort method.
15391 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15392 Likewise.
15393 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15394
15395 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15396
15397 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15398 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15399 (mips_move_to_gpr_cost): Remove ST_REGS case.
15400 (mips_move_from_gpr_cost): Likewise.
15401 (mips_register_move_cost): Likewise.
15402 (mips_secondary_reload_class): Likewise.
15403
15404 2014-06-17 Richard Biener <rguenther@suse.de>
15405
15406 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15407 (pass_all_optimizations): Move 3rd copy-prop pass from after
15408 fre to before ifcombine/phiopt.
15409
15410 2014-06-17 Richard Biener <rguenther@suse.de>
15411
15412 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15413 and allow all blocks to be forwarders.
15414
15415 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15416
15417 PR target/61483
15418 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15419 variable 'size'; calculate 'size' right in the front; use
15420 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15421 pcum->aapcs_stack_words.
15422
15423 2014-06-17 Nick Clifton <nickc@redhat.com>
15424
15425 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15426 (umulhi3, mulsidi3, umulsidi3): Likewise.
15427
15428 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15429
15430 PR middle-end/61508
15431 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15432 check for section name.
15433
15434 2014-06-17 Richard Biener <rguenther@suse.de>
15435
15436 * tree-ssa-propagate.c: Include domwalk.h.
15437 (substitute_and_fold): Outline main worker into a domwalker ...
15438 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15439 Schedule stmts we can fully propagate for removal. Remove
15440 poor-mans DCE.
15441 (substitute_and_fold): Apply a dominator walk to perform
15442 substitution. Process stmts scheduled for removal here.
15443
15444 2014-06-17 Richard Biener <rguenther@suse.de>
15445
15446 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15447 of PHI node moving.
15448
15449 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15450
15451 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15452 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15453 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15454 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15455 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15456 TARGET_HARD_FLOAT.
15457 (get_fpscr) : Likewise.
15458
15459 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15460
15461 PR rtl-optimization/61325
15462 * lra-constraints.c (valid_address_p): Add forward declaration.
15463 (simplify_operand_subreg): Check address validity before and after
15464 alter_reg of memory subreg.
15465
15466 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15467
15468 * config/i386/i386.c (decide_alg): Correctly handle
15469 maximum size of stringop algorithm.
15470
15471 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15472
15473 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15474
15475 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15476
15477 PR rtl-optimization/61522
15478 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15479
15480 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15481
15482 Revert:
15483 * symtab.c (symtab_node::reset_section): New method.
15484 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15485 for localization.
15486 * cgraph.h (reset_section): Declare.
15487 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15488 do not consider comdat locals.
15489 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15490 for new symbol.
15491 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15492 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15493 reset sections of symbols dragged out of the comdats.
15494 (function_and_variable_visibility): Reset sections of
15495 localized symbols.
15496
15497 2014-06-16 Richard Biener <rguenther@suse.de>
15498
15499 PR tree-optimization/61482
15500 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15501 [-INF(OVF), +INF(OVF)] range.
15502
15503 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15504
15505 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15506 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15507 handling 32-bit multiplication.
15508
15509 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15510
15511 PR middle-end/61430
15512 * lra-lives.c (process_bb_lives): Skip creating copy during
15513 insn scan when src/dest has constrained to same regno.
15514
15515 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15516
15517 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15518 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15519
15520 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15521
15522 * asan.c (check_func): New function.
15523 (maybe_create_ssa_name): Likewise.
15524 (build_check_stmt_with_calls): Likewise.
15525 (use_calls_p): Likewise.
15526 (report_error_func): Change interface.
15527 (build_check_stmt): Allow non-integer lengths; add support
15528 for new parameter.
15529 (asan_instrument): Likewise.
15530 (instrument_mem_region_access): Moved code to build_check_stmt.
15531 (instrument_derefs): Likewise.
15532 (instrument_strlen_call): Likewise.
15533 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15534 * doc/invoke.texi: Describe new parameter.
15535 * params.def: Define new parameter.
15536 * params.h: Likewise.
15537 * sanitizer.def: Describe new builtins.
15538
15539 2014-06-16 Richard Biener <rguenther@suse.de>
15540
15541 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15542 Make all defs available at the end.
15543 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15544
15545 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15546
15547 PR plugins/45078
15548 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15549
15550 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15551
15552 PR bootstrap/61516
15553 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15554 initialization. Replace remaining use of uid.
15555
15556 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15557
15558 * c-family/c-common.c (handle_tls_model_attribute): Use
15559 set_decl_tls_model.
15560 * c-family/c-common.c (handle_tls_model_attribute): Use
15561 set_decl_tls_model.
15562 * cgraph.h (struct varpool_node): Add tls_model.
15563 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15564 * tree.h (DECL_TLS_MODEL): Update.
15565 (DECL_THREAD_LOCAL_P): Check that variable is static.
15566 (decl_tls_model): Declare.
15567 (set_decl_tls_model): Declare.
15568 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15569 set symbol prorperties.
15570 (get_emutls_init_templ_addr): Cleanup.
15571 (new_emutls_decl): Update.
15572 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15573 (lto_input_varpool_node): Likewise.
15574 * lto-streamer-out.c (hash_tree): Likewise.
15575 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15576 not stream DECL_TLS_MODEL.
15577 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15578 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15579
15580 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15581
15582 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15583
15584 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15585
15586 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15587 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15588 lists.
15589 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15590 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15591 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15592 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15593 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15594 (df_get_artificial_defs, df_get_artificial_uses)
15595 (df_single_def, df_single_use): Update accordingly.
15596 (df_refs_chain_dump): Take the first element in a linked list as
15597 parameter, rather than a pointer to an array of pointers.
15598 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15599 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15600 (df_chain_create_bb_process_use): Likewise.
15601 (df_md_bb_local_compute_process_def): Likewise.
15602 * fwprop.c (process_defs, process_uses): Likewise.
15603 (register_active_defs, update_uses): Likewise.
15604 (forward_propagate_asm): Update for new df_ref linking.
15605 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15606 (df_null_ref_rec, df_null_mw_rec): Likewise.
15607 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15608 explicitly.
15609 (df_scan_free_bb_info): Remove check for null artificial_defs.
15610 (df_install_ref_incremental): Adjust for new df_ref linking.
15611 Use a single-element insertion rather than a full sort.
15612 (df_ref_chain_delete_du_chain): Take the first element
15613 in a linked list as parameter, rather than a pointer to an array of
15614 pointers.
15615 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15616 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15617 (df_insn_info_delete): Remove check for null defs and call to
15618 df_scan_free_mws_vec.
15619 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15620 null rather than df_null_*_rec.
15621 (df_insn_rescan_debug_internal): Likewise, and update null
15622 checks in the same way. Remove check for null defs.
15623 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15624 Move a single element rather doing a full sort.
15625 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15626 linking.
15627 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
15628 Initialize df_ref and df_mw_hardreg lists to null rather than
15629 df_null_*_rec.
15630 (df_ref_compare): Take df_refs as parameter, transferring the
15631 old interface to...
15632 (df_ref_ptr_compare): ...this new function.
15633 (df_sort_and_compress_refs): Update accordingly.
15634 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15635 old interface to...
15636 (df_mw_ptr_compare): ...this new function.
15637 (df_sort_and_compress_mws): Update accordingly.
15638 (df_install_refs, df_install_mws): Return a linked list rather than
15639 an array of pointers.
15640 (df_refs_add_to_chains): Assert that old lists are empty rather
15641 than freeing them.
15642 (df_insn_refs_verify): Don't handle null defs speciailly.
15643 * web.c (union_match_dups): Update for new df_ref linking.
15644
15645 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15646
15647 * df.h (df_ref_create, df_ref_remove): Delete.
15648 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15649 (df_ref_remove): Likewise.
15650
15651 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15652
15653 * df.h (df_single_def, df_single_use): New functions.
15654 * ira.c (find_moveable_pseudos): Use them.
15655
15656 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15657
15658 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15659 * df-problems.c (df_note_bb_compute): Use it.
15660 * regstat.c (regstat_bb_compute_ri): Likewise.
15661
15662 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15663
15664 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15665 * cse.c (cse_extended_basic_block): Use them.
15666 * dce.c (mark_artificial_use): Likewise.
15667 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15668 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15669 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15670 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15671 (df_simulate_initialize_backwards): Likewise.
15672 (df_simulate_finalize_backwards): Likewise.
15673 (df_simulate_initialize_forwards): Likewise.
15674 (df_md_simulate_artificial_defs_at_top): Likewise.
15675 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15676 * regrename.c (init_rename_info): Likewise.
15677 * regstat.c (regstat_bb_compute_ri): Likewise.
15678 (regstat_bb_compute_calls_crossed): Likewise.
15679
15680 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15681
15682 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15683 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15684 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15685 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15686 * combine.c (create_log_links): Likewise.
15687 * compare-elim.c (find_flags_uses_in_insn): Likewise.
15688 (try_eliminate_compare): Likewise.
15689 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15690 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15691 (remove_reg_equal_equiv_notes_for_defs): Likewise.
15692 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15693 (word_dce_process_block, dce_process_block): Likewise.
15694 * ddg.c (def_has_ccmode_p): Likewise.
15695 * df-core.c (df_bb_regno_first_def_find): Likewise.
15696 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15697 * df-problems.c (df_rd_simulate_one_insn): Likewise.
15698 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15699 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15700 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15701 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15702 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15703 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15704 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15705 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15706 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15707 * fwprop.c (local_ref_killed_between_p): Likewise.
15708 (all_uses_available_at, free_load_extend): Likewise.
15709 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15710 * hw-doloop.c (scan_loop): Likewise.
15711 * ifcvt.c (dead_or_predicable): Likewise.
15712 * init-regs.c (initialize_uninitialized_regs): Likewise.
15713 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15714 (process_bb_node_lives): Likewise.
15715 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15716 (find_moveable_pseudos): Likewise.
15717 * loop-invariant.c (check_dependencies, record_uses): Likewise.
15718 * recog.c (peep2_find_free_register): Likewise.
15719 * ree.c (get_defs): Likewise.
15720 * regstat.c (regstat_bb_compute_ri): Likewise.
15721 (regstat_bb_compute_calls_crossed): Likewise.
15722 * sched-deps.c (find_inc, find_mem): Likewise.
15723 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15724 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15725 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15726 (prepare_shrink_wrap): Likewise.
15727 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15728 * web.c (union_defs, pass_web::execute): Likewise.
15729 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15730 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15731
15732 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
15733
15734 * lra-assign.c (assign_by_spills): Add code to assign vector regs
15735 to inheritance pseudos.
15736 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15737
15738 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
15739
15740 PR target/61415
15741 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15742 (BU_MISC_2): Rename to ...
15743 (BU_LDBL128_2): ... this.
15744 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15745 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15746 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15747 RS6000_BTM_LDBL128.
15748 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15749 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15750 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15751 (unpacktf_1): Likewise.
15752 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15753 (__builtin_longdouble_dw1): Likewise.
15754 * doc/sourcebuild.texi (longdouble128): Document.
15755
15756 2014-06-13 Jeff Law <law@redhat.com>
15757
15758 PR rtl-optimization/61094
15759 PR rtl-optimization/61446
15760 * ree.c (combine_reaching_defs): Get the mode for the copy from
15761 the extension insn rather than the defining insn.
15762
15763 2014-06-13 Dehao Chen <dehao@google.com>
15764
15765 * dwarf2out.c (add_linkage_name): Emit more linkage name.
15766
15767 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
15768
15769 * doc/install.texi (--enable-linker-plugin-configure-flags)
15770 (--enable-linker-plugin-flags): Document new flags.
15771
15772 2014-06-13 Martin Jambor <mjambor@suse.cz>
15773
15774 PR ipa/61186
15775 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15776 cache_token if returning early.
15777
15778 2014-06-13 Nick Clifton <nickc@redhat.com>
15779
15780 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15781 requested alignment is active.
15782 (LABEL_ALIGN): Likewise.
15783 (LOOP_ALIGN): Likewise.
15784
15785 2014-06-13 Richard Biener <rguenther@suse.de>
15786
15787 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15788 Rewrite to propagate the VN result into all uses where
15789 possible and to remove stmts becoming dead because of that.
15790 (eliminate): Generalize stmt removal handling, remove in
15791 reverse dominator order to support proper debug stmt
15792 generation. Update stmts before removing stmts.
15793 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15794
15795 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15796
15797 PR tree-optimization/61375
15798 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15799 symbolic number cannot be represented in an uint64_t.
15800 (find_bswap_or_nop_1): Likewise.
15801
15802 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15803
15804 * symtab.c (symtab_node::reset_section): New method.
15805 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15806 for localization.
15807 * cgraph.h (reset_section): Declare.
15808 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15809 do not consider comdat locals.
15810 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15811 for new symbol.
15812 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15813 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15814 reset sections of symbols dragged out of the comdats.
15815 (function_and_variable_visibility): Reset sections of
15816 localized symbols.
15817
15818 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15819
15820 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15821 to use symtab and decl_binds_to_current_def_p
15822 * tree-vectorizer.c (increase_alignment): Increase alignment
15823 of alias target, too.
15824
15825 2014-06-12 Jakub Jelinek <jakub@redhat.com>
15826
15827 PR middle-end/61486
15828 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15829 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15830 if outer combined construct is distribute.
15831 (gimplify_omp_for): For OMP_DISTRIBUTE set
15832 gimplify_omp_ctxp->distribute.
15833 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15834 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15835 mapping into decl map.
15836
15837 2014-06-12 Jason Merrill <jason@redhat.com>
15838
15839 * common.opt (fabi-version): Change default to 0.
15840
15841 2014-06-12 Jason Merrill <jason@redhat.com>
15842
15843 * toplev.c (process_options): Reject -fabi-version=1.
15844
15845 2014-06-12 Jeff Law <law@redhat.com>
15846
15847 PR tree-optimization/61009
15848 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15849 value when we stop processing a block due to problematic PHIs.
15850
15851 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
15852
15853 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15854 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15855 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15856 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15857 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15858 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15859 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15860 are not in the spec.
15861
15862 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
15863
15864 PR target/59843
15865 * config/aarch64/aarch64-modes.def: Add V1DFmode.
15866 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15867 Support V1DFmode.
15868
15869 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
15870
15871 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15872
15873 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
15874
15875 PR target/61443
15876 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15877 loading from address spaces.
15878
15879 2014-06-12 Martin Liska <mliska@suse.cz>
15880
15881 PR ipa/61462
15882 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15883 statement is reachable.
15884
15885 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15886
15887 * symtab.c (section_hash): New hash.
15888 (symtab_unregister_node): Clear section before freeing.
15889 (hash_section_hash_entry): New haser.
15890 (eq_sections): New function.
15891 (symtab_node::set_section_for_node): New method.
15892 (set_section_1): Update.
15893 (symtab_node::set_section): Take string instead of tree as parameter.
15894 (symtab_resolve_alias): Update.
15895 * cgraph.h (section_hash_entry_d): New structure.
15896 (section_hash_entry): New typedef.
15897 (cgraph_node): Change comdat_group_ to x_comdat_group,
15898 change section_ to x_section and turn into section_hash_entry;
15899 update accestors; put set_section_for_node offline.
15900 * tree.c (decl_section_name): Turn into string.
15901 (set_decl_section_name): Change parameter to be string.
15902 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15903 * sdbout.c (sdbout_one_type): Update.
15904 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15905 * varasm.c (IN_NAMED_SECTION, get_named_section,
15906 resolve_unique_section, hot_function_section, get_named_text_section,
15907 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15908 make_decl_rtl, default_unique_section): Update.
15909 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15910 (c6x_elf_unique_section): Update.
15911 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15912 * config/pa/pa.c (pa_function_section): Update.
15913 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15914 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15915 * config/arc/arc.c (arc_in_small_data_p): Update.
15916 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15917 * config/mcore/mcore.c (mcore_unique_section): Update.
15918 * config/mips/mips.c (mips16_build_function_stub): Update.
15919 (mips16_build_call_stub): Update.
15920 (mips_function_rodata_section): Update.
15921 (mips_in_small_data_p): Update.
15922 * config/score/score.c (score_in_small_data_p): Update.
15923 * config/rx/rx.c (rx_in_small_data): Update.
15924 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15925 (rs6000_xcoff_asm_named_section): Update.
15926 (rs6000_xcoff_unique_section): Update.
15927 * config/frv/frv.c (frv_string_begins_with): Update.
15928 (frv_in_small_data_p): Update.
15929 * config/v850/v850.c (v850_encode_data_area): Update.
15930 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
15931 (bfin_handle_l1_data_attribute): Update.
15932 (bfin_handle_l2_attribute): Update.
15933 * config/mep/mep.c (mep_unique_section): Update.
15934 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
15935 Update.
15936 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
15937 (h8300_handle_tiny_data_attribute): Update.
15938 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
15939 (m32r_in_small_data_p): Update.
15940 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
15941 * config/i386/i386.c (ix86_in_large_data_p): Update.
15942 * config/i386/winnt.c (i386_pe_unique_section): Update.
15943 * config/darwin.c (darwin_function_section): Update.
15944 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
15945 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15946 (new_emutls_decl): Update.
15947 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15948 input_varpool_node): Update.
15949 (ead_string_cst): Turn to ...
15950 (read_string): ... this one.
15951 * dwarf2out.c (secname_for_decl): Update.
15952 * asan.c (asan_protect_global): Update.
15953
15954 2014-06-11 DJ Delorie <dj@redhat.com>
15955
15956 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15957 cache lines.
15958 * config/rx/rx.c (rx_option_override): Likewise.
15959 (rx_align_for_label): Likewise.
15960
15961 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15962
15963 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15964
15965 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15966 prototype.
15967
15968 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15969
15970 * common.md: New file.
15971 * doc/md.texi: Update description of generic, machine-independent
15972 constraints.
15973 * config/s390/constraints.md (e): Delete.
15974 * Makefile.in (md_file): Include common.md.
15975 * config/m32c/t-m32c (md_file): Likewise.
15976 * genpreds.c (general_mem): New array.
15977 (generic_constraint_letters): Remove constraints now defined by
15978 common.md.
15979 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15980 Allow the first character to be '<' or '>' as well.
15981 * genoutput.c (general_mem): New array.
15982 (indep_constraints): Remove constraints now defined by common.md.
15983 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15984 Remove special handling of 'm'.
15985 * ira-costs.c (record_reg_classes): Remove special handling of
15986 constraints now defined by common.md.
15987 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15988 * ira-lives.c (single_reg_class): Likewise.
15989 (ira_implicitly_set_insn_hard_regs): Likewise.
15990 * lra-constraints.c (reg_class_from_constraints): Likewise.
15991 (process_alt_operands, process_address, curr_insn_transform): Likewise.
15992 * postreload.c (reload_cse_simplify_operands): Likewise.
15993 * reload.c (push_secondary_reload, scratch_reload_class)
15994 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15995 * reload1.c (maybe_fix_stack_asms): Likewise.
15996 * targhooks.c (default_secondary_reload): Likewise.
15997 * stmt.c (parse_output_constraint): Likewise.
15998 * recog.c (preprocess_constraints): Likewise.
15999 (constrain_operands, peep2_find_free_register): Likewise.
16000 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16001 must be handled specially.
16002
16003 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16004
16005 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16006 * genpreds.c (have_const_dbl_constraints): Delete.
16007 (add_constraint): Don't set it.
16008 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16009 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16010 constraints using the lookup_constraint logic.
16011 * ira-lives.c (single_reg_class): Likewise.
16012 * ira.c (ira_setup_alts): Likewise.
16013 * lra-constraints.c (process_alt_operands): Likewise.
16014 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16015 * reload.c (find_reloads): Likewise.
16016
16017 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16018
16019 * genpreds.c (const_int_start, const_int_end): New variables.
16020 (choose_enum_order): Output CONST_INT constraints before memory
16021 constraints.
16022 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16023 Add CT_CONST_INT.
16024 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16025 * ira.c (ira_setup_alts): Likewise.
16026 * lra-constraints.c (process_alt_operands): Likewise.
16027 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16028 * reload.c (find_reloads): Likewise.
16029
16030 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16031
16032 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16033 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16034 * recog.c (preprocess_constraints): Update accordingly.
16035
16036 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16037
16038 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16039 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16040 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16041 * genpreds.c (print_type_tree): New function.
16042 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16043 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16044 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16045 Write out enum constraint_type and get_constraint_type.
16046 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16047 constraint_num rather than a constraint string.
16048 (satisfies_address_constraint_p): Likewise.
16049 (reg_class_from_constraints): Avoid old constraint macros.
16050 (process_alt_operands, process_address_1): Likewise.
16051 (curr_insn_transform): Likewise.
16052 * ira-costs.c (record_reg_classes): Likewise.
16053 (record_operand_costs): Likewise.
16054 * ira-lives.c (single_reg_class): Likewise.
16055 (ira_implicitly_set_insn_hard_regs): Likewise.
16056 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16057 * postreload.c (reload_cse_simplify_operands): Likewise.
16058 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16059 (constrain_operands, peep2_find_free_register): Likewise.
16060 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16061 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16062 * reload1.c (maybe_fix_stack_asms): Likewise.
16063 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16064 * targhooks.c (default_secondary_reload): Likewise.
16065 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16066 to EXTRA_CONSTRAINT_STR.
16067 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16068
16069 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16070
16071 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16072 (write_constraint_satisfied_p_array): ...this new function.
16073 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16074 an array.
16075 (write_insn_preds_c): Update accordingly.
16076
16077 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16078
16079 * genpreds.c (write_lookup_constraint): Rename to...
16080 (write_lookup_constraint_1): ...this.
16081 (write_lookup_constraint_array): New function.
16082 (write_tm_preds_h): Define lookup_constraint as an inline function
16083 that uses write_lookup_constraint_array where possible.
16084 (write_insn_preds_c): Update for the changes above.
16085
16086 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16087
16088 * doc/md.texi (regclass_for_constraint): Rename to...
16089 (reg_class_for_constraint): ...this.
16090 * genpreds.c (num_constraints, enum_order, register_start)
16091 (register_end, satisfied_start, memory_start, memory_end)
16092 (address_start, address_end): New variables.
16093 (add_constraint): Count the number of constraints.
16094 (choose_enum_order): New function.
16095 (write_enum_constraint_num): Iterate over enum_order.
16096 (write_regclass_for_constraint): Rename to...
16097 (write_reg_class_for_constraint_1): ...this and update output
16098 accordingly.
16099 (write_constraint_satisfied_p): Rename to...
16100 (write_constraint_satisfied_p_1): ...this and update output
16101 accordingly. Do nothing if all extra constraints are register
16102 constraints.
16103 (write_insn_extra_memory_constraint): Delete.
16104 (write_insn_extra_address_constraint): Delete.
16105 (write_range_function): New function.
16106 (write_tm_preds_h): Define constraint_satisfied_p and
16107 reg_class_for_constraint as inline functions that do a range check
16108 before calling the out-of-line function. Use write_range_function
16109 to implement insn_extra_{register,memory,address}_constraint,
16110 the first of which is new.
16111 (write_insn_preds_c): Update after above changes to write_* functions.
16112 (main): Call choose_enum_order.
16113
16114 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16115
16116 PR tree-optimization/61306
16117 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16118 expression instead of its size.
16119 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16120 false to prevent optimization when the result is unpredictable due to
16121 arithmetic right shift of signed type with highest byte is set.
16122 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16123 (init_symbolic_number): Likewise.
16124 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16125 when the result is unpredictable due to sign extension.
16126
16127 2014-06-11 Terry Guo <terry.guo@arm.com>
16128
16129 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16130 (*thumb1_addsi3): Ditto.
16131 (*thumb_subdi3): Ditto.
16132 (thumb1_subsi3_insn): Ditto.
16133 (*thumb_mulsi3): Ditto.
16134 (*thumb_mulsi3_v6): Ditto.
16135 (*thumb1_andsi3_insn): Ditto.
16136 (thumb1_bicsi3): Ditto.
16137 (*thumb1_iorsi3_insn): Ditto.
16138 (*thumb1_xorsi3_insn): Ditto.
16139 (*thumb1_ashlsi3): Ditto.
16140 (*thumb1_ashrsi3): Ditto.
16141 (*thumb1_lshrsi3): Ditto.
16142 (*thumb1_rotrsi3): Ditto.
16143 (*thumb1_negdi2): Ditto.
16144 (*thumb1_negsi2): Ditto.
16145 (*thumb1_abssi2): Ditto.
16146 (*thumb1_neg_abssi2): Ditto.
16147 (*thumb1_one_cmplsi2): Ditto.
16148 (*thumb1_zero_extendhisi2): Ditto.
16149 (*thumb1_zero_extendqisi2): Ditto.
16150 (*thumb1_zero_extendqisi2_v6): Ditto.
16151 (thumb1_extendhisi2): Ditto.
16152 (thumb1_extendqisi2): Ditto.
16153 (*thumb1_movdi_insn): Ditto.
16154 (*thumb1_movsi_insn): Ditto.
16155 (*thumb1_movhi_insn): Ditto.
16156 (thumb_movhi_clobber): Ditto.
16157 (*thumb1_movqi_insn): Ditto.
16158 (*thumb1_movhf): Ditto.
16159 (*thumb1_movsf_insn): Ditto.
16160 (*thumb_movdf_insn): Ditto.
16161 (movmem12b): Ditto.
16162 (movmem8b): Ditto.
16163 (cbranchqi4): Ditto.
16164 (cbranchsi4_insn): Ditto.
16165 (cbranchsi4_scratch): Ditto.
16166 (*negated_cbranchsi4): Ditto.
16167 (*tbit_cbranch): Ditto.
16168 (*tlobits_cbranch): Ditto.
16169 (*tstsi3_cbranch): Ditto.
16170 (*cbranchne_decr1): Ditto.
16171 (*addsi3_cbranch): Ditto.
16172 (*addsi3_cbranch_scratch): Ditto.
16173 (*thumb_cmpdi_zero): Ditto.
16174 (cstoresi_eq0_thumb1): Ditto.
16175 (cstoresi_ne0_thumb1): Ditto.
16176 (*cstoresi_eq0_thumb1_insn): Ditto.
16177 (*cstoresi_ne0_thumb1_insn): Ditto.
16178 (cstoresi_nltu_thumb1): Ditto.
16179 (cstoresi_ltu_thumb1): Ditto.
16180 (thumb1_addsi3_addgeu): Ditto.
16181 (*thumb_jump): Ditto.
16182 (*call_reg_thumb1_v5): Ditto.
16183 (*call_reg_thumb1): Ditto.
16184 (*call_value_reg_thumb1_v5): Ditto.
16185 (*call_value_reg_thumb1): Ditto.
16186 (*call_insn): Ditto.
16187 (*call_value_insn): Ditto.
16188 (thumb1_casesi_internal_pic): Ditto.
16189 (thumb1_casesi_dispatch): Ditto.
16190 (*thumb1_indirect_jump): Ditto.
16191 (prologue_thumb1_interwork): Ditto.
16192 (*epilogue_insns): Ditto.
16193 (consttable_1): Ditto.
16194 (consttable_2): Ditto.
16195 (tablejump): Ditto.
16196 (*thumb1_tablejump): Ditto.
16197 (thumb_eh_return): Ditto.
16198 (define_peephole2): Two of them are thumb1 only and got moved into
16199 new file thumb1.md.
16200 (define_split): Six of them are thumb1 only and got moved into new
16201 file thumb1.md.
16202 * config/arm/thumb1.md: New file comprised of above thumb1 only
16203 patterns.
16204
16205 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16206
16207 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16208 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16209 dependencies.
16210 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16211 (aarch64_crc_builtin_datum): New struct.
16212 (aarch64_crc_builtin_data): New.
16213 (aarch64_init_crc32_builtins): New function.
16214 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16215 (aarch64_crc32_expand_builtin): New.
16216 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16217 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16218 __ARM_FEATURE_CRC32 when appropriate.
16219 (TARGET_CRC32): Define.
16220 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16221 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16222 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16223 (aarch64_<crc_variant>): New pattern.
16224 * config/aarch64/arm_acle.h: New file.
16225 * config/aarch64/iterators.md (CRC): New int iterator.
16226 (crc_variant, crc_mode): New int attributes.
16227 * doc/aarch64-acle-intrinsics.texi: New file.
16228 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16229 Include aarch64-acle-intrinsics.texi.
16230
16231 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16232
16233 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16234 check for stores group of length 3.
16235 (vect_permute_store_chain): New permutations for stores group of
16236 length 3.
16237 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16238 of vec_perm_shuffle for the new permutations.
16239
16240 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16241
16242 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16243 table rewriting temporarily on targets not supporting ONE_ONLY.
16244
16245 2014-06-11 Richard Biener <rguenther@suse.de>
16246
16247 PR middle-end/61437
16248 Revert
16249 2014-06-04 Richard Biener <rguenther@suse.de>
16250
16251 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16252 TREE_PUBLIC and DECL_EXTERNAL decls.
16253
16254 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16255
16256 * varasm.c (set_implicit_section): New function.
16257 (resolve_unique_section): Use it to set implicit section
16258 for aliases, too.
16259 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16260 (default_function_section): Likewise.
16261 (decl_binds_to_current_def_p): Constify argument.
16262 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16263 * asan.c (asan_protect_global): Use
16264 symtab_get_node (decl)->implicit_section.
16265 * symtab.c (dump_symtab_base): Dump implicit sections.
16266 (verify_symtab_base): Verify sanity of sectoins and comdats.
16267 (symtab_resolve_alias): Alias share the section of its target.
16268 (set_section_1): New function.
16269 (symtab_node::set_section): Move here, recurse to aliases.
16270 (verify_symtab): Check for duplicated symtab lists.
16271 * tree-core.h (implicit_section_name_p): Remove.
16272 * tree-vect-data-refs.c: Include varasm.h.
16273 (vect_can_force_dr_alignment_p): Fix conditional on when
16274 decl bints to current definition; use
16275 symtab_get_node (decl)->implicit_section.
16276 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16277 * cgraph.h (struct symtab_node): Add implicit_section.
16278 (set_section): Rename to ...
16279 (set_section_for_node): ... this one.
16280 (set_section): Declare.
16281 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16282 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16283 input_overwrite_node, input_varpool_node): Stream implicit_section.
16284 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16285 removal; it will fail in LTO.
16286
16287 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16288
16289 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16290 Change second alternative type to f_mcr.
16291 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16292 and 12th alternatives' types to f_mcr and f_mrc.
16293 (*movdi_aarch64): Same for 12th and 13th alternatives.
16294 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16295 (aarch64_movtilow_tilow): Change type to fmov.
16296
16297 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16298
16299 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16300 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16301
16302 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16303
16304 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16305 New expander.
16306 (aarch64_sqrdmulh_lane<mode>): Likewise.
16307 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16308 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16309 (aarch64_sqdmulh_laneq<mode>): New expander.
16310 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16311 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16312 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16313 (aarch64_sqdmulh_lane<mode>): New expander.
16314 (aarch64_sqrdmulh_lane<mode>): Likewise.
16315 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16316 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16317 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16318 (aarch64_sqdmlal_laneq<mode>): Likewise.
16319 (aarch64_sqdmlsl_lane<mode>): Likewise.
16320 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16321 (aarch64_sqdmlal2_lane<mode>): Likewise.
16322 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16323 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16324 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16325 (aarch64_sqdmull_lane<mode>): Likewise.
16326 (aarch64_sqdmull_laneq<mode>): Likewise.
16327 (aarch64_sqdmull2_lane<mode>): Likewise.
16328 (aarch64_sqdmull2_laneq<mode>): Likewise.
16329
16330 2014-06-10 Richard Biener <rguenther@suse.de>
16331
16332 PR tree-optimization/61438
16333 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16334 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16335 insertion of IVs if running PRE.
16336 (eliminate): Adjust.
16337 (pass_pre::execute): Likewise.
16338 (pass_fre::execute): Likewise.
16339
16340 2014-06-10 Richard Biener <rguenther@suse.de>
16341
16342 PR middle-end/61456
16343 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16344 Do not use the main variant for the type comparison.
16345 (ncr_compar): Likewise.
16346 (nonoverlapping_component_refs_p): Likewise.
16347
16348 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16349
16350 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16351 REG_CFA_RESTORE mode.
16352
16353 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16354
16355 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16356 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16357 expand_vec_perm_pblendv.
16358
16359 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16360
16361 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16362 available.
16363 Simplify description of __crc32d and __crc32cd intrinsics.
16364 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16365 availability.
16366
16367 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16368
16369 PR lto/61334
16370 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16371 * config.in: Regenerate.
16372 * configure: Likewise.
16373
16374 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16375
16376 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16377 and public vars.
16378 (intersect_static_var_sets): Remove.
16379 (propagate): Do not prune local statics.
16380
16381 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16382
16383 PR fortran/60928
16384 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16385 Set lastprivate_firstprivate even if omp_private_outer_ref
16386 langhook returns true.
16387 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16388 langhook, call unshare_expr on new_var and call
16389 build_outer_var_ref to get the last argument.
16390
16391 2014-06-10 Marek Polacek <polacek@redhat.com>
16392
16393 PR c/60988
16394 * doc/extend.texi: Add cindex for transparent_union.
16395
16396 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16397
16398 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16399 init_symbolic_number ().
16400
16401 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16402
16403 PR middle-end/61141
16404 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16405 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16406 (verify_rtl_sharing): Likewise.
16407
16408 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16409
16410 PR c++/54442
16411 * tree.c (build_qualified_type): Use a canonical type for
16412 TYPE_CANONICAL.
16413
16414 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16415
16416 * config/arm/arm-modes.def: Remove XFmode.
16417
16418 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16419
16420 PR target/61062
16421 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16422 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16423 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16424 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16425 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16426 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16427 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16428 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16429 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16430
16431 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16432
16433 * tree-core.h (tree_decl_with_vis): Remove section_name.
16434
16435 2014-06-09 Kito Cheng <kito@0xlab.org>
16436
16437 * ira.c (ira): Don't call init_caller_save if LRA enabled
16438 since LRA use its own infrastructure to handle that.
16439
16440 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16441
16442 * symtab.c (dump_symtab_base): Update dumping.
16443 (symtab_make_decl_local): Clear only DECL_COMDAT.
16444 * tree-vect-data-refs.c (Check that variable is static before
16445 tampering with sections.
16446 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16447 (cgraph_create_virtual_clone): Likewise.
16448 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16449 (decl_section_name, set_decl_section_name): New accessors.
16450 (find_decls_types_r): Do not walk section name
16451 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16452 (decl_comdat_group, decl_comdat_group_id): Constify.
16453 (decl_section_name, set_decl_section_name): Update.
16454 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16455 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16456 (cgraph_make_node_local_1): Clear section and comdat group.
16457 * cgraph.h (set_comdat_group): Sanity check.
16458 (get_section, set_section): New.
16459 * ipa-comdats.c (ipa_comdats): Use get_section.
16460 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16461 * lto-streamer-out.c: Do not follow section names.
16462 * c-family/c-common.c (handle_section_attribute): Update.
16463 * lto-cgraph.c (lto_output_node): Output section.
16464 (lto_output_varpool_node): Likewise.
16465 (read_comdat_group): Rename to ...
16466 (read_identifier): ... this one.
16467 (read_string_cst): New function.
16468 (input_node, input_varpool_node): Input section names.
16469 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16470 (new_emutls_decl): Update.
16471 (secname_for_decl): Check section names only of static vars.
16472 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16473 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16474 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16475 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16476 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16477 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16478 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16479 * config/v850/v850.c (v850_insert_attributes): Likewise.
16480 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16481 Likewise.
16482 (h8300_handle_tiny_data_attribute): Likewise.
16483 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16484 (bfin_handle_l2_attribute): Likewise.
16485
16486 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16487
16488 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16489 remove static initializer.
16490
16491 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16492
16493 * varasm.c (use_blocks_for_decl_p): Check symbol table
16494 instead of alias attribute.
16495 (place_block_symbol): Recurse on aliases.
16496
16497 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16498
16499 * ipa-visibility.c: Include varasm.h
16500 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16501
16502 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16503
16504 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16505 outputting aliases.
16506
16507 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16508
16509 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16510 from test_insn into GGC space escape via SET_SRC.
16511
16512 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16513
16514 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16515 call statement, if any.
16516 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16517 statements, if any. Tidy up.
16518
16519 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16520
16521 PR target/61431
16522 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16523 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16524 handles swapping the two 64-bit double words on little endian
16525 systems. Include V1TImode and optionally TImode in VSX_LE so that
16526 these types are properly swapped. Change all of the insns and
16527 splits that do the 64-bit swaps to use VSX_LE.
16528 (vsx_le_perm_load_<mode>): Likewise.
16529 (vsx_le_perm_store_<mode>): Likewise.
16530 (splitters for little endian memory operations): Likewise.
16531 (vsx_xxpermdi2_le_<mode>): Likewise.
16532 (vsx_lxvd2x2_le_<mode>): Likewise.
16533 (vsx_stxvd2x2_le_<mode>): Likewise.
16534
16535 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16536
16537 PR target/61423
16538 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16539 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16540 and corresponding splitters. Zero extend general register
16541 or memory input operand to XMM temporary. Enable for
16542 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16543 (floatunssi<mode>2): Update expander predicate.
16544
16545 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16546
16547 PR rtl-optimization/61325
16548 * lra-constraints.c (process_address_1): Check scale equal to one
16549 to prevent transformation: base + scale * index => base + new_reg.
16550
16551 2014-06-06 Richard Biener <rguenther@suse.de>
16552
16553 PR tree-optimization/59299
16554 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16555 a def operand.
16556 (nearest_common_dominator_of_uses): Likewise.
16557 (statement_sink_location): Adjust. Support sinking loads.
16558
16559 2014-06-06 Martin Jambor <mjambor@suse.cz>
16560
16561 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16562 (build_agg_jump_func_from_list): Likewise.
16563 (determine_known_aggregate_parts): Renamed to
16564 determine_locally_known_aggregate_parts. Moved some functionality
16565 to the two functions above, removed bound checks.
16566
16567 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16568
16569 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16570 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16571 (aarch64_progress_pointer): Likewise.
16572 (aarch64_copy_one_part_and_move_pointers): Likewise.
16573 (aarch64_expand_movmen): Likewise.
16574 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16575 * config/aarch64/aarch64.md (movmem<mode>): New.
16576
16577 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16578
16579 * targhooks.c (default_add_stmt_cost): Call target specific
16580 hook instead of default one.
16581
16582 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16583
16584 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16585 endianness instead of host endianness.
16586 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16587 comments.
16588
16589 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16590
16591 PR debug/53927
16592 * function.c (instantiate_decls): Process the saved static chain.
16593 (expand_function_start): If not optimizing, save the static chain
16594 onto the stack.
16595 * tree-nested.c (convert_all_function_calls): Always create the static
16596 chain for nested functions if not optimizing.
16597
16598 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16599
16600 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16601
16602 2014-06-06 Richard Biener <rguenther@suse.de>
16603
16604 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16605 (construct_init_block): Likewise.
16606 (construct_exit_block): Likewise.
16607 (pass_expand::execute): Likewise.
16608 * graphite.c (graphite_transforms): Replace check for current_loops
16609 with a check for > 1 loops.
16610 (pass_graphite_transforms::execute): Adjust.
16611 * ipa-split.c (split_function): Remove check for current_loops.
16612 * omp-low.c (expand_parallel_call): Likewise.
16613 (expand_omp_for_init_counts): Likewise.
16614 (extract_omp_for_update_vars): Likewise.
16615 (expand_omp_for_generic): Likewise.
16616 (expand_omp_sections): Likewise.
16617 (expand_omp_target): Likewise.
16618 * tracer.c (tail_duplicate): Likewise.
16619 (pass_tracer::execute): Likewise.
16620 * trans-mem.c (expand_transaction): Likewise.
16621 * tree-complex.c (expand_complex_div_wide): Likewise.
16622 * tree-eh.c (lower_resx): Likewise.
16623 (cleanup_empty_eh_merge_phis): Likewise.
16624 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16625 current_loops with a check for > 1 loops.
16626 (pass_predcom::execute): Adjust.
16627 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16628 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16629 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16630 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16631 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16632 * tree-switch-conversion.c (process_switch): Likewise.
16633 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16634 * tree-vrp.c (vrp_visit_phi_node): Likewise.
16635 (execute_vrp): Likewise.
16636 * ubsan.c (ubsan_expand_null_ifn): Likewise.
16637
16638 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16639
16640 * rtl.h (insn_location): Declare.
16641 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16642 with UNKNOWN_LOCATION.
16643 * emit-rtl.c (insn_location): New function.
16644 * final.c (notice_source_line): Check that the instruction has a
16645 location before retrieving it and use insn_location.
16646 * modulo-sched.c (loop_single_full_bb_p): Likewise.
16647 * print-rtl.c (print_rtx): Likewise.
16648
16649 2014-06-06 Richard Biener <rguenther@suse.de>
16650
16651 * passes.def: Move 2nd VRP pass before phi-only-cprop.
16652
16653 2014-06-06 Christian Bruel <christian.bruel@st.com>
16654
16655 PR tree-optimization/43934
16656 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16657 cost.
16658
16659 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16660
16661 * ira-lives.c (single_reg_class): Add missing break. Explicitly
16662 return NO_REGS for extra address and memory constraints. Handle
16663 operands that match (or are equivalent to something that matches)
16664 extra constant constraints. Ignore other non-register operands.
16665
16666 2014-06-06 Alan Modra <amodra@gmail.com>
16667
16668 PR target/61300
16669 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16670 * doc/tm.texi: Regenerate.
16671 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16672 Use throughout in place of REG_PARM_STACK_SPACE.
16673 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16674 "incoming" param. Pass to rs6000_function_parms_need_stack.
16675 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16676 prototype_p when incoming. Use function decl when incoming
16677 to handle K&R style functions.
16678 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16679 (INCOMING_REG_PARM_STACK_SPACE): Define.
16680
16681 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16682
16683 PR target/52472
16684 * cfgexpand.c (expand_debug_expr): Use address space of nested
16685 TREE_TYPE for ADDR_EXPR and MEM_REF.
16686
16687 2014-06-05 Jeff Law <law@redhat.com>
16688
16689 PR tree-optimization/61289
16690 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16691 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
16692 looking for those which match LHS. All callers changed.
16693 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16694 parameters and code which manipulated them. All callers changed.
16695 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16696 and DST_MAP parameters. Simplify invalidation code by just calling
16697 invalidate_equivalences. All callers changed.
16698 (thread_across_edge): Simplify now that we don't need to maintain
16699 the map of equivalences to invalidate.
16700
16701 2014-06-05 Kai Tietz <ktietz@redhat.com>
16702 Richard Henderson <rth@redhat.com>
16703
16704 PR target/46219
16705 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16706 checking for !TARGET_X32.
16707 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16708 (sibcall_intern): New define_insn, plus required peepholes.
16709 (sibcall_pop_intern): Likewise.
16710 (sibcall_value_intern): Likewise.
16711 (sibcall_value_pop_intern): Likewise.
16712
16713 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
16714
16715 * tree-inline.c (tree_function_versioning): Check DF info existence
16716 before accessing it.
16717
16718 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16719
16720 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16721 frame_size.
16722 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16723 aarch64_frame hard_fp_offset and frame_size.
16724 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16725 frame_size; remove original_frame_size.
16726 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16727 (aarch64_initial_elimination_offset): Remove frame_size and
16728 offset. Use aarch64_frame frame_size.
16729
16730 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16731 Jiong Wang <jiong.wang@arm.com>
16732 Renlin <renlin.li@arm.com>
16733
16734 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16735 initialization of R30 offset. Update offset. Iterate core
16736 regisers upto X30. Remove X29, X30 specific code.
16737
16738 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16739 Jiong Wang <jiong.wang@arm.com>
16740
16741 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16742 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16743 (aarch64_register_saved_on_entry): Adjust test.
16744
16745 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16746
16747 * config/aarch64/aarch64.h (machine_function): Move
16748 saved_varargs_size from here...
16749 (aarch64_frame): ... to here.
16750
16751 * config/aarch64/aarch64.c (aarch64_expand_prologue)
16752 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16753 (aarch64_initial_elimination_offset)
16754 (aarch64_setup_incoming_varargs): Adjust location of
16755 saved_varargs_size.
16756
16757 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16758
16759 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16760 layout comment.
16761
16762 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
16763 Prachi Godbole <Prachi.Godbole@imgtec.com>
16764
16765 * config/mips/mips-cpus.def: Add definition for p5600. Updated
16766 mips32r5 entry to use PROCESSOR_P5600.
16767 * config/mips/mips-tables.opt: Regenerate.
16768 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16769 * config/mips/mips.c (mips_fmadd_bypass): New function.
16770 (mips_rtx_cost_data): Add costs for p5600.
16771 (mips_issue_rate): Add support for p5600.
16772 (mips_multipass_dfa_lookahead): Likewise.
16773 * config/mips/mips.h (TUNE_P5600): New define.
16774 (TUNE_MACC_CHAINS): Add TUNE_P5600.
16775 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16776 * config/mips/mips.md: Include p5600.md.
16777 (processor): Add p5600.
16778 * config/mips/p5600.md: New file.
16779
16780 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
16781
16782 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16783 * config/i386/predicates.md (palignr_operand): New.
16784 Indicates if permutation is suitable for palignr instruction.
16785
16786 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
16787
16788 PR tree-optimization/61319
16789 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16790 stmt belongs to loop.
16791
16792 2014-06-05 Richard Biener <rguenther@suse.de>
16793
16794 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16795 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16796 (lookup_tmp_var): Adjust.
16797 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16798
16799 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16800
16801 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16802
16803 2014-06-05 Marek Polacek <polacek@redhat.com>
16804
16805 PR c/49706
16806 * doc/invoke.texi: Document -Wlogical-not-parentheses.
16807
16808 2014-06-04 Tom de Vries <tom@codesourcery.com>
16809
16810 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16811 CONST_INT.
16812
16813 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
16814
16815 PR tree-optimization/61385
16816 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16817
16818 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
16819
16820 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
16821 changed to use fatal_error.
16822 (main): Ensure lto_wrapper_cleanup is run atexit.
16823
16824 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16825
16826 * lra-constraints.c (valid_address_p): Move earlier in file.
16827 (address_eliminator): New structure.
16828 (satisfies_memory_constraint_p): New function.
16829 (satisfies_address_constraint_p): Likewise.
16830 (process_alt_operands, process_address, curr_insn_transform): Use them.
16831
16832 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16833
16834 * lra-int.h (lra_static_insn_data): Make operand_alternative a
16835 const pointer.
16836 (target_lra_int, default_target_lra_int, this_target_lra_int)
16837 (op_alt_data): Delete.
16838 * lra.h (lra_init): Delete.
16839 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16840 (init_insn_code_data_once): Remove op_alt_data handling.
16841 (finish_insn_code_data_once): Likewise.
16842 (init_op_alt_data): Delete.
16843 (get_static_insn_data): Initialize operand_alternative to null.
16844 (free_insn_recog_data): Cast operand_alternative before freeing it.
16845 (setup_operand_alternative): Take the operand_alternative as
16846 parameter and assume it isn't already cached in the static
16847 insn data.
16848 (lra_set_insn_recog_data): Update accordingly.
16849 (lra_init): Delete.
16850 * ira.c (ira_init): Don't call lra_init.
16851 * target-globals.h (this_target_lra_int): Declare.
16852 (target_globals): Remove lra_int.
16853 (restore_target_globals): Update accordingly.
16854 * target-globals.c: Don't include lra-int.h.
16855 (default_target_globals, save_target_globals): Remove lra_int.
16856
16857 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16858
16859 * recog.h (operand_alternative): Convert reg_class, reject,
16860 matched and matches into bitfields.
16861 (preprocess_constraints): New overload.
16862 (preprocess_insn_constraints): New function.
16863 (preprocess_constraints): Take the insn as parameter.
16864 (recog_op_alt): Change into a pointer.
16865 (target_recog): Add x_op_alt.
16866 * recog.c (asm_op_alt): New variable.
16867 (recog_op_alt): Change into a pointer.
16868 (preprocess_constraints): New overload, replacing the old function
16869 definition with one that doesn't use global state.
16870 (preprocess_insn_constraints): New function.
16871 (preprocess_constraints): Use them. Take the insn as parameter.
16872 Use asm_op_alt for asms.
16873 (recog_init): Free existing x_op_alt entries.
16874 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16875 pointer const.
16876 (make_early_clobber_and_input_conflicts): Likewise.
16877 (process_bb_node_lives): Pass the insn to process_constraints.
16878 * reg-stack.c (check_asm_stack_operands): Likewise.
16879 (subst_asm_stack_regs): Likewise.
16880 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16881 * regrename.c (build_def_use): Likewise.
16882 * sched-deps.c (sched_analyze_insn): Likewise.
16883 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16884 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16885 (note_invalid_constants): Likewise.
16886 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16887 (ix86_legitimate_combined_insn): Make operand_alternative pointer
16888 const.
16889
16890 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16891
16892 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16893 * ira-lives.c (check_and_make_def_conflict): Check for disabled
16894 alternatives.
16895 (make_early_clobber_and_input_conflicts): Likewise.
16896 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16897
16898 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16899
16900 * recog.h (alternative_class): New function.
16901 (which_op_alt): Return a const recog_op_alt.
16902 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16903 (subst_asm_stack_regs): Likewise.
16904 * config/arm/arm.c (note_invalid_constants): Likewise.
16905 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
16906 the operand_alternative; use alternative class instead.
16907 * sel-sched.c (get_reg_class): Likewise.
16908 * regrename.c (build_def_use): Likewise.
16909 (hide_operands, restore_operands, record_out_operands): Update type
16910 accordingly.
16911
16912 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16913
16914 * recog.h (recog_op_alt): Convert to a flat array.
16915 (which_op_alt): New function.
16916 * recog.c (recog_op_alt): Convert to a flat array.
16917 (preprocess_constraints): Update accordingly, grouping all
16918 operands of the same alternative together, rather than the
16919 other way around.
16920 * ira-lives.c (check_and_make_def_conflict): Likewise.
16921 (make_early_clobber_and_input_conflicts): Likewise.
16922 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16923 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16924 (subst_asm_stack_regs): Likewise.
16925 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16926 * regrename.c (hide_operands, record_out_operands): Likewise.
16927 (build_def_use): Likewise.
16928 * sel-sched.c (get_reg_class): Likewise.
16929 * config/arm/arm.c (note_invalid_constants): Likewise.
16930
16931 2014-06-04 Jason Merrill <jason@redhat.com>
16932
16933 PR c++/51253
16934 PR c++/61382
16935 * gimplify.c (gimplify_arg): Non-static.
16936 * gimplify.h: Declare it.
16937
16938 2014-06-04 Richard Biener <rguenther@suse.de>
16939
16940 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16941 TREE_PUBLIC and DECL_EXTERNAL decls.
16942
16943 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
16944
16945 * regcprop.c (copyprop_hardreg_forward_1): Account for
16946 HARD_REGNO_CALL_PART_CLOBBERED.
16947
16948 2014-06-04 Richard Biener <rguenther@suse.de>
16949
16950 * configure.ac: Check whether the underlying type of int64_t
16951 is long or long long.
16952 * configure: Regenerate.
16953 * config.in: Likewise.
16954 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16955 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16956
16957 2014-06-04 Richard Biener <rguenther@suse.de>
16958
16959 PR tree-optimization/60098
16960 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16961 we hit a kill.
16962 (dse_optimize_stmt): Simplify, now that we found a kill
16963 earlier.
16964
16965 2014-06-04 Richard Biener <rguenther@suse.de>
16966
16967 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16968 of accesses with non-invariant address.
16969
16970 2014-06-04 Martin Liska <mliska@suse.cz>
16971
16972 * cgraph.h (cgraph_make_wrapper): New function introduced.
16973 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16974 * ipa-inline.h (inline_analyze_function): The function is global.
16975 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16976
16977 2014-06-04 Martin Liska <mliska@suse.cz>
16978
16979 * tree.h (private_lookup_attribute_starting): New function.
16980 (lookup_attribute_starting): Likewise.
16981 * tree.c (private_lookup_attribute_starting): Likewise.
16982
16983 2014-06-04 Martin Liska <mliska@suse.cz>
16984
16985 * cgraph.h (expand_thunk): New argument added.
16986 (address_taken_from_non_vtable_p): New global function.
16987 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
16988 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
16989 * cgraphunit.c (analyze_function): Likewise.
16990 (assemble_thunks_and_aliases): Argument added to call.
16991 (expand_thunk): New argument forces to produce GIMPLE thunk.
16992
16993 2014-06-04 Martin Liska <mliska@suse.cz>
16994
16995 * coverage.h (coverage_compute_cfg_checksum): Argument added.
16996 * coverage.c (coverage_compute_cfg_checksum): Likewise.
16997 * profile.c (branch_prob): Likewise.
16998
16999 2014-06-04 Martin Jambor <mjambor@suse.cz>
17000
17001 PR ipa/61340
17002 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17003 handler for switch on an ipa_ref_use enum.
17004 * ipa-reference.c (analyze_function): Likewise.
17005
17006 2014-06-04 Kai Tietz <ktietz@redhat.com>
17007
17008 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17009 from old call-instruction.
17010
17011 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17012
17013 * config/aarch64/aarch64.c (aarch64_classify_address)
17014 (aarch64_legitimize_reload_address): Support full addressing modes
17015 for vector modes.
17016 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17017 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17018
17019 2014-06-03 Andrew Pinski <apinski@cavium.com>
17020
17021 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17022 for OP0.
17023
17024 2014-06-03 Andrew Pinski <apinski@cavium.com>
17025
17026 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17027 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17028
17029 2014-06-03 Kai Tietz <ktietz@redhat.com>
17030
17031 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17032 for 64-bit ms-abi.
17033
17034 2014-06-03 Dehao Chen <dehao@google.com>
17035
17036 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17037 the same loop.
17038
17039 2014-06-03 Marek Polacek <polacek@redhat.com>
17040
17041 PR c/60439
17042 * doc/invoke.texi: Document -Wswitch-bool.
17043 * function.c (stack_protect_epilogue): Cast controlling expression of
17044 the switch to int.
17045 * gengtype.c (walk_type): Generate switch expression with its
17046 controlling expression cast to int.
17047
17048 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17049
17050 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17051 and attiny841.
17052 * config/avr/avr-tables.opt: Regenerate.
17053 * config/avr/t-multilib: Regenerate.
17054 * doc/avr-mmcu.texi: Regenerate.
17055
17056 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17057 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17058
17059 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17060 (ata6617c, ata664251): Add new avr35 devices.
17061 (ata6612c): Add new avr4 device.
17062 (ata6613c, ata6614q): Add new avr5 devices.
17063 * config/avr/avr-tables.opt: Regenerate.
17064 * config/avr/t-multilib: Regenerate.
17065 * doc/avr-mmcu.texi: Regenerate.
17066
17067 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17068
17069 * gcc/config/aarch64/aarch64-builtins.c
17070 (aarch64_types_binop_ssu_qualifiers): New static data.
17071 (TYPES_BINOP_SSU): Define.
17072 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17073 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17074 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17075 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17076 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17077 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17078 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17079 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17080 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17081 suffix to builtin function name, remove cast.
17082 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17083 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17084 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17085
17086 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17087
17088 * gcc/config/aarch64/aarch64-builtins.c
17089 (aarch64_types_binop_uus_qualifiers,
17090 aarch64_types_shift_to_unsigned_qualifiers,
17091 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17092 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17093 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17094 sqshlu_n, uqshl_n): Update qualifiers.
17095 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17096 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17097 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17098 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17099 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17100 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17101 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17102 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17103 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17104 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17105 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17106 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17107 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17108 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17109 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17110 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17111 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17112 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17113 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17114 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17115 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17116 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17117 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17118 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17119 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17120 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17121 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17122
17123 2014-06-03 Teresa Johnson <tejohnson@google.com>
17124
17125 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17126
17127 2014-06-02 Jason Merrill <jason@redhat.com>
17128
17129 PR c++/61020
17130 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17131
17132 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17133
17134 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17135 location == 0.
17136
17137 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17138
17139 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17140 New pattern.
17141 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17142 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17143 * config/aarch64/iterators.md (REVERSE): New iterator.
17144 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17145 (rev_op): New int_attribute.
17146 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17147 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17148 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17149 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17150 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17151 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17152 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17153 Replace temporary __asm__ with __builtin_shuffle.
17154
17155 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17156
17157 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17158 mips64r5.
17159 * config/mips/mips-tables.opt: Regenerate.
17160 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17161 to use mips_isa_rev rather than ISA_MIPS32R2.
17162 * config/mips/mips.h (ISA_MIPS32R3): New define.
17163 (ISA_MIPS32R5): New define.
17164 (ISA_MIPS64R3): New define.
17165 (ISA_MIPS64R5): New define.
17166 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17167 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17168 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17169 and mips64r5.
17170 (MIPS_ISA_SYNCI_SPEC): Likewise.
17171 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17172 (LINK_SPEC): Added mips32r3 and mips32r5.
17173 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17174 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17175 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17176 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17177 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17178 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17179 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17180
17181 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17182
17183 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17184 options.
17185 * config/mips/mips.opt (mxpa): New option.
17186 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17187 assembler.
17188
17189 2014-06-03 Martin Jambor <mjambor@suse.cz>
17190
17191 PR ipa/61160
17192 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17193 thunks.
17194
17195 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17196
17197 PR tree-optimization/61328
17198 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17199 initialization from find_bswap_or_nop_1.
17200 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17201 in source_expr2 before using the size value the function sets. Also
17202 make use of init_symbolic_number () in both the old place and
17203 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17204 doing recursion in the GIMPLE_BINARY_RHS case.
17205
17206 2014-06-03 Richard Biener <rguenther@suse.de>
17207
17208 PR tree-optimization/61383
17209 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17210 stmts can't trap.
17211
17212 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17213
17214 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17215 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17216 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17217 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17218 in this file.
17219 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17220 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17221 * system.h: ...here and make it unconditional.
17222 * target.def (conditional_register_usage): Mention
17223 define_register_constraint instead of old-style constraint macros.
17224 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17225 * doc/tm.texi: Regenerate.
17226 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17227 protected by !USE_MD_CONSTRAINTS.
17228 * config/frv/frv.md: Remove quote from old version of documentation.
17229 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17230 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17231 CONST_DOUBLE_OK_FOR_LETTER.
17232 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17233
17234 2014-06-02 Andrew Pinski <apinski@cavium.com>
17235
17236 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17237 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17238 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17239 file whose name depends on -mabi= and -mbig-endian.
17240 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17241 Handle LP64 better and handle ilp32 too.
17242 (MULTILIB_OPTIONS): Delete.
17243 (MULTILIB_DIRNAMES): Delete.
17244
17245 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17246
17247 * expr.h: Remove prototypes of functions defined in builtins.c.
17248 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17249 Remove prototypes of functions defined in builtins.c.
17250 * builtins.h: Update prototype list to include all exported functions.
17251 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17252 no_c99_libc_has_function): Move to targhooks.c
17253 (build_string_literal, build_call_expr_loc_array,
17254 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17255 to tree.c.
17256 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17257 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17258 no_c99_libc_has_function): Relocate from builtins.c.
17259 * tree.c: Include builtins.h.
17260 (build_call_expr_loc_array, build_call_expr_loc_vec,
17261 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17262 from builtins.c.
17263 * fold-const.h (fold_fma): Move prototype to builtins.h.
17264 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17265 * asan.c: Include builtins.h.
17266 * cfgexpand.c: Likewise.
17267 * convert.c: Likewise.
17268 * emit-rtl.c: Likewise.
17269 * except.c: Likewise.
17270 * expr.c: Likewise.
17271 * fold-const.c: Likewise.
17272 * gimple-fold.c: Likewise.
17273 * gimple-ssa-strength-reduction.c: Likewise.
17274 * gimplify.c: Likewise.
17275 * ipa-inline.c: Likewise.
17276 * ipa-prop.c: Likewise.
17277 * lto-streamer-out.c: Likewise.
17278 * stmt.c: Likewise.
17279 * tree-inline.c: Likewise.
17280 * tree-object-size.c: Likewise.
17281 * tree-sra.c: Likewise.
17282 * tree-ssa-ccp.c: Likewise.
17283 * tree-ssa-forwprop.c: Likewise.
17284 * tree-ssa-loop-ivcanon.c: Likewise.
17285 * tree-ssa-loop-ivopts.c: Likewise.
17286 * tree-ssa-math-opts.c: Likewise.
17287 * tree-ssa-reassoc.c: Likewise.
17288 * tree-ssa-threadedge.c: Likewise.
17289 * tree-streamer-in.c: Likewise.
17290 * tree-vect-data-refs.c: Likewise.
17291 * tree-vect-patterns.c: Likewise.
17292 * tree-vect-stmts.c: Likewise.
17293 * config/aarch64/aarch64.c: Likewise.
17294 * config/alpha/alpha.c: Likewise.
17295 * config/arc/arc.c: Likewise.
17296 * config/arm/arm.c: Likewise.
17297 * config/avr/avr.c: Likewise.
17298 * config/bfin/bfin.c: Likewise.
17299 * config/c6x/c6x.c: Likewise.
17300 * config/cr16/cr16.c: Likewise.
17301 * config/cris/cris.c: Likewise.
17302 * config/epiphany/epiphany.c: Likewise.
17303 * config/fr30/fr30.c: Likewise.
17304 * config/frv/frv.c: Likewise.
17305 * config/h8300/h8300.c: Likewise.
17306 * config/i386/i386.c: Likewise.
17307 * config/i386/winnt.c: Likewise.
17308 * config/ia64/ia64.c: Likewise.
17309 * config/iq2000/iq2000.c: Likewise.
17310 * config/lm32/lm32.c: Likewise.
17311 * config/m32c/m32c.c: Likewise.
17312 * config/m32r/m32r.c: Likewise.
17313 * config/m68k/m68k.c: Likewise.
17314 * config/mcore/mcore.c: Likewise.
17315 * config/mep/mep.c: Likewise.
17316 * config/microblaze/microblaze.c: Likewise.
17317 * config/mips/mips.c: Likewise.
17318 * config/mmix/mmix.c: Likewise.
17319 * config/mn10300/mn10300.c: Likewise.
17320 * config/moxie/moxie.c: Likewise.
17321 * config/msp430/msp430.c: Likewise.
17322 * config/nds32/nds32.c: Likewise.
17323 * config/pa/pa.c: Likewise.
17324 * config/pdp11/pdp11.c: Likewise.
17325 * config/picochip/picochip.c: Likewise.
17326 * config/rl78/rl78.c: Likewise.
17327 * config/rs6000/rs6000.c: Likewise.
17328 * config/rx/rx.c: Likewise.
17329 * config/s390/s390.c: Likewise.
17330 * config/score/score.c: Likewise.
17331 * config/sh/sh.c: Likewise.
17332 * config/sparc/sparc.c: Likewise.
17333 * config/spu/spu.c: Likewise.
17334 * config/stormy16/stormy16.c: Likewise.
17335 * config/tilegx/tilegx.c: Likewise.
17336 * config/tilepro/tilepro.c: Likewise.
17337 * config/v850/v850.c: Likewise.
17338 * config/vax/vax.c: Likewise.
17339 * config/xtensa/xtensa.c: Likewise.
17340
17341 2014-06-02 Jeff Law <law@redhat.com>
17342
17343 PR rtl-optimization/61094
17344 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17345 was marked as do_no_reextend. If a copy is needed to eliminate
17346 an extension, then mark it as do_not_reextend.
17347
17348 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17349
17350 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17351
17352 2014-06-02 Richard Henderson <rth@redhat.com>
17353
17354 PR target/61336
17355 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17356 addresses inside asms. Use output_operand_lossage instead of
17357 gcc_unreachable.
17358
17359 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17360
17361 PR target/61239
17362 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17363 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17364
17365 2014-06-02 Tom de Vries <tom@codesourcery.com>
17366
17367 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17368 case that x has VOIDmode.
17369
17370 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17371
17372 * varasm.c (copy_constant): Delete function.
17373 (build_constant_desc): Don't call it.
17374
17375 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17376
17377 PR target/61154
17378 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17379 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17380 with immediate_operand.
17381
17382 2014-06-02 Andreas Schwab <schwab@suse.de>
17383
17384 * config/ia64/ia64.c
17385 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17386 pending_data_specs first.
17387
17388 2014-06-02 Richard Biener <rguenther@suse.de>
17389
17390 PR tree-optimization/61378
17391 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17392 valueized_anything.
17393
17394 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17395
17396 * config/i386/constraints.md (Bw): Rename from 'w'.
17397 (Bz): Rename from 'z'.
17398 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17399
17400 2014-06-01 Kai Tietz <ktietz@redhat.com>
17401
17402 PR target/61377
17403 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17404 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17405 instead of m constraint.
17406
17407 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17408
17409 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17410 a separate alternative where the scratch operand 2 is marked as
17411 early clobber.
17412
17413 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17414
17415 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17416 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17417 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17418 and __builtins_arm_get_fpscr.
17419 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17420 __builtins_arm_get_fpscr.
17421 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17422 __builtins_arm_ldfpscr.
17423 (arm_atomic_assign_expand_fenv): New function.
17424 * config/arm/vfp.md (set_fpscr): New pattern.
17425 (get_fpscr) : Likewise.
17426 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17427 VUNSPEC_SET_FPSCR.
17428 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17429 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17430
17431 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17432
17433 * asan.c (report_error_func): Add SLOW_P argument, use
17434 BUILT_IN_ASAN_*_N if set.
17435 (build_check_stmt): Likewise.
17436 (instrument_derefs): If T has insufficient alignment,
17437 force same handling as for odd sizes.
17438
17439 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17440 BUILT_IN_ASAN_REPORT_STORE_N): New.
17441 * asan.c (struct asan_mem_ref): Change access_size type to
17442 HOST_WIDE_INT.
17443 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17444 update_mem_ref_hash_table): Likewise.
17445 (asan_mem_ref_hasher::hash): Hash in a HWI.
17446 (report_error_func): Change size_in_bytes argument to HWI.
17447 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17448 two.
17449 (build_shadow_mem_access): New function.
17450 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17451 Handle size_in_bytes not power of two or larger than 16.
17452 (instrument_derefs): Don't give up if size_in_bytes is not
17453 power of two or is larger than 16.
17454
17455 2014-05-30 Kai Tietz <ktietz@redhat.com>
17456
17457 PR target/60104
17458 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17459 for sibling-tail-calls.
17460 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17461 to its use.
17462 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17463 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17464
17465 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17466
17467 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17468 * config/avr/avr-tables.opt: Regenerate.
17469 * config/avr/t-multilib: Regenerate.
17470 * doc/avr-mmcu.texi: Regenerate.
17471
17472 2014-05-30 Ian Lance Taylor <iant@google.com>
17473
17474 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17475 target("sse").
17476
17477 2014-05-30 Tom de Vries <tom@codesourcery.com>
17478
17479 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17480 Redefine as true.
17481
17482 2014-05-30 Tom de Vries <tom@codesourcery.com>
17483
17484 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17485 * lra.c (initialize_lra_reg_info_element): Add init of
17486 actual_call_used_reg_set field.
17487 (lra): Call lra_create_live_ranges before lra_inheritance for
17488 -fuse-caller-save.
17489 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17490 -fuse-caller-save.
17491 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17492 instead of call_used_reg_set for -fuse-caller-save.
17493 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17494
17495 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17496
17497 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17498 to mov_imm.
17499 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17500
17501 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17502
17503 * ira.c (ira_get_dup_out_num): Check for output operands at
17504 the start of the loop. Handle cases where an included alternative
17505 follows an excluded one.
17506
17507 2014-05-29 Mike Stump <mikestump@comcast.net>
17508
17509 PR debug/61352
17510 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17511 post ld passes when lto is used.
17512
17513 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17514
17515 PR rtl-optimization/61325
17516 * lra-constraints.c (process_address): Rename to process_address_1.
17517 (process_address): New function.
17518
17519 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17520
17521 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17522 TYPES_BINOPV): New static data.
17523 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17524 New builtin.
17525 * config/aarch64/aarch64-simd.md (aarch64_ext,
17526 aarch64_im_lane_boundsi): New patterns.
17527 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17528 patterns for EXT.
17529 (aarch64_evpc_ext): New function.
17530
17531 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17532
17533 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17534 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17535 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17536 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17537 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17538
17539 2014-05-29 Tom de Vries <tom@codesourcery.com>
17540
17541 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17542
17543 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17544 Richard Sandiford <rdsandiford@googlemail.com>
17545
17546 * arm/iterators.md (shiftable_ops): New code iterator.
17547 (t2_binop0, arith_shift_insn): New code attributes.
17548 * arm/predicates.md (shift_nomul_operator): New predicate.
17549 * arm/arm.md (insn_enabled): Delete.
17550 (enabled): Remove insn_enabled test.
17551 (*arith_shiftsi): Delete. Replace with ...
17552 (*<arith_shift_insn>_multsi): ... new pattern.
17553 (*<arith_shift_insn>_shiftsi): ... new pattern.
17554 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17555
17556 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17557 Tom de Vries <tom@codesourcery.com>
17558
17559 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17560 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17561 clobber.
17562 (mips_split_call): Use POST_CALL_TMP_REG.
17563 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17564
17565 2014-05-29 Tom de Vries <tom@codesourcery.com>
17566
17567 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17568 with #ifdef STACK_REGS.
17569
17570 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17571
17572 * varasm.c (get_variable_section): Walk aliases.
17573 (place_block_symbol): Walk aliases.
17574
17575 2014-05-28 Tom de Vries <tom@codesourcery.com>
17576
17577 Revert:
17578 2014-05-28 Tom de Vries <tom@codesourcery.com>
17579
17580 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17581 * lra.c (initialize_lra_reg_info_element): Add init of
17582 actual_call_used_reg_set field.
17583 (lra): Call lra_create_live_ranges before lra_inheritance for
17584 -fuse-caller-save.
17585 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17586 -fuse-caller-save.
17587 * lra-constraints.c (need_for_call_save_p): Use
17588 actual_call_used_reg_set instead of call_used_reg_set for
17589 -fuse-caller-save.
17590 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17591
17592 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17593
17594 * doc/md.texi: Document that the % constraint character must
17595 be at the beginning of the string.
17596 * genoutput.c (validate_insn_alternatives): Check that '=',
17597 '+' and '%' only appear at the beginning of a constraint.
17598 * ira.c (commutative_constraint_p): Delete.
17599 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17600 at the start of the string.
17601 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17602 duplicate '='s.
17603 * config/arm/neon.md (bicdi3_neon): Likewise.
17604 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17605 (slt_si, sltu_si): Likewise.
17606 * config/vax/vax.md (sbcdi3): Likewise.
17607 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17608 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17609 (mul64): Move '%' to beginning of constraint.
17610 * config/arm/arm.md (*xordi3_insn): Likewise.
17611 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17612 (xorsi3): Likewise.
17613
17614 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17615
17616 * doc/md.texi: Document the restrictions on the "enabled" attribute.
17617
17618 2014-05-28 Jason Merrill <jason@redhat.com>
17619
17620 PR c++/47202
17621 * cgraph.h (symtab_node::get_comdat_group_id): New.
17622 * cgraphunit.c (analyze_functions): Call it.
17623 * symtab.c (dump_symtab_node): Likewise.
17624 * tree.c (decl_comdat_group_id): New.
17625 * tree.h: Declare it.
17626 * lto-streamer-out.c (write_symbol): Use it.
17627 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17628
17629 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17630
17631 PR bootstrap/PR61146
17632 * wide-int.cc: Do not include longlong.h when compiling with clang.
17633
17634 2014-05-28 Richard Biener <rguenther@suse.de>
17635
17636 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17637 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17638 (vrp_visit_assignment_or_call): Print less vertical space.
17639 (vrp_visit_stmt): Likewise.
17640 (vrp_visit_phi_node): Likewise. For a PHI argument with
17641 VR_VARYING range consider recording it as copy.
17642
17643 2014-05-28 Richard Biener <rguenther@suse.de>
17644
17645 Revert
17646 2014-05-28 Richard Biener <rguenther@suse.de>
17647
17648 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17649
17650 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17651
17652 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17653 sufficiently aligned and an offset is used at the same time.
17654 (expand_expr_real_1): Likewise.
17655
17656 2014-05-28 Richard Biener <rguenther@suse.de>
17657
17658 PR middle-end/61045
17659 * fold-const.c (fold_comparison): When folding
17660 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17661 the sign of the remaining constant operand stays the same.
17662
17663 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
17664
17665 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17666 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17667 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17668 to the assembler.
17669 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17670 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17671 (m32bit-doubles) Likewise.
17672 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17673 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17674 option for RL78.
17675
17676 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17677
17678 * configure.ac ($gcc_cv_ld_clearcap): New test.
17679 * configure: Regenerate.
17680 * config.in: Regenerate.
17681 * config/sol2.opt (mclear-hwcap): New option.
17682 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17683 * config/sol2-clearcap.map: Moved here from
17684 testsuite/gcc.target/i386/clearcap.map.
17685 * config/sol2-clearcapv2.map: Move here from
17686 gcc.target/i386/clearcapv2.map.
17687 * config/t-sol2 (install): Depend on install-clearcap-map.
17688 (install-clearcap-map): New target.
17689 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17690 -mclear-hwcap.
17691
17692 2014-05-28 Richard Biener <rguenther@suse.de>
17693
17694 * hwint.h (*_HALF_WIDE_INT*): Move to ...
17695 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17696 ... here and remove the rest.
17697 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17698
17699 2014-05-28 Richard Biener <rguenther@suse.de>
17700
17701 PR tree-optimization/61335
17702 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17703 new range fails, drop to varying.
17704
17705 2014-05-28 Olivier Hainque <hainque@adacore.com>
17706
17707 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17708 (CPP_SPEC): Add entry for -mcpu=8548.
17709 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17710 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17711
17712 2014-05-28 Tom de Vries <tom@codesourcery.com>
17713
17714 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17715 * lra.c (initialize_lra_reg_info_element): Add init of
17716 actual_call_used_reg_set field.
17717 (lra): Call lra_create_live_ranges before lra_inheritance for
17718 -fuse-caller-save.
17719 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17720 -fuse-caller-save.
17721 * lra-constraints.c (need_for_call_save_p): Use
17722 actual_call_used_reg_set instead of call_used_reg_set for
17723 -fuse-caller-save.
17724 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17725
17726 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17727 Tom de Vries <tom@codesourcery.com>
17728
17729 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17730 to gccoptlist.
17731 (@item -fuse-caller-save): New item.
17732
17733 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17734 Tom de Vries <tom@codesourcery.com>
17735
17736 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17737 OPT_fuse_caller_save.
17738
17739 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17740 Tom de Vries <tom@codesourcery.com>
17741
17742 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17743 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17744 get_call_reg_set_usage.
17745 * resource.c (mark_set_resources, mark_target_live_regs): Use
17746 get_call_reg_set_usage.
17747 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17748 field.
17749 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17750 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17751 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17752 * ira-build.c (ira_create_allocno): Init
17753 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17754 (create_cap_allocno, propagate_allocno_info)
17755 (propagate_some_info_from_allocno)
17756 (copy_info_to_removed_store_destinations): Handle
17757 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17758 * ira-costs.c (ira_tune_allocno_costs): Use
17759 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17760
17761 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17762 Tom de Vries <tom@codesourcery.com>
17763
17764 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17765 and function_used_regs_valid fields.
17766 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17767 find_all_hard_reg_sets.
17768 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17769 (get_call_reg_set_usage): New function.
17770 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17771 * regs.h (get_call_reg_set_usage): Declare.
17772
17773 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17774
17775 PR libgcc/61152
17776 * config/dbx.h (License): Add Runtime Library Exception.
17777 * config/newlib-stdint.h (License): Same.
17778 * config/rtems.h (License): Same
17779 * config/initfini-array.h (License): Same
17780 * config/v850/v850.h (License): Same.
17781 * config/v850/v850-opts.h (License): Same
17782 * config/v850/rtems.h (License): Same.
17783
17784 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17785
17786 PR target/61044
17787 * doc/extend.texi (Local Labels): Note that label differences are
17788 not supported for AVR.
17789
17790 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17791 Olivier Hainque <hainque@adacore.com>
17792
17793 * rtl.h (set_for_reg_notes): Declare.
17794 * emit-rtl.c (set_for_reg_notes): New function.
17795 (set_unique_reg_note): Use it.
17796 * optabs.c (add_equal_note): Likewise
17797
17798 2014-05-27 Andrew Pinski <apinski@cavium.com>
17799
17800 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17801 Use <w> for the register in assembly template.
17802 (stack_protect_test): Use the mode of operands[0] for the result.
17803 (stack_protect_test_<mode>): Use <w> for the register
17804 in assembly template.
17805
17806 2014-05-27 DJ Delorie <dj@redhat.com>
17807
17808 * config/rx/rx.c (add_vector_labels): New.
17809 (rx_output_function_prologue): Call it.
17810 (rx_handle_func_attribute): Don't require empty arguments.
17811 (rx_handle_vector_attribute): New.
17812 (rx_attribute_table): Add "vector" attribute.
17813 * doc/extend.texi (interrupt, vector): Document new/changed
17814 RX-specific attributes.
17815
17816 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17817
17818 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17819
17820 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17821 predicate to detect a negative quotient.
17822
17823 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17824
17825 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17826 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17827 Add X - Y CMP 0 to X CMP Y transformation.
17828 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17829
17830 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
17831
17832 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17833 before printing.
17834
17835 2014-05-27 Steve Ellcey <sellcey@mips.com>
17836
17837 * config/mips/mips.c: Add include of cgraph.h.
17838
17839 2014-05-27 Richard Biener <rguenther@suse.de>
17840
17841 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17842
17843 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17844
17845 PR libgcc/61152
17846 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17847 * config/arm/arm-cores.def (License): Same.
17848 * config/arm/arm-opts.h (License): Same.
17849 * config/arm/aout.h (License): Same.
17850 * config/arm/bpabi.h (License): Same.
17851 * config/arm/elf.h (License): Same.
17852 * config/arm/linux-elf.h (License): Same.
17853 * config/arm/linux-gas.h (License): Same.
17854 * config/arm/netbsd-elf.h (License): Same.
17855 * config/arm/uclinux-eabi.h (License): Same.
17856 * config/arm/uclinux-elf.h (License): Same.
17857 * config/arm/vxworks.h (License): Same.
17858
17859 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17860
17861 * config/arm/neon.md (neon_bswap<mode>): New pattern.
17862 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17863 (arm_init_neon_builtins): Handle NEON_BSWAP.
17864 Define required type nodes.
17865 (arm_expand_neon_builtin): Handle NEON_BSWAP.
17866 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17867 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17868 * config/arm/iterators.md (VDQHSD): New mode iterator.
17869
17870 2014-05-27 Richard Biener <rguenther@suse.de>
17871
17872 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17873 Try using literal operands when comparing value-ranges failed.
17874
17875 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17876
17877 * ira.c (commutative_operand): Adjust for change to recog_data.
17878 [Missing from previous commit.]
17879
17880 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17881
17882 * system.h (TEST_BIT): New macro.
17883 * recog.h (alternative_mask): New type.
17884 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17885 (recog_data_d): Replace alternative_enabled_p array with
17886 enabled_alternatives.
17887 (target_recog): New structure.
17888 (default_target_recog, this_target_recog): Declare.
17889 (get_enabled_alternatives, recog_init): Likewise.
17890 * recog.c (default_target_recog, this_target_recog): New variables.
17891 (get_enabled_alternatives): New function.
17892 (extract_insn): Use it.
17893 (recog_init): New function.
17894 (preprocess_constraints, constrain_operands): Adjust for change to
17895 recog_data.
17896 * postreload.c (reload_cse_simplify_operands): Likewise.
17897 * reload.c (find_reloads): Likewise.
17898 * ira-costs.c (record_reg_classes): Likewise.
17899 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
17900 all alternatives after a disabled one would be skipped.
17901 (ira_implicitly_set_insn_hard_regs): Likewise.
17902 * ira.c (ira_setup_alts): Adjust for change to recog_data.
17903 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17904 with enabled_alternatives.
17905 * lra.c (free_insn_recog_data): Update accordingly.
17906 (lra_update_insn_recog_data): Likewise.
17907 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
17908 * lra-constraints.c (process_alt_operands): Likewise. Handle
17909 only_alternative as part of the enabled mask.
17910 * target-globals.h (this_target_recog): Declare.
17911 (target_globals): Add a recog field.
17912 (restore_target_globals): Restore this_target_recog.
17913 * target-globals.c: Include recog.h.
17914 (default_target_globals): Initialize recog field.
17915 (save_target_globals): Likewise.
17916 * reginfo.c (reinit_regs): Call recog_init.
17917 * toplev.c (backend_init_target): Likewise.
17918
17919 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17920
17921 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17922 rather than any named insn's code.
17923
17924 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17925
17926 PR libgcc/61152
17927 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
17928 * config/arm/arm-cores.def (License): Same.
17929
17930 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
17931
17932 * tree.h (decl_comdat_group): Declare.
17933 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
17934 * tree.c (decl_comdat_group): Here.
17935
17936 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
17937
17938 PR rtl-optimization/61222
17939 * combine.c (simplify_shift_const_1): When moving a PLUS outside
17940 the shift, truncate the PLUS operand to the result mode.
17941
17942 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
17943
17944 PR target/61271
17945 * config/i386/i386.c (ix86_rtx_costs)
17946 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17947 Fix condition.
17948
17949 2014-05-26 Martin Jambor <mjambor@suse.cz>
17950
17951 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17952 subreg uses.
17953
17954 2014-05-26 Richard Biener <rguenther@suse.de>
17955
17956 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17957 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17958 Provide specializations.
17959 (wi::int_traits <HOST_WIDE_INT>,
17960 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17961
17962 2014-05-26 Alan Modra <amodra@gmail.com>
17963
17964 PR target/61098
17965 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17966 params and return a bool. Remove dead code. Update comment.
17967 Assert we have a const_int source. Remove bogus code from
17968 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17969 handling of constants > 2G and reg_equal note, from..
17970 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17971 return value. Update comment. If we can, use a new pseudo
17972 for intermediate calculations.
17973 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17974 prototype.
17975 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17976 call to rs6000_emit_set_const in splitter.
17977 (movdi_internal64+2, +3): Likewise.
17978
17979 2014-05-26 Richard Biener <rguenther@suse.de>
17980
17981 * system.h: Define __STDC_FORMAT_MACROS before
17982 including inttypes.h.
17983 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17984 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17985 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17986 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17987 HOST_WIDEST_INT_C): Remove.
17988 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
17989 if C99 inttypes.h is not available.
17990 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
17991 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
17992 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
17993 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
17994 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
17995 (struct output_info): Likewise.
17996 (print_statistics): Adjust.
17997 (dump_bitmap_statistics): Likewise.
17998 * bt-load.c (migrate_btr_defs): Print with PRId64.
17999 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18000 (MAX_SAFE_MULTIPLIER): Adjust.
18001 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18002 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18003 dump_cgraph_node): Likewise.
18004 * final.c (dump_basic_block_info): Likewise.
18005 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18006 * gcov.c (format_gcov): Likewise.
18007 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18008 for calculation.
18009 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18010 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18011 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18012 Use PRId64 for dumping.
18013 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18014 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18015 (add_allocno_hard_regs): Adjust.
18016 * loop-doloop.c (doloop_modify): Print using PRId64.
18017 * loop-iv.c (inverse): Compute in uint64_t.
18018 (determine_max_iter, iv_number_of_iterations): Likewise.
18019 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18020 Print using PRId64.
18021 * lto-streamer-out.c (write_symbol): Use uint64_t.
18022 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18023 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18024 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18025 * modulo-sched.c (const_iteration_count): Use int64_t.
18026 (sms_schedule): Dump using PRId64.
18027 * predict.c (dump_prediction): Likewise.
18028 * pretty-print.h (pp_widest_integer): Remove.
18029 * profile.c (get_working_sets, is_edge_inconsistent,
18030 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18031 * tree-pretty-print.c (pp_double_int): Remove case handling
18032 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18033 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18034 and adjust users.
18035 (pass_optimize_bswap::execute): Remove restriction on hosts.
18036 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18037 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18038 * tree.c (widest_int_cst_value): Remove.
18039 * tree.h (widest_int_cst_value): Likewise.
18040 * value-prof.c (dump_histogram_value): Print using PRId64.
18041 * gengtype.c (main): Also inject int64_t.
18042 * ggc-page.c (struct max_alignment): Use int64_t.
18043 * alloc-pool.c (struct allocation_object_def): Likewise.
18044 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18045 for computation.
18046 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18047 * doc/tm.texi: Regenerated.
18048 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18049 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18050 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18051 mmix_output_register_setting): Use [u]int64_t in prototypes.
18052 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18053 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18054 mmix_output_octa, mmix_output_shifted_value): Adjust.
18055 (mmix_intval): Adjust. Remove unreachable case.
18056 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18057
18058 2014-05-26 Richard Biener <rguenther@suse.de>
18059
18060 * configure.ac: Drop __int64 type check. Insist that we
18061 found uint64_t and int64_t.
18062 * hwint.h (HOST_BITS_PER___INT64): Remove.
18063 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18064 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18065 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18066 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18067 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18068 for dst_q_src_df_rms_cdt.
18069 * configure: Regenerate.
18070 * config.in: Likewise.
18071
18072 2014-05-26 Michael Tautschnig <mt@debian.org>
18073
18074 PR target/61249
18075 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18076 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18077
18078 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18079
18080 PR rtl-optimization/61278
18081 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18082
18083 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18084
18085 PR rtl-optimization/61220
18086 Part of PR rtl-optimization/61225
18087 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18088 insn; skip split_edge for a block with only one successor.
18089
18090 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18091
18092 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18093 for variables.
18094
18095 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18096
18097 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18098 (update_vtable_references): New function.
18099 (function_and_variable_visibility): Rewrite also vtable initializers.
18100 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18101
18102 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18103
18104 * ggc.h (ggc_grow): New function.
18105 * ggc-none.c (ggc_grow): New function.
18106 * ggc-page.c (ggc_grow): Likewise.
18107
18108 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18109
18110 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18111 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18112 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18113 varpool_externally_visible_p, can_replace_by_local_alias,
18114 update_visibility_by_resolution_info, function_and_variable_visibility,
18115 pass_data_ipa_function_and_variable_visibility,
18116 make_pass_ipa_function_and_variable_visibility,
18117 whole_program_function_and_variable_visibility,
18118 pass_data_ipa_whole_program_visibility,
18119 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18120 * cgraph.h (cgraph_local_node_p): Declare.
18121 * ipa-visibility.c: New file.
18122 * Makefile.in (OBJS): Add ipa-visiblity.o
18123
18124 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18125
18126 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18127 that var decl is available.
18128
18129 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18130
18131 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18132 symtab_node pointer.
18133 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18134 (find_decls_types_r): Do not walk COMDAT_GROUP.
18135 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18136 * varasm.c (make_decl_one_only): Use set_comdat_group;
18137 create node if needed.
18138 * ipa-inline-transform.c (save_inline_function_body): Update
18139 way we decl->symtab mapping.
18140 * symtab.c (symtab_hash, hash_node, eq_node
18141 symtab_insert_node_to_hashtable): Remove.
18142 (symtab_register_node): Update.
18143 (symtab_unregister_node): Update.
18144 (symtab_get_node): Reimplement as inline function.
18145 (symtab_add_to_same_comdat_group): Update.
18146 (symtab_dissolve_same_comdat_group_list): Update.
18147 (dump_symtab_base): Update.
18148 (verify_symtab_base): Update.
18149 (symtab_make_decl_local): Update.
18150 (fixup_same_cpp_alias_visibility): Update.
18151 (symtab_nonoverwritable_alias): Update.
18152 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18153 * ipa.c (update_visibility_by_resolution_info): UPdate.
18154 * bb-reorder.c: Include cgraph.h
18155 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18156 with comdat groups.
18157 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18158 * cgraph.c (cgraph_get_create_node): Update.
18159 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18160 and comdat_group_.
18161 (symtab_get_node): Make inline.
18162 (symtab_insert_node_to_hashtable): Remove.
18163 (symtab_can_be_discarded): Update.
18164 (decl_comdat_group): New function.
18165 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18166 Update.
18167 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18168 comdat group name.
18169 (read_comdat_group): New function.
18170 (input_node, input_varpool_node): Use it.
18171 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18172 comdat groups.
18173 * mips.c (mips_start_unique_function): Likewise.
18174 (ix86_code_end): Likewise.
18175 (rs6000_code_end): Likweise.
18176 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18177
18178 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18179
18180 * gengtype-state.c (fatal_reading_state): Bring offline.
18181 * optabs.c (widening_optab_handler): Bring offline.
18182 * optabs.h (widening_optab_handler): Likewise.
18183 * final.c (get_attr_length_1): Likewise.
18184
18185 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18186
18187 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18188
18189 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18190
18191 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18192 (ppc440-compare): Include shift with dot.
18193 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18194 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18195 without dot.
18196 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18197 without dot.
18198 (e6500_sfx2): Include it.
18199 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18200 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18201 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18202 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18203 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18204 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18205 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18206 *lshiftrt_internal1le, *lshiftrt_internal1be,
18207 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18208 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18209 *rotldi3_internal10le, *rotldi3_internal10be,
18210 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18211 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18212 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18213 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18214 define_insns): Use type "shift" in the appropriate alternatives.
18215
18216 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18217
18218 * config/rs6000/rs6000.md (type): Add "logical". Delete
18219 "fast_compare".
18220 (dot): Adjust comment.
18221 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18222 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18223 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18224 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18225 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18226 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18227 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18228 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18229
18230 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18231 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18232 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18233 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18234 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18235 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18236 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18237 * config/rs6000/8540.md (ppc8540_su): Adjust.
18238 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18239 cell-cmp-microcoded): Adjust.
18240 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18241 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18242 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18243 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18244 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18245 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18246 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18247 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18248 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18249 Adjust.
18250 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18251 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18252 Adjust. Adjust comment.
18253 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18254 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18255
18256 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18257
18258 * config/rs6000/rs6000.md (type): Add "add".
18259 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18260 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18261 define_insns): Use it.
18262 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18263
18264 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18265 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18266 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18267 * config/rs6000/601.md (ppc601-integer): Adjust.
18268 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18269 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18270 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18271 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18272 * config/rs6000/8540.md (ppc8540_su): Adjust.
18273 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18274 cell-cmp-microcoded): Adjust.
18275 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18276 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18277 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18278 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18279 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18280 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18281 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18282 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18283 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18284 Adjust.
18285 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18286 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18287 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18288 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18289
18290 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18291
18292 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18293 "delayed_compare", "var_delayed_compare".
18294 (var_shift): New attribute.
18295 (cell_micro): Adjust.
18296 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18297 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18298 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18299 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18300 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18301 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18302 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18303 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18304 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18305 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18306 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18307 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18308 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18309 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18310 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18311 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18312 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18313 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18314 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18315 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18316 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18317 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18318 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18319 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18320 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18321
18322 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18323 * config/rs6000/440.md (ppc440-integer): Adjust.
18324 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18325 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18326 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18327 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18328 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18329 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18330 * config/rs6000/8540.md (ppc8540_su): Adjust.
18331 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18332 cell-cmp-microcoded): Adjust.
18333 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18334 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18335 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18336 e500mc64_delayed): Adjust.
18337 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18338 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18339 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18340 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18341 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18342 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18343 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18344 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18345 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18346 Adjust comment.
18347 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18348 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18349
18350 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18351
18352 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18353 (bits): New mode_attr.
18354 (idiv_ldiv): Delete mode_attr.
18355 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18356 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18357 rs6000_adjust_priority, is_nonpipeline_insn,
18358 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18359
18360 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18361 * config/rs6000/440.md (ppc440-idiv): Adjust.
18362 * config/rs6000/476.md (ppc476-idiv): Adjust.
18363 * config/rs6000/601.md (ppc601-idiv): Adjust.
18364 * config/rs6000/603.md (ppc603-idiv): Adjust.
18365 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18366 ppc620-ldiv): Adjust.
18367 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18368 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18369 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18370 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18371 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18372 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18373 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18374 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18375 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18376 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18377 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18378 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18379 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18380 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18381 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18382 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18383 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18384 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18385
18386 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18387
18388 * config/rs6000/rs6000.md (type): Delete "insert_word",
18389 "insert_dword". Add "insert".
18390 (size): Update comment.
18391 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18392 insn_must_be_first_in_group): Adjust.
18393 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18394 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18395 *insvsi_internal6, insvdi_internal): Adjust.
18396
18397 * config/rs6000/40x.md (ppc403-integer): Adjust.
18398 * config/rs6000/440.md (ppc440-integer): Adjust.
18399 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18400 * config/rs6000/601.md (ppc601-integer): Adjust.
18401 * config/rs6000/603.md (ppc603-integer): Adjust.
18402 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18403 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18404 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18405 * config/rs6000/8540.md (ppc8540_su): Adjust.
18406 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18407 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18408 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18409 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18410 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18411 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18412 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18413 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18414 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18415 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18416 * config/rs6000/power7.md (power7-integer): Adjust.
18417 * config/rs6000/power8.md (power8-1cyc): Adjust.
18418 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18419 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18420
18421 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18422
18423 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18424 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18425 (size): New attribute.
18426 (dot): New attribute.
18427 (cell_micro): Adjust.
18428 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18429 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18430 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18431 umuldi3_highpart): Adjust.
18432 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18433 rs6000_adjust_priority, is_nonpipeline_insn,
18434 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18435
18436 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18437 ppc405-imul3): Adjust.
18438 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18439 * config/rs6000/476.md (ppc476-imul): Adjust.
18440 * config/rs6000/601.md (ppc601-imul): Adjust.
18441 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18442 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18443 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18444 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18445 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18446 Adjust.
18447 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18448 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18449 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18450 cell-imul): Adjust.
18451 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18452 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18453 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18454 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18455 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18456 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18457 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18458 power4-lmul, power4-imul, power4-imul3): Adjust.
18459 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18460 power5-lmul, power5-imul, power5-imul3): Adjust.
18461 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18462 power6-lmul, power6-imul, power6-imul3): Adjust.
18463 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18464 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18465
18466 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18467 rs64a-lmul): Adjust.
18468 * config/rs6000/titan.md (titan_imul): Adjust.
18469
18470 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18471
18472 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18473 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18474 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18475 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18476 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18477 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18478 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18479 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18480 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18481 * config/rs6000/titan.md: Delete nonsensical comment.
18482 (titan_imul): Add type imul3.
18483 (titan_mulhw): Remove type imul3; add type halfmul.
18484
18485 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18486
18487 * config/rs6000/rs6000.md (type): Reorder, reformat.
18488
18489 2014-05-23 Martin Jambor <mjambor@suse.cz>
18490
18491 PR tree-optimization/53787
18492 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18493 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18494 analysis_done, update all uses.
18495 * ipa-prop.c: Include domwalk.h
18496 (param_analysis_info): Removed.
18497 (param_aa_status): New type.
18498 (ipa_bb_info): Likewise.
18499 (func_body_info): Likewise.
18500 (ipa_get_bb_info): New function.
18501 (aa_overwalked): Likewise.
18502 (find_dominating_aa_status): Likewise.
18503 (parm_bb_aa_status_for_bb): Likewise.
18504 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18505 (load_from_unmodified_param): Accept func_body_info as a parameter
18506 instead of parms_ainfo.
18507 (parm_ref_data_preserved_p): Changed to use new param AA info.
18508 (parm_ref_data_pass_through_p): Likewise.
18509 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18510 (compute_complex_assign_jump_func): Changed to use new param AA info.
18511 (compute_complex_ancestor_jump_func): Likewise.
18512 (ipa_compute_jump_functions_for_edge): Likewise.
18513 (ipa_compute_jump_functions): Removed.
18514 (ipa_compute_jump_functions_for_bb): New function.
18515 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18516 declarations down.
18517 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18518 and info, moved variable declarations down.
18519 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18520 node and info.
18521 (ipa_analyze_stmt_uses): Likewise.
18522 (ipa_analyze_params_uses): Removed.
18523 (ipa_analyze_params_uses_in_bb): New function.
18524 (ipa_analyze_controlled_uses): Likewise.
18525 (free_ipa_bb_info): Likewise.
18526 (analysis_dom_walker): New class.
18527 (ipa_analyze_node): Handle node-specific forbidden analysis,
18528 initialize and free func_body_info, use dominator walker.
18529 (ipcp_modif_dom_walker): New class.
18530 (ipcp_transform_function): Create and free func_body_info, use
18531 ipcp_modif_dom_walker, moved a lot of functionality there.
18532
18533 2014-05-23 Marek Polacek <polacek@redhat.com>
18534 Jakub Jelinek <jakub@redhat.com>
18535
18536 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18537 * gcc.c (sanitize_spec_function): Likewise.
18538 * convert.c (convert_to_integer): Include "ubsan.h". Add
18539 floating-point to integer instrumentation.
18540 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18541 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18542 SANITIZE_NONDEFAULT.
18543 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18544 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18545 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18546 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18547 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18548 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18549 float/double/long double.
18550 (ubsan_instrument_float_cast): New function.
18551 * ubsan.h (ubsan_instrument_float_cast): Declare.
18552
18553 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18554
18555 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18556 predicate.
18557 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18558 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18559 Adjust for tailcalling through registers.
18560 * config/aarch64/aarch64.h (enum reg_class): New caller save
18561 register class.
18562 (REG_CLASS_NAMES): Likewise.
18563 (REG_CLASS_CONTENTS): Likewise.
18564 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18565 Allow tailcalling without decls.
18566
18567 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18568
18569 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18570 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18571
18572 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18573 gsi, and variables v_* to v*.
18574
18575 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18576
18577 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18578
18579 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18580
18581 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18582 * omp-low.c: Update accordingly.
18583
18584 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18585 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18586 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18587 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18588 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18589 GF_OMP_TARGET_KIND_UPDATE.
18590
18591 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18592 Explicitly enumerate the expected region types.
18593
18594 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
18595
18596 PR other/56955
18597 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
18598 documentation; the old documentation didn't clearly state the
18599 constraints on the contents of the pointed-to storage.
18600
18601 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18602
18603 Fix bootstrap error on ia64
18604 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18605 Return default value.
18606
18607 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
18608
18609 PR tree-optimization/54733
18610 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18611 (CMPNOP): Define.
18612 (find_bswap_or_nop_load): New.
18613 (find_bswap_1): Renamed to ...
18614 (find_bswap_or_nop_1): This. Also add support for memory source.
18615 (find_bswap): Renamed to ...
18616 (find_bswap_or_nop): This. Also add support for memory source and
18617 detection of bitwise operations equivalent to load in target
18618 endianness.
18619 (execute_optimize_bswap): Likewise. Also move its leading comment back
18620 in place and split statement transformation into ...
18621 (bswap_replace): This.
18622
18623 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18624
18625 PR rtl-optimization/61215
18626 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18627 simplify_gen_subreg until final substitution.
18628
18629 2014-05-23 Alan Modra <amodra@gmail.com>
18630
18631 PR target/61231
18632 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18633 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18634 Use "Y" constraint rather than "m".
18635
18636 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18637
18638 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18639 define.
18640 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18641 New function declaration.
18642 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18643 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18644 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18645 (aarch64_init_builtins) : Initialize builtins
18646 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18647 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18648 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18649 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18650 and __builtins_aarch64_set_fpsr.
18651 (aarch64_atomic_assign_expand_fenv): New function.
18652 * config/aarch64/aarch64.md (set_fpcr): New pattern.
18653 (get_fpcr) : Likewise.
18654 (set_fpsr) : Likewise.
18655 (get_fpsr) : Likewise.
18656 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18657 and UNSPECV_SET_FPSR.
18658 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18659 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18660 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18661
18662 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18663
18664 PR rtl-optimization/60969
18665 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18666 constraints. Set up mem cost for NO_REGS case.
18667
18668 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
18669
18670 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18671
18672 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
18673
18674 * config/darwin.c: Include "lto-section-names.h".
18675 (LTO_SEGMENT_NAME): Don't define.
18676 * config/i386/winnt.c: Include "lto-section-names.h".
18677 * lto-streamer.c: Include "lto-section-names.h".
18678 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18679 * lto-wrapper.c: Include "lto-section-names.h".
18680 (LTO_SECTION_NAME_PREFIX): Don't define.
18681 * lto-section-names.h: New file.
18682 * cgraphunit.c: Include "lto-section-names.h".
18683
18684 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
18685
18686 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18687
18688 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
18689
18690 PR target/61208
18691 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18692
18693 2014-05-22 Nick Clifton <nickc@redhat.com>
18694
18695 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18696
18697 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
18698
18699 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18700 -> (T)A transformation to integer types.
18701
18702 2014-05-22 Teresa Johnson <tejohnson@google.com>
18703
18704 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18705 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18706 (gcov_rewrite): Use gcov_nonruntime_assert.
18707 (gcov_open): Ditto.
18708 (gcov_write_words): Ditto.
18709 (gcov_write_length): Ditto.
18710 (gcov_read_words): Use gcov_nonruntime_assert, and remove
18711 gcc_assert from IN_LIBGCOV code.
18712 (gcov_read_summary): Use gcov_error to flag profile corruption.
18713 (gcov_sync): Use gcov_nonruntime_assert.
18714 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18715 (gcov_histo_index): Use gcov_nonruntime_assert.
18716 (static void gcov_histogram_merge): Ditto.
18717 (compute_working_sets): Ditto.
18718 * gcov-io.h (gcov_nonruntime_assert): Define.
18719 (gcov_error): Define for !IN_LIBGCOV
18720
18721 2014-05-22 Richard Biener <rguenther@suse.de>
18722
18723 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18724 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18725 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18726 and deallocation site.
18727 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18728 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18729 passing through the incoming points-to set.
18730 (handle_lhs_call): Use flags argument instead of recomputing it.
18731 (find_func_aliases_for_call): Call handle_lhs_call with proper
18732 call return flags.
18733
18734 2014-05-22 Jakub Jelinek <jakub@redhat.com>
18735
18736 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18737 all padding bits in REAL_VALUE_TYPE are cleared.
18738
18739 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18740
18741 Cleanup and improve multipass_dfa_lookahead_guard
18742 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18743 (core2i7_first_cycle_multipass_begin,)
18744 (core2i7_first_cycle_multipass_issue,)
18745 (core2i7_first_cycle_multipass_backtrack): Update signature.
18746 * config/ia64/ia64.c
18747 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18748 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18749 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18750 hook definition.
18751 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18752 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
18753 values.
18754 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18755 return values.
18756 * doc/tm.texi: Regenerate.
18757 * doc/tm.texi.in
18758 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18759 * haifa-sched.c (ready_try): Make signed to allow negative values.
18760 (rebug_ready_list_1): Update.
18761 (choose_ready): Simplify.
18762 (sched_extend_ready_list): Update.
18763
18764 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18765
18766 Remove IA64 speculation tweaking flags
18767 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18768 speculation tuning flags.
18769 (msched-prefer-non-data-spec-insns,)
18770 (msched-prefer-non-control-spec-insns): Obsolete options.
18771 * haifa-sched.c (choose_ready): Remove handling of
18772 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18773 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18774 and PREFER_NON_DATA_SPEC.
18775 * sel-sched.c (process_spec_exprs): Remove handling of
18776 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18777
18778 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18779
18780 Improve scheduling debug output
18781 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18782 (advance_one_cycle): Update.
18783 (schedule_insn, queue_to_ready): Add debug printouts.
18784 (debug_ready_list_1): New static function.
18785 (debug_ready_list): Update.
18786 (max_issue): Add debug printouts.
18787 (dump_insn_stream): New static function.
18788 (schedule_block): Use it. Also better indent printouts.
18789
18790 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18791
18792 Fix sched_insn debug counter
18793 * haifa-sched.c (schedule_insn): Update.
18794 (struct haifa_saved_data): Add nonscheduled_insns_begin.
18795 (save_backtrack_point, restore_backtrack_point): Update.
18796 (first_nonscheduled_insn): New static function.
18797 (queue_to_ready, choose_ready): Use it.
18798 (schedule_block): Init nonscheduled_insns_begin.
18799 (sched_emit_insn): Update.
18800
18801
18802 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18803
18804 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18805 to GENERAL_REGS.
18806 (aarch64_secondary_reload) : LikeWise.
18807 (aarch64_class_max_nregs) : Remove CORE_REGS.
18808 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18809 (REG_CLASS_NAMES) : Likewise.
18810 (REG_CLASS_CONTENTS) : LikeWise.
18811 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18812
18813 2014-05-21 Guozhi Wei <carrot@google.com>
18814
18815 PR target/61202
18816 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18817 constraint.
18818 (vqdmulhq_n_s16): Likewise.
18819
18820 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18821
18822 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18823
18824 2014-05-21 Marek Polacek <polacek@redhat.com>
18825
18826 PR sanitizer/61272
18827 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18828
18829 2014-05-21 Martin Jambor <mjambor@suse.cz>
18830
18831 * doc/invoke.texi (Optimize Options): Document parameters
18832 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18833 ipa-cp-array-index-hint-bonus.
18834
18835 2014-05-21 Mark Wielaard <mjw@redhat.com>
18836
18837 PR debug/16063
18838 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18839 version >= 3 or not strict DWARF.
18840 * langhooks.h (struct lang_hooks_for_types): Add
18841 enum_underlying_base_type.
18842 * langhooks.c (lhd_enum_underlying_base_type): New function.
18843 * gcc/langhooks.h (struct lang_hooks_for_types): Add
18844 enum_underlying_base_type.
18845 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18846 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18847 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18848
18849 2014-05-21 Richard Biener <rguenther@suse.de>
18850
18851 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18852
18853 2014-05-21 John Marino <gnugcc@marino.st>
18854
18855 * config.gcc (*-*-dragonfly*): New target.
18856 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18857 * configure: Regenerate.
18858 * config/dragonfly-stdint.h: New.
18859 * config/dragonfly.h: New.
18860 * config/dragonfly.opt: New.
18861 * config/i386/dragonfly.h: New.
18862 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18863
18864 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18865
18866 * tree.def (VOID_CST): New.
18867 * tree-core.h (TI_VOID): New.
18868 * tree.h (void_node): New.
18869 * tree.c (tree_node_structure_for_code, tree_code_size)
18870 (iterative_hash_expr): Handle VOID_CST.
18871 (build_common_tree_nodes): Initialize void_node.
18872
18873 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
18874
18875 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18876 functions.
18877 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18878
18879 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18880 more places.
18881
18882 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18883 flag_reorder_blocks_and_partition.
18884 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18885
18886 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
18887
18888 PR target/54236
18889 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
18890 constraints.
18891 (*addc_r_t): Add new insn_and_split.
18892
18893 2014-05-21 Jakub Jelinek <jakub@redhat.com>
18894
18895 PR middle-end/61252
18896 * omp-low.c (handle_simd_reference): New function.
18897 (lower_rec_input_clauses): Use it. Defer adding reference
18898 initialization even for reduction without placeholder if in simd,
18899 handle it properly later on.
18900
18901 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18902
18903 PR tree-optimization/60899
18904 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18905 assume all static symbols will have definition wile parsing and
18906 check the do have definition later in compilation; check that
18907 variable referring symbol will be output before concluding that
18908 reference is safe; be conservative for referring local statics;
18909 be more precise about when comdat is output in other partition.
18910
18911 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18912
18913 PR bootstrap/60984
18914 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18915 parameter.
18916 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18917 (ipa_inline): Loop inline_to_all_callers until no more aliases
18918 are removed.
18919
18920 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18921
18922 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18923 set writeonly flag only for vars actually written to.
18924
18925 2014-05-20 Dehao Chen <dehao@google.com>
18926
18927 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
18928 and callee count to get clone count.
18929 * tree-inline.c (expand_call_inline): Use callee count instead of bb
18930 count in copy_body.
18931
18932 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18933
18934 PR rtl-optimization/61243
18935 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
18936
18937 2014-05-20 Xinliang David Li <davidxl@google.com>
18938
18939 * cgraphunit.c (walk_polymorphic_call_targets): Add
18940 dbgcnt and fopt-info support.
18941 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
18942 * ipa-devirt.c (ipa_devirt): Ditto.
18943 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
18944 * ipa.c (walk_polymorphic_call_targets): Ditto.
18945 * gimple-fold.c (fold_gimple_assign): Ditto.
18946 (gimple_fold_call): Ditto.
18947 * dbgcnt.def: New counter.
18948
18949 2014-05-20 DJ Delorie <dj@redhat.com>
18950
18951 * config/msp430/msp430.md (split): Don't allow subregs when
18952 splitting SImode adds.
18953 (andneghi): Fix subtraction logic.
18954 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18955
18956 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18957
18958 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18959 symbols.
18960 * except.c (switch_to_exception_section, resolve_unique_section,
18961 get_named_text_section, default_function_rodata_section,
18962 align_variable, get_block_for_decl, default_section_type_flags):
18963 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18964 * symtab.c (symtab_add_to_same_comdat_group,
18965 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18966 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18967 Likewise.
18968 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18969 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18970 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18971 (c6x_function_in_section_p): Likewise.
18972 * config/darwin.c (machopic_select_section): Likewise.
18973 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18974 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18975 * config/mep/mep.c (mep_select_section): LIkewise.
18976 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18977
18978 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18979
18980 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18981 EH region of calls to pure functions that can throw an exception.
18982 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18983 (copy_reference_ops_from_call): Also copy the EH region of the call if
18984 it can throw an exception.
18985
18986 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18987
18988 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
18989 nested VEC_SELECTs that are inverses of each other.
18990
18991 2014-05-20 Richard Biener <rguenther@suse.de>
18992
18993 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
18994 (extract_and_process_scc_for_name): not here.
18995 (cond_dom_walker::before_dom_children): Only process
18996 stmts that end the BB in interesting ways.
18997 (run_scc_vn): Mark param uses as visited.
18998
18999 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19000
19001 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19002 arm_restrict_it.
19003
19004 2014-05-20 Nick Clifton <nickc@redhat.com>
19005
19006 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19007 (msp430_gimplify_va_arg_expr): New function.
19008 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19009
19010 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19011 operand 0 in order to prevent confusion about the number of
19012 registers involved.
19013
19014 2014-05-20 Richard Biener <rguenther@suse.de>
19015
19016 PR tree-optimization/61221
19017 * tree-ssa-pre.c (el_to_update): Remove.
19018 (eliminate_dom_walker::before_dom_children): Handle released
19019 VDEFs by value-numbering them to the associated VUSE. Update
19020 stmt immediately for substituted call address.
19021 (eliminate): Remove delayed stmt updating code.
19022 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19023 possibly late re-numbered vuses.
19024 (vn_reference_lookup_2): Adjust.
19025 (vn_reference_lookup_pieces): Likewise.
19026 (vn_reference_lookup): Likewise.
19027
19028 2014-05-20 Richard Biener <rguenther@suse.de>
19029
19030 * config.gcc: Remove need_64bit_hwint.
19031 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19032 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19033 it to be true.
19034 * config.in: Regenerate.
19035 * configure: Likewise.
19036
19037 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19038
19039 * doc/extend.texi: Create Label Attributes section,
19040 move all label attributes into it and reference it.
19041
19042 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19043
19044 * arm.c (thumb1_reorg): When scanning backwards skip anything
19045 that's not a proper insn.
19046
19047 2014-05-19 Richard Biener <rguenther@suse.de>
19048
19049 PR tree-optimization/61221
19050 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19051 Do nothing for unreachable blocks.
19052 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19053 Improve unreachability detection.
19054
19055 2014-05-19 Richard Biener <rguenther@suse.de>
19056
19057 PR tree-optimization/61209
19058 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19059
19060 2014-05-19 Nick Clifton <nickc@redhat.com>
19061
19062 * except.c (init_eh): Fix computation of builtin setjmp buffer
19063 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19064
19065 2014-05-19 Richard Biener <rguenther@suse.de>
19066
19067 PR tree-optimization/61184
19068 * tree-vrp.c (is_negative_overflow_infinity): Use
19069 TREE_OVERFLOW_P and do that check first.
19070 (is_positive_overflow_infinity): Likewise.
19071 (is_overflow_infinity): Likewise.
19072 (vrp_operand_equal_p): Properly treat operands with
19073 differing overflow as not equal.
19074
19075 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19076
19077 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19078 shift simplification where it was intended.
19079
19080 2014-05-19 Christian Bruel <christian.bruel@st.com>
19081
19082 PR target/61195
19083 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19084
19085 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19086
19087 PR target/61084
19088 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19089 than wide_int.
19090
19091 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19092
19093 * reg-notes.def (CROSSING_JUMP): Likewise.
19094 * rtl.h (rtx_def): Update comment for jump flag.
19095 (CROSSING_JUMP_P): Define.
19096 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19097 of a REG_CROSSING_JUMP note.
19098 * cfghooks.c (tidy_fallthru_edges): Likewise.
19099 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19100 * emit-rtl.c (try_split): Likewise.
19101 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19102 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19103 * jump.c (redirect_jump_2): Likewise.
19104 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19105 (relax_delay_slots): Likewise.
19106 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19107 (bbit_di): Likewise.
19108 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19109 * config/sh/sh.md (jump_compact): Likewise.
19110 * bb-reorder.c (rotate_loop): Likewise.
19111 (pass_duplicate_computed_gotos::execute): Likewise.
19112 (add_reg_crossing_jump_notes): Rename to...
19113 (update_crossing_jump_flags): ...this.
19114 (pass_partition_blocks::execute): Update accordingly.
19115
19116 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19117
19118 * tree.h: Remove extraneous template <>.
19119
19120 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19121
19122 * ipa.c (symtab_remove_unreachable_nodes): Remove
19123 symbol from comdat group if its body was eliminated.
19124 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19125 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19126 (symtab_unregister_node): ... this one.
19127 (verify_symtab_base): More strict checking of comdats.
19128 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19129
19130 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19131
19132 * tree-pass.h (make_pass_ipa_comdats): New pass.
19133 * timevar.def (TV_IPA_COMDATS): New timevar.
19134 * passes.def (pass_ipa_comdats): Add.
19135 * Makefile.in (OBJS): Add ipa-comdats.o
19136 * ipa-comdats.c: New file.
19137
19138 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19139
19140 * ipa.c (update_visibility_by_resolution_info): New function.
19141 (function_and_variable_visibility): Use it.
19142
19143 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19144
19145 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19146 New functions.
19147 (FOR_EACH_DEFINED_SYMBOL): New macro.
19148 (varpool_first_static_initializer, varpool_next_static_initializer,
19149 varpool_first_defined_variable, varpool_next_defined_variable):
19150 Fix comments.
19151 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19152
19153 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19154
19155 * ggc-page.c (ggc_handle_finalizers): Add comment.
19156
19157 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19158
19159 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19160 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19161 (ggc_internal_cleared_alloc): Likewise.
19162 * ggc-page.c (finalizer): New class.
19163 (vec_finalizer): Likewise.
19164 (globals::finalizers): New member.
19165 (globals::vec_finalizers): Likewise.
19166 (ggc_internal_alloc): Record the finalizer if any for the block being
19167 allocated.
19168 (ggc_handle_finalizers): New function.
19169 (ggc_collect): Call ggc_handle_finalizers.
19170 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19171 finalizer.
19172 (ggc_internal_cleared_alloc): Likewise.
19173 (finalize): New function.
19174 (need_finalization_p): Likewise.
19175 (ggc_alloc): Install the type's destructor as the finalizer if it
19176 might do something.
19177 (ggc_cleared_alloc): Likewise.
19178 (ggc_vec_alloc): Likewise.
19179 (ggc_cleared_vec_alloc): Likewise.
19180
19181 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19182
19183 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19184
19185 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19186
19187 * alias.c (record_alias_subset): Adjust.
19188 * bitmap.c (bitmap_element_allocate): Likewise.
19189 (bitmap_gc_alloc_stat): Likewise.
19190 * cfg.c (init_flow): Likewise.
19191 (alloc_block): Likewise.
19192 (unchecked_make_edge): Likewise.
19193 * cfgloop.c (alloc_loop): Likewise.
19194 (flow_loops_find): Likewise.
19195 (rescan_loop_exit): Likewise.
19196 * cfgrtl.c (init_rtl_bb_info): Likewise.
19197 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19198 (cgraph_allocate_node): Likewise.
19199 (cgraph_create_edge_1): Likewise.
19200 (cgraph_allocate_init_indirect_info): Likewise.
19201 * cgraphclones.c (cgraph_clone_edge): Likewise.
19202 * cgraphunit.c (add_asm_node): Likewise.
19203 (init_lowered_empty_function): Likewise.
19204 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19205 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19206 (alpha_use_linkage): Likewise.
19207 * config/arc/arc.c (arc_init_machine_status): Likewise.
19208 * config/arm/arm.c (arm_init_machine_status): Likewise.
19209 * config/avr/avr.c (avr_init_machine_status): Likewise.
19210 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19211 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19212 * config/cris/cris.c (cris_init_machine_status): Likewise.
19213 * config/darwin.c (machopic_indirection_name): Likewise.
19214 (darwin_build_constant_cfstring): Likewise.
19215 (darwin_enter_string_into_cfstring_table): Likewise.
19216 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19217 * config/frv/frv.c (frv_init_machine_status): Likewise.
19218 * config/i386/i386.c (get_dllimport_decl): Likewise.
19219 (ix86_init_machine_status): Likewise.
19220 (assign_386_stack_local): Likewise.
19221 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19222 (i386_pe_maybe_record_exported_symbol): Likewise.
19223 (i386_pe_record_stub): Likewise.
19224 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19225 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19226 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19227 (m32c_note_pragma_address): Likewise.
19228 * config/mep/mep.c (mep_init_machine_status): Likewise.
19229 (mep_note_pragma_flag): Likewise.
19230 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19231 (mips16_local_alias): Likewise.
19232 (mips_init_machine_status): Likewise.
19233 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19234 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19235 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19236 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19237 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19238 * config/pa/pa.c (pa_init_machine_status): Likewise.
19239 (pa_get_deferred_plabel): Likewise.
19240 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19241 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19242 (rs6000_init_machine_status): Likewise.
19243 (output_toc): Likewise.
19244 * config/s390/s390.c (s390_init_machine_status): Likewise.
19245 * config/score/score.c (score_output_external): Likewise.
19246 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19247 * config/spu/spu.c (spu_init_machine_status): Likewise.
19248 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19249 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19250 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19251 * coverage.c (coverage_end_function): Likewise.
19252 * dbxout.c (dbxout_init): Likewise.
19253 * doc/gty.texi: Don't mention variable_size attribute.
19254 * dwarf2cfi.c (new_cfi): Adjust.
19255 (new_cfi_row): Likewise.
19256 (copy_cfi_row): Likewise.
19257 (create_cie_data): Likewise.
19258 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19259 (new_loc_descr): Likewise.
19260 (find_AT_string_in_table): Likewise.
19261 (add_addr_table_entry): Likewise.
19262 (new_die): Likewise.
19263 (add_var_loc_to_decl): Likewise.
19264 (clone_die): Likewise.
19265 (clone_as_declaration): Likewise.
19266 (break_out_comdat_types): Likewise.
19267 (new_loc_list): Likewise.
19268 (add_loc_descr_to_each): Likewise.
19269 (add_location_or_const_value_attribute): Likewise.
19270 (add_linkage_name): Likewise.
19271 (lookup_filename): Likewise.
19272 (dwarf2out_var_location): Likewise.
19273 (new_line_info_table): Likewise.
19274 (dwarf2out_init): Likewise.
19275 (mem_loc_descriptor): Likewise.
19276 (loc_descriptor): Likewise.
19277 (add_const_value_attribute): Likewise.
19278 (tree_add_const_value_attribute): Likewise.
19279 (comp_dir_string): Likewise.
19280 (dwarf2out_vms_debug_main_pointer): Likewise.
19281 (string_cst_pool_decl): Likewise.
19282 * emit-rtl.c (set_mem_attrs): Likewise.
19283 (get_reg_attrs): Likewise.
19284 (start_sequence): Likewise.
19285 (init_emit): Likewise.
19286 (init_emit_regs): Likewise.
19287 * except.c (init_eh_for_function): Likewise.
19288 (gen_eh_region): Likewise.
19289 (gen_eh_region_catch): Likewise.
19290 (gen_eh_landing_pad): Likewise.
19291 (add_call_site): Likewise.
19292 * function.c (add_frame_space): Likewise.
19293 (insert_temp_slot_address): Likewise.
19294 (assign_stack_temp_for_type): Likewise.
19295 (get_hard_reg_initial_val): Likewise.
19296 (allocate_struct_function): Likewise.
19297 (prepare_function_start): Likewise.
19298 (types_used_by_var_decl_insert): Likewise.
19299 * gengtype.c (variable_size_p): Remove function.
19300 (enum alloc_quantity): Remove enum.
19301 (write_typed_alloc_def): Remove function.
19302 (write_typed_struct_alloc_def): Likewise.
19303 (write_typed_typedef_alloc_def): Likewise.
19304 (write_typed_alloc_defns): Likewise.
19305 (main): Adjust.
19306 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19307 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19308 * ggc.h (ggc_alloc): new function.
19309 (ggc_cleared_alloc): Likewise.
19310 (ggc_vec_alloc): Template on type of vector element, and remove
19311 element size argument.
19312 (ggc_cleared_vec_alloc): Likewise.
19313 * gimple.c (gimple_build_omp_for): Adjust.
19314 (gimple_copy): Likewise.
19315 * ipa-cp.c (get_replacement_map): Likewise.
19316 (find_aggregate_values_for_callers_subset): Likewise.
19317 (known_aggs_to_agg_replacement_list): Likewise.
19318 * ipa-devirt.c (get_odr_type): Likewise.
19319 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19320 (read_agg_replacement_chain): Likewise.
19321 * loop-iv.c (get_simple_loop_desc): Likewise.
19322 * lto-cgraph.c (input_node_opt_summary): Likewise.
19323 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19324 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19325 (input_eh_region): Likewise.
19326 (input_eh_lp): Likewise.
19327 (input_cfg): Likewise.
19328 * optabs.c (set_optab_libfunc): Likewise.
19329 (init_tree_optimization_optabs): Likewise.
19330 (set_conv_libfunc): Likewise.
19331 * passes.c (do_per_function_toporder): Likewise.
19332 * rtl.h: Don't use variable_size gty attribute.
19333 * sese.c (if_region_set_false_region): Adjust.
19334 * stringpool.c (gt_pch_save_stringpool): Likewise.
19335 * target-globals.c (save_target_globals): Likewise.
19336 * toplev.c (general_init): Likewise.
19337 * trans-mem.c (record_tm_replacement): Likewise.
19338 (split_bb_make_tm_edge): Likewise.
19339 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19340 * tree-data-ref.h (lambda_vector_new): Likewise.
19341 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19342 * tree-iterator.c (tsi_link_before): Likewise.
19343 (tsi_link_after): Likewise.
19344 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19345 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19346 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19347 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19348 * tree-ssa.c (init_tree_ssa): Adjust.
19349 * tree-ssanames.c (set_range_info): Likewise.
19350 (get_ptr_info): Likewise.
19351 (duplicate_ssa_name_ptr_info): Likewise.
19352 (duplicate_ssa_name_range_info): Likewise.
19353 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19354 (unpack_ts_fixed_cst_value_fields): Likewise.
19355 * tree.c (build_fixed): Likewise.
19356 (build_real): Likewise.
19357 (build_string): Likewise.
19358 (decl_priority_info): Likewise.
19359 (decl_debug_expr_insert): Likewise.
19360 (decl_value_expr_insert): Likewise.
19361 (decl_debug_args_insert): Likewise.
19362 (type_hash_add): Likewise.
19363 (build_omp_clause): Likewise.
19364 * ubsan.c (decl_for_type_insert): Likewise.
19365 * varasm.c (get_unnamed_section): Likewise.
19366 (get_noswitch_section): Likewise.
19367 (get_section): Likewise.
19368 (get_block_for_section): Likewise.
19369 (create_block_symbol): Likewise.
19370 (build_constant_desc): Likewise.
19371 (create_constant_pool): Likewise.
19372 (force_const_mem): Likewise.
19373 (record_tm_clone_pair): Likewise.
19374 * varpool.c (varpool_create_empty_node): Likewise.
19375
19376 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19377
19378 * dwarf2out.c (tree_add_const_value_attribute): Call
19379 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19380 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19381 instead of ggc_internal_<x>alloc_stat.
19382 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19383 (ggc_realloc): Likewise.
19384 * ggc-none.c (ggc_internal_alloc): Likewise.
19385 (ggc_internal_cleared_alloc): Likewise.
19386 * ggc-page.c: Likewise.
19387 * ggc.h (ggc_internal_alloc_stat): Likewise.
19388 (ggc_internal_alloc): Remove macro.
19389 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19390 (ggc_internal_cleared_alloc): Remove macro.
19391 (GGC_RESIZEVEC): Adjust.
19392 (ggc_resizevar): Remove macro.
19393 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19394 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19395 (ggc_internal_vec_cleared_alloc): Remove macro.
19396 (ggc_alloc_atomic_stat): Drop _stat suffix.
19397 (ggc_alloc_atomic): Remove macro.
19398 (ggc_alloc_cleared_atomic): Remove macro.
19399 (ggc_alloc_string_stat): Drop _stat suffix.
19400 (ggc_alloc_string): Remove macro.
19401 (ggc_alloc_rtx_def_stat): Adjust.
19402 (ggc_alloc_tree_node_stat): Likewise.
19403 (ggc_alloc_cleared_tree_node_stat): Likewise.
19404 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19405 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19406 * gimple.c (gimple_build_omp_for): Likewise.
19407 (gimple_copy): Likewise.
19408 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19409 * toplev.c (realloc_for_line_map): Adjust.
19410 * tree-data-ref.h (lambda_vector_new): Likewise.
19411 * tree-phinodes.c (allocate_phi_node): Likewise.
19412 * tree.c (grow_tree_vec_stat): Likewise.
19413 * vec.h (va_gc::reserve): Adjust.
19414
19415 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19416
19417 * config/microblaze/microblaze.c (break_handler): New Declaration.
19418 (microblaze_break_function_p,microblaze_is_break_handler): New.
19419 (compute_frame_size): Use microblaze_break_function_p.
19420 Add the test of break_handler.
19421 (microblaze_function_prologue) : Add the test of variable
19422 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19423 (microblaze_function_epilogue) : Add the test of break_handler.
19424 (microblaze_globalize_label) : Add the test of break_handler.
19425 Check the name by BREAK_HANDLER_NAME.
19426
19427 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19428
19429 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19430 microblaze_is_break_handler test.
19431 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19432 Use SYMBOL_REF_DECL.
19433
19434 * config/microblaze/microblaze-protos.h
19435 (microblaze_break_function_p,microblaze_is_break_handler):
19436 New Declaration.
19437
19438 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19439 new MicroBlaze break_handler functions.
19440
19441 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19442
19443 * doc/extend.texi (Size of an asm): Move node text according
19444 to its @menu entry position.
19445
19446 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19447
19448 PR tree-optimization/61140
19449 PR tree-optimization/61150
19450 PR tree-optimization/61197
19451 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19452
19453 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19454
19455 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19456
19457 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19458
19459 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19460 __SIZEOF_INT128__ is defined.
19461
19462 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19463
19464 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19465 (rs6000_delegitimize_address): Use it.
19466
19467 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19468
19469 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19470 inplace argument. Store the new address in the original MEM when true.
19471 * emit-rtl.c (change_address_1): Likewise.
19472 (adjust_address_1, adjust_automodify_address_1, offset_address):
19473 Update accordingly.
19474 * rtl.h (plus_constant): Add an inplace argument.
19475 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19476 when true. Avoid generating (plus X (const_int 0)).
19477 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19478 in-place. Pass true to plus_constant.
19479 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19480
19481 2014-05-16 Dehao Chen <dehao@google.com>
19482
19483 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19484
19485 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19486
19487 PR target/54089
19488 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19489 patterns.
19490 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19491
19492 2014-05-16 Dehao Chen <dehao@google.com>
19493
19494 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19495 optimize_function_for_size_p.
19496 * regs.h (REG_FREQ_FROM_BB): Likewise.
19497
19498 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19499
19500 PR target/51244
19501 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19502 negt_reg_operand cases.
19503 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19504 predicate.
19505 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19506
19507 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19508
19509 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19510 target variants.
19511
19512 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19513
19514 Revert:
19515 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19516
19517 * tree-cfg.c (dump_function_to_file): Dump the return type of
19518 functions, in a line to itself before the function body, mimicking
19519 the layout of a C function.
19520
19521 2014-05-16 Dehao Chen <dehao@google.com>
19522
19523 * cfghooks.c (make_forwarder_block): Use direct computation to
19524 get fall-through edge's count and frequency.
19525
19526 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19527
19528 * config/arc/arc.c (arc_init): Fix typo in error message.
19529 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19530 (split_stack_prologue_scratch_regno): Likewise.
19531 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19532 word from error message.
19533
19534 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19535
19536 * ira-costs.c: Fix typo in comment.
19537
19538 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19539
19540 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19541
19542 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19543
19544 * varpool.c (dump_varpool_node): Dump write-only flag.
19545 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19546 write-only flag.
19547 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19548 write-only variables.
19549 * ipa.c (process_references): New function.
19550 (set_readonly_bit): New function.
19551 (set_writeonly_bit): New function.
19552 (clear_addressable_bit): New function.
19553 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19554 fix handling of aliases.
19555 * cgraph.h (struct varpool_node): Add writeonly flag.
19556
19557 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19558
19559 PR rtl-optimization/60969
19560 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19561 Calculate costs for this case.
19562
19563 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19564
19565 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19566 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19567
19568 2014-05-16 Richard Biener <rguenther@suse.de>
19569
19570 PR tree-optimization/61194
19571 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19572 bool patterns ending in a COND_EXPR.
19573
19574 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19575
19576 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19577
19578 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19579
19580 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19581 where we were unable to cost an RTX.
19582
19583 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19584
19585 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19586 HIGH, LO_SUM.
19587
19588 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19589 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19590
19591 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19592
19593 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19594 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19595
19596 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19597 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19598
19599 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19600 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19601
19602 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19603 operators.
19604
19605 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19606 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19607
19608 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19609 DIV/MOD.
19610
19611 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19612 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19613
19614 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19615 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19616
19617 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19618 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19619
19620 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19621 rotates and shifts.
19622
19623 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19624 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19625
19626 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19627 ZERO_EXTEND and SIGN_EXTEND better.
19628
19629 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19630 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19631
19632 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19633 logical operations.
19634
19635 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19636 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19637
19638 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19639 costs when costing loads and stores to memory.
19640
19641 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19642 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
19643
19644 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19645 for SET RTX.
19646
19647 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19648
19649 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19650
19651 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19652 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19653
19654 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19655 to...
19656 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19657 well formed.
19658 (aarch64_rtx_mult_cost): New.
19659 (aarch64_rtx_costs): Use it, refactor as appropriate.
19660
19661 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19662 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19663
19664 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19665 emit instructions, return number of instructions which would
19666 be emitted.
19667 (aarch64_add_constant): Update call to aarch64_build_constant.
19668 (aarch64_output_mi_thunk): Likewise.
19669 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19670 a CONST_DOUBLE.
19671
19672 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19673
19674 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19675 (TARGET_RTX_COSTS): Call it.
19676
19677 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19678
19679 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19680 (cortexa57_vector_cost): Likewise.
19681 (cortexa57_tunings): Use them.
19682
19683 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19684
19685 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19686 (cpu_addrcost_table): Use it.
19687 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19688 (aarch64_address_cost): Rewrite using aarch64_classify_address,
19689 move it.
19690
19691 2014-05-16 Richard Biener <rguenther@suse.de>
19692
19693 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19694 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19695 (visit_phi): Ignore edges marked as not executable.
19696 (class cond_dom_walker): New.
19697 (cond_dom_walker::before_dom_children): Value-number
19698 control statements and mark successor edges as not
19699 executable if possible.
19700 (run_scc_vn): First walk all control statements in
19701 dominator order, marking edges as not executable.
19702 * tree-inline.c (copy_edges_for_bb): Be not confused
19703 about random edge flags.
19704
19705 2014-05-16 Richard Biener <rguenther@suse.de>
19706
19707 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19708
19709 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
19710
19711 PR target/61193
19712 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19713 (__TM_simple_begin): Use it.
19714 (__TM_begin): Likewise.
19715
19716 2014-05-15 Martin Jambor <mjambor@suse.cz>
19717
19718 PR ipa/61085
19719 * ipa-prop.c (update_indirect_edges_after_inlining): Check
19720 type_preserved flag when the indirect edge is polymorphic.
19721
19722 2014-05-15 Martin Jambor <mjambor@suse.cz>
19723
19724 PR tree-optimization/61090
19725 * tree-sra.c (sra_modify_expr): Pass the current gsi to
19726 build_ref_for_model.
19727
19728 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19729
19730 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19731 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19732
19733 2014-05-15 Jakub Jelinek <jakub@redhat.com>
19734
19735 PR tree-optimization/61158
19736 * fold-const.c (fold_binary_loc): If X is zero-extended and
19737 shiftc >= prec, make sure zerobits is all ones instead of
19738 invoking undefined behavior.
19739
19740 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19741
19742 * regcprop.h: New file.
19743 * regcprop.c (skip_debug_insn_p): New decl.
19744 (replace_oldest_value_reg): Check skip_debug_insn_p.
19745 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19746 * shrink-wrap.c: Include regcprop.h.
19747 (prepare_shrink_wrap): Call
19748 copyprop_hardreg_forward_bb_without_debug_insn.
19749
19750 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19751
19752 * shrink-wrap.h: Update comment.
19753 * shrink-wrap.c: Update comment.
19754 (next_block_for_reg): Rename to live_edge_for_reg.
19755 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19756 (move_insn_for_shrink_wrap): Split live_edge.
19757 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19758
19759 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19760
19761 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19762 Delete.
19763 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19764 * config/sparc/sparc.md (fptype_ut699): New attribute.
19765 (in_branch_delay): Return false if -mfix-ut699 is specified and
19766 fptype_ut699 is set to single.
19767 (truncdfsf2): Add fptype_ut699 attribute.
19768 (fix_truncdfsi2): Likewise.
19769 (floatsisf2): Change fptype attribute.
19770 (fix_truncsfsi2): Likewise.
19771 (negtf2_notv9): Delete.
19772 (negtf2_v9): Likewise.
19773 (negtf2_hq): New instruction.
19774 (negtf2): New instruction and splitter.
19775 (negdf2_notv9): Rewrite.
19776 (abstf2_notv9): Delete.
19777 (abstf2_hq_v9): Likewise.
19778 (abstf2_v9): Likewise.
19779 (abstf2_hq): New instruction.
19780 (abstf2): New instruction and splitter.
19781 (absdf2_notv9): Rewrite.
19782
19783 2014-05-14 Cary Coutant <ccoutant@google.com>
19784
19785 PR debug/61013
19786 * opts.c (common_handle_option): Don't special-case "-g".
19787 (set_debug_level): Default to at least level 2 with "-g".
19788
19789 2014-05-14 DJ Delorie <dj@redhat.com>
19790
19791 * config/msp430/msp430.c (msp430_builtin): Add
19792 MSP430_BUILTIN_DELAY_CYCLES.
19793 (msp430_init_builtins): Register void __delay_cycles(long long).
19794 (msp430_builtin_decl): Add it.
19795 (cg_magic_constant): New.
19796 (msp430_expand_delay_cycles): New.
19797 (msp430_expand_builtin): Call it.
19798 (msp430_print_operand_raw): Change integer printing from "int" to
19799 HOST_WIDE_INT.
19800 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19801 (delay_cycles_start): New.
19802 (delay_cycles_end): New.
19803 (delay_cycles_32): New.
19804 (delay_cycles_32x): New.
19805 (delay_cycles_16): New.
19806 (delay_cycles_16x): New.
19807 (delay_cycles_2): New.
19808 (delay_cycles_1): New.
19809 * doc/extend.texi: Document __delay_cycles().
19810
19811 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
19812
19813 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19814 length attribute computation.
19815
19816 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
19817
19818 PR debug/61188
19819 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19820
19821 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
19822
19823 PR target/61084
19824 * config/sparc/sparc.md: Fix types of low and high in DI constant
19825 splitter. Use gen_int_mode in some other splitters.
19826
19827 2014-05-14 Martin Jambor <mjambor@suse.cz>
19828
19829 PR ipa/60897
19830 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19831
19832 2014-05-14 James Norris <jnorris@codesourcery.com>
19833
19834 * omp-low.c (expand_parallel_call): Remove shadow variable.
19835 (expand_omp_taskreg): Likewise.
19836
19837 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
19838
19839 * common/config/i386/i386-common.c
19840 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19841 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19842 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19843 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19844 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19845 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19846 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19847 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19848 xsavecintrin.h, xsavesintrin.h.
19849 (x86_64-*-*): Ditto.
19850 * config/i386/clflushoptintrin.h: New.
19851 * config/i386/xsavecintrin.h: Ditto.
19852 * config/i386/xsavesintrin.h: Ditto.
19853 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19854 (bit_XSAVES): Ditto.
19855 (bit_XSAVES): Ditto.
19856 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19857 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19858 -mno-clflushopt.
19859 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19860 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19861 OPTION_MASK_ISA_XSAVES.
19862 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19863 -mxsavec, -mxsaves.
19864 (PTA_CLFLUSHOPT) Define.
19865 (PTA_XSAVEC): Ditto.
19866 (PTA_XSAVES): Ditto.
19867 (ix86_option_override_internal): Handle new options.
19868 (ix86_valid_target_attribute_inner_p): Ditto.
19869 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19870 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19871 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19872 (bdesc_special_args): Add __builtin_ia32_xsaves,
19873 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19874 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19875 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19876 (ix86_expand_builtin): Handle new builtins.
19877 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19878 (TARGET_CLFLUSHOPT_P): Ditto.
19879 (TARGET_XSAVEC): Ditto.
19880 (TARGET_XSAVEC_P): Ditto.
19881 (TARGET_XSAVES): Ditto.
19882 (TARGET_XSAVES_P): Ditto.
19883 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19884 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19885 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19886 (ANY_XRSTOR): New.
19887 (ANY_XRSTOR64): Ditto.
19888 (xrstor): Ditto.
19889 (xrstor): Change into <xrstor>.
19890 (xrstor_rex64): Change into <xrstor>_rex64.
19891 (xrstor64): Change into <xrstor>64
19892 (clflushopt): New.
19893 * config/i386/i386.opt (mclflushopt): New.
19894 (mxsavec): Ditto.
19895 (mxsaves): Ditto.
19896 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19897 xsavecintrin.h.
19898 * doc/invoke.texi: Document new options.
19899
19900 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19901
19902 PR rtl-optimization/60866
19903 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19904 Default it to -1. Pass it down to init_simplejump_data.
19905 (init_simplejump_data): New parameter old_seqno. Pass it down
19906 to get_seqno_for_a_jump.
19907 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
19908 initializing new jump seqno as a last resort. Add comment.
19909 (sel_redirect_edge_and_branch): Save old seqno of the conditional
19910 jump and pass it down to sel_init_new_insn.
19911 (sel_redirect_edge_and_branch_force): Likewise.
19912
19913 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
19914
19915 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19916 shifted values to avoid build warning.
19917
19918 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19919
19920 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19921 * cfgrtl.c (rtl_merge_blocks): Fix comment.
19922 (cfg_layout_merge_blocks): Likewise.
19923 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19924
19925 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19926
19927 PR rtl-optimization/60901
19928 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
19929 bb predecessor belongs to the same scheduling region. Adjust comment.
19930
19931 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
19932
19933 * doc/sourcebuild.texi: (dfp_hw): Document.
19934 (p8vector_hw): Likewise.
19935 (powerpc_eabi_ok): Likewise.
19936 (powerpc_elfv2): Likewise.
19937 (powerpc_htm_ok): Likewise.
19938 (ppc_recip_hw): Likewise.
19939 (vsx_hw): Likewise.
19940
19941 2014-05-13 Cary Coutant <ccoutant@google.com>
19942
19943 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
19944
19945 2014-05-13 David Malcolm <dmalcolm@redhat.com>
19946
19947 * gengtype-parse.c (require3): Eliminate in favor of...
19948 (require4): New.
19949 (require_template_declaration): Update to support optional single *
19950 on a type.
19951
19952 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19953 (create_user_defined_type): Handle a single level of explicit
19954 pointerness within template arguments.
19955 (struct write_types_data): Add field "kind".
19956 (filter_type_name): Handle "*" character.
19957 (write_user_func_for_structure_ptr): Require a write_types_data
19958 rather than just a prefix string, so that we can look up the kind
19959 of the wtd and use it as an index into wrote_user_func_for_ptr,
19960 ensuring that such functions are written at most once. Support
19961 subclasses by invoking the marking function of the ultimate base class.
19962 (write_user_func_for_structure_body): Require a write_types_data
19963 rather than just a prefix string, so that we can pass this to
19964 write_user_func_for_structure_ptr.
19965 (write_func_for_structure): Likewise.
19966 (ggc_wtd): Add initializer of new "kind" field.
19967 (pch_wtd): Likewise.
19968
19969 * gengtype.h (enum write_types_kinds): New.
19970 (struct type): Add field wrote_user_func_for_ptr to the "s"
19971 union member.
19972
19973 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19974
19975 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19976 instead of const_binop.
19977 (fold_binary_loc): Likewise.
19978
19979 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19980
19981 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19982 calculation to match get_ref_base_and_extent.
19983
19984 2014-05-13 Catherine Moore <clm@codesourcery.com>
19985 Sandra Loosemore <sandra@codesourcery.com>
19986
19987 * configure.ac: Fix assembly for explicit JALR relocation check.
19988 * configure: Regenerate.
19989
19990 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19991
19992 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
19993 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
19994 Remove associated type declarations and initialisations.
19995 (arm_expand_neon_builtin): Likewise.
19996 (neon_emit_pair_result_insn): Delete.
19997 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
19998 * config/arm/neon.md (neon_vtrn<mode>): Delete.
19999 (neon_vzip<mode>): Likewise.
20000 (neon_vuzp<mode>): Likewise.
20001
20002 2014-05-13 Richard Biener <rguenther@suse.de>
20003
20004 PR ipa/60973
20005 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20006 it needs revisiting whether the call still may be tail-called.
20007
20008 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20009
20010 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20011 * rtl.h (block_symbol): Reduce number of fields to 2.
20012 (rtx_def): Add u2.symbol_ref_flags.
20013 (SYMBOL_REF_FLAGS): Use it.
20014 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20015 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20016 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20017 Lower index of SYMBOL_REF_DATA.
20018 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20019 Print SYMBOL_REF_FLAGS at the same time.
20020 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20021
20022 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20023
20024 * rtl.def (VAR_LOCATION): Remove "i" field.
20025 * rtl.h (rtx_def): Add u2.var_location_status.
20026 (PAT_VAR_LOCATION_STATUS): Use it.
20027 (gen_rtx_VAR_LOCATION): Declare.
20028 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20029 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20030 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20031
20032 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20033
20034 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20035 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20036
20037 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20038
20039 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20040 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20041 * rtl.h (rtx_def): Add insn_uid to u2 field.
20042 (RTX_FLAG_CHECK8): Delete in favor of...
20043 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20044 (INSN_DELETED_P): Update accordingly.
20045 (INSN_UID): Use u2.insn_uid.
20046 (INSN_CHAIN_CODE_P): Define.
20047 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20048 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20049 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20050 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20051 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20052 indices accordingly.
20053 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20054 Update indices for insn-chain rtxes.
20055 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20056 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20057 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20058 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20059 * combine.c (try_combine): Likewise.
20060 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20061
20062 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20063
20064 * rtl.def (REG): Remove middle field.
20065 * rtl.h (rtx_def): Add orignal_regno to u2.
20066 (ORIGINAL_REGNO): Use it instead of field 1.
20067 (REG_ATTRS): Lower field index accordingly.
20068 * gengtype.c (adjust_field_rtx_def): Remove handling of
20069 ORIGINAL_REGNO. Move REG_ATTRS index down.
20070 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20071 code that prints the REGNO.
20072
20073 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20074
20075 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20076 GENERATOR_FILE.
20077
20078 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20079
20080 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20081
20082 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20083
20084 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20085 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20086
20087 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20088
20089 * config/aarch64/aarch64-protos.h
20090 (aarch64_hard_regno_caller_save_mode): New prototype.
20091 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20092 New function.
20093 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20094
20095 2014-05-13 Christian Bruel <christian.bruel@st.com>
20096
20097 * target.def (mode_switching): New hook vector.
20098 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20099 (mode_exit, modepriority_to_mode): Likewise.
20100 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20101 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20102 * target.h: Include tm.h and hard-reg-set.h.
20103 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20104 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20105 * doc/tm.texi Regenerate.
20106 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20107 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20108 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20109 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20110 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20111 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20112 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20113 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20114 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20115 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20116 (ix86_emit_mode_set): Hookify.
20117 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20118 Delete.
20119 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20120 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20121 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20122 (epiphany_mode_priority_to_mode): Remove declaration.
20123 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20124 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20125 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20126 Likewise.
20127 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20128 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20129 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20130
20131 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20132
20133 PR target/61060
20134 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20135 is const0_rtx, return immediately. Don't test count == 0 when
20136 it is always true.
20137
20138 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20139
20140 * Makefile.in: add shrink-wrap.o.
20141 * config/i386/i386.c: include "shrink-wrap.h"
20142 * function.c: Likewise.
20143 (requires_stack_frame_p, next_block_for_reg,
20144 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20145 dup_block_and_redirect): Move to shrink-wrap.c
20146 (thread_prologue_and_epilogue_insns): Extract three code segments
20147 as functions in shrink-wrap.c
20148 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20149 shrink-wrap.h
20150 * shrink-wrap.c: New file.
20151 * shrink-wrap.h: New file.
20152
20153 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20154
20155 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20156 reference to Solaris.
20157
20158 2014-05-12 Mike Stump <mikestump@comcast.net>
20159
20160 PR other/31778
20161 * genattrtab.c (filename): Add.
20162 (convert_set_attr_alternative): Improve error message.
20163 (check_defs): Restore read_md_filename for error messages.
20164 (gen_insn): Save filename.
20165
20166 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20167
20168 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20169 -fno-local-ivars and -fivar-visibility.
20170 * c-family/c.opt: Make -Wshadow also implicitly enable
20171 -Wshadow-ivar.
20172
20173 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20174
20175 * doc/tm.texi: Remove reference to deleted macro.
20176 * doc/tm.texi.in: Likewise.
20177
20178 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20179
20180 PR target/60991
20181 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20182 to restore Y.
20183
20184 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20185
20186 PR libgcc/61152
20187 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20188 * config/arm/aout.h (License): Same.
20189 * config/arm/bpabi.h (License): Same.
20190 * config/arm/elf.h (License): Same.
20191 * config/arm/linux-elf.h (License): Same.
20192 * config/arm/linux-gas.h (License): Same.
20193 * config/arm/netbsd-elf.h (License): Same.
20194 * config/arm/uclinux-eabi.h (License): Same.
20195 * config/arm/uclinux-elf.h (License): Same.
20196 * config/arm/vxworks.h (License): Same.
20197
20198 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20199
20200 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20201 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20202 number of operands to 3.
20203 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20204 * tree-nested.c (convert_nonlocal_omp_clauses,
20205 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20206 * gimplify.c (gimplify_scan_omp_clauses): Handle
20207 OMP_CLAUSE_LINEAR_STMT.
20208 * omp-low.c (lower_rec_input_clauses): Fix typo.
20209 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20210 cast between Fortran boolean_type_node and C _Bool if
20211 needed.
20212
20213 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20214
20215 PR tree-optimization/61136
20216 * wide-int.h (multiple_of_p): Define a version that doesn't return
20217 the quotient.
20218 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20219 integer_zerop/const_binop pair.
20220 (multiple_of_p): Likewise, converting both operands to widest_int
20221 precision.
20222
20223 2014-05-09 Teresa Johnson <tejohnson@google.com>
20224
20225 * cgraphunit.c (analyze_functions): Use correct dump file.
20226
20227 2014-05-09 Florian Weimer <fweimer@redhat.com>
20228
20229 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20230 expand_used_vars.
20231 (stack_protect_return_slot_p): New function.
20232 (expand_used_vars): Call stack_protect_decl_p and
20233 stack_protect_return_slot_p for -fstack-protector-strong.
20234
20235 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20236 Andrew Haley <aph@redhat.com>
20237 Richard Sandiford <rdsandiford@googlemail.com>
20238
20239 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20240 pages.
20241
20242 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20243
20244 PR middle-end/61111
20245 * fold-const.c (fold_binary_loc): Changed width of mask.
20246
20247 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20248
20249 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20250 unsigned int initializers for regno_in, regno_out.
20251
20252 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20253
20254 PR target/61055
20255 * config/avr/avr.md (cc): Add new attribute set_vzn.
20256 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20257 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20258 with INC, DEC or NEG.
20259 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20260 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20261 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20262
20263 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20264
20265 Revert:
20266 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20267
20268 * wide-int.cc (UTItype): Define.
20269 (UDWtype): Define for appropriate W_TYPE_SIZE.
20270
20271 2014-05-09 Richard Biener <rguenther@suse.de>
20272
20273 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20274 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20275 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20276 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20277 ssa_propagate): Adjust.
20278
20279 2014-05-08 Jeff Law <law@redhat.com>
20280
20281 PR tree-optimization/61009
20282 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20283 tri-state rather than a boolean. When a block is too big to
20284 thread through, inform caller via negative return value.
20285 (thread_across_edge): If a block was too big for normal threading,
20286 then it's too big for a joiner too, so remove temporary equivalences
20287 and return immediately.
20288
20289 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20290 Matthias Klose <doko@ubuntu.com>
20291
20292 PR driver/61106
20293 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20294
20295 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20296
20297 PR target/59952
20298 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20299
20300 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20301
20302 PR target/61092
20303 * config/alpha/alpha.c: Include gimple-iterator.h.
20304 (alpha_gimple_fold_builtin): New function. Move
20305 ALPHA_BUILTIN_UMULH folding from ...
20306 (alpha_fold_builtin): ... here.
20307 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20308
20309 2014-05-08 Wei Mi <wmi@google.com>
20310
20311 PR target/58066
20312 * config/i386/i386.c (ix86_compute_frame_layout): Update
20313 preferred_stack_boundary for call, expanded from tls descriptor.
20314 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20315 to depend on SP register.
20316 (*tls_local_dynamic_base_32_gnu): Ditto.
20317 (*tls_local_dynamic_32_once): Ditto.
20318 (tls_global_dynamic_64_<mode>): Set
20319 ix86_tls_descriptor_calls_expanded_in_cfun.
20320 (tls_local_dynamic_base_64_<mode>): Ditto.
20321 (tls_global_dynamic_32): Set
20322 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20323 to depend on SP register.
20324 (tls_local_dynamic_base_32): Ditto.
20325
20326 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20327
20328 * config/arm/arm_neon.h: Update comment.
20329 * config/arm/neon-docgen.ml: Delete.
20330 * config/arm/neon-gen.ml: Delete.
20331 * doc/arm-neon-intrinsics.texi: Update comment.
20332
20333 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20334
20335 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20336 and v4sf versions.
20337 (vand, vorr, veor, vorn, vbic): Remove.
20338 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20339 iterator.
20340 (neon_vsub_unspec): Likewise.
20341 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20342
20343 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20344
20345 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20346 (vadd_s16): Likewise.
20347 (vadd_s32): Likewise.
20348 (vadd_f32): Likewise.
20349 (vadd_u8): Likewise.
20350 (vadd_u16): Likewise.
20351 (vadd_u32): Likewise.
20352 (vadd_s64): Likewise.
20353 (vadd_u64): Likewise.
20354 (vaddq_s8): Likewise.
20355 (vaddq_s16): Likewise.
20356 (vaddq_s32): Likewise.
20357 (vaddq_s64): Likewise.
20358 (vaddq_f32): Likewise.
20359 (vaddq_u8): Likewise.
20360 (vaddq_u16): Likewise.
20361 (vaddq_u32): Likewise.
20362 (vaddq_u64): Likewise.
20363 (vmul_s8): Likewise.
20364 (vmul_s16): Likewise.
20365 (vmul_s32): Likewise.
20366 (vmul_f32): Likewise.
20367 (vmul_u8): Likewise.
20368 (vmul_u16): Likewise.
20369 (vmul_u32): Likewise.
20370 (vmul_p8): Likewise.
20371 (vmulq_s8): Likewise.
20372 (vmulq_s16): Likewise.
20373 (vmulq_s32): Likewise.
20374 (vmulq_f32): Likewise.
20375 (vmulq_u8): Likewise.
20376 (vmulq_u16): Likewise.
20377 (vmulq_u32): Likewise.
20378 (vsub_s8): Likewise.
20379 (vsub_s16): Likewise.
20380 (vsub_s32): Likewise.
20381 (vsub_f32): Likewise.
20382 (vsub_u8): Likewise.
20383 (vsub_u16): Likewise.
20384 (vsub_u32): Likewise.
20385 (vsub_s64): Likewise.
20386 (vsub_u64): Likewise.
20387 (vsubq_s8): Likewise.
20388 (vsubq_s16): Likewise.
20389 (vsubq_s32): Likewise.
20390 (vsubq_s64): Likewise.
20391 (vsubq_f32): Likewise.
20392 (vsubq_u8): Likewise.
20393 (vsubq_u16): Likewise.
20394 (vsubq_u32): Likewise.
20395 (vsubq_u64): Likewise.
20396 (vand_s8): Likewise.
20397 (vand_s16): Likewise.
20398 (vand_s32): Likewise.
20399 (vand_u8): Likewise.
20400 (vand_u16): Likewise.
20401 (vand_u32): Likewise.
20402 (vand_s64): Likewise.
20403 (vand_u64): Likewise.
20404 (vandq_s8): Likewise.
20405 (vandq_s16): Likewise.
20406 (vandq_s32): Likewise.
20407 (vandq_s64): Likewise.
20408 (vandq_u8): Likewise.
20409 (vandq_u16): Likewise.
20410 (vandq_u32): Likewise.
20411 (vandq_u64): Likewise.
20412 (vorr_s8): Likewise.
20413 (vorr_s16): Likewise.
20414 (vorr_s32): Likewise.
20415 (vorr_u8): Likewise.
20416 (vorr_u16): Likewise.
20417 (vorr_u32): Likewise.
20418 (vorr_s64): Likewise.
20419 (vorr_u64): Likewise.
20420 (vorrq_s8): Likewise.
20421 (vorrq_s16): Likewise.
20422 (vorrq_s32): Likewise.
20423 (vorrq_s64): Likewise.
20424 (vorrq_u8): Likewise.
20425 (vorrq_u16): Likewise.
20426 (vorrq_u32): Likewise.
20427 (vorrq_u64): Likewise.
20428 (veor_s8): Likewise.
20429 (veor_s16): Likewise.
20430 (veor_s32): Likewise.
20431 (veor_u8): Likewise.
20432 (veor_u16): Likewise.
20433 (veor_u32): Likewise.
20434 (veor_s64): Likewise.
20435 (veor_u64): Likewise.
20436 (veorq_s8): Likewise.
20437 (veorq_s16): Likewise.
20438 (veorq_s32): Likewise.
20439 (veorq_s64): Likewise.
20440 (veorq_u8): Likewise.
20441 (veorq_u16): Likewise.
20442 (veorq_u32): Likewise.
20443 (veorq_u64): Likewise.
20444 (vbic_s8): Likewise.
20445 (vbic_s16): Likewise.
20446 (vbic_s32): Likewise.
20447 (vbic_u8): Likewise.
20448 (vbic_u16): Likewise.
20449 (vbic_u32): Likewise.
20450 (vbic_s64): Likewise.
20451 (vbic_u64): Likewise.
20452 (vbicq_s8): Likewise.
20453 (vbicq_s16): Likewise.
20454 (vbicq_s32): Likewise.
20455 (vbicq_s64): Likewise.
20456 (vbicq_u8): Likewise.
20457 (vbicq_u16): Likewise.
20458 (vbicq_u32): Likewise.
20459 (vbicq_u64): Likewise.
20460 (vorn_s8): Likewise.
20461 (vorn_s16): Likewise.
20462 (vorn_s32): Likewise.
20463 (vorn_u8): Likewise.
20464 (vorn_u16): Likewise.
20465 (vorn_u32): Likewise.
20466 (vorn_s64): Likewise.
20467 (vorn_u64): Likewise.
20468 (vornq_s8): Likewise.
20469 (vornq_s16): Likewise.
20470 (vornq_s32): Likewise.
20471 (vornq_s64): Likewise.
20472 (vornq_u8): Likewise.
20473 (vornq_u16): Likewise.
20474 (vornq_u32): Likewise.
20475 (vornq_u64): Likewise.
20476
20477 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20478
20479 * wide-int.cc (UTItype): Define.
20480 (UDWtype): Define for appropriate W_TYPE_SIZE.
20481
20482 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20483
20484 PR tree-optimization/59100
20485 * tree-ssa-phiopt.c: Include tree-inline.h.
20486 (neutral_element_p, absorbing_element_p): New functions.
20487 (value_replacement): Handle conditional binary operations with a
20488 neutral or absorbing element.
20489
20490 2014-05-08 Richard Biener <rguenther@suse.de>
20491
20492 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20493 folding the expression.
20494 (valueize_expr): Remove.
20495 (visit_reference_op_load): Do not valueize the result of
20496 vn_get_expr_for.
20497 (simplify_binary_expression): Likewise.
20498 (simplify_unary_expression): Likewise.
20499
20500 2014-05-08 Richard Biener <rguenther@suse.de>
20501
20502 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20503 looking at TYPE_ARG_TYPES.
20504
20505 2014-05-08 Richard Biener <rguenther@suse.de>
20506
20507 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20508 pointer propagation special-case.
20509
20510 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20511
20512 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20513 core part of address expressions.
20514
20515 2014-05-08 Alan Modra <amodra@gmail.com>
20516
20517 PR target/60737
20518 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20519 loads and stores when -mno-strict-align at any alignment.
20520 (expand_block_clear): Similarly. Also correct calculation of
20521 instruction count.
20522
20523 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20524
20525 PR middle-end/39246
20526 * tree-complex.c (expand_complex_move): Keep line info when expanding
20527 complex move.
20528 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20529 of complex expression. Use new argument to display correct location
20530 for values coming from phi statement.
20531 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20532 (warn_uninitialized_phi): Pass location of phi argument to
20533 warn_uninit.
20534 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20535 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20536
20537 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20538
20539 * config/rs6000/predicates.md (indexed_address_mem): New.
20540 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20541 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20542 fpstore_ux, fpstore_u.
20543 (sign_extend, indexed, update): New.
20544 (cell_micro): Adjust.
20545 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20546 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20547 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20548 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20549 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20550 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20551 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20552 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20553 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20554 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20555 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20556 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20557 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20558 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20559 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20560
20561 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20562 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20563 *vsx_extract_<mode>_store): Adjust.
20564 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20565 is_cracked_insn, insn_must_be_first_in_group,
20566 insn_must_be_last_in_group): Adjust.
20567
20568 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20569 Adjust.
20570 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20571 ppc440-fpstore): Adjust.
20572 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20573 ppc476-fpstore): Adjust.
20574 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20575 ppc601-fpstore): Adjust.
20576 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20577 Adjust.
20578 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20579 Adjust.
20580 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20581 ppc7450-fpstore): Adjust.
20582 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20583 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20584 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20585 Adjust.
20586 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20587 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20588 cell-fpstore, cell-fpstore-update): Adjust.
20589 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20590 ppce300c3_store, ppce300c3_fpstore): Adjust.
20591 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20592 e500mc_fpstore): Adjust.
20593 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20594 e500mc64_store, e500mc64_fpstore): Adjust.
20595 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20596 e5500_fpstore): Adjust.
20597 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20598 e6500_fpstore): Adjust.
20599 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20600 Adjust.
20601 * config/rs6000/power4.md (power4-load, power4-load-ext,
20602 power4-load-ext-update, power4-load-ext-update-indexed,
20603 power4-load-update-indexed, power4-load-update, power4-fpload,
20604 power4-fpload-update, power4-store, power4-store-update,
20605 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20606 Adjust.
20607 * config/rs6000/power5.md (power5-load, power5-load-ext,
20608 power5-load-ext-update, power5-load-ext-update-indexed,
20609 power5-load-update-indexed, power5-load-update, power5-fpload,
20610 power5-fpload-update, power5-store, power5-store-update,
20611 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20612 Adjust.
20613 * config/rs6000/power6.md (power6-load, power6-load-ext,
20614 power6-load-update, power6-load-update-indexed,
20615 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20616 power6-fpload-update, power6-store, power6-store-update,
20617 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20618 Adjust.
20619 * config/rs6000/power7.md (power7-load, power7-load-ext,
20620 power7-load-update, power7-load-update-indexed,
20621 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20622 power7-fpload-update, power7-store, power7-store-update,
20623 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20624 Adjust.
20625 * config/rs6000/power8.md (power8-load, power8-load-update,
20626 power8-load-ext, power8-load-ext-update, power8-fpload,
20627 power8-fpload-update, power8-store, power8-store-update-indexed,
20628 power8-fpstore, power8-fpstore-update): Adjust.
20629 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20630 Adjust.
20631 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20632 titan_lsu_store, titan_lsu_fpstore): Adjust.
20633 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20634
20635 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20636
20637 PR target/60884
20638 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20639 unrolled byte insns. Emit address increments after move insns.
20640
20641 2014-05-07 David Malcolm <dmalcolm@redhat.com>
20642
20643 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20644 const_gimple, rather than a gimple.
20645 (gimple_call_builtin_p): Likewise, for the three variants.
20646
20647 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20648 (gimple_call_builtin_p): Likewise, for the three variants.
20649
20650 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20651
20652 PR tree-optimization/61095
20653 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20654
20655 2014-05-07 Richard Biener <rguenther@suse.de>
20656
20657 PR tree-optimization/61034
20658 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20659 (maybe_skip_until): Use translate to take into account
20660 lattices when trying to do disambiguations.
20661 (get_continuation_for_phi_1): Likewise.
20662 (get_continuation_for_phi): Adjust for added translate arguments.
20663 (walk_non_aliased_vuses): Likewise.
20664 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20665 (walk_non_aliased_vuses): Likewise.
20666 (call_may_clobber_ref_p_1): Declare.
20667 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20668 calls. Stop early if we are only supposed to disambiguate.
20669 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20670
20671 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
20672
20673 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20674 Emit an error when the function has arguments.
20675
20676 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20677
20678 * cfgloop.h (unswitch_loops): Remove.
20679 * doc/passes.texi: Remove references to loop-unswitch.c
20680 * timevar.def (TV_LOOP_UNSWITCH): Remove.
20681
20682 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
20683
20684 * tree-vect-data-refs.c (vect_grouped_load_supported): New
20685 check for loads group of length 3.
20686 (vect_permute_load_chain): New permutations for loads group of
20687 length 3.
20688 * tree-vect-stmts.c (vect_model_load_cost): Change cost
20689 of vec_perm_shuffle for the new permutations.
20690
20691 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
20692
20693 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20694 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20695 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20696 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20697 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20698 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20699 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20700 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20701
20702 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20703
20704 * loop-unswitch.c: Delete.
20705
20706 2014-05-07 Richard Biener <rguenther@suse.de>
20707
20708 * config.gcc: Always set need_64bit_hwint to yes.
20709
20710 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
20711
20712 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20713 of using optimize_size.
20714
20715 2014-05-06 Mike Stump <mikestump@comcast.net>
20716
20717 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20718
20719 2014-05-06 Joseph Myers <joseph@codesourcery.com>
20720
20721 * config/i386/sse.md (*mov<mode>_internal)
20722 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20723 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20724 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20725 (*<code><mode>3, *andnot<mode>3<mask_name>)
20726 (<mask_codefor><code><mode>3<mask_name>): Only consider
20727 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20728
20729 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20730
20731 Revert:
20732 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20733
20734 * lra-constraints.c (valid_address_p): Move earlier in file.
20735 Add a constraint argument to the address_info version.
20736 (satisfies_memory_constraint_p): New function.
20737 (satisfies_address_constraint_p): Likewise.
20738 (process_alt_operands, curr_insn_transform): Use them.
20739 (process_address): Pass the constraint to valid_address_p when
20740 checking address operands.
20741
20742 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
20743
20744 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20745 to their respective blocks. Fix inadvertent use of "node".
20746
20747 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20748
20749 * emit-rtl.c (init_derived_machine_modes): New functionm, split
20750 out from...
20751 (init_emit_once): ...here.
20752 * rtl.h (init_derived_machine_modes): Declare.
20753 * toplev.c (do_compile): Call it even if no_backend.
20754
20755 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
20756 Mike Stump <mikestump@comcast.net>
20757 Richard Sandiford <rdsandiford@googlemail.com>
20758 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20759
20760 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20761 (rtx_equal_for_memref_p): Update comment.
20762 (adjust_offset_for_component_ref): Use wide-int interfaces.
20763 * builtins.c (get_object_alignment_2): Likewise.
20764 (c_readstr): Likewise.
20765 (target_char_cast): Add comment.
20766 (determine_block_size): Use wide-int interfaces.
20767 (expand_builtin_signbit): Likewise.
20768 (fold_builtin_int_roundingfn): Likewise.
20769 (fold_builtin_bitop): Likewise.
20770 (fold_builtin_bswap): Likewise.
20771 (fold_builtin_logarithm): Use signop.
20772 (fold_builtin_pow): Likewise.
20773 (fold_builtin_memory_op): Use wide-int interfaces.
20774 (fold_builtin_object_size): Likewise.
20775 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20776 nb_iterations_estimate.
20777 (record_niter_bound): Use wide-int interfaces.
20778 (get_estimated_loop_iterations_int): Likewise.
20779 (get_estimated_loop_iterations): Likewise.
20780 (get_max_loop_iterations): Likewise.
20781 * cfgloop.h: Include wide-int.h.
20782 (struct nb_iter_bound): Change bound to widest_int.
20783 (struct loop): Change nb_iterations_upper_bound and
20784 nb_iterations_estimate to widest_int.
20785 (record_niter_bound): Switch to use widest_int.
20786 (get_estimated_loop_iterations): Likewise.
20787 (get_max_loop_iterations): Likewise.
20788 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20789 update for wide-int.
20790 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20791 * combine.c (try_combine): Likewise.
20792 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20793 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20794 interfaces.
20795 (aarch64_float_const_representable_p): Likewise.
20796 * config/arc/arc.c: Include wide-int.h.
20797 (arc_can_use_doloop_p): Use wide-int interfaces.
20798 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20799 (vfp3_const_double_index): Likewise.
20800 * config/avr/avr.c (avr_out_round): Likewise.
20801 (avr_fold_builtin): Likewise.
20802 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20803 (bfin_can_use_doloop_p): Likewise.
20804 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20805 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20806 * config/i386/i386.c: Include wide-int.h.
20807 (ix86_data_alignment): Use wide-int interfaces.
20808 (ix86_local_alignment): Likewise.
20809 (ix86_emit_swsqrtsf): Update real_from_integer.
20810 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20811 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20812 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20813 (zero_constant): Likewise.
20814 (input_operand): Likewise.
20815 (splat_input_operand): Likewise.
20816 (non_logical_cint_operand): Change const_double to const_wide_int.
20817 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20818 (easy_altivec_constant): Remove comment.
20819 (paired_expand_vector_init): Use CONSTANT_P.
20820 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20821 (rs6000_emit_move): Update checks.
20822 (rs6000_aggregate_candidate): Use wide-int interfaces.
20823 (rs6000_expand_ternop_builtin): Likewise.
20824 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20825 (rs6000_assemble_integer): Likewise.
20826 (rs6000_hash_constant): Likewise.
20827 (output_toc): Likewise.
20828 (rs6000_rtx_costs): Likewise.
20829 (rs6000_emit_swrsqrt); Update call to real_from_integer.
20830 * config/rs6000/rs6000-c.c: Include wide-int.h.
20831 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20832 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20833 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20834 Handle CONST_WIDE_INT.
20835 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20836 Use tree_fits_uhwi_p.
20837 * config/sparc/sparc.c: Include wide-int.h.
20838 (sparc_fold_builtin): Use wide-int interfaces.
20839 * config/vax/vax.c: Include wide-int.h.
20840 (vax_float_literal): Use real_from_integer.
20841 * coretypes.h (struct hwivec_def): New.
20842 (hwivec): New.
20843 (const_hwivec): New.
20844 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20845 (equiv_constant): Handle CONST_WIDE_INT.
20846 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20847 (cselib_hash_rtx): Handle CONST_WIDE_INT.
20848 * dbxout.c (stabstr_U): Use wide-int interfaces.
20849 (dbxout_type): Update to use cst_fits_shwi_p.
20850 * defaults.h (LOG2_BITS_PER_UNIT): Define.
20851 (TARGET_SUPPORTS_WIDE_INT): Add default.
20852 * dfp.c: Include wide-int.h.
20853 (decimal_real_to_integer2): Use wide-int interfaces and rename to
20854 decimal_real_to_integer.
20855 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20856 decimal_real_to_integer.
20857 * doc/generic.texi (Constant expressions): Update for wide_int.
20858 * doc/rtl.texi (const_double): Likewise.
20859 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20860 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20861 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20862 (REAL_VALUE_FROM_INT): Remove.
20863 (TARGET_SUPPORTS_WIDE_INT): New.
20864 * doc/tm.texi: Regenerate.
20865 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20866 * double-int.h: Include wide-int.h.
20867 (struct wi::int_traits): New.
20868 * dwarf2out.c (get_full_len): New.
20869 (dw_val_equal_p): Add case dw_val_class_wide_int.
20870 (size_of_loc_descr): Likewise.
20871 (output_loc_operands): Likewise.
20872 (insert_double): Remove.
20873 (insert_wide_int): New.
20874 (add_AT_wide): New.
20875 (print_die): Add case dw_val_class_wide_int.
20876 (attr_checksum): Likewise.
20877 (attr_checksum_ordered): Likewise.
20878 (same_dw_val_p): Likewise.
20879 (size_of_die): Likewise.
20880 (value_format): Likewise.
20881 (output_die): Likewise.
20882 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20883 Use wide-int.
20884 (clz_loc_descriptor): Use wide-int interfaces.
20885 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
20886 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
20887 (round_up_to_align): Use wide-int interfaces.
20888 (field_byte_offset): Likewise.
20889 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
20890 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
20891 CONST_DOUBLE handling. Use wide-int interfaces.
20892 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
20893 (gen_enumeration_type_die): Use add_AT_wide.
20894 (hash_loc_operands): Add case dw_val_class_wide_int.
20895 (compare_loc_operands): Likewise.
20896 * dwarf2out.h: Include wide-int.h.
20897 (wide_int_ptr): New.
20898 (enum dw_val_class): Add dw_val_class_wide_int.
20899 (struct dw_val_struct): Add val_wide.
20900 * emit-rtl.c (const_wide_int_htab): New.
20901 (const_wide_int_htab_hash): New.
20902 (const_wide_int_htab_eq): New.
20903 (lookup_const_wide_int): New.
20904 (const_double_htab_hash): Use wide-int interfaces.
20905 (const_double_htab_eq): Likewise.
20906 (rtx_to_double_int): Conditionally compile for wide-int.
20907 (immed_double_int_const): Rename to immed_wide_int_const and
20908 update for wide-int.
20909 (immed_double_const): Conditionally compile for wide-int.
20910 (init_emit_once): Use wide-int interfaces.
20911 * explow.c (plus_constant): Likewise.
20912 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
20913 (lshift_value): Use wide-int interfaces.
20914 (expand_mult): Likewise.
20915 (choose_multiplier): Likewise.
20916 (expand_smod_pow2): Likewise.
20917 (make_tree): Likewise.
20918 * expr.c (convert_modes): Consolidate handling of constants.
20919 Use wide-int interfaces.
20920 (emit_group_load_1): Add note.
20921 (store_expr): Update comment.
20922 (get_inner_reference): Use wide-int interfaces.
20923 (expand_constructor): Update comment.
20924 (expand_expr_real_2): Use wide-int interfaces.
20925 (expand_expr_real_1): Likewise.
20926 (reduce_to_bit_field_precision): Likewise.
20927 (const_vector_from_tree): Likewise.
20928 * final.c: Include wide-int-print.h.
20929 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
20930 * fixed-value.c: Include wide-int.h.
20931 (fixed_from_string): Use wide-int interfaces.
20932 (fixed_to_decimal): Likewise.
20933 (fixed_convert_from_real): Likewise.
20934 (real_convert_from_fixed): Likewise.
20935 * fold-const.h (mem_ref_offset): Return an offset_int.
20936 (div_if_zero_remainder): Remove code parameter.
20937 * fold-const.c (div_if_zero_remainder): Remove code parameter.
20938 Use wide-int interfaces.
20939 (may_negate_without_overflow_p): Use wide-int interfaces.
20940 (negate_expr_p): Likewise.
20941 (fold_negate_expr): Likewise.
20942 (int_const_binop_1): Likewise.
20943 (const_binop): Likewise.
20944 (fold_convert_const_int_from_int): Likewise.
20945 (fold_convert_const_int_from_real): Likewise.
20946 (fold_convert_const_int_from_fixed): Likewise.
20947 (fold_convert_const_fixed_from_int): Likewise.
20948 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20949 (sign_bit_p): Use wide-int interfaces.
20950 (make_range_step): Likewise.
20951 (build_range_check): Likewise. Pass an integer of the correct type
20952 instead of using integer_one_node.
20953 (range_predecessor): Pass an integer of the correct type instead
20954 of using integer_one_node.
20955 (range_successor): Likewise.
20956 (merge_ranges): Likewise.
20957 (unextend): Use wide-int interfaces.
20958 (extract_muldiv_1): Likewise.
20959 (fold_div_compare): Likewise.
20960 (fold_single_bit_test): Likewise.
20961 (fold_sign_changed_comparison): Likewise.
20962 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20963 (fold_plusminus_mult_expr): Use wide-int interfaces.
20964 (native_encode_int): Likewise.
20965 (native_interpret_int): Likewise.
20966 (fold_unary_loc): Likewise.
20967 (pointer_may_wrap_p): Likewise.
20968 (size_low_cst): Likewise.
20969 (mask_with_tz): Likewise.
20970 (fold_binary_loc): Likewise.
20971 (fold_ternary_loc): Likewise.
20972 (multiple_of_p): Likewise.
20973 (tree_call_nonnegative_warnv_p): Update calls to
20974 tree_int_cst_min_precision and real_from_integer.
20975 (fold_negate_const): Use wide-int interfaces.
20976 (fold_abs_const): Likewise.
20977 (fold_relational_const): Use tree_int_cst_lt.
20978 (round_up_loc): Use wide-int interfaces.
20979 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20980 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20981 * gengtype.c: Remove include of double-int.h.
20982 (do_typedef): Use wide-int interfaces.
20983 (open_base_files): Add wide-int.h.
20984 (main): Add offset_int and widest_int typedefs.
20985 * gengtype-lex.l: Handle "^".
20986 (CXX_KEYWORD): Add "static".
20987 * gengtype-parse.c (require3): New.
20988 (require_template_declaration): Handle constant template arguments
20989 and nested templates.
20990 * gengtype-state.c: Don't include "double-int.h".
20991 * genpreds.c (write_one_predicate_function): Update comment.
20992 (write_tm_constrs_h): Add check for hval and lval use in
20993 CONST_WIDE_INT.
20994 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
20995 (add_to_sequence): Likewise.
20996 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
20997 and const_double_operand.
20998 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
20999 interfaces.
21000 * gimple-fold.c (get_base_constructor): Likewise.
21001 (fold_array_ctor_reference): Likewise.
21002 (fold_nonarray_ctor_reference): Likewise.
21003 (fold_const_aggregate_ref_1): Likewise.
21004 (gimple_val_nonnegative_real_p): Likewise.
21005 (gimple_fold_indirect_ref): Likewise.
21006 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21007 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21008 (struct slsr_cand_d): Change index to be widest_int.
21009 (struct incr_info_d): Change incr to be widest_int.
21010 (alloc_cand_and_find_basis): Use wide-int interfaces.
21011 (slsr_process_phi): Likewise.
21012 (backtrace_base_for_ref): Likewise. Return a widest_int.
21013 (restructure_reference): Take a widest_int instead of a double_int.
21014 (slsr_process_ref): Use wide-int interfaces.
21015 (create_mul_ssa_cand): Likewise.
21016 (create_mul_imm_cand): Likewise.
21017 (create_add_ssa_cand): Likewise.
21018 (create_add_imm_cand): Take a widest_int instead of a double_int.
21019 (slsr_process_add): Use wide-int interfaces.
21020 (slsr_process_cast): Likewise.
21021 (slsr_process_copy): Likewise.
21022 (dump_candidate): Likewise.
21023 (dump_incr_vec): Likewise.
21024 (replace_ref): Likewise.
21025 (cand_increment): Likewise. Return a widest_int.
21026 (cand_abs_increment): Likewise.
21027 (replace_mult_candidate): Take a widest_int instead of a double_int.
21028 (replace_unconditional_candidate): Use wide-int interfaces.
21029 (incr_vec_index): Take a widest_int instead of a double_int.
21030 (create_add_on_incoming_edge): Likewise.
21031 (create_phi_basis): Use wide-int interfaces.
21032 (replace_conditional_candidate): Likewise.
21033 (record_increment): Take a widest_int instead of a double_int.
21034 (record_phi_increments): Use wide-int interfaces.
21035 (phi_incr_cost): Take a widest_int instead of a double_int.
21036 (lowest_cost_path): Likewise.
21037 (total_savings): Likewise.
21038 (analyze_increments): Use wide-int interfaces.
21039 (ncd_with_phi): Take a widest_int instead of a double_int.
21040 (ncd_of_cand_and_phis): Likewise.
21041 (nearest_common_dominator_for_cands): Likewise.
21042 (insert_initializers): Use wide-int interfaces.
21043 (all_phi_incrs_profitable): Likewise.
21044 (replace_one_candidate): Likewise.
21045 (replace_profitable_candidates): Likewise.
21046 * godump.c: Include wide-int-print.h.
21047 (go_output_typedef): Use wide-int interfaces.
21048 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21049 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21050 (build_loop_iteration_domains): Likewise.
21051 * hooks.h: Include wide-int.h rather than double-int.h.
21052 (hook_bool_dint_dint_uint_bool_true): Delete.
21053 (hook_bool_wint_wint_uint_bool_true): Declare.
21054 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21055 (hook_bool_wint_wint_uint_bool_true): New.
21056 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21057 interfaces.
21058 (ubsan_expand_si_overflow_mul_check): Likewise.
21059 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21060 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21061 (get_ancestor_addr_info): Likewise.
21062 (ipa_modify_call_arguments): Likewise.
21063 * loop-doloop.c (doloop_modify): Likewise.
21064 (doloop_optimize): Likewise.
21065 * loop-iv.c (iv_number_of_iterations): Likewise.
21066 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21067 (unroll_loop_constant_iterations): Likewise.
21068 (decide_unroll_runtime_iterations): Likewise.
21069 (unroll_loop_runtime_iterations): Likewise.
21070 (decide_peel_simple): Likewise.
21071 (decide_unroll_stupid): Likewise.
21072 * lto-streamer-in.c (streamer_read_wi): Add.
21073 (input_cfg): Use wide-int interfaces.
21074 (lto_input_tree_1): Likewise.
21075 * lto-streamer-out.c (streamer_write_wi): Add.
21076 (hash_tree): Use wide-int interfaces.
21077 (output_cfg): Likewise.
21078 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21079 (GTFILES): Add wide-int.h and signop.h.
21080 (TAGS): Look for .cc files too.
21081 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21082 * optabs.c (expand_subword_shift): Likewise.
21083 (expand_doubleword_shift): Likewise.
21084 (expand_absneg_bit): Likewise.
21085 (expand_copysign_absneg): Likewise.
21086 (expand_copysign_bit): Likewise.
21087 * postreload.c (reload_cse_simplify_set): Likewise.
21088 * predict.c (predict_iv_comparison): Likewise.
21089 * pretty-print.h: Include wide-int-print.h.
21090 (pp_wide_int) New.
21091 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21092 * print-tree.c: Include wide-int-print.h.
21093 (print_node_brief): Use wide-int interfaces.
21094 (print_node): Likewise.
21095 * read-rtl.c (validate_const_wide_int): New.
21096 (read_rtx_code): Add CONST_WIDE_INT case.
21097 * real.c: Include wide-int.h.
21098 (real_to_integer2): Delete.
21099 (real_to_integer): New function, returning a wide_int.
21100 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21101 (ten_to_ptwo): Update call to real_from_integer.
21102 (real_digit): Likewise.
21103 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21104 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21105 (REAL_VALUE_TO_INT): Delete.
21106 (real_to_integer): Declare a wide-int form.
21107 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21108 * recog.c (const_int_operand): Improve comment.
21109 (const_scalar_int_operand): New.
21110 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21111 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21112 (split_double): Likewise.
21113 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21114 (rtx_size): Likewise.
21115 (rtx_alloc_stat_v): New.
21116 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21117 (cwi_output_hex): New.
21118 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21119 (cwi_check_failed_bounds): New.
21120 * rtl.def (CONST_WIDE_INT): New.
21121 * rtl.h: Include <utility> and wide-int.h.
21122 (struct hwivec_def): New.
21123 (CWI_GET_NUM_ELEM): New.
21124 (CWI_PUT_NUM_ELEM): New.
21125 (struct rtx_def): Add num_elem and hwiv.
21126 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21127 (CASE_CONST_UNIQUE): Likewise.
21128 (CASE_CONST_ANY): Likewise.
21129 (CONST_SCALAR_INT_P): Likewise.
21130 (CONST_WIDE_INT_P): New.
21131 (CWI_ELT): New.
21132 (HWIVEC_CHECK): New.
21133 (cwi_check_failed_bounds): New.
21134 (CWI_ELT): New.
21135 (HWIVEC_CHECK): New.
21136 (CONST_WIDE_INT_VEC) New.
21137 (CONST_WIDE_INT_NUNITS) New.
21138 (CONST_WIDE_INT_ELT) New.
21139 (rtx_mode_t): New type.
21140 (wi::int_traits <rtx_mode_t>): New.
21141 (wi::shwi): New.
21142 (wi::min_value): New.
21143 (wi::max_value): New.
21144 (rtx_alloc_v) New.
21145 (const_wide_int_alloc): New.
21146 (immed_wide_int_const): New.
21147 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21148 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21149 * signop.h: New file.
21150 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21151 (simplify_const_unary_operation): Use wide-int interfaces.
21152 (simplify_binary_operation_1): Likewise.
21153 (simplify_const_binary_operation): Likewise.
21154 (simplify_const_relational_operation): Likewise.
21155 (simplify_immed_subreg): Likewise.
21156 * stmt.c (expand_case): Likewise.
21157 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21158 signop rather than a bool.
21159 * stor-layout.c (layout_type): Use wide-int interfaces.
21160 (initialize_sizetypes): Update calls to
21161 set_min_and_max_values_for_integral_type.
21162 (set_min_and_max_values_for_integral_type): Take a signop rather
21163 than a bool. Use wide-int interfaces.
21164 (fixup_signed_type): Update accordingly. Remove
21165 HOST_BITS_PER_DOUBLE_INT limit.
21166 (fixup_unsigned_type): Likewise.
21167 * system.h (STATIC_CONSTANT_P): New.
21168 (STATIC_ASSERT): New.
21169 * target.def (can_use_doloop_p): Take widest_ints rather than
21170 double_ints.
21171 * target.h: Include wide-int.h rather than double-int.h.
21172 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21173 than double_ints.
21174 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21175 rather than INT_CST_LT_UNSIGNED.
21176 (can_use_doloop_if_innermost): Take widest_ints rather than
21177 double_ints.
21178 * tree-affine.c: Include wide-int-print.h.
21179 (double_int_ext_for_comb): Delete.
21180 (wide_int_ext_for_comb): New.
21181 (aff_combination_zero): Use wide-int interfaces.
21182 (aff_combination_const): Take a widest_int instead of a double_int.
21183 (aff_combination_elt): Use wide-int interfaces.
21184 (aff_combination_scale): Take a widest_int instead of a double_int.
21185 (aff_combination_add_elt): Likewise.
21186 (aff_combination_add_cst): Likewise.
21187 (aff_combination_add): Use wide-int interfaces.
21188 (aff_combination_convert): Likewise.
21189 (tree_to_aff_combination): Likewise.
21190 (add_elt_to_tree): Take a widest_int instead of a double_int.
21191 (aff_combination_to_tree): Use wide-int interfaces.
21192 (aff_combination_remove_elt): Likewise.
21193 (aff_combination_add_product): Take a widest_int instead of
21194 a double_int.
21195 (aff_combination_mult): Use wide-int interfaces.
21196 (aff_combination_expand): Likewise.
21197 (double_int_constant_multiple_p): Delete.
21198 (wide_int_constant_multiple_p): New.
21199 (aff_combination_constant_multiple_p): Take a widest_int pointer
21200 instead of a double_int pointer.
21201 (print_aff): Use wide-int interfaces.
21202 (get_inner_reference_aff): Take a widest_int pointer
21203 instead of a double_int pointer.
21204 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21205 * tree-affine.h: Include wide-int.h.
21206 (struct aff_comb_elt): Change type of coef to widest_int.
21207 (struct affine_tree_combination): Change type of offset to widest_int.
21208 (double_int_ext_for_comb): Delete.
21209 (wide_int_ext_for_comb): New.
21210 (aff_combination_const): Use widest_int instead of double_int.
21211 (aff_combination_scale): Likewise.
21212 (aff_combination_add_elt): Likewise.
21213 (aff_combination_constant_multiple_p): Likewise.
21214 (get_inner_reference_aff): Likewise.
21215 (aff_comb_cannot_overlap_p): Likewise.
21216 (aff_combination_zero_p): Use wide-int interfaces.
21217 * tree.c: Include tree.h.
21218 (init_ttree): Use make_int_cst.
21219 (tree_code_size): Removed code for INTEGER_CST case.
21220 (tree_size): Add INTEGER_CST case.
21221 (make_node_stat): Update comment.
21222 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21223 (build_int_cst_type): Use wide-int interfaces.
21224 (double_int_to_tree): Likewise.
21225 (double_int_fits_to_tree_p): Delete.
21226 (force_fit_type_double): Delete.
21227 (force_fit_type): New.
21228 (int_cst_hash_hash): Use wide-int interfaces.
21229 (int_cst_hash_eq): Likewise.
21230 (build_int_cst_wide): Delete.
21231 (wide_int_to_tree): New.
21232 (cache_integer_cst): Use wide-int interfaces.
21233 (build_low_bits_mask): Likewise.
21234 (cst_and_fits_in_hwi): Likewise.
21235 (real_value_from_int_cst): Likewise.
21236 (make_int_cst_stat): New.
21237 (integer_zerop): Use wide_int interfaces.
21238 (integer_onep): Likewise.
21239 (integer_all_onesp): Likewise.
21240 (integer_pow2p): Likewise.
21241 (integer_nonzerop): Likewise.
21242 (tree_log2): Likewise.
21243 (tree_floor_log2): Likewise.
21244 (tree_ctz): Likewise.
21245 (int_size_in_bytes): Likewise.
21246 (mem_ref_offset): Return an offset_int rather than a double_int.
21247 (build_type_attribute_qual_variant): Use wide_int interfaces.
21248 (type_hash_eq): Likewise
21249 (tree_int_cst_equal): Likewise.
21250 (tree_int_cst_lt): Delete.
21251 (tree_int_cst_compare): Likewise.
21252 (tree_fits_shwi_p): Use wide_int interfaces.
21253 (tree_fits_uhwi_p): Likewise.
21254 (tree_int_cst_sign_bit): Likewise.
21255 (tree_int_cst_sgn): Likewise.
21256 (tree_int_cst_min_precision): Take a signop rather than a bool.
21257 (simple_cst_equal): Use wide_int interfaces.
21258 (compare_tree_int): Likewise.
21259 (iterative_hash_expr): Likewise.
21260 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21261 INT_CST_LT.
21262 (get_type_static_bounds): Use wide_int interfaces.
21263 (tree_int_cst_elt_check_failed): New.
21264 (build_common_tree_nodes): Reordered to set prec before filling in
21265 value.
21266 (int_cst_value): Check cst_and_fits_in_hwi.
21267 (widest_int_cst_value): Use wide_int interfaces.
21268 (upper_bound_in_type): Likewise.
21269 (lower_bound_in_type): Likewise.
21270 (num_ending_zeros): Likewise.
21271 (drop_tree_overflow): Likewise.
21272 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21273 (gen_conditions_for_pow_cst_base): Likewise.
21274 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21275 (group_case_labels_stmt): Use wide-int interfaces.
21276 (verify_gimple_assign_binary): Likewise.
21277 (print_loop): Likewise.
21278 * tree-chrec.c (tree_fold_binomial): Likewise.
21279 * tree-core.h (struct tree_base): Add int_length.
21280 (struct tree_int_cst): Change rep of value.
21281 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21282 (dr_may_alias_p): Likewise.
21283 (max_stmt_executions_tree): Likewise.
21284 * tree.def (INTEGER_CST): Update comment.
21285 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21286 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21287 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21288 (dequeue_and_dump): Use wide-int interfaces.
21289 * tree.h: Include wide-int.h.
21290 (NULL_TREE): Moved to earlier loc in file.
21291 (TREE_INT_CST_ELT_CHECK): New.
21292 (tree_int_cst_elt_check_failed): New.
21293 (TYPE_SIGN): New.
21294 (TREE_INT_CST): Delete.
21295 (TREE_INT_CST_LOW): Use wide-int interfaces.
21296 (TREE_INT_CST_HIGH): Delete.
21297 (TREE_INT_CST_NUNITS): New.
21298 (TREE_INT_CST_EXT_NUNITS): Likewise.
21299 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21300 (TREE_INT_CST_ELT): Likewise.
21301 (INT_CST_LT): Delete.
21302 (tree_int_cst_elt_check): New (two forms).
21303 (type_code_size): Update comment.
21304 (make_int_cst_stat, make_int_cst): New.
21305 (tree_to_double_int): Delete.
21306 (double_int_fits_to_tree_p): Delete.
21307 (force_fit_type_double): Delete.
21308 (build_int_cstu): Replace with out-of-line function.
21309 (build_int_cst_wide): Delete.
21310 (tree_int_cst_lt): Define inline.
21311 (tree_int_cst_le): New.
21312 (tree_int_cst_compare): Define inline.
21313 (tree_int_cst_min_precision): Take a signop rather than a bool.
21314 (wi::int_traits <const_tree>): New.
21315 (wi::int_traits <tree>): New.
21316 (wi::extended_tree): New.
21317 (wi::int_traits <wi::extended_tree>): New.
21318 (wi::to_widest): New.
21319 (wi::to_offset): New.
21320 (wi::fits_to_tree_p): New.
21321 (wi::min_value): New.
21322 (wi::max_value): New.
21323 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21324 (copy_tree_body_r): Likewise.
21325 * tree-object-size.c (compute_object_offset): Likewise.
21326 (addr_object_size): Likewise.
21327 * tree-predcom.c: Include wide-int-print.h.
21328 (struct dref_d): Change type of offset to widest_int.
21329 (dump_dref): Call wide-int printer.
21330 (aff_combination_dr_offset): Use wide-int interfaces.
21331 (determine_offset): Take a widest_int pointer rather than a
21332 double_int pointer.
21333 (split_data_refs_to_components): Use wide-int interfaces.
21334 (suitable_component_p): Likewise.
21335 (order_drefs): Likewise.
21336 (add_ref_to_chain): Likewise.
21337 (valid_initializer_p): Likewise.
21338 (determine_roots_comp): Likewise.
21339 * tree-pretty-print.c: Include wide-int-print.h.
21340 (dump_generic_node): Use wide-int interfaces.
21341 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21342 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21343 (move_fixed_address_to_symbol): Likewise.
21344 (move_hint_to_base): Likewise.
21345 (move_pointer_to_base): Likewise.
21346 (move_variant_to_index): Likewise.
21347 (most_expensive_mult_to_index): Likewise.
21348 (addr_to_parts): Likewise.
21349 (copy_ref_info): Likewise.
21350 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21351 (indirect_refs_may_alias_p): Likewise.
21352 (stmt_kills_ref_p_1): Likewise.
21353 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21354 * tree-ssa-ccp.c: Update comment at top of file. Include
21355 wide-int-print.h.
21356 (struct prop_value_d): Change type of mask to widest_int.
21357 (extend_mask): New function.
21358 (dump_lattice_value): Use wide-int interfaces.
21359 (get_default_value): Likewise.
21360 (set_constant_value): Likewise.
21361 (set_value_varying): Likewise.
21362 (valid_lattice_transition): Likewise.
21363 (set_lattice_value): Likewise.
21364 (value_to_double_int): Delete.
21365 (value_to_wide_int): New.
21366 (get_value_from_alignment): Use wide-int interfaces.
21367 (get_value_for_expr): Likewise.
21368 (do_dbg_cnt): Likewise.
21369 (ccp_finalize): Likewise.
21370 (ccp_lattice_meet): Likewise.
21371 (bit_value_unop_1): Use widest_ints rather than double_ints.
21372 (bit_value_binop_1): Likewise.
21373 (bit_value_unop): Use wide-int interfaces.
21374 (bit_value_binop): Likewise.
21375 (bit_value_assume_aligned): Likewise.
21376 (evaluate_stmt): Likewise.
21377 (ccp_fold_stmt): Likewise.
21378 (visit_cond_stmt): Likewise.
21379 (ccp_visit_stmt): Likewise.
21380 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21381 (constant_pointer_difference): Likewise.
21382 (associate_pointerplus): Likewise.
21383 (combine_conversions): Likewise.
21384 * tree-ssa-loop.h: Include wide-int.h.
21385 (struct tree_niter_desc): Change type of max to widest_int.
21386 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21387 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21388 (remove_redundant_iv_tests): Likewise.
21389 (canonicalize_loop_induction_variables): Likewise.
21390 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21391 (constant_multiple_of): Take a widest_int pointer instead of
21392 a double_int pointer.
21393 (get_computation_aff): Use wide-int interfaces.
21394 (ptr_difference_cost): Likewise.
21395 (difference_cost): Likewise.
21396 (get_loop_invariant_expr_id): Likewise.
21397 (get_computation_cost_at): Likewise.
21398 (iv_elimination_compare_lt): Likewise.
21399 (may_eliminate_iv): Likewise.
21400 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21401 instead of double_int.
21402 (max_loop_iterations): Likewise.
21403 (max_stmt_executions): Likewise.
21404 (estimated_stmt_executions): Likewise.
21405 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21406 (split_to_var_and_offset): Use wide-int interfaces.
21407 (determine_value_range): Likewise.
21408 (bound_difference_of_offsetted_base): Likewise.
21409 (bounds_add): Take a widest_int instead of a double_int.
21410 (number_of_iterations_ne_max): Use wide-int interfaces.
21411 (number_of_iterations_ne): Likewise.
21412 (number_of_iterations_lt_to_ne): Likewise.
21413 (assert_loop_rolls_lt): Likewise.
21414 (number_of_iterations_lt): Likewise.
21415 (number_of_iterations_le): Likewise.
21416 (number_of_iterations_cond): Likewise.
21417 (number_of_iterations_exit): Likewise.
21418 (finite_loop_p): Likewise.
21419 (derive_constant_upper_bound_assign): Likewise.
21420 (derive_constant_upper_bound): Return a widest_int.
21421 (derive_constant_upper_bound_ops): Likewise.
21422 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21423 (record_estimate): Take a widest_int rather than a double_int.
21424 (record_nonwrapping_iv): Use wide-int interfaces.
21425 (double_int_cmp): Delete.
21426 (wide_int_cmp): New.
21427 (bound_index): Take a widest_int rather than a double_int.
21428 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21429 (maybe_lower_iteration_bound): Likewise.
21430 (estimate_numbers_of_iterations_loop): Likewise.
21431 (estimated_loop_iterations): Take a widest_int pointer than than
21432 a double_int pointer.
21433 (estimated_loop_iterations_int): Use wide-int interfaces.
21434 (max_loop_iterations): Take a widest_int pointer than than
21435 a double_int pointer.
21436 (max_loop_iterations_int): Use wide-int interfaces.
21437 (max_stmt_executions): Take a widest_int pointer than than
21438 a double_int pointer.
21439 (estimated_stmt_executions): Likewise.
21440 (n_of_executions_at_most): Use wide-int interfaces.
21441 (scev_probably_wraps_p): Likewise.
21442 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21443 to real_to_integer.
21444 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21445 interfaces.
21446 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21447 double_ints. Adjust for trailing_wide_ints <3> representation.
21448 (set_nonzero_bits): Likewise.
21449 (get_range_info): Return wide_ints rather than double_ints.
21450 Adjust for trailing_wide_ints <3> representation.
21451 (get_nonzero_bits): Likewise.
21452 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21453 representation.
21454 * tree-ssanames.h (struct range_info_def): Replace min, max and
21455 nonzero_bits with a trailing_wide_ints <3>.
21456 (set_range_info): Use wide_int_refs rather than double_ints.
21457 (set_nonzero_bits): Likewise.
21458 (get_range_info): Return wide_ints rather than double_ints.
21459 (get_nonzero_bits): Likewise.
21460 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21461 * tree-ssa-pre.c (phi_translate_1): Likewise.
21462 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21463 (acceptable_pow_call): Likewise.
21464 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21465 interfaces.
21466 (vn_reference_fold_indirect): Likewise.
21467 (vn_reference_maybe_forwprop_address): Likewise.
21468 (valueize_refs_1): Likewise.
21469 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21470 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21471 tree_int_cst_lt and tree_int_cst_le.
21472 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21473 interfaces.
21474 (streamer_alloc_tree): Likewise.
21475 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21476 (streamer_write_tree_header): Likewise.
21477 (streamer_write_integer_cst): Likewise.
21478 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21479 (build_constructors): Likewise.
21480 (array_value_type): Likewise.
21481 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21482 (vect_check_gather): Likewise.
21483 * tree-vect-generic.c (build_replicated_const): Likewise.
21484 (expand_vector_divmod): Likewise.
21485 * tree-vect-loop.c (vect_transform_loop): Likewise.
21486 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21487 (vect_do_peeling_for_alignment): Likewise.
21488 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21489 * tree-vrp.c: Include wide-int.h.
21490 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21491 (extract_range_from_assert): Use wide-int interfaces.
21492 (vrp_int_const_binop): Likewise.
21493 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21494 double_int pointers.
21495 (ranges_from_anti_range): Use wide-int interfaces.
21496 (quad_int_cmp): Delete.
21497 (quad_int_pair_sort): Likewise.
21498 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21499 (extract_range_from_unary_expr_1): Likewise.
21500 (adjust_range_with_scev): Likewise.
21501 (masked_increment): Take and return wide_ints rather than double_ints.
21502 (register_edge_assert_for_2): Use wide-int interfaces.
21503 (check_array_ref): Likewise.
21504 (search_for_addr_array): Likewise.
21505 (maybe_set_nonzero_bits): Likewise.
21506 (union_ranges): Pass an integer of the correct type instead of
21507 using integer_one_node.
21508 (intersect_ranges): Likewise.
21509 (simplify_truth_ops_using_ranges): Likewise.
21510 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21511 (range_fits_type_p): Likewise.
21512 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21513 a bool.
21514 (simplify_conversion_using_ranges): Use wide-int interfaces.
21515 (simplify_float_conversion_using_ranges): Likewise.
21516 (vrp_finalize): Likewise.
21517 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21518 (gimple_stringops_transform): Likewise.
21519 * varasm.c (decode_addr_const): Likewise.
21520 (const_hash_1): Likewise.
21521 (const_rtx_hash_1): Likewise
21522 (output_constant): Likewise.
21523 (array_size_for_constructor): Likewise.
21524 (output_constructor_regular_field): Likewise.
21525 (output_constructor_bitfield): Likewise.
21526 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21527 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21528 GENERATOR_FILEs.
21529 * gencheck.c: Define BITS_PER_UNIT.
21530 * wide-int.cc: New.
21531 * wide-int.h: New.
21532 * wide-int-print.cc: New.
21533 * wide-int-print.h: New.
21534
21535 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21536
21537 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21538
21539 2014-05-06 Richard Biener <rguenther@suse.de>
21540
21541 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21542 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21543 (TODO_verify_all): Adjust.
21544 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21545 TODO_verify_stmts and TODO_verify_rtl_sharing.
21546 * bb-reorder.c: Likewise.
21547 * cfgexpand.c: Likewise.
21548 * cprop.c: Likewise.
21549 * cse.c: Likewise.
21550 * function.c: Likewise.
21551 * fwprop.c: Likewise.
21552 * gcse.c: Likewise.
21553 * gimple-ssa-isolate-paths.c: Likewise.
21554 * gimple-ssa-strength-reduction.c: Likewise.
21555 * ipa-split.c: Likewise.
21556 * loop-init.c: Likewise.
21557 * loop-unroll.c: Likewise.
21558 * lower-subreg.c: Likewise.
21559 * modulo-sched.c: Likewise.
21560 * postreload-gcse.c: Likewise.
21561 * predict.c: Likewise.
21562 * recog.c: Likewise.
21563 * sched-rgn.c: Likewise.
21564 * store-motion.c: Likewise.
21565 * tracer.c: Likewise.
21566 * trans-mem.c: Likewise.
21567 * tree-call-cdce.c: Likewise.
21568 * tree-cfg.c: Likewise.
21569 * tree-cfgcleanup.c: Likewise.
21570 * tree-complex.c: Likewise.
21571 * tree-eh.c: Likewise.
21572 * tree-emutls.c: Likewise.
21573 * tree-if-conv.c: Likewise.
21574 * tree-into-ssa.c: Likewise.
21575 * tree-loop-distribution.c: Likewise.
21576 * tree-object-size.c: Likewise.
21577 * tree-parloops.c: Likewise.
21578 * tree-pass.h: Likewise.
21579 * tree-sra.c: Likewise.
21580 * tree-ssa-ccp.c: Likewise.
21581 * tree-ssa-copy.c: Likewise.
21582 * tree-ssa-copyrename.c: Likewise.
21583 * tree-ssa-dce.c: Likewise.
21584 * tree-ssa-dom.c: Likewise.
21585 * tree-ssa-dse.c: Likewise.
21586 * tree-ssa-forwprop.c: Likewise.
21587 * tree-ssa-ifcombine.c: Likewise.
21588 * tree-ssa-loop-ch.c: Likewise.
21589 * tree-ssa-loop-ivcanon.c: Likewise.
21590 * tree-ssa-loop.c: Likewise.
21591 * tree-ssa-math-opts.c: Likewise.
21592 * tree-ssa-phiopt.c: Likewise.
21593 * tree-ssa-phiprop.c: Likewise.
21594 * tree-ssa-pre.c: Likewise.
21595 * tree-ssa-reassoc.c: Likewise.
21596 * tree-ssa-sink.c: Likewise.
21597 * tree-ssa-strlen.c: Likewise.
21598 * tree-ssa-tail-merge.c: Likewise.
21599 * tree-ssa-uncprop.c: Likewise.
21600 * tree-switch-conversion.c: Likewise.
21601 * tree-tailcall.c: Likewise.
21602 * tree-vect-generic.c: Likewise.
21603 * tree-vectorizer.c: Likewise.
21604 * tree-vrp.c: Likewise.
21605 * tsan.c: Likewise.
21606 * var-tracking.c: Likewise.
21607 * bt-load.c: Likewise.
21608 * cfgcleanup.c: Likewise.
21609 * combine-stack-adj.c: Likewise.
21610 * combine.c: Likewise.
21611 * compare-elim.c: Likewise.
21612 * config/epiphany/resolve-sw-modes.c: Likewise.
21613 * config/i386/i386.c: Likewise.
21614 * config/mips/mips.c: Likewise.
21615 * config/s390/s390.c: Likewise.
21616 * config/sh/sh_treg_combine.cc: Likewise.
21617 * config/sparc/sparc.c: Likewise.
21618 * dce.c: Likewise.
21619 * dse.c: Likewise.
21620 * final.c: Likewise.
21621 * ifcvt.c: Likewise.
21622 * mode-switching.c: Likewise.
21623 * passes.c: Likewise.
21624 * postreload.c: Likewise.
21625 * ree.c: Likewise.
21626 * reg-stack.c: Likewise.
21627 * regcprop.c: Likewise.
21628 * regrename.c: Likewise.
21629 * web.c: Likewise.
21630
21631 2014-05-06 Richard Biener <rguenther@suse.de>
21632
21633 PR middle-end/61070
21634 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21635 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21636
21637 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
21638
21639 PR ipa/60965
21640 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21641
21642 2014-05-05 Radovan Obradovic <robradovic@mips.com>
21643 Tom de Vries <tom@codesourcery.com>
21644
21645 * target.def (call_fusage_contains_non_callee_clobbers): New
21646 DEFHOOKPOD.
21647 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21648 Hooks to @menu.
21649 (@node Miscellaneous Register Hooks): New node.
21650 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21651 * doc/tm.texi: Regenerate.
21652
21653 2014-05-05 Marek Polacek <polacek@redhat.com>
21654
21655 PR driver/61065
21656 * opts.c (common_handle_option): Call error_at instead of warning_at.
21657
21658 2014-05-05 Richard Biener <rguenther@suse.de>
21659
21660 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21661 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
21662 under the TODO_verify_il umbrella.
21663
21664 2014-05-05 Richard Biener <rguenther@suse.de>
21665
21666 * passes.c (execute_function_todo): Move TODO_verify_flow under
21667 the TODO_verify_ul umbrella.
21668
21669 2014-05-05 Richard Biener <rguenther@suse.de>
21670
21671 PR middle-end/61010
21672 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21673 X & CST away from a CST that is the mask of a mode.
21674
21675 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21676
21677 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21678 int argument to enum machine_mode.
21679 (picochip_class_max_nregs): Ditto.
21680 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21681 (picochip_class_max_nregs): Ditto.
21682
21683 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21684
21685 * target.def: Add new target hook.
21686 * doc/tm.texi: Regenerate.
21687 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21688 * targhooks.c (default_keep_leaf_when_profiled): New function.
21689
21690 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21691 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21692
21693 2014-05-05 Bin Cheng <bin.cheng@arm.com>
21694
21695 PR tree-optimization/60363
21696 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21697 (copy_phi_args): New parameters. Call get_value_locus_in_path.
21698 (update_destination_phis): New parameter.
21699 (create_edge_and_update_destination_phis): Ditto.
21700 (ssa_fix_duplicate_block_edges): Pass new arguments.
21701 (thread_single_edge): Ditto.
21702
21703 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
21704
21705 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21706 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21707 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21708 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21709 Use RS6000_BTM_HARD_FLOAT.
21710 (BU_MISC_2): Likewise.
21711 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21712 RS6000_BTM_HARD_FLOAT.
21713 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21714 is explicitly used.
21715 (rs6000_invalid_builtin): Add hard floating builtin support.
21716 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21717 hard float builtins.
21718 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21719
21720 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21721
21722 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21723 Add missing function* argument.
21724
21725 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21726
21727 * lra-constraints.c (valid_address_p): Move earlier in file.
21728 Add a constraint argument to the address_info version.
21729 (satisfies_memory_constraint_p): New function.
21730 (satisfies_address_constraint_p): Likewise.
21731 (process_alt_operands, curr_insn_transform): Use them.
21732 (process_address): Pass the constraint to valid_address_p when
21733 checking address operands.
21734
21735 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21736
21737 * config/mips/mips.c (mips_isa_rev): New variable.
21738 (mips_set_architecture): Set it.
21739 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21740 from mips_isa_rev.
21741 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21742 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21743 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21744 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21745 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21746 conditions in terms of mips_isa_rev.
21747 (mips_isa_rev): Declare.
21748
21749 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21750
21751 * config/sh/sh-mem.cc: Use tabs instead of spaces.
21752 (prob_unlikely, prob_likely): Make variables const.
21753
21754 2014-05-03 Denis Chertykov <chertykov@gmail.com>
21755
21756 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21757
21758 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21759
21760 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21761
21762 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21763
21764 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21765 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21766 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21767 functions.
21768 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21769 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21770 sh_pass_in_reg_p.
21771 Replace usage of ROUND_REG with sh_round_reg.
21772 Use CEIL instead of ROUND_ADVANCE.
21773
21774 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21775
21776 PR target/61026
21777 * config/sh/sh.c: Include stdlib headers before everything else.
21778
21779 2014-05-02 Jakub Jelinek <jakub@redhat.com>
21780
21781 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21782 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21783 (gimplify_adjust_omp_clauses): Simd region is never
21784 directly nested in combined parallel. Instead, for linear
21785 with copyin/copyout, if in combined for simd loop, make decl
21786 firstprivate/lastprivate on OMP_FOR.
21787 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21788 expand_omp_for_static_chunk): When setting endvar, also set
21789 fd->loop.v to the same value.
21790
21791 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21792
21793 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21794
21795 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
21796
21797 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21798 expression.
21799
21800 2014-05-02 Marek Polacek <polacek@redhat.com>
21801
21802 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21803
21804 2014-05-02 Kito Cheng <kito@0xlab.org>
21805
21806 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21807 to a C expression marco.
21808 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21809 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21810 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21811 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21812 HONOR_REG_ALLOC_ORDER.
21813 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21814
21815 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21816
21817 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21818
21819 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21820
21821 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21822
21823 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21824
21825 * tree-if-conv.c (is_cond_scalar_reduction): New function.
21826 (convert_scalar_cond_reduction): Likewise.
21827 (predicate_scalar_phi): Add recognition and transformation
21828 of simple conditioanl reduction to be vectorizable.
21829
21830 2014-05-01 Marek Polacek <polacek@redhat.com>
21831
21832 PR c/43245
21833 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21834
21835 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
21836
21837 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21838 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21839 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21840 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21841 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21842 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21843 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21844 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21845
21846 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
21847
21848 * config/arc/arc.opt (mlra): Move comment above option name
21849 to avoid mis-parsing as language options.
21850
21851 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21852
21853 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21854 * config/sol2.h: ... here.
21855 * config/sol2-10.h: Remove.
21856
21857 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21858 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21859 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21860 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21861 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21862 * config/sol2.h: ... here.
21863 (SECTION_NAME_FORMAT): Don't redefine.
21864 (STARTFILE_ARCH32_SPEC): Rename to ...
21865 (STARTFILE_ARCH_SPEC): ... this.
21866 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21867 * config/sparc/sol2.h: ... here.
21868 (SECTION_NAME_FORMAT): Don't undef.
21869 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21870 (SUBTARGET_EXTRA_SPECS): Remove.
21871 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21872
21873 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21874 (MD_STARTFILE_PREFIX): Remove.
21875 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21876 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21877 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21878 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21879 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21880 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21881 * config/i386/sol2.h: ... here.
21882 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21883 * config/i386/sol2-bi.h: Remove.
21884 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21885 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21886
21887 * config/i386/t-sol2-64: Rename to ...
21888 * config/i386/t-sol2: ... this.
21889 * config/sparc/t-sol2-64: Rename to ...
21890 * config/sparc/t-sol2: ... this.
21891
21892 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21893 sol2_tm_file_head, sol2_tm_file_tail.
21894 Include ${cpu_type}/sol2.h before sol2.h.
21895 Remove sol2-10.h.
21896 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21897 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21898 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21899 Reflect i386/t-sol2-64 renaming.
21900 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21901 Reflect sparc/t-sol2-64 renaming.
21902
21903 2014-04-30 Richard Biener <rguenther@suse.de>
21904
21905 * passes.c (execute_function_todo): Move TODO_verify_stmts
21906 and TODO_verify_ssa under the TODO_verify_il umbrella.
21907 * tree-ssa.h (verify_ssa): Adjust prototype.
21908 * tree-ssa.c (verify_ssa): Add parameter to tell whether
21909 we should verify SSA operands.
21910 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21911 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21912 whether we should verify whether not throwing stmts have EH info.
21913 * graphite-scop-detection.c (create_sese_edges): Adjust.
21914 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21915 * tree-eh.c (lower_try_finally_switch): Do not add the
21916 default case label twice.
21917
21918 2014-04-30 Marek Polacek <polacek@redhat.com>
21919
21920 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21921 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21922 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21923 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21924
21925 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
21926
21927 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
21928 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
21929 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
21930 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
21931 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
21932 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
21933 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
21934 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
21935
21936 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21937
21938 * tree-cfg.c (dump_function_to_file): Dump the return type of
21939 functions, in a line to itself before the function body, mimicking
21940 the layout of a C function.
21941
21942 2014-04-29 Jakub Jelinek <jakub@redhat.com>
21943
21944 PR tree-optimization/60971
21945 * tree-tailcall.c (process_assignment): Reject conversions which
21946 reduce precision.
21947
21948 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21949
21950 * calls.c (initialize_argument_information): Always treat
21951 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21952 (expand_call): Likewise.
21953 (emit_library_call_calue_1): Likewise.
21954 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21955 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21956 code accordingly.
21957
21958 2014-04-29 Nick Clifton <nickc@redhat.com>
21959
21960 * config/msp430/msp430.md (umulsidi): Fix typo.
21961 (mulhisi3): Enable even inside interrupt handlers.
21962 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21963 bigger return address pushed in large mode.
21964
21965 2014-04-29 Nick Clifton <nickc@redhat.com>
21966
21967 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21968 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21969 available modes.
21970 * config/m32r/m32r.c (init_reg_tables): Likewise.
21971 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21972 enum to hold the modes.
21973
21974 2014-04-29 Richard Biener <rguenther@suse.de>
21975
21976 * dominance.c (free_dominance_info): Add overload with
21977 function parameter.
21978 (dom_info_state): Likewise.
21979 (dom_info_available_p): Likewise.
21980 * basic-block.h (free_dominance_info, dom_info_state,
21981 dom_info_available_p): Declare overloads.
21982 * passes.c (execute_function_todo): Verify that verifiers
21983 don't change dominator info state. Drop dominator info
21984 for IPA pass invocations.
21985 * cgraph.c (release_function_body): Restore asserts that
21986 dominator information is released.
21987
21988 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
21989
21990 * doc/invoke.texi: Fix typo.
21991 * tree-vrp.c: Fix typos.
21992 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
21993
21994 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21995
21996 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
21997
21998 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21999
22000 * config/aarch64/aarch64-builtins.c
22001 (aarch64_types_storestruct_lane_qualifiers): New.
22002 (TYPES_STORESTRUCT_LANE): Likewise.
22003 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22004 (st3_lane): Likewise.
22005 (st4_lane): Likewise.
22006 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22007 (vec_store_lanesci_lane<mode>): Likewise.
22008 (vec_store_lanesxi_lane<mode>): Likewise.
22009 (aarch64_st2_lane<VQ:mode>): Likewise.
22010 (aarch64_st3_lane<VQ:mode>): Likewise.
22011 (aarch64_st4_lane<VQ:mode>): Likewise.
22012 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22013 * config/aarch64/arm_neon.h
22014 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22015 use new macro arguments.
22016 (__ST3_LANE_FUNC): Likewise.
22017 (__ST4_LANE_FUNC): Likewise.
22018 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22019 (V_THREE_ELEM): Likewise.
22020 (V_FOUR_ELEM): Likewise.
22021
22022 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22023
22024 * doc/gimple.texi: Replace the description of the now-defunct
22025 union gimple_statement_d with a diagram showing the
22026 gimple_statement_base class hierarchy and its relationships to
22027 the GSS_ and GIMPLE_ enums.
22028
22029 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22030
22031 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22032 * config/aarch64/aarch64.c
22033 (aarch64_cannot_change_mode_class): Weaken conditions.
22034 (aarch64_modes_tieable_p): New.
22035 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22036
22037 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22038
22039 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22040 (loadsync_<mode>): Change mode.
22041 (load_quadpti, store_quadpti): New.
22042 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22043 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22044
22045 2014-04-28 Martin Jambor <mjambor@suse.cz>
22046
22047 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22048 same alias type as the original statement.
22049 (subreplacement_assignment_data): New type.
22050 (handle_unscalarized_data_in_subtree): New type of parameter,
22051 generate new memory accesses with same alias type as the original
22052 statement.
22053 (load_assign_lhs_subreplacements): Likewise.
22054 (sra_modify_constructor_assign): Generate new memory accesses with
22055 same alias type as the original statement.
22056
22057 2014-04-28 Richard Biener <rguenther@suse.de>
22058
22059 * tree-pass.h (TODO_verify_il): Define.
22060 (TODO_verify_all): Complete properly.
22061 * passes.c (execute_function_todo): Move existing loop-closed
22062 SSA verification under TODO_verify_il.
22063 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22064 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22065 Fix tree sharing issue.
22066
22067 2014-04-28 Richard Biener <rguenther@suse.de>
22068
22069 PR middle-end/60092
22070 * builtins.def (DEF_C11_BUILTIN): Add.
22071 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22072 * coretypes.h (enum function_class): Add function_c11_misc.
22073 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22074 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22075 (call_may_clobber_ref_p_1): Likewise.
22076 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22077 (mark_all_reaching_defs_necessary_1): Likewise.
22078 (propagate_necessity): Likewise.
22079 (eliminate_unnecessary_stmts): Likewise.
22080 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22081
22082 2014-04-28 Richard Biener <rguenther@suse.de>
22083
22084 * tree-vrp.c (vrp_var_may_overflow): Remove.
22085 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22086 with overflow immediately bump to one before that value and
22087 let iteration figure out overflow status.
22088
22089 2014-04-28 Richard Biener <rguenther@suse.de>
22090
22091 * configure.ac: Do valgrind header checks unconditionally.
22092 Add --enable-valgrind-annotations.
22093 * system.h: Guard valgrind header inclusion with
22094 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22095 * alloc-pool.c (pool_alloc, pool_free): Use
22096 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22097 to guard possibly dead code.
22098 * config.in: Regenerated.
22099 * configure: Likewise.
22100
22101 2014-04-28 Jeff Law <law@redhat.com>
22102
22103 PR tree-optimization/60902
22104 * tree-ssa-threadedge.c
22105 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22106 over real defs when invalidating outputs from statements that do not
22107 produce useful outputs for threading.
22108
22109 2014-04-28 Richard Biener <rguenther@suse.de>
22110
22111 PR tree-optimization/60979
22112 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22113 SCOPs that end in a block with a successor with abnormal
22114 predecessors.
22115
22116 2014-04-28 Richard Biener <rguenther@suse.de>
22117
22118 * tree-pass.h (execute_pass_list): Adjust prototype.
22119 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22120 (do_per_function): Change callback signature, push all actual
22121 work to the callbals.
22122 (do_per_function_toporder): Likewise.
22123 (execute_function_dump): Adjust.
22124 (execute_function_todo): Likewise.
22125 (clear_last_verified): Likewise.
22126 (verify_curr_properties): Likewise.
22127 (update_properties_after_pass): Likewise.
22128 (execute_pass_list_1): Split out from ...
22129 (execute_pass_list): ... here. Adjust.
22130 (execute_ipa_pass_list): Likewise.
22131 * cgraphunit.c (cgraph_add_new_function): Adjust.
22132 (analyze_function): Likewise.
22133 (expand_function): Likewise.
22134 * cgraph.c (release_function_body): Free dominance info
22135 here instead of asserting it was magically freed elsewhere.
22136
22137 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22138
22139 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22140 * configure: Regenerate.
22141 * config/sparc/sparc.opt (muser-mode): New option.
22142 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22143 for LEON3.
22144 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22145 * doc/invoke.texi (SPARC options): Document -muser-mode.
22146
22147 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22148
22149 * cselib.c (find_slot_memmode): Delete.
22150 (cselib_hasher): Change compare_type to a struct.
22151 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22152 constants.
22153 (preserve_constants_and_equivs): Adjust for new compare_type.
22154 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22155 (wrap_constant): Delete.
22156 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22157
22158 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22159
22160 * doc/install.texi (Building with profile feedback): Remove
22161 outdated sentence.
22162
22163 2014-04-26 Tom de Vries <tom@codesourcery.com>
22164
22165 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22166 array accesses.
22167
22168 2014-04-25 Cary Coutant <ccoutant@google.com>
22169
22170 PR debug/60929
22171 * dwarf2out.c (should_move_die_to_comdat): A type definition
22172 can contain a subprogram definition, but don't move it to a
22173 comdat unit.
22174 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22175 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22176 from original DIE.
22177 (clone_tree_hash): Rename to...
22178 (clone_tree_partial): ...this; change callers. Copy
22179 DW_TAG_subprogram DIEs as declarations.
22180 (copy_decls_walk): Don't copy children of a declaration into a
22181 type unit.
22182
22183 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22184
22185 PR target/60969
22186 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22187 alternative 12.
22188
22189 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22190
22191 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22192 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22193 reg for long_call.
22194 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22195 restriction.
22196
22197 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22198
22199 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22200
22201 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22202
22203 PR tree-optimization/60930
22204 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22205 creating a multiply candidate by folding two constant
22206 multiplicands when the result overflows.
22207
22208 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22209
22210 PR tree-optimization/60960
22211 * tree-vect-generic.c (expand_vector_operation): Only call
22212 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22213
22214 2014-04-25 Tom de Vries <tom@codesourcery.com>
22215
22216 * expr.c (clobber_reg_mode): New function.
22217 * expr.h (clobber_reg): New function.
22218
22219 2014-04-25 Tom de Vries <tom@codesourcery.com>
22220
22221 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22222 clobbers.
22223
22224 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22225 Tom de Vries <tom@codesourcery.com>
22226
22227 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22228 handle.
22229 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22230 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22231 new argument to find_all_hard_reg_sets call.
22232
22233 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22234
22235 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22236 Use HOST_WIDE_INT_C for mask literal.
22237 (aarch_rev16_shleft_mask_imm_p): Likewise.
22238
22239 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22240
22241 PR target/60941
22242 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22243
22244 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22245
22246 PR preprocessor/56540
22247 * config/i386/i386-c.c (ix86_target_macros): Define
22248 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22249
22250 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22251
22252 * configure.ac (tga_func): Remove.
22253 (LIB_TLS_SPEC): Remove.
22254 * configure: Regenerate.
22255 * config.in: Regenerate.
22256 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22257
22258 2014-04-25 Richard Biener <rguenther@suse.de>
22259
22260 PR ipa/60912
22261 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22262 call stmt use/clobber sets during stmt walk instead of
22263 walking the possibly incomplete set of caller edges.
22264
22265 2014-04-25 Richard Biener <rguenther@suse.de>
22266
22267 PR ipa/60911
22268 * passes.c (apply_ipa_transforms): Inline into only caller ...
22269 (execute_one_pass): ... here. Properly bring in function
22270 bodies for nodes we want to apply IPA transforms to.
22271
22272 2014-04-24 Cong Hou <congh@google.com>
22273
22274 PR tree-optimization/60896
22275 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22276 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22277 (vect_mark_pattern_stmts): Set the def type of all statements in
22278 PATTERN_DEF_SEQ as vect_internal_def.
22279
22280 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22281
22282 * doc/extend.texi (PowerPC Built-in Functions): Document new
22283 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22284 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22285
22286 * config/rs6000/predicates.md (const_0_to_3_operand): New
22287 predicate to match 0..3 integer constants.
22288
22289 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22290 to support adding miscellaneous builtin functions.
22291 (BU_DFP_MISC_2): Likewise.
22292 (BU_P7_MISC_1): Likewise.
22293 (BU_P7_MISC_2): Likewise.
22294 (BU_P8V_MISC_3): Likewise.
22295 (BU_MISC_1): Likewise.
22296 (BU_MISC_2): Likewise.
22297 (DIVWE): Add extended divide builtin functions.
22298 (DIVWEO): Likewise.
22299 (DIVWEU): Likewise.
22300 (DIVWEUO): Likewise.
22301 (DIVDE): Likewise.
22302 (DIVDEO): Likewise.
22303 (DIVDEU): Likewise.
22304 (DIVDEUO): Likewise.
22305 (DXEX): Add decimal floating-point builtin functions.
22306 (DXEXQ): Likewise.
22307 (DDEDPD): Likewise.
22308 (DDEDPDQ): Likewise.
22309 (DENBCD): Likewise.
22310 (DENBCDQ): Likewise.
22311 (DIEX): Likewise.
22312 (DIEXQ): Likewise.
22313 (DSCLI): Likewise.
22314 (DSCLIQ): Likewise.
22315 (DSCRI): Likewise.
22316 (DSCRIQ): Likewise.
22317 (CDTBCD): Add new BCD builtin functions.
22318 (CBCDTD): Likewise.
22319 (ADDG6S): Likewise.
22320 (BCDADD): Likewise.
22321 (BCDADD_LT): Likewise.
22322 (BCDADD_EQ): Likewise.
22323 (BCDADD_GT): Likewise.
22324 (BCDADD_OV): Likewise.
22325 (BCDSUB): Likewise.
22326 (BCDSUB_LT): Likewise.
22327 (BCDSUB_EQ): Likewise.
22328 (BCDSUB_GT): Likewise.
22329 (BCDSUB_OV): Likewise.
22330 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22331 (UNPACK_TD): Likewise.
22332 (PACK_TF): Likewise.
22333 (UNPACK_TF): Likewise.
22334 (UNPACK_TF_0): Likewise.
22335 (UNPACK_TF_1): Likewise.
22336 (PACK_V1TI): Likewise.
22337 (UNPACK_V1TI): Likewise.
22338
22339 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22340 support for decimal floating point builtin functions.
22341 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22342 functions that take constant arguments.
22343 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22344 (rs6000_init_builtins): Setup long double, _Decimal64, and
22345 _Decimal128 types for new builtin functions.
22346 (builtin_function_type): Set the unsigned flags appropriately for
22347 the new builtin functions.
22348 (rs6000_opt_masks): Add support for decimal floating point builtin
22349 functions.
22350
22351 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22352 floating point builtin functions.
22353 (RS6000_BTM_COMMON): Likewise.
22354 (RS6000_BTI_long_double): Likewise.
22355 (RS6000_BTI_dfloat64): Likewise.
22356 (RS6000_BTI_dfloat128): Likewise.
22357 (long_double_type_internal_node): Likewise.
22358 (dfloat64_type_internal_node): Likewise.
22359 (dfloat128_type_internal_node): Likewise.
22360
22361 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22362 2.07 bcd arithmetic instructions.
22363 (UNSPEC_BCDSUB): Likewise.
22364 (UNSPEC_BCD_OVERFLOW): Likewise.
22365 (UNSPEC_BCD_ADD_SUB): Likewise.
22366 (bcd_add_sub): Likewise.
22367 (BCD_TEST): Likewise.
22368 (bcd<bcd_add_sub>): Likewise.
22369 (bcd<bcd_add_sub>_test): Likewise.
22370 (bcd<bcd_add_sub>_test2): Likewise.
22371 (bcd<bcd_add_sub>_<code>): Likewise.
22372 (peephole2 for combined bcd ops): Likewise.
22373
22374 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22375 decimal floating point builtin functions.
22376 (UNSPEC_DENBCD): Likewise.
22377 (UNSPEC_DXEX): Likewise.
22378 (UNSPEC_DIEX): Likewise.
22379 (UNSPEC_DSCLI): Likewise.
22380 (UNSPEC_DSCRI): Likewise.
22381 (D64_D128): Likewise.
22382 (dfp_suffix): Likewise.
22383 (dfp_ddedpd_<mode>): Likewise.
22384 (dfp_denbcd_<mode>): Likewise.
22385 (dfp_dxex_<mode>): Likewise.
22386 (dfp_diex_<mode>): Likewise.
22387 (dfp_dscli_<mode>): Likewise.
22388 (dfp_dscri_<mode>): Likewise.
22389
22390 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22391 builtin functions.
22392 (UNSPEC_CDTBCD): Likewise.
22393 (UNSPEC_CBCDTD): Likewise.
22394 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22395 (UNSPEC_DIVEO): Likewise.
22396 (UNSPEC_DIVEU): Likewise.
22397 (UNSPEC_DIVEUO): Likewise.
22398 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22399 pack/unpack 128-bit types.
22400 (UNSPEC_PACK_128BIT): Likewise.
22401 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22402 (udiv<mode>3): Use idiv_ldiv mode attribute.
22403 (div<mode>3): Likewise.
22404 (addg6s): Add new BCD builtin functions.
22405 (cdtbcd): Likewise.
22406 (cbcdtd): Likewise.
22407 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22408 (div_extend): Likewise.
22409 (div<div_extend>_<mode>"): Likewise.
22410 (FP128_64): Add support for new builtin functions to pack/unpack
22411 128-bit types.
22412 (unpack<mode>): Likewise.
22413 (unpacktf_0): Likewise.
22414 (unpacktf_1): Likewise.
22415 (unpack<mode>_dm): Likewise.
22416 (unpack<mode>_nodm): Likewise.
22417 (pack<mode>): Likewise.
22418 (unpackv1ti): Likewise.
22419 (packv1ti): Likewise.
22420
22421 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22422
22423 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22424 is disabled.
22425
22426 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22427
22428 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22429 * gimplify.c (omp_is_private): Change last argument's type to int.
22430 Only diagnose lastprivate if the simd argument is 1, only diagnose
22431 linear if the simd argument is 2.
22432 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22433 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22434 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22435 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22436 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22437 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22438 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22439 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22440 * tree-nested.c (convert_nonlocal_omp_clauses,
22441 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22442
22443 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22444
22445 PR target/60822
22446 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22447 operand 1.
22448
22449 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22450
22451 * flag-types.h (enum ivar_visibility): Add.
22452
22453 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22454
22455 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22456 function * argument.
22457
22458 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22459
22460 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22461
22462 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22463 Tom de Vries <tom@codesourcery.com>
22464
22465 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22466 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22467 reg-note.
22468 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22469 * emit-rtl.c (try_split): Same.
22470
22471 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22472 Tom de Vries <tom@codesourcery.com>
22473
22474 * common.opt (fuse-caller-save): New option.
22475
22476 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22477
22478 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22479 elements for big-endian.
22480
22481 2014-04-24 Richard Biener <rguenther@suse.de>
22482
22483 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22484 during TER and instead use the sepops interface for expanding
22485 non-GIMPLE_SINGLE_RHS.
22486
22487 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22488
22489 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22490 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22491
22492 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22493
22494 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22495 assembler 64-bit option.
22496 * configure: Regenerate.
22497
22498 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22499
22500 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22501 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22502 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22503 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22504 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22505
22506 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22507
22508 * config/aarch64/aarch64-builtins.c
22509 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22510 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22511 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22512 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22513 builtins.
22514 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22515 (Vrevsuff): New mode attribute.
22516
22517 2014-04-24 Terry Guo <terry.guo@arm.com>
22518
22519 * config/arm/arm.h (machine_function): Define variable
22520 after_arm_reorg here.
22521 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22522 (arm_split_constant): Update the way to access variable
22523 after_arm_reorg.
22524 (arm_reorg): Ditto.
22525 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22526
22527 2014-04-23 Tom de Vries <tom@codesourcery.com>
22528
22529 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22530
22531 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22532
22533 * is-a.h: Update comments to reflect the following changes to the
22534 "pointerness" of the API, making the template parameter match the
22535 return type, allowing use of is-a.h with typedefs of pointers.
22536 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22537 that the return type matches the parameter to the is_a_helper.
22538 (as_a): Likewise.
22539 (dyn_cast): Likewise.
22540
22541 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22542 pointer from the is-a.h API.
22543
22544 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22545 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22546 is-a.h API.
22547 (is_a_helper <varpool_node>::test): Likewise, convert to...
22548 (is_a_helper <varpool_node *>::test): ...this.
22549
22550 (varpool_first_variable): Update for removal of implicit pointer
22551 from the is-a.h API.
22552 (varpool_next_variable): Likewise.
22553 (varpool_first_static_initializer): Likewise.
22554 (varpool_next_static_initializer): Likewise.
22555 (varpool_first_defined_variable): Likewise.
22556 (varpool_next_defined_variable): Likewise.
22557 (cgraph_first_defined_function): Likewise.
22558 (cgraph_next_defined_function): Likewise.
22559 (cgraph_first_function): Likewise.
22560 (cgraph_next_function): Likewise.
22561 (cgraph_first_function_with_gimple_body): Likewise.
22562 (cgraph_next_function_with_gimple_body): Likewise.
22563 (cgraph_alias_target): Likewise.
22564 (varpool_alias_target): Likewise.
22565 (cgraph_function_or_thunk_node): Likewise.
22566 (varpool_variable_node): Likewise.
22567 (symtab_real_symbol_p): Likewise.
22568 * cgraphunit.c (referred_to_p): Likewise.
22569 (analyze_functions): Likewise.
22570 (handle_alias_pairs): Likewise.
22571 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22572 * gimple-ssa.h (gimple_vuse_op): Likewise.
22573 (gimple_vdef_op): Likewise.
22574 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22575 * gimple.c (gimple_build_asm_1): Likewise.
22576 (gimple_build_try): Likewise.
22577 (gimple_build_resx): Likewise.
22578 (gimple_build_eh_dispatch): Likewise.
22579 (gimple_build_omp_for): Likewise.
22580 (gimple_omp_for_set_clauses): Likewise.
22581
22582 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22583 (is_a_helper <gimple_statement_asm *>::test): ...this.
22584 (is_a_helper <gimple_statement_bind>::test): Convert to...
22585 (is_a_helper <gimple_statement_bind *>::test): ...this.
22586 (is_a_helper <gimple_statement_call>::test): Convert to...
22587 (is_a_helper <gimple_statement_call *>::test): ...this.
22588 (is_a_helper <gimple_statement_catch>::test): Convert to...
22589 (is_a_helper <gimple_statement_catch *>::test): ...this.
22590 (is_a_helper <gimple_statement_resx>::test): Convert to...
22591 (is_a_helper <gimple_statement_resx *>::test): ...this.
22592 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22593 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22594 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22595 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22596 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22597 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22598 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22599 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22600 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22601 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22602 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22603 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22604 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22605 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22606 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22607 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22608 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22609 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22610 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22611 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22612 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22613 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22614 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22615 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22616 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22617 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22618 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22619 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22620 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22621 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22622 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22623 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22624 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22625 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22626 (is_a_helper <gimple_statement_phi>::test): Convert to...
22627 (is_a_helper <gimple_statement_phi *>::test): ...this.
22628 (is_a_helper <gimple_statement_transaction>::test): Convert to...
22629 (is_a_helper <gimple_statement_transaction *>::test): ...this.
22630 (is_a_helper <gimple_statement_try>::test): Convert to...
22631 (is_a_helper <gimple_statement_try *>::test): ...this.
22632 (is_a_helper <gimple_statement_wce>::test): Convert to...
22633 (is_a_helper <gimple_statement_wce *>::test): ...this.
22634 (is_a_helper <const gimple_statement_asm>::test): Convert to...
22635 (is_a_helper <const gimple_statement_asm *>::test): ...this.
22636 (is_a_helper <const gimple_statement_bind>::test): Convert to...
22637 (is_a_helper <const gimple_statement_bind *>::test): ...this.
22638 (is_a_helper <const gimple_statement_call>::test): Convert to...
22639 (is_a_helper <const gimple_statement_call *>::test): ...this.
22640 (is_a_helper <const gimple_statement_catch>::test): Convert to...
22641 (is_a_helper <const gimple_statement_catch *>::test): ...this.
22642 (is_a_helper <const gimple_statement_resx>::test): Convert to...
22643 (is_a_helper <const gimple_statement_resx *>::test): ...this.
22644 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22645 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22646 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22647 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22648 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22649 Convert to...
22650 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22651 ...this.
22652 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22653 Convert to...
22654 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22655 ...this.
22656 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22657 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22658 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22659 to...
22660 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22661 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22662 to...
22663 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22664 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22665 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22666 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22667 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22668 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22669 to...
22670 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22671 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22672 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22673 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22674 to...
22675 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22676 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22677 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22678 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22679 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22680 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22681 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22682 (is_a_helper <const gimple_statement_phi>::test): Convert to...
22683 (is_a_helper <const gimple_statement_phi *>::test): ...this.
22684 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22685 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22686 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22687 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22688 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22689 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22690 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22691 to...
22692 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22693 ...this.
22694 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22695 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22696
22697 (gimple_use_ops): Update for removal of implicit pointer from the
22698 is-a.h API.
22699 (gimple_set_use_ops): Likewise.
22700 (gimple_vuse): Likewise.
22701 (gimple_vdef): Likewise.
22702 (gimple_vuse_ptr): Likewise.
22703 (gimple_vdef_ptr): Likewise.
22704 (gimple_set_vuse): Likewise.
22705 (gimple_set_vdef): Likewise.
22706 (gimple_omp_return_set_lhs): Likewise.
22707 (gimple_omp_return_lhs): Likewise.
22708 (gimple_omp_return_lhs_ptr): Likewise.
22709 (gimple_call_fntype): Likewise.
22710 (gimple_call_set_fntype): Likewise.
22711 (gimple_call_set_internal_fn): Likewise.
22712 (gimple_call_use_set): Likewise.
22713 (gimple_call_clobber_set): Likewise.
22714 (gimple_bind_vars): Likewise.
22715 (gimple_bind_set_vars): Likewise.
22716 (gimple_bind_body_ptr): Likewise.
22717 (gimple_bind_set_body): Likewise.
22718 (gimple_bind_add_stmt): Likewise.
22719 (gimple_bind_block): Likewise.
22720 (gimple_bind_set_block): Likewise.
22721 (gimple_asm_ninputs): Likewise.
22722 (gimple_asm_noutputs): Likewise.
22723 (gimple_asm_nclobbers): Likewise.
22724 (gimple_asm_nlabels): Likewise.
22725 (gimple_asm_input_op): Likewise.
22726 (gimple_asm_input_op_ptr): Likewise.
22727 (gimple_asm_output_op): Likewise.
22728 (gimple_asm_output_op_ptr): Likewise.
22729 (gimple_asm_set_output_op): Likewise.
22730 (gimple_asm_clobber_op): Likewise.
22731 (gimple_asm_set_clobber_op): Likewise.
22732 (gimple_asm_label_op): Likewise.
22733 (gimple_asm_set_label_op): Likewise.
22734 (gimple_asm_string): Likewise.
22735 (gimple_catch_types): Likewise.
22736 (gimple_catch_types_ptr): Likewise.
22737 (gimple_catch_handler_ptr): Likewise.
22738 (gimple_catch_set_types): Likewise.
22739 (gimple_catch_set_handler): Likewise.
22740 (gimple_eh_filter_types): Likewise.
22741 (gimple_eh_filter_types_ptr): Likewise.
22742 (gimple_eh_filter_failure_ptr): Likewise.
22743 (gimple_eh_filter_set_types): Likewise.
22744 (gimple_eh_filter_set_failure): Likewise.
22745 (gimple_eh_must_not_throw_fndecl): Likewise.
22746 (gimple_eh_must_not_throw_set_fndecl): Likewise.
22747 (gimple_eh_else_n_body_ptr): Likewise.
22748 (gimple_eh_else_e_body_ptr): Likewise.
22749 (gimple_eh_else_set_n_body): Likewise.
22750 (gimple_eh_else_set_e_body): Likewise.
22751 (gimple_try_eval_ptr): Likewise.
22752 (gimple_try_cleanup_ptr): Likewise.
22753 (gimple_try_set_eval): Likewise.
22754 (gimple_try_set_cleanup): Likewise.
22755 (gimple_wce_cleanup_ptr): Likewise.
22756 (gimple_wce_set_cleanup): Likewise.
22757 (gimple_phi_capacity): Likewise.
22758 (gimple_phi_num_args): Likewise.
22759 (gimple_phi_result): Likewise.
22760 (gimple_phi_result_ptr): Likewise.
22761 (gimple_phi_set_result): Likewise.
22762 (gimple_phi_arg): Likewise.
22763 (gimple_phi_set_arg): Likewise.
22764 (gimple_resx_region): Likewise.
22765 (gimple_resx_set_region): Likewise.
22766 (gimple_eh_dispatch_region): Likewise.
22767 (gimple_eh_dispatch_set_region): Likewise.
22768 (gimple_omp_critical_name): Likewise.
22769 (gimple_omp_critical_name_ptr): Likewise.
22770 (gimple_omp_critical_set_name): Likewise.
22771 (gimple_omp_for_clauses): Likewise.
22772 (gimple_omp_for_clauses_ptr): Likewise.
22773 (gimple_omp_for_set_clauses): Likewise.
22774 (gimple_omp_for_collapse): Likewise.
22775 (gimple_omp_for_index): Likewise.
22776 (gimple_omp_for_index_ptr): Likewise.
22777 (gimple_omp_for_set_index): Likewise.
22778 (gimple_omp_for_initial): Likewise.
22779 (gimple_omp_for_initial_ptr): Likewise.
22780 (gimple_omp_for_set_initial): Likewise.
22781 (gimple_omp_for_final): Likewise.
22782 (gimple_omp_for_final_ptr): Likewise.
22783 (gimple_omp_for_set_final): Likewise.
22784 (gimple_omp_for_incr): Likewise.
22785 (gimple_omp_for_incr_ptr): Likewise.
22786 (gimple_omp_for_set_incr): Likewise.
22787 (gimple_omp_for_pre_body_ptr): Likewise.
22788 (gimple_omp_for_set_pre_body): Likewise.
22789 (gimple_omp_parallel_clauses): Likewise.
22790 (gimple_omp_parallel_clauses_ptr): Likewise.
22791 (gimple_omp_parallel_set_clauses): Likewise.
22792 (gimple_omp_parallel_child_fn): Likewise.
22793 (gimple_omp_parallel_child_fn_ptr): Likewise.
22794 (gimple_omp_parallel_set_child_fn): Likewise.
22795 (gimple_omp_parallel_data_arg): Likewise.
22796 (gimple_omp_parallel_data_arg_ptr): Likewise.
22797 (gimple_omp_parallel_set_data_arg): Likewise.
22798 (gimple_omp_task_clauses): Likewise.
22799 (gimple_omp_task_clauses_ptr): Likewise.
22800 (gimple_omp_task_set_clauses): Likewise.
22801 (gimple_omp_task_child_fn): Likewise.
22802 (gimple_omp_task_child_fn_ptr): Likewise.
22803 (gimple_omp_task_set_child_fn): Likewise.
22804 (gimple_omp_task_data_arg): Likewise.
22805 (gimple_omp_task_data_arg_ptr): Likewise.
22806 (gimple_omp_task_set_data_arg): Likewise.
22807 (gimple_omp_taskreg_clauses): Likewise.
22808 (gimple_omp_taskreg_clauses_ptr): Likewise.
22809 (gimple_omp_taskreg_set_clauses): Likewise.
22810 (gimple_omp_taskreg_child_fn): Likewise.
22811 (gimple_omp_taskreg_child_fn_ptr): Likewise.
22812 (gimple_omp_taskreg_set_child_fn): Likewise.
22813 (gimple_omp_taskreg_data_arg): Likewise.
22814 (gimple_omp_taskreg_data_arg_ptr): Likewise.
22815 (gimple_omp_taskreg_set_data_arg): Likewise.
22816 (gimple_omp_task_copy_fn): Likewise.
22817 (gimple_omp_task_copy_fn_ptr): Likewise.
22818 (gimple_omp_task_set_copy_fn): Likewise.
22819 (gimple_omp_task_arg_size): Likewise.
22820 (gimple_omp_task_arg_size_ptr): Likewise.
22821 (gimple_omp_task_set_arg_size): Likewise.
22822 (gimple_omp_task_arg_align): Likewise.
22823 (gimple_omp_task_arg_align_ptr): Likewise.
22824 (gimple_omp_task_set_arg_align): Likewise.
22825 (gimple_omp_single_clauses): Likewise.
22826 (gimple_omp_single_clauses_ptr): Likewise.
22827 (gimple_omp_single_set_clauses): Likewise.
22828 (gimple_omp_target_clauses): Likewise.
22829 (gimple_omp_target_clauses_ptr): Likewise.
22830 (gimple_omp_target_set_clauses): Likewise.
22831 (gimple_omp_target_child_fn): Likewise.
22832 (gimple_omp_target_child_fn_ptr): Likewise.
22833 (gimple_omp_target_set_child_fn): Likewise.
22834 (gimple_omp_target_data_arg): Likewise.
22835 (gimple_omp_target_data_arg_ptr): Likewise.
22836 (gimple_omp_target_set_data_arg): Likewise.
22837 (gimple_omp_teams_clauses): Likewise.
22838 (gimple_omp_teams_clauses_ptr): Likewise.
22839 (gimple_omp_teams_set_clauses): Likewise.
22840 (gimple_omp_sections_clauses): Likewise.
22841 (gimple_omp_sections_clauses_ptr): Likewise.
22842 (gimple_omp_sections_set_clauses): Likewise.
22843 (gimple_omp_sections_control): Likewise.
22844 (gimple_omp_sections_control_ptr): Likewise.
22845 (gimple_omp_sections_set_control): Likewise.
22846 (gimple_omp_for_set_cond): Likewise.
22847 (gimple_omp_for_cond): Likewise.
22848 (gimple_omp_atomic_store_set_val): Likewise.
22849 (gimple_omp_atomic_store_val): Likewise.
22850 (gimple_omp_atomic_store_val_ptr): Likewise.
22851 (gimple_omp_atomic_load_set_lhs): Likewise.
22852 (gimple_omp_atomic_load_lhs): Likewise.
22853 (gimple_omp_atomic_load_lhs_ptr): Likewise.
22854 (gimple_omp_atomic_load_set_rhs): Likewise.
22855 (gimple_omp_atomic_load_rhs): Likewise.
22856 (gimple_omp_atomic_load_rhs_ptr): Likewise.
22857 (gimple_omp_continue_control_def): Likewise.
22858 (gimple_omp_continue_control_def_ptr): Likewise.
22859 (gimple_omp_continue_set_control_def): Likewise.
22860 (gimple_omp_continue_control_use): Likewise.
22861 (gimple_omp_continue_control_use_ptr): Likewise.
22862 (gimple_omp_continue_set_control_use): Likewise.
22863 (gimple_transaction_body_ptr): Likewise.
22864 (gimple_transaction_label): Likewise.
22865 (gimple_transaction_label_ptr): Likewise.
22866 (gimple_transaction_set_body): Likewise.
22867 (gimple_transaction_set_label): Likewise.
22868
22869 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22870 * ipa-inline-analysis.c (inline_write_summary): Likewise.
22871 * ipa-ref.c (ipa_record_reference): Likewise.
22872 * ipa-reference.c (analyze_function): Likewise.
22873 (ipa_reference_write_optimization_summary): Likewise.
22874 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22875 (address_taken_from_non_vtable_p): Likewise.
22876 (comdat_can_be_unshared_p_1): Likewise.
22877 * lto-cgraph.c (lto_output_ref): Likewise.
22878 (add_references): Likewise.
22879 (compute_ltrans_boundary): Likewise.
22880 (output_symtab): Likewise.
22881 (input_ref): Likewise.
22882 (input_cgraph_1): Likewise.
22883 (output_cgraph_opt_summary): Likewise.
22884 * lto-streamer-out.c (lto_output): Likewise.
22885 (output_symbol_p): Likewise.
22886 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22887 (lsei_start_function_in_partition): Likewise.
22888 (lsei_next_variable_in_partition): Likewise.
22889 (lsei_start_variable_in_partition): Likewise.
22890 * symtab.c (insert_to_assembler_name_hash): Likewise.
22891 (unlink_from_assembler_name_hash): Likewise.
22892 (symtab_unregister_node): Likewise.
22893 (symtab_remove_node): Likewise.
22894 (dump_symtab_node): Likewise.
22895 (verify_symtab_base): Likewise.
22896 (verify_symtab_node): Likewise.
22897 (symtab_make_decl_local): Likewise.
22898 (symtab_alias_ultimate_target): Likewise.
22899 (symtab_resolve_alias): Likewise.
22900 (symtab_get_symbol_partitioning_class): Likewise.
22901 * tree-phinodes.c (allocate_phi_node): Likewise.
22902 (reserve_phi_args_for_new_edge): Likewise.
22903 (remove_phi_args): Likewise.
22904 * varpool.c (varpool_node_for_asm): Likewise.
22905 (varpool_remove_unreferenced_decls): Likewise.
22906
22907 2014-04-23 Jeff Law <law@redhat.com>
22908
22909 PR tree-optimization/60902
22910 * tree-ssa-threadedge.c
22911 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22912 invalidate outputs from statements that do not produce useful
22913 outputs for threading.
22914
22915 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
22916
22917 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22918 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22919 machine descriptions for Stack Smashing Protector.
22920
22921 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
22922
22923 * aarch64.md (<optab>_rol<mode>3): New pattern.
22924 (<optab>_rolsi3_uxtw): Likewise.
22925 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
22926
22927 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
22928
22929 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
22930 (arm_cortex_a12_tune): Likewise.
22931
22932 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22933
22934 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
22935
22936 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22937
22938 * config/arm/arm.md (arm_rev16si2): New pattern.
22939 (arm_rev16si2_alt): Likewise.
22940 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
22941
22942 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22943
22944 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
22945 (rev16<mode>2_alt): Likewise.
22946 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
22947 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22948 (aarch_rev16_shleft_mask_imm_p): Likewise.
22949 (aarch_rev16_p_1): Likewise.
22950 (aarch_rev16_p): Likewise.
22951 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22952 (aarch_rev16_shright_mask_imm_p): Likewise.
22953 (aarch_rev16_shleft_mask_imm_p): Likewise.
22954
22955 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22956
22957 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22958 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22959 rev cost.
22960 (cortex_a53_extra_costs): Likewise.
22961 (cortex_a57_extra_costs): Likewise.
22962 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22963 (cortexa7_extra_costs): Likewise.
22964 (cortexa8_extra_costs): Likewise.
22965 (cortexa12_extra_costs): Likewise.
22966 (cortexa15_extra_costs): Likewise.
22967 (v7m_extra_costs): Likewise.
22968 (arm_new_rtx_costs): Handle BSWAP.
22969
22970 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22971
22972 * config/arm/arm.c (cortexa8_extra_costs): New table.
22973 (arm_cortex_a8_tune): New tuning struct.
22974 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22975
22976 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22977
22978 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22979
22980 2014-04-23 Richard Biener <rguenther@suse.de>
22981
22982 * Makefile.in (OBJS): Remove loop-unswitch.o.
22983 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22984 * passes.def (pass_rtl_unswitch): Likewise.
22985 * loop-init.c (gate_rtl_unswitch): Likewise.
22986 (rtl_unswitch): Likewise.
22987 (pass_data_rtl_unswitch): Likewise.
22988 (pass_rtl_unswitch): Likewise.
22989 (make_pass_rtl_unswitch): Likewise.
22990 * rtl.h (reversed_condition): Likewise.
22991 (compare_and_jump_seq): Likewise.
22992 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
22993 and make static.
22994 * loop-unroll.c (compare_and_jump_seq): Likewise.
22995
22996 2014-04-23 Richard Biener <rguenther@suse.de>
22997
22998 PR tree-optimization/60903
22999 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23000 commented code block.
23001 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23002 loop flags to newly created BBs and edges.
23003
23004 2014-04-23 Nick Clifton <nickc@redhat.com>
23005
23006 * config/msp430/msp430.c (msp430_handle_option): Move function
23007 to msp430-common.c
23008 (msp430_option_override): Simplify mcu and mcpu option handling.
23009 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23010 support for -mhwmult command line option.
23011 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23012 -mhwmult command line option.
23013 (msp430_hwmult_enabled): Delete.
23014 (msp43o_output_labelref): Add support for -mhwmult command line option.
23015 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23016 (umulsidi3): Likewise.
23017 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23018 (mcpu, mlarge, msmall): Likewise.
23019 (mhwmult): New option.
23020 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23021 prototype.
23022 (msp430_is_f5_mcu): Remove prototype.
23023 (msp430_use_f5_series_hwmult): Add prototype.
23024 * config/msp430/msp430-opts.h: New file.
23025 * common/config/msp430: New directory.
23026 * common/config/msp430/msp430-common.c: New file.
23027 * config.gcc (msp430): Remove target_has_targetm_common.
23028 * doc/invoke.texi: Document -mhwmult command line option.
23029
23030 2014-04-23 Nick Clifton <nickc@redhat.com>
23031
23032 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23033 default-manifest.o if it can be found in the search path.
23034 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23035
23036 2014-04-23 Terry Guo <terry.guo@arm.com>
23037
23038 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23039
23040 2014-04-23 Richard Biener <rguenther@suse.de>
23041
23042 PR middle-end/60895
23043 * tree-inline.c (declare_return_variable): Use mark_addressable.
23044
23045 2014-04-23 Richard Biener <rguenther@suse.de>
23046
23047 PR middle-end/60891
23048 * loop-init.c (loop_optimizer_init): Make sure to apply
23049 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23050
23051 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23052
23053 PR sanitizer/60275
23054 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23055 New options.
23056 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23057 if flag_sanitize_undefined_trap_on_error.
23058 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23059 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23060 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23061 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23062 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23063 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23064 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23065 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23066 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23067 * ubsan.c (ubsan_instrument_unreachable): Return
23068 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23069 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23070 if flag_sanitize_undefined_trap_on_error and
23071 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23072 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23073 instrument_bool_enum_load): Emit __builtin_trap () if
23074 flag_sanitize_undefined_trap_on_error and
23075 __builtin_handle_*_abort () if !flag_sanitize_recover.
23076 * doc/invoke.texi (-fsanitize-recover,
23077 -fsanitize-undefined-trap-on-error): Document.
23078
23079 2014-04-22 Christian Bruel <christian.bruel@st.com>
23080
23081 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23082 Force immediates to SImode.
23083
23084 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23085
23086 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23087 (lroundsfsi2): New.
23088 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23089 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23090 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23091 (nios2_fpu_insn): Add entry for round.
23092 (N2FPU_NO_ERRNO_P): Define.
23093 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23094 flag_errno_math.
23095 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23096
23097 2014-04-22 Richard Henderson <rth@redhat.com>
23098
23099 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23100 (add<GPI>3_compare0): Remove leading * from name.
23101 (add<GPI>3_carryin): Likewise.
23102 (sub<GPI>3_compare0): Likewise.
23103 (sub<GPI>3_carryin): Likewise.
23104 (<su_optab>mulditi3): New expander.
23105 (multi3): New expander.
23106 (madd<GPI>): Remove leading * from name.
23107
23108 2014-04-22 Martin Jambor <mjambor@suse.cz>
23109
23110 * cgraphclones.c (cgraph_function_versioning): Copy
23111 ipa_transforms_to_apply instead of asserting it is empty.
23112
23113 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23114
23115 PR target/60868
23116 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23117 on count_exp to get mode.
23118
23119 2014-04-22 Andrew Pinski <apinski@cavium.com>
23120
23121 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23122 Handle TLS for ILP32.
23123 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23124 (tlsie_small_<mode>): this and handle PTR.
23125 (tlsie_small_sidi): New pattern.
23126 (tlsle_small): Change to an expand to handle ILP32.
23127 (tlsle_small_<mode>): New pattern.
23128 (tlsdesc_small): Rename to ...
23129 (tlsdesc_small_<mode>): this and handle PTR.
23130
23131 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23132
23133 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23134
23135 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23136
23137 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23138 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23139 (aarch64_types_signed_poly_qualifiers): Likewise.
23140 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23141 (aarch64_types_poly_signed_qualifiers): Likewise.
23142 (TYPES_REINTERP_SS): Type macro added.
23143 (TYPES_REINTERP_SU): Likewise.
23144 (TYPES_REINTERP_SP): Likewise.
23145 (TYPES_REINTERP_US): Likewise.
23146 (TYPES_REINTERP_PS): Likewise.
23147 (aarch64_fold_builtin): New expression folding added.
23148 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23149 Declarations removed.
23150 (REINTERP_SS): Declarations added.
23151 (REINTERP_US): Likewise.
23152 (REINTERP_PS): Likewise.
23153 (REINTERP_SU): Likewise.
23154 (REINTERP_SP): Likewise.
23155 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23156 (vreinterpretq_p8_f64): Likewise.
23157 (vreinterpret_p16_f64): Likewise.
23158 (vreinterpretq_p16_f64): Likewise.
23159 (vreinterpret_f32_f64): Likewise.
23160 (vreinterpretq_f32_f64): Likewise.
23161 (vreinterpret_f64_f32): Likewise.
23162 (vreinterpret_f64_p8): Likewise.
23163 (vreinterpret_f64_p16): Likewise.
23164 (vreinterpret_f64_s8): Likewise.
23165 (vreinterpret_f64_s16): Likewise.
23166 (vreinterpret_f64_s32): Likewise.
23167 (vreinterpret_f64_s64): Likewise.
23168 (vreinterpret_f64_u8): Likewise.
23169 (vreinterpret_f64_u16): Likewise.
23170 (vreinterpret_f64_u32): Likewise.
23171 (vreinterpret_f64_u64): Likewise.
23172 (vreinterpretq_f64_f32): Likewise.
23173 (vreinterpretq_f64_p8): Likewise.
23174 (vreinterpretq_f64_p16): Likewise.
23175 (vreinterpretq_f64_s8): Likewise.
23176 (vreinterpretq_f64_s16): Likewise.
23177 (vreinterpretq_f64_s32): Likewise.
23178 (vreinterpretq_f64_s64): Likewise.
23179 (vreinterpretq_f64_u8): Likewise.
23180 (vreinterpretq_f64_u16): Likewise.
23181 (vreinterpretq_f64_u32): Likewise.
23182 (vreinterpretq_f64_u64): Likewise.
23183 (vreinterpret_s64_f64): Likewise.
23184 (vreinterpretq_s64_f64): Likewise.
23185 (vreinterpret_u64_f64): Likewise.
23186 (vreinterpretq_u64_f64): Likewise.
23187 (vreinterpret_s8_f64): Likewise.
23188 (vreinterpretq_s8_f64): Likewise.
23189 (vreinterpret_s16_f64): Likewise.
23190 (vreinterpretq_s16_f64): Likewise.
23191 (vreinterpret_s32_f64): Likewise.
23192 (vreinterpretq_s32_f64): Likewise.
23193 (vreinterpret_u8_f64): Likewise.
23194 (vreinterpretq_u8_f64): Likewise.
23195 (vreinterpret_u16_f64): Likewise.
23196 (vreinterpretq_u16_f64): Likewise.
23197 (vreinterpret_u32_f64): Likewise.
23198 (vreinterpretq_u32_f64): Likewise.
23199
23200 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23201
23202 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23203 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23204 (vreinterpret_p8_s8): Likewise.
23205 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23206 (vreinterpret_p8_s16): Likewise.
23207 (vreinterpret_p8_s32): Likewise.
23208 (vreinterpret_p8_s64): Likewise.
23209 (vreinterpret_p8_f32): Likewise.
23210 (vreinterpret_p8_u8): Likewise.
23211 (vreinterpret_p8_u16): Likewise.
23212 (vreinterpret_p8_u32): Likewise.
23213 (vreinterpret_p8_u64): Likewise.
23214 (vreinterpret_p8_p16): Likewise.
23215 (vreinterpretq_p8_s8): Likewise.
23216 (vreinterpretq_p8_s16): Likewise.
23217 (vreinterpretq_p8_s32): Likewise.
23218 (vreinterpretq_p8_s64): Likewise.
23219 (vreinterpretq_p8_f32): Likewise.
23220 (vreinterpretq_p8_u8): Likewise.
23221 (vreinterpretq_p8_u16): Likewise.
23222 (vreinterpretq_p8_u32): Likewise.
23223 (vreinterpretq_p8_u64): Likewise.
23224 (vreinterpretq_p8_p16): Likewise.
23225 (vreinterpret_p16_s8): Likewise.
23226 (vreinterpret_p16_s16): Likewise.
23227 (vreinterpret_p16_s32): Likewise.
23228 (vreinterpret_p16_s64): Likewise.
23229 (vreinterpret_p16_f32): Likewise.
23230 (vreinterpret_p16_u8): Likewise.
23231 (vreinterpret_p16_u16): Likewise.
23232 (vreinterpret_p16_u32): Likewise.
23233 (vreinterpret_p16_u64): Likewise.
23234 (vreinterpret_p16_p8): Likewise.
23235 (vreinterpretq_p16_s8): Likewise.
23236 (vreinterpretq_p16_s16): Likewise.
23237 (vreinterpretq_p16_s32): Likewise.
23238 (vreinterpretq_p16_s64): Likewise.
23239 (vreinterpretq_p16_f32): Likewise.
23240 (vreinterpretq_p16_u8): Likewise.
23241 (vreinterpretq_p16_u16): Likewise.
23242 (vreinterpretq_p16_u32): Likewise.
23243 (vreinterpretq_p16_u64): Likewise.
23244 (vreinterpretq_p16_p8): Likewise.
23245 (vreinterpret_f32_s8): Likewise.
23246 (vreinterpret_f32_s16): Likewise.
23247 (vreinterpret_f32_s32): Likewise.
23248 (vreinterpret_f32_s64): Likewise.
23249 (vreinterpret_f32_u8): Likewise.
23250 (vreinterpret_f32_u16): Likewise.
23251 (vreinterpret_f32_u32): Likewise.
23252 (vreinterpret_f32_u64): Likewise.
23253 (vreinterpret_f32_p8): Likewise.
23254 (vreinterpret_f32_p16): Likewise.
23255 (vreinterpretq_f32_s8): Likewise.
23256 (vreinterpretq_f32_s16): Likewise.
23257 (vreinterpretq_f32_s32): Likewise.
23258 (vreinterpretq_f32_s64): Likewise.
23259 (vreinterpretq_f32_u8): Likewise.
23260 (vreinterpretq_f32_u16): Likewise.
23261 (vreinterpretq_f32_u32): Likewise.
23262 (vreinterpretq_f32_u64): Likewise.
23263 (vreinterpretq_f32_p8): Likewise.
23264 (vreinterpretq_f32_p16): Likewise.
23265 (vreinterpret_s64_s8): Likewise.
23266 (vreinterpret_s64_s16): Likewise.
23267 (vreinterpret_s64_s32): Likewise.
23268 (vreinterpret_s64_f32): Likewise.
23269 (vreinterpret_s64_u8): Likewise.
23270 (vreinterpret_s64_u16): Likewise.
23271 (vreinterpret_s64_u32): Likewise.
23272 (vreinterpret_s64_u64): Likewise.
23273 (vreinterpret_s64_p8): Likewise.
23274 (vreinterpret_s64_p16): Likewise.
23275 (vreinterpretq_s64_s8): Likewise.
23276 (vreinterpretq_s64_s16): Likewise.
23277 (vreinterpretq_s64_s32): Likewise.
23278 (vreinterpretq_s64_f32): Likewise.
23279 (vreinterpretq_s64_u8): Likewise.
23280 (vreinterpretq_s64_u16): Likewise.
23281 (vreinterpretq_s64_u32): Likewise.
23282 (vreinterpretq_s64_u64): Likewise.
23283 (vreinterpretq_s64_p8): Likewise.
23284 (vreinterpretq_s64_p16): Likewise.
23285 (vreinterpret_u64_s8): Likewise.
23286 (vreinterpret_u64_s16): Likewise.
23287 (vreinterpret_u64_s32): Likewise.
23288 (vreinterpret_u64_s64): Likewise.
23289 (vreinterpret_u64_f32): Likewise.
23290 (vreinterpret_u64_u8): Likewise.
23291 (vreinterpret_u64_u16): Likewise.
23292 (vreinterpret_u64_u32): Likewise.
23293 (vreinterpret_u64_p8): Likewise.
23294 (vreinterpret_u64_p16): Likewise.
23295 (vreinterpretq_u64_s8): Likewise.
23296 (vreinterpretq_u64_s16): Likewise.
23297 (vreinterpretq_u64_s32): Likewise.
23298 (vreinterpretq_u64_s64): Likewise.
23299 (vreinterpretq_u64_f32): Likewise.
23300 (vreinterpretq_u64_u8): Likewise.
23301 (vreinterpretq_u64_u16): Likewise.
23302 (vreinterpretq_u64_u32): Likewise.
23303 (vreinterpretq_u64_p8): Likewise.
23304 (vreinterpretq_u64_p16): Likewise.
23305 (vreinterpret_s8_s16): Likewise.
23306 (vreinterpret_s8_s32): Likewise.
23307 (vreinterpret_s8_s64): Likewise.
23308 (vreinterpret_s8_f32): Likewise.
23309 (vreinterpret_s8_u8): Likewise.
23310 (vreinterpret_s8_u16): Likewise.
23311 (vreinterpret_s8_u32): Likewise.
23312 (vreinterpret_s8_u64): Likewise.
23313 (vreinterpret_s8_p8): Likewise.
23314 (vreinterpret_s8_p16): Likewise.
23315 (vreinterpretq_s8_s16): Likewise.
23316 (vreinterpretq_s8_s32): Likewise.
23317 (vreinterpretq_s8_s64): Likewise.
23318 (vreinterpretq_s8_f32): Likewise.
23319 (vreinterpretq_s8_u8): Likewise.
23320 (vreinterpretq_s8_u16): Likewise.
23321 (vreinterpretq_s8_u32): Likewise.
23322 (vreinterpretq_s8_u64): Likewise.
23323 (vreinterpretq_s8_p8): Likewise.
23324 (vreinterpretq_s8_p16): Likewise.
23325 (vreinterpret_s16_s8): Likewise.
23326 (vreinterpret_s16_s32): Likewise.
23327 (vreinterpret_s16_s64): Likewise.
23328 (vreinterpret_s16_f32): Likewise.
23329 (vreinterpret_s16_u8): Likewise.
23330 (vreinterpret_s16_u16): Likewise.
23331 (vreinterpret_s16_u32): Likewise.
23332 (vreinterpret_s16_u64): Likewise.
23333 (vreinterpret_s16_p8): Likewise.
23334 (vreinterpret_s16_p16): Likewise.
23335 (vreinterpretq_s16_s8): Likewise.
23336 (vreinterpretq_s16_s32): Likewise.
23337 (vreinterpretq_s16_s64): Likewise.
23338 (vreinterpretq_s16_f32): Likewise.
23339 (vreinterpretq_s16_u8): Likewise.
23340 (vreinterpretq_s16_u16): Likewise.
23341 (vreinterpretq_s16_u32): Likewise.
23342 (vreinterpretq_s16_u64): Likewise.
23343 (vreinterpretq_s16_p8): Likewise.
23344 (vreinterpretq_s16_p16): Likewise.
23345 (vreinterpret_s32_s8): Likewise.
23346 (vreinterpret_s32_s16): Likewise.
23347 (vreinterpret_s32_s64): Likewise.
23348 (vreinterpret_s32_f32): Likewise.
23349 (vreinterpret_s32_u8): Likewise.
23350 (vreinterpret_s32_u16): Likewise.
23351 (vreinterpret_s32_u32): Likewise.
23352 (vreinterpret_s32_u64): Likewise.
23353 (vreinterpret_s32_p8): Likewise.
23354 (vreinterpret_s32_p16): Likewise.
23355 (vreinterpretq_s32_s8): Likewise.
23356 (vreinterpretq_s32_s16): Likewise.
23357 (vreinterpretq_s32_s64): Likewise.
23358 (vreinterpretq_s32_f32): Likewise.
23359 (vreinterpretq_s32_u8): Likewise.
23360 (vreinterpretq_s32_u16): Likewise.
23361 (vreinterpretq_s32_u32): Likewise.
23362 (vreinterpretq_s32_u64): Likewise.
23363 (vreinterpretq_s32_p8): Likewise.
23364 (vreinterpretq_s32_p16): Likewise.
23365 (vreinterpret_u8_s8): Likewise.
23366 (vreinterpret_u8_s16): Likewise.
23367 (vreinterpret_u8_s32): Likewise.
23368 (vreinterpret_u8_s64): Likewise.
23369 (vreinterpret_u8_f32): Likewise.
23370 (vreinterpret_u8_u16): Likewise.
23371 (vreinterpret_u8_u32): Likewise.
23372 (vreinterpret_u8_u64): Likewise.
23373 (vreinterpret_u8_p8): Likewise.
23374 (vreinterpret_u8_p16): Likewise.
23375 (vreinterpretq_u8_s8): Likewise.
23376 (vreinterpretq_u8_s16): Likewise.
23377 (vreinterpretq_u8_s32): Likewise.
23378 (vreinterpretq_u8_s64): Likewise.
23379 (vreinterpretq_u8_f32): Likewise.
23380 (vreinterpretq_u8_u16): Likewise.
23381 (vreinterpretq_u8_u32): Likewise.
23382 (vreinterpretq_u8_u64): Likewise.
23383 (vreinterpretq_u8_p8): Likewise.
23384 (vreinterpretq_u8_p16): Likewise.
23385 (vreinterpret_u16_s8): Likewise.
23386 (vreinterpret_u16_s16): Likewise.
23387 (vreinterpret_u16_s32): Likewise.
23388 (vreinterpret_u16_s64): Likewise.
23389 (vreinterpret_u16_f32): Likewise.
23390 (vreinterpret_u16_u8): Likewise.
23391 (vreinterpret_u16_u32): Likewise.
23392 (vreinterpret_u16_u64): Likewise.
23393 (vreinterpret_u16_p8): Likewise.
23394 (vreinterpret_u16_p16): Likewise.
23395 (vreinterpretq_u16_s8): Likewise.
23396 (vreinterpretq_u16_s16): Likewise.
23397 (vreinterpretq_u16_s32): Likewise.
23398 (vreinterpretq_u16_s64): Likewise.
23399 (vreinterpretq_u16_f32): Likewise.
23400 (vreinterpretq_u16_u8): Likewise.
23401 (vreinterpretq_u16_u32): Likewise.
23402 (vreinterpretq_u16_u64): Likewise.
23403 (vreinterpretq_u16_p8): Likewise.
23404 (vreinterpretq_u16_p16): Likewise.
23405 (vreinterpret_u32_s8): Likewise.
23406 (vreinterpret_u32_s16): Likewise.
23407 (vreinterpret_u32_s32): Likewise.
23408 (vreinterpret_u32_s64): Likewise.
23409 (vreinterpret_u32_f32): Likewise.
23410 (vreinterpret_u32_u8): Likewise.
23411 (vreinterpret_u32_u16): Likewise.
23412 (vreinterpret_u32_u64): Likewise.
23413 (vreinterpret_u32_p8): Likewise.
23414 (vreinterpret_u32_p16): Likewise.
23415 (vreinterpretq_u32_s8): Likewise.
23416 (vreinterpretq_u32_s16): Likewise.
23417 (vreinterpretq_u32_s32): Likewise.
23418 (vreinterpretq_u32_s64): Likewise.
23419 (vreinterpretq_u32_f32): Likewise.
23420 (vreinterpretq_u32_u8): Likewise.
23421 (vreinterpretq_u32_u16): Likewise.
23422 (vreinterpretq_u32_u64): Likewise.
23423 (vreinterpretq_u32_p8): Likewise.
23424 (vreinterpretq_u32_p16): Likewise.
23425
23426 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23427
23428 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23429 Pattern extended.
23430 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23431 (sqabs): Likewise.
23432 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23433 (vqnegd_s64): Likewise.
23434 (vqabs_s64): Likewise.
23435 (vqabsd_s64): Likewise.
23436
23437 2014-04-22 Richard Henderson <rth@redhat.com>
23438
23439 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23440 computation to the top of the loop.
23441
23442 2014-04-22 Renlin <renlin.li@arm.com>
23443 Jiong Wang <jiong.wang@arm.com>
23444
23445 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23446 * config/aarch64/aarch64.c (aarch64_layout_frame)
23447 (aarch64_initial_elimination_offset): Likewise.
23448
23449 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23450
23451 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23452 Fix indentation.
23453
23454 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23455
23456 * machmode.h (bitwise_mode_for_mode): Declare.
23457 * stor-layout.h (bitwise_type_for_mode): Likewise.
23458 * stor-layout.c (bitwise_mode_for_mode): New function.
23459 (bitwise_type_for_mode): Likewise.
23460 * builtins.c (fold_builtin_memory_op): Use it instead of
23461 int_mode_for_mode and build_nonstandard_integer_type.
23462
23463 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23464
23465 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23466 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23467 (*-*-solaris2*): Simplify.
23468 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23469 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23470 *-*-solaris2.9* handling.
23471
23472 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23473 as bug.
23474 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23475 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23476 handling, simplify.
23477 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23478 * configure: Regenerate.
23479
23480 * config/i386/sol2-9.h: Remove.
23481
23482 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23483 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23484 Remove Solaris 9 references.
23485
23486 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23487
23488 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23489 (floatuns<GPI:mode><GPF:mode>2): Remove.
23490 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23491 and floatuns conversions.
23492 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23493 and floatuns conversions.
23494 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23495 (w1,w2): New mode attributes for inequal width conversions.
23496
23497 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23498
23499 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23500 the output asm format.
23501
23502 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23503
23504 * config/aarch64/aarch64-simd.md
23505 (aarch64_cm<optab>di): Always split.
23506 (*aarch64_cm<optab>di): New.
23507 (aarch64_cmtstdi): Always split.
23508 (*aarch64_cmtstdi): New.
23509
23510 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23511
23512 PR tree-optimization/60823
23513 * omp-low.c (ipa_simd_modify_function_body): Go through
23514 all SSA_NAMEs and for those refering to vector arguments
23515 which are going to be replaced adjust SSA_NAME_VAR and,
23516 if it is a default definition, change it into a non-default
23517 definition assigned at the beginning of function from new_decl.
23518 (ipa_simd_modify_stmt_ops): Rewritten.
23519 * tree-dfa.c (set_ssa_default_def): When removing default def,
23520 check for NULL loc instead of NULL *loc.
23521
23522 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23523
23524 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23525 restrictions on core registers for DImode values in Thumb2.
23526
23527 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23528
23529 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23530 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23531
23532 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23533
23534 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23535 (*iordi_notzesidi_di): Likewise.
23536 (*iordi_notsesidi_di): Likewise.
23537
23538 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23539
23540 * config/arm/arm-protos.h (tune_params): New struct members.
23541 * config/arm/arm.c: Initialise tune_params per processor.
23542 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23543 for speed, based on new tune_params.
23544
23545 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23546
23547 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23548 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23549 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23550 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23551 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23552 (vrnda_f64): Likewise.
23553 (vrndi_f64): Likewise.
23554 (vrndm_f64): Likewise.
23555 (vrndn_f64): Likewise.
23556 (vrndp_f64): Likewise.
23557 (vrndx_f64): Likewise.
23558
23559 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23560
23561 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23562 GET_MODE_SIZE argument is enum machine_mode.
23563
23564 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23565
23566 PR target/60910
23567 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23568 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23569
23570 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23571
23572 PR middle-end/60281
23573 * asan.c (asan_emit_stack_protection): Force the base to align to
23574 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23575 appropriate bits if STRICT_ALIGNMENT.
23576 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23577 when asan is on.
23578 (expand_used_vars): Leave a space in the stack frame for alignment
23579 if STRICT_ALIGNMENT.
23580
23581 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23582
23583 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23584 than a gimple.
23585 (gimple_store_p): Likewise.
23586 (gimple_assign_load_p): Likewise.
23587 (gimple_assign_cast_p): Likewise.
23588 (gimple_clobber_p): Likewise.
23589
23590 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23591 rather than a gimple.
23592 (gimple_assign_cast_p): Likewise.
23593
23594 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23595
23596 PR target/60735
23597 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23598 If mode is DDmode and TARGET_E500_DOUBLE allow move.
23599
23600 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23601 more debug information for E500 if -mdebug=reg.
23602
23603 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
23604
23605 PR target/60909
23606 * config/i386/i386.c (ix86_expand_builtin)
23607 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23608 register for target RTX.
23609 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23610
23611 2014-04-18 Cong Hou <congh@google.com>
23612
23613 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23614 the widen-mult pattern by handling two operands with different sizes,
23615 and operands whose size is smaller than half of the result type.
23616
23617 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23618
23619 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23620 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23621 (do_estimate_edge_time): Compute it.
23622 * ipa-inline.c (want_inline_small_function_p): Bypass
23623 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23624
23625 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23626
23627 * ipa-inline.c (spec_rem): New static variable.
23628 (dump_overall_stats): New function.
23629 (dump_inline_stats): New function.
23630
23631 2014-04-18 Richard Henderson <rth@redhat.com>
23632
23633 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23634 to GET_MODE_SIZE, not a reg_class_t.
23635
23636 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23637
23638 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23639 (vsx_xxmrglw_<mode>): Likewise.
23640
23641 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
23642
23643 PR target/60876
23644 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23645 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23646 (rs6000_init_hard_regno_mode_ok): Likewise.
23647
23648 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
23649
23650 * ipa-inline.c (inline_small_functions): Account only non-cold
23651 functions.
23652 * doc/invoke.texi (inline-unit-growth): Update documentation.
23653
23654 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
23655
23656 * config/rs6000/rs6000.md (addti3, subti3): New.
23657
23658 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
23659
23660 PR target/60863
23661 * config/i386/i386.c (ix86_expand_clear): Remove outdated
23662 comment. Check optimize_insn_for_size_p instead of
23663 optimize_insn_for_speed_p.
23664
23665 2014-04-17 Martin Jambor <mjambor@suse.cz>
23666
23667 * gimple-iterator.c (gsi_start_edge): New function.
23668 * gimple-iterator.h (gsi_start_edge): Declare.
23669 * tree-sra.c (single_non_eh_succ): New function.
23670 (disqualify_ops_if_throwing_stmt): Renamed to
23671 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
23672 having one non-EH successor BB.
23673 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23674 generate loads into replacements.
23675 (sra_modify_assign): Likewise and and also use the simple path for
23676 such statements.
23677 (sra_modify_function_body): Commit statements on edges.
23678
23679 2014-04-17 Richard Biener <rguenther@suse.de>
23680
23681 PR middle-end/60849
23682 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23683 comparison results and add clarifying comment.
23684
23685 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23686
23687 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23688 (blank_mode): Initialize it.
23689 (emit_mode_size_inline, emit_mode_nunits_inline,
23690 emit_mode_inner_inline): New functions.
23691 (emit_insn_modes_h): Call them and surround their output with
23692 #if GCC_VERSION >= 4001 ... #endif.
23693 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23694 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23695 mode_* arrays if the argument is __builtin_constant_p.
23696 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23697 is enum machine_mode.
23698
23699 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23700
23701 * passes.c (opt_pass::execute): Adjust.
23702 (pass_manager::execute_pass_mode_switching): Likewise.
23703 (early_local_passes::execute): Likewise.
23704 (execute_one_pass): Pass cfun to the pass's execute method.
23705 * tree-pass.h (opt_pass::execute): Add function * argument.
23706 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23707 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23708 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23709 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23710 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23711 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23712 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23713 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23714 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23715 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23716 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23717 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23718 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23719 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23720 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23721 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23722 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23723 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23724 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23725 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23726 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23727 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23728 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23729 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23730 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23731 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23732 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23733 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23734 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23735 Adjust.
23736
23737 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23738
23739 * passes.c (opt_pass::gate): Take function * argument.
23740 (gate_all_early_local_passes): Merge into
23741 (early_local_passes::gate): this.
23742 (gate_all_early_optimizations): Merge into
23743 (all_early_optimizations::gate): this.
23744 (gate_all_optimizations): Mege into
23745 (all_optimizations::gate): this.
23746 (gate_all_optimizations_g): Merge into
23747 (all_optimizations_g::gate): this.
23748 (gate_rest_of_compilation): Mege into
23749 (rest_of_compilation::gate): this.
23750 (gate_postreload): Merge into
23751 (postreload::gate): this.
23752 (dump_one_pass): Pass cfun to the pass's gate method.
23753 (execute_ipa_summary_passes): Likewise.
23754 (execute_one_pass): Likewise.
23755 (ipa_write_summaries_2): Likewise.
23756 (ipa_write_optimization_summaries_1): Likewise.
23757 (ipa_read_summaries_1): Likewise.
23758 (ipa_read_optimization_summaries_1): Likewise.
23759 (execute_ipa_stmt_fixups): Likewise.
23760 * tree-pass.h (opt_pass::gate): Add function * argument.
23761 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23762 combine-stack-adj.c, combine.c, compare-elim.c,
23763 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23764 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23765 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23766 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
23767 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23768 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23769 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23770 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23771 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23772 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23773 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23774 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23775 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23776 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23777 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23778 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23779 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23780 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23781 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23782 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23783 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23784 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23785 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23786 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23787 var-tracking.c, vtable-verify.c, web.c: Adjust.
23788
23789 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23790
23791 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23792 * configure: Regenerate.
23793
23794 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23795
23796 * passes.c (dump_one_pass): don't check pass->has_gate.
23797 (execute_ipa_summary_passes): Likewise.
23798 (execute_one_pass): Likewise.
23799 (ipa_write_summaries_2): Likewise.
23800 (ipa_write_optimization_summaries_1): Likewise.
23801 (ipa_read_optimization_summaries_1): Likewise.
23802 (execute_ipa_stmt_fixups): Likewise.
23803 * tree-pass.h (pass_data::has_gate): Remove.
23804 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23805 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23806 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23807 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23808 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23809 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23810 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23811 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23812 gimple-low.c, gimple-ssa-isolate-paths.c,
23813 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23814 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23815 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23816 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23817 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23818 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23819 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23820 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23821 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23822 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23823 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23824 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23825 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23826 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23827 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23828 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23829 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23830 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23831 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23832 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23833 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23834 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23835 Adjust.
23836
23837 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23838
23839 * pass_manager.h (pass_manager::register_dump_files_1): Remove
23840 declaration.
23841 * passes.c (pass_manager::register_dump_files_1): Merge into
23842 (pass_manager::register_dump_files): this, and remove its handling of
23843 properties since the pass always has the properties anyway.
23844 (pass_manager::pass_manager): Adjust.
23845
23846 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23847
23848 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23849 * passes.c (pass_manager::register_dump_files_1): Remove dead code
23850 dealing with properties.
23851 (pass_manager::register_dump_files): Adjust.
23852
23853 2014-03-20 Mark Wielaard <mjw@redhat.com>
23854
23855 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23856 then represent the bound as normal constant value.
23857
23858 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23859
23860 PR target/60847
23861 Forward port from 4.8 branch
23862 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
23863
23864 * config/i386/bmiintrin.h (_blsi_u32): New.
23865 (_blsi_u64): Ditto.
23866 (_blsr_u32): Ditto.
23867 (_blsr_u64): Ditto.
23868 (_blsmsk_u32): Ditto.
23869 (_blsmsk_u64): Ditto.
23870 (_tzcnt_u32): Ditto.
23871 (_tzcnt_u64): Ditto.
23872
23873 2014-04-17 Kito Cheng <kito@0xlab.org>
23874
23875 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23876
23877 2014-04-17 Richard Biener <rguenther@suse.de>
23878
23879 PR middle-end/60849
23880 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23881 boolean results for comparisons.
23882
23883 2014-04-17 Richard Biener <rguenther@suse.de>
23884
23885 PR tree-optimization/60836
23886 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23887 initial PHI args to be gimple values.
23888
23889 2014-04-17 Richard Biener <rguenther@suse.de>
23890
23891 PR tree-optimization/60841
23892 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23893 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23894 of stmts to SLP build.
23895 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23896 (vect_analyze_slp): Likewise.
23897 (vect_analyze_slp_instance): Likewise.
23898 (vect_build_slp_tree): Limit overall SLP tree growth.
23899 * tree-vectorizer.h (vect_analyze_data_refs,
23900 vect_analyze_slp): Adjust prototypes.
23901
23902 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23903
23904 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23905 Silvermont.
23906
23907 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23908
23909 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23910 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23911 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23912 for TARGET_SLOW_PSHUFB
23913
23914 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23915
23916 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23917 * config/i386/i386.c (intel_cost): Ditto.
23918
23919 2014-04-17 Joey Ye <joey.ye@arm.com>
23920
23921 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23922
23923 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23924
23925 * opts.c (common_handle_option): Disable -fipa-reference coorectly
23926 with -fuse-profile.
23927
23928 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23929
23930 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
23931 (type_all_derivations_known_p): New predicate.
23932 (type_all_ctors_visible_p): New predicate.
23933 (type_possibly_instantiated_p): New predicate.
23934 (get_odr_type): Compute all_derivations_known.
23935 (dump_odr_type): Dump the flag.
23936 (maybe_record_type): Cleanup.
23937 (record_target_from_binfo): Add bases_to_consider array;
23938 record bases for types w/o instances and skip CXX destructor.
23939 (possible_polymorphic_call_targets_1): Add bases_to_consider
23940 and consider_construction parameters; check if type may have instance.
23941 (get_polymorphic_call_info): Set maybe_in_construction to true
23942 when we know nothing.
23943 (record_targets_from_bases): Skip CXX destructors; they are
23944 never called for types in construction.
23945 (possible_polymorphic_call_targets): Do not record target when
23946 type may not have instance.
23947
23948 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23949
23950 PR ipa/60854
23951 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23952 external aliases alive, too.
23953
23954 2014-04-16 Andrew Pinski <apinski@cavium.com>
23955
23956 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23957 definition.
23958
23959 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23960
23961 * final.c (compute_alignments): Do not apply loop alignment to a block
23962 falling through to the exit.
23963
23964 2014-04-16 Catherine Moore <clm@codesourcery.com>
23965
23966 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23967 Adjust constraints for microMIPS store patterns.
23968
23969 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23970
23971 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23972
23973 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23974
23975 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23976 (append_use): Run at -O0.
23977 (append_vdef): Likewise.
23978 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23979 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23980
23981 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23982
23983 PR tree-optimization/60844
23984 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23985 (propagate_op_to_single_use, remove_visited_stmt_chain,
23986 linearize_expr, repropagate_negates, reassociate_bb): Use it
23987 instead of gsi_remove.
23988
23989 2014-04-16 Martin Jambor <mjambor@suse.cz>
23990
23991 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
23992 ipa_transforms_to_apply.
23993 (cgraph_function_versioning): Assert that old_node has empty
23994 ipa_transforms_to_apply.
23995 * trans-mem.c (ipa_tm_create_version): Likewise.
23996 * tree-inline.c (tree_function_versioning): Do not duplicate
23997 ipa_transforms_to_apply.
23998
23999 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24000
24001 PR target/60817
24002 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24003 x86_64-*-* cases.
24004 Pass necessary as flags on 64-bit Solaris/x86.
24005 Use lowercase relocs for x86_64-*-*.
24006 * configure: Regenerate.
24007
24008 2014-04-15 Jan Hubicka <jh@suse.cz>
24009
24010 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24011 (maybe_record_node, likely_target_p): Use it.
24012
24013 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24014
24015 PR target/60839
24016 Revert following patch
24017
24018 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24019
24020 PR target/60735
24021 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24022 software floating point or no floating point registers, do not
24023 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24024 in GPRs that occurs after we tested for GPRs that would never be
24025 true.
24026
24027 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24028 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24029 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24030 specifically allow DDmode, since that does not use the SPE SIMD
24031 instructions.
24032
24033 2014-03-21 Mark Wielaard <mjw@redhat.com>
24034
24035 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24036 as unsigned or int depending on type and value used.
24037
24038 2014-04-15 Richard Biener <rguenther@suse.de>
24039
24040 PR rtl-optimization/56965
24041 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24042 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24043 ... here.
24044 * alias.c (true_dependence_1): Do not call
24045 nonoverlapping_component_refs_p.
24046 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24047 nonoverlapping_component_refs_p.
24048 (indirect_refs_may_alias_p): Likewise.
24049
24050 2014-04-15 Teresa Johnson <tejohnson@google.com>
24051
24052 * cfg.c (dump_bb_info): Fix flags check.
24053 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24054
24055 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24056
24057 PR rtl-optimization/60663
24058 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24059 avoid 0 cost.
24060
24061 2014-04-15 Richard Biener <rguenther@suse.de>
24062
24063 * lto-streamer.h (LTO_major_version): Bump to 4.
24064
24065 2014-04-15 Richard Biener <rguenther@suse.de>
24066
24067 * common.opt (lto_partition_model): New enum.
24068 (flto-partition=): Merge separate options with a single with argument,
24069 add -flto-partition=one support.
24070 * flag-types.h (enum lto_partition_model): Declare.
24071 * opts.c (finish_options): Remove duplicate -flto-partition=
24072 option check.
24073 * lto-wrapper.c (run_gcc): Adjust.
24074
24075 2014-04-15 Richard Biener <rguenther@suse.de>
24076
24077 * alias.c (ncr_compar): New function.
24078 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24079
24080 2014-04-15 Richard Biener <rguenther@suse.de>
24081
24082 * alias.c (record_component_aliases): Do not walk BINFOs.
24083
24084 2014-04-15 Richard Biener <rguenther@suse.de>
24085
24086 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24087 Add struct function argument and adjust.
24088 (find_func_aliases_for_call): Likewise.
24089 (find_func_aliases): Likewise.
24090 (find_func_clobbers): Likewise.
24091 (intra_create_variable_infos): Likewise.
24092 (compute_points_to_sets): Likewise.
24093 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24094
24095 2014-04-15 Richard Biener <rguenther@suse.de>
24096
24097 * tree.c (iterative_hash_expr): Use enum tree_code_class
24098 to store TREE_CODE_CLASS.
24099 (tree_block): Likewise.
24100 (tree_set_block): Likewise.
24101 * tree.h (fold_build_pointer_plus_loc): Use
24102 convert_to_ptrofftype_loc.
24103
24104 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24105
24106 PR plugins/59335
24107 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24108 added in 4.9.
24109
24110 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24111
24112 * cfgloop.h (struct loop): Move force_vectorize down.
24113 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24114 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24115 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24116 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24117 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24118 * tree-core.h (enum annot_expr_kind): Add new kind values.
24119 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24120 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24121 kinds.
24122 * tree.def (ANNOTATE_EXPR): Tweak comment.
24123
24124 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24125
24126 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24127 cxa_pure_virtual).
24128
24129 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24130
24131 * tree.h (TYPE_IDENTIFIER): Declare.
24132 * tree.c (subrange_type_for_debug_p): Use it.
24133 * godump.c (go_format_type): Likewise.
24134 * dwarf2out.c (is_cxx_auto, modified_type_die,
24135 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24136 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24137
24138 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24139
24140 PR lto/60820
24141 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24142
24143 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24144
24145 * config/i386/i386.c (examine_argument): Return bool. Return true if
24146 parameter should be passed in memory.
24147 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24148 (construct_container): Update calls to examine_argument.
24149 (function_arg_advance_64): Ditto.
24150 (return_in_memory_32): Merge with ix86_return_in_memory.
24151 (return_in_memory_64): Ditto.
24152 (return_in_memory_ms_64): Ditto.
24153
24154 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24155
24156 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24157 * coverage.c (coverage_compute_profile_id): Handle externally visible
24158 symbols.
24159
24160 2014-04-14 Martin Jambor <mjambor@suse.cz>
24161
24162 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24163 DECL_DISREGARD_INLINE_LIMITS functions.
24164
24165 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24166
24167 PR target/60827
24168 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24169
24170 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24171
24172 PR target/60827
24173 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24174 optimize_insn_for_speed_p instead of
24175 optimize_function_for_speed_p.
24176
24177 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24178
24179 * doc/invoke.texi (free): Document AArch64.
24180
24181 2014-04-14 Richard Biener <rguenther@suse.de>
24182
24183 PR tree-optimization/60042
24184 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24185 (insert_into_preds_of_block): Do not prevent PHI insertion
24186 for REFERENCE exprs here ...
24187 (eliminate_dom_walker::before_dom_children): ... but prevent
24188 their use here under similar conditions when applied to the
24189 IL after PRE optimizations.
24190
24191 2014-04-14 Richard Biener <rguenther@suse.de>
24192
24193 * passes.def: Move early points-to after early SRA.
24194
24195 2014-04-14 Richard Biener <rguenther@suse.de>
24196
24197 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24198 check for which sign-changes we allow when forwarding
24199 a converted value into a switch.
24200
24201 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24202
24203 * stor-layout.c (place_field): Finalize non-constant offset for the
24204 field, if any.
24205
24206 2014-04-14 Richard Biener <rguenther@suse.de>
24207
24208 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24209 as argument.
24210 (expand_switch_using_bit_tests_p): Likewise.
24211 (process_switch): Compute and pass on speed_p based on the
24212 switch stmt.
24213 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24214 optimize_bb_for_speed_p.
24215
24216 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24217
24218 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24219 * function.h (struct function): Rename has_force_vect_loops into
24220 has_force_vectorize_loops.
24221 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24222 (input_struct_function_base): Likewise.
24223 * lto-streamer-out.c (output_cfg): Likewise.
24224 (output_struct_function_base): Likewise.
24225 * omp-low.c (expand_omp_simd): Likewise.
24226 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24227 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24228 (version_loop_for_if_conversion): Likewise.
24229 (tree_if_conversion): Likewise.
24230 (main_tree_if_conversion): Likewise.
24231 (gate_tree_if_conversion): Likewise.
24232 * tree-inline.c (copy_loops): Likewise.
24233 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24234 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24235 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24236 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24237 * tree-vectorizer.c (vectorize_loops): Likewise.
24238 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24239
24240 2014-04-14 Richard Biener <rguenther@suse.de>
24241
24242 PR lto/60720
24243 * lto-streamer-out.c (wrap_refs): New function.
24244 (lto_output): Wrap symbol references in global initializes in
24245 type-preserving MEM_REFs.
24246
24247 2014-04-14 Christian Bruel <christian.bruel@st.com>
24248
24249 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24250
24251 2014-04-14 Christian Bruel <christian.bruel@st.com>
24252
24253 * config/sh/sh.md (setmemqi): New expand pattern.
24254 * config/sh/sh.h (CLEAR_RATIO): Define.
24255 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24256 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24257
24258 2014-04-14 Richard Biener <rguenther@suse.de>
24259
24260 PR middle-end/55022
24261 * fold-const.c (negate_expr_p): Don't negate directional rounding
24262 division.
24263 (fold_negate_expr): Likewise.
24264
24265 2014-04-14 Richard Biener <rguenther@suse.de>
24266
24267 PR tree-optimization/59817
24268 PR tree-optimization/60453
24269 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24270 recursion to catch all CHRECs in the scalar evolution and restrict
24271 the predicate for the remains appropriately.
24272
24273 2014-04-12 Catherine Moore <clm@codesourcery.com>
24274
24275 * config/mips/constraints.md: Add new register constraint "kb".
24276 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24277 (*movhi_internal): Likewise.
24278 (*movqi_internal): Likewise.
24279 * config/mips/mips.h (M16_STORE_REGS): New register class.
24280 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24281 (REG_CLASS_CONTENTS): Likewise.
24282 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24283
24284 2014-04-11 Tobias Burnus <burnus@net-b.de>
24285
24286 PR c/60194
24287 * doc/invoke.texi (-Wformat-signedness): Document it.
24288 (Wformat=2): Mention that this enables -Wformat-signedness.
24289
24290 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24291
24292 * common/config/epiphany/epiphany-common.c
24293 (epiphany_option_optimization_table): Enable section anchors by
24294 default at -O1 or higher.
24295 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24296 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24297 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24298 carries no extra cost.
24299 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24300 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24301 * config/epiphany/predicates.md (memclob_operand): New predicate.
24302 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24303 Use memclob_operand predicate and X constraint for operand 3.
24304
24305 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24306
24307 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24308 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24309 its operands.
24310
24311 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24312
24313 PR rtl-optimization/60651
24314 * mode-switching.c (optimize_mode_switching): Make sure to emit
24315 sets of a lower numbered entity before sets of a higher numbered
24316 entity to a mode of the same or lower priority.
24317 When creating a seginfo for a basic block that starts with a code
24318 label, move the insertion point past the code label.
24319 (new_seginfo): Document and enforce requirement that
24320 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24321 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24322 * doc/tm.texi: Regenerate.
24323
24324 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24325
24326 PR target/60811
24327 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24328
24329 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24330
24331 * BASE-VER: Set to 4.10.0.
24332
24333 2014-04-11 Tobias Burnus <burnus@net-b.de>
24334
24335 PR other/59055
24336 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24337 * doc/gcc.texi (Service): Update description in the @menu
24338 * doc/invoke.texi (Option Summary): Remove misplaced and
24339 duplicated @menu.
24340
24341 2014-04-11 Steve Ellcey <sellcey@mips.com>
24342 Jakub Jelinek <jakub@redhat.com>
24343
24344 PR middle-end/60556
24345 * expr.c (convert_move): Use emit_store_flag_force instead of
24346 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24347 argument to it.
24348
24349 2014-04-11 Richard Biener <rguenther@suse.de>
24350
24351 PR middle-end/60797
24352 * varasm.c (assemble_alias): Avoid endless error reporting
24353 recursion by setting TREE_ASM_WRITTEN.
24354
24355 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24356
24357 * config/s390/s390.md: Add a splitter for NOT rtx.
24358
24359 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24360
24361 PR rtl-optimization/60663
24362 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24363
24364 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24365 Jakub Jelinek <jakub@redhat.com>
24366
24367 PR lto/60567
24368 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24369 flag from decl_node to node.
24370
24371 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24372
24373 PR debug/60655
24374 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24375 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24376 ameliorating the cases where it can be.
24377
24378 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24379
24380 Revert
24381 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24382
24383 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24384 (loadsync_<mode>): Change mode.
24385 (load_quadpti, store_quadpti): New.
24386 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24387 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24388 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24389
24390 2014-04-09 Cong Hou <congh@google.com>
24391
24392 PR testsuite/60773
24393 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24394 documentation.
24395
24396 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24397
24398 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24399 instead of vnor to exploit possible fusion opportunity in the
24400 future.
24401 (altivec_expand_vec_perm_const_le): Likewise.
24402
24403 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24404
24405 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24406 (loadsync_<mode>): Change mode.
24407 (load_quadpti, store_quadpti): New.
24408 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24409 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24410
24411 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24412
24413 PR target/60763
24414 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24415 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24416 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24417
24418 2014-04-08 Richard Biener <rguenther@suse.de>
24419
24420 PR middle-end/60706
24421 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24422 a 64bit widest int print double-int similar to on HWI64 hosts.
24423
24424 2014-04-08 Richard Biener <rguenther@suse.de>
24425
24426 PR tree-optimization/60785
24427 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24428 default defs properly.
24429
24430 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24431
24432 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24433 (Weffc++): Likewise.
24434
24435 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24436
24437 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24438 set completep to false rather than true.
24439
24440 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24441
24442 PR target/60504
24443 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24444 ARM_TARGET2_DWARF_FORMAT.
24445
24446 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24447
24448 PR target/60609
24449 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24450 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24451 ADDR_DIFF_VEC.
24452
24453 2014-04-07 Richard Biener <rguenther@suse.de>
24454
24455 PR tree-optimization/60766
24456 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24457 (may_eliminate_iv): Convert cand_value_at result to desired type.
24458
24459 2014-04-07 Jason Merrill <jason@redhat.com>
24460
24461 PR c++/60731
24462 * common.opt (-fno-gnu-unique): Add.
24463 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24464
24465 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24466
24467 * haifa-sched.c: Fix outdated function reference and minor
24468 grammar errors in introductory comment.
24469
24470 2014-04-07 Richard Biener <rguenther@suse.de>
24471
24472 PR middle-end/60750
24473 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24474 for noreturn calls.
24475 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24476
24477 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24478
24479 PR debug/55794
24480 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24481 size accounting for thunks.
24482 (pa_asm_output_mi_thunk): Use final_start_function() and
24483 final_end_function() to output function start and end directives.
24484
24485 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24486
24487 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24488 device specific ISA/ feature information. Remove short_sp and
24489 errata_skip ds. Add avr_device_specific_features enum to have device
24490 specific info.
24491 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24492 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24493 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24494 updated device specific info.
24495 * config/avr/avr-mcus.def: Merge device specific details to
24496 dev_attribute field.
24497 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24498 errata_skip.
24499 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24500 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24501 assembler if RMW isa supported by current device.
24502 * config/avr/genmultilib.awk: Update as device info structure changed.
24503 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24504
24505 2014-04-04 Cong Hou <congh@google.com>
24506
24507 PR tree-optimization/60656
24508 * tree-vect-stmts.c (supportable_widening_operation):
24509 Fix a bug that elements in a vector with vect_used_by_reduction
24510 property are incorrectly reordered when the operation on it is not
24511 consistant with the one in reduction operation.
24512
24513 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24514
24515 PR rtl-optimization/60155
24516 * gcse.c (record_set_data): New function.
24517 (single_set_gcse): New function.
24518 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24519 (hoist_code): Likewise.
24520 (get_pressure_class_and_nregs): Likewise.
24521
24522 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24523
24524 * explow.c (probe_stack_range): Emit a final optimization blockage.
24525
24526 2014-04-04 Anthony Green <green@moxielogic.com>
24527
24528 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24529 typos.
24530
24531 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24532
24533 PR ipa/59626
24534 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24535 flags are set only during streaming.
24536 * ipa.c (process_references, walk_polymorphic_call_targets,
24537 symtab_remove_unreachable_nodes): Drop bodies of always inline
24538 after early inlining.
24539 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24540
24541 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24542 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24543
24544 PR debug/60655
24545 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24546 containing a NOT.
24547
24548 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24549
24550 PR bootstrap/60743
24551 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24552 duration.
24553 (cortex_a53_fdivd): Likewise.
24554
24555 2014-04-04 Martin Jambor <mjambor@suse.cz>
24556
24557 PR ipa/60640
24558 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24559 Adjust all callers.
24560 * cgraph.c (clone_of_p): Also return true if thunks match.
24561 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24562 cgraph_function_or_thunk_node and an obsolete comment.
24563 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24564 file.
24565 (build_function_decl_skip_args): Likewise.
24566 (set_new_clone_decl_and_node_flags): New function.
24567 (duplicate_thunk_for_node): Likewise.
24568 (redirect_edge_duplicating_thunks): Likewise.
24569 (cgraph_clone_node): New parameter args_to_skip, pass it to
24570 redirect_edge_duplicating_thunks which is called instead of
24571 cgraph_redirect_edge_callee.
24572 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24573 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24574
24575 2014-04-04 Jeff Law <law@redhat.com>
24576
24577 PR target/60657
24578 * config/arm/predicates.md (const_int_I_operand): New predicate.
24579 (const_int_M_operand): Similarly.
24580 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24581 const_int_operand.
24582 (insv_t2, extv_reg, extzv_t2): Likewise.
24583 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24584 (pop_multiple_with_writeback_and_return): Likewise.
24585 (vfp_pop_multiple_with_writeback): Likewise
24586
24587 2014-04-04 Richard Biener <rguenther@suse.de>
24588
24589 PR ipa/60746
24590 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24591 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24592 non-GIMPLE_LABELs.
24593 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24594 * gimplify.c (gimple_add_tmp_var_fn): New function.
24595 * gimple-expr.h (create_tmp_reg_fn): Declare.
24596 * gimple-expr.c (create_tmp_reg_fn): New function.
24597 * gimple-low.c (record_vars_into): Don't change cfun.
24598 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24599 code generation without cfun.
24600
24601 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
24602
24603 PR bootstrap/60719
24604 * Makefile.in (install-driver): Fix shell scripting.
24605
24606 2014-04-03 Cong Hou <congh@google.com>
24607
24608 PR tree-optimization/60505
24609 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24610 threshold of number of iterations below which no vectorization
24611 will be done.
24612 * tree-vect-loop.c (new_loop_vec_info):
24613 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24614 * tree-vect-loop.c (vect_analyze_loop_operations):
24615 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24616 * tree-vect-loop.c (vect_transform_loop):
24617 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24618 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24619 of iterations of the loop and see if we should build the epilogue.
24620
24621 2014-04-03 Richard Biener <rguenther@suse.de>
24622
24623 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24624 (streamer_tree_cache_create): Adjust.
24625 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24626 to allow optional nodes array.
24627 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24628 (streamer_tree_cache_append): Likewise.
24629 (streamer_tree_cache_create): Create nodes array optionally
24630 as specified by parameter.
24631 * lto-streamer-out.c (create_output_block): Avoid maintaining
24632 the node array in the writer cache.
24633 (DFS_write_tree): Remove assertion.
24634 (produce_asm_for_decls): Free the out decl state hash table early.
24635 * lto-streamer-in.c (lto_data_in_create): Adjust for
24636 streamer_tree_cache_create prototype change.
24637
24638 2014-04-03 Richard Biener <rguenther@suse.de>
24639
24640 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24641 set TREE_CHAIN to NULL_TREE.
24642
24643 2014-04-03 Richard Biener <rguenther@suse.de>
24644
24645 PR tree-optimization/60740
24646 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24647 over all GIMPLE_COND operands.
24648
24649 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
24650
24651 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24652 (Weffc++): Remove Scott's numbering, merge lists and reference
24653 Wnon-virtual-dtor.
24654
24655 2014-04-03 Nick Clifton <nickc@redhat.com>
24656
24657 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24658 properly.
24659
24660 2014-04-03 Martin Jambor <mjambor@suse.cz>
24661
24662 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24663 mention gcc_unreachable before failing.
24664 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24665 removed symbols.
24666
24667 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
24668
24669 PR ipa/60659
24670 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24671 inconsistent code and instead mark the context inconsistent.
24672 (possible_polymorphic_call_targets): For inconsistent contexts
24673 return empty complete list.
24674
24675 2014-04-02 Anthony Green <green@moxielogic.com>
24676
24677 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24678 (extendqisi2, extendhisi2): Define.
24679 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24680 (WCHAR_TYPE): Change to unsigned int.
24681
24682 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24683
24684 PR tree-optimization/60733
24685 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24686 insertion point for PHI candidates to be the end of the feeding
24687 block for the PHI argument.
24688
24689 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
24690
24691 PR rtl-optimization/60650
24692 * lra-constraints.c (process_alt_operands): Decrease reject for
24693 earlyclobber matching.
24694
24695 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24696
24697 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24698
24699 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24700
24701 * config/spu/spu.c (pad_bb): Do not crash when the last
24702 insn is CODE_FOR_blockage.
24703
24704 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24705
24706 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24707 lies outside the target mode.
24708
24709 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24710
24711 PR target/60735
24712 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24713 software floating point or no floating point registers, do not
24714 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24715 in GPRs that occurs after we tested for GPRs that would never be
24716 true.
24717
24718 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24719 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24720 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24721 specifically allow DDmode, since that does not use the SPE SIMD
24722 instructions.
24723
24724 2014-04-02 Richard Biener <rguenther@suse.de>
24725
24726 PR middle-end/60729
24727 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24728 MODE_INTs. Properly use negv_optab.
24729 (expand_abs): Likewise.
24730
24731 2014-04-02 Richard Biener <rguenther@suse.de>
24732
24733 PR bootstrap/60719
24734 * Makefile.in (install-driver): Guard extra installs with special
24735 names properly.
24736
24737 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
24738
24739 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24740 Document vec_vgbbd.
24741
24742 2014-04-01 Richard Henderson <rth@redhat.com>
24743
24744 PR target/60704
24745 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24746 alternative enabled before register allocation.
24747
24748 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
24749
24750 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24751 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24752 typo.
24753 (nios2_large_got_address): Remove unneeded 'sym' parameter.
24754 (nios2_got_address): Update nios2_large_got_address call site.
24755 (nios2_delegitimize_address): New function.
24756 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24757 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24758 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24759
24760 2014-04-01 Martin Husemann <martin@duskware.de>
24761
24762 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24763 for -mabi=32.
24764
24765 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
24766
24767 PR rtl-optimization/60604
24768 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24769 check from register_operand.
24770 (register_operand): Redefine in terms of general_operand.
24771 (nonmemory_operand): Use register_operand for the non-constant cases.
24772
24773 2014-04-01 Richard Biener <rguenther@suse.de>
24774
24775 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24776
24777 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
24778
24779 * doc/invoke.texi (mapp-regs): Clarify.
24780
24781 2014-03-31 Ulrich Drepper <drepper@gmail.com>
24782
24783 * config/i386/avx512fintrin.h (__v32hi): Define type.
24784 (__v64qi): Likewise.
24785 (_mm512_set1_epi8): Define.
24786 (_mm512_set1_epi16): Define.
24787 (_mm512_set4_epi32): Define.
24788 (_mm512_set4_epi64): Define.
24789 (_mm512_set4_pd): Define.
24790 (_mm512_set4_ps): Define.
24791 (_mm512_setr4_epi64): Define.
24792 (_mm512_setr4_epi32): Define.
24793 (_mm512_setr4_pd): Define.
24794 (_mm512_setr4_ps): Define.
24795 (_mm512_setzero_epi32): Define.
24796
24797 2014-03-31 Martin Jambor <mjambor@suse.cz>
24798
24799 PR middle-end/60647
24800 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24801 callsite_arguments_match_p. Updated all callers. Also check types of
24802 corresponding formal parameters and actual arguments.
24803 (not_all_callers_have_enough_arguments_p) Renamed to
24804 some_callers_have_mismatched_arguments_p.
24805
24806 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
24807
24808 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24809
24810 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
24811
24812 PR target/60034
24813 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24814 section anchor.
24815
24816 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
24817
24818 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24819 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24820 Split out
24821 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24822 Use FMAMODE_NOVF512 mode iterator.
24823 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24824 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24825 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24826 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24827 Split out
24828 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24829 Use VF_128_256 mode iterator.
24830 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24831 Ditto.
24832
24833 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24834
24835 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24836 static chain if needed.
24837
24838 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24839
24840 PR target/60697
24841 * lra-constraints.c (index_part_to_reg): New.
24842 (process_address): Use it.
24843
24844 2014-03-27 Jeff Law <law@redhat.com>
24845 Jakub Jelinek <jakub@redhat.com>
24846
24847 PR target/60648
24848 * expr.c (do_tablejump): Use simplify_gen_binary rather than
24849 gen_rtx_{PLUS,MULT} to build up the address expression.
24850
24851 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24852 creating non-canonical RTL.
24853
24854 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24855
24856 PR ipa/60243
24857 * ipa-inline.c (want_inline_small_function_p): Short circuit large
24858 functions; reorganize to make cheap checks first.
24859 (inline_small_functions): Do not estimate growth when dumping;
24860 it is expensive.
24861 * ipa-inline.h (inline_summary): Add min_size.
24862 (growth_likely_positive): New function.
24863 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24864 (set_cond_stmt_execution_predicate): Cleanup.
24865 (estimate_edge_size_and_time): Compute min_size.
24866 (estimate_calls_size_and_time): Likewise.
24867 (estimate_node_size_and_time): Likewise.
24868 (inline_update_overall_summary): Update min_size.
24869 (do_estimate_edge_time): Likewise.
24870 (do_estimate_edge_size): Update.
24871 (do_estimate_edge_hints): Update.
24872 (growth_likely_positive): New function.
24873
24874 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24875
24876 PR target/60693
24877 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24878 also if addr has VOIDmode.
24879
24880 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24881
24882 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24883 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24884 Declare extern.
24885 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24886 instructions as well as AdvancedSIMD loads.
24887
24888 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24889
24890 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24891 Use crypto_aese type.
24892 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24893 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24894 crypto_aese, crypto_aesmc. Move to types.md.
24895 * config/arm/types.md (crypto_aes): Split into crypto_aese,
24896 crypto_aesmc.
24897 * config/arm/iterators.md (crypto_type): Likewise.
24898
24899 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24900
24901 * cgraph.c: Include expr.h and tree-dfa.h.
24902 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24903 remove LHS.
24904
24905 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24906
24907 PR target/60675
24908 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24909 regs from checking multi-reg pseudos.
24910
24911 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24912
24913 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24914
24915 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24916
24917 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24918 if it would clobber the stack pointer, even temporarily.
24919
24920 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
24921
24922 * mode-switching.c: Make small adjustments to the top comment.
24923
24924 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
24925
24926 * config/rs6000/constraints.md (wD constraint): New constraint to
24927 match the constant integer to get the top DImode/DFmode out of a
24928 vector in a VSX register.
24929
24930 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
24931 match the constant integer to get the top DImode/DFmode out of a
24932 vector in a VSX register.
24933
24934 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
24935 for ISA 2.07.
24936
24937 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24938 vbpermq builtins.
24939
24940 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24941 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
24942
24943 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
24944 Optimize vec_extract of 64-bit values, where the value being
24945 extracted is in the top word, where we can use scalar
24946 instructions. Add direct move and store support. Combine the big
24947 endian/little endian vector select load support into a single insn.
24948 (vsx_extract_<mode>_internal1): Likewise.
24949 (vsx_extract_<mode>_internal2): Likewise.
24950 (vsx_extract_<mode>_load): Likewise.
24951 (vsx_extract_<mode>_store): Likewise.
24952 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24953 combined into vsx_extract_<mode>_load.
24954 (vsx_extract_<mode>_one_le): Likewise.
24955
24956 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24957 define the top 64-bit vector element.
24958
24959 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24960 constraint.
24961
24962 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24963 Document vec_vbpermq builtin.
24964
24965 PR target/60672
24966 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24967 enable use of xxsldwi and xxpermdi builtin functions.
24968 (vec_xxpermdi): Likewise.
24969
24970 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24971 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24972
24973 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24974
24975 PR rtl-optimization/60650
24976 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24977 first_p. Use it.
24978 (find_spills_for): New.
24979 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24980 Spill all pseudos on the second iteration.
24981
24982 2014-03-27 Marek Polacek <polacek@redhat.com>
24983
24984 PR c/50347
24985 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24986 types.
24987
24988 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24989
24990 * config/s390/s390.c (s390_can_use_return_insn): Check for
24991 call-saved FPRs on 31 bit.
24992
24993 2014-03-27 Jakub Jelinek <jakub@redhat.com>
24994
24995 PR middle-end/60682
24996 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
24997 if they need regimplification, just drop them instead of
24998 calling gimple_regimplify_operands on them.
24999
25000 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25001
25002 PR target/60580
25003 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25004 (aarch64_frame_pointer_required): Adjust logic.
25005 (aarch64_can_eliminate): Adjust logic.
25006 (aarch64_override_options_after_change): Adjust logic.
25007
25008 2014-03-27 Dehao Chen <dehao@google.com>
25009
25010 * ipa-inline.c (early_inliner): Update node's inline info.
25011
25012 2014-03-26 Dehao Chen <dehao@google.com>
25013
25014 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25015 compiler inserted conditional jumps for NAN float check.
25016
25017 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25018
25019 * ubsan.h (ubsan_create_data): Change second argument's type
25020 to const location_t *.
25021 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25022 _("<unknown>").
25023 (ubsan_create_data): Change second argument to const location_t *PLOC.
25024 Create Loc field whenever PLOC is non-NULL.
25025 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25026 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25027 callers.
25028
25029 PR other/59545
25030 * real.c (real_to_integer2): Change type of low to UHWI.
25031
25032 2014-03-26 Tobias Burnus <burnus@net-b.de>
25033
25034 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25035 (CILK_SELF_SPECS): New define.
25036 (driver_self_specs): Use it.
25037
25038 2014-03-26 Richard Biener <rguenther@suse.de>
25039
25040 * tree-pretty-print.c (percent_K_format): Implement special
25041 case for LTO and its stripped down BLOCK tree.
25042
25043 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25044
25045 PR sanitizer/60636
25046 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25047
25048 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25049 one range is range_int_cst_p, but not both, at least optimize
25050 addition/subtraction of 0 and multiplication by 0 or 1.
25051 * gimple-fold.c (gimple_fold_call): Fold
25052 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25053 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25054 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25055
25056 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25057
25058 PR rtl-optimization/60452
25059 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25060 <case REG>: Return 1 for invalid offsets from the frame pointer.
25061
25062 2014-03-26 Marek Polacek <polacek@redhat.com>
25063
25064 PR c/37428
25065 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25066 a structure/union.
25067
25068 2014-03-26 Marek Polacek <polacek@redhat.com>
25069
25070 PR c/39525
25071 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25072 field members.
25073
25074 2014-03-26 Marek Polacek <polacek@redhat.com>
25075
25076 PR other/59545
25077 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25078 multiplication in unsigned type.
25079
25080 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25081
25082 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25083
25084 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25085
25086 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25087
25088 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25089
25090 PR ipa/60315
25091 * cif-code.def (UNREACHABLE) New code.
25092 * ipa-inline.c (inline_small_functions): Skip edges to
25093 __builtlin_unreachable.
25094 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25095 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25096 predicate to __bulitin_unreachable.
25097 (set_cond_stmt_execution_predicate): Fix issue when
25098 invert_tree_comparison returns ERROR_MARK.
25099 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25100 propagate to inline clones.
25101 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25102 to unreachable.
25103 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25104 * cgraphclones.c (cgraph_clone_node): If call destination is already
25105 ureachable, do not redirect it back.
25106 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25107 unreachable.
25108
25109 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25110
25111 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25112 Do not modify inline clones.
25113
25114 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25115
25116 * config/i386/i386.md (general_sext_operand): New mode attr.
25117 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25118 don't generate (sign_extend (const_int)).
25119 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25120 operands[2]. Use We constraint instead of <i> and
25121 <general_sext_operand> predicate instead of <general_operand>.
25122 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25123 * config/i386/constraints.md (We): New constraint.
25124 * config/i386/predicates.md (x86_64_sext_operand,
25125 sext_operand): New predicates.
25126
25127 2014-03-25 Martin Jambor <mjambor@suse.cz>
25128
25129 PR ipa/60600
25130 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25131 inconsistent devirtualizations to __builtin_unreachable.
25132
25133 2014-03-25 Marek Polacek <polacek@redhat.com>
25134
25135 PR c/35449
25136 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25137
25138 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25139
25140 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25141 order of elements for big-endian.
25142
25143 2014-03-25 Richard Biener <rguenther@suse.de>
25144
25145 PR middle-end/60635
25146 * gimplify-me.c (gimple_regimplify_operands): Update the
25147 re-gimplifed stmt.
25148
25149 2014-03-25 Martin Jambor <mjambor@suse.cz>
25150
25151 PR ipa/59176
25152 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25153 (lto_output_varpool_node): Likewise.
25154 (input_overwrite_node): Likewise.
25155 (input_varpool_node): Likewise.
25156
25157 2014-03-25 Richard Biener <rguenther@suse.de>
25158
25159 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25160 (run_gcc): Likewise.
25161
25162 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25163
25164 * combine.c (simplify_compare_const): Add MODE argument.
25165 Handle mode_width 0 as very large mode_width.
25166 (try_combine, simplify_comparison): Adjust callers.
25167
25168 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25169 type to avoid signed integer overflow.
25170 * explow.c (plus_constant): Likewise.
25171
25172 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25173
25174 * doc/generic.texi: Correct typos.
25175
25176 2014-03-24 Tobias Burnus <burnus@net-b.de>
25177
25178 * doc/invoke.texi (-flto): Expand section about
25179 using static libraries with LTO.
25180
25181 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25182
25183 PR rtl-optimization/60501
25184 * optabs.def (addptr3_optab): New optab.
25185 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25186 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25187 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25188
25189 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25190
25191 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25192
25193 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25194
25195 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25196 _mm512_set1_pd.
25197
25198 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25199 (_mm256_undefined_ps): Define.
25200 (_mm256_undefined_pd): Define.
25201 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25202 (_mm_undefined_pd): Define.
25203 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25204 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25205 (_mm512_undefined_ps): Define.
25206 (_mm512_undefined_pd): Define.
25207 Use _mm*_undefined_*.
25208 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25209
25210 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25211
25212 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25213 (lshr_simd): DI mode added.
25214 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25215 (aarch64_ushr_simddi): Likewise.
25216 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25217 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25218 (vshrd_n_u64): Likewise.
25219
25220 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25221
25222 * Makefile.in (s-macro_list): Depend on cc1.
25223
25224 2014-03-23 Teresa Johnson <tejohnson@google.com>
25225
25226 * ipa-utils.c (ipa_print_order): Use specified dump file.
25227
25228 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25229
25230 PR rtl-optimization/60601
25231 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25232
25233 * gcc.c (eval_spec_function): Initialize save_growing_value.
25234
25235 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25236
25237 PR sanitizer/60613
25238 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25239 code == MINUS_EXPR, never swap op0 with op1.
25240
25241 * toplev.c (init_local_tick): Avoid signed integer multiplication
25242 overflow.
25243 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25244 shift by first operand's bitsize.
25245
25246 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25247
25248 PR target/60610
25249 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25250 redefine to 1 or 0.
25251 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25252 TARGET_ISA_64BIT_P(x).
25253
25254 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25255
25256 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25257 pattern for vector nor instead of subtract from splat(-1).
25258 (altivec_expand_vec_perm_const_le): Likewise.
25259
25260 2014-03-21 Richard Henderson <rth@twiddle.net>
25261
25262 PR target/60598
25263 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25264 related insns after epilogue_completed.
25265
25266 2014-03-21 Martin Jambor <mjambor@suse.cz>
25267
25268 PR ipa/59176
25269 * cgraph.h (symtab_node): New flag body_removed.
25270 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25271 when removing bodies.
25272 * symtab.c (dump_symtab_base): Dump body_removed flag.
25273 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25274 had their bodies removed.
25275
25276 2014-03-21 Martin Jambor <mjambor@suse.cz>
25277
25278 PR ipa/60419
25279 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25280 in the border.
25281
25282 2014-03-21 Richard Biener <rguenther@suse.de>
25283
25284 PR tree-optimization/60577
25285 * tree-core.h (struct tree_base): Document nothrow_flag use
25286 in DECL_NONALIASED.
25287 * tree.h (DECL_NONALIASED): New.
25288 (may_be_aliased): Adjust.
25289 * coverage.c (build_var): Set DECL_NONALIASED.
25290
25291 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25292
25293 * expr.c (expand_expr_real_1): Remove outdated comment.
25294
25295 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25296
25297 PR middle-end/60597
25298 * ira.c (adjust_cleared_regs): Call copy_rtx on
25299 *reg_equiv[REGNO (loc)].src_p before passing it to
25300 simplify_replace_fn_rtx.
25301
25302 PR target/60568
25303 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25304 into CONST, put pic register as first operand of PLUS. Use
25305 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25306
25307 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25308
25309 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25310
25311 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25312
25313 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25314 around for store forwarding issue in the FPU on the UT699.
25315 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25316 loads and operations if -mfix-ut699 is specified.
25317 (divtf3_hq): Tweak attribute.
25318 (sqrttf2_hq): Likewise.
25319
25320 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25321
25322 * calls.c (store_one_arg): Remove incorrect const qualification on the
25323 type of the temporary.
25324 * cfgexpand.c (expand_return): Likewise.
25325 * expr.c (expand_constructor): Likewise.
25326 (expand_expr_real_1): Likewise.
25327
25328 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25329
25330 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25331 of parts.
25332
25333 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25334
25335 PR target/60039
25336 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25337
25338 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25339
25340 * config/arm/aarch-common-protos.h
25341 (alu_cost_table): Fix spelling of "extend".
25342 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25343
25344 2014-03-19 Richard Biener <rguenther@suse.de>
25345
25346 PR middle-end/60553
25347 * tree-core.h (tree_type_common): Re-order pointer members
25348 to reduce recursion depth during GC walks.
25349
25350 2014-03-19 Marek Polacek <polacek@redhat.com>
25351
25352 PR sanitizer/60569
25353 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25354 before accessing it.
25355
25356 2014-03-19 Richard Biener <rguenther@suse.de>
25357
25358 PR lto/59543
25359 * lto-streamer-in.c (input_function): In WPA stage do not drop
25360 debug stmts.
25361
25362 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25363
25364 PR tree-optimization/60559
25365 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25366 with build_zero_cst assignment.
25367
25368 2014-03-18 Kai Tietz <ktietz@redhat.com>
25369
25370 PR rtl-optimization/56356
25371 * sdbout.c (sdbout_parms): Verify that parms'
25372 incoming argument is valid.
25373 (sdbout_reg_parms): Likewise.
25374
25375 2014-03-18 Richard Henderson <rth@redhat.com>
25376
25377 PR target/60562
25378 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25379 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25380 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25381
25382 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25383
25384 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25385 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25386 Italicize plugin event names in description. Explain that
25387 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25388 Remind that no GCC functions should be called after PLUGIN_FINISH.
25389 Explain what pragmas with expansion are.
25390
25391 2014-03-18 Martin Liska <mliska@suse.cz>
25392
25393 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25394 gimple call statement is update.
25395 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25396 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25397
25398 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25399
25400 PR sanitizer/60557
25401 * ubsan.c (ubsan_instrument_unreachable): Call
25402 initialize_sanitizer_builtins.
25403 (ubsan_pass): Likewise.
25404
25405 PR sanitizer/60535
25406 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25407 varpool_finalize_decl instead of rest_of_decl_compilation.
25408
25409 2014-03-18 Richard Biener <rguenther@suse.de>
25410
25411 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25412 by using bitmap_and_compl instead of bitmap_and_compl_into.
25413 (df_rd_transfer_function): Likewise.
25414
25415 2014-03-18 Richard Biener <rguenther@suse.de>
25416
25417 * doc/lto.texi (fresolution): Fix typo.
25418
25419 2014-03-18 Richard Biener <rguenther@suse.de>
25420
25421 * doc/invoke.texi (flto): Update for changes in 4.9.
25422
25423 2014-03-18 Richard Biener <rguenther@suse.de>
25424
25425 * doc/loop.texi: Remove section on the removed lambda framework.
25426 Update loop docs with recent changes in preserving loop structure.
25427
25428 2014-03-18 Richard Biener <rguenther@suse.de>
25429
25430 * doc/lto.texi (-fresolution): Document.
25431
25432 2014-03-18 Richard Biener <rguenther@suse.de>
25433
25434 * doc/contrib.texi: Adjust my name.
25435
25436 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25437
25438 PR ipa/58721
25439 * internal-fn.c: Include diagnostic-core.h.
25440 (expand_BUILTIN_EXPECT): New function.
25441 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25442 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25443 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25444 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25445 IFN_BUILTIN_EXPECT.
25446 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25447 Revert 3 argument __builtin_expect code.
25448 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25449 * gimple-fold.c (gimple_fold_call): Likewise.
25450 * tree.h (fold_builtin_expect): New prototype.
25451 * builtins.c (build_builtin_expect_predicate): Add predictor
25452 argument, if non-NULL, create 3 argument __builtin_expect.
25453 (fold_builtin_expect): No longer static. Add ARG2 argument,
25454 pass it through to build_builtin_expect_predicate.
25455 (fold_builtin_2): Adjust caller.
25456 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25457 * internal-fn.def (BUILTIN_EXPECT): New.
25458
25459 2014-03-18 Tobias Burnus <burnus@net-b.de>
25460
25461 PR ipa/58721
25462 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25463 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25464 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25465
25466 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25467
25468 PR ipa/58721
25469 * predict.c (combine_predictions_for_bb): Fix up formatting.
25470 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25471 fill what it points to if non-NULL.
25472 (tree_predict_by_opcode): Adjust caller, use the predictor.
25473 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25474
25475 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25476
25477 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25478 proper constant for the store mode.
25479
25480 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25481
25482 * symtab.c (change_decl_assembler_name): Fix transparent alias
25483 chain construction.
25484
25485 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25486
25487 * config/aarch64/aarch64.c: Correct the comments about the
25488 aarch64 stack layout.
25489
25490 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25491
25492 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25493 check for GF_OMP_FOR_KIND_FOR.
25494
25495 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25496
25497 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25498 ymm and zmm register names.
25499
25500 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25501
25502 PR target/60516
25503 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25504 note creation for the 2010-08-31 changes.
25505
25506 2014-03-17 Marek Polacek <polacek@redhat.com>
25507
25508 PR middle-end/60534
25509 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25510 as -fno-tree-loop-vectorize.
25511 (expand_omp_simd): Likewise.
25512
25513 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25514
25515 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25516 (eligible_for_call_delay): New prototype.
25517 * config/sparc/sparc.c (tls_call_delay): Rename into...
25518 (eligible_for_call_delay): ...this. Return false if the instruction
25519 cannot be put in the delay slot of a branch.
25520 (eligible_for_restore_insn): Simplify.
25521 (eligible_for_return_delay): Return false if the instruction cannot be
25522 put in the delay slot of a branch and simplify.
25523 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25524 put in the delay slot of a branch.
25525 * config/sparc/sparc.md (fix_ut699): New attribute.
25526 (tls_call_delay): Delete.
25527 (in_call_delay): Reimplement.
25528 (eligible_for_sibcall_delay): Rename into...
25529 (in_sibcall_delay): ...this.
25530 (eligible_for_return_delay): Rename into...
25531 (in_return_delay): ...this.
25532 (in_branch_delay): Reimplement.
25533 (in_uncond_branch_delay): Delete.
25534 (in_annul_branch_delay): Delete.
25535
25536 2014-03-14 Richard Henderson <rth@redhat.com>
25537
25538 PR target/60525
25539 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25540 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25541 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25542 (floathi splitters): Remove.
25543 (float<SWI48x>xf2): New pattern.
25544 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25545 code that tried to handle DImode for 32-bit, but which was excluded
25546 by the pattern's condition. Drop allocation of stack temporary.
25547 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25548 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25549 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25550 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25551 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25552 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25553 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25554 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25555 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25556 (*float<SWI48x><X87MODEF>2_i387): Remove.
25557 (all float _with_temp splitters): Remove.
25558 (*float<SWI48x><MODEF>2_i387): New pattern.
25559 (*float<SWI48><MODEF>2_sse): New pattern.
25560 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25561 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25562
25563 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25564 Marek Polacek <polacek@redhat.com>
25565
25566 PR middle-end/60484
25567 * common.opt (dump_base_name_prefixed): New Variable.
25568 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25569 if x_dump_base_name_prefixed is already set, set it at the end.
25570
25571 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25572
25573 PR rtl-optimization/60508
25574 * lra-constraints.c (get_reload_reg): Add new parameter
25575 in_subreg_p.
25576 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25577 Pass the new parameter values.
25578
25579 2014-03-14 Richard Biener <rguenther@suse.de>
25580
25581 * common.opt: Revert unintented changes from r205065.
25582 * opts.c: Likewise.
25583
25584 2014-03-14 Richard Biener <rguenther@suse.de>
25585
25586 PR middle-end/60518
25587 * cfghooks.c (split_block): Properly adjust all loops the
25588 block was a latch of.
25589
25590 2014-03-14 Martin Jambor <mjambor@suse.cz>
25591
25592 PR lto/60461
25593 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25594 and simplify it.
25595
25596 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
25597
25598 PR target/59396
25599 * config/avr/avr.c (avr_set_current_function): Pass function name
25600 through default_strip_name_encoding before sanity checking instead
25601 of skipping the first char of the assembler name.
25602
25603 2014-03-13 Richard Henderson <rth@redhat.com>
25604
25605 PR debug/60438
25606 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25607 (ix86_force_to_memory, ix86_free_from_memory): Remove.
25608 * config/i386/i386-protos.h: Likewise.
25609 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25610 in the expander instead of a splitter.
25611 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25612 any possibility of requiring a memory.
25613 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25614 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25615 (fp branch splitters): Update for ix86_split_fp_branch.
25616 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25617 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25618 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25619 (*fop_<MODEF>_2_i387): Remove f/r alternative.
25620 (*fop_<MODEF>_3_i387): Likewise.
25621 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25622 (splitters for the fop_* register patterns): Remove.
25623 (fscalexf4_i387): Rename from *fscalexf4_i387.
25624 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25625
25626 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25627
25628 PR tree-optimization/59779
25629 * tree-dfa.c (get_ref_base_and_extent): Use double_int
25630 type for bitsize and maxsize instead of HOST_WIDE_INT.
25631
25632 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
25633
25634 PR rtl-optimization/57320
25635 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25636 the CFG after thread_prologue_and_epilogue_insns.
25637
25638 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
25639
25640 PR rtl-optimization/57189
25641 * lra-constraints.c (process_alt_operands): Disfavor spilling
25642 vector pseudos.
25643
25644 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
25645
25646 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25647
25648 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25649
25650 PR tree-optimization/59025
25651 PR middle-end/60418
25652 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25653 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25654
25655 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
25656
25657 PR target/60486
25658 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25659 calls of avr_out_plus_1.
25660
25661 2014-03-13 Bin Cheng <bin.cheng@arm.com>
25662
25663 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25664 BB's single pred and update the father loop's latch info later.
25665
25666 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25667
25668 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25669 (VEC_M): Likewise.
25670 (VEC_N): Likewise.
25671 (VEC_R): Likewise.
25672 (VEC_base): Likewise.
25673 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25674 registers, we need to swap double words in little endian mode.
25675
25676 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25677 to be a container mode for 128-bit integer operations added in ISA
25678 2.07. Unlike TImode and PTImode, the preferred register set is
25679 the Altivec/VMX registers for the 128-bit operations.
25680
25681 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25682 declarations.
25683 (rs6000_split_128bit_ok_p): Likewise.
25684
25685 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25686 macros for creating ISA 2.07 normal and overloaded builtin
25687 functions with 3 arguments.
25688 (BU_P8V_OVERLOAD_3): Likewise.
25689 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25690 for use as overloaded functions.
25691 (VPERM_1TI_UNS): Likewise.
25692 (VSEL_1TI): Likewise.
25693 (VSEL_1TI_UNS): Likewise.
25694 (ST_INTERNAL_1ti): Likewise.
25695 (LD_INTERNAL_1ti): Likewise.
25696 (XXSEL_1TI): Likewise.
25697 (XXSEL_1TI_UNS): Likewise.
25698 (VPERM_1TI): Likewise.
25699 (VPERM_1TI_UNS): Likewise.
25700 (XXPERMDI_1TI): Likewise.
25701 (SET_1TI): Likewise.
25702 (LXVD2X_V1TI): Likewise.
25703 (STXVD2X_V1TI): Likewise.
25704 (VEC_INIT_V1TI): Likewise.
25705 (VEC_SET_V1TI): Likewise.
25706 (VEC_EXT_V1TI): Likewise.
25707 (EQV_V1TI): Likewise.
25708 (NAND_V1TI): Likewise.
25709 (ORC_V1TI): Likewise.
25710 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25711 added in ISA 2.07. Add both normal 'altivec' builtins, and the
25712 overloaded builtin.
25713 (VADDUQM): Likewise.
25714 (VSUBCUQ): Likewise.
25715 (VADDEUQM): Likewise.
25716 (VADDECUQ): Likewise.
25717 (VSUBEUQM): Likewise.
25718 (VSUBECUQ): Likewise.
25719
25720 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25721 __int128_t and __uint128_t types.
25722 (__uint128_type): Likewise.
25723 (altivec_categorize_keyword): Add support for vector __int128_t,
25724 vector __uint128_t, vector __int128, and vector unsigned __int128
25725 as a container type for TImode operations that need to be done in
25726 VSX/Altivec registers.
25727 (rs6000_macro_to_expand): Likewise.
25728 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25729 to support 128-bit integer instructions vaddcuq, vadduqm,
25730 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25731 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25732
25733 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25734 for V1TImode, and set up preferences to use VSX/Altivec registers.
25735 Setup VSX reload handlers.
25736 (rs6000_debug_reg_global): Likewise.
25737 (rs6000_init_hard_regno_mode_ok): Likewise.
25738 (rs6000_preferred_simd_mode): Likewise.
25739 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25740 (easy_altivec_constant): Likewise.
25741 (output_vec_const_move): Likewise.
25742 (rs6000_expand_vector_set): Convert V1TImode set and extract to
25743 simple move.
25744 (rs6000_expand_vector_extract): Likewise.
25745 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25746 addressing.
25747 (rs6000_const_vec): Add support for V1TImode.
25748 (rs6000_emit_le_vsx_load): Swap double words when loading or
25749 storing TImode/V1TImode.
25750 (rs6000_emit_le_vsx_store): Likewise.
25751 (rs6000_emit_le_vsx_move): Likewise.
25752 (rs6000_emit_move): Add support for V1TImode.
25753 (altivec_expand_ld_builtin): Likewise.
25754 (altivec_expand_st_builtin): Likewise.
25755 (altivec_expand_vec_init_builtin): Likewise.
25756 (altivec_expand_builtin): Likewise.
25757 (rs6000_init_builtins): Add support for V1TImode type. Add
25758 support for ISA 2.07 128-bit integer builtins. Define type names
25759 for the VSX/Altivec vector types.
25760 (altivec_init_builtins): Add support for overloaded vector
25761 functions with V1TImode type.
25762 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25763 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25764 external function.
25765 (rs6000_split_128bit_ok_p): Likewise.
25766 (rs6000_handle_altivec_attribute): Create V1TImode from vector
25767 __int128_t and vector __uint128_t.
25768
25769 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25770 and mode attributes.
25771 (VSX_M): Likewise.
25772 (VSX_M2): Likewise.
25773 (VSm): Likewise.
25774 (VSs): Likewise.
25775 (VSr): Likewise.
25776 (VSv): Likewise.
25777 (VS_scalar): Likewise.
25778 (VS_double): Likewise.
25779 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25780
25781 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25782 we support the ISA 2.07 128-bit integer arithmetic instructions.
25783 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25784 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25785 and TImode types for use with the builtin functions.
25786 (V1TI_type_node): Likewise.
25787 (unsigned_V1TI_type_node): Likewise.
25788 (intTI_type_internal_node): Likewise.
25789 (uintTI_type_internal_node): Likewise.
25790
25791 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25792 128-bit builtin functions.
25793 (UNSPEC_VADDEUQM): Likewise.
25794 (UNSPEC_VADDECUQ): Likewise.
25795 (UNSPEC_VSUBCUQ): Likewise.
25796 (UNSPEC_VSUBEUQM): Likewise.
25797 (UNSPEC_VSUBECUQ): Likewise.
25798 (VM): Add V1TImode to vector mode iterators.
25799 (VM2): Likewise.
25800 (VI_unit): Likewise.
25801 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25802 (altivec_vaddcuq): Likewise.
25803 (altivec_vsubuqm): Likewise.
25804 (altivec_vsubcuq): Likewise.
25805 (altivec_vaddeuqm): Likewise.
25806 (altivec_vaddecuq): Likewise.
25807 (altivec_vsubeuqm): Likewise.
25808 (altivec_vsubecuq): Likewise.
25809
25810 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25811 mode iterators.
25812 (BOOL_128): Likewise.
25813 (BOOL_REGS_OUTPUT): Likewise.
25814 (BOOL_REGS_OP1): Likewise.
25815 (BOOL_REGS_OP2): Likewise.
25816 (BOOL_REGS_UNARY): Likewise.
25817 (BOOL_REGS_AND_CR0): Likewise.
25818
25819 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25820 128-bit integer builtin support.
25821 (vec_vadduqm): Likewise.
25822 (vec_vaddecuq): Likewise.
25823 (vec_vaddeuqm): Likewise.
25824 (vec_vsubecuq): Likewise.
25825 (vec_vsubeuqm): Likewise.
25826 (vec_vsubcuq): Likewise.
25827 (vec_vsubuqm): Likewise.
25828
25829 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25830 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25831 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25832 128-bit integer add/subtract to ISA 2.07.
25833
25834 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
25835
25836 * config/arc/arc.c (arc_predicate_delay_insns):
25837 Fix third argument passed to conditionalize_nonjump.
25838
25839 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
25840
25841 * config/aarch64/aarch64-builtins.c
25842 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25843 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25844 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25845 instead of __builtin_lfloor.
25846 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25847
25848 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25849
25850 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25851 (tree_ssa_ifcombine_bb_1): New function.
25852 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
25853 is an empty forwarder block to then_bb or vice versa and then_bb
25854 and else_bb are effectively swapped.
25855
25856 2014-03-12 Christian Bruel <christian.bruel@st.com>
25857
25858 PR target/60264
25859 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25860 REG_CFA_DEF_CFA note.
25861 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25862 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25863
25864 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25865
25866 PR tree-optimization/60454
25867 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25868
25869 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25870
25871 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25872 Do not define target_cpu_default2 to generic.
25873 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25874 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25875 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25876
25877 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25878 Marc Glisse <marc.glisse@inria.fr>
25879
25880 PR tree-optimization/60502
25881 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25882 instead of build_low_bits_mask.
25883
25884 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25885
25886 PR middle-end/60482
25887 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25888 if there are multiple uses, but op doesn't live on E edge.
25889 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25890 clobber stmts before __builtin_unreachable.
25891
25892 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
25893
25894 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25895 hard_frame_pointer_rtx.
25896 * cse.c (cse_insn): Remove volatile check.
25897 * cselib.c (cselib_process_insn): Likewise.
25898 * dse.c (scan_insn): Likewise.
25899
25900 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25901
25902 * config/arc/arc.c (conditionalize_nonjump): New function,
25903 broken out of ...
25904 (arc_ifcvt): ... this.
25905 (arc_predicate_delay_insns): Use it.
25906
25907 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25908
25909 * config/arc/predicates.md (extend_operand): During/after reload,
25910 allow const_int_operand.
25911 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25912 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
25913 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25914 to "i".
25915 (umulsi3_highpart_i): Likewise.
25916
25917 2014-03-11 Richard Biener <rguenther@suse.de>
25918
25919 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25920 Add asserts to guard possible wrong-code bugs.
25921
25922 2014-03-11 Richard Biener <rguenther@suse.de>
25923
25924 PR tree-optimization/60429
25925 PR tree-optimization/60485
25926 * tree-ssa-structalias.c (set_union_with_increment): Properly
25927 take into account all fields that overlap the shifted vars.
25928 (do_sd_constraint): Likewise.
25929 (do_ds_constraint): Likewise.
25930 (get_constraint_for_ptr_offset): Likewise.
25931
25932 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
25933
25934 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
25935 (nios2_compute_frame_layout):
25936 Add calculation of cfun->machine->fp_save_offset.
25937 (nios2_expand_prologue): Correct setting of frame pointer register
25938 in prologue.
25939 (nios2_expand_epilogue): Update recovery of stack pointer from
25940 frame pointer accordingly.
25941 (nios2_initial_elimination_offset): Update calculation of offset
25942 for eliminating to HARD_FRAME_POINTER_REGNUM.
25943
25944 2014-03-10 Jakub Jelinek <jakub@redhat.com>
25945
25946 PR ipa/60457
25947 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25948 cgraph_get_create_node on VAR_DECLs.
25949
25950 2014-03-10 Richard Biener <rguenther@suse.de>
25951
25952 PR middle-end/60474
25953 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25954
25955 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25956
25957 * config/vms/vms.opt (vms_float_format): New variable.
25958
25959 2014-03-08 Tobias Burnus <burnus@net-b.de>
25960
25961 * doc/invoke.texi (-fcilkplus): Update implementation status.
25962
25963 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25964 Richard Biener <rguenther@suse.de>
25965
25966 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25967 consistently accross all TUs.
25968 (run_gcc): Enable -fshort-double automatically at link at link-time
25969 and disallow override.
25970
25971 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25972
25973 PR target/58271
25974 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25975 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25976 if they can't be used.
25977
25978 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25979
25980 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25981 for Solaris 11/x86 ld.
25982 * configure: Regenerate.
25983
25984 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25985
25986 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25987 (LIB_TLS_SPEC): Save as ld_tls_libs.
25988 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
25989 (HAVE_AS_IX86_TLSLDM): New test.
25990 * configure, config.in: Regenerate.
25991 * config/i386/i386.c (legitimize_tls_address): Fall back to
25992 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
25993 cannot support TLS_MODEL_LOCAL_DYNAMIC.
25994 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
25995 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
25996
25997 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
25998
25999 * common.opt (fira-loop-pressure): Mark as optimization.
26000
26001 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26002
26003 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26004 an OpenMP mappable type.
26005
26006 2014-03-06 Matthias Klose <doko@ubuntu.com>
26007
26008 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26009 MULTILIB_OSDIRNAMES is not defined.
26010
26011 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26012 Meador Inge <meadori@codesourcery.com>
26013
26014 PR target/58595
26015 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26016 (arm_legitimize_address): Call legitimize_tls_address for any
26017 arm_tls_referenced_p expression, handle constant addend. Call it
26018 before testing for !TARGET_ARM.
26019 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26020
26021 2014-03-06 Richard Biener <rguenther@suse.de>
26022
26023 PR middle-end/60445
26024 PR lto/60424
26025 PR lto/60427
26026 Revert
26027 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26028
26029 * tree-streamer.c (record_common_node): Assert we don't record
26030 nodes with type double.
26031 (preload_common_node): Skip type double, complex double and double
26032 pointer since it is now frontend dependent due to fshort-double option.
26033
26034 2014-03-06 Richard Biener <rguenther@suse.de>
26035
26036 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26037 or -fno-lto is specified and the linker has full plugin support.
26038 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26039 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26040 * lto-wrapper.c (merge_and_complain): Merge compile-time
26041 optimization levels.
26042 (run_gcc): And pass it through to the link options.
26043
26044 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26045
26046 PR debug/60381
26047 Revert:
26048 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26049 PR debug/59992
26050 * cselib.c (remove_useless_values): Skip to avoid quadratic
26051 behavior if the condition moved from...
26052 (cselib_process_insn): ... here holds.
26053
26054 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26055
26056 PR plugins/59335
26057 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26058 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26059
26060 PR plugins/59335
26061 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26062 (TM_H): Add x86-tune.def.
26063
26064 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26065
26066 * config/aarch64/aarch64.c (generic_tunings):
26067 Use cortexa57_extra_costs.
26068
26069 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26070
26071 PR lto/60404
26072 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26073 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26074 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26075 cost for in_lto_p.
26076
26077 2014-03-04 Heiher <r@hev.cc>
26078
26079 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26080 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26081
26082 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26083
26084 * config/i386/predicates.md (const2356_operand): Change to ...
26085 (const2367_operand): ... this.
26086 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26087 const2367_operand.
26088 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26089 (*avx512pf_scatterpf<mode>sf): Ditto.
26090 (avx512pf_scatterpf<mode>df): Ditto.
26091 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26092 (*avx512pf_scatterpf<mode>df): Ditto.
26093 * config/i386/i386.c (ix86_expand_builtin): Update
26094 incorrect hint operand error message.
26095
26096 2014-03-04 Richard Biener <rguenther@suse.de>
26097
26098 * lto-section-in.c (lto_get_section_data): Fix const cast.
26099
26100 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26101
26102 * tree-streamer.c (record_common_node): Assert we don't record
26103 nodes with type double.
26104 (preload_common_node): Skip type double, complex double and double
26105 pointer since it is now frontend dependent due to fshort-double option.
26106
26107 2014-03-04 Richard Biener <rguenther@suse.de>
26108
26109 PR lto/60405
26110 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26111 (lto_input_toplevel_asms): Likewise.
26112 * lto-section-in.c (lto_get_section_data): Instead do it here
26113 for every section.
26114
26115 2014-03-04 Richard Biener <rguenther@suse.de>
26116
26117 PR tree-optimization/60382
26118 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26119 dead PHIs a reduction.
26120
26121 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26122
26123 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26124 hint value.
26125 (_mm_prefetch): Move out of GCC target("sse") pragma.
26126 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26127 GCC target("prfchw") pragma.
26128 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26129 for locality <= 2.
26130 * config/i386/i386.c (ix86_option_override_internal): Enable
26131 -mprfchw with -mprefetchwt1.
26132
26133 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26134
26135 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26136 Mark as varying.
26137
26138 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26139
26140 * opts.h (CL_PCH_IGNORE): Define.
26141 * targhooks.c (option_affects_pch_p):
26142 Return false for options that have CL_PCH_IGNORE set.
26143 * opt-functions.awk: Process PchIgnore.
26144 * doc/options.texi: Document PchIgnore.
26145
26146 * config/arc/arc.opt (misize): Add PchIgnore property.
26147
26148 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26149
26150 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26151 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26152 constraint on constants to permit them being loaded into
26153 GENERAL_REGS or BASE_REGS.
26154
26155 2014-03-03 Nick Clifton <nickc@redhat.com>
26156
26157 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26158 anti-cacnonical alternatives.
26159 (negandhi3_real): New pattern.
26160 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26161
26162 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26163
26164 * config/avr/avr-mcus.def: Remove atxmega16x1.
26165 * config/avr/avr-tables.opt: Regenerate.
26166 * config/avr/t-multilib: Regenerate.
26167 * doc/avr-mmcu.texi: Regenerate.
26168
26169 2014-03-03 Tobias Grosser <tobias@grosser.es>
26170 Mircea Namolaru <mircea.namolaru@inria.fr>
26171
26172 PR tree-optimization/58028
26173 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26174 scalar dimensions.
26175
26176 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26177
26178 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26179 not handled by recognizers.
26180
26181 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26182
26183 PR middle-end/60175
26184 * function.c (expand_function_end): Don't emit
26185 clobber_return_register sequence if clobber_after is a BARRIER.
26186 * cfgexpand.c (construct_exit_block): Append instructions before
26187 return_label to prev_bb.
26188
26189 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26190
26191 * config/rs6000/constraints.md: Document reserved use of "wc".
26192
26193 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26194
26195 PR ipa/60150
26196 * ipa.c (function_and_variable_visibility): When dissolving comdat
26197 group, also set all symbols to local.
26198
26199 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26200
26201 PR ipa/60306
26202
26203 Revert:
26204 2013-12-14 Jan Hubicka <jh@suse.cz>
26205 PR middle-end/58477
26206 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26207
26208 2014-03-02 Jon Beniston <jon@beniston.com>
26209
26210 PR bootstrap/48230
26211 PR bootstrap/50927
26212 PR bootstrap/52466
26213 PR target/46898
26214 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26215 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26216 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26217 (simple_return, *simple_return): New patterns
26218 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26219 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26220
26221 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26222
26223 * dwarf2out.c (gen_subprogram_die): Tidy.
26224
26225 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26226
26227 PR target/60071
26228 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26229 (*mov_t_msb_neg_negc): ... this new insn.
26230
26231 2014-02-28 Jason Merrill <jason@redhat.com>
26232
26233 PR c++/58678
26234 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26235 function.
26236
26237 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26238
26239 PR c++/60314
26240 * dwarf2out.c (decltype_auto_die): New static.
26241 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26242 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26243 (is_cxx_auto): Likewise.
26244
26245 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26246
26247 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26248 we are not using general regs only.
26249
26250 2014-02-28 Richard Biener <rguenther@suse.de>
26251
26252 PR target/60280
26253 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26254 previous fix and only allow to remove trivial pre-headers
26255 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26256 (remove_forwarder_block): Properly update the latch of a loop.
26257
26258 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26259
26260 PR debug/59992
26261 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26262 (cselib_preserved_hash_table): New.
26263 (preserve_constants_and_equivs): Move preserved vals to it.
26264 (cselib_find_slot): Look it up first.
26265 (cselib_init): Initialize it.
26266 (cselib_finish): Release it.
26267 (dump_cselib_table): Dump it.
26268
26269 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26270
26271 PR debug/59992
26272 * cselib.c (remove_useless_values): Skip to avoid quadratic
26273 behavior if the condition moved from...
26274 (cselib_process_insn): ... here holds.
26275
26276 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26277
26278 PR debug/57232
26279 * var-tracking.c (vt_initialize): Apply the same condition to
26280 preserve the CFA base value.
26281
26282 2014-02-28 Joey Ye <joey.ye@arm.com>
26283
26284 PR target/PR60169
26285 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26286 if reload in progress or completed.
26287
26288 2014-02-28 Tobias Burnus <burnus@net-b.de>
26289
26290 PR middle-end/60147
26291 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26292 NAMELIST_DECL.
26293
26294 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26295
26296 * doc/tm.texi.in (Condition Code Status): Update documention for
26297 relative locations of cc0-setter and cc0-user.
26298
26299 2014-02-27 Jeff Law <law@redhat.com>
26300
26301 PR rtl-optimization/52714
26302 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26303 into two independent simple sets, if I3 is a jump, ensure the
26304 pattern we place into I3 is a (set (pc) ...).
26305
26306 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26307 Jeff Law <law@redhat.com>
26308
26309 PR rtl-optimization/49847
26310 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26311 are in different blocks.
26312 * doc/tm.texi (Condition Code Status): Update documention for
26313 relative locations of cc0-setter and cc0-user.
26314
26315 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26316
26317 PR target/59222
26318 * lra.c (lra_emit_add): Check SUBREG too.
26319
26320 2014-02-27 Andreas Schwab <schwab@suse.de>
26321
26322 * config/m68k/m68k.c (m68k_option_override): Disable
26323 -flive-range-shrinkage for classic m68k.
26324 (m68k_override_options_after_change): Likewise.
26325
26326 2014-02-27 Marek Polacek <polacek@redhat.com>
26327
26328 PR middle-end/59223
26329 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26330 -Wmaybe-uninitialized.
26331
26332 2014-02-27 Alan Modra <amodra@gmail.com>
26333
26334 PR target/57936
26335 * reload1.c (emit_input_reload_insns): When reload_override_in,
26336 set old to rl->in_reg when rl->in_reg is a subreg.
26337
26338 2014-02-26 Richard Biener <rguenther@suse.de>
26339
26340 PR bootstrap/60343
26341 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26342
26343 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26344
26345 * common/config/i386/predicates.md (const1256_operand): Remove.
26346 (const2356_operand): New.
26347 (const_1_to_2_operand): Remove.
26348 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26349 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26350 (*avx512pf_gatherpf<mode>sf): Ditto.
26351 (avx512pf_gatherpf<mode>df): Ditto.
26352 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26353 (*avx512pf_gatherpf<mode>df): Ditto.
26354 (avx512pf_scatterpf<mode>sf): Ditto.
26355 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26356 (*avx512pf_scatterpf<mode>sf): Ditto.
26357 (avx512pf_scatterpf<mode>df): Ditto.
26358 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26359 (*avx512pf_scatterpf<mode>df): Ditto.
26360 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26361
26362 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26363
26364 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26365 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26366 (_mm512_mask_testn_epi64_mask): Move to ...
26367 * config/i386/avx512cdintrin.h: Here.
26368 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26369 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26370 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26371 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26372 TARGET_AVX512F from TARGET_AVX512CD.
26373
26374 2014-02-26 Richard Biener <rguenther@suse.de>
26375
26376 PR ipa/60327
26377 * ipa.c (walk_polymorphic_call_targets): Properly guard
26378 call to inline_update_overall_summary.
26379
26380 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26381
26382 PR target/60280
26383 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26384 and latches only if requested. Fix latch if it is removed.
26385 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26386 LOOPS_HAVE_PREHEADERS.
26387
26388 2014-02-25 Andrew Pinski <apinski@cavium.com>
26389
26390 * builtins.c (expand_builtin_thread_pointer): Create a new target
26391 when the target is NULL.
26392
26393 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26394
26395 PR rtl-optimization/60317
26396 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26397 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26398 * lra-assigns.c: Include params.h.
26399 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26400 other reload pseudos considerations.
26401
26402 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26403
26404 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26405 to use canonical form for nor<mode>3.
26406
26407 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26408
26409 PR target/55426
26410 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26411 conversions.
26412
26413 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26414
26415 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26416 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26417 (ix86_handle_option): Handle OPT_mprefetchwt1.
26418 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26419 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26420 PREFETCHWT1 CPUID.
26421 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26422 OPTION_MASK_ISA_PREFETCHWT1.
26423 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26424 (PTA_PREFETCHWT1): New.
26425 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26426 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26427 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26428 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26429 (*prefetch_avx512pf_<mode>_: Change into ...
26430 (*prefetch_prefetchwt1_<mode>: This.
26431 * config/i386/i386.opt (mprefetchwt1): New.
26432 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26433 (_mm_prefetch): Handle intent to write.
26434 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26435
26436 2014-02-25 Richard Biener <rguenther@suse.de>
26437
26438 PR middle-end/60291
26439 * emit-rtl.c (mem_attrs_htab): Remove.
26440 (mem_attrs_htab_hash): Likewise.
26441 (mem_attrs_htab_eq): Likewise.
26442 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26443 (init_emit_once): Do not allocate mem_attrs_htab.
26444
26445 2014-02-25 Richard Biener <rguenther@suse.de>
26446
26447 PR lto/60319
26448 * lto-opts.c (lto_write_options): Output non-explicit conservative
26449 -fwrapv, -fno-trapv and -fno-strict-overflow.
26450 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26451 (run_gcc): And pass them through.
26452
26453 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26454
26455 * sel-sched.c (calculate_new_fences): New parameter ptime.
26456 Calculate it as a maximum over all fence cycles.
26457 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26458 Print the final schedule timing when sched_verbose.
26459
26460 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26461
26462 PR rtl-optimization/60292
26463 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26464 bit fot the fence instruction.
26465
26466 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26467
26468 * calls.h: Fix typo in comment.
26469
26470 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26471
26472 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26473 adjusting offsetable addresses.
26474
26475 2014-02-24 Guozhi Wei <carrot@google.com>
26476
26477 * sparseset.h (sparseset_pop): Fix the wrong index.
26478
26479 2014-02-24 Walter Lee <walt@tilera.com>
26480
26481 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26482 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26483 triplet.
26484 * common/config/tilegx/tilegx-common.c
26485 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26486 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26487 (LINK_SPEC): Ditto.
26488 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26489 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26490 (tilegx_gimplify_va_arg_expr): Handle big endian.
26491 (tilegx_expand_unaligned_load): Ditto.
26492 (tilegx_expand_unaligned_store): Ditto.
26493 (TARGET_RETURN_IN_MSB): New.
26494 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26495 (TARGET_ENDIAN_DEFAULT): New.
26496 (TARGET_BIG_ENDIAN): Handle big endian.
26497 (BYTES_BIG_ENDIAN): Ditto.
26498 (WORDS_BIG_ENDIAN): Ditto.
26499 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26500 (ENDIAN_SPEC): New.
26501 (EXTRA_SPECS): New.
26502 * config/tilegx/tilegx.md (extv): Handle big endian.
26503 (extzv): Ditto.
26504 (insn_st<n>): Ditto.
26505 (insn_st<n>_add<bitsuffix>): Ditto.
26506 (insn_stnt<n>): Ditto.
26507 (insn_stnt<n>_add<bitsuffix>):Ditto.
26508 (vec_interleave_highv8qi): Handle big endian.
26509 (vec_interleave_highv8qi_be): New.
26510 (vec_interleave_highv8qi_le): New.
26511 (insn_v1int_h): Handle big endian.
26512 (vec_interleave_lowv8qi): Handle big endian.
26513 (vec_interleave_lowv8qi_be): New.
26514 (vec_interleave_lowv8qi_le): New.
26515 (insn_v1int_l): Handle big endian.
26516 (vec_interleave_highv4hi): Handle big endian.
26517 (vec_interleave_highv4hi_be): New.
26518 (vec_interleave_highv4hi_le): New.
26519 (insn_v2int_h): Handle big endian.
26520 (vec_interleave_lowv4hi): Handle big endian.
26521 (vec_interleave_lowv4hi_be): New.
26522 (vec_interleave_lowv4hi_le): New.
26523 (insn_v2int_l): Handle big endian.
26524 (vec_interleave_highv2si): Handle big endian.
26525 (vec_interleave_highv2si_be): New.
26526 (vec_interleave_highv2si_le): New.
26527 (insn_v4int_h): Handle big endian.
26528 (vec_interleave_lowv2si): Handle big endian.
26529 (vec_interleave_lowv2si_be): New.
26530 (vec_interleave_lowv2si_le): New.
26531 (insn_v4int_l): Handle big endian.
26532 * config/tilegx/tilegx.opt (mbig-endian): New option.
26533 (mlittle-endian): New option.
26534 * doc/install.texi: Document tilegxbe-linux.
26535 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26536
26537 2014-02-24 Martin Jambor <mjambor@suse.cz>
26538
26539 PR ipa/60266
26540 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26541 there are no parameter descriptors.
26542
26543 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26544
26545 PR rtl-optimization/60268
26546 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26547 initialization to ...
26548 (sched_rgn_init): ... here.
26549 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26550
26551 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26552
26553 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26554 names.
26555
26556 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26557
26558 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26559 definition.
26560
26561 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26562
26563 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26564 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26565
26566 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26567
26568 * config/microblaze/predicates.md: Add cmp_op predicate.
26569 * config/microblaze/microblaze.md: Add branch_compare instruction
26570 which uses cmp_op predicate and emits cmp insn before branch.
26571 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26572 to microblaze_expand_conditional_branch and consolidate logic.
26573 (microblaze_expand_conditional_branch): emit branch_compare
26574 insn instead of handling cmp op separate from branch insn.
26575
26576 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26577
26578 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26579 to permit subregs.
26580
26581 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26582
26583 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26584 define_insn with define_expand and new define_insn
26585 *altivec_lve<VI_char>x_internal.
26586 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26587 and new define_insn *altivec_stve<VI_char>x_internal.
26588 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26589 prototype.
26590 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26591 lve*x built-ins.
26592 (altivec_expand_stvex_be): New function.
26593
26594 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
26595
26596 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26597 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26598 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26599 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26600
26601 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
26602
26603 PR target/60298
26604 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26605 instead of emit_move_insn.
26606
26607 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26608
26609 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26610 vspltw with vsldoi.
26611 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26612 gen_altivec_vsumsws.
26613
26614 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26615
26616 * config/rs6000/altivec.md (altivec_lvxl): Rename as
26617 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26618 (altivec_lvxl_<mode>): New define_expand incorporating
26619 -maltivec=be semantics where needed.
26620 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26621 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26622 semantics where needed.
26623 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26624 (altivec_stvx_<mode>): New define_expand incorporating
26625 -maltivec=be semantics where needed.
26626 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26627 VM2 iterator instead of V4SI.
26628 (altivec_stvxl_<mode>): New define_expand incorporating
26629 -maltivec=be semantics where needed.
26630 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26631 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26632 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26633 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26634 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26635 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26636 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26637 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26638 ALTIVEC_BUILTIN_STVXL.
26639 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26640 (altivec_expand_stvx_be): Likewise.
26641 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26642 (altivec_expand_lvx_be): Likewise.
26643 (altivec_expand_stvx_be): Likewise.
26644 (altivec_expand_builtin): Add cases for
26645 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26646 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26647 (altivec_init_builtins): Add definitions for
26648 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26649 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26650
26651 2014-02-21 Catherine Moore <clm@codesourcery.com>
26652
26653 * doc/invoke.texi (mvirt, mno-virt): Document.
26654 * config/mips/mips.opt (mvirt): New option.
26655 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26656
26657 2014-02-21 Richard Biener <rguenther@suse.de>
26658
26659 PR tree-optimization/60276
26660 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26661 (STMT_VINFO_MIN_NEG_DIST): New macro.
26662 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26663 STMT_VINFO_MIN_NEG_DIST.
26664 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26665 made for negative dependence distances still hold.
26666
26667 2014-02-21 Richard Biener <rguenther@suse.de>
26668
26669 PR middle-end/60291
26670 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26671 DECL_INITIAL for globals not in the current function context.
26672
26673 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26674
26675 PR tree-optimization/56490
26676 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26677 * tree-ssa-uninit.c: Include params.h.
26678 (compute_control_dep_chain): Add num_calls argument, return false
26679 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26680 num_calls to recursive call.
26681 (find_predicates): Change dep_chain into normal array,
26682 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26683 variable and adjust compute_control_dep_chain caller.
26684 (find_def_preds): Likewise.
26685
26686 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
26687
26688 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26689 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26690
26691 2014-02-21 Nick Clifton <nickc@redhat.com>
26692
26693 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26694 (pushhi1): Likewise.
26695 (popqi1): Add mode to pre_dec.
26696 (pophi1): Likewise.
26697
26698 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26699
26700 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26701 mode for mask of V8SFmode permutation.
26702
26703 2014-02-20 Richard Henderson <rth@redhat.com>
26704
26705 PR c++/60272
26706 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26707 a new pseudo for OLDVAL.
26708
26709 2014-02-20 Jakub Jelinek <jakub@redhat.com>
26710
26711 PR target/57896
26712 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26713 gen_reg_rtx if d->testing_p.
26714 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26715 if d->testing_p and we will certainly return true.
26716 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
26717 if d->testing_p.
26718
26719 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
26720
26721 * emit-rtl.c (gen_reg_rtx): Assert that
26722 crtl->emit.regno_pointer_align_length is non-zero.
26723
26724 2014-02-20 Richard Henderson <rth@redhat.com>
26725
26726 PR c++/60272
26727 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26728 on failure the store back into EXPECT.
26729
26730 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
26731 Sandra Loosemore <sandra@codesourcery.com>
26732
26733 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26734 * config/nios2/nios2.c (nios2_function_profiler): Add
26735 -fPIC (flag_pic == 2) support.
26736 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26737 (nios2_large_offset_p): New function.
26738 (nios2_unspec_reloc_p): Move up position, update to use
26739 nios2_large_offset_p.
26740 (nios2_unspec_address): Remove function.
26741 (nios2_unspec_offset): New function.
26742 (nios2_large_got_address): New function.
26743 (nios2_got_address): Add large offset support.
26744 (nios2_legitimize_tls_address): Update usage of removed and new
26745 functions.
26746 (nios2_symbol_binds_local_p): New function.
26747 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26748 (nios2_legitimize_address): Update to use nios2_large_offset_p.
26749 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26750 (nios2_print_operand): Merge H/L processing, add hiadj/lo
26751 processing for (const (unspec ...)).
26752 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26753
26754 2014-02-20 Richard Biener <rguenther@suse.de>
26755
26756 * tree-cfg.c (replace_uses_by): Mark altered BBs before
26757 doing the substitution.
26758 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26759
26760 2014-02-20 Martin Jambor <mjambor@suse.cz>
26761
26762 PR ipa/55260
26763 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26764 info when checking whether lattices are bottom.
26765
26766 2014-02-20 Richard Biener <rguenther@suse.de>
26767
26768 PR middle-end/60221
26769 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26770 regions at -O0.
26771
26772 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
26773
26774 PR ipa/58555
26775 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26776 parameter specifying the scaling.
26777 (inline_call): Update.
26778 (want_inline_recursively): Guard division by zero.
26779 (recursive_inlining): Update.
26780 * ipa-inline.h (clone_inlined_nodes): Update.
26781
26782 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26783
26784 PR target/60204
26785 * config/i386/i386.c (classify_argument): Pass structures of size
26786 64 bytes or less in register.
26787
26788 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26789 Kirill Yukhin <kirill.yukhin@intel.com>
26790
26791 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26792 (_mm_rcp28_round_ss): Ditto.
26793 (_mm_rsqrt28_round_sd): Ditto.
26794 (_mm_rsqrt28_round_ss): Ditto.
26795 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26796 (_mm_rcp14_round_ss): Ditto.
26797 (_mm_rsqrt14_round_sd): Ditto.
26798 (_mm_rsqrt14_round_ss): Ditto.
26799 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26800 the first input operand, get rid of match_dup.
26801 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26802 attribute to sse.
26803 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26804 Ditto.
26805 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26806 operand as the first input operand, set type attribute.
26807 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26808 Set type attribute.
26809 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26810 operand as the first input operand, set type attribute.
26811
26812 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26813
26814 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26815 bit of zero.
26816
26817 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
26818
26819 PR target/60207
26820 * config/i386/i386.c (construct_container): Remove TFmode check
26821 for X86_64_INTEGER_CLASS.
26822
26823 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
26824
26825 PR target/59794
26826 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26827 only when -Wpsabi is enabled.
26828
26829 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
26830
26831 PR target/59799
26832 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26833 passing arrays in registers are the same as for structs, so remove the
26834 special case for them.
26835
26836 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
26837
26838 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26839 destination type, extract only the valid bits if the source type is not
26840 integral and has a different mode.
26841
26842 2014-02-19 Richard Biener <rguenther@suse.de>
26843
26844 PR ipa/60243
26845 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26846 for all calls.
26847
26848 2014-02-19 Richard Biener <rguenther@suse.de>
26849
26850 PR ipa/60243
26851 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26852 (ipa_modify_call_arguments): Emit an argument load explicitely and
26853 preserve virtual SSA form there and for the replacement call.
26854 Do not update SSA form nor free dominance info.
26855
26856 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26857
26858 * ipa.c (function_and_variable_visibility): Also clear WEAK
26859 flag when disolving COMDAT_GROUP.
26860
26861 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26862
26863 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26864 * ipa-prop.c (ipa_set_jf_known_type): Return early when
26865 not devirtualizing.
26866 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26867 do more sanity checks.
26868 (detect_type_change): Return true when giving up early.
26869 (compute_complex_assign_jump_func): Fix type parameter of
26870 ipa_set_ancestor_jf.
26871 (compute_complex_ancestor_jump_func): Likewise.
26872 (update_jump_functions_after_inlining): Fix updating of
26873 ancestor function.
26874 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26875
26876 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26877
26878 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26879 inline clones when edge disappears.
26880
26881 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26882
26883 PR target/60203
26884 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26885 Split 64-bit moves into 2 patterns. Do not allow the use of
26886 direct move for TDmode in little endian, since the decimal value
26887 has little endian bytes within a word, but the 64-bit pieces are
26888 ordered in a big endian fashion, and normal subreg's of TDmode are
26889 not allowed.
26890 (mov<mode>_64bit_dm): Likewise.
26891 (movtd_64bit_nodm): Likewise.
26892
26893 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26894
26895 PR tree-optimization/60174
26896 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26897 statement of an SSA_NAME that occurs in an abnormal PHI node.
26898
26899 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26900
26901 PR sanitizer/60142
26902 * final.c (SEEN_BB): Remove.
26903 (SEEN_NOTE, SEEN_EMITTED): Renumber.
26904 (final_scan_insn): Don't force_source_line on second
26905 NOTE_INSN_BASIC_BLOCK.
26906
26907 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
26908
26909 PR target/60205
26910 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26911 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26912 (type_natural_mode): Warn ABI change when %zmm register is not
26913 available for AVX512F vector value passing.
26914
26915 2014-02-18 Kai Tietz <ktietz@redhat.com>
26916
26917 PR target/60193
26918 * config/i386/i386.c (ix86_expand_prologue): Use value in
26919 rax register as displacement when restoring %r10 or %rax.
26920 Fix wrong offset when restoring both registers.
26921
26922 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26923
26924 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26925 assertion with conditional return.
26926
26927 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26928 Uros Bizjak <ubizjak@gmail.com>
26929
26930 PR driver/60233
26931 * config/i386/driver-i386.c (host_detect_local_cpu): If
26932 YMM state is not saved by the OS, also clear has_f16c. Move
26933 CPUID 0x80000001 handling before YMM state saving checking.
26934
26935 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
26936
26937 PR rtl-optimization/58960
26938 * haifa-sched.c (alloc_global_sched_pressure_data): New,
26939 factored out from ...
26940 (sched_init): ... here.
26941 (free_global_sched_pressure_data): New, factored out from ...
26942 (sched_finish): ... here.
26943 * sched-int.h (free_global_sched_pressure_data): Declare.
26944 * sched-rgn.c (nr_regions_initial): New static global.
26945 (haifa_find_rgns): Initialize it.
26946 (schedule_region): Disable sched-pressure for the newly
26947 generated regions.
26948
26949 2014-02-17 Richard Biener <rguenther@suse.de>
26950
26951 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26952 release SSA defs of pattern stmts.
26953
26954 2014-02-17 Richard Biener <rguenther@suse.de>
26955
26956 * tree-inline.c (expand_call_inline): Release the virtual
26957 operand defined by the call we are about to inline.
26958
26959 2014-02-17 Richard Biener <rguenther@suse.de>
26960
26961 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26962
26963 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26964 Ilya Tocar <ilya.tocar@intel.com>
26965
26966 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26967 arguments order in builtin.
26968 (_mm512_permutexvar_epi64): Ditto.
26969 (_mm512_mask_permutexvar_epi64): Ditto
26970 (_mm512_maskz_permutexvar_epi32): Ditto
26971 (_mm512_permutexvar_epi32): Ditto
26972 (_mm512_mask_permutexvar_epi32): Ditto
26973
26974 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26975
26976 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26977 (p8_vmrgow): Likewise.
26978
26979 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26980
26981 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26982 endian targets.
26983
26984 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26985
26986 PR target/60203
26987 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
26988 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
26989 into 64-bit and 32-bit moves. On 64-bit moves, add support for
26990 using direct move instructions on ISA 2.07. Also adjust
26991 instruction length for 64-bit.
26992 (mov<mode>_64bit, TFmode/TDmode): Likewise.
26993 (mov<mode>_32bit, TFmode/TDmode): Likewise.
26994
26995 2014-02-15 Alan Modra <amodra@gmail.com>
26996
26997 PR target/58675
26998 PR target/57935
26999 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27000 find_replacement on parts of insn rtl that might be reloaded.
27001
27002 2014-02-15 Richard Biener <rguenther@suse.de>
27003
27004 PR tree-optimization/60183
27005 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27006 (tree_ssa_phiprop): Calculate and free post-dominators.
27007
27008 2014-02-14 Jeff Law <law@redhat.com>
27009
27010 PR rtl-optimization/60131
27011 * ree.c (get_extended_src_reg): New function.
27012 (combine_reaching_defs): Use it rather than assuming location of REG.
27013 (find_and_remove_re): Verify first operand of extension is
27014 a REG before adding the insns to the copy list.
27015
27016 2014-02-14 Roland McGrath <mcgrathr@google.com>
27017
27018 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27019 * configure: Regenerated.
27020 * config.in: Regenerated.
27021 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27022 instead of ASM_SHORT.
27023
27024 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27025 Richard Earnshaw <rearnsha@arm.com>
27026
27027 PR rtl-optimization/59535
27028 * lra-constraints.c (process_alt_operands): Encourage alternative
27029 when unassigned pseudo class is superset of the alternative class.
27030 (inherit_reload_reg): Don't inherit when optimizing for code size.
27031 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27032 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27033 modes not less than 4 for Thumb1.
27034
27035 2014-02-14 Kyle McMartin <kyle@redhat.com>
27036
27037 PR pch/60010
27038 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27039
27040 2014-02-14 Richard Biener <rguenther@suse.de>
27041
27042 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27043 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27044 Do not strip INDIRECT_REFs.
27045
27046 2014-02-14 Richard Biener <rguenther@suse.de>
27047
27048 PR lto/60179
27049 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27050 DECL_FUNCTION_SPECIFIC_TARGET.
27051 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27052 * tree-streamer-out.c (pack_ts_target_option): Remove.
27053 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27054 (write_ts_function_decl_tree_pointers): Do not stream
27055 DECL_FUNCTION_SPECIFIC_TARGET.
27056 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27057 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27058 (lto_input_ts_function_decl_tree_pointers): Do not stream
27059 DECL_FUNCTION_SPECIFIC_TARGET.
27060
27061 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27062
27063 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27064 (get_initial_def_for_induction, vectorizable_induction): Ignore
27065 debug stmts when looking for exit_phi.
27066 (vectorizable_live_operation): Fix up condition.
27067
27068 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27069
27070 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27071 nreverse() because it changes the content of original tree list.
27072
27073 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27074
27075 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27076 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27077
27078 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27079
27080 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27081 GNU coding standards.
27082
27083 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27084
27085 PR debug/60152
27086 * dwarf2out.c (gen_subprogram_die): Don't call
27087 add_calling_convention_attribute if subr_die is old_die.
27088
27089 2014-02-13 Sharad Singhai <singhai@google.com>
27090
27091 * doc/optinfo.texi: Fix order of nodes.
27092
27093 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27094
27095 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27096 operands[2], not operands[3].
27097
27098 2014-02-13 Richard Biener <rguenther@suse.de>
27099
27100 PR bootstrap/59878
27101 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27102 mention the possibility of an in-tree build.
27103 (CLooG): Update recommended version to 0.18.1, mention the
27104 possibility of an in-tree build and clarify that the ISL
27105 bundled with CLooG does not work.
27106
27107 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27108
27109 PR target/43546
27110 * expr.c (compress_float_constant): If x is a hard register,
27111 extend into a pseudo and then move to x.
27112
27113 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27114
27115 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27116 caused by bad second argument to warning_at() with -mhotpatch and
27117 nested functions (e.g. with gfortran).
27118
27119 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27120
27121 * opts.c (option_name): Remove "enabled by default" rider.
27122
27123 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27124
27125 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27126
27127 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27128 Uros Bizjak <ubizjak@gmail.com>
27129
27130 PR target/60151
27131 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27132 * configure: Regenerated.
27133
27134 2014-02-12 Richard Biener <rguenther@suse.de>
27135
27136 * vec.c (vec_prefix::calculate_allocation): Move as
27137 inline variant to vec.h.
27138 (vec_prefix::calculate_allocation_1): New out-of-line version.
27139 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27140 (vec_prefix::m_has_auto_buf): Rename to ...
27141 (vec_prefix::m_using_auto_storage): ... this.
27142 (vec_prefix::calculate_allocation): Inline the easy cases
27143 and dispatch to calculate_allocation_1 which doesn't need the
27144 prefix address.
27145 (va_heap::reserve): Use gcc_checking_assert.
27146 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27147 m_using_auto_storage.
27148 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27149 member and adjust.
27150 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27151 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27152 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27153
27154 2014-02-12 Richard Biener <rguenther@suse.de>
27155
27156 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27157 when we found a dependence.
27158
27159 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27160
27161 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27162 common code...
27163 (maybe_fold_stmt): ... into this new function.
27164 * omp-low.c (lower_omp): Update comment.
27165
27166 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27167 last use.
27168
27169 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27170 dereference.
27171
27172 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27173
27174 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27175 identifiers in comments.
27176 (cortexa53_extra_costs): Likewise.
27177 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27178 (cortexa7_extra_costs): Likewise.
27179 (cortexa12_extra_costs): Likewise.
27180 (cortexa15_extra_costs): Likewise.
27181 (v7m_extra_costs): Likewise.
27182
27183 2014-02-12 Richard Biener <rguenther@suse.de>
27184
27185 PR middle-end/60092
27186 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27187 of posix_memalign being successful.
27188 (lower_stmt): Restrict lowering of posix_memalign to when
27189 -ftree-bit-ccp is enabled.
27190
27191 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27192
27193 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27194 arg_loc.
27195 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27196
27197 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27198
27199 PR rtl-optimization/60116
27200 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27201 other_insn once the combination has been validated.
27202
27203 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27204
27205 PR lto/59468
27206 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27207 and wrapper.
27208 * ipa-devirt.c: Include demangle.h
27209 (odr_violation_reported): New static variable.
27210 (add_type_duplicate): Update odr_violations.
27211 (maybe_record_node): Add completep parameter; update it.
27212 (record_target_from_binfo): Add COMPLETEP parameter;
27213 update it as needed.
27214 (possible_polymorphic_call_targets_1): Likewise.
27215 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27216 rename FINAL to COMPLETE.
27217 (record_targets_from_bases): Sanity check we found the binfo;
27218 fix COMPLETEP updating.
27219 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27220 parameter, fix computing of COMPLETEP.
27221 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27222 at LTO time do demangling.
27223 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27224 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27225 parameter.
27226 (gimple_get_virt_method_for_binfo): Likewise.
27227 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27228 gimple_get_virt_method_for_vtable): Update prototypes.
27229
27230 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27231
27232 PR target/49008
27233 * genautomata.c (add_presence_absence): Fix typo with
27234 {final_}presence_list.
27235
27236 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27237
27238 PR target/60137
27239 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27240 for VSX/Altivec vectors that land in GPR registers.
27241
27242 2014-02-11 Richard Henderson <rth@redhat.com>
27243 Jakub Jelinek <jakub@redhat.com>
27244
27245 PR debug/59776
27246 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27247 around drhs if type conversion to lacc->type is not useless.
27248
27249 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27250
27251 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27252 tuning struct.
27253 (cortex-a57.cortex-a53): Likewise.
27254 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27255
27256 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27257
27258 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27259 arm_restrict_it.
27260
27261 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27262
27263 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27264 add_options_for_arm_vfp3.
27265
27266 2014-02-11 Jeff Law <law@redhat.com>
27267
27268 PR middle-end/54041
27269 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27270 object with an undesirable mode.
27271
27272 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27273
27274 PR libgomp/60107
27275 * config/i386/sol2-9.h: New file.
27276 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27277 *-*-solaris2.9*): Use it.
27278
27279 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27280
27281 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27282 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27283
27284 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27285
27286 * config/microblaze/microblaze.c: Extend mcpu version format
27287
27288 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27289
27290 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27291
27292 2014-02-10 Richard Henderson <rth@redhat.com>
27293
27294 PR target/59927
27295 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27296 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27297 ms-abi vs -mno-accumulate-outgoing-args.
27298 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27299 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27300 respect to ms-abi.
27301
27302 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27303
27304 PR middle-end/60080
27305 * cfgexpand.c (expand_asm_operands): Attach source location to
27306 ASM_INPUT rtx objects.
27307 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27308
27309 2014-02-10 Nick Clifton <nickc@redhat.com>
27310
27311 * config/mn10300/mn10300.c (popcount): New function.
27312 (mn10300_expand_prologue): Include saved registers in stack usage
27313 count.
27314
27315 2014-02-10 Jeff Law <law@redhat.com>
27316
27317 PR middle-end/52306
27318 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27319 when changing the SET_DEST of a prior insn to avoid an input reload.
27320
27321 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27322
27323 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27324 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27325 -mcall-openbsd, or -mcall-linux.
27326 (CC1_ENDIAN_BIG_SPEC): Remove.
27327 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27328 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27329 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27330 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27331 and %cc1_endian_default.
27332 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27333
27334 2014-02-10 Richard Biener <rguenther@suse.de>
27335
27336 PR tree-optimization/60115
27337 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27338 MEM_REF handling. Properly verify that the accesses are not
27339 out of the objects bound.
27340
27341 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27342
27343 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27344 coretex to cortex.
27345
27346 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27347
27348 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27349 proper constants and fix formatting.
27350 (possible_polymorphic_call_targets): Fix formatting.
27351
27352 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27353 Ilya Tocar <ilya.tocar@intel.com>
27354
27355 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27356 (_mm512_loadu_epi32): Renamed into...
27357 (_mm512_loadu_si512): This.
27358 (_mm512_storeu_epi32): Renamed into...
27359 (_mm512_storeu_si512): This.
27360 (_mm512_maskz_ceil_ps): Removed.
27361 (_mm512_maskz_ceil_pd): Ditto.
27362 (_mm512_maskz_floor_ps): Ditto.
27363 (_mm512_maskz_floor_pd): Ditto.
27364 (_mm512_floor_round_ps): Ditto.
27365 (_mm512_floor_round_pd): Ditto.
27366 (_mm512_ceil_round_ps): Ditto.
27367 (_mm512_ceil_round_pd): Ditto.
27368 (_mm512_mask_floor_round_ps): Ditto.
27369 (_mm512_mask_floor_round_pd): Ditto.
27370 (_mm512_mask_ceil_round_ps): Ditto.
27371 (_mm512_mask_ceil_round_pd): Ditto.
27372 (_mm512_maskz_floor_round_ps): Ditto.
27373 (_mm512_maskz_floor_round_pd): Ditto.
27374 (_mm512_maskz_ceil_round_ps): Ditto.
27375 (_mm512_maskz_ceil_round_pd): Ditto.
27376 (_mm512_expand_pd): Ditto.
27377 (_mm512_expand_ps): Ditto.
27378 * config/i386/i386.c (ix86_builtins): Remove
27379 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27380 (bdesc_args): Ditto.
27381 * config/i386/predicates.md (const1256_operand): New.
27382 (const_1_to_2_operand): Ditto.
27383 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27384 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27385 (*avx512pf_gatherpf<mode>sf): Ditto.
27386 (avx512pf_gatherpf<mode>df): Ditto.
27387 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27388 (*avx512pf_gatherpf<mode>df): Ditto.
27389 (avx512pf_scatterpf<mode>sf): Ditto.
27390 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27391 (*avx512pf_scatterpf<mode>sf): Ditto.
27392 (avx512pf_scatterpf<mode>df): Ditto.
27393 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27394 (*avx512pf_scatterpf<mode>df): Ditto.
27395 (avx512f_expand<mode>): Removed.
27396 (<shift_insn><mode>3<mask_name>): Change predicate type.
27397
27398 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27399
27400 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27401 not at the end of datarefs vector use ordered_remove to avoid
27402 reordering datarefs vector.
27403
27404 PR c/59984
27405 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27406 mark local addressable non-static vars as GOVD_PRIVATE
27407 instead of GOVD_LOCAL.
27408 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27409 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27410 than copying them.
27411
27412 PR middle-end/60092
27413 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27414 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27415 assume_aligned or alloc_align attributes.
27416 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27417 arguments. Handle also assume_aligned and alloc_align attributes.
27418 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27419 calls to functions with assume_aligned or alloc_align attributes.
27420 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27421
27422 2014-02-08 Terry Guo <terry.guo@arm.com>
27423
27424 * doc/invoke.texi: Document ARM -march=armv7e-m.
27425
27426 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27427
27428 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27429 flag on __cilkrts_rethrow builtin.
27430
27431 PR ipa/60026
27432 * ipa-cp.c (determine_versionability): Fail at -O0
27433 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27434 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27435
27436 Revert:
27437 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27438
27439 PR ipa/60026
27440 * tree-inline.c (copy_forbidden): Fail for
27441 __attribute__((optimize (0))) functions.
27442
27443 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27444
27445 * varpool.c: Include pointer-set.h.
27446 (varpool_remove_unreferenced_decls): Variables in other partitions
27447 will not be output; be however careful to not lose information
27448 about partitioning.
27449
27450 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27451
27452 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27453 lookup in the vtable constructor.
27454
27455 2014-02-07 Jeff Law <law@redhat.com>
27456
27457 PR target/40977
27458 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27459 define_insn_and_split.
27460
27461 * ipa-inline.c (inline_small_functions): Fix typos.
27462
27463 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27464
27465 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27466 (s390_can_use_return_insn): Declare.
27467 * config/s390/s390.h (EPILOGUE_USES): Define.
27468 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27469 instructions.
27470 (s390_chunkify_start): Handle return JUMP_LABELs.
27471 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27472 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27473 (s390_can_use_return_insn): New functions.
27474 (s390_fix_long_loop_prediction): Handle conditional returns.
27475 (TARGET_SET_UP_BY_PROLOGUE): Define.
27476 * config/s390/s390.md (ANY_RETURN): New code iterator.
27477 (*creturn, *csimple_return, return, simple_return): New patterns.
27478
27479 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27480
27481 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27482 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27483 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27484 REG_CFA_RESTORE list when deciding not to restore a register.
27485
27486 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27487
27488 * config/s390/s390.c: Include tree-pass.h and context.h.
27489 (s390_early_mach): New function, split out from...
27490 (s390_emit_prologue): ...here.
27491 (pass_data_s390_early_mach): New pass structure.
27492 (pass_s390_early_mach): New class.
27493 (s390_option_override): Create and register early_mach pass.
27494 Move to end of file.
27495
27496 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27497
27498 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27499 to match for the exit block.
27500
27501 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27502
27503 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27504 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27505 Reject misaligned operands.
27506
27507 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27508
27509 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27510
27511 2014-02-07 Richard Biener <rguenther@suse.de>
27512
27513 PR middle-end/60092
27514 * gimple-low.c (lower_builtin_posix_memalign): New function.
27515 (lower_stmt): Call it to lower posix_memalign in a way
27516 to make alignment info accessible.
27517
27518 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27519
27520 PR c++/60082
27521 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27522 __builtin_setjmp_receiver.
27523
27524 2014-02-07 Richard Biener <rguenther@suse.de>
27525
27526 PR middle-end/60092
27527 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27528 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27529 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27530 Handle BUILT_IN_POSIX_MEMALIGN.
27531 (find_func_clobbers): Likewise.
27532 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27533 (call_may_clobber_ref_p_1): Likewise.
27534
27535 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27536
27537 PR ipa/59918
27538 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27539 sanity check.
27540
27541 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27542
27543 PR ipa/59469
27544 * lto-cgraph.c (lto_output_node): Use
27545 symtab_get_symbol_partitioning_class.
27546 (lto_output_varpool_node): likewise.
27547 (symtab_get_symbol_partitioning_class): Move here from
27548 lto/lto-partition.c
27549 * cgraph.h (symbol_partitioning_class): Likewise.
27550 (symtab_get_symbol_partitioning_class): Declare.
27551
27552 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27553
27554 * ggc.h (ggc_internal_cleared_alloc): New macro.
27555 * vec.h (vec_safe_copy): Handle memory stats.
27556 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27557 * target-globals.c (save_target_globals): Likewise.
27558
27559 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27560
27561 PR target/60077
27562 * expr.c (emit_move_resolve_push): Export; be bit more selective
27563 on when to clear alias set.
27564 * expr.h (emit_move_resolve_push): Declare.
27565 * function.h (struct function): Add tail_call_marked.
27566 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27567 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27568 * config/i386/i386.md (TImode move expander): De not call
27569 ix86_expand_push.
27570 (FP push expanders): Preserve memory attributes.
27571 * config/i386/sse.md (push<mode>1): Remove.
27572 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27573 (ix86_expand_push): Remove.
27574 * config/i386/mmx.md (push<mode>1): Remove.
27575
27576 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27577
27578 PR rtl-optimization/60030
27579 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27580 lopart with paradoxical subreg before shifting it up by hprec.
27581
27582 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27583
27584 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27585 Remove extra newline at end of file.
27586 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27587 (arm_issue_rate): Handle cortexa57.
27588 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27589 (cortex-a57.cortex-a53): Likewise.
27590
27591 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27592
27593 PR target/59575
27594 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27595 don't record in REG_FRAME_RELATED_EXPR registers not set in that
27596 bitmask.
27597 (arm_expand_prologue): Adjust all callers.
27598 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27599 info, registers also at the lowest numbered registers side. Use
27600 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27601 XEXP.
27602
27603 PR debug/59992
27604 * var-tracking.c (adjust_mems): Before adding a SET to
27605 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27606
27607 2014-02-06 Alan Modra <amodra@gmail.com>
27608
27609 PR target/60032
27610 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27611 change SDmode to DDmode when lra_in_progress.
27612
27613 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27614
27615 PR middle-end/59150
27616 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27617 free_data_ref on the dr first, and before goto again also set dr
27618 to the next dr. For simd_lane_access, free old datarefs[i] before
27619 overwriting it. For get_vectype_for_scalar_type failure, don't
27620 free_data_ref if simd_lane_access.
27621
27622 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27623
27624 PR target/60062
27625 * tree.h (opts_for_fn): New inline function.
27626 (opt_for_fn): Define.
27627 * config/i386/i386.c (ix86_function_regparm): Use
27628 opt_for_fn (decl, optimize) instead of optimize.
27629
27630 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
27631
27632 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27633 for SYMBOL_REF in large memory model.
27634
27635 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27636
27637 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27638 and crypto support.
27639 (cortex-a57): Likewise.
27640 (cortex-a57.cortex-a53): Likewise.
27641
27642 2014-02-06 Yury Gribov <y.gribov@samsung.com>
27643 Kugan Vivekanandarajah <kuganv@linaro.org>
27644
27645 * config/arm/arm.c (arm_vector_alignment_reachable): Check
27646 unaligned_access.
27647 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27648
27649 2014-02-06 Richard Biener <rguenther@suse.de>
27650
27651 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27652 set_loop_copy and initialize_original_copy_tables.
27653
27654 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
27655
27656 * config/aarch64/aarch64-simd.md
27657 (aarch64_ashr_simddi): Change QI to SI.
27658
27659 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27660 Jakub Jelinek <jakub@redhat.com>
27661
27662 PR middle-end/60013
27663 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27664 of the dataflow.
27665
27666 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27667
27668 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27669 CODE_FOR_altivec_vpku[hw]um to
27670 CODE_FOR_altivec_vpku[hw]um_direct.
27671 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27672 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27673 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27674 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27675
27676 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27677
27678 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27679 generation for -maltivec=be.
27680 (altivec_vsumsws): Simplify redundant test.
27681
27682 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27683
27684 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27685 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27686 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27687 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27688 gen_altivec_vpkuwum.
27689 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27690 BYTES_BIG_ENDIAN.
27691 (altivec_vpks<VI_char>ss): Likewise.
27692 (altivec_vpks<VI_char>us): Likewise.
27693 (altivec_vpku<VI_char>us): Likewise.
27694 (altivec_vpku<VI_char>um): Likewise.
27695 (altivec_vpku<VI_char>um_direct): New (copy of
27696 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27697 internal use).
27698 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27699 target is little endian and -maltivec=be is not specified.
27700 (*altivec_vupkhs<VU_char>_direct): New (copy of
27701 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27702 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27703 target is little endian and -maltivec=be is not specified.
27704 (*altivec_vupkls<VU_char>_direct): New (copy of
27705 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27706 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27707 little endian and -maltivec=be is not specified.
27708 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27709 little endian and -maltivec=be is not specified.
27710
27711 2014-02-05 Richard Henderson <rth@redhat.com>
27712
27713 PR debug/52727
27714 * combine-stack-adj.c: Revert r206943.
27715 * sched-int.h (struct deps_desc): Add last_args_size.
27716 * sched-deps.c (init_deps): Initialize it.
27717 (sched_analyze_insn): Add OUTPUT dependencies between insns that
27718 contain REG_ARGS_SIZE notes.
27719
27720 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27721
27722 * lto-cgraph.c (asm_nodes_output): Make global.
27723 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27724 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27725 (driver_handle_option): Handle OPT_fwpa.
27726
27727 2014-02-05 Jakub Jelinek <jakub@redhat.com>
27728
27729 PR ipa/59947
27730 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27731 a comment typo and formatting issue. If odr_hash hasn't been
27732 created, return vNULL and set *completep to false.
27733
27734 PR middle-end/57499
27735 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27736 bb with no successors.
27737
27738 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
27739
27740 PR target/59718
27741 * doc/invoke.texi (-march): Clarify documentation for ARM.
27742 (-mtune): Likewise.
27743 (-mcpu): Likewise.
27744
27745 2014-02-05 Richard Biener <rguenther@suse.de>
27746
27747 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27748 when not vectorizing because of too many alias checks.
27749 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27750 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27751
27752 2014-02-05 Nick Clifton <nickc@redhat.com>
27753
27754 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27755 accept extended registers in any mode when compiling for the MN10300.
27756
27757 2014-02-05 Yury Gribov <y.gribov@samsung.com>
27758
27759 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27760 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27761 sanitization attributes.
27762 (can_inline_edge_p): Likewise.
27763 (sanitize_attrs_match_for_inline_p): New function.
27764
27765 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27766
27767 * ipa-prop.c (detect_type_change): Shor circuit testing of
27768 type changes on THIS pointer.
27769
27770 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
27771
27772 PR target/59777
27773 * config/pa/pa.c (legitimize_tls_address): Return original address
27774 if not passed a SYMBOL_REF rtx.
27775 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27776 addresses.
27777 (pa_emit_move_sequence): Simplify TLS source operands.
27778 (pa_legitimate_constant_p): Reject all TLS constants.
27779 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27780 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27781
27782 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27783
27784 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27785 groups when we know they are controlled by LTO.
27786 * varasm.c (default_binds_local_p_1): If object is in other partition,
27787 it will be resolved locally.
27788
27789 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27790
27791 * config/host-linux.c (linux_gt_pch_use_address): Don't
27792 use SSIZE_MAX because it is not always defined.
27793
27794 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
27795
27796 PR bootstrap/59913
27797 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27798 threshold for pseudo splitting.
27799 (update_ebb_live_info): Process call argument hard registers and
27800 hard registers from insn definition too.
27801 (max_small_class_regs_num): New constant.
27802 (inherit_in_ebb): Update live hard regs through EBBs. Update
27803 reloads_num only for small register classes. Don't split for
27804 outputs of jumps.
27805
27806 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
27807
27808 PR ipa/60058
27809 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27810 is non-null.
27811
27812 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27813
27814 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27815 visibility is safe.
27816
27817 2014-02-04 Marek Polacek <polacek@redhat.com>
27818
27819 * gdbinit.in (pel): Define.
27820
27821 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27822
27823 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27824 behavior.
27825
27826 2014-02-04 Richard Biener <rguenther@suse.de>
27827
27828 PR lto/59723
27829 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27830 in function context local.
27831 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27832 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27833 similar to LTO_imported_decl_ref.
27834
27835 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27836
27837 PR tree-optimization/60002
27838 * cgraphclones.c (build_function_decl_skip_args): Clear
27839 DECL_LANG_SPECIFIC.
27840
27841 PR tree-optimization/60023
27842 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27843 false to gsi_replace.
27844 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27845 has been in some EH region and vec_stmt could throw, add
27846 vec_stmt into the same EH region.
27847 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27848 has no lhs, ignore it.
27849 * internal-fn.c (expand_MASK_LOAD): Likewise.
27850
27851 PR ipa/60026
27852 * tree-inline.c (copy_forbidden): Fail for
27853 __attribute__((optimize (0))) functions.
27854
27855 PR other/58712
27856 * omp-low.c (simd_clone_struct_copy): If from->inbranch
27857 is set, copy one less argument.
27858 (expand_simd_clones): Don't subtract clone_info->inbranch
27859 from simd_clone_struct_alloc argument.
27860
27861 PR rtl-optimization/57915
27862 * recog.c (simplify_while_replacing): If all unary/binary/relational
27863 operation arguments are constant, attempt to simplify those.
27864
27865 PR middle-end/59261
27866 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27867 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27868
27869 2014-02-04 Richard Biener <rguenther@suse.de>
27870
27871 PR tree-optimization/60012
27872 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27873 TBAA disambiguation to all DDRs.
27874
27875 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27876
27877 PR target/59788
27878 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27879 (LINK_SPEC): Use it for -shared, -shared-libgcc.
27880
27881 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27882
27883 PR ipa/59882
27884 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27885
27886 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27887
27888 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27889 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27890
27891 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27892
27893 PR ipa/59831
27894 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27895 to figure out targets of polymorphic calls with known decl.
27896 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27897 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27898 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27899 (get_polymorphic_call_info): ... here.
27900 (get_polymorphic_call_info_from_invariant): New function.
27901
27902 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27903
27904 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27905 lookup via vtable pointer; check for type consistency
27906 and turn inconsitent facts into UNREACHABLE.
27907 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27908 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27909 type inconsistent querries; return UNREACHABLE instead.
27910
27911 2014-02-03 Richard Henderson <rth@twiddle.net>
27912
27913 PR tree-opt/59924
27914 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27915 already processed this node.
27916 (normalize_one_pred_1): Pass along mark_set.
27917 (normalize_one_pred): Create and destroy a pointer_set_t.
27918 (normalize_one_pred_chain): Likewise.
27919
27920 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
27921
27922 PR gcov-profile/58602
27923 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27924
27925 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27926
27927 PR ipa/59831
27928 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
27929 -fno-devirtualize; try to devirtualize by the knowledge of
27930 virtual table pointer given by aggregate propagation.
27931 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27932 (ipa_print_node_jump_functions): Dump also offset that
27933 is relevant for polymorphic calls.
27934 (determine_known_aggregate_parts): Add arg_type parameter; use it
27935 instead of determining the type from pointer type.
27936 (ipa_compute_jump_functions_for_edge): Update call of
27937 determine_known_aggregate_parts.
27938 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
27939 (gimple_get_virt_method_for_binfo): ... here; simplify using
27940 vtable_pointer_value_to_vtable.
27941 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
27942 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
27943 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
27944 (vtable_pointer_value_to_vtable): Break out from ...; handle also
27945 POINTER_PLUS_EXPR.
27946 (vtable_pointer_value_to_binfo): ... here.
27947 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27948
27949 2014-02-03 Teresa Johnson <tejohnson@google.com>
27950
27951 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27952 redef of outer loop index variable.
27953
27954 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27955
27956 PR c++/53017
27957 PR c++/59211
27958 * doc/extend.texi (Function Attributes): Typo.
27959
27960 2014-02-03 Cong Hou <congh@google.com>
27961
27962 PR tree-optimization/60000
27963 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27964 if the vectorized statement is a store. A store statement can only
27965 appear at the end of pattern statements.
27966
27967 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27968
27969 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27970 (ix86_option_override_internal): Default long double to 64-bit for
27971 32-bit Bionic and to 128-bit for 64-bit Bionic.
27972
27973 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27974 TARGET_LONG_DOUBLE_128 is true.
27975 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27976
27977 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27978 (mlong-double-64): Negate -mlong-double-128.
27979 (mlong-double-128): New option.
27980
27981 * config/i386/i386-c.c (ix86_target_macros): Define
27982 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27983
27984 * doc/invoke.texi: Document -mlong-double-128.
27985
27986 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27987
27988 PR rtl-optimization/60024
27989 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
27990
27991 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
27992
27993 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
27994
27995 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27996
27997 PR rtl-optimization/57662
27998 * sel-sched.c (code_motion_path_driver): Do not mark already not
27999 existing blocks in the visiting bitmap.
28000
28001 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28002
28003 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28004 on the insn being emitted.
28005
28006 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28007 Will Deacon <will.deacon@arm.com>
28008
28009 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28010
28011 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28012
28013 * config/arm/arm-tables.opt: Regenerate.
28014
28015 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28016
28017 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28018 for vector types other than V16QImode.
28019 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28020 define_expand, and call altivec_expand_vec_perm_le when producing
28021 code with little endian element order.
28022 (*altivec_vperm_<mode>_internal): New insn having previous
28023 behavior of altivec_vperm_<mode>.
28024 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28025 altivec_expand_vec_perm_le when producing code with little endian
28026 element order.
28027 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28028 behavior of altivec_vperm_<mode>_uns.
28029
28030 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28031
28032 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28033 (altivec_vsumsws): Add handling for -maltivec=be with a little
28034 endian target.
28035 (altivec_vsumsws_direct): New.
28036 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28037 gen_altivec_vsumsws.
28038
28039 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28040
28041 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28042 vtable_pointer_value_to_binfo): New functions.
28043 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28044 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28045
28046 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28047
28048 * config/nios2/nios2.md (load_got_register): Initialize GOT
28049 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28050 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28051
28052 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28053
28054 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28055 preserverd by passthrough, do not propagate the type.
28056
28057 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28058
28059 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28060 (mips_atomic_assign_expand_fenv): New function.
28061 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28062
28063 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28064
28065 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28066 (__builtin_mips_set_fcsr): Likewise.
28067 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28068 MIPS_USI_FTYPE_VOID.
28069 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28070 (mips16_expand_set_fcsr): Likewise.
28071 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28072 (mips16_set_fcsr_stub): Likewise.
28073 (mips16_get_fcsr_one_only_stub): New class.
28074 (mips16_set_fcsr_one_only_stub): Likewise.
28075 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28076 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28077 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28078 (hard_float): New availability predicate.
28079 (mips_builtins): Add get_fcsr and set_fcsr.
28080 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28081 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28082 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28083 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28084 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28085 patterns.
28086
28087 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28088
28089 * config/mips/mips.c (mips_one_only_stub): New class.
28090 (mips_need_mips16_rdhwr_p): Replace with...
28091 (mips16_rdhwr_stub): ...this new variable.
28092 (mips16_stub_call_address): New function.
28093 (mips16_rdhwr_one_only_stub): New class.
28094 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28095 (mips_output_mips16_rdhwr): Delete.
28096 (mips_finish_stub): New function.
28097 (mips_code_end): Use it to handle rdhwr stubs.
28098
28099 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28100
28101 PR target/60017
28102 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28103 when calculating size of integer atomic types.
28104
28105 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28106
28107 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28108
28109 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28110
28111 PR tree-optimization/60003
28112 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28113 * profile.c (branch_prob): Use gimple_call_builtin_p
28114 to check for BUILT_IN_SETJMP_RECEIVER.
28115 * tree-inline.c (copy_bb): Call notice_special_calls.
28116
28117 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28118
28119 PR bootstrap/59985
28120 * lra-constraints.c (process_alt_operands): Update reload_sum only
28121 on the first pass.
28122
28123 2014-01-31 Richard Henderson <rth@redhat.com>
28124
28125 PR middle-end/60004
28126 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28127 until after else_eh is processed.
28128
28129 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28130
28131 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28132 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28133 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28134 in smmintrin.h, remove them.
28135 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28136 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28137 * config/i386/i386.md (ROUND_SAE): Fix value.
28138 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28139 (const48_operand): New.
28140 * config/i386/subst.md (round), (round_expand): Use
28141 const_4_or_8_to_11_operand.
28142 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28143
28144 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28145
28146 * config/i386/constraints.md (Yk): Swap meaning with k.
28147 * config/i386/i386.md (movhi_internal): Change Yk to k.
28148 (movqi_internal): Ditto.
28149 (*k<logic><mode>): Ditto.
28150 (*andhi_1): Ditto.
28151 (*andqi_1): Ditto.
28152 (kandn<mode>): Ditto.
28153 (*<code>hi_1): Ditto.
28154 (*<code>qi_1): Ditto.
28155 (kxnor<mode>): Ditto.
28156 (kortestzhi): Ditto.
28157 (kortestchi): Ditto.
28158 (kunpckhi): Ditto.
28159 (*one_cmplhi2_1): Ditto.
28160 (*one_cmplqi2_1): Ditto.
28161 * config/i386/sse.md (): Change k to Yk.
28162 (avx512f_load<mode>_mask): Ditto.
28163 (avx512f_blendm<mode>): Ditto.
28164 (avx512f_store<mode>_mask): Ditto.
28165 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28166 (avx512f_storedqu<mode>_mask): Ditto.
28167 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28168 Ditto.
28169 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28170 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28171 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28172 (avx512f_maskcmp<mode>3): Ditto.
28173 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28174 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28175 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28176 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28177 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28178 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28179 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28180 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28181 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28182 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28183 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28184 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28185 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28186 (vec_extract_lo_<mode>_maskm): Ditto.
28187 (vec_extract_hi_<mode>_maskm): Ditto.
28188 (avx512f_vternlog<mode>_mask): Ditto.
28189 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28190 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28191 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28192 (avx512f_<code>v8div16qi2_mask): Ditto.
28193 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28194 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28195 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28196 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28197 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28198 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28199 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28200 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28201 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28202 (avx512cd_maskb_vec_dupv8di): Ditto.
28203 (avx512cd_maskw_vec_dupv16si): Ditto.
28204 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28205 (avx512f_vpermi2var<mode>3_mask): Ditto.
28206 (avx512f_vpermi2var<mode>3_mask): Ditto.
28207 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28208 (*avx512f_gathersi<mode>): Ditto.
28209 (*avx512f_gathersi<mode>_2): Ditto.
28210 (*avx512f_gatherdi<mode>): Ditto.
28211 (*avx512f_gatherdi<mode>_2): Ditto.
28212 (*avx512f_scattersi<mode>): Ditto.
28213 (*avx512f_scatterdi<mode>): Ditto.
28214 (avx512f_compress<mode>_mask): Ditto.
28215 (avx512f_compressstore<mode>_mask): Ditto.
28216 (avx512f_expand<mode>_mask): Ditto.
28217 * config/i386/subst.md (mask): Change k to Yk.
28218 (mask_scalar_merge): Ditto.
28219 (sd): Ditto.
28220
28221 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28222
28223 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28224
28225 2014-01-31 Richard Biener <rguenther@suse.de>
28226
28227 PR middle-end/59990
28228 * builtins.c (fold_builtin_memory_op): Make sure to not
28229 use a floating-point mode or a boolean or enumeral type for
28230 the copy operation.
28231
28232 2014-01-30 DJ Delorie <dj@redhat.com>
28233
28234 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28235 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28236 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28237 whenever main() has an epilogue.
28238
28239 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28240
28241 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28242 unused variable "field".
28243 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28244 (vsx_mergeh_<mode>): Likewise.
28245 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28246 (altivec_vmrghh): Likewise.
28247 (altivec_vmrghw): Likewise.
28248 (altivec_vmrglb): Likewise.
28249 (altivec_vmrglh): Likewise.
28250 (altivec_vmrglw): Likewise.
28251 (altivec_vspltb): Add missing uses.
28252 (altivec_vsplth): Likewise.
28253 (altivec_vspltw): Likewise.
28254 (altivec_vspltsf): Likewise.
28255
28256 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28257
28258 PR target/59923
28259 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28260 frame related instructions.
28261
28262 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28263
28264 PR rtl-optimization/59959
28265 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28266 any reload of register whose subreg is invalid.
28267
28268 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28269
28270 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28271 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28272 Add missing return type - void.
28273
28274 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28275
28276 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28277 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28278 remove element index adjustment for endian (now handled in vsx.md
28279 and altivec.md).
28280 (altivec_expand_vec_perm_const): Use
28281 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28282 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28283 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28284 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28285 define_expand and a new define_insn *altivec_vspltb_internal;
28286 adjust for -maltivec=be on a little endian target.
28287 (altivec_vspltb_direct): New.
28288 (altivec_vsplth): Divide into a define_expand and a new
28289 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28290 little endian target.
28291 (altivec_vsplth_direct): New.
28292 (altivec_vspltw): Divide into a define_expand and a new
28293 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28294 little endian target.
28295 (altivec_vspltw_direct): New.
28296 (altivec_vspltsf): Divide into a define_expand and a new
28297 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28298 a little endian target.
28299
28300 2014-01-30 Richard Biener <rguenther@suse.de>
28301
28302 PR tree-optimization/59993
28303 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28304 can propagate form the earlier stmt and avoid the transform
28305 when the intermediate result is needed.
28306
28307 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28308
28309 * README.Portability: Fix typo.
28310
28311 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28312
28313 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28314 comparison_operator with ordered_comparison_operator.
28315
28316 2014-01-30 Nick Clifton <nickc@redhat.com>
28317
28318 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28319 Rename to mn10300_store_multiple_regs.
28320 * config/mn10300/mn10300.c: Likewise.
28321 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28322 store_multiple_regs.
28323 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28324 Call mn10300_store_multiple_regs.
28325
28326 2014-01-30 Nick Clifton <nickc@redhat.com>
28327 DJ Delorie <dj@redhat.com>
28328
28329 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28330 %fp 2 to keep registers after it properly word-aligned.
28331 (rl78_alloc_physical_registers_umul): Handle the case where both
28332 input operands are the same.
28333
28334 2014-01-30 Richard Biener <rguenther@suse.de>
28335
28336 PR tree-optimization/59903
28337 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28338 check properly.
28339
28340 2014-01-30 Jason Merrill <jason@redhat.com>
28341
28342 PR c++/59633
28343 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28344
28345 PR c++/59645
28346 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28347
28348 2014-01-30 Richard Biener <rguenther@suse.de>
28349
28350 PR tree-optimization/59951
28351 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28352
28353 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28354
28355 PR target/59784
28356 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28357 SFmode to DFmode case.
28358
28359 2014-01-29 DJ Delorie <dj@redhat.com>
28360
28361 * config/msp430/msp430.opt (-minrt): New.
28362 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28363 if -minrt given.
28364 (ENDFILE_SPEC): Likewise.
28365
28366 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28367
28368 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28369 (estimate_function_body_sizes): Use it.
28370
28371 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28372
28373 PR c++/58561
28374 * dwarf2out.c (is_cxx_auto): New.
28375 (is_base_type): Use it.
28376 (gen_type_die_with_usage): Likewise.
28377
28378 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28379
28380 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28381 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28382 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28383 -maltivec=be with LE targets.
28384 (vsx_mergeh_<mode>): Likewise.
28385 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28386 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28387 (altivec_vmrghb): Replace with define_expand and new
28388 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28389 (altivec_vmrghb_direct): New define_insn.
28390 (altivec_vmrghh): Replace with define_expand and new
28391 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28392 (altivec_vmrghh_direct): New define_insn.
28393 (altivec_vmrghw): Replace with define_expand and new
28394 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28395 (altivec_vmrghw_direct): New define_insn.
28396 (*altivec_vmrghsf): Adjust for endianness.
28397 (altivec_vmrglb): Replace with define_expand and new
28398 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28399 (altivec_vmrglb_direct): New define_insn.
28400 (altivec_vmrglh): Replace with define_expand and new
28401 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28402 (altivec_vmrglh_direct): New define_insn.
28403 (altivec_vmrglw): Replace with define_expand and new
28404 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28405 (altivec_vmrglw_direct): New define_insn.
28406 (*altivec_vmrglsf): Adjust for endianness.
28407 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28408 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28409 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28410 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28411 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28412 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28413 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28414 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28415
28416 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28417
28418 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28419 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28420 whitespace.
28421
28422 2014-01-29 Richard Biener <rguenther@suse.de>
28423
28424 PR tree-optimization/58742
28425 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28426 associate_pointerplus_align.
28427 (associate_pointerplus_diff): New function.
28428 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28429 and associate_pointerplus_diff.
28430
28431 2014-01-29 Richard Biener <rguenther@suse.de>
28432
28433 * lto-streamer.h (LTO_major_version): Bump to 3.
28434 (LTO_minor_version): Reset to 0.
28435
28436 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28437
28438 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28439 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28440 (arm_file_start): Generate correct asm header for armv7ve.
28441 * config/arm/bpabi.h: Add multilib support for armv7ve.
28442 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28443 and cortex-a15 to armv7ve.
28444 * config/arm/t-aprofile: Add multilib support for armv7ve.
28445 * doc/invoke.texi: Document -march=armv7ve.
28446
28447 2014-01-29 Richard Biener <rguenther@suse.de>
28448
28449 PR tree-optimization/58742
28450 * tree-ssa-forwprop.c (associate_plusminus): Return true
28451 if we changed sth, defer EH cleanup to ...
28452 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28453 (simplify_mult): New function.
28454
28455 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28456
28457 PR middle-end/59917
28458 PR tree-optimization/59920
28459 * tree.c (build_common_builtin_nodes): Remove
28460 __builtin_setjmp_dispatcher initialization.
28461 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28462 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28463 instead of gsi_after_labels + manually skipping debug stmts.
28464 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28465 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28466 * tree-inline.c (copy_edges_for_bb): Remove
28467 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28468 argument. Ignore computed_goto_p stmts. Don't call
28469 make_abnormal_goto_edges. If a call might need abnormal edges
28470 for non-local gotos, see if it already has an edge to
28471 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28472 with true argument, don't do anything then, otherwise add
28473 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28474 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28475 caller.
28476 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28477 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28478 (lower_stmt): Don't set data->calls_builtin_setjmp.
28479 (lower_builtin_setjmp): Adjust comment.
28480 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28481 * tree-cfg.c (found_computed_goto): Remove.
28482 (factor_computed_gotos): Remove.
28483 (make_goto_expr_edges): Return bool, true for computed gotos.
28484 Don't call make_abnormal_goto_edges.
28485 (build_gimple_cfg): Don't set found_computed_goto, don't call
28486 factor_computed_gotos.
28487 (computed_goto_p): No longer static.
28488 (make_blocks): Don't set found_computed_goto.
28489 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28490 (make_edges): If make_goto_expr_edges returns true, push bb
28491 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28492 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28493 vector. Record mapping between bbs and OpenMP regions if there
28494 are any, adjust make_gimple_omp_edges caller. Call
28495 handle_abnormal_edges.
28496 (make_abnormal_goto_edges): Remove.
28497 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28498 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28499 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28500 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28501 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28502 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28503 filling *region also set *region_idx to (*region)->entry->index.
28504
28505 PR other/58712
28506 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28507 For REGs set ORIGINAL_REGNO.
28508
28509 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28510
28511 * doc/md.texi: Mention that a target shouldn't implement
28512 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28513 than hi/lo pair.
28514
28515 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28516
28517 PR tree-optimization/59594
28518 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28519 a copy of the datarefs vector rather than the vector itself.
28520
28521 2014-01-28 Jason Merrill <jason@redhat.com>
28522
28523 PR c++/53756
28524 * dwarf2out.c (auto_die): New static.
28525 (gen_type_die_with_usage): Handle C++1y 'auto'.
28526 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28527 on definition.
28528
28529 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28530
28531 PR target/59672
28532 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28533 (SPEC_X32): Likewise.
28534 (SPEC_64): Likewise.
28535 * config/i386/i386.c (ix86_option_override_internal): Turn off
28536 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28537 for TARGET_16BIT.
28538 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28539 * config/i386/i386.h (TARGET_16BIT): New macro.
28540 (TARGET_16BIT_P): Likewise.
28541 * config/i386/i386.opt: Add m16.
28542 * doc/invoke.texi: Document -m16.
28543
28544 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28545
28546 PR preprocessor/59935
28547 * input.c (location_get_source_line): Bail out on when line number
28548 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28549
28550 2014-01-28 Richard Biener <rguenther@suse.de>
28551
28552 PR tree-optimization/58742
28553 * tree-ssa-forwprop.c (associate_plusminus): Handle
28554 pointer subtraction of the form (T)(P + A) - (T)P.
28555
28556 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28557
28558 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28559 at const_int_cost.
28560
28561 2014-01-28 Richard Biener <rguenther@suse.de>
28562
28563 Revert
28564 2014-01-28 Richard Biener <rguenther@suse.de>
28565
28566 PR rtl-optimization/45364
28567 PR rtl-optimization/59890
28568 * var-tracking.c (local_get_addr_clear_given_value): Handle
28569 already cleared slot.
28570 (val_reset): Handle not allocated local_get_addr_cache.
28571 (vt_find_locations): Use post-order on the inverted CFG.
28572
28573 2014-01-28 Richard Biener <rguenther@suse.de>
28574
28575 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28576
28577 2014-01-28 Richard Biener <rguenther@suse.de>
28578
28579 PR rtl-optimization/45364
28580 PR rtl-optimization/59890
28581 * var-tracking.c (local_get_addr_clear_given_value): Handle
28582 already cleared slot.
28583 (val_reset): Handle not allocated local_get_addr_cache.
28584 (vt_find_locations): Use post-order on the inverted CFG.
28585
28586 2014-01-28 Alan Modra <amodra@gmail.com>
28587
28588 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28589 * configure.ac <recursive call for build != host>: Define
28590 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28591 and LD_FOR_BUILD too.
28592 * configure: Regenerate.
28593
28594 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
28595
28596 * config/i386/i386.c (get_builtin_code_for_version): Separate
28597 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28598 Broadwell from Haswell.
28599
28600 2014-01-27 Steve Ellcey <sellcey@mips.com>
28601
28602 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28603 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28604 * config/mips/mips.c (mips_option_override): Change setting
28605 of TARGET_DSP.
28606 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28607 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28608 Change from Mask to Var.
28609
28610 2014-01-27 Jeff Law <law@redhat.com>
28611
28612 * ipa-inline.c (inline_small_functions): Fix typo.
28613
28614 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
28615
28616 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28617 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28618 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28619 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28620 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28621 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28622 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28623 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28624 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28625 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28626 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28627 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28628 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28629 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28630 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28631 (_mm512_storeu_epi64): Ditto.
28632 (_mm512_cmpge_epi32_mask): Ditto.
28633 (_mm512_cmpge_epu32_mask): Ditto.
28634 (_mm512_cmpge_epi64_mask): Ditto.
28635 (_mm512_cmpge_epu64_mask): Ditto.
28636 (_mm512_cmple_epi32_mask): Ditto.
28637 (_mm512_cmple_epu32_mask): Ditto.
28638 (_mm512_cmple_epi64_mask): Ditto.
28639 (_mm512_cmple_epu64_mask): Ditto.
28640 (_mm512_cmplt_epi32_mask): Ditto.
28641 (_mm512_cmplt_epu32_mask): Ditto.
28642 (_mm512_cmplt_epi64_mask): Ditto.
28643 (_mm512_cmplt_epu64_mask): Ditto.
28644 (_mm512_cmpneq_epi32_mask): Ditto.
28645 (_mm512_cmpneq_epu32_mask): Ditto.
28646 (_mm512_cmpneq_epi64_mask): Ditto.
28647 (_mm512_cmpneq_epu64_mask): Ditto.
28648 (_mm512_expand_pd): Ditto.
28649 (_mm512_expand_ps): Ditto.
28650 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28651 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28652 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28653 * config/i386/i386.c (ix86_builtins): Add
28654 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28655 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28656 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28657 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28658 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28659 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28660 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28661 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28662 IX86_BUILTIN_PMOVUSQW512_MEM.
28663 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28664 __builtin_ia32_pmovsqd512mem_mask,
28665 __builtin_ia32_pmovqd512mem_mask,
28666 __builtin_ia32_pmovusqw512mem_mask,
28667 __builtin_ia32_pmovsqw512mem_mask,
28668 __builtin_ia32_pmovqw512mem_mask,
28669 __builtin_ia32_pmovusdw512mem_mask,
28670 __builtin_ia32_pmovsdw512mem_mask,
28671 __builtin_ia32_pmovdw512mem_mask,
28672 __builtin_ia32_pmovqb512mem_mask,
28673 __builtin_ia32_pmovusqb512mem_mask,
28674 __builtin_ia32_pmovsqb512mem_mask,
28675 __builtin_ia32_pmovusdb512mem_mask,
28676 __builtin_ia32_pmovsdb512mem_mask,
28677 __builtin_ia32_pmovdb512mem_mask.
28678 (bdesc_args): Add __builtin_ia32_expanddf512,
28679 __builtin_ia32_expandsf512.
28680 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28681 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28682 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28683 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28684 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28685 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28686 (avx512f_<code>v8div16qi2_mask_store): This.
28687 (avx512f_expand<mode>): New.
28688
28689 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
28690
28691 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28692 New.
28693 (_mm512_mask_prefetch_i64gather_pd): Ditto.
28694 (_mm512_prefetch_i32scatter_pd): Ditto.
28695 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28696 (_mm512_prefetch_i64scatter_pd): Ditto.
28697 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28698 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28699 (_mm512_mask_prefetch_i64gather_ps): Ditto.
28700 (_mm512_prefetch_i32scatter_ps): Ditto.
28701 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28702 (_mm512_prefetch_i64scatter_ps): Ditto.
28703 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28704 * config/i386/i386-builtin-types.def: Define
28705 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28706 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28707 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28708 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28709 IX86_BUILTIN_SCATTERPFQPD.
28710 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28711 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28712 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28713 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28714 __builtin_ia32_scatterpfqps.
28715 (ix86_expand_builtin): Expand new built-ins.
28716 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28717 fix memory access data type.
28718 (*avx512pf_gatherpf<mode>_mask): Ditto.
28719 (*avx512pf_gatherpf<mode>): Ditto.
28720 (avx512pf_scatterpf<mode>): Ditto.
28721 (*avx512pf_scatterpf<mode>_mask): Ditto.
28722 (*avx512pf_scatterpf<mode>): Ditto.
28723 (GATHER_SCATTER_SF_MEM_MODE): New.
28724 (avx512pf_gatherpf<mode>df): Ditto.
28725 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28726 (*avx512pf_scatterpf<mode>df): Ditto.
28727
28728 2014-01-27 Jakub Jelinek <jakub@redhat.com>
28729
28730 PR bootstrap/59934
28731 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28732 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28733 reached.
28734
28735 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28736
28737 * common/config/arm/arm-common.c
28738 (arm_rewrite_mcpu): Handle multiple names.
28739 * config/arm/arm.h
28740 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28741
28742 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28743
28744 * gimple-builder.h (create_gimple_tmp): Delete.
28745
28746 2014-01-27 Christian Bruel <christian.bruel@st.com>
28747
28748 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28749 words comparisons.
28750
28751 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
28752
28753 * config/pa/pa.md (call): Generate indirect long calls to non-local
28754 functions when outputing 32-bit code.
28755 (call_value): Likewise except for special call to buggy powf function.
28756
28757 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28758 portable runtime and PIC indirect calls.
28759 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28760 and PIC call sequences. Use ldo instead of blr to set return register
28761 in PIC call sequence.
28762
28763 2014-01-25 Walter Lee <walt@tilera.com>
28764
28765 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28766 avoid clobbering a live register.
28767
28768 2014-01-25 Walter Lee <walt@tilera.com>
28769
28770 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28771 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28772 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28773 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28774
28775 2014-01-25 Walter Lee <walt@tilera.com>
28776
28777 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28778 arguments on even registers.
28779 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28780 STACK_BOUNDARY.
28781 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28782 (BIGGEST_ALIGNMENT): Ditto.
28783 (BIGGEST_FIELD_ALIGNMENT): Ditto.
28784
28785 2014-01-25 Walter Lee <walt@tilera.com>
28786
28787 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28788 insns before bundling.
28789 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28790
28791 2014-01-25 Walter Lee <walt@tilera.com>
28792
28793 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28794 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28795 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28796
28797 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28798
28799 * config/mips/constraints.md (kl): Delete.
28800 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28801 define expands, using...
28802 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28803 instructions for MIPS16.
28804 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28805 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28806
28807 2014-01-25 Walter Lee <walt@tilera.com>
28808
28809 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28810 (clzdi2): Ditto.
28811 (ffsdi2): Ditto.
28812
28813 2014-01-25 Walter Lee <walt@tilera.com>
28814
28815 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28816 (TARGET_EXPAND_TO_RTL_HOOK): Define.
28817
28818 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28819
28820 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28821 Handle XOR.
28822
28823 2014-01-25 Jakub Jelinek <jakub@redhat.com>
28824
28825 * print-rtl.c (in_call_function_usage): New var.
28826 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28827 EXPR_LIST mode as mode and not as reg note name.
28828
28829 PR middle-end/59561
28830 * cfgloopmanip.c (copy_loop_info): If
28831 loop->warned_aggressive_loop_optimizations, make sure
28832 the flag is set in target loop too.
28833
28834 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
28835
28836 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28837 flag_cilkplus.
28838 * builtins.def: Likewise.
28839 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28840 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28841 * ira.c (ira_setup_eliminable_regset): Likewise.
28842 * omp-low.c (gate_expand_omp): Likewise.
28843 (execute_lower_omp): Likewise.
28844 (diagnose_sb_0): Likewise.
28845 (gate_diagnose_omp_blocks): Likewise.
28846 (simd_clone_clauses_extract): Likewise.
28847 (gate): Likewise.
28848
28849 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28850
28851 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28852 correction for little endian...
28853 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28854 here.
28855
28856 2014-01-24 Jeff Law <law@redhat.com>
28857
28858 PR tree-optimization/59919
28859 * tree-vrp.c (find_assert_locations_1): Do not register asserts
28860 for non-returning calls.
28861
28862 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
28863
28864 * common/config/aarch64/aarch64-common.c
28865 (aarch64_rewrite_mcpu): Handle multiple names.
28866 * config/aarch64/aarch64.h
28867 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28868
28869 2014-01-24 Dodji Seketeli <dodji@redhat.com>
28870
28871 * input.c (add_file_to_cache_tab): Handle the case where fopen
28872 returns NULL.
28873
28874 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
28875
28876 PR target/59929
28877 * config/i386/i386.md (pushsf splitter): Get stack adjustment
28878 from push operand if code of push isn't PRE_DEC.
28879
28880 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28881
28882 PR target/59909
28883 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28884 -mquad-memory-atomic. Update -mquad-memory documentation to say
28885 it is only used for non-atomic loads/stores.
28886
28887 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28888 -mquad-memory or -mquad-memory-atomic switches.
28889
28890 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28891 -mquad-memory-atomic to ISA 2.07 support.
28892
28893 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28894 to separate support of normal quad word memory operations (ldq, stq)
28895 from the atomic quad word memory operations.
28896
28897 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28898 support to separate non-atomic quad word operations from atomic
28899 quad word operations. Disable non-atomic quad word operations in
28900 little endian mode so that we don't have to swap words after the
28901 load and before the store.
28902 (quad_load_store_p): Add comment about atomic quad word support.
28903 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28904 options printed with -mdebug=reg.
28905
28906 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28907 -mquad-memory-atomic as the test for whether we have quad word
28908 atomic instructions.
28909 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28910 or -mp8-vector are used, allow byte/half-word atomic operations.
28911
28912 * config/rs6000/sync.md (load_lockedti): Insure that the address
28913 is a proper indexed or indirect address for the lqarx instruction.
28914 On little endian systems, swap the hi/lo registers after the lqarx
28915 instruction.
28916 (load_lockedpti): Use indexed_or_indirect_operand predicate to
28917 insure the address is valid for the lqarx instruction.
28918 (store_conditionalti): Insure that the address is a proper indexed
28919 or indirect address for the stqcrx. instruction. On little endian
28920 systems, swap the hi/lo registers before doing the stqcrx.
28921 instruction.
28922 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28923 insure the address is valid for the stqcrx. instruction.
28924
28925 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28926 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
28927 type of quad memory support is available.
28928
28929 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
28930
28931 PR regression/59915
28932 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
28933 there is a danger of looping.
28934
28935 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
28936
28937 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28938 force flag_ira_loop_pressure if set via command line.
28939
28940 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28941
28942 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
28943 (ashr_simd): New builtin handling DI mode.
28944 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
28945 (aarch64_sshr_simddi): New match pattern.
28946 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
28947 (vshrd_n_s64): Likewise.
28948 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28949
28950 2014-01-23 Nick Clifton <nickc@redhat.com>
28951
28952 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28953 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28954 favour of mcu specific scripts.
28955 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28956 430x multilibs.
28957
28958 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28959 Alex Velenko <Alex.Velenko@arm.com>
28960
28961 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28962 (vaddv_s16): Likewise.
28963 (vaddv_s32): Likewise.
28964 (vaddv_u8): Likewise.
28965 (vaddv_u16): Likewise.
28966 (vaddv_u32): Likewise.
28967 (vaddvq_s8): Likewise.
28968 (vaddvq_s16): Likewise.
28969 (vaddvq_s32): Likewise.
28970 (vaddvq_s64): Likewise.
28971 (vaddvq_u8): Likewise.
28972 (vaddvq_u16): Likewise.
28973 (vaddvq_u32): Likewise.
28974 (vaddvq_u64): Likewise.
28975 (vaddv_f32): Likewise.
28976 (vaddvq_f32): Likewise.
28977 (vaddvq_f64): Likewise.
28978 (vmaxv_f32): Likewise.
28979 (vmaxv_s8): Likewise.
28980 (vmaxv_s16): Likewise.
28981 (vmaxv_s32): Likewise.
28982 (vmaxv_u8): Likewise.
28983 (vmaxv_u16): Likewise.
28984 (vmaxv_u32): Likewise.
28985 (vmaxvq_f32): Likewise.
28986 (vmaxvq_f64): Likewise.
28987 (vmaxvq_s8): Likewise.
28988 (vmaxvq_s16): Likewise.
28989 (vmaxvq_s32): Likewise.
28990 (vmaxvq_u8): Likewise.
28991 (vmaxvq_u16): Likewise.
28992 (vmaxvq_u32): Likewise.
28993 (vmaxnmv_f32): Likewise.
28994 (vmaxnmvq_f32): Likewise.
28995 (vmaxnmvq_f64): Likewise.
28996 (vminv_f32): Likewise.
28997 (vminv_s8): Likewise.
28998 (vminv_s16): Likewise.
28999 (vminv_s32): Likewise.
29000 (vminv_u8): Likewise.
29001 (vminv_u16): Likewise.
29002 (vminv_u32): Likewise.
29003 (vminvq_f32): Likewise.
29004 (vminvq_f64): Likewise.
29005 (vminvq_s8): Likewise.
29006 (vminvq_s16): Likewise.
29007 (vminvq_s32): Likewise.
29008 (vminvq_u8): Likewise.
29009 (vminvq_u16): Likewise.
29010 (vminvq_u32): Likewise.
29011 (vminnmv_f32): Likewise.
29012 (vminnmvq_f32): Likewise.
29013 (vminnmvq_f64): Likewise.
29014
29015 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29016
29017 * config/aarch64/aarch64-simd.md
29018 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29019 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29020 (*aarch64_mul3_elt<mode>): Likewise.
29021 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29022 (*aarch64_mul3_elt_to_64v2df): Likewise.
29023 (*aarch64_mla_elt<mode>): Likewise.
29024 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29025 (*aarch64_mls_elt<mode>): Likewise.
29026 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29027 (*aarch64_fma4_elt<mode>): Likewise.
29028 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29029 (*aarch64_fma4_elt_to_64v2df): Likewise.
29030 (*aarch64_fnma4_elt<mode>): Likewise.
29031 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29032 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29033 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29034 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29035 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29036 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29037 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29038 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29039 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29040
29041 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29042
29043 * config/aarch64/aarch64-simd.md
29044 (aarch64_be_checked_get_lane<mode>): New define_expand.
29045 * config/aarch64/aarch64-simd-builtins.def
29046 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29047 New builtin definition.
29048 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29049 Use new safe be builtin.
29050
29051 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29052
29053 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29054 New define_insn.
29055 (aarch64_be_st1<mode>): Likewise.
29056 (aarch_ld1<VALL:mode>): Define_expand modified.
29057 (aarch_st1<VALL:mode>): Likewise.
29058 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29059 (UNSPEC_ST1): Likewise.
29060
29061 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29062
29063 * config/microblaze/microblaze.md: Add trap insn and attribute
29064
29065 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29066
29067 PR preprocessor/58580
29068 * input.h (location_get_source_line): Take an additional line_size
29069 parameter.
29070 (void diagnostics_file_cache_fini): Declare new function.
29071 * input.c (struct fcache): New type.
29072 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29073 New static constants.
29074 (diagnostic_file_cache_init, total_lines_num)
29075 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29076 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29077 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29078 (get_next_line, read_next_line, goto_next_line, read_line_num):
29079 New static function definitions.
29080 (diagnostic_file_cache_fini): New function.
29081 (location_get_source_line): Take an additional output line_len
29082 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29083 read_line_num.
29084 * diagnostic.c (diagnostic_finish): Call
29085 diagnostic_file_cache_fini.
29086 (adjust_line): Take an additional input parameter for the length
29087 of the line, rather than calculating it with strlen.
29088 (diagnostic_show_locus): Adjust the use of
29089 location_get_source_line and adjust_line with respect to their new
29090 signature. While displaying a line now, do not stop at the first
29091 null byte. Rather, display the zero byte as a space and keep
29092 going until we reach the size of the line.
29093 * Makefile.in: Add vec.o to OBJS-libcommon
29094
29095 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29096 Ilya Tocar <ilya.tocar@intel.com>
29097
29098 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29099 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29100 (__builtin_ia32_kmov16): Ditto.
29101 * config/i386/i386.md (UNSPEC_KMOV): New.
29102 (kmovw): Ditto.
29103
29104 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29105
29106 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29107 (_mm512_storeu_si512): Ditto.
29108
29109 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29110
29111 PR target/52125
29112 * rtl.h (get_referenced_operands): Declare.
29113 * recog.c (get_referenced_operands): New function.
29114 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29115 operands have been referenced when recording LO_SUM references.
29116
29117 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29118
29119 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29120
29121 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29122
29123 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29124 Enable for generic and recent AMD targets.
29125
29126 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29127
29128 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29129 ARG_SIZE note when adjustment was eliminated.
29130
29131 2014-01-22 Jeff Law <law@redhat.com>
29132
29133 PR tree-optimization/59597
29134 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29135 in file. Accept new argument REGISTERING and use it to modify
29136 dump output appropriately.
29137 (register_jump_thread): Corresponding changes.
29138 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29139 thread paths involving joiner blocks. Add code to dump cancelled
29140 jump threading paths.
29141
29142 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29143
29144 PR rtl-optimization/59477
29145 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29146 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29147
29148 2014-01-22 Tom Tromey <tromey@redhat.com>
29149
29150 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29151 PARAMS.
29152 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29153
29154 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29155
29156 PR rtl-optimization/59896
29157 * lra-constraints.c (process_alt_operands): Check unused note for
29158 matched operands of insn with no output reloads.
29159
29160 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29161
29162 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29163 (mips_move_from_gpr_cost): Likewise.
29164
29165 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29166
29167 PR rtl-optimization/59858
29168 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29169 ira_class_hard_regs_num.
29170 (process_alt_operands): Increase reject for dying matched operand.
29171
29172 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29173
29174 PR target/59003
29175 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29176 smaller than size, perform several stores or loads and stores
29177 at dst + count - size to store or copy all of size bytes, rather
29178 than just last modesize bytes.
29179
29180 2014-01-20 DJ Delorie <dj@redhat.com>
29181
29182 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29183 that CLOBBERs are REGs before propogating their values.
29184
29185 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29186
29187 PR middle-end/59789
29188 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29189 (cgraph_inline_failed_type): New function.
29190 * cgraph.h (DEFCIFCODE): Add type.
29191 (cgraph_inline_failed_type_t): New enum.
29192 (cgraph_inline_failed_type): New prototype.
29193 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29194 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29195 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29196 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29197 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29198 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29199 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29200 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29201 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29202 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29203 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29204 OPTIMIZATION_MISMATCH.
29205 * tree-inline.c (expand_call_inline): Emit errors during
29206 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29207
29208 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29209
29210 PR target/59685
29211 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29212 mode attribute in insn output.
29213
29214 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29215
29216 * output.h (output_constant): Delete.
29217 * varasm.c (output_constant): Make private.
29218
29219 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29220
29221 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29222
29223 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29224
29225 PR middle-end/59860
29226 * tree.h (fold_builtin_strcat): New prototype.
29227 * builtins.c (fold_builtin_strcat): No longer static. Add len
29228 argument, if non-NULL, don't call c_strlen. Optimize
29229 directly into __builtin_memcpy instead of __builtin_strcpy.
29230 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29231 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29232
29233 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29234
29235 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29236 for SImode_address_operand operands, having only a REG argument.
29237
29238 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29239
29240 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29241 loader name using mbig-endian.
29242 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29243
29244 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29245
29246 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29247 (-mtune): Likewise.
29248 (-mcpu): Likewise.
29249
29250 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29251
29252 * config/aarch64/aarch64-protos.h
29253 (aarch64_cannot_change_mode_class_ptr): Declare.
29254 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29255 aarch64_cannot_change_mode_class_ptr): New.
29256 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29257 backend hook aarch64_cannot_change_mode_class.
29258
29259 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29260
29261 * common/config/aarch64/aarch64-common.c
29262 (aarch64_handle_option): Don't handle any option order logic here.
29263 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29264 selected_cpu, warn on architecture version mismatch.
29265 (aarch64_override_options): Fix parsing order for option strings.
29266
29267 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29268 Iain Sandoe <iain@codesourcery.com>
29269
29270 PR bootstrap/59496
29271 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29272 warning. Amend comment to reflect current functionality.
29273
29274 2014-01-20 Richard Biener <rguenther@suse.de>
29275
29276 PR middle-end/59860
29277 * builtins.c (fold_builtin_strcat): Remove case better handled
29278 by tree-ssa-strlen.c.
29279
29280 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29281
29282 * config/aarch64/aarch64.opt
29283 (mcpu, march, mtune): Make case-insensitive.
29284
29285 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29286
29287 PR target/59880
29288 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29289 if operands[1] is a REG or ZERO_EXTEND of a REG.
29290
29291 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29292
29293 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29294
29295 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29296
29297 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29298 long non-pic millicode calls.
29299
29300 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29301
29302 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29303
29304 2014-01-19 Kito Cheng <kito@0xlab.org>
29305
29306 * builtins.c (expand_movstr): Check movstr expand done or fail.
29307
29308 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29309 H.J. Lu <hongjiu.lu@intel.com>
29310
29311 PR target/59379
29312 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29313 to DImode for zero-extended addresses.
29314
29315 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29316
29317 PR rtl-optimization/57763
29318 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29319 on the new indirect jump_insn and increment LABEL_NUSES (label).
29320
29321 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29322
29323 PR bootstrap/59580
29324 PR bootstrap/59583
29325 * config.gcc (x86_archs): New variable.
29326 (x86_64_archs): Likewise.
29327 (x86_cpus): Likewise.
29328 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29329 --with-arch/--with-cpu= options.
29330 Support --with-arch=/--with-cpu={nehalem,westmere,
29331 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29332
29333 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29334
29335 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29336 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29337
29338 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29339
29340 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29341
29342 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29343
29344 PR target/58944
29345 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29346 clear cpp_get_options (parse_in)->warn_unused_macros for
29347 ix86_target_macros_internal with cpp_define.
29348
29349 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29350
29351 * jump.c (delete_related_insns): Keep (use (insn))s.
29352 * reorg.c (redundant_insn): Check for barriers too.
29353
29354 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29355
29356 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29357
29358 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29359
29360 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29361 call to $$dyncall when TARGET_LONG_CALLS is true.
29362
29363 2014-01-17 Jeff Law <law@redhat.com>
29364
29365 * ree.c (combine_set_extension): Temporarily disable test for
29366 changing number of hard registers.
29367
29368 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29369
29370 PR middle-end/58125
29371 * ipa-inline-analysis.c (inline_free_summary):
29372 Do not free summary of aliases.
29373
29374 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29375
29376 PR middle-end/59706
29377 * gimplify.c (gimplify_expr): Use create_tmp_var
29378 instead of create_tmp_var_raw. If cond doesn't have
29379 integral type, don't add the IFN_ANNOTATE builtin at all.
29380
29381 2014-01-17 Martin Jambor <mjambor@suse.cz>
29382
29383 PR ipa/59736
29384 * ipa-cp.c (prev_edge_clone): New variable.
29385 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29386 Also resize prev_edge_clone vector.
29387 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29388 (ipcp_edge_removal_hook): New function.
29389 (ipcp_driver): Register ipcp_edge_removal_hook.
29390
29391 2014-01-17 Andrew Pinski <apinski@cavium.com>
29392 Steve Ellcey <sellcey@mips.com>
29393
29394 PR target/59462
29395 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29396 of operator mode.
29397
29398 2014-01-17 Jeff Law <law@redhat.com>
29399
29400 PR middle-end/57904
29401 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29402 so that pass_ccp runs first.
29403
29404 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29405
29406 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29407 (ix86_adjust_cost): Use !TARGET_XXX.
29408 (do_reorder_for_imul): Likewise.
29409 (swap_top_of_ready_list): Likewise.
29410 (ix86_sched_reorder): Likewise.
29411
29412 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29413
29414 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29415 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29416 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29417 (intel_memset): New. Duplicate slm_memset.
29418 (intel_cost): New. Duplicate slm_cost.
29419 (m_INTEL): New macro.
29420 (processor_target_table): Add "intel".
29421 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29422 with PROCESSOR_INTEL for "intel".
29423 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29424 PROCESSOR_SILVERMONT.
29425 (ix86_issue_rate): Likewise.
29426 (ix86_adjust_cost): Likewise.
29427 (ia32_multipass_dfa_lookahead): Likewise.
29428 (swap_top_of_ready_list): Likewise.
29429 (ix86_sched_reorder): Likewise.
29430 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29431 instead of TARGET_OPT_AGU.
29432 * config/i386/i386.h (TARGET_INTEL): New.
29433 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29434 (processor_type): Add PROCESSOR_INTEL.
29435 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29436 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29437
29438 2014-01-17 Marek Polacek <polacek@redhat.com>
29439
29440 PR c/58346
29441 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29442 size is zero.
29443
29444 2014-01-17 Richard Biener <rguenther@suse.de>
29445
29446 PR tree-optimization/46590
29447 * opts.c (default_options_table): Add entries for
29448 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29449 all enabled at -O1 but not for -Og.
29450 * common.opt (fbranch-count-reg): Remove Init(1).
29451 (fmove-loop-invariants): Likewise.
29452 (ftree-pta): Likewise.
29453
29454 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29455
29456 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29457 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29458 decls to at least the GCC 4.8 used alignments.
29459
29460 PR fortran/59440
29461 * tree-nested.c (convert_nonlocal_reference_stmt,
29462 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29463 of GIMPLE_BIND stmts, adjust associated decls.
29464
29465 2014-01-17 Richard Biener <rguenther@suse.de>
29466
29467 PR tree-optimization/46590
29468 * vec.h (vec<>::bseach): New member function implementing
29469 binary search according to C89 bsearch.
29470 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29471 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29472 bitmap pointer again. Make accesses_in_loop a flat array.
29473 (mem_ref_obstack): New global.
29474 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29475 (mark_ref_stored): Likewise.
29476 (ref_indep_loop_p_2): Likewise.
29477 (set_ref_stored_in_loop): New helper function.
29478 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29479 (memref_free): Adjust.
29480 (record_mem_ref_loc): Simplify.
29481 (gather_mem_refs_stmt): Adjust.
29482 (sort_locs_in_loop_postorder_cmp): New function.
29483 (analyze_memory_references): Sort accesses_in_loop after
29484 loop postorder number.
29485 (find_ref_loc_in_loop_cmp): New function.
29486 (for_all_locs_in_loop): Find relevant cluster of locs in
29487 accesses_in_loop and iterate without recursion.
29488 (execute_sm): Avoid uninit warning.
29489 (struct ref_always_accessed): Simplify.
29490 (ref_always_accessed::operator ()): Likewise.
29491 (ref_always_accessed_p): Likewise.
29492 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29493 loop postorder numbers here.
29494 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29495 numbers.
29496
29497 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29498
29499 PR c++/57945
29500 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29501 on decls for which assemble_alias has been called.
29502
29503 2014-01-17 Nick Clifton <nickc@redhat.com>
29504
29505 * config/msp430/msp430.opt: (mcpu): New option.
29506 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29507 (msp430_option_override): Parse target_cpu. If the MCU name
29508 matches a generic string, clear target_mcu.
29509 (msp430_attr): Allow numeric interrupt values up to 63.
29510 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29511 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29512 option.
29513 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29514 Add mcpu matches.
29515 * config/msp430/msp430.md (popm): Use %J rather than %I.
29516 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29517 (addhi_cy_i): Use immediate_operand for operand 2.
29518 * doc/invoke.texi: Document -mcpu option.
29519
29520 2014-01-17 Richard Biener <rguenther@suse.de>
29521
29522 PR rtl-optimization/38518
29523 * df.h (df_analyze_loop): Declare.
29524 * df-core.c: Include cfgloop.h.
29525 (df_analyze_1): Split out main part of df_analyze.
29526 (df_analyze): Adjust.
29527 (loop_inverted_post_order_compute): New function.
29528 (loop_post_order_compute): Likewise.
29529 (df_analyze_loop): New function avoiding whole-function
29530 postorder computes.
29531 * loop-invariant.c (find_defs): Use df_analyze_loop.
29532 (find_invariants): Adjust.
29533 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29534
29535 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29536
29537 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29538 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29539
29540 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29541
29542 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29543 traversal when removing references.
29544
29545 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29546
29547 PR ipa/59775
29548 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29549
29550 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29551
29552 PR middle-end/56791
29553 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29554 pushing a reload for an autoinc when we had previously reloaded an
29555 inner part of the address.
29556
29557 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29558
29559 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29560 field.
29561 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29562 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29563 when not giving up or versioning for alias only because of
29564 loop->safelen.
29565 (vect_analyze_data_ref_dependences): Set to true.
29566 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29567 is a GIMPLE_PHI.
29568 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29569 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29570 to the condition.
29571
29572 PR middle-end/58344
29573 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29574
29575 PR target/59839
29576 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29577 operand 0 predicate for gathers, use a new pseudo as subtarget.
29578
29579 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29580
29581 PR middle-end/59609
29582 * lra-constraints.c (process_alt_operands): Add printing debug info.
29583 Check absence of input/output reloads for matched operands too.
29584
29585 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29586
29587 PR rtl-optimization/59835
29588 * ira.c (ira_init_register_move_cost): Increase cost for
29589 impossible modes.
29590
29591 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29592
29593 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29594
29595 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
29596
29597 PR target/59780
29598 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29599 non-register objects. Use gen_(high/low)part more consistently.
29600 Fix assertions.
29601
29602 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29603
29604 PR target/59844
29605 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29606 endian support, remove tests for WORDS_BIG_ENDIAN.
29607 (p8_mfvsrd_3_<mode>): Likewise.
29608 (reload_gpr_from_vsx<mode>): Likewise.
29609 (reload_gpr_from_vsxsf): Likewise.
29610 (p8_mfvsrd_4_disf): Likewise.
29611
29612 2014-01-16 Richard Biener <rguenther@suse.de>
29613
29614 PR rtl-optimization/46590
29615 * lcm.c (compute_antinout_edge): Use postorder iteration.
29616 (compute_laterin): Use inverted postorder iteration.
29617
29618 2014-01-16 Nick Clifton <nickc@redhat.com>
29619
29620 PR middle-end/28865
29621 * varasm.c (output_constant): Return the number of bytes actually
29622 emitted.
29623 (output_constructor_array_range): Update the field size with the
29624 number of bytes emitted by output_constant.
29625 (output_constructor_regular_field): Likewise. Also do not
29626 complain if the total number of bytes emitted is now greater
29627 than the expected fieldpos.
29628 * output.h (output_constant): Update prototype and descriptive comment.
29629
29630 2014-01-16 Marek Polacek <polacek@redhat.com>
29631
29632 PR middle-end/59827
29633 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29634 it is error_mark_node.
29635
29636 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
29637
29638 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29639 VALID_AVX256_REG_OR_OI_MODE.
29640
29641 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
29642
29643 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29644 current procedure should be profiled.
29645
29646 2014-01-15 Andrew Pinski <apinski@cavium.com>
29647
29648 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29649 of moving from/to the STACK_REG register class.
29650
29651 2014-01-15 Richard Henderson <rth@redhat.com>
29652
29653 PR debug/54694
29654 * reginfo.c (global_regs_decl): Globalize.
29655 * rtl.h (global_regs_decl): Declare.
29656 * ira.c (do_reload): Diagnose frame_pointer_needed and it
29657 reserved via global_regs.
29658
29659 2014-01-15 Teresa Johnson <tejohnson@google.com>
29660
29661 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29662
29663 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
29664
29665 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29666 and vmulosh rather than call gen_vec_widen_smult_*.
29667 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29668 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29669 (vec_widen_smult_even_v16qi): Likewise.
29670 (vec_widen_umult_even_v8hi): Likewise.
29671 (vec_widen_smult_even_v8hi): Likewise.
29672 (vec_widen_umult_odd_v16qi): Likewise.
29673 (vec_widen_smult_odd_v16qi): Likewise.
29674 (vec_widen_umult_odd_v8hi): Likewise.
29675 (vec_widen_smult_odd_v8hi): Likewise.
29676 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29677 vmuloub rather than call gen_vec_widen_umult_*.
29678 (vec_widen_umult_lo_v16qi): Likewise.
29679 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29680 vmulosb rather than call gen_vec_widen_smult_*.
29681 (vec_widen_smult_lo_v16qi): Likewise.
29682 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29683 rather than call gen_vec_widen_umult_*.
29684 (vec_widen_umult_lo_v8hi): Likewise.
29685 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29686 rather than call gen_vec_widen_smult_*.
29687 (vec_widen_smult_lo_v8hi): Likewise.
29688
29689 2014-01-15 Jeff Law <law@redhat.com>
29690
29691 PR tree-optimization/59747
29692 * ree.c (find_and_remove_re): Properly handle case where a second
29693 eliminated extension requires widening a copy created for elimination
29694 of a prior extension.
29695 (combine_set_extension): Ensure that the number of hard regs needed
29696 for a destination register does not change when we widen it.
29697
29698 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29699
29700 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29701 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29702 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29703 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29704 (avr-*-rtems*): Likewise.
29705 (bfin*-rtems*): Likewise.
29706 (moxie-*-rtems*): Likewise.
29707 (h8300-*-rtems*): Likewise.
29708 (i[34567]86-*-rtems*): Likewise.
29709 (lm32-*-rtems*): Likewise.
29710 (m32r-*-rtems*): Likewise.
29711 (m68k-*-rtems*): Likewise.
29712 (microblaze*-*-rtems*): Likewise.
29713 (mips*-*-rtems*): Likewise.
29714 (powerpc-*-rtems*): Likewise.
29715 (sh-*-rtems*): Likewise.
29716 (sparc-*-rtems*): Likewise.
29717 (sparc64-*-rtems*): Likewise.
29718 (v850-*-rtems*): Likewise.
29719 (m32c-*-rtems*): Likewise.
29720
29721 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
29722
29723 PR rtl-optimization/59511
29724 * ira.c (ira_init_register_move_cost): Use memory costs for some
29725 cases of register move cost calculations.
29726 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29727 instead of BB frequency.
29728 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29729 * lra-assigns.c (find_hard_regno_for): Ditto.
29730
29731 2014-01-15 Richard Biener <rguenther@suse.de>
29732
29733 PR tree-optimization/59822
29734 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29735 (vectorizable_load): Use it to hoist defs of uses of invariant
29736 loads out of the loop.
29737
29738 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
29739 Kugan Vivekanandarajah <kuganv@linaro.org>
29740
29741 PR target/59695
29742 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29743 truncation.
29744
29745 2014-01-15 Richard Biener <rguenther@suse.de>
29746
29747 PR rtl-optimization/59802
29748 * lcm.c (compute_available): Use inverted postorder to seed
29749 the initial worklist.
29750
29751 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29752
29753 PR target/59803
29754 * config/s390/s390.c (s390_preferred_reload_class): Don't return
29755 ADDR_REGS for invalid symrefs in non-PIC code.
29756
29757 2014-01-15 Jakub Jelinek <jakub@redhat.com>
29758
29759 PR other/58712
29760 * builtins.c (determine_block_size): Initialize *probable_max_size
29761 even if len_rtx is CONST_INT.
29762
29763 2014-01-14 Andrew Pinski <apinski@cavium.com>
29764
29765 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29766 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29767 (cortexa53_tunings): Likewise.
29768 (aarch64_sched_issue_rate): New function.
29769 (TARGET_SCHED_ISSUE_RATE): Define.
29770
29771 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29772
29773 * ira-costs.c (find_costs_and_classes): Add missed
29774 ira_init_register_move_cost_if_necessary.
29775
29776 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29777
29778 PR target/59787
29779 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29780
29781 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
29782
29783 PR target/59794
29784 * config/i386/i386.c (type_natural_mode): Add a bool parameter
29785 to indicate if type is used for function return value. Warn ABI
29786 change if the vector mode isn't available for function return value.
29787 (ix86_function_arg_advance): Pass false to type_natural_mode.
29788 (ix86_function_arg): Likewise.
29789 (ix86_gimplify_va_arg): Likewise.
29790 (function_arg_32): Don't warn ABI change.
29791 (ix86_function_value): Pass true to type_natural_mode.
29792 (ix86_return_in_memory): Likewise.
29793 (ix86_struct_value_rtx): Removed.
29794 (TARGET_STRUCT_VALUE_RTX): Likewise.
29795
29796 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29797
29798 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29799 converting a conditional jump into a conditional return.
29800
29801 2014-01-14 Richard Biener <rguenther@suse.de>
29802
29803 PR tree-optimization/58921
29804 PR tree-optimization/59006
29805 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29806 hoisting invariant stmts.
29807 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29808 invariant loads on the preheader edge if possible.
29809
29810 2014-01-14 Joey Ye <joey.ye@arm.com>
29811
29812 * doc/plugin.texi (Building GCC plugins): Update to C++.
29813
29814 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
29815
29816 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29817 (_mm_rcp28_round_ss): Ditto.
29818 (_mm_rsqrt28_round_sd): Ditto.
29819 (_mm_rsqrt28_round_ss): Ditto.
29820 (_mm_rcp28_sd): Ditto.
29821 (_mm_rcp28_ss): Ditto.
29822 (_mm_rsqrt28_sd): Ditto.
29823 (_mm_rsqrt28_ss): Ditto.
29824 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29825 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29826 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29827 (IX86_BUILTIN_RCP28SD): Ditto.
29828 (IX86_BUILTIN_RCP28SS): Ditto.
29829 (IX86_BUILTIN_RSQRT28SD): Ditto.
29830 (IX86_BUILTIN_RSQRT28SS): Ditto.
29831 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29832 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29833 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29834 (ix86_expand_special_args_builtin): Expand new FTYPE.
29835 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29836 (srcp14<mode>): Make insn unary.
29837 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29838 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29839 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29840 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29841 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29842 Fix rounding: make it SAE only.
29843 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29844 Ditto.
29845 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29846 Ditto.
29847 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29848 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29849 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29850 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29851 (round_saeonly_mask_scalar_operand4): Ditto.
29852 (round_saeonly_mask_scalar_op3): Ditto.
29853 (round_saeonly_mask_scalar_op4): Ditto.
29854
29855 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29856
29857 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29858 Implement -maltivec=be for vec_insert and vec_extract.
29859
29860 2014-01-10 DJ Delorie <dj@redhat.com>
29861
29862 * config/msp430/msp430.md (call_internal): Don't allow memory
29863 references with SP as the base register.
29864 (call_value_internal): Likewise.
29865 * config/msp430/constraints.md (Yc): New. For memory references
29866 that don't use SP as a base register.
29867
29868 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29869 "an integer without a # prefix"
29870 * config/msp430/msp430.md (epilogue_helper): Use it.
29871
29872 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29873
29874 PR target/59617
29875 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29876 AVX512F gather builtins.
29877 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29878 on gather decls with INTEGER_TYPE masktype.
29879 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29880 directly into the builtin rather than hoisting it before loop.
29881
29882 PR tree-optimization/59387
29883 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29884 (scev_const_prop): If folded_casts and type has undefined overflow,
29885 use force_gimple_operand instead of force_gimple_operand_gsi and
29886 for each added stmt if it is assign with
29887 arith_code_with_undefined_signed_overflow, call
29888 rewrite_to_defined_overflow.
29889 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29890 gimple-fold.h instead.
29891 (arith_code_with_undefined_signed_overflow,
29892 rewrite_to_defined_overflow): Moved to ...
29893 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29894 rewrite_to_defined_overflow): ... here. No longer static.
29895 Include gimplify-me.h.
29896 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29897 rewrite_to_defined_overflow): New prototypes.
29898
29899 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29900
29901 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29902
29903 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
29904
29905 * builtins.c (get_object_alignment_2): Minor tweak.
29906 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29907
29908 2014-01-13 Christian Bruel <christian.bruel@st.com>
29909
29910 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29911 optimized non constant lengths.
29912
29913 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29914
29915 PR libgomp/59194
29916 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29917 load as __atomic_load_N if possible.
29918
29919 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29920
29921 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29922 target parameter.
29923 (rs6000_expand_builtin): Adjust call.
29924
29925 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29926
29927 PR target/58115
29928 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
29929 * config/rs6000/rs6000.c: Include target-globals.h.
29930 (rs6000_set_current_function): Instead of doing target_reinit
29931 unconditionally, use save_target_globals_default_opts and
29932 restore_target_globals.
29933
29934 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
29935 FPSCR.
29936 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
29937 (rs6000_expand_builtin): Handle mffs and mtfsf.
29938 (rs6000_init_builtins): Define mffs and mtfsf.
29939 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
29940 (rs6000_mffs): New pattern.
29941 (rs6000_mtfsf): New pattern.
29942
29943 2014-01-11 Bin Cheng <bin.cheng@arm.com>
29944
29945 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
29946 Start narrowing with START. Apply candidate-use pair
29947 and check overall cost in narrowing.
29948 (iv_ca_prune): Pass new argument.
29949
29950 2014-01-10 Jeff Law <law@redhat.com>
29951
29952 PR middle-end/59743
29953 * ree.c (combine_reaching_defs): Ensure the defining statement
29954 occurs before the extension when optimizing extensions with
29955 different source and destination hard registers.
29956
29957 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29958
29959 PR ipa/58585
29960 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29961 vtables into the type inheritance graph.
29962
29963 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29964
29965 PR rtl-optimization/59754
29966 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29967 modes in the REGNO != REGNO case.
29968
29969 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29970
29971 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29972
29973 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29974
29975 PR tree-optimization/59745
29976 * tree-predcom.c (tree_predictive_commoning_loop): Call
29977 free_affine_expand_cache if giving up because components is NULL.
29978
29979 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29980 GC in payload of target_globals struct instead of allocating them on
29981 the heap and the larger structs separately using GC.
29982 * target-globals.h (struct target_globals): Make regs, hard_regs,
29983 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29984 of GTY((skip)) and change type to void *.
29985 (reset_target_globals): Cast loads from those fields to corresponding
29986 types.
29987
29988 2014-01-10 Steve Ellcey <sellcey@mips.com>
29989
29990 PR plugins/59335
29991 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
29992 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
29993 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
29994
29995 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
29996
29997 PR target/59744
29998 * aarch64-modes.def (CC_Zmode): New flags mode.
29999 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30000 represents an equality.
30001 (aarch64_get_condition_code): Handle CC_Zmode.
30002 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30003
30004 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30005
30006 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30007 extraction in good case.
30008
30009 2014-01-10 Richard Biener <rguenther@suse.de>
30010
30011 PR tree-optimization/59374
30012 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30013 checking after SLP discovery. Mark stmts not participating
30014 in any SLP instance properly.
30015
30016 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30017
30018 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30019 when handling a SET rtx.
30020
30021 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30022
30023 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30024 (cortex-a57): Likewise.
30025 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30026
30027 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30028
30029 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30030 non-iwmmxt builtins.
30031
30032 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30033
30034 PR ipa/58252
30035 PR ipa/59226
30036 * ipa-devirt.c record_target_from_binfo): Take as argument
30037 stack of binfos and lookup matching one for virtual inheritance.
30038 (possible_polymorphic_call_targets_1): Update.
30039
30040 2014-01-10 Huacai Chen <chenhc@lemote.com>
30041
30042 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30043 kernel strings for Loongson-2E/2F/3A.
30044
30045 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30046
30047 PR middle-end/59670
30048 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30049 is_gimple_call before calling gimple_call_internal_p.
30050
30051 2014-01-09 Steve Ellcey <sellcey@mips.com>
30052
30053 * Makefile.in (TREE_FLOW_H): Remove.
30054 (TREE_SSA_H): Add file names from tree-flow.h.
30055 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30056 * tree.h: Remove tree-flow.h reference.
30057 * hash-table.h: Remove tree-flow.h reference.
30058 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30059 reference with tree-ssa-loop.h.
30060
30061 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30062
30063 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30064 default element-order behavior for -maltivec.
30065 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30066 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30067 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30068 when targeting big endian, at least for now.
30069 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30070
30071 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30072
30073 PR middle-end/47735
30074 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30075 var satisfies use_register_for_decl, just take into account type
30076 alignment, rather than decl alignment.
30077
30078 PR tree-optimization/59622
30079 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30080 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30081 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30082 Don't devirtualize for inplace at all. For targets.length () == 1,
30083 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30084
30085 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30086
30087 * config/i386/i386.md (cpu): Remove the unused btver1.
30088
30089 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30090
30091 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30092
30093 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30094
30095 PR target/58115
30096 * tree-core.h (struct target_globals): New forward declaration.
30097 (struct tree_target_option): Add globals field.
30098 * tree.h (TREE_TARGET_GLOBALS): Define.
30099 (prepare_target_option_nodes_for_pch): New prototype.
30100 * target-globals.h (struct target_globals): Define even if
30101 !SWITCHABLE_TARGET.
30102 * tree.c (prepare_target_option_node_for_pch,
30103 prepare_target_option_nodes_for_pch): New functions.
30104 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30105 * config/i386/i386.c: Include target-globals.h.
30106 (ix86_set_current_function): Instead of doing target_reinit
30107 unconditionally, use save_target_globals_default_opts and
30108 restore_target_globals.
30109
30110 2014-01-09 Richard Biener <rguenther@suse.de>
30111
30112 PR tree-optimization/59715
30113 * tree-cfg.h (split_critical_edges): Declare.
30114 * tree-cfg.c (split_critical_edges): Export.
30115 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30116
30117 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30118
30119 * cfgexpand.c (expand_stack_vars): Optionally disable
30120 asan stack protection.
30121 (expand_used_vars): Likewise.
30122 (partition_stack_vars): Likewise.
30123 * asan.c (asan_emit_stack_protection): Optionally disable
30124 after return stack usage.
30125 (instrument_derefs): Optionally disable memory access instrumentation.
30126 (instrument_builtin_call): Likewise.
30127 (instrument_strlen_call): Likewise.
30128 (asan_protect_global): Optionally disable global variables protection.
30129 * doc/invoke.texi: Added doc for new options.
30130 * params.def: Added new options.
30131 * params.h: Likewise.
30132
30133 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30134
30135 PR rtl-optimization/59724
30136 * ifcvt.c (cond_exec_process_if_block): Don't call
30137 flow_find_head_matching_sequence with 0 longest_match.
30138 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30139 non-active insns if !stop_after.
30140 (try_head_merge_bb): Revert 2014-01-07 changes.
30141
30142 2014-01-08 Jeff Law <law@redhat.com>
30143
30144 * ree.c (get_sub_rtx): New function, extracted from...
30145 (merge_def_and_ext): Here.
30146 (combine_reaching_defs): Use get_sub_rtx.
30147
30148 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30149
30150 * cgraph.h (varpool_variable_node): Do not choke on null node.
30151
30152 2014-01-08 Catherine Moore <clm@codesourcery.com>
30153
30154 * config/mips/mips.md (simple_return): Attempt to use JRC
30155 for microMIPS.
30156 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30157
30158 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30159
30160 PR rtl-optimization/59137
30161 * reorg.c (steal_delay_list_from_target): Call update_block for
30162 elided insns.
30163 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30164
30165 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30166
30167 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30168 two duplicate entries.
30169
30170 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30171
30172 Revert:
30173 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30174
30175 * config/mips/mips.c (mips_truncated_op_cost): New function.
30176 (mips_rtx_costs): Adjust test for BADDU.
30177 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30178
30179 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30180
30181 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30182 (*baddu_si): ...this new pattern.
30183
30184 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30185
30186 PR ipa/59722
30187 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30188
30189 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30190
30191 PR middle-end/57748
30192 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30193 inner_reference_p.
30194 (expand_expr, expand_normal): Adjust.
30195 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30196 inner_reference_p. Use inner_reference_p to expand inner references.
30197 (store_expr): Adjust.
30198 * cfgexpand.c (expand_call_stmt): Adjust.
30199
30200 2014-01-08 Rong Xu <xur@google.com>
30201
30202 * gcov-io.c (gcov_var): Move from gcov-io.h.
30203 (gcov_position): Ditto.
30204 (gcov_is_error): Ditto.
30205 (gcov_rewrite): Ditto.
30206 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30207 only part to libgcc/libgcov.h.
30208
30209 2014-01-08 Marek Polacek <polacek@redhat.com>
30210
30211 PR middle-end/59669
30212 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30213
30214 2014-01-08 Marek Polacek <polacek@redhat.com>
30215
30216 PR sanitizer/59667
30217 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30218
30219 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30220
30221 PR rtl-optimization/59649
30222 * stor-layout.c (get_mode_bounds): For BImode return
30223 0 and STORE_FLAG_VALUE.
30224
30225 2014-01-08 Richard Biener <rguenther@suse.de>
30226
30227 PR middle-end/59630
30228 * gimple.h (is_gimple_builtin_call): Remove.
30229 (gimple_builtin_call_types_compatible_p): New.
30230 (gimple_call_builtin_p): New overload.
30231 * gimple.c (is_gimple_builtin_call): Remove.
30232 (validate_call): Rename to ...
30233 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30234 check return types.
30235 (validate_type): New static function.
30236 (gimple_call_builtin_p): New overload and adjust.
30237 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30238 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30239 (gimple_fold_stmt_to_constant_1): Likewise.
30240 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30241
30242 2014-01-08 Richard Biener <rguenther@suse.de>
30243
30244 PR middle-end/59471
30245 * gimplify.c (gimplify_expr): Gimplify register-register type
30246 VIEW_CONVERT_EXPRs to separate stmts.
30247
30248 2014-01-07 Jeff Law <law@redhat.com>
30249
30250 PR middle-end/53623
30251 * ree.c (combine_set_extension): Handle case where source
30252 and destination registers in an extension insn are different.
30253 (combine_reaching_defs): Allow source and destination registers
30254 in extension to be different under limited circumstances.
30255 (add_removable_extension): Remove restriction that the
30256 source and destination registers in the extension are the same.
30257 (find_and_remove_re): Emit a copy from the extension's
30258 destination to its source after the defining insn if
30259 the source and destination registers are different.
30260
30261 PR middle-end/59285
30262 * ifcvt.c (merge_if_block): If we are merging a block with more than
30263 one successor with a block with no successors, remove any BARRIER
30264 after the second block.
30265
30266 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30267
30268 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30269
30270 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30271
30272 PR target/59652
30273 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30274 for 14-bit register offsets when INT14_OK_STRICT is false.
30275
30276 2014-01-07 Roland Stigge <stigge@antcom.de>
30277 Michael Meissner <meissner@linux.vnet.ibm.com>
30278
30279 PR 57386/target
30280 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30281 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30282
30283 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30284
30285 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30286 -mcpu.
30287
30288 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30289
30290 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30291 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30292 rtx is const0_rtx or not.
30293
30294 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30295
30296 PR target/58115
30297 * target-globals.c (save_target_globals): Remove this_fn_optab
30298 handling.
30299 * toplev.c: Include optabs.h.
30300 (target_reinit): Temporarily restore the global options if another
30301 set of options are in force.
30302
30303 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30304
30305 PR rtl-optimization/58668
30306 * cfgcleanup.c (flow_find_cross_jump): Don't count
30307 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30308 to determine what is counted.
30309 (flow_find_head_matching_sequence): Use active_insn_p to determine
30310 what is counted.
30311 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30312 counting change.
30313 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30314 determine what is counted.
30315
30316 PR tree-optimization/59643
30317 * tree-predcom.c (split_data_refs_to_components): If one dr is
30318 read and one write, determine_offset fails and the write isn't
30319 in the bad component, just put the read into the bad component.
30320
30321 2014-01-07 Mike Stump <mikestump@comcast.net>
30322 Jakub Jelinek <jakub@redhat.com>
30323
30324 PR pch/59436
30325 * tree-core.h (struct tree_optimization_option): Change optabs
30326 type from unsigned char * to void *.
30327 * optabs.c (init_tree_optimization_optabs): Adjust
30328 TREE_OPTIMIZATION_OPTABS initialization.
30329
30330 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30331
30332 PR target/59644
30333 * config/i386/i386.h (struct machine_function): Add
30334 no_drap_save_restore field.
30335 * config/i386/i386.c (ix86_save_reg): Use
30336 !cfun->machine->no_drap_save_restore instead of
30337 crtl->stack_realign_needed.
30338 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30339 this function clears frame_pointer_needed. Set
30340 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30341 and DRAP reg is needed.
30342
30343 2014-01-06 Marek Polacek <polacek@redhat.com>
30344
30345 PR c/57773
30346 * doc/implement-c.texi: Mention that other integer types are
30347 permitted as bit-field types in strictly conforming mode.
30348
30349 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30350
30351 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30352 is newly allocated.
30353
30354 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30355
30356 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30357
30358 2014-01-06 Martin Jambor <mjambor@suse.cz>
30359
30360 PR ipa/59008
30361 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30362 to int.
30363 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30364
30365 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30366
30367 PR debug/59350
30368 PR debug/59510
30369 * var-tracking.c (add_stores): Preserve the value of the source even if
30370 we don't record the store.
30371
30372 2014-01-06 Terry Guo <terry.guo@arm.com>
30373
30374 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30375
30376 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30377
30378 PR bootstrap/59541
30379 * config/darwin.c (darwin_function_section): Adjust return values to
30380 correspond to optimisation changes made in r206070.
30381
30382 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30383
30384 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30385 from prefetch_block tune setting.
30386 (nocona_cost): Correct size of prefetch block to 64.
30387
30388 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30389
30390 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30391 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30392 used to save the static chain register in the computation of the offset
30393 from which the FP registers need to be restored.
30394
30395 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30396
30397 PR tree-optimization/59519
30398 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30399 ICE if get_current_def (current_new_name) is already non-NULL, as long
30400 as it is a phi result of some other phi in *new_exit_bb that has
30401 the same argument.
30402
30403 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30404 or vmovdqu* for misaligned_operand.
30405 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30406 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30407 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30408 aligned_mem for AVX512F masked aligned load and store builtins and for
30409 non-temporal moves.
30410
30411 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30412
30413 PR tree-optimization/59651
30414 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30415 Address range for negative step should be added by TYPE_SIZE_UNIT.
30416
30417 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30418
30419 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30420 overlapping registers also for registers other than the stack pointer.
30421
30422 2014-01-03 Marek Polacek <polacek@redhat.com>
30423
30424 PR other/59661
30425 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30426 __builtin_FILE.
30427
30428 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30429
30430 PR target/59625
30431 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30432 asm goto as jump.
30433
30434 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30435 (push splitter): Use <P:MODE_SIZE> instead of
30436 GET_MODE_SIZE (<P:MODE>mode).
30437 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30438 (mov -1, reg peephole2): Likewise.
30439 * config/i386/sse.md (*mov<mode>_internal,
30440 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30441 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30442 *<code><mode>3, *andnot<mode>3<mask_name>,
30443 <mask_codefor><code><mode>3<mask_name>): Likewise.
30444 * config/i386/subst.md (mask_mode512bit_condition,
30445 sd_mask_mode512bit_condition): Likewise.
30446
30447 2014-01-02 Xinliang David Li <davidxl@google.com>
30448
30449 PR tree-optimization/59303
30450 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30451 (dump_predicates): Better output format.
30452 (pred_equal_p): New function.
30453 (is_neq_relop_p): Ditto.
30454 (is_neq_zero_form_p): Ditto.
30455 (pred_expr_equal_p): Ditto.
30456 (pred_neg_p): Ditto.
30457 (simplify_pred): Ditto.
30458 (simplify_preds_2): Ditto.
30459 (simplify_preds_3): Ditto.
30460 (simplify_preds_4): Ditto.
30461 (simplify_preds): Ditto.
30462 (push_pred): Ditto.
30463 (push_to_worklist): Ditto.
30464 (get_pred_info_from_cmp): Ditto.
30465 (is_degenerated_phi): Ditto.
30466 (normalize_one_pred_1): Ditto.
30467 (normalize_one_pred): Ditto.
30468 (normalize_one_pred_chain): Ditto.
30469 (normalize_preds): Ditto.
30470 (normalize_cond_1): Remove function.
30471 (normalize_cond): Ditto.
30472 (is_gcond_subset_of): Ditto.
30473 (is_subset_of_any): Ditto.
30474 (is_or_set_subset_of): Ditto.
30475 (is_and_set_subset_of): Ditto.
30476 (is_norm_cond_subset_of): Ditto.
30477 (pred_chain_length_cmp): Ditto.
30478 (convert_control_dep_chain_into_preds): Type change.
30479 (find_predicates): Ditto.
30480 (find_def_preds): Ditto.
30481 (destroy_predicates_vecs): Ditto.
30482 (find_matching_predicates_in_rest_chains): Ditto.
30483 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30484 (is_pred_expr_subset): Ditto.
30485 (is_pred_chain_subset_of): Ditto.
30486 (is_included_in): Ditto.
30487 (is_superset_of): Ditto.
30488
30489 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30490
30491 Update copyright years.
30492
30493 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30494
30495 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30496 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30497 config/arc/arc.md, config/arc/arc.opt,
30498 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30499 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30500 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30501 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30502 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30503 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30504 vtable-verify.c, vtable-verify.h: Use the standard form for the
30505 copyright notice.
30506
30507 2014-01-02 Tobias Burnus <burnus@net-b.de>
30508
30509 * gcc.c (process_command): Update copyright notice dates.
30510 * gcov-dump.c: Ditto.
30511 * gcov.c: Ditto.
30512 * doc/cpp.texi: Bump @copying's copyright year.
30513 * doc/cppinternals.texi: Ditto.
30514 * doc/gcc.texi: Ditto.
30515 * doc/gccint.texi: Ditto.
30516 * doc/gcov.texi: Ditto.
30517 * doc/install.texi: Ditto.
30518 * doc/invoke.texi: Ditto.
30519
30520 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30521
30522 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30523
30524 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30525
30526 * config/i386/sse.md (*mov<mode>_internal): Guard
30527 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30528
30529 PR rtl-optimization/59647
30530 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30531 new_rtx into UNSIGNED_FLOAT rtxes.
30532 \f
30533 Copyright (C) 2014 Free Software Foundation, Inc.
30534
30535 Copying and distribution of this file, with or without modification,
30536 are permitted in any medium without royalty provided the copyright
30537 notice and this notice are preserved.